2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
fb7b5af4
SDJ
12012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2
3 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4 `-probe' and `-probe-stap' options.
5
72d0e2c5
YQ
62012-07-01 Yao Qi <yao@codesourcery.com>
7
8 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
9 always_inserted_off, and always_inserted_enums.
10 Change always_inserted_mode's type to 'enum auto_boolean'.
11 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
12 callers.
13 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
14 of add_setshow_enum_cmd.
15 * infrun.c: Remove can_use_displaced_stepping_auto,
16 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
17 can_use_displaced_stepping_enum.
18 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
19 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
20 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
21 add_setshow_enum_cmd.
22
42e7ad6c
DE
232012-06-30 Doug Evans <dje@google.com>
24
25 * dwarf2read.c (signatured_type): Make "per_cu" member first.
26 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
27 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
28
39cf75f7
DE
292012-06-29 Doug Evans <dje@google.com>
30
31 * linespec.c: #include "stack.h".
32 (decode_line_with_current_source): Moved here from symtab.c and
33 renamed from decode_line_spec. All callers updated.
34 (decode_line_with_last_displayed): Moved here from breakpoint.c and
35 renamed from decode_line_spec_1. All callers updated.
36 * linespec.h (decode_line_with_current_source): Move declaration here
37 from symtab.h and renamed from decode_line_spec.
38 (decode_line_with_last_displayed): Move declaration here from symtab.h
39 and renamed from decode_line_spec_1.
40 * macrocmd.c: #include "linespec.h".
41 * symtab.c: Remove #include "linespec.h".
42
433df2d4
DE
432012-06-28 Doug Evans <dje@google.com>
44
1ce1cefd
DE
45 * dwarf2read.c (get_cu_length): New function.
46 (offset_in_cu_p, error_check_comp_unit_head): Call it.
47 (create_debug_types_hash_table): Ditto.
48 (init_cutu_and_read_dies): Ditto.
49 (init_cutu_and_read_dies_no_follow): Ditto.
50
3b80fe9b
DE
51 * dwarf2read.c (dwarf2_find_base_address): Move definition.
52
433df2d4
DE
53 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
54 (struct abbrev_table): Define.
55 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
56 abbrev_table.
57 (init_cutu_and_read_dies): Update.
58 (abbrev_table_alloc_abbrev): New function. Replaces
59 dwarf_alloc_abbrev. All callers updated.
60 (abbrev_table_add_abbrev): New function.
61 (abbrev_table_lookup_abbrev): New function. Replaces
62 dwarf2_lookup_abbrev. All callers updated.
63 (abbrev_table_read_table): New function. Contents moved here from
64 dwarf2_read_abbrevs.
65 (dwarf2_read_abbrevs): Call it.
66 (abbrev_table_free): New function.
67 (dwarf2_free_abbrev_table): Call it.
68
71caed83
SS
692012-06-28 Stan Shebs <stan@codesourcery.com>
70
71 * osdata.c (info_osdata_command): Filter out "Title" columns
72 from non-MI uses.
73 * common/linux-osdata.c (struct osdata_type): Add title field.
74 (osdata_table): Add titles to each entry.
75 (linux_command_xfer_osdata): Add a column for title data.
76
37ce89eb
SS
772012-06-28 Stan Shebs <stan@codesourcery.com>
78
79 Make logging work for MI.
80 * NEWS: Mention it.
81 * interps.h (interp_set_logging_ftype): New typedef.
82 (struct interp_procs): New field set_logging_proc.
83 (current_interp_set_logging): Declare.
84 * interps.c (current_interp_set_logging): New function.
85 * cli/cli-logging.c: Include interps.h.
86 (set_logging_redirect): Call current_interp_set_logging.
87 (pop_output_files): Ditto.
88 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
89 * mi/mi-console.h (mi_console_set_raw): Declare.
90 * mi/mi-console.c (mi_console_set_raw): New function.
91 * mi/mi-interp.c (saved_raw_stdout): New global.
92 (mi_set_logging): New function.
93 (_initialize_mi_interp): Add it to interp procs.
94
659c9f3a
DE
952012-06-28 Doug Evans <dje@google.com>
96
a743abeb
DE
97 * symtab.c (lookup_symbol_aux_objfile): Use
98 ALL_OBJFILE_PRIMARY_SYMTABS.
99
659c9f3a
DE
100 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
101
da2d6d3d
JK
1022012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
103
104 * common/buffer.c: Include inttypes.h and stdint.h.
105 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
106
e5ef252a
PA
1072012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
108 Pedro Alves <palves@redhat.com>
109
110 * gdbthread.h (ALL_THREADS): New macro.
111 (thread_list): Declare.
112 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
113 going, but instead fall through to the stepping handling.
114 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
115 the passed in signal. Adjust debug output.
116 (resume_callback): Rename to ...
117 (linux_nat_resume_callback): ... this. Pass the thread's last
118 stop signal, if in "pass" state.
119 (linux_nat_resume): Adjust to rename.
120 (stop_wait_callback): New assertion. Don't respawn signals;
121 instead let the LWP remain with SIGNALLED set.
122 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
123 * remote.c (append_pending_thread_resumptions): New.
124 (remote_vcont_resume): Call it.
125 * target.h (target_resume): Extend comment.
126
1d7975eb
IS
1272012-06-28 Iain Sandoe <iain@codesourcery.com>
128
129 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
130
2e3cf129
DE
1312012-06-27 Doug Evans <dje@google.com>
132
133 * dwarf2read.c (dwarf2_cu): Add ranges_base.
134 Delete have_addr_base, unused. All uses updated.
135 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
136 (dwarf2_get_pc_bounds): Add ranges_base.
137 (dwarf2_record_block_ranges): Ditto.
138
1bb9788d
TT
1392012-06-27 Tom Tromey <tromey@redhat.com>
140
141 PR macros/7961:
142 * varobj.c (varobj_create): Update.
143 (varobj_set_value): Update.
144 * tracepoint.c (validate_actionline): Update.
145 (encode_actions_1): Update.
146 * parse.c (parse_exp_1): Add 'pc' argument.
147 (parse_exp_in_context): Add 'pc' argument. Change how
148 expression_context_pc is set.
149 (parse_expression): Update.
150 (parse_field_expression): Update.
151 * expression.h (parse_exp_1): Update.
152 * eval.c (parse_to_comma_and_eval): Update.
153 * breakpoint.c (set_breakpoint_condition): Update.
154 (update_watchpoint): Update.
155 (init_breakpoint_sal): Update
156 (find_condition_and_thread): Update.
157 (watch_command_1): Update.
158 (update_breakpoint_locations): Update.
159 * ada-lang.c (ada_read_renaming_var_value): Update.
160 (create_excep_cond_exprs): Update.
161
0bc3a05c
DE
1622012-06-27 Doug Evans <dje@google.com>
163
164 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
165 type units.
166
4bdcc0c1
DE
1672012-06-26 Doug Evans <dje@google.com>
168
169 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
170 prototype.
171 (error_check_comp_unit_head): New arg abbrev_section. All callers
172 updated.
173 (read_and_check_comp_unit_head): Ditto.
174 (read_and_check_type_unit_head): Ditto.
175
ee0bf529
SCR
1762012-06-26 Siva Chandra Reddy <sivachandra@google.com>
177
178 New attribute 'last' for gdb.Symtab_and_line.
179 * NEWS (Python Scripting): Add entry about the new attribute.
180 * python/py-symtab.c (salpy_get_last): New function which
181 implements the get method for the 'last' attribute of
182 gdb.Symtab_and_line.
183 (sal_object_getset): Add entry for the 'last' attribute.
184
1c658ad5
DE
1852012-06-26 Doug Evans <dje@google.com>
186
09262596
DE
187 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
188 (dwo_sections): Add macinfo, macro.
189 (dwarf2_locate_dwo_sections): Watch for macro sections.
190 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
191 All callers updated. Handle DWO files.
192
45cfd468
DE
193 * NEWS: Mention new options "set debug dwarf2-read" and
194 "set debug symtab-create".
195 * dwarf2read.c (dwarf2_read_debug): New static global.
196 (dwarf2_build_psymtabs_hard): Add debugging printfs.
197 (process_queue): Ditto.
198 (process_full_comp_unit): Ditto.
199 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
200 * elfread.c (elf_symfile_read): Add debugging printf.
201 * minsyms.c (install_minimal_symbols): Ditto.
202 * psymtab.c (allocate_psymtab): Ditto.
203 * symfile.c (allocate_symtab): Ditto.
204 * symtab.c (symtab_create_debug): New global.
205 (_initialize_symtab): Add new option "set debug symtab-create".
206 * symtab.h (symtab_create_debug): Declare.
207
1c658ad5
DE
208 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
209 (lookup_dwo_type_unit): Ditto.
210
6fea9e18
L
2112012-06-26 Roland McGrath <roland@hack.frob.com>
212 H.J. Lu <hongjiu.lu@intel.com>
213
214 * amd64-linux-nat.c: Include <sys/user.h>.
215 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
216 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
217 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
218
219 * configure.ac: Check if the fs_base and gs_base members of
220 `struct user_regs_struct' exist.
221 * config.in: Regenerated.
222 * configure: Likewise.
223
adb4fe3b
ME
2242012-06-25 Michael Eager <eager@eagercon.com>
225
226 PR python/14291
227 * python/python.c (gdbpy_write): Check for interrupted output.
228
fc51cce1
MGD
2292012-06-25 Greta Yorsh <greta.yorsh@arm.com>
230
231 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
232 register as a stack alignment in ARM mode.
233
40a73391
JK
2342012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
235
236 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
237 * gnulib/config.in: Regenerate.
238 * gnulib/configure: Likewise.
239 * gnulib/import/m4/extensions.m4: Update it.
240 * gnulib/import/m4/gnulib-common.m4: Likewise.
241 * gnulib/import/m4/memmem.m4: Likewise.
242 * gnulib/import/m4/mmap-anon.m4: Likewise.
243 * gnulib/import/m4/multiarch.m4: Likewise.
244 * gnulib/import/stdint.in.h: Likewise.
245
972daa01
YQ
2462012-06-24 Yao Qi <yao@codesourcery.com>
247
248 * corefile.c (write_memory_with_notification): New.
249 * gdbcore.h: Declare write_memory_with_notification.
250 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
251 'observer_notify_memory_changed' with 'write_memory_with_notification'.
252 * valops.c (value_assign): Likewise.
253 * python/py-inferior.c (infpy_write_memory): Call
254 'write_memory_with_notification'.
255
8d6e0714
JK
2562012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
257
258 * cc-with-index.sh: Use also -ex "set auto-load no".
259
156942c7
DE
2602012-06-23 Doug Evans <dje@google.com>
261
262 PR 14125
263 * NEWS: Document additions to .gdb_index.
264 * dwarf2read.c: #include "gdb/gdb-index.h".
265 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
266 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
267 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
268 (dwarf2_read_index): Recognize version 7.
269 (dw2_do_expand_symtabs_matching): New args want_specific_block,
270 block_kind, domain): All callers updated.
271 (dw2_find_symbol_file): Handle new index CU values.
272 (dw2_expand_symtabs_matching): Match symbol kind if requested.
273 (add_index_entry): New args is_static, kind. All callers updated.
274 (offset_type_compare, uniquify_cu_indices): New functions
275 (symbol_kind): New function.
276 (write_psymtabs_to_index): Remove duplicate CU values.
277 (write_psymtabs_to_index): Write .gdb_index version 7.
278
352b3eda
JB
2792012-06-22 Joel Brobecker <brobecker@adacore.com>
280
281 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
282 * configure: Regenerate.
283
2678e2af
YQ
2842012-06-20 Yao Qi <yao@codesourcery.com>
285
286 * python/py-inferior.c: Update comments of infpy_read_memory
287 and infpy_write_memory.
288
95c391b6
TT
2892012-06-19 Tom Tromey <tromey@redhat.com>
290
291 PR exp/9514:
292 * parser-defs.h (insert_type, insert_type_address_space): Declare.
293 (push_type_address_space): Remove.
294 * parse.c (insert_into_type_stack): New function.
295 (insert_type): Likewise.
296 (insert_type_address_space): Rename from push_type_address_space.
297 Insert tp_space_identifier.
298 * c-exp.y (ptr_operator): New production.
299 (abs_decl): Use ptr_operator.
300 (space_identifier): Call insert_type_address_space.
301 (ptype): Don't use const_or_volatile_or_space_identifier.
302 (const_or_volatile_noopt): Call insert_type.
303 (conversion_type_id, conversion_declarator): New productions.
304 (operator): Use conversion_type_id.
305
6ac9ef80
DE
3062012-06-18 Doug Evans <dje@google.com>
307
422d65e7
DE
308 * symtab.h (minimal_symbol): New member created_by_gdb.
309 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
310 created by gdb.
311 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
312 (search_symbols): Call it instead of lookup_symbol.
313 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
314
49f6c839
DE
315 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
316 Adjust address for DW_OP_GNU_addr_index.
317 * dwarf2expr.h (dwarf_expr_context): Update comment.
318 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
319 all callers updated. Handle TLS vars described with
320 DW_OP_GNU_const_index.
321 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
322 and DW_OP_GNU_const_index.
323 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
324
6ac9ef80
DE
325 * block.c (find_block_in_blockvector): Make explicit the fact that we
326 ignore GLOBAL_BLOCK.
327
4cd18215
TT
3282012-06-18 Tom Tromey <tromey@redhat.com>
329
330 * c-exp.y (operator): Remove trailing space after "delete" and
331 "delete[]".
332
a9b8d892
JK
3332012-06-18 Mark Kettenis <kettenis@gnu.org>
334 Jan Kratochvil <jan.kratochvil@redhat.com>
335
336 Switch i386 and derived targets to ON_STACK.
337 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
338 (amd64_dicos_init_abi): Remove its installment.
339 * dicos-tdep.c (dicos_init_abi): Remove the
340 set_gdbarch_call_dummy_location call. Update the comment here.
341 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
342 (i386_dicos_init_abi): Remove its installment.
343 * i386-tdep.c (i386_push_dummy_code): New function.
344 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
345 i386_push_dummy_code.
346
e2e4d78b
JK
3472012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
348
349 Remove stale dummy frames.
350 * breakpoint.c: Include dummy-frame.h.
351 (longjmp_breakpoint_ops): New variable.
352 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
353 bp_longjmp_call_dummy.
354 (bpstat_what, bptype_string, print_one_breakpoint_location)
355 (init_bp_location): Support bp_longjmp_call_dummy.
356 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
357 (set_longjmp_breakpoint_for_call_dummy)
358 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
359 functions.
360 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
361 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
362 FIXME comment and extend the other comment for bp_call_dummy.
363 (set_longjmp_breakpoint_for_call_dummy)
364 (check_longjmp_breakpoint_for_call_dummy): New declarations.
365 * dummy-frame.c: Include gdbthread.h.
366 (pop_dummy_frame_bpt): New function.
367 (pop_dummy_frame): Call pop_dummy_frame_bpt.
368 (dummy_frame_discard): New function.
369 (cleanup_dummy_frames): Update the comment about longjmps.
370 * dummy-frame.h (dummy_frame_discard): New declaration.
371 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
372 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
373 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
374 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
375 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
376 keep_going if IS_LONGJMP and there is no other reason to stop.
377
09d5912c
TT
3782012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
379
380 * remote-sim.c (sim_command_completer): Initialize
381 variable 'result'.
382
1788b2d3
JK
3832012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
384
385 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
386 * dwarf2loc.c (call_site_parameter_matches): Support
387 CALL_SITE_PARAMETER_PARAM_OFFSET.
388 (needs_dwarf_reg_entry_value): Push stub value.
389 * dwarf2read.c (read_call_site_scope): New variable origin. Support
390 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
391 * gdbtypes.h (enum call_site_parameter_kind): New item
392 CALL_SITE_PARAMETER_PARAM_OFFSET.
393 (struct call_site.parameter.u): New field param_offset.
394
24c5c679
JK
3952012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
396
397 Code cleanup: Generalize call_site.parameter key.
398 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
399 variable dwarf_reg. New variable kind_u. Update parameters to
400 push_dwarf_reg_entry_value.
401 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
402 * dwarf2expr.h (enum call_site_parameter_kind)
403 (union call_site_parameter_u): Forward declarations.
404 (struct dwarf_expr_context_funcs): Update parameters and their
405 description for push_dwarf_reg_entry_value.
406 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
407 * dwarf2loc.c (call_site_parameter_matches): New function.
408 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
409 description. Use call_site_parameter_matches.
410 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
411 Update parameters and their description.
412 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
413 New variable kind_u. Adjust the caller for updated parameters.
414 (needs_dwarf_reg_entry_value): Update parameters.
415 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
416 instead of attr. Update for the changed fields of struct
417 call_site_parameter.
418 * gdbtypes.h: Include dwarf2expr.h.
419 (enum call_site_parameter_kind): New.
420 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
421 fb_offset into new union u.
422
ac142d96
L
4232012-06-16 H.J. Lu <hongjiu.lu@intel.com>
424
425 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
426 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
427 for x32.
428
ba224c70
L
4292012-06-16 H.J. Lu <hongjiu.lu@intel.com>
430
431 * amd64-linux-nat.c (compat_x32_clock_t): New.
432 (compat_x32_siginfo_t): Likewise.
433 (compat_x32_siginfo_from_siginfo): Likewise.
434 (siginfo_from_compat_x32_siginfo): Likewise.
435 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
436 and siginfo_from_compat_x32_siginfo for x32.
437
7ecbc825
HZ
4382012-06-15 Hui Zhu <hui_zhu@mentor.com>
439
440 * tracepoint.c (tfile_xfer_partial): Add a lseek.
441
233dfcf0
L
4422012-06-15 H.J. Lu <hongjiu.lu@intel.com>
443
444 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
445 instead of gdbarch_ptr_bit.
446 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
447 (amd64_supply_native_gregset): Likewise.
448 (amd64_collect_native_gregset): Likewise.
449 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
450 (amd64_supply_xsave): Likewise.
451 (amd64_collect_fxsave): Likewise.
452 (amd64_collect_xsave): Likewise.
453
6da38f42
L
4542012-06-15 H.J. Lu <hongjiu.lu@intel.com>
455
456 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
457 (amd64_linux_read_description): Check DS segment register for
458 x32 process.
459
663b969e
TT
4602012-06-15 Tom Tromey <tromey@redhat.com>
461
462 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
463 init_cutu_and_read_dies.
464
d6f05027
IS
4652012-06-15 Iain Sandoe <iain@codesourcery.com>
466
467 * MAINTAINERS (Write After Approval): Add myself to the list.
468
6598ed07
TT
4692012-06-15 Tom Tromey <tromey@redhat.com>
470
471 * valops.c (value_find_oload_method_list): Now static.
472 * value.h (value_find_oload_method_list): Don't declare.
473
2b214ea6
TT
4742012-06-15 Tom Tromey <tromey@redhat.com>
475
476 * valops.c (find_overload_match): Use value_ind.
477
a210c238
MR
4782012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
479
480 * infrun.c (handle_inferior_event): Correct indentation.
481
3771a44c
DE
4822012-06-14 Doug Evans <dje@google.com>
483
484 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
485 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
486 All uses updated.
487 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
488 updated. Handle DEBUG_LOC_START_LENGTH.
489 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
490 (loclist_describe_location): Ditto.
491
1c5a993e
MR
4922012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
493
494 PR backtrace/13866
495 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
496 after hiding inline functions.
497
0b155465
JB
4982012-06-13 Joel Brobecker <brobecker@adacore.com>
499
500 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
501 _initialize_inf_ttrace.
502
45717bac
JB
5032012-06-13 Joel Brobecker <brobecker@adacore.com>
504
505 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
506 _initialize_hppa_hpux_nat.
507
34370865
JB
5082012-06-13 Joel Brobecker <brobecker@adacore.com>
509
510 * remote-sim.c (sim_command_completer): Change type of return
511 value to "VEC (char_ptr) *". Adjust implementation accordingly.
512
284c5a60
MK
5132012-06-13 Mark Kettenis <kettenis@gnu.org>
514 Jan Kratochvil <jan.kratochvil@redhat.com>
515
516 PR tdep/14222
517 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
518 stack on a 16-byte boundary.
519
2535757a
TT
5202012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
521
522 * jit.c (finalize_symtab): Set function's return type to 'void' by
523 default.
524
fff4548b
MK
5252012-06-13 Mark Kettenis <kettenis@gnu.org>
526 H.J. Lu <hongjiu.lu@intel.com>
527
5a83521a
MK
528 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
529 Move bits common to both the classic LP64 and the new x32 ILP32
530 ABI here.
531 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
532 (amd64_x32_linux_init_abi): New function.
533 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
534 subtype.
535
fff4548b
MK
536 * i386-tdep.h (i386_pseudo_register_name): New prototype.
537 * i386-tdep.c (i386_pseudo_register_name): Make public.
538 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
539 * amd64-tdep.c (amd64_dword_names): Add "eip".
540 (amd64_x32_pseudo_register_type): New function
541 (amd64_x32_init_abi): New function.
542
dd80ea3c
JK
5432012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
544
545 PR build/14003
546 * inferior.h (struct inferior_suspend_state): Comment out.
547 (struct inferior): Comment out the field suspend.
548 * infrun.c (struct infcall_suspend_state): Comment out the field
549 inferior_suspend.
550 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
551 out its assignment.
552
50af5481
JK
5532012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
554
555 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
556 * c-exp.y (classify_inner_name): Remove caller assumptions in the
557 function comment. Return ERROR for unresolved cases. Implement
558 returning proper NAME.
559 (yylex): Accept also NAME from classify_inner_name.
560 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
561 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
562 LOC_TYPEDEF type.
563 * cp-support.h (cp_lookup_nested_type): Update its declaration.
564
d55637df
TT
5652012-06-13 Tom Tromey <tromey@redhat.com>
566
567 * breakpoint.c (condition_completer): New function.
568 (_initialize_breakpoint): Use it.
569 * value.c (complete_internalvar): New function.
570 * value.h (complete_internalvar): Declare.
571
49c4e619
TT
5722012-06-13 Tom Tromey <tromey@redhat.com>
573
574 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
575 * breakpoint.c (catch_syscall_completer): Return a VEC.
576 * cli/cli-cmds.c (complete_command): Update.
577 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
578 (complete_on_enum): Likewise.
579 * command.h: Include gdb_vecs.h.
580 (completer_ftype): Change return type.
581 (complete_on_cmdlist, complete_on_enum): Likewise.
582 * completer.c (noop_completer, filename_completer)
583 (location_completer): Return a VEC.
584 (add_struct_fields): Remove 'nextp' argument. Change 'output'
585 to a VEC.
586 (expression_completer, complete_line_internal, complete_line)
587 (command_completer): Return a VEC.
588 (gdb_completion_word_break_characters, line_completion_function):
589 Update.
590 * completer.h: Include gdb_vecs.h.
591 (complete_line, noop_completer, filename_completer)
592 (expression_completer, location_completer, command_completer):
593 Update.
594 * f-lang.c (f_word_break_characters): Return a VEC.
595 * interps.c (interpreter_completer): Return a VEC.
596 * language.h (struct language_defn)
597 <la_make_symbol_completion_list>: Return a VEC.
598 * python/py-cmd.c (cmdpy_completer): Return a VEC.
599 * symtab.c (free_completion_list): Take a VEC.
600 (return_val_size, return_val_index): Remove.
601 (return_val): Now a VEC.
602 (completion_list_add_name): Update.
603 (default_make_symbol_completion_list_break_on)
604 (default_make_symbol_completion_list, make_symbol_completion_list)
605 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
606 Return a VEC.
607 (add_filename_to_list): Update.
608 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
609 <list>: Now a VEC.
610 (maybe_add_partial_symtab_filename): Update.
611 (make_source_files_completion_list): Return a VEC.
612 * symtab.h (default_make_symbol_completion_list_break_on)
613 (default_make_symbol_completion_list, make_symbol_completion_list)
614 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
615 (make_source_files_completion_list): Update.
616
625e8578
TT
6172012-06-13 Tom Tromey <tromey@redhat.com>
618
619 * breakpoint.c (add_catch_command): Use completer_ftype.
620 * breakpoint.h: Include command.h.
621 (add_catch_command): Use completer_ftype.
622 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
623 * cli/cli-decode.h (struct cmd_list_element) <completer>:
624 Use completer_ftype.
625 * command.h (completer_ftype): New typedef.
626 (set_cmd_completer): Use it.
627 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
628 completer_ftype.
629
5eb3b062
PA
6302012-06-13 Pedro Alves <palves@redhat.com>
631
632 Partial revert of previous change.
633
634 * serial.c (scb_base): New global.
635 (serial_for_fd): New.
636 (serial_open, serial_fdopen_ops): Link new serial in open serials
637 chain.
638 (do_serial_close): Unlink serial from the open serials chain.
639
8b3ee56d
PA
6402012-06-12 Pedro Alves <palves@redhat.com>
641
642 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
643 threads here.
644 (prepare_for_detach): No longer context switch here in non-stop
645 mode.
646 (fetch_inferior_event): Ditto.
647 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
648 to the event thread before removing breakpoints. Switch to the
649 event thread before inserting breakpoints and resuming.
650 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
651 event thread before resuming.
652 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
653 Switch to the event thread before removing breakpoints.
654
5d60742e
EZ
6552012-06-12 Eli Zaretskii <eliz@gnu.org>
656
657 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
658 special characters correctly for the Windows shells. See
659 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
660 report.
661 [!__MINGW32__]: Remove extra double quote character from special
662 characters.
663
a6feecf7
SS
6642012-06-11 Stan Shebs <stan@codesourcery.com>
665
666 * ui-out.h: Remove #if 0 declarations.
667 * ui-out.c: Remove #if 0 functions.
668
ddefb60f
PA
6692012-06-11 Pedro Alves <palves@redhat.com>
670
671 * ser-base.c (run_async_handler_and_reschedule): New.
672 (fd_event, push_event): Use it.
673 * serial.c (serial_open, serial_fdopen_ops): Set the initial
674 reference count to 1.
675 (do_serial_close): Set the bufp field to NULL. Use serial_unref
676 instead of xfree.
677 (serial_is_open, serial_ref, serial_unref): New.
678 * serial.h (serial_open): Adjust comment.
679 (serial_is_open): Declare.
680 (serial_close): Adjust comment.
681 (serial_ref, serial_unref) Declare.
682 (struct serial): New field 'refcnt'.
683
d5ad6aa5
PA
6842012-06-11 Pedro Alves <palves@redhat.com>
685
686 Remove #if 0'd "connect" command, and unnecessary associated
687 refcounting and serial reuse bits.
688
689 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
690 * serial.c (last_serial_opened): Delete.
691 (scb_base): Delete.
692 (serial_open): Adjust.
693 (serial_for_fd): Delete.
694 (serial_fdopen_ops, do_serial_close): Adjust.
695 (serial_fdopen_ops): Adjust.
696
318aa544
PA
6972012-06-11 Pedro Alves <palves@redhat.com>
698
699 * serial.c (do_serial_close): Remove early return when SCB is
700 null.
701
07261596
TT
7022012-06-11 Tom Tromey <tromey@redhat.com>
703
704 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
705
cc80f267
JK
7062012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
707
708 Fix regression by the "ambiguous linespec" series.
709 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
710 get_last_displayed_symtab and get_last_displayed_line and depending
711 on CURSAL.
712
356d9f9d
TT
7132012-06-11 Tom Tromey <tromey@redhat.com>
714
715 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
716 (dw2_find_symbol_file): Use it.
717
232b8704
ME
7182012-06-11 Michael Eager <eager@eagercon.com>
719
720 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
721 * mips-linux-tdep.h (mips_signals): New
722
e81a37f7
TT
7232012-06-11 Tom Tromey <tromey@redhat.com>
724
725 * infrun.c (handle_inferior_event)
726 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
727 breakpoint.
728 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
729 exception logic in all cases. Update comments.
730 (insert_longjmp_resume_breakpoint): Set the exception resume
731 breakpoint.
732
2e81047f
MR
7332012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
734
735 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
736
4e32eda7
SCR
7372012-06-09 Siva Chandra Reddy <sivachandra@google.com>
738
739 * valarith.c (binop_types_user_defined_p): Fix a typo.
740
18648a37
YQ
7412012-06-08 Yao Qi <yao@codesourcery.com>
742 Chung-Lin Tang <cltang@codesourcery.com>
743
744 * arch-utils.c (default_return_in_first_hidden_param_p): New.
745 * arch-utils.h: Declare.
746 * gdbarch.sh: Add return_in_first_hidden_param_p.
747 * gdbarch.c, gdbarch.h: Regenerated.
748 * infcall.c (call_function_by_hand): Call
749 gdbarch_return_in_first_hidden_param_p instead of
750 language_pass_by_reference.
751
752 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
753 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
754 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
755 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
756 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
757 `cplus_return_struct_by_reference'.
758 (tic6x_return_value): Handle language cplusplus.
759 (tic6x_return_in_first_hidden_param_p): New.
760 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
761
034e5797
DE
7622012-06-07 Doug Evans <dje@google.com>
763
764 * dwarf2read.c (dwarf2_cu): Add comment.
765
6a00aa1e
MR
7662012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
767
768 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
769 variable.
770 (mips_eabi_push_dummy_call): Likewise.
771 (mips_n32n64_push_dummy_call): Likewise.
772 (mips_o32_push_dummy_call): Likewise.
773 (mips_o64_push_dummy_call): Likewise.
774
eaa05d59
MR
7752012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
776
777 * mips-tdep.c (mips_convert_register_p): Correct coding style.
778
de13fcf2
MR
7792012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
780
781 * mips-tdep.c (mips_pseudo_register_type): Use
782 mips_float_register_p.
783
c3a01a22
PA
7842012-06-06 Pedro Alves <palves@redhat.com>
785
786 * infrun.c (handle_inferior_event): Remove calls to
787 reinit_frame_cache that follow a context_switch call.
788
d25f45d9
PA
7892012-06-06 Pedro Alves <palves@redhat.com>
790
791 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
792 context_switch and remove stale comment.
793
359f5fe6
PA
7942012-06-06 Pedro Alves <palves@redhat.com>
795
796 * infrun.c (struct execution_control_state): Remove
797 `new_thread_event' field.
798 (handle_inferior_event): Simplify new threads handling; don't
799 resume the inferior if we find a new thread.
800
2d4c29c5
TS
8012012-06-06 Thomas Schwinge <thomas@codesourcery.com>
802
803 * NEWS: Document the deprecation of SH's 'regs' command.
804 * inferior.h (all_registers_info): Add function declaration.
805 * sh-tdep.c (sh_show_regs): Remove variable.
806 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
807 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
808 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
809 (sh_show_regs_command): Remove functions.
810 (sh_gdbarch_init): Don't set sh_show_regs.
811 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
812 'info all-registers'.
813 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
814 (sh64_show_regs): Remove functions.
815 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
816
f5f1cdb6
JK
8172012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
818
819 * configure.ac: Move development=true below AC_INIT.
820 * configure: Regenerate.
821
bf6309af
SS
8222012-06-05 Stan Shebs <stan@codesourcery.com>
823
824 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
825 gdb_stdout.
826
45aa4659
JK
8272012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
828
829 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
830 argument as ssize_t.
831 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
832 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
833 * target.c (target_read_stack, target_write_memory)
834 (target_write_raw_memory): Likewise.
835 * target.h (target_read_stack, target_write_memory)
836 (target_write_raw_memory): Likewise.
837
1b162304
JK
8382012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
839
840 * symfile-mem.c: Change gdb_static_assert to ssize_t.
841 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
842 * target.c (target_read_memory): Change LEN to ssize_t.
843 * target.h (target_read_memory): Change LEN to ssize_t.
844
8556afb4
PA
8452012-06-05 Pedro Alves <palves@redhat.com>
846
847 PR backtrace/13866
848
849 * breakpoint.c (until_break_command): Only fetch the selected
850 frame after decode_line_1.
851
fb139f32
PA
8522012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
853
854 * solib-svr4.c (enable_break): Don't fallback to setting the solib
855 event breakpoint at _start, __start or main if a program
856 interpreter is not found.
857
a8e1bb34
JB
8582012-06-05 Joel Brobecker <brobecker@adacore.com>
859
860 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
861 Add declaration.
862 * windows-tdep.c: #include "objfiles.h".
863 (windows_iterate_over_objfiles_in_search_order): New function.
864 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
865 iterate_over_objfiles_in_search_order gdbarch method to
866 windows_iterate_over_objfiles_in_search_order.
867 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
868
19630284
JB
8692012-06-05 Joel Brobecker <brobecker@adacore.com>
870
871 * gdbarch.sh: Add generation of
872 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
873 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
874 (iterate_over_objfiles_in_search_order): New gdbarch method.
875 * gdbarch.h, gdbarch.c: Regenerate.
876 * objfiles.h (default_iterate_over_objfiles_in_search_order):
877 Add declaration.
878 * objfiles.c (default_iterate_over_objfiles_in_search_order):
879 New function.
880 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
881 out of lookup_symbol_aux_symtabs.
882 (lookup_symbol_aux_symtabs): Replace extracted-out code by
883 call to lookup_symbol_aux_objfile.
884 (struct global_sym_lookup_data): New type.
885 (lookup_symbol_global_iterator_cb): New function.
886 (lookup_symbol_global): Search for symbol using
887 gdbarch_iterate_over_objfiles_in_search_order and
888 lookup_symbol_global_iterator_cb.
889 * findvar.c (struct minsym_lookup_data): New type.
890 (minsym_lookup_iterator_cb): New function.
891 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
892 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
893 and minsym_lookup_iterator_cb.
894
67ff19f7
JB
8952012-06-05 Joel Brobecker <brobecker@adacore.com>
896
897 Revert the following patch:
898 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
899 try locating the symbol in the symbol's own objfile first, before
900 extending the search to all objfiles.
901 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
902 out of lookup_symbol_aux_symtabs.
903 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
904 Replace extracted-out code by call to lookup_symbol_aux_objfile.
905 Do not search EXCLUDE_OBJFILE.
906 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
907 (lookup_symbol_global): Search for matches in the block's objfile
908 first, before searching all other objfiles.
909
ccab2054
JB
9102012-06-05 Joel Brobecker <brobecker@adacore.com>
911
912 * breakpoint.c (find_condition_and_thread): Stop parsing
913 as soon as the first invalid keyword is found.
914
e23d4a9c
JB
9152012-06-05 Joel Brobecker <brobecker@adacore.com>
916
917 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
918
70160166
JB
9192012-06-05 Joel Brobecker <brobecker@adacore.com>
920
921 * config/djgpp/djcheck.sh: Add copyright header.
922
399501a5
JB
9232012-06-05 Joel Brobecker <brobecker@adacore.com>
924
925 * copyright.py (update_files, main): Fix path to update-copyright
926 script.
927
3770a159
JB
9282012-06-05 Joel Brobecker <brobecker@adacore.com>
929
930 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
931 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
932 for which a reminder to update by hand is printed.
933
4aad0dfc
DE
9342012-06-04 Doug Evans <dje@google.com>
935
936 * buildsym.c (make_blockvector): Add comment.
937
1f8cf220
PA
9382012-06-04 Pedro Alves <palves@redhat.com>
939
940 * arch-utils.c (default_gdb_signal_from_target): Delete.
941 * arch-utils.h (default_gdb_signal_from_target): Delete.
942 * corelow.c (core_open) <signal mapping>: Extended comment. Check
943 gdbarch_gdb_signal_from_target_p.
944 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
945 predicate).
946 * gdbarch.h: Regenerate.
947 * gdbarch.c: Regenerate.
948
86b49880
PA
9492012-06-04 Pedro Alves <palves@redhat.com>
950
951 * gdbarch.sh (gdb_signal_from_target): Mention that the
952 implementation of the method must be host independent.
953 * gdbarch.h: Regenerate.
954
fe78531d
JK
9552012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
956
957 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
958 parameters.
959 (target_read_memory_bfd): New function.
960 (symbol_file_add_from_memory): Use it.
961
d790cf0a
DE
9622012-06-03 Doug Evans <dje@google.com>
963
78e5175a
DE
964 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
965 of primary symtab.
966 (basic_lookup_transparent_type): Ditto.
967
d790cf0a
DE
968 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
969 (ALL_PRIMARY_SYMTABS): Use it.
970 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
971 * dwarf2read.c (dw2_find_symbol_file): Ditto.
972 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
973 * symtab.c (lookup_symbol_aux_objfile): Ditto.
974 (basic_lookup_transparent_type): Ditto.
975
c6e5ee5e
SDJ
9762012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
977
978 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
979 it to optimize resolution of demangled name.
980
a68ffae9
JK
9812012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
982
983 * configure.ac (development): Define new variable.
984 Call AC_CHECK_LIB for mcheck if $development.
985 (ERROR_ON_WARNING): Enable it by default only if $development.
986 * config.in: Regenerate.
987 * configure: Regenerate.
988
5299c1c4
JK
9892012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
990
991 * target.c (target_read_memory): Make LEN argument as size_t.
992 * target.h (target_read_memory): Likewise.
993
9942012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
995
996 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
997
0c56f59b
EBM
9982012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
999
1000 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
1001 BookE interface for PowerPC server processors if not available
1002 in the Linux Kernel.
1003
71bdabee
KS
10042012-05-31 Keith Seitz <keiths@redhat.com>
1005
1006 * linespec.c (decode_objc): Add cleanup to free
1007 INFO.FILE_SYMTABS.
1008 (find_linespec_symbols): Add cleanup to free CLASSES.
1009 * symfile.c (find_separate_debug_file_by_debuglink): Add
1010 cleanup to free DEBUGLINK.
1011 * ui-out.c (clear_header_list): No need to check if
1012 HEADER_NEXT.COLHDR is NULL.
1013 Free HEADER_NEXT.COL_NAME.
1014
acbd605d
MGD
10152012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1016
1017 * ada-lang.c (standard_lookup): Prevent uninitialized variable
1018 warning.
1019
65662cde
PA
10202012-05-30 Jeff Kenton <jkenton@tilera.com>
1021
1022 * configure.host (gdb_host_cpu): Handle tilegx*.
1023 (gdb_host): Handle tilegx-*-linux*.
1024 * tilegx-linux-nat.c: New file.
1025 * config/tilegx/linux.mh: New file.
1026
ade64f0e
PA
10272012-05-30 Jeff Kenton <jkenton@tilera.com>
1028
1029 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
1030 tilegx-linux-tdep.o.
1031 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
1032 tilegx-linux-tdep.c.
1033 * configure.tgt: Handle tilegx-*-linux*.
1034 * tilegx-tdep.h: New file.
1035 * tilegx-tdep.c: New file.
1036 * tilegx-linux-tdep.c: New file.
1037 * regformats/reg-tilegx.dat: New file.
1038
bb08bdbd
EBM
10392012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
1040
1041 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
1042 accounting of hw watchpoints on ppc.
1043
ebd86fb5
TJB
10442012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
1045
1046 * source.c (openp): Expand tilde in path entries.
1047
0a0edcd5
DE
10482012-05-29 Doug Evans <dje@google.com>
1049
98cc87bd
DE
1050 * buildsym.c (block_compar): Fix comment.
1051 (end_symtab): Fix and clarify some comments.
1052
0a0edcd5
DE
1053 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
1054 cleanup_undefined_types.
1055 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
1056 All callers updated.
1057
6f0c7050
TT
10582012-05-29 Tom Tromey <tromey@redhat.com>
1059
1060 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
1061 fails.
1062 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
1063 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
1064 fails.
1065 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
1066 fails.
1067
ec95993c
TG
10682012-05-29 Tristan Gingold <gingold@adacore.com>
1069
1070 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
1071 (struct darwin_info): ... New struct.
1072 (solib_darwin_pspace_data): New variable.
1073 (darwin_pspace_data_cleanup): New function.
1074 (get_darwin_info): Likewise.
1075 (darwin_dyld_version_ok, darwin_load_image_infos)
1076 (darwin_solib_get_all_image_info_addr_at_init)
1077 (darwin_solib_read_all_image_info_addr): Add info argument.
1078 Adjust code.
1079 (darwin_current_sos): Use per pspace structure.
1080 (darwin_solib_create_inferior_hook): Likewise.
1081 (darwin_clear_solib): Likewise.
1082 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
1083
ae25568b
PA
10842012-05-28 Pedro Alves <palves@redhat.com>
1085
1086 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
1087 block that uses them. Clear ecss before handling each event.
1088
0c5bf5a9
JK
10892012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1090
1091 * solib-svr4.c (svr4_current_sos): New comment on
1092 svr4_current_sos_via_xfer_libraries fall back.
1093
bfb05775
JK
10942012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1095
1096 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
1097 it as a fallback for TYPE_IS_OPAQUE.
1098 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
1099 symbols for lookup_symbol.
1100
685b1105
JK
11012012-05-24 John Steele Scott <toojays@toojays.net>
1102
1103 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
1104 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
1105 (producer_is_gxx_lt_4_6): Move the checking and caching to...
1106 (check_producer): ... this new function, which also checks for ICC
1107 and caches the result.
1108 (producer_is_icc): New function.
1109 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
1110 producer was ICC.
1111
22203bbf
PA
11122012-05-24 Pedro Alves <palves@redhat.com>
1113
1114 PR gdb/7205
1115
1116 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
1117 (default_gdb_signal_to_target): ... this. Add comment.
1118 (default_gdb_signal_from_host): Rename to ...
1119 (default_gdb_signal_from_target): ... this. Add comment.
1120 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
1121 (default_gdb_signal_to_target): ... this.
1122 (default_gdb_signal_from_host): Rename to ...
1123 (default_gdb_signal_from_target): ... this.
1124 * corelow.c (core_open): Adjust to naming change. Replace comment.
1125 * gdbarch.sh (gdb_signal_from_host): Rename to ...
1126 (gdb_signal_from_target): ... this. Adjust to
1127 default_gdb_signal_from_host naming change. Extend comment.
1128 (gdb_signal_to_host): Rename to ...
1129 (gdb_signal_to_target): ... this. Adjust to
1130 default_gdb_signal_to_host naming change.
1131 * gdbarch.h, gdbarch.c: Renegerate.
1132
a493e3e2
PA
11332012-05-24 Pedro Alves <palves@redhat.com>
1134
1135 PR gdb/7205
1136
1137 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1138
2ea28649
PA
11392012-05-24 Pedro Alves <palves@redhat.com>
1140
1141 PR gdb/7205
1142
1143 Replace target_signal with gdb_signal throughout.
1144
b09846a9
PA
11452012-05-24 Pedro Alves <palves@redhat.com>
1146
1147 PR tui/14159
1148
1149 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
1150 string, instead of reusing the va_list argument.
1151
e77c107e
TT
11522012-05-24 Tom Tromey <tromey@redhat.com>
1153
1154 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
1155 Remove.
1156
9fccedf7
DE
11572012-05-23 Doug Evans <dje@google.com>
1158
d50bd42b
DE
1159 * symtab.c (search_symbols): Formatting fixes.
1160 (print_symbol_info): Formatting fixes.
1161
9fccedf7
DE
1162 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
1163 int64_t change to leb128 API.
1164 (read_encoded_value, decode_frame_entry_1): Ditto.
1165 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
1166 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
1167 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1168 (execute_stack_op): Ditto.
1169 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
1170 (safe_read_uleb128, safe_read_sleb128): Ditto.
1171 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
1172 (dwarf2_compile_expr_to_ax): Ditto.
1173 (locexpr_describe_location_piece): Ditto.
1174 (disassemble_dwarf_expression): Ditto.
1175 (locexpr_describe_location_1): Ditto.
1176
f3e0e960
SS
11772012-05-23 Stan Shebs <stan@codesourcery.com>
1178 Kwok Cheung Yeung <kcy@codesourcery.com>
1179
1180 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
1181 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
1182 (mi-cmd-info.o): New rule.
1183 * osdata.h (info_osdata_command): New declaration.
1184 * osdata.c (info_osdata_command): Change to non-static.
1185 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
1186 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
1187 * mi/mi-cmd-info.c: New file.
1188
c51fe631
DE
11892012-05-23 Doug Evans <dje@google.com>
1190
71cddcc1
DE
1191 * symtab.c (search_symbols): Pass NULL for file_matcher to
1192 expand_symtabs_matching if there are no files to match.
1193
c51fe631
DE
1194 * gdbtypes.c (lookup_typename): Simplify.
1195
a79378d4
PA
11962012-05-23 Pedro Alves <palves@redhat.com>
1197
1198 * arch-utils.h (default_target_signal_to_host): Delete.
1199 * arch-utils.c (default_target_signal_to_host): Delete.
1200 * gdbarch.sh (target_signal_to_host): Remove.
1201 * gdbarch.h, gdbarch.c: Regenerate.
1202
f664829e
DE
12032012-05-22 Doug Evans <dje@google.com>
1204
1205 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
1206 "const gdb_byte *".
1207 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
1208 (execute_cfa_program): Update to match API of leb128 functions.
1209 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
1210 "const gdb_byte *".
1211 (read_unsigned_leb128, read_signed_leb128): Delete.
1212 (read_initial_length): Change type of buf argument to
1213 "const gdb_byte *".
1214 (read_encoded_value): Update to match API of leb128 functions.
1215 (decode_frame_entry): Change result to "const gdb_byte *", and
1216 similarly for "start" parameter.
1217 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
1218 (dwarf2_build_frame_info): Change local frame_ptr to
1219 "const gdb_byte *".
1220 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
1221 read_uleb128, read_sleb128. All callers updated.
1222 (safe_skip_leb128): New function.
1223 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
1224 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
1225 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
1226 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
1227 read_uleb128, read_sleb128.
1228 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1229 (execute_stack_op): Update to match API of leb128 functions.
1230 * dwarf2expr.h: #include "leb128.h".
1231 (read_uleb128, read_sleb128): Delete.
1232 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
1233 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
1234 * dwarf2loc.c (debug_loc_kind): New enum.
1235 (decode_debug_loc_addresses): New function.
1236 (decode_debug_loc_dwo_addresses): New function.
1237 (dwarf2_find_location_expression): Rewrite.
1238 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
1239 (locexpr_describe_location_piece): Ditto.
1240 (disassemble_dwarf_expression): Ditto.
1241 (locexpr_describe_location_1): Ditto.
1242 (loclist_describe_location): Rewrite.
1243 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
1244 * dwarf2read.c (die_reader_specs): New member "buffer_end".
1245 (dwarf2_section_buffer_overflow_complaint): Renamed from
1246 dwarf2_macros_too_long_complaint. All callers updated.
1247 (skip_leb128): Delete.
1248 (init_cu_die_reader): Initialize reader->buffer_end.
1249 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
1250 (skip_form_bytes): New arg buffer_end. All callers updated.
1251 Replace call to skip_leb128 with gdb_skip_leb128.
1252 (skip_unknown_opcode): New arg mac_end. All callers updated.
1253 (fill_in_loclist_baton): Initialize baton->from_dwo.
1254
837a1b32
MR
12552012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1256
1257 * mips-linux-nat.c (mips_linux_read_description): Use a more
1258 verbose error message.
1259
d0e64392
MR
12602012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1261
1262 * NEWS: Add MIPS/Linux DSP support.
1263 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
1264 (SIGCONTEXT_DSPCTL): New macro.
1265 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
1266 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
1267 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
1268 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
1269 (N64_SIGCONTEXT_HI3): Likewise.
1270 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
1271 (N64_SIGCONTEXT_LO3): Likewise.
1272 (N64_SIGCONTEXT_DSPCTL): Likewise.
1273 (N64_SIGCONTEXT_FPCSR): Clarify definition.
1274 (mips_linux_o32_sigframe_init): Handle DSP registers.
1275 (mips_linux_n32n64_sigframe_init): Likewise.
1276
8bea7ed1
PM
12772012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1278
1279 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
1280 call to abort.
1281
dab06dbe
PA
12822012-05-22 Pedro Alves <palves@redhat.com>
1283
1284 * target.h (store_waitstatus): Move declaration ...
1285 * inf-child.h (store_waitstatus): ... here.
1286 * target.c: Move inclusion of gdb_wait.h, and ...
1287 (store_waitstatus): ... this ...
1288 * inf-child.c: ... here.
1289 * linux-nat.c: Include inf-child.h.
1290 * rs6000-nat.c: Include inf-child.h.
1291 * spu-linux-nat.c: Include inf-child.h.
1292
43011e52
PM
12932012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1294
1295 * tracepoint.c (start_tracing): Add missing i18n markup.
1296 (stop_tracing, set_trace_user): Ditto.
1297 (set_trace_notes, set_trace_stop_notes): Ditto.
1298
b1af9e97
TT
12992012-05-21 Tom Tromey <tromey@redhat.com>
1300
1301 PR c++/7173:
1302 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
1303 types.
1304 * value.h (value_cast_pointers): Update.
1305 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
1306 (value_cast): Update.
1307 (update_search_result): New function.
1308 (do_search_struct_field): New, from search_struct_field. Check
1309 for ambiguous results.
1310 (search_struct_field): Rewrite.
1311 * infcall.c (value_arg_coerce): Update.
1312 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
1313 value_cast_pointers.
1314 * ada-lang.c (ada_convert_actual): Update.
1315
e9e5e6b3
TT
13162012-05-21 Tom Tromey <tromey@redhat.com>
1317
1318 * macroexp.c (macro_stringify): Terminate the string.
1319
1564a261
JK
13202012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1321
1322 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
1323 Describe it.
1324 * auto-load.c (auto_load_expand_dir_vars): New function.
1325 (auto_load_safe_path_vec_update): Use it, remove the
1326 substitute_path_component call thanks to it.
1327 (auto_load_objfile_script): Remove the debug_file_directory processing.
1328 Use auto_load_expand_dir_vars, remove the substitute_path_component
1329 call thanks to it.
1330 * configure: Regenerate.
1331 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
1332 path. Escape $ also for $debugdir.
1333 (--with_auto_load_safe_path): Escape $ also for $debugdir.
1334 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
1335
a3ec0bb1
DE
13362012-05-20 Doug Evans <dje@google.com>
1337
1338 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
1339 before use. Check for symtab->includes == NULL before scanning it.
1340
d467df4e
MR
13412012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1342
1343 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
1344
4cc0665f
MR
13452012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1346
1347 * NEWS: Add microMIPS support and "set mips compression",
1348 "show mips compression" commands.
1349 * mips-tdep.h (mips_isa): New enum.
1350 (gdbarch_tdep): Add mips_isa.
1351 (mips_pc_is_mips16): Update prototype.
1352 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
1353 * mips-tdep.c (mips_compression_mips16): New variable.
1354 (mips_compression_micromips): Likewise.
1355 (mips_compression_strings): Likewise.
1356 (mips_compression_string): Likewise.
1357 (is_mips16_isa, is_micromips_isa): New functions.
1358 (is_mips16_addr): Rename to...
1359 (is_compact_addr): ... this.
1360 (unmake_mips16_addr): Likewise to...
1361 (unmake_compact_addr): ... this.
1362 (make_mips16_addr): Likewise to...
1363 (make_compact_addr): ... this.
1364 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
1365 functions.
1366 (mips_elf_make_msymbol_special): Handle microMIPS code.
1367 (msymbol_is_special): Rename to...
1368 (msymbol_is_mips16): ... this.
1369 (mips_make_symbol_special, mips_pc_is_mips16): Update
1370 accordingly.
1371 (msymbol_is_mips, msymbol_is_micromips): New functions.
1372 (mips16_to_32_reg): Rename to...
1373 (mips_reg3_to_reg): ... this.
1374 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
1375 (mips_pc_isa): Likewise.
1376 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
1377 code.
1378 (mips_fetch_instruction): Pass return status instead of printing
1379 an error message if requested. Handle microMIPS code. Bail out
1380 on an invalid ISA.
1381 (micromips_op): New macro.
1382 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
1383 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
1384 (b6s4_op, b7s3_reg): Likewise.
1385 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
1386 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
1387 (mips_insn_size): New function.
1388 (mips32_next_pc): Update mips_fetch_instruction call.
1389 (micromips_relative_offset7): New function.
1390 (micromips_relative_offset10): Likewise.
1391 (micromips_relative_offset16): Likewise.
1392 (micromips_pc_insn_size): Likewise.
1393 (micromips_bc1_pc): Likewise.
1394 (micromips_next_pc): Likewise.
1395 (unpack_mips16): Update mips_fetch_instruction call.
1396 (extended_mips16_next_pc): Update according to change to
1397 mips16_to_32_reg.
1398 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
1399 code.
1400 (mips16_scan_prologue): Update mips_fetch_instruction call.
1401 Update according to change to mips16_to_32_reg.
1402 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
1403 (mips_insn16_frame_base_sniffer): Likewise.
1404 (micromips_decode_imm9): New function.
1405 (micromips_scan_prologue): Likewise.
1406 (mips_micro_frame_cache): Likewise.
1407 (mips_micro_frame_this_id): Likewise.
1408 (mips_micro_frame_prev_register): Likewise.
1409 (mips_micro_frame_sniffer): Likewise.
1410 (mips_micro_frame_unwind): New variable.
1411 (mips_micro_frame_base_address): New function.
1412 (mips_micro_frame_base): New variable.
1413 (mips_micro_frame_base_sniffer): New function.
1414 (mips32_scan_prologue): Update mips_fetch_instruction call.
1415 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
1416 rather than for MIPS16.
1417 (mips_insn32_frame_base_sniffer): Likewise.
1418 (mips_addr_bits_remove): Handle microMIPS code.
1419 (deal_with_atomic_sequence): Rename to...
1420 (mips_deal_with_atomic_sequence): ... this. Update the type
1421 of the variable used to hold an instruction. Remove the ISA bit
1422 check. Update mips_fetch_instruction call.
1423 (micromips_deal_with_atomic_sequence): New function.
1424 (deal_with_atomic_sequence): Likewise.
1425 (mips_about_to_return): Handle microMIPS code. Update
1426 mips_fetch_instruction call.
1427 (heuristic_proc_start): Check for the standard MIPS ISA rather
1428 than for MIPS16. Update mips_pc_is_mips16 and
1429 mips_fetch_instruction calls. Handle microMIPS code.
1430 (mips_push_dummy_code): Handle microMIPS code.
1431 (mips_eabi_push_dummy_call): Likewise.
1432 (mips_o32_return_value): Update mips_pc_is_mips16 call.
1433 (mips_o64_push_dummy_call): Handle microMIPS code.
1434 (mips_o64_return_value): Update mips_pc_is_mips16 call.
1435 (is_delayed): Remove function.
1436 (mips_single_step_through_delay): Replace the call to is_delayed
1437 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
1438 Handle microMIPS code.
1439 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
1440 microMIPS code.
1441 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1442 call.
1443 (micromips_in_function_epilogue_p): New function.
1444 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1445 call.
1446 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1447 Handle microMIPS.
1448 (gdb_print_insn_mips): Likewise.
1449 (mips_breakpoint_from_pc): Likewise.
1450 (mips_remote_breakpoint_from_pc): New function.
1451 (mips32_instruction_has_delay_slot): Simplify making use of the
1452 updated mips_fetch_instruction interface.
1453 (micromips_instruction_has_delay_slot): New function.
1454 (mips16_instruction_has_delay_slot): Simplify making use of the
1455 updated mips_fetch_instruction interface.
1456 (mips_adjust_breakpoint_address): Check for the standard MIPS
1457 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
1458 calls. Handle microMIPS code.
1459 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1460 (mips_skip_trampoline_code): Handle microMIPS code.
1461 (global_mips_compression): New function.
1462 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1463 file flags. Register the microMIPS remote breakpoint handler
1464 and heuristic frame unwinder.
1465 (show_mips_compression): New function.
1466 (_initialize_mips_tdep): Add the "set mips compression" and
1467 "show mips compression" commands.
1468
22e048c9
SDJ
14692012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
1470
1471 * ada-lang.c:
1472 * ada-tasks.c:
1473 * ada-varobj.c:
1474 * amd64-darwin-tdep.c:
1475 * arm-symbian-tdep.c:
1476 * arm-tdep.c:
1477 * avr-tdep.c:
1478 * ax-gdb.c:
1479 * bfin-linux-tdep.c:
1480 * breakpoint.c:
1481 * c-valprint.c:
1482 * cli/cli-cmds.c:
1483 * coffread.c:
1484 * cp-support.c:
1485 * cris-tdep.c:
1486 * dwarf2-frame-tailcall.c:
1487 * dwarf2-frame.c:
1488 * dwarf2expr.c:
1489 * dwarf2loc.c:
1490 * dwarf2read.c:
1491 * elfread.c:
1492 * eval.c:
1493 * expprint.c:
1494 * f-valprint.c:
1495 * frv-tdep.c:
1496 * h8300-tdep.c:
1497 * hppa-hpux-tdep.c:
1498 * hppa-tdep.c:
1499 * hppanbsd-tdep.c:
1500 * i386-nto-tdep.c:
1501 * i386-tdep.c:
1502 * i387-tdep.c:
1503 * ia64-tdep.c:
1504 * jit.c:
1505 * linespec.c:
1506 * linux-tdep.c:
1507 * lm32-tdep.c:
1508 * m2-valprint.c:
1509 * m32c-tdep.c:
1510 * m32r-rom.c:
1511 * m32r-tdep.c:
1512 * m68k-tdep.c:
1513 * m68klinux-tdep.c:
1514 * mi/mi-main.c:
1515 * microblaze-tdep.c:
1516 * mips-linux-tdep.c:
1517 * mips-tdep.c:
1518 * mn10300-tdep.c:
1519 * p-valprint.c:
1520 * parse.c:
1521 * ppc-linux-tdep.c:
1522 * ppc-sysv-tdep.c:
1523 * printcmd.c:
1524 * python/py-finishbreakpoint.c:
1525 * python/py-inferior.c:
1526 * python/py-infthread.c:
1527 * python/py-type.c:
1528 * python/python.c:
1529 * remote-fileio.c:
1530 * remote-m32r-sdi.c:
1531 * remote-mips.c:
1532 * reverse.c:
1533 * rl78-tdep.c:
1534 * rs6000-aix-tdep.c:
1535 * rs6000-tdep.c:
1536 * s390-tdep.c:
1537 * score-tdep.c:
1538 * sh64-tdep.c:
1539 * skip.c:
1540 * solib-darwin.c:
1541 * solib-dsbt.c:
1542 * solib-frv.c:
1543 * sparc-tdep.c:
1544 * spu-multiarch.c:
1545 * spu-tdep.c:
1546 * stack.c:
1547 * symfile.c:
1548 * symtab.c:
1549 * tic6x-tdep.c:
1550 * tracepoint.c:
1551 * v850-tdep.c:
1552 * valarith.c:
1553 * valprint.c:
1554 * value.c:
1555 * xcoffread.c:
1556 * xtensa-tdep.c:
1557 * ada-lang.c:
1558 * ada-tasks.c:
1559 * ada-varobj.c:
1560 * amd64-darwin-tdep.c:
1561 * arm-symbian-tdep.c:
1562 * arm-tdep.c: Delete unused variables.
1563
aff139ff
JK
15642012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1565
1566 Rename $ddir to $datadir.
1567 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1568 * auto-load.c (auto_load_safe_path_vec_update)
1569 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1570 * configure: Regenerate.
1571 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1572 Likewise. Remove the 'use $ddir' help string.
1573
f7bfa992
JK
15742012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1575
1576 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1577 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1578
9cb709b6
TT
15792012-05-18 Tom Tromey <tromey@redhat.com>
1580
1581 PR exp/13907:
1582 * valprint.h (struct value_print_options) <symbol_print>: New
1583 field.
1584 * valprint.c (user_print_options): Add default for symbol_print.
1585 (show_symbol_print): New function.
1586 (generic_val_print): Respect symbol_print.
1587 (_initialize_valprint): Add "print symbol" setting.
1588 * f-valprint.c (f_val_print): Respect symbol_print.
1589 * c-valprint.c (c_val_print): Respect symbol_print.
1590 * NEWS: Update.
1591 * printcmd.c (print_address_symbolic): Return int. Ignore some
1592 zero-size symbols.
1593 (print_address_demangle): Return int.
1594 * defs.h: (print_address_symbolic): Return int.
1595 * value.h (print_address_demangle): Return int.
1596
b012acdd
TT
15972012-05-18 Tom Tromey <tromey@redhat.com>
1598
1599 * valprint.c (val_print_string): Don't print leading space.
1600 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1601 print space before string or vtbl.
1602 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1603 before string.
1604 * jv-valprint.c (java_value_print): Print space before string.
1605 * go-valprint.c (print_go_string): Print space before string.
1606 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1607 space before string.
1608 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1609 space before string or vtbl.
1610 * auxv.c (fprint_target_auxv): Print space after address.
1611
1d51a733
TT
16122012-05-18 Tom Tromey <tromey@redhat.com>
1613
1614 * printcmd.c (print_address_demangle): Remove special case for 0.
1615
edf0c1b7
TT
16162012-05-18 Tom Tromey <tromey@redhat.com>
1617
1618 * printcmd.c (print_address_demangle): Add 'opts' argument.
1619 * p-valprint.c (pascal_val_print): Update.
1620 * jv-valprint.c (java_val_print): Update.
1621 * value.h: Update.
1622 * valprint.c (generic_val_print): Update.
1623 (print_function_pointer_address): Add 'options' argument. Remove
1624 'addressprint' argument. Update.
1625 * m2-valprint.c (print_unpacked_pointer): Update.
1626 * gnu-v3-abi.c (print_one_vtable): Update.
1627 (gnuv3_print_method_ptr): Update.
1628 * f-valprint.c (f_val_print): Update.
1629 * cp-valprint.c (cp_print_value_fields): Update.
1630 * valprint.h (print_function_pointer_address): Update.
1631 * c-valprint.c (c_val_print): Update.
1632
9703b513
TT
16332012-05-18 Tom Tromey <tromey@redhat.com>
1634
1635 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1636 directly corresponding to the found psymtab.
1637 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1638 (dw2_find_pc_sect_symtab): Use it.
1639 * block.h (blockvector_contains_pc): Declare.
1640 * block.c (find_block_in_blockvector): New function.
1641 (blockvector_for_pc_sect): Use it.
1642 (blockvector_contains_pc): New function.
1643
5a439849
MR
16442012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1645
1646 * mips-tdep.h (mips_write_pc): New prototype.
1647 * mips-tdep.c (mips_write_pc): Make external, add description.
1648 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1649 add description.
1650
8376de04
MR
16512012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1652
1653 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1654 mips_regnum->pc.
1655 (mips_unwind_pc, mips_write_pc): Likewise.
1656 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1657 gdbarch_read_pc.
1658
d3581e61
JB
16592012-05-17 Joel Brobecker <brobecker@adacore.com>
1660
1661 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1662 proc_warn, proc_error, proc_get_status, proc_flags,
1663 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1664 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1665 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1666 proc_stop_process, proc_wait_for_stop, proc_run_process,
1667 proc_set_traced_signals, proc_set_traced_faults,
1668 proc_set_traced_sysentry, proc_set_traced_sysexit,
1669 proc_set_held_signals, proc_get_held_signals,
1670 proc_get_traced_signals, proc_get_traced_faults,
1671 proc_get_traced_sysentry, proc_get_traced_sysexit,
1672 proc_clear_current_fault, proc_set_current_signal,
1673 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1674 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1675 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1676 proc_get_current_thread, proc_get_current_thread,
1677 proc_get_current_thread, proc_update_threads,
1678 proc_update_threads, proc_update_threads, proc_update_threads,
1679 proc_iterate_over_threads, procfs_find_new_threads,
1680 procfs_pid_to_str): Make static. Remove advance declaration.
1681 (proc_cursig): Make static. Conditionalized defintion on
1682 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1683 (proc_syscall, proc_set_kill_on_last_close,
1684 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1685 proc_get_pending_signals, proc_get_signal_actions,
1686 proc_trace_signal, proc_ignore_signal): Delete.
1687
81b9b86e
SDJ
16882012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1689
1690 * coffread.c (cs_section_address): Passing proper argument for
1691 `bfd_get_section_vma'.
1692 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1693 `bfd_get_section_flags'.
1694 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1695 `bfd_get_section_vma'.
1696
abc9d0dc
TT
16972012-05-16 Tom Tromey <tromey@redhat.com>
1698
1699 PR macros/13205:
1700 * macrotab.h: (macro_define_special): Declare.
1701 (enum macro_special_kind): New.
1702 (struct macro_definition) <argc, replacement>: Update comments.
1703 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1704 (macro_define_object_internal): New function.
1705 (macro_define_object): Use it.
1706 (macro_define_special): New function.
1707 (fixup_definition): New function.
1708 (macro_lookup_definition, foreach_macro_in_scope)
1709 (foreach_macro): Use fixup_definition.
1710 * macroexp.h (macro_stringify): Declare.
1711 * macroexp.c (free_buffer_return_text): New function.
1712 (stringify): Constify "arg".
1713 (macro_stringify): New function.
1714 * dwarf2read.c (macro_start_file): Call macro_define_special.
1715
6a3a010b
MR
17162012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1717 Maciej W. Rozycki <macro@mips.com>
1718
1719 * breakpoint.h (bp_location): Add related_address member.
1720 * inferior.h (get_return_value): Take a pointer to struct value
1721 instead of struct type for the function requested.
1722 * value.h (using_struct_return): Likewise.
1723 * gdbarch.sh (return_value): Take a pointer to struct value
1724 instead of struct type for the function requested.
1725 * breakpoint.c (set_breakpoint_location_function): Initialize
1726 related_address for bp_gnu_ifunc_resolver breakpoints.
1727 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1728 requested function's address to gdbarch_return_value.
1729 * eval.c (evaluate_subexp_standard): Pass the requested
1730 function's address to using_struct_return.
1731 * infcall.c (call_function_by_hand): Pass the requested
1732 function's address to using_struct_return and
1733 gdbarch_return_value.
1734 * infcmd.c (get_return_value): Take a pointer to struct value
1735 instead of struct type for the function requested.
1736 (print_return_value): Update accordingly.
1737 (finish_command_continuation): Likewise.
1738 * stack.c (return_command): Pass the requested function's
1739 address to using_struct_return and gdbarch_return_value.
1740 * value.c (using_struct_return): Take a pointer to struct value
1741 instead of struct type for the function requested. Pass the
1742 requested function's address to gdbarch_return_value.
1743 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1744 New function_value member, replacing function_type.
1745 (bpfinishpy_dealloc): Update accordingly.
1746 (bpfinishpy_pre_stop_hook): Likewise.
1747 (bpfinishpy_init): Likewise. Record the requested function's
1748 address.
1749 * mips-tdep.c (mips_fval_reg): New enum.
1750 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1751 words put in GP registers.
1752 (mips_o64_push_dummy_call): Update a comment.
1753 (mips_o32_return_value): Take a pointer to struct value instead
1754 of struct type for the function requested and use it to check if
1755 using the MIPS16 calling convention. Return the designated
1756 general purpose registers for floating-point values returned in
1757 MIPS16 mode.
1758 (mips_o64_return_value): Likewise.
1759 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1760 (ppc_sysv_abi_broken_return_value): Likewise.
1761 (ppc64_sysv_abi_return_value): Likewise.
1762 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1763 value instead of struct type for the function requested.
1764 * amd64-tdep.c (amd64_return_value): Likewise.
1765 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1766 * arm-tdep.c (arm_return_value): Likewise.
1767 * avr-tdep.c (avr_return_value): Likewise.
1768 * bfin-tdep.c (bfin_return_value): Likewise.
1769 * cris-tdep.c (cris_return_value): Likewise.
1770 * frv-tdep.c (frv_return_value): Likewise.
1771 * h8300-tdep.c (h8300_return_value): Likewise.
1772 (h8300h_return_value): Likewise.
1773 * hppa-tdep.c (hppa32_return_value): Likewise.
1774 (hppa64_return_value): Likewise.
1775 * i386-tdep.c (i386_return_value): Likewise.
1776 * ia64-tdep.c (ia64_return_value): Likewise.
1777 * iq2000-tdep.c (iq2000_return_value): Likewise.
1778 * lm32-tdep.c (lm32_return_value): Likewise.
1779 * m32c-tdep.c (m32c_return_value): Likewise.
1780 * m32r-tdep.c (m32r_return_value): Likewise.
1781 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1782 * m68k-tdep.c (m68k_return_value): Likewise.
1783 (m68k_svr4_return_value): Likewise.
1784 * m88k-tdep.c (m88k_return_value): Likewise.
1785 * mep-tdep.c (mep_return_value): Likewise.
1786 * microblaze-tdep.c (microblaze_return_value): Likewise.
1787 * mn10300-tdep.c (mn10300_return_value): Likewise.
1788 * moxie-tdep.c (moxie_return_value): Likewise.
1789 * mt-tdep.c (mt_return_value): Likewise.
1790 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1791 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1792 (ppc_sysv_abi_broken_return_value): Likewise.
1793 (ppc64_sysv_abi_return_value): Likewise.
1794 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1795 * rl78-tdep.c (rl78_return_value): Likewise.
1796 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1797 * rx-tdep.c (rx_return_value): Likewise.
1798 * s390-tdep.c (s390_return_value): Likewise.
1799 * score-tdep.c (score_return_value): Likewise.
1800 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1801 (sh_return_value_fpu): Likewise.
1802 * sh64-tdep.c (sh64_return_value): Likewise.
1803 * sparc-tdep.c (sparc32_return_value): Likewise.
1804 * sparc64-tdep.c (sparc64_return_value): Likewise.
1805 * spu-tdep.c (spu_return_value): Likewise.
1806 * tic6x-tdep.c (tic6x_return_value): Likewise.
1807 * v850-tdep.c (v850_return_value): Likewise.
1808 * vax-tdep.c (vax_return_value): Likewise.
1809 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1810 * xtensa-tdep.c (xtensa_return_value): Likewise.
1811 * gdbarch.c: Regenerate.
1812 * gdbarch.h: Regenerate.
1813
29ca12b3
TT
18142012-05-15 Tom Tromey <tromey@redhat.com>
1815
1816 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1817
588ae58c
JB
18182012-05-15 Joel Brobecker <brobecker@adacore.com>
1819
1820 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1821 of command in two error message.
1822
855a6e68
JB
18232012-05-15 Joel Brobecker <brobecker@adacore.com>
1824
1825 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1826
d634f2de
JB
18272012-05-15 Joel Brobecker <brobecker@adacore.com>
1828
1829 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1830
9cc815f5
JK
18312012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1832
1833 * NEWS (show auto-load scripts-directory): Add forgotten command.
1834
6a609e58
JK
18352012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1836
1837 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1838 parameters.
1839
ac1438b5
L
18402012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1841
1842 * amd64-tdep.c: Include features/i386/x32.c and
1843 features/i386/x32-avx.c.
1844 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1845 initialize_tdesc_x32_avx.
1846
e7e0cddf
SS
18472012-05-14 Stan Shebs <stan@codesourcery.com>
1848
1849 Add dynamic printf.
1850 * breakpoint.h (enum bptype): New type bp_dprintf.
1851 (struct breakpoint): New field extra_string.
1852 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1853 (create_breakpoint): Add extra_string arg.
1854 * breakpoint.c (dprintf_breakpoint_ops): New.
1855 (is_breakpoint): Add bp_dprintf.
1856 (bpstat_what): Add dprintf case.
1857 (bptype_string): Ditto.
1858 (print_one_breakpoint_location): Ditto.
1859 (init_bp_location): Ditto.
1860 (bkpt_print_mention): Ditto.
1861 (dprintf_style_enums): New array.
1862 (dprintf_style): New global.
1863 (dprintf_function): New global.
1864 (dprintf_channel): New global.
1865 (update_dprintf_command_list): New function.
1866 (update_dprintf_commands): New function.
1867 (init_breakpoint_sal): Add extra_string argument, handle it.
1868 (create_breakpoint_sal): Add extra_string argument.
1869 (create_breakpoints_sal): Add extra_string argument, update callers.
1870 (find_condition_and_thread): Add extra argument.
1871 (create_breakpoint): Add extra_string argument, record it.
1872 (dprintf_command): New function.
1873 (break_command_1): Add arg to create_breakpoint call.
1874 (handle_gnu_v3_exceptions): Ditto.
1875 (trace_command): Ditto.
1876 (ftrace_command): Ditto.
1877 (strace_command): Ditto.
1878 (bkpt_print_mention): Add dprintf case.
1879 (create_breakpoint_sal_default): Add extra_string argument.
1880 (_initialize_breakpoint): Add new commands.
1881 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1882 * python/py-breakpoint.c (bppy_init): Ditto.
1883 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1884
8ae38c14
MR
18852012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1886
1887 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1888
9f676e66
SCR
18892012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1890
1891 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1892 unsigned long long.
1893
7efc75aa
SCR
18942012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1895
1896 Add a new function gdb.find_pc_line to the Python API.
1897 * NEWS (Python Scripting): Add entry about the new function.
1898 * python/python.c (gdbpy_find_pc_line): New function which
1899 implements gdb.find_pc_line.
1900 (GdbMethods): Add entry for the new function.
1901
70af3797
PA
19022012-05-12 Pedro Alves <palves@redhat.com>
1903
1904 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1905 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1906
06da564e
EZ
19072012-05-12 Eli Zaretskii <eliz@gnu.org>
1908
1909 * inferior.c: Include completer.h
1910 (initialize_inferiors): Set completer of add-inferior to
1911 filename_completer.
1912
0288cee2
L
19132012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1914
1915 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1916 gdbarch_ptr_bit for x32 core dump.
1917
f6537a2c
L
19182012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1919
1920 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1921 and features/i386/x32-avx-linux.c.
1922
85d4a676
SS
19232012-05-11 Stan Shebs <stan@codesourcery.com>
1924 Kwok Cheung Yeung <kcy@codesourcery.com>
1925
1926 * NEWS: Describe new info os commands.
1927 * common/linux-osdata.c (PID_T, TIME_T): Define.
1928 (MAX_PID_T_STRLEN): New.
1929 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1930 MAX_PID_T_STRLEN.
1931 (command_from_pid): Add comment. Change to use PID_T.
1932 (commandline_from_pid): Change to use PID_T.
1933 (user_from_pid): Add comment.
1934 (get_process_owner): Add comment. Change to use PID_T and
1935 MAX_PID_T_STRLEN.
1936 (get_number_of_cpu_cores): Add comment.
1937 (get_cores_used_by_process): Add comment. Change to use PID_T and
1938 MAX_PID_T_STRLEN.
1939 (linux_xfer_osdata_processes): Change to use PID_T and
1940 MAX_PID_T_STRLEN.
1941 (compare_processes): New function.
1942 (linux_xfer_osdata_processgroups): New function.
1943 (linux_xfer_osdata_threads): Change to use PID_T.
1944 (linux_xfer_osdata_fds): New function.
1945 (format_socket_state, print_sockets): New functions.
1946 (union socket_addr): New union.
1947 (linux_xfer_osdata_isockets): New function.
1948 (time_from_time_t, group_from_gid): New functions.
1949 (linux_xfer_osdata_shm): New function.
1950 (linux_xfer_osdata_sem): New function.
1951 (linux_xfer_osdata_msg): New function.
1952 (linux_xfer_osdata_modules): New function.
1953 (osdata_table): Add new entries.
1954 * common/buffer.c (buffer_xml_printf): Add support for long and
1955 long long format specifiers.
1956
f24afd6d
L
19572012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1958
1959 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1960 (tdesc_x32_avx_linux): Likewise.
1961
7349ff92
JK
19622012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1963
1964 Implement multi-component --with-auto-load-dir.
1965 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1966 entries.
1967 (--with-auto-load-safe-path): Update the default value description.
1968 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1969 New.
1970 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1971 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1972 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1973 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1974 "set auto-load scripts-directory".
1975 * config.in: Regenerate.
1976 * configure: Regenerate.
1977 * configure.ac (--with-auto-load-dir): New configure option.
1978 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1979
6dea1fbd
JK
19802012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1981
1982 Provide $ddir substitution for --with-auto-load-safe-path.
1983 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1984 entries.
1985 * auto-load.c: Include observer.h.
1986 (auto_load_safe_path_vec_update): Call substitute_path_component for
1987 each component. New variable ddir_subst.
1988 (auto_load_gdb_datadir_changed): New function.
1989 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1990 AUTO_LOAD_SAFE_PATH. New comment.
1991 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1992 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1993 * config.in: Regenerate.
1994 * configure: Regenerate.
1995 * configure.ac (--auto-load-safe-path): Rename
1996 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1997 GDB_DATADIR/auto-load.
1998 * defs.h (substitute_path_component): New declaration.
1999 * top.c: Include observer.h.
2000 (set_gdb_datadir): New function.
2001 (init_main): Install it for "set data-directory".
2002 * utils.c (substitute_path_component): New function.
2003
b09aca3a
JK
20042012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2005
2006 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
2007 * auto-load.c (auto_load_objfile_script): Remove check for NULL
2008 DEBUG_FILE_DIRECTORY. Handle multiple components of
2009 DEBUG_FILE_DIRECTORY.
2010
95554aad
TT
20112012-05-10 Tom Tromey <tromey@redhat.com>
2012
2013 * dwarf2read.c (recursively_write_psymbols): New function.
2014 (write_psymtabs_to_index): Use it.
2015
2016 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
2017 field.
2018 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
2019 (load_partial_comp_unit): Update.
2020 (queue_comp_unit): Add argument 'pretend_language'.
2021 (process_queue): Update.
2022 (psymtab_to_symtab_1): Skip dependencies that have a user.
2023 (load_partial_comp_unit_reader): Give meaning to the 'data'
2024 argument.
2025 (load_full_comp_unit): Add 'pretend_language' argument.
2026 (process_full_comp_unit): Add 'pretend_language' argument. Set
2027 language on CU.
2028 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
2029 Update.
2030 (maybe_queue_comp_unit): Add 'pretend_language' argument.
2031 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
2032 Update.
2033 (prepare_one_comp_unit): Add 'pretend_language' argument.
2034
2035 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
2036 (struct dwarf2_per_objfile) <just_read_cus>: New field.
2037 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
2038 (dw2_do_instantiate_symtab): Check whether symtab was read in
2039 before queueing.
2040 (dw2_instantiate_symtab): Add assertion. Call
2041 process_cu_includes.
2042 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
2043 (partial_symtab_p): New typedef.
2044 (set_partial_user): New function.
2045 (dwarf2_build_psymtabs_hard): Use set_partial_user.
2046 (scan_partial_symbols): Add imported CU to imported_symtabs.
2047 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
2048 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
2049 (get_symtab, recursively_compute_inclusions)
2050 (compute_symtab_includes, process_cu_includes)
2051 (process_imported_unit_die): New functions.
2052 (process_die) <DW_TAG_imported_unit>: New case.
2053 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
2054
2055 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
2056 comment.
2057 (struct partial_die_info) <locdesc>: Remove.
2058 <d>: New field.
2059 (process_psymtab_comp_unit): Add 'read_partial' argument.
2060 Update.
2061 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
2062 (scan_partial_symbols): Handle DW_TAG_imported_unit.
2063 (add_partial_symbol): Update.
2064 (process_die): Handle DW_TAG_partial_unit.
2065 (read_file_scope): Update comment.
2066 (load_partial_dies): Handle DW_TAG_imported_unit.
2067 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
2068 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
2069
e871fbb9
TT
20702012-05-10 Tom Tromey <tromey@redhat.com>
2071
2072 * cc-with-dwz.sh: New file.
2073
b5b04b5b
TT
20742012-05-10 Tom Tromey <tromey@redhat.com>
2075
2076 * symtab.h (struct symtab) <includes, user>: New fields.
2077 * block.h (struct block_iterator) <d, idx, which>: New fields.
2078 * block.c (initialize_block_iterator, find_iterator_symtab)
2079 (block_iterator_step, block_iter_name_step)
2080 (block_iter_match_step): New functions.
2081 (block_iterator_first, block_iterator_next)
2082 (block_iter_name_first, block_iter_name_next)
2083 (block_iter_match_first, block_iter_match_next): Rewrite.
2084 (get_block_symtab): New function.
2085
84a146c9
TT
20862012-05-10 Tom Tromey <tromey@redhat.com>
2087
2088 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
2089 set_block_symtab.
2090 * jit.c (finalize_symtab): Use allocate_global_block,
2091 set_block_symtab.
2092 * buildsym.c (finish_block_internal): New function, from old
2093 finish_block.
2094 (finish_block): Rewrite.
2095 (end_symtab): Use finish_block_internal, set_block_symtab.
2096 * block.h (struct global_block): New.
2097 (allocate_global_block, set_block_symtab): Declare.
2098 * block.c (allocate_global_block, set_block_symtab): New
2099 functions.
2100
9439a077
TT
21012012-05-10 Tom Tromey <tromey@redhat.com>
2102
2103 * psymtab.c (partial_map_expand_apply): Add assertion.
2104 (partial_map_symtabs_matching_filename): Skip included psymtabs.
2105 (psymtab_to_symtab): Find unshared psymtab.
2106 (dump_psymtab): Print including psymtabs.
2107 (recursively_search_psymtabs): New function.
2108 (expand_symtabs_matching_via_partial): Use it.
2109 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
2110 fields.
2111 (enum psymtab_search_status): New.
2112
8157b174
TT
21132012-05-10 Tom Tromey <tromey@redhat.com>
2114
2115 * tracepoint.c (scope_info): Update.
2116 * symtab.c (lookup_block_symbol, iterate_over_symbols)
2117 (find_pc_sect_symtab, search_symbols)
2118 (default_make_symbol_completion_list_break_on)
2119 (make_file_symbol_completion_list): Update.
2120 * symmisc.c (dump_symtab_1): Update.
2121 * stack.c (print_frame_args, iterate_over_block_locals)
2122 (print_frame_labels, iterate_over_block_arg_vars): Update.
2123 * python/py-block.c (block_object) <dict>: Remove.
2124 <block>: New field.
2125 <iter>: Change type.
2126 (blpy_iter): Update.
2127 (blpy_block_syms_iternext): Update.
2128 * psymtab.c (map_block): Use block iterators.
2129 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
2130 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2131 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
2132 * infrun.c (check_exception_resume): Update.
2133 * cp-support.c (make_symbol_overload_list_block): Update.
2134 * coffread.c (patch_opaque_types): Update.
2135 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
2136 * block.h (struct block_iterator): New.
2137 (block_iterator_first, block_iterator_next, block_iter_name_first)
2138 (block_iter_name_next, block_iter_match_first)
2139 (block_iter_match_next): Declare.
2140 (ALL_BLOCK_SYMBOLS): Redefine.
2141 * block.c (block_iterator_first, block_iterator_next)
2142 (block_iter_name_first, block_iter_name_next)
2143 (block_iter_match_first, block_iter_match_next): New functions.
2144 * ada-lang.c (ada_add_block_symbols)
2145 (ada_make_symbol_completion_list): Use block iterator.
2146
a2ca7a52
TT
21472012-05-10 Tom Tromey <tromey@redhat.com>
2148
2149 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
2150 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
2151 (lookup_partial_symbol, find_last_source_symtab_from_partial)
2152 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
2153 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
2154 Update.
2155
64ea88dc
JB
21562012-05-10 Joel Brobecker <brobecker@adacore.com>
2157
2158 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
2159 print-file-var-lib2.c, print-file-var-main.c and
2160 print-file-var.exp (located in gdb/testsuite/gdb.base).
2161
99a547d6
JB
21622012-05-10 Joel Brobecker <brobecker@adacore.com>
2163
2164 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2165 try locating the symbol in the symbol's own objfile first, before
2166 extending the search to all objfiles.
2167 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2168 out of lookup_symbol_aux_symtabs.
2169 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2170 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2171 Do not search EXCLUDE_OBJFILE.
2172 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2173 (lookup_symbol_global): Search for matches in the block's objfile
2174 first, before searching all other objfiles.
2175
0ece64fd
TG
21762012-05-10 Tristan Gingold <gingold@adacore.com>
2177
2178 * printcmd.c (set_command): Add pre/post inc/dec.
2179
3d16a105
FCE
21802012-05-09 Frank Ch. Eigler <fche@redhat.com>
2181
2182 * gdb.1: Document -ex option.
2183
2efbc0f7
JB
21842012-05-09 Joel Brobecker <brobecker@adacore.com>
2185
2186 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
2187 * inferior.h (AT_SYMBOL): Delete.
2188
2c76a0c7
JB
21892012-05-09 Joel Brobecker <brobecker@adacore.com>
2190
2191 * mips-tdep.c (mips_push_dummy_code): New function.
2192 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
2193 ON_STACK and install mips_push_dummy_code as our gdbarch
2194 push_dummy_code routine.
2195
9401a810
PA
21962012-05-09 Pedro Alves <palves@redhat.com>
2197
2198 * target.c (set_maintenance_target_async_permitted): Rename to ...
2199 (set_target_async_command): ... this.
2200 (show_maintenance_target_async_permitted): Rename to ...
2201 (show_target_async_command): ... this.
2202 (initialize_targets): Adjust.
2203
3929b321
DE
22042012-05-08 Doug Evans <dje@google.com>
2205
2206 * go-exp.y (classify_name): Add missing assignment of fields of
2207 yylval.ssym.
2208
c41535fd
EZ
22092012-05-08 Eli Zaretskii <eliz@gnu.org>
2210
2211 Display the ">" prompt in interactive mode while reading canned
2212 commands, even when the current interpreter is MI.
2213
2214 * interps.c (interp_set_temp): New function.
2215
2216 * interps.h (interp_set_temp): Add prototype.
2217
2218 * cli/cli-script.c (restore_interp): New cleanup function.
2219 (read_command_lines): Temporarily override the current interpreter
2220 with CLI and arrange for restoring the original one.
2221
c0749c4d
JS
22222012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2223
2224 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
2225
d7333987
SDJ
22262012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
2227
2228 * probe.c (parse_probes): Move conditional to check for
2229 debuginfo files from here...
2230 * stap-probe.c (stap_get_probes): ... to here.
2231
649e6d92
MK
22322012-05-07 Mark Kettenis <kettenis@gnu.org>
2233 H.J. Lu <hongjiu.lu@intel.com>
2234
2235 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
2236 `movl %esp, %ebp' for the X32 ABI.
2237
f39c6ffd
TT
22382012-05-07 Tom Tromey <tromey@redhat.com>
2239
2240 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
2241 get_DW_TAG_name.
2242 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
2243 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
2244 (dwarf_stack_op_name): Remove.
2245 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
2246 (decode_locdesc): Use get_DW_OP_name.
2247 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
2248 (dwarf2_compile_expr_to_ax): Likewise.
2249 (disassemble_dwarf_expression): Likewise.
2250 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
2251
1e1f6591
CLT
22522012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
2253
2254 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
2255 (sh_linux_sigtramp_cache): New function.
2256 (sh_linux_sigreturn_init): New function.
2257 (sh_linux_rt_sigreturn_init): New function.
2258 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
2259 patterns.
2260 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
2261 syscall codes.
2262 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
2263 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
2264 (sh_linux_init_abi): Add init calls to register new tramp_frame
2265 definitions under 32-bit SH, update comments.
2266
545c08b4
PA
22672012-05-07 Pedro Alves <palves@redhat.com>
2268
daac165e
PA
2269 PR gdb/10952
2270
545c08b4
PA
2271 * amd64-linux-tdep.c: Include glibc-tdep.h.
2272 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
2273 gdbarch_skip_solib_resolver callback.
2274
af2c1515
JK
22752012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2276
2277 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
2278 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
2279 (show_auto_load_safe_path): Check any-directory by comparison with "/".
2280 (add_auto_load_safe_path): Change the error message.
2281 (_initialize_auto_load): Change the "safe-path" help text.
2282 * configure: Regenerate
2283 * configure.ac (--without-auto-load-safe-path): Set
2284 WITH_AUTO_LOAD_SAFE_PATH to /.
2285
1067f998
SDJ
22862012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
2287
2288 * stap-probe.h: Do not include unecessary `probe.h'.
2289
45dfa85a
AM
22902012-05-05 Alan Modra <amodra@gmail.com>
2291
2292 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
2293 bfd_und_section_ptr.
2294 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
2295 and bfd_com_section_ptr.
2296
cf093994
JB
22972012-05-04 Joel Brobecker <brobecker@adacore.com>
2298
762ebb75 2299 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 2300
d40dc7a8
JB
23012012-05-04 Joel Brobecker <brobecker@adacore.com>
2302
2303 * windows-nat.h (segment_register_p_ftype): New typedef.
2304 (windows_set_segment_register_p): Add declaration.
2305 * windows-nat.c (segment_register_p): New static global.
2306 (windows_set_segment_register_p): New function.
2307 (do_windows_fetch_inferior_registers): Add special handling
2308 for segment registers.
2309 * amd64-windows-nat.c: #include "amd64-tdep.h".
2310 (amd64_windows_segment_register_p): New function.
2311 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
2312 * i386-windows-nat.c: #include "i386-tdep.h".
2313 (i386_windows_segment_register_p): New function.
2314 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
2315
52b3699b
TG
23162012-05-04 Tristan Gingold <gingold@adacore.com>
2317
2318 * printcmd.c (set_command): Emit a warning if the expression is not
2319 an assignment.
2320
94c74239
JB
23212012-05-03 Joel Brobecker <brobecker@adacore.com>
2322
2323 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
2324 Make static.
2325
fcf57f19
SDJ
23262012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2327
2328 * stap-probe.c (stap_is_operator): Change declaration.
2329 (stap_get_opcode): Change return value.
2330 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
2331 `stap_parse_argument_1'.
2332
27d2932e
PA
23332012-05-03 Pedro Alves <pedro@codesourcery.com>
2334
2335 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
2336 debug log.
2337
a20ee7a4
SCR
23382012-05-03 Siva Chandra Reddy <sivachandra@google.com>
2339
2340 Add two new methods global_block and static_block to gdb.Symtab
2341 objects.
2342 * NEWS (Python scripting): Add entry about the new methods.
2343 * python/py-symtab.c (stpy_global_block): New function which
2344 implements the gdb.Symtab.global_block() method.
2345 (stpy_static_block): New function which implements the
2346 gdb.Symtab.static_block() method.
2347 (symtab_object_methods): Add entries for the two new methods.
2348
943cb756
DE
23492012-05-03 Doug Evans <dje@google.com>
2350
2351 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
2352 files.
2353
f4644a3f
YQ
23542012-05-03 Yao Qi <yao@codesourcery.com>
2355
2356 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
2357 space.
2358 (i386_process_record): Ditto.
2359
ef61f180
JB
23602012-05-02 Joel Brobecker <brobecker@adacore.com>
2361
2362 * infcall.c (unwind_on_signal_p): Make static.
2363
02f1df11
JB
23642012-05-02 Joel Brobecker <brobecker@adacore.com>
2365
2366 * sol-thread.c (solaris_pid_to_str): Make static.
2367 (_initialize_sol_thread): Add prototype.
2368
39023530
JB
23692012-05-02 Joel Brobecker <brobecker@adacore.com>
2370
2371 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
2372
c6b0c501
CF
23732012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
2374
2375 * MAINTAINERS: Remove myself.
2376
1ef71717
JK
23772012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2378
2379 Fix --without-auto-load-safe-path for MS-Windows host platform.
2380 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
2381
b31b86a7
EZ
23822012-05-02 Eli Zaretskii <eliz@gnu.org>
2383
2384 * gdb_curses.h: Undefine KEY_EVENT before including curses
2385 headers. Move "#undef MOUSE_MOVED" before any curses header
2386 inclusion.
2387
777532fc
SDJ
23882012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2389
2390 * features/i386/i386-mmx-linux.c: Regenerate.
2391 * features/rs6000/powerpc-32.c: Likewise.
2392 * features/rs6000/powerpc-32l.c: Likewise.
2393 * features/rs6000/powerpc-403.c: Likewise.
2394 * features/rs6000/powerpc-403gc.c: Likewise.
2395 * features/rs6000/powerpc-405.c: Likewise.
2396 * features/rs6000/powerpc-505.c: Likewise.
2397 * features/rs6000/powerpc-601.c: Likewise.
2398 * features/rs6000/powerpc-602.c: Likewise.
2399 * features/rs6000/powerpc-603.c: Likewise.
2400 * features/rs6000/powerpc-604.c: Likewise.
2401 * features/rs6000/powerpc-64.c: Likewise.
2402 * features/rs6000/powerpc-64l.c: Likewise.
2403 * features/rs6000/powerpc-750.c: Likewise.
2404 * features/rs6000/powerpc-860.c: Likewise.
2405 * features/rs6000/powerpc-e500.c: Likewise.
2406 * features/rs6000/powerpc-e500l.c: Likewise.
2407 * features/rs6000/powerpc-isa205-32l.c: Likewise.
2408 * features/rs6000/powerpc-isa205-64l.c: Likewise.
2409 * features/rs6000/rs6000.c: Likewise.
2410
d71871bc
SDJ
24112012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2412
2413 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
2414 variable.
2415 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
2416 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
2417 (stap_parse_argument) <e>: Likewise.
2418 (handle_stap_probe) <byte_order>: Likewise.
2419
fd820528
DE
24202012-04-30 Doug Evans <dje@google.com>
2421
2422 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
2423 init_and_read_dies_worker. All callers updated.
2424 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
2425 replaced with init_cutu_and_read_dies.
2426 (load_partial_comp_unit): Pass 1 for use_existing_cu.
2427 (find_partial_die): Remove FIXME. Don't free current CU.
2428
ec3f619d 24292012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
2430
2431 * contrib: New directory.
2432 * contrib/test_pubnames_and_indexes.py: New file.
2433
fceca515
DE
24342012-04-30 Doug Evans <dje@google.com>
2435
2436 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2437 All callers updated.
2438 (init_cu_die_reader): Verify the section is non-empty.
2439 (dwarf_decode_line_header): Don't dereference section->asection
2440 until we know the section is present.
2441
311fe7e1
SDJ
24422012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
2443
2444 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2445 probes.
2446
5977971a
YQ
24472012-04-29 Yao Qi <yao@codesourcery.com>
2448
2449 * gdb-code-style.el: New hook gdb-markup-hook
2450 and gdb-comment-hook.
2451
dee91e82
DE
24522012-04-28 Doug Evans <dje@google.com>
2453
3019eac3
DE
2454 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
2455 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2456 objfile->obfd.
2457 * symfile.h (dwarf2_debug_sections): New member addr.
2458 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2459 (ctx_no_get_addr_index): New function.
2460 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2461 (ctx_no_get_addr_index): Declare.
2462 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2463 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2464 (dwarf_expr_ctx_funcs): Update.
2465 (needs_get_addr_index): New function.
2466 (needs_frame_ctx_funcs): Update.
2467 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2468 * dwarf2read.c: #include "gdbcore.h".
2469 (dwarf2_per_objfile): New members addr, dwo_files.
2470 (dwarf2_elf_names): Add entry for addr.
2471 (struct dwo_section_names): New type.
2472 (dwo_section_names): New static global.
2473 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2474 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2475 old debug_types_section member updated to use this.
2476 Rename member debug_types_section to info_or_types_section,
2477 all uses updated.
2478 (signatured_type): Rename member type_offset to type_offset_in_tu,
2479 all uses updated. New member type_offset_in_section.
2480 (struct dwo_sections): New type.
2481 (struct dwo_unit): New type.
2482 (struct dwo_file): New type.
2483 (die_reader_specs): New member dwo_file.
2484 (dwarf2_locate_sections): Watch for .debug_addr.
2485 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2486 (dwarf2_read_section): Get bfd of section from bfd's asection,
2487 instead of objfile.
2488 (create_cus_from_index): Initialize the_cu->info_or_types_section.
2489 (create_signatured_type_table_from_index): Initialize
2490 sig_type->info_or_types_section.
2491 (dw2_get_file_names): Statement lists for type units with DWO files
2492 live in the DWO file.
2493 (create_debug_types_hash_table): New function.
2494 (create_all_type_units): Rewrite.
2495 (init_cu_die_reader): New arg dwo_file, all callers updated.
2496 (init_and_read_dies_worker): Get section from
2497 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
2498 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2499 continue reading the CU/TU from there.
2500 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2501 updated. Get section from this_cu->info_or_types_section.
2502 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2503 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2504 DW_FORM_GNU_str_index.
2505 (hash_dwo_file, eq_dwo_file): New functions.
2506 (allocate_dwo_file_hash_table): New function.
2507 (hash_dwo_unit, eq_dwo_unit): New functions.
2508 (allocate_dwo_unit_table): New function.
2509 (dwarf2_locate_dwo_sections): New function.
2510 (struct create_dwo_info_table_data): New type.
2511 (create_debug_info_hash_table_reader): New function.
2512 (create_debug_info_hash_table): New function.
2513 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2514 (lookup_dwo_file): New function.
2515 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2516 (free_dwo_file, free_dwo_file_cleanup): New functions.
2517 (free_dwo_file_from_slot, free_dwo_files): New functions.
2518 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2519 (dwarf2_record_block_ranges): Ditto.
2520 (read_partial_die): Ditto.
2521 (process_enumeration_scope): Update to use type_offset_in_section.
2522 (read_full_die_1): New function.
2523 (read_full_die): Rewrite.
2524 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2525 DW_FORM_GNU_str_index.
2526 (read_addr_index_1, read_addr_index): New functions.
2527 (read_addr_index_from_leb128): New function.
2528 (struct dwarf2_read_addr_index_data): New type.
2529 (dwarf2_read_addr_index_reader): New function.
2530 (dwarf2_read_addr_index): New function.
2531 (read_str_index): New function.
2532 (leb128_size): New function.
2533 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2534 If processing a type unit from a DWO file, get the line section
2535 from the DWO file.
2536 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2537 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2538 DW_FORM_GNU_str_index.
2539 (lookup_die_type): Check whether section offset of type's die is
2540 known before looking it up. Remove assert. Condition can
2541 legimately happen for inter-cu type references.
2542 (dwarf_attr_name): Handle Fission attributes.
2543 (dwarf_form_name): Handle Fission forms.
2544 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2545 DW_FORM_GNU_str_index.
2546 (follow_die_sig): Update to use type_offset_in_section.
2547 (decode_locdesc): New case DW_OP_GNU_addr_index.
2548 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2549 DW_FORM_GNU_str_index.
2550 (cu_debug_loc_section): New function.
2551 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2552 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2553 Free DWO files if present.
2554 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2555
dee91e82
DE
2556 Refactor DIE reading.
2557 * dwarf2read.c (dwarf2_per_objfile): Replace members
2558 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2559 (die_reader_specs): New member "die_section". Temporarily make
2560 member "buffer" non-const, pending constifying all info_ptr uses.
2561 (die_reader_func_ftype): New typedef.
2562 (dw2_get_file_names_reader): New function.
2563 (dw2_get_file_names): Rewrite.
2564 (read_and_check_type_unit_head): Rename arg type_offset to
2565 type_offset_in_tu.
2566 (create_all_type_units): Improve debugging message.
2567 Improve dummy type unit check.
2568 (init_cu_die_reader): New arg "section". All callers updated.
2569 (init_and_read_dies_worker): New function.
2570 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2571 (init_cutu_and_read_dies_no_follow): New function.
2572 (init_cutu_and_read_dies_simple): New function.
2573 (process_psymtab_comp_unit_reader): New function.
2574 (process_psymtab_comp_unit): Delete args section,
2575 is_debug_types_section. Rewrite. All callers updated.
2576 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2577 All callers updated. Rewrite.
2578 (load_partial_comp_unit_reader): New function.
2579 (load_partial_comp_unit): Rewrite.
2580 (skip_children): New arg reader. Delete args buffer, cu.
2581 All callers updated.
2582 (skip_one_die): New arg reader. Delete args buffer, cu.
2583 All callers updated.
2584 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2585 All callers updated.
2586 (load_full_comp_unit_reader): New function.
2587 (load_full_comp_unit): Rewrite.
2588 (read_comp_unit): Delete.
2589 (read_die_and_children_1): Delete, contents moved ...
2590 (read_die_and_children): ... here.
2591 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2592 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2593 All callers updated.
2594 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2595 All callers updated.
2596 (find_partial_die): Rewrite load_all_dies support.
2597 (read_attribute_value): New arg reader. Delete args abfd, cu.
2598 All callers updated.
2599 (read_attribute): New arg reader. Delete args abfd, cu.
2600 All callers updated.
2601 (load_full_type_unit): Add assert.
2602 (read_signatured_type_reader): New function.
2603 (read_signatured_type): Rewrite.
2604 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2605 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2606 All callers updated. Set per_cu->cu = NULL after freeing it.
2607 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2608 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2609 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2610 (set_die_type): Update.
2611 (get_die_type_at_offset): Update.
2612 (read_file_scope): Call prepare_one_comp_unit.
2613 (read_type_unit_scope): Ditto.
2614 (prepare_one_comp_unit): Set producer if present.
2615
72d59e0d
SDJ
26162012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2617
2618 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2619 gettext function on `error'.
2620
0fefef59
DE
26212012-04-27 Doug Evans <dje@google.com>
2622
2623 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2624 is empty.
2625
28106bc2
SDJ
26262012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2627 Tom Tromey <tromey@redhat.com>
2628
2629 * breakpoint.c (struct breakpoint_objfile_data)
2630 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2631 <exception_probes>: New fields.
2632 (free_breakpoint_probes): New function.
2633 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2634 `_Unwind_DebugHook'.
2635 (create_exception_master_breakpoint): Likewise.
2636 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2637 * infrun.c: Including necessary header files for handling SystemTap
2638 probes.
2639 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2640 via SystemTap probes.
2641 (check_exception_resume): Remove `func' argument. Handle exception
2642 unwinding breakpoint set via a SystemTap probe.
2643 (insert_exception_resume_from_probe): New function.
2644
55aa24fb
SDJ
26452012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2646 Tom Tromey <tromey@redhat.com>
2647 Jan Kratochvil <jan.kratochvil@redhat.com>
2648
2649 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2650 (COMMON_OBS): Likewise.
2651 (HFILES_NO_SRCDIR): Add `probe'.
2652 * NEWS: Mention support for static and SystemTap probes.
2653 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2654 SystemTap probes' arguments parser.
2655 * arm-linux-tdep.c: Including headers needed to perform the parsing
2656 of SystemTap probes' arguments.
2657 (arm_stap_is_single_operand): New function.
2658 (arm_stap_parse_special_token): Likewise.
2659 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2660 probes' arguments parser.
2661 * ax-gdb.c (require_rvalue): Removing static declaration.
2662 (gen_expr): Likewise.
2663 * ax-gdb.h (gen_expr): Declaring function.
2664 (require_rvalue): Likewise.
2665 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2666 (bkpt_probe_breakpoint_ops): New variable.
2667 (momentary_breakpoint_from_master): Set the `probe' value.
2668 (add_location_to_breakpoint): Likewise.
2669 (break_command_1): Using proper breakpoint_ops according to the
2670 argument passed by the user in the command line.
2671 (bkpt_probe_insert_location): New function.
2672 (bkpt_probe_remove_location): Likewise.
2673 (bkpt_probe_create_sals_from_address): Likewise.
2674 (bkpt_probe_decode_linespec): Likewise.
2675 (tracepoint_probe_create_sals_from_address): Likewise.
2676 (tracepoint_probe_decode_linespec): Likewise.
2677 (tracepoint_probe_breakpoint_ops): New variable.
2678 (trace_command): Using proper breakpoint_ops according to the
2679 argument passed by the user in the command line.
2680 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2681 static probes on breakpoints and tracepoints.
2682 * breakpoint.h (struct bp_location) <probe>: New field.
2683 * cli-utils.c (skip_spaces_const): New function.
2684 (extract_arg): Likewise.
2685 * cli-utils.h (skip_spaces_const): Likewise.
2686 (extract_arg): Likewise.
2687 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2688 * configure.ac: Append `stap-probe.o' to be generated when ELF
2689 support is present.
2690 * configure: Regenerate.
2691 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2692 * elfread.c: Include `probe.h' and `arch-utils.h'.
2693 (probe_key): New variable.
2694 (elf_get_probes): New function.
2695 (elf_get_probe_argument_count): Likewise.
2696 (elf_evaluate_probe_argument): Likewise.
2697 (elf_compile_to_ax): Likewise.
2698 (elf_symfile_relocate_probe): Likewise.
2699 (stap_probe_key_free): Likewise.
2700 (elf_probe_fns): New variable.
2701 (elf_sym_fns): Add `sym_probe_fns' value.
2702 (elf_sym_fns_lazy_psyms): Likewise.
2703 (elf_sym_fns_gdb_index): Likewise.
2704 (_initialize_elfread): Initialize objfile cache for static
2705 probes.
2706 * gdb_vecs.h (struct probe): New forward declaration.
2707 (probe_p): New VEC declaration.
2708 * gdbarch.c: Regenerate.
2709 * gdbarch.h: Regenerate.
2710 * gdbarch.sh (stap_integer_prefix): New variable.
2711 (stap_integer_suffix): Likewise.
2712 (stap_register_prefix): Likewise.
2713 (stap_register_suffix): Likewise.
2714 (stap_register_indirection_prefix): Likewise.
2715 (stap_register_indirection_suffix): Likewise.
2716 (stap_gdb_register_prefix): Likewise.
2717 (stap_gdb_register_suffix): Likewise.
2718 (stap_is_single_operand): New function.
2719 (stap_parse_special_token): Likewise.
2720 (struct stap_parse_info): Forward declaration.
2721 * i386-tdep.c: Including headers needed to perform the parsing
2722 of SystemTap probes' arguments.
2723 (i386_stap_is_single_operand): New function.
2724 (i386_stap_parse_special_token): Likewise.
2725 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2726 probes' arguments parser.
2727 * i386-tdep.h (i386_stap_is_single_operand): New function.
2728 (i386_stap_parse_special_token): Likewise.
2729 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2730 * mipsread.c (ecoff_sym_fns): Likewise.
2731 * objfiles.c (objfile_relocate1): Support relocation for static
2732 probes.
2733 * parse.c (prefixify_expression): Remove static declaration.
2734 (initialize_expout): Likewise.
2735 (reallocate_expout): Likewise.
2736 * parser-defs.h (initialize_expout): Declare function.
2737 (reallocate_expout): Likewise.
2738 (prefixify_expression): Likewise.
2739 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2740 of SystemTap probes' arguments.
2741 (ppc_stap_is_single_operand): New function.
2742 (ppc_stap_parse_special_token): Likewise.
2743 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2744 probes' arguments parser.
2745 * probe.c: New file, for generic statically defined probe support.
2746 * probe.h: Likewise.
2747 * s390-tdep.c: Including headers needed to perform the parsing of
2748 SystemTap probes' arguments.
2749 (s390_stap_is_single_operand): New function.
2750 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2751 probes' arguments parser.
2752 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2753 * stap-probe.c: New file, for SystemTap probe support.
2754 * stap-probe.h: Likewise.
2755 * symfile.h: Include `gdb_vecs.h'.
2756 (struct sym_probe_fns): New struct.
2757 (struct sym_fns) <sym_probe_fns>: New field.
2758 * symtab.c (init_sal): Initialize `probe' field.
2759 * symtab.h (struct probe): Forward declaration.
2760 (struct symtab_and_line) <probe>: New field.
2761 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2762 locations.
2763 (stop_tracing): Likewise.
2764 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2765
22d2b532
SDJ
27662012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2767 Tom Tromey <tromey@redhat.com>
2768
2769 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2770 and to compile agent expressions.
2771 * infrun.c (siginfo_make_value): New argument `ignore'.
2772 (siginfo_funcs): New struct.
2773 (_initialize_infrun): New argument when calling
2774 `create_internalvar_type_lazy'.
2775 * thread.c (thread_id_make_value): New argument `ignore'.
2776 (thread_funcs): New struct.
2777 (_initialize_thread): New argument when calling
2778 `create_internalvar_type_lazy'.
2779 * tracepoint.c (sdata_make_value): New argument `ignore'.
2780 (sdata_funcs): New struct.
2781 (_initialize_tracepoint): New argument when calling
2782 `create_internalvar_type_lazy'.
2783 * value.c (make_value): New struct.
2784 (create_internalvar_type_lazy): New argument `data'.
2785 (compile_internalvar_to_ax): New function.
2786 (value_of_internalvar): Properly handling `make_value' case.
2787 (clear_internalvar): Likewise.
2788 (show_convenience): Adding `TRY_CATCH' block.
2789 * value.h (internalvar_make_value): Delete, replace by...
2790 (struct internalvar_funcs): ... this.
2791 (create_internalvar_type_lazy) <fun>: Delete argument.
2792 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2793 (compile_internalvar_to_ax): New function.
2794 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2795 (tlb_funcs): New struct.
2796 (_initialize_windows_tdep): New argument when calling
2797 `create_internalvar_type_lazy'.
2798
91da1414
MW
27992012-04-27 Mark Wielaard <mjw@redhat.com>
2800
2801 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2802 see whether it is an address or a constant offset from DW_AT_low_pc.
2803 (dwarf2_record_block_ranges): Likewise.
2804 (read_partial_die): Likewise.
2805
4ab9d8ec
MW
28062012-04-26 Mark Wielaard <mjw@redhat.com>
2807
2808 * MAINTAINERS (Write After Approval): Add myself to the list.
2809
a0911fd0
MR
28102012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2811
2812 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2813 (proc_prettyprint_signal): Likewise.
2814 (proc_prettyprint_faultset): Likewise.
2815 (proc_prettyprint_fault): Likewise.
2816 (proc_prettyprint_actionset): Likewise.
2817 (proc_prettyprint_flags): Move to new proc-flags.c section.
2818 (proc_prettyfprint_flags): New prototype.
2819 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2820 (proc_syscall, proc_cursig): Likewise.
2821 (proc_set_kill_on_last_close): Likewise.
2822 (proc_unset_kill_on_last_close): Likewise.
2823 (proc_set_watchpoint): Make static.
2824 (proc_delete_dead_threads): Likewise.
2825 (procfs_set_watchpoint): Likewise.
2826 (_initialize_procfs): Add prototype.
2827 * proc-events.c: Include proc-utils.h.
2828 (init_syscall_table): Make static.
2829 * proc-api.c (_initialize_proc_api): Add prototype.
2830 * proc-flags.c: Include proc-utils.h.
2831
9009e1ae
MR
28322012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2833
2834 * configure.ac: Add AC_ARG_PROGRAM.
2835 * configure: Regenerate.
2836
4fae6e18
JK
28372012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2838
2839 Fix DW_AT_lower_bound defaults for DWARF-4+.
2840 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2841 high. New variable low_default_is_valid. Implement DWARF-4+
2842 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2843 no default by the DWARF standard.
2844
14132e89
MR
28452012-04-26 Maciej W. Rozycki <macro@mips.com>
2846 Maciej W. Rozycki <macro@codesourcery.com>
2847
2848 * infrun.c (handle_inferior_event): Move the check for return
2849 trampolines ahead of the check for function trampolines.
2850 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2851 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2852 (mips_str_mips16_ret_stub): Likewise.
2853 (mips_str_call_fp_stub): Likewise.
2854 (mips_str_call_stub): Likewise.
2855 (mips_str_fn_stub): Likewise.
2856 (mips_str_pic): Likewise.
2857 (mips_in_frame_stub): New function.
2858 (mips_unwind_pc): Return the return address rather than the PC
2859 if the PC of an intermediate frame is inside a call thunk.
2860 (mips_is_stub_suffix): New function.
2861 (mips_is_stub_mode): Likewise.
2862 (mips_get_mips16_fn_stub_pc): Likewise.
2863 (mips_skip_mips16_trampoline_code): Update to handle all the
2864 currently generated stub types. Don't recurse into __fn_stub
2865 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2866 Use cooked register accesses.
2867 (mips_in_return_stub): Reintroduce function.
2868 (mips_skip_trampoline_code): Traverse trampolines recursively.
2869 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2870
518f0db5 28712012-04-26 Joel Brobecker <brobecker@adacore.com>
2872
2873 GDB 7.4.1 released.
2874
3184d3f9
JL
28752012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2876
2877 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2878 * features/arm-with-m-vfp-d16.xml: New file. Describes
2879 Cortex-M with VFPv4-sp-d16 FPU register layout.
2880 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2881 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2882 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2883 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2884 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2885
b6201d44
DE
28862012-04-25 Doug Evans <dje@google.com>
2887
2888 * cli/cli-decode.c (print_doc_line): Use stream instead of
2889 current_uiout.
2890
4e2f8df6
SDJ
28912012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2892
2893 * features/arm-with-iwmmxt.c: Regenerate.
2894 * features/arm-with-m-fpa-layout.c: Likewise.
2895 * features/arm-with-m.c: Likewise.
2896 * features/arm-with-neon.c: Likewise.
2897 * features/arm-with-vfpv2.c: Likewise.
2898 * features/arm-with-vfpv3.c: Likewise.
2899 * features/mips-dsp-linux.c: Likewise.
2900 * features/mips-linux.c: Likewise.
2901 * features/mips64-dsp-linux.c: Likewise.
2902 * features/mips64-linux.c: Likewise.
2903 * features/s390-linux32.c: Likewise.
2904 * features/s390-linux32v1.c: Likewise.
2905 * features/s390-linux32v2.c: Likewise.
2906 * features/s390-linux64.c: Likewise.
2907 * features/s390-linux64v1.c: Likewise.
2908 * features/s390-linux64v2.c: Likewise.
2909 * features/s390x-linux64.c: Likewise.
2910 * features/s390x-linux64v1.c: Likewise.
2911 * features/s390x-linux64v2.c: Likewise.
2912 * features/tic6x-c62x-linux.c: Likewise.
2913 * features/tic6x-c62x.c: Likewise.
2914 * features/tic6x-c64x-linux.c: Likewise.
2915 * features/tic6x-c64x.c: Likewise.
2916 * features/tic6x-c64xp-linux.c: Likewise.
2917 * features/tic6x-c64xp.c: Likewise.
2918 * target-descriptions.c: Only generate `field_type' and `type'
2919 variables when needed.
2920
2def3e66
JB
29212012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2922
2923 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2924
a766d390
DE
29252012-04-25 Doug Evans <dje@google.com>
2926
2927 Initial pass at Go language support.
2928 * NEWS: Mention Go.
2929 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2930 go-valprint.c.
2931 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2932 (YYFILES): Add go-exp.c.
2933 (YYOBJ): Add go-exp.o.
2934 (local-maintainer-clean): Delete go-exp.c.
2935 * defs.h (enum language): Add language_go.
2936 * dwarf2read.c: #include "go-lang.h".
2937 (fixup_go_packaging): New function.
2938 (process_full_comp_unit): Call it when processing Go CUs.
2939 (dwarf2_physname): Add Go support.
2940 (read_file_scope): Handle missing language spec for GNU Go.
2941 (set_cu_language): Handle DW_LANG_Go.
2942 * go-exp.y: New file.
2943 * go-lang.h: New file.
2944 * go-lang.c: New file.
2945 * go-typeprint.c: New file.
2946 * go-valprint.c: New file.
2947 * symtab.c: #include "go-lang.h".
2948 (symbol_set_language): Handle language_go.
2949 (symbol_find_demangled_name, symbol_set_names): Ditto.
2950 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2951
4e2af517
JM
29522012-04-24 Jim Meyering <meyering@redhat.com>
2953
2954 avoid a few strncpy-induced buffer overruns
2955 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2956 fname and psargs before trying to concatenate.
2957 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2958 "name" before applying strchr.
2959
b77b7f52
SCR
29602012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2961
2962 * CONTRIBUTE: Use unified diff instead of context diff when
2963 generating patches.
2964
6321c22a
MR
29652012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2966
2967 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2968 code. Handle JR.HB correctly.
2969
742c84f6
MR
29702012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2971
2972 * mips-tdep.c
2973 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2974 with the other MIPS16 helpers.
2975
7fc7e0c3
SDJ
29762012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2977
2978 * observer.sh: Conditionally declare `args', thus cleaning up
2979 unused instances of this variable.
2980
20388dd6
YQ
29812012-04-24 Yao Qi <yao@codesourcery.com>
2982
2983 Revert this patch to allow breakpoint always-inserted
2984 in record target.
2985 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2986 * breakpoint.c: Include record.h.
2987 (breakpoints_always_inserted_mode): Return false when the record
2988 target is in use.
2989
2990 * breakpoint.c (iterate_over_bp_locations): New.
2991 * breakpoint.h: Declare.
2992 New typedef walk_bp_location_callback.
2993 * record.c (record_open): Call record_init_record_breakpoints.
2994 (record_sync_record_breakpoints): New.
2995 (record_init_record_breakpoints): New.
2996 * NEWS: Mention supporting breakpoint always-inserted mode in
2997 record target.
2998
4734f50e
MK
29992012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
3000
3001 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
3002 any thread.
3003
c326b90e
YQ
30042012-04-24 Yao Qi <yao@codesourcery.com>
3005
3006 * breakpoint.c (ep_is_catchpoint): Renamed to ...
3007 (is_catchpoint): ... it.
3008 (print_one_breakpoint_location): Caller update.
3009 * breakpoint.h: Update declaration.
3010
d8fb5a1e
DM
30112012-04-23 David S. Miller <davem@davemloft.net>
3012
3013 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
3014
34431a2a
TT
30152012-04-23 Tom Tromey <tromey@redhat.com>
3016
3017 * buildsym.c (add_free_pendings): Remove.
3018 * buildsym.h (add_free_pendings): Remove.
3019
4568ecf9
DE
30202012-04-23 Doug Evans <dje@google.com>
3021
3022 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
3023 attr.u.unsnd instead of attr.u.addr.
3024 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
3025 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
3026 DW_FORM_ref_udata.
3027 (dump_die_shallow): Update cases DW_FORM_ref_addr,
3028 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
3029 DW_FORM_ref_udata.
3030 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
3031
dca9aa3a
MR
30322012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
3033
3034 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
3035 (mips_o32_return_value): Likewise.
3036 (mips_o64_return_value): Likewise.
3037
c8ea1972
PH
30382012-04-21 Paul Hilfinger <hilfinger@adacore.com>
3039
3040 * ada-lang.c (ada_evaluate_subexp): Add cases for
3041 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
3042 their treatment in eval.c.
3043
8d1b3521
DM
30442012-04-21 David S. Miller <davem@davemloft.net>
3045
3046 * sparc-tdep.c (X_DISP10): Define.
3047 (sparc_analyze_control_transfer): Handle compare-and-branch.
3048
03145bf4
JL
30492012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
3050
3051 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
3052 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
3053
004159a2
MR
30542012-04-20 Nigel Stephens <nigel@mips.com>
3055 Maciej W. Rozycki <macro@codesourcery.com>
3056
3057 * mips-tdep.c (mips_float_register_p): New function.
3058 (mips_convert_register_float_case_p): Use mips_float_register_p.
3059 (mips_register_type): Likewise.
3060 (mips_print_register): Likewise.
3061 (print_gp_register_row): Likewise.
3062 (mips_print_registers_info): Likewise.
3063
7f0e6aae
MR
30642012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
3065
3066 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
3067 of mips16 symbols.
3068
bc17beea
AP
30692012-04-20 Andrew Pinski <apinski@cavium.com>
3070
3071 * MAINTAINERS (Write After Approval): Add myself to the list.
3072
1730a5a5
SDJ
30732012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
3074
3075 * MAINTAINERS: Update my e-mail address.
3076
38ea300a
PA
30772012-04-20 Pedro Alves <palves@redhat.com>
3078
3079 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
3080 $srcdir.
3081 * configure: Regenerate.
3082
111dfaae
SDJ
30832012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
3084
3085 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
3086 declaration.
3087 * gdb_vecs.h: Declare `const_char_ptr' VEC.
3088
4fb2c64a
JK
30892012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3090
3091 Fix compilation compatibility with python-2.4
3092 * python/py-type.c (convert_field): Cast ADDRSTRING for
3093 PyObject_SetAttrString as non-const. New comment.
3094
6328eb38
TT
30952012-04-19 Tom Tromey <tromey@redhat.com>
3096
3097 * top.c (quit_target): Use all_cleanups.
3098 * main.c (captured_command_loop): Use all_cleanups.
3099 * exceptions.c (throw_exception): Use all_cleanups.
3100
c971b7fa
PA
31012012-04-19 Pedro Alves <palves@redhat.com>
3102
3103 * Makefile.in (GNULIB_BUILDDIR): New.
3104 (LIBGNU, INCGNU, GNULIB_H): Adjust.
3105 (SUBDIRS): Add $(GNULIB_BUILDDIR).
3106 (CLEANDIRS). Remove gnulib/import.
3107 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
3108 (all-lib): Ditto.
3109 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
3110 (gnulib/import/Makefile): Replace gnulib/import with
3111 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
3112 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
3113 (aclocal_m4_deps): Remove the gnulib dependencies. Add
3114 acx_configure_dir.m4.
3115 * acinclude.m4: Include acx_configure_dir.m4.
3116 * acx_configure_dir.m4: New file.
3117 * aclocal.m4: Regenerate.
a09130f9
PA
3118 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
3119 calls. Configure gnulib using ACX_CONFIGURE_DIR.
3120 (GNULIB): New variable.
3121 (GNULIB_STDINT_H): Adjust.
3122 (AC_OUTPUT): Don't output gnulib/Makefile.
3123 * gdb/defs.h: Include build-gnulib/config.h.
3124 * aclocal.m4: Regenerate.
3125 * config.in: Regenerate.
3126 * configure: Regenerate.
3127
3128 * gnulib/Makefile.in: New file.
3129 * gnulib/configure.ac: New file.
3130 * gnulib/aclocal.m4: New file.
3131 * gnulib/config.in: New file.
3132 * gnulib/configure: New file.
c971b7fa
PA
3133 * gnulib/: Re-run gnulib-tool to adjust.
3134
b10faa68
DE
31352012-04-19 Doug Evans <dje@google.com>
3136
3137 * cleanups.h (struct cleanup): Move to cleanups.c.
3138 (make_cleanup_dtor_ftype): New typedef.
3139 (make_cleanup_dtor): Use it.
3140 (ALL_CLEANUPS): Replace with ...
3141 (all_cleanups): ... this. Declare. All uses updated.
3142 * cleanups.c: #include "gdb_assert.h".
3143 (sentinel_cleanup): New static global.
3144 (SENTINEL_CLEANUP): Define.
3145 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
3146 (make_my_cleanup2): Assert result is non-NULL.
3147 (all_cleanups): New function.
3148 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
3149 of NULL.
3150
d8c267cc
PA
31512012-04-19 Pedro Alves <palves@redhat.com>
3152
3153 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
3154 Adjust paths to gnulib imported files.
3155
809277f8
PA
31562012-04-19 Pedro Alves <palves@redhat.com>
3157
3158 * gnulib/: Move whole directory ...
3159 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
3160 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
3161 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
3162 (aclocal_m4_deps): Adjust.
3163 * aclocal.m4: Regenerate.
3164 * configure: Regenerate.
3165 * configure.ac: Adjust AC_OUTPUT output.
3166
aad9eab9
YQ
31672012-04-19 Yao Qi <yao@codesourcery.com>
3168
3169 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
3170 (vec.o): New rule.
3171 * vec.c: Move it ...
3172 * common/vec.c: ... here.
3173 * vec.h: Move it ...
3174 * common/vec.h: ... here.
3175
48fe4669
YQ
31762012-04-19 Yao Qi <yao@codesourcery.com>
3177
3178 * gdb-code-style.el: New.
3179
770d76d7
PA
31802012-04-18 Pedro Alves <palves@redhat.com>
3181
3182 Update gnulib from latest git.
3183 (639ea5ae15e39fe48d43e04864b2997301e4b969)
3184
3185 * gnulib/Makefile.am: Update.
3186 * gnulib/dummy.c: Update.
3187 * gnulib/extra/arg-nonnull.h: Update.
3188 * gnulib/extra/c++defs.h: Update.
3189 * gnulib/extra/update-copyright: Update.
3190 * gnulib/extra/warn-on-use.h: Update.
3191 * gnulib/inttypes.in.h: Update.
3192 * gnulib/m4/00gnulib.m4: Update.
3193 * gnulib/m4/extensions.m4: Update.
3194 * gnulib/m4/gnulib-cache.m4: Update.
3195 * gnulib/m4/gnulib-common.m4: Update.
3196 * gnulib/m4/gnulib-comp.m4: Update.
3197 * gnulib/m4/gnulib-tool.m4: Update.
3198 * gnulib/m4/include_next.m4: Update.
3199 * gnulib/m4/inttypes-pri.m4: Update.
3200 * gnulib/m4/inttypes.m4: Update.
3201 * gnulib/m4/longlong.m4: Update.
3202 * gnulib/m4/memchr.m4: Update.
3203 * gnulib/m4/memmem.m4: Update.
3204 * gnulib/m4/mmap-anon.m4: Update.
3205 * gnulib/m4/multiarch.m4: Update.
3206 * gnulib/m4/onceonly.m4: Update.
3207 * gnulib/m4/stddef_h.m4: Update.
3208 * gnulib/m4/stdint.m4: Update.
3209 * gnulib/m4/string_h.m4: Update.
3210 * gnulib/m4/warn-on-use.m4: Update.
3211 * gnulib/m4/wchar_h.m4: Update.
3212 * gnulib/m4/wchar_t.m4: Update.
3213 * gnulib/m4/wint_t.m4: Update.
3214 * gnulib/memchr.c: Update.
3215 * gnulib/memmem.c: Update.
3216 * gnulib/stddef.in.h: Update.
3217 * gnulib/stdint.in.h: Update.
3218 * gnulib/str-two-way.h: Update.
3219 * gnulib/string.in.h: Update.
3220 * gnulib/wchar.in.h: Update.
3221
3222 * gnulib/extra/arg-nonnull.h: Delete.
3223 * gnulib/extra/c++defs.h: Delete.
3224 * gnulib/extra/warn-on-use.h: Delete.
3225 * gnulib/m4/wchar_h.m4: Delete.
3226 * gnulib/m4/wint_t.m4: Delete.
3227 * gnulib/wchar.in.h: Delete.
3228
3229 * gnulib/extra/snippets/arg-nonnull.h: New.
3230 * gnulib/extra/snippets/c++defs.h: New.
3231 * gnulib/extra/snippets/warn-on-use.h: New.
3232
3233 * aclocal.m4: Regenerate.
3234 * config.in: Regenerate.
3235 * configure: Regenerate.
3236 * gnulib/Makefile.in: Regenerate.
3237
174e088e
PA
32382012-04-18 Pedro Alves <palves@redhat.com>
3239
3240 Reimport the update-copyright module from gnulib
3241 (250b80067c1e1d8faa0c42fb572f721975b929c5).
3242
3243 * configure: Regenerate.
3244 * gnulib/Makefile.am: Update.
3245 * gnulib/Makefile.in: Regenerate.
3246 * gnulib/extra/update-copyright: Update.
3247 * gnulib/m4/gnulib-cache.m4: Update.
3248 * gnulib/m4/gnulib-comp.m4: Update.
3249
7f533142
JB
32502012-04-18 Tristan Gingold <gingold@adacore.com>
3251
3252 * configure.ac (aix): Put -lpthread into libs.
3253 * configure: Regenerate.
3254
001822aa
TT
32552012-04-18 Tom Tromey <tromey@redhat.com>
3256
3257 * linespec.c (convert_linespec_to_sals): Don't use
3258 SYMBOL_OBJ_SECTION.
3259 (compare_msymbols): Arguments are minsym_and_objfile, not
3260 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
3261
db026a31
PA
32622012-04-18 Pedro Alves <palves@redhat.com>
3263
3264 Revert gnulib/ part of:
3265 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3266 Copyright year update in most files (performed by copyright.sh).
3267
12df843f
JK
32682012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3269
3270 Fix 64-bit constants on 32-bit hosts.
3271 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
3272 from unsigned long to ULONGEST.
3273 (read_signed_leb128): Change declaration return type from long to
3274 LONGEST.
3275 (dwarf2_const_value_attr): Change declaration parameter value from long
3276 to LONGEST.
3277 (dwarf2_compute_name): Change variable value from long to LONGEST.
3278 (read_unsigned_leb128): Change return type, variable result and some
3279 casts from unsigned long to ULONGEST.
3280 (read_signed_leb128): Change return type, variable result and some
3281 casts from long to LONGEST.
3282 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
3283 value from long to LONGEST.
3284 (dwarf2_const_value): Change variable value from long to LONGEST.
3285 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
3286 plongest and hex_string.
3287 * symtab.h (struct general_symbol_info): Change ivalue from long to
3288 LONGEST, remove the comment.
3289 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
3290 Change SYMBOL_VALUE format strings to use plongest and hex_string.
3291
14e75d8e
JK
32922012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
3293
3294 PR symtab/7259:
3295 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
3296 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
3297 (ada_discrete_type_low_bound): Fix function comment. Use
3298 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
3299 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
3300 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3301 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
3302 Use TYPE_FIELD_ENUMVAL.
3303 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
3304 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3305 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
3306 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
3307 TYPE_CODE_ENUM.
3308 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
3309 * dwarf2read.c (process_enumeration_scope): Likewise.
3310 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
3311 field.bitpos.
3312 (class StructMainTypePrettyPrinter): Support also
3313 FIELD_LOC_KIND_ENUMVAL.
3314 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
3315 TYPE_CODE_ENUM.
3316 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3317 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
3318 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
3319 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
3320 field enumval.
3321 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
3322 accommodate enumval.
3323 (struct call_site): Adjust loc_kind to accommodate enumval.
3324 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
3325 (TYPE_FIELD_ENUMVAL): New macros.
3326 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
3327 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
3328 TYPE_CODE_ENUM.
3329 * p-typeprint.c (pascal_type_print_base): Likewise.
3330 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
3331 enumval.
3332 * python/lib/gdb/types.py (make_enum_dict): Likewise.
3333 * python/py-type.c (convert_field): New variable addrstring. Use
3334 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3335 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
3336 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
3337 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
3338 TYPE_CODE_ENUM.
3339 * valprint.c (generic_val_print): Likewise.
3340
380bca97
DE
33412012-04-17 Doug Evans <dje@google.com>
3342
dcc07052
DE
3343 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
3344
380bca97
DE
3345 * dwarf2read.c: Whitespace fixes.
3346 (lookup_signatured_type): Tweak comment.
3347 (get_die_type_at_offset): Fix comment.
3348
ec92004f
JB
33492012-04-17 Joel Brobecker <brobecker@adacore.com>
3350
3351 * xcoffread.c (xcoff_secnum_to_sections): New function.
3352 (secnum_to_section, secnum_to_bfd_section): Reimplement
3353 using xcoff_secnum_to_sections. Rename "secnum" parameter
3354 into "n_scnum".
3355 (RECORD_MINIMAL_SYMBOL): Delete.
3356 (record_minimal_symbol): New function.
3357 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
3358 by call to record_minimal_symbol and set misc_func_recorded
3359 to 1. Set last_csect_sec to the XCOFF section index instead
3360 of GDB's section_offset index. Update calls to
3361 prim_record_minimal_symbol_and_info to pass the BFD section
3362 as well.
3363
40301fb7
JB
33642012-04-17 Joel Brobecker <brobecker@adacore.com>
3365
3366 * xcoffread.c (read_xcoff_symtab): Delete variables
3367 last_csect_val and last_csect_sec and associated code.
3368
e0088cfd
DE
33692012-04-17 Doug Evans <dje@google.com>
3370
58d5e2c3
DE
3371 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
3372 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3373 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
3374 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
3375
c27f5738
DE
3376 * cleanups.h: New file.
3377 * cleanups.c: New file.
3378 * Makefile.in (SFILES): Add cleanups.c.
3379 (HFILES_NO_SRCDIR): Add cleanups.h.
3380 (COMMON_OBS): Add cleanups.o.
3381 * defs.h (struct cleanup): Moved to cleanups.h.
3382 (do_cleanups,do_final_cleanups): Ditto.
3383 (discard_cleanups,discard_final_cleanups): Ditto
3384 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3385 (save_cleanups,save_final_cleanups): Ditto.
3386 (restore_cleanups,restore_final_cleanups): Ditto.
3387 (null_cleanup): Ditto.
3388 (make_my_cleanup,make_my_cleanup2): Ditto.
3389 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3390 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
3391 (do_cleanups,do_final_cleanups): Ditto.
3392 (discard_cleanups,discard_final_cleanups): Ditto
3393 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3394 (save_cleanups,save_final_cleanups): Ditto.
3395 (restore_cleanups,restore_final_cleanups): Ditto.
3396 (null_cleanup): Ditto.
3397 (make_my_cleanup,make_my_cleanup2): Ditto.
3398 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3399
e0088cfd
DE
3400 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
3401 make_my_cleanup.
3402 (make_cleanup_dyn_string_delete): Ditto.
3403 (make_cleanup_ui_file_delete): Ditto.
3404 (make_cleanup_ui_out_redirect_pop): Ditto.
3405 (make_cleanup_free_section_addr_info): Ditto.
3406 (make_cleanup_restore_integer): Ditto.
3407 (make_cleanup_unpush_target): Ditto.
3408 (make_cleanup_value_free_to_mark): Ditto.
3409 (make_cleanup_value_free): Ditto.
3410 (make_cleanup_free_so): Ditto.
3411
4dc84fd1
JK
34122012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3413
3414 New option "set debug auto-load".
3415 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
3416 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
3417 (auto_load_safe_path_vec_update)
3418 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
3419 if DEBUG_AUTO_LOAD.
3420 (file_is_auto_load_safe): New parameters debug_fmt and ....
3421 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
3422 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
3423 caller by explanatory string.
3424 (_initialize_auto_load): Register "set debug auto-load".
3425 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
3426 and ....
3427 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3428 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3429 by explanatory string.
3430 * main.c (captured_main): Likewise.
3431 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3432 (source_section_scripts): Likewise.
3433
bccbefd2
JK
34342012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3435
3436 New option "set auto-load safe-path".
3437 * NEWS: New commands "set auto-load safe-path"
3438 and "show auto-load safe-path".
3439 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3440 (auto_load_safe_path, auto_load_safe_path_vec)
3441 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3442 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3443 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3444 (source_gdb_script_for_objfile): New variable is_safe. Call
3445 file_is_auto_load_safe. Return if it is not.
3446 (struct loaded_script): New field loaded.
3447 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
3448 (print_script): Use LOADED indicator instead of FULL_PATH. Change
3449 output "Missing" to "No".
3450 (_initialize_auto_load): New variable cmd. Initialize
3451 auto_load_safe_path. Register "set auto-load safe-path",
3452 "show auto-load safe-path" and "add-auto-load-safe-path".
3453 * auto-load.h (maybe_add_script): Add parameter loaded.
3454 (file_is_auto_load_safe): New declaration.
3455 * config.in: Regenerate.
3456 * configure: Regenerate.
3457 * configure.ac: New parameters --with-auto-load-safe-path
3458 and --without-auto-load-safe-path.
3459 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3460 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3461 * main.c (captured_main): Check file_is_auto_load_safe for
3462 LOCAL_GDBINIT.
3463 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3464 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
3465 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
3466 not.
3467
bf88dd68
JK
34682012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3469
3470 auto-load: Implementation.
3471 * NEWS: New descriptions for "info auto-load",
3472 "info auto-load gdb-scripts", "info auto-load python-scripts",
3473 "info auto-load local-gdbinit" and "info auto-load libthread-db".
3474 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3475 and "show auto-load-scripts". New description for "set auto-load",
3476 "show auto-load", "set auto-load gdb-scripts",
3477 "show auto-load gdb-scripts", "set auto-load python-scripts",
3478 "show auto-load python-scripts", "set auto-load local-gdbinit",
3479 "show auto-load local-gdbinit", "set auto-load libthread-db" and
3480 "show auto-load libthread-db".
3481 * auto-load.c: Remove include python/python-internal.h. Add includes
3482 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3483 cli/cli-setshow.h.
3484 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3485 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3486 (gdbpy_global_auto_load): Rename to ...
3487 (global_auto_load): ... here.
3488 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3489 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3490 (script_language_gdb, source_gdb_script_for_objfile): New.
3491 (struct loaded_script): New field language.
3492 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3493 LANGUAGE.
3494 (maybe_add_script): Add parameter language. Drop redundant
3495 entry.full_path initialization. Initialize entry.language and
3496 (*slot)->language.
3497 (auto_load_objfile_script): Change parameter suffix to language.
3498 Remove the call of maybe_add_script.
3499 Call language->source_script_for_objfile.
3500 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3501 New.
3502 (collect_matching_scripts): Adjust it for
3503 struct collect_matching_scripts_data.
3504 (auto_load_info_scripts_pattern_nl): New variable.
3505 (info_auto_load_scripts): Rename to ...
3506 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3507 for struct collect_matching_scripts_data.
3508 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3509 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3510 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3511 (auto_load_info_cmdlist_get): New.
3512 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3513 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3514 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3515 "info auto-load local-gdbinit".
3516 * auto-load.h (struct script_language): New.
3517 (gdbpy_global_auto_load): Rename to ...
3518 (global_auto_load): ... here.
3519 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3520 (auto_load_local_gdbinit_loaded): New declarations.
3521 (maybe_add_script): New parameter language.
3522 (auto_load_objfile_script): Change parameter suffix to language.
3523 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3524 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3525 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3526 declarations.
3527 * linux-thread-db.c: Include auto-load.h and ctype.h.
3528 (auto_load_thread_db, show_auto_load_thread_db): New.
3529 (struct thread_db_info): New field filename.
3530 (delete_thread_db_info): Call xfree for FILENAME.
3531 (try_thread_db_load): Initialize FILENAME.
3532 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3533 if !AUTO_LOAD_THREAD_DB.
3534 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3535 (_initialize_thread_db): Install auto_load_thread_db
3536 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3537 as "info auto-load libthread-db".
3538 * main.c (captured_main): Rename gdbpy_global_auto_load to
3539 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3540 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3541 (print_gdb_help): Extend the help for 'local init file'.
3542 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3543 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3544 (auto_load_scripts): Rename to ...
3545 (auto_load_python_scripts): ... here, update the comment.
3546 (gdbpy_load_auto_script_for_objfile): New declaration.
3547 (show_auto_load_python_scripts, script_language_python)
3548 (gdbpy_load_auto_script_for_objfile): New.
3549 (source_section_scripts): Refactor the code.
3550 (load_auto_scripts_for_objfile): Rename to ...
3551 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3552 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3553 (info_auto_load_python_scripts): New.
3554 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3555 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3556 Register "set auto-load-scripts" as its deprecated alias. Register
3557 "info auto-load python-scripts". Register "info auto-load-scripts" as
3558 its deprecated alias.
3559 (load_auto_scripts_for_objfile): Rename to ...
3560 (gdbpy_load_auto_scripts_for_objfile): ... here.
3561 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3562 (gdbpy_load_auto_scripts_for_objfile): ... here.
3563
e2207b9a
JK
35642012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3565
3566 auto-load: Move files.
3567 * Makefile.in (SFILES): Add auto-load.c.
3568 (HFILES_NO_SRCDIR): Add auto-load.h.
3569 (COMMON_OBS): Add auto-load.o.
3570 (distclean): Change .gdbinit for gdb-gdb.gdb.
3571 * auto-load.c: New file, with parts from python/py-auto-load.c.
3572 * auto-load.h: New file, with parts from python/python.h.
3573 * configure: Regenerate.
3574 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3575 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3576 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3577 * main.c: Include auto-load.h.
3578 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3579 command.h, observer.h and progspace.h to auto-load.c. Add include
3580 auto-load.h.
3581 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3582 (struct loaded_script, auto_load_pspace_data)
3583 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3584 (hash_loaded_script_entry, eq_loaded_script_entry)
3585 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3586 (maybe_add_script): Move to auto-load.c.
3587 (source_section_scripts): Change maybe_add_script parameters passing,
3588 use script_not_found_warning_print.
3589 (clear_section_scripts, auto_load_objfile_script)
3590 (auto_load_new_objfile, loaded_script_ptr)
3591 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3592 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3593 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3594 auto_load_new_objfile and info_auto_load_scripts initizations to
3595 auto-load.c.
3596 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3597
e4ab2fad
JK
35982012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3599
3600 Code cleanup.
3601 * charset.c (find_charset_names): Remove variables ix and elt.
3602 Use free_char_ptr_vec.
3603 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3604 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3605 debugdir_end. New variable debugdir_len.
3606 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3607 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3608 declarations.
3609 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3610 and elt. Use free_char_ptr_vec.
3611 * source.c (add_path): Remove variables argv, arg and argv_index.
3612 New variables dir_vec, back_to, ix and name.
3613 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3614 make_cleanup_freeargv. Remove variable separator. Simplify the code
3615 no longer expecting DIRNAME_SEPARATOR.
3616 (openp): Remove variable p, p1 and len. New variables dir_vec,
3617 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3618 no longer expecting DIRNAME_SEPARATOR.
3619 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3620 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3621 debugdir_end.
3622 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3623 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3624 (dirnames_to_char_ptr_vec): New functions.
3625
5ee4ed9f
JK
36262012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3627
3628 Code cleanup.
3629 * source.c (add_path): Remove always true conditional 'p == 0' and
3630 unindent its code block.
3631
f41f5e61
PA
36322012-04-17 Pedro Alves <palves@redhat.com>
3633
3634 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3635 (FIELD_BITPOS_LVAL): ... this.
3636 (FIELD_BITPOS): New.
3637 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3638 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3639 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3640 SET_FIELD_BITPOS.
3641 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3642 SET_FIELD_BITPOS.
3643 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3644 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3645 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3646 SET_FIELD_BITPOS.
3647
945b3a32
JK
36482012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3649
3650 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3651 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3652 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3653 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3654 * jv-lang.c (java_link_class_type): Likewise, once.
3655 * stabsread.c (read_enum_type): Likewise.
3656
42476b70
YQ
36572012-04-16 Yao Qi <yao@codesourcery.com>
3658
3659 * common/agent.c (agent_run_command): Add one more parameter `len'.
3660 Update callers.
3661 * common/agent.h: Update declaration.
3662 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3663 Update.
3664 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3665
8264ba82
AG
36662012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3667
3668 PR mi/13393
3669 * value.c (value_actual_type): New function.
3670 * value.h (value_actual_type): New declaration.
3671 * varobj.c (update_type_if_necessary): New function.
3672 (varobj_create): Call value_actual_type instead of
3673 value_type.
3674 (install_dynamic_child): distinct changed and type changed MI variable
3675 objects.
3676 (update_dynamic_varobj_children): Updated for install_dynamic_child
3677 change. All callers updated.
a09130f9 3678 (varobj_update): Support for MI variable object type change if
8264ba82
AG
3679 the value changed and RTTI is used to determine the type.
3680 (create_child_with_value): Call value_actual_type instead of
3681 value_type.
a09130f9 3682 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
3683 specify whether the given value should be casted to enclosing type.
3684 All callers updated.
3685
55a8c076
YQ
36862012-04-14 Yao Qi <yao@codesourcery.com>
3687
3688 Import gnulib module inttypes from git
3689 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3690 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
3691 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3692 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
3693 * aclocal.m4, config.in, configure: Regenerated.
3694 * gnulib/Makefile.am: Update.
3695 * gnulib/Makefile.in: Update.
3696 * gnulib/m4/gnulib-cache.m4: Update.
3697 * gnulib/m4/gnulib-comp.m4: Update.
3698 * gnulib/inttypes.in.h: New.
3699 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 3700 * gnulib/m4/inttypes.m4: New.
55a8c076 3701
ca7781d2
LM
37022012-04-13 Luis Machado <lgustavo@codesourcery.com>
3703
3704 * infrun.c (resume): Update PC address to the real PC after
3705 preparing to do displaced stepping.
3706
e319fa28
DE
37072012-04-12 Doug Evans <dje@google.com>
3708
3709 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3710 All callers updated.
3711
15add3f5
MK
37122012-04-12 Mark Kettenis <kettenis@gnu.org>
3713
3714 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3715
52dc124a
DE
37162012-04-12 Doug Evans <dje@google.com>
3717
0e50663e
DE
3718 * dwarf2read.c (create_all_type_units): Renamed from
3719 create_debug_types_hash_table. All callers updated.
3720
52dc124a
DE
3721 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3722 local type_sig to sig_type, type_offset to type_offset_in_tu.
3723 (hash_signatured_type): Renamed from hash_type_signature,
3724 all callers updated.
3725 (eq_signatured_type): Renamed from eq_type_signature,
3726 all callers updated.
3727 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3728 (process_enumeration_scope): Ditto.
3729 (lookup_signatured_type_at_offset): Ditto.
3730 (load_full_type_unit, read_signatured_type): Ditto.
3731
248fd3bf
YQ
37322012-04-12 Yao Qi <yao@codesourcery.com>
3733
3734 * remote.c (async_remote_interrupt): Correct function name in
3735 debug message.
3736 (async_remote_interrupt_twice): Ditto.
3737
bc3aa6c3
DE
37382012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3739
3740 * source.c (find_and_open_source): Consistently pass resulting
3741 full path through xfullpath.
3742
9e529e1d
JK
37432012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3744
3745 Provide more specific displaced-stepping memory error message.
3746 * infrun.c (displaced_step_prepare): New variable status. Call
3747 target_read_memory instead of read_memory, provide more specific
3748 error message.
3749
82e0cec1
TG
37502012-04-11 Tristan Gingold <gingold@adacore.com>
3751
3752 PR gdb/13901
3753 * darwin-nat.c (darwin_execvp): Revert previous patch.
3754
d987a266
TG
37552012-04-11 Tristan Gingold <gingold@adacore.com>
3756
3757 PR gdb/13901
3758 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3759 in case of change.
3760
016b7430
TG
37612012-04-11 Tristan Gingold <gingold@adacore.com>
3762
3763 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3764 warning.
3765
06fc020f
SCR
37662012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3767
3768 New command 'explore' which helps explore values and types in
3769 scope.
3770 * NEWS: Add an entry about the new 'explore' command.
3771 * data-directory/Makefile.in: Add gdb/command/explore.py
3772 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 3773 command using the GDB Python API.
06fc020f 3774
de0919f8 37752012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
3776
3777 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3778 extension in jump target calculation.
3779
de0919f8 37802012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
3781
3782 * mips-tdep.c (mips32_next_pc): Handle JALX.
3783
2f26ef89
YQ
37842012-04-10 Yao Qi <yao@codesourcery.com>
3785
3786 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3787
2e505b66
YQ
37882012-04-10 Yao Qi <yao@codesourcery.com>
3789
3790 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3791 and gnulib/m4/gnulib-tool.m4.
3792
0d99eb77
DE
37932012-04-10 Doug Evans <dje@google.com>
3794
3795 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3796 (load_partial_dies): Clarify comment.
3797 (find_partial_die): Support rereading type units.
3798 Clarify CU handling, if we know offset is in CU, don't search for the
3799 containing CU. Add comment regarding memory waste.
3800
9a82b8ff
L
38012012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3802
3803 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3804 i386/x32-avx and i386/x32-avx-linux.
3805 (i386/x32-expedite): New.
3806 (i386/x32-linux-expedite): Likewise.
3807 (i386/x32-avx-expedite): Likewise.
3808 (i386/x32-avx-linux-expedite): Likewise.
3809 ($(outdir)/i386/x32.dat): Likewise.
3810 ($(outdir)/i386/x32-linux.dat): Likewise.
3811 ($(outdir)/i386/x32-avx.dat): Likewise.
3812 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3813
3814 * features/i386/x32-avx-linux.xml: New file.
3815 * features/i386/x32-avx.xml: Likewise.
3816 * features/i386/x32-core.xml: Likewise.
3817 * features/i386/x32-linux.xml: Likewise.
3818 * features/i386/x32.xml: Likewise.
3819
3820 * features/i386/x32-avx-linux.c: New. Generated.
3821 * features/i386/x32-avx.c: Likewise.
3822 * features/i386/x32-linux.c: Likewise.
3823 * features/i386/x32.c: Likewise.
3824 * regformats/i386/x32-avx-linux.dat: Likewise.
3825 * regformats/i386/x32-avx.dat: Likewise.
3826 * regformats/i386/x32-linux.dat: Likewise.
3827 * regformats/i386/x32.dat: Likewise.
3828
ee41036f
TG
38292012-04-10 Tristan Gingold <gingold@adacore.com>
3830
3831 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3832 code to kill the inferior.
3833
a7aa5b8a
MK
38342012-04-09 Mark Kettenis <kettenis@gnu.org>
3835
3836 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3837 defines.
3838 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3839 defines.
a09130f9 3840 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
3841 (yyvsp): New defines.
3842 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3843 defines.
3844 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3845 defines.
3846 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3847 defines.
3848 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3849 defines.
3850 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3851 defines.
3852
fb57d452
MK
38532012-04-09 Mark Kettenis <kettenis@gnu.org>
3854
a09130f9 3855 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
3856 (sparc64_store_arguments): Fix coding style.
3857
cdc7b32f
MK
38582012-04-07 Mark Kettenis <kettenis@gnu.org>
3859
3860 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3861 complex floats, adjust some related comments and tighten a related
3862 assertion.
3863 (sparc64_extract_return_value): Handle complex floats.
3864
7adf1e79
DE
38652012-04-07 Doug Evans <dje@google.com>
3866
3867 * dwarf2read.c (load_partial_dies): Change condition to assert.
3868
50f1ae7b
DE
38692012-04-06 Doug Evans <dje@google.com>
3870
3871 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3872 "mov %rsp,%rbp".
3873
55fa75c3
KB
38742012-04-05 Kevin Buettner <kevinb@redhat.com>
3875
3876 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3877 fencepost error.
3878 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3879 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3880 architecture.
3881
40e084e1
KS
38822012-04-05 Keith Seitz <keiths@redhat.com>
3883
3884 * linespec.c (decode_compound): Remove.
3885 (enum offset_relative_sign): New enum.
3886 (struct line_offset): New struct.
3887 (struct linespec): New struct.
3888 (struct linespec_state): Move file_symtabs,
3889 user_filename, and user_function into struct linespec.
3890 Make result an anonymous struct holding vectors of
3891 symbolp and minsym_and_objfile_d.
3892 Add language member.
3893 (enum ls_token_type): New enum.
3894 (linespec_keywords): New array.
3895 (struct ls_token): New struct.
3896 (struct ls_parser): New struct.
3897 (linespec_lexer_lex_number): New function.
3898 (linespec_lexer_lex_keyword): New function.
3899 (is_ada_operator): New function.
3900 (skip_quote_char): New function.
3901 (copy_token_string): New function.
3902 (is_closing_quote_enclosed): New function.
3903 (find_parameter_list_end): New function.
3904 (linespec_lexer_lex_string): New function.
3905 (linespec_lexer_lex_one): New function.
3906 (linespec_lexer_consume_token): New function.
3907 (linespec_lexer_peek_token): New function.
3908 (cplusplus_error): Remove unused function.
3909 (find_methods): Update comment.
3910 (find_toplevel_char): Return const.
3911 (is_objc_method_format): Remove unused function.
3912 (find_toplevel_string): New function.
3913 (is_linespec_boundary): Remove.
3914 (symbol_not_found_error): New function.
3915 (find_method_overload_end): Remove function.
3916 (unexpected_linespec_error): New function.
3917 (keep_name_info): Remove.
3918 (linespec_parse_line_offset): New function.
3919 (linespec_parse_basic): New function.
3920 (canonicalize_linespec): New function.
3921 (decode_line_internal): Remove.
3922 (create_sals_line_offset): New function adapted from
3923 decode_all_digits.
3924 (convert_linespec_to_sals): New function.
3925 (parse_linespec): New function.
3926 (linespec_parser_new): New function.
3927 (linespec_state_destructor): Change parameter type to
3928 struct linespec_state *.
3929 Add language parameter.
3930 Remove freeing of moved members.
3931 (linespec_parser_delete): New function.
3932 (decode_line_full): Use parse_linespec and linespec_parser_new.
3933 (decode_line_1): Likewise.
3934 (decode_indirect): Rename to ...
3935 (linespec_expression_to_pc): ... this and rewrite
3936 to simply find CORE_ADDR, storing this result for later
3937 conversion to SALs.
3938 (locate_first_half): Remove.
3939 (deocde_objc): Add parameter LS.
3940 Initialize new struct collect_info members.
3941 Handle minimal symbols, too.
3942 (decode_compound): Delete.
3943 (lookup_prefix_sym): Rewrite.
3944 (compare_msymbols): New function.
3945 (find_method): Rewrite.
3946 Do not call cplusplus_error.
3947 (symtabs_from_filename): Rewrite.
3948 (collect_function_symbols): Delete.
3949 (find_function_symbols): Rewrite without ARGPTR-style
3950 processing.
3951 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3952 (decode_dollar): Adapted and renamed to ...
3953 (linespec_parse_variable): ... this.
3954 (find_linespec_symbols): New function.
3955 (decode_label): Adapted and renamed to ...
3956 (find_label_symbols): ... this.
3957 (decode_digits_list_mode): Add and use LS argument.
3958 (decode_digits_ordinary): Likewise.
3959 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3960 If in list mode, allow any symbol class. Otherwise, only
3961 permit LOC_BLOCK symbols.
3962 (minsym_found): Update comments.
3963 (search_minsyms_for_name): Do not convert the matching symbol
3964 into a SAL. Simply push the symbol and objfile into the
3965 result vector.
3966 (decode_variable): Delete. Contents adapted into
3967 find_linespec_symbols.
3968
3969 * cp-support.c (SKIP_SPACE): Remove.
3970 (operator_tokens): Remove unused global.
3971 (cp_validate_operator): Remove.
3972 * cp-support.h (cp_validate_operator): Remove declaration.
3973
a72c8f6a
JK
39742012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3975
3976 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3977 for TYPE_VPTR_FIELDNO.
3978 * valprint.c (valprint_check_validity): Make it global, move the
3979 function comment ...
3980 * value.h (valprint_check_validity): ... to this new declaration.
3981
cf9bb588
TG
39822012-04-02 Tristan Gingold <gingold@adacore.com>
3983
3984 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3985 the STATE32 api for i386 state.
3986 (i386_darwin_store_inferior_registers): Likewise.
3987
17092398
TG
39882012-04-02 Tristan Gingold <gingold@adacore.com>
3989
3990 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3991 SS offset.
3992 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3993 format_string.
3994
ece0061f
TG
39952012-04-02 Tristan Gingold <gingold@adacore.com>
3996
3997 PR gdb/13901
d987a266 3998 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 3999
cf65ecd3
JK
40002012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4001
4002 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
4003
9bc3523d
TT
40042012-03-30 Tom Tromey <tromey@redhat.com>
4005
4006 * python/python.c (gdbpy_decode_line): Move cleanup creation out
4007 of TRY_CATCH. Fix error handling.
4008 * python/py-value.c (convert_value_from_python): Move 'old'
4009 declaration to innermost scope.
4010
b1ed564a
JB
40112012-03-29 Joel Brobecker <brobecker@adacore.com>
4012 Andrey Smirnov <andrew.smirnov@gmail.com>
4013
4014 -Wshadow warning fix.
4015 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
4016 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
4017 Adjust code accordingly.
4018
cb8e9b97
JB
40192012-03-29 Joel Brobecker <brobecker@adacore.com>
4020
4021 * ada-lang.c (symbol_completion_add): Rename parameter
4022 "encoded" into "encoded_p". Ajust code and documentation
4023 accordingly.
4024
c0af1706
JB
40252012-03-29 Joel Brobecker <brobecker@adacore.com>
4026 Andrey Smirnov <andrew.smirnov@gmail.com>
4027
4028 -Wshadow warning fix.
4029 * ada-lang.c (symbol_completion_add): Rename parameter
4030 "wild_match" into wild_match_p. Update code and documentation
4031 accordingly.
4032
6ea35997
JB
40332012-03-29 Joel Brobecker <brobecker@adacore.com>
4034
4035 * ada-lang.c (symbol_completion_match): Rename parameter
4036 "encoded" into "encoded_p". Ajust code and documentation
4037 accordingly.
4038
e701b3c0
JB
40392012-03-29 Joel Brobecker <brobecker@adacore.com>
4040 Andrey Smirnov <andrew.smirnov@gmail.com>
4041
4042 -Wshadow warning fix.
4043 * ada-lang.c (symbol_completion_match): Rename parameter
4044 "wild_match" into "wild_match_p". Adjust code and function
4045 documentation accordingly.
4046
5e2336be
JB
40472012-03-29 Joel Brobecker <brobecker@adacore.com>
4048 Andrey Smirnov <andrew.smirnov@gmail.com>
4049
4050 -Wshadow warning fix.
4051 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
4052 "symbol_info" into "info". Adjust code accordingly.
4053 (ada_lookup_symbol): Likewise.
4054
9f88c959
JB
40552012-03-29 Joel Brobecker <brobecker@adacore.com>
4056
4057 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
4058 of this function's documentation.
4059
82ccd55e
JB
40602012-03-29 Joel Brobecker <brobecker@adacore.com>
4061 Andrey Smirnov <andrew.smirnov@gmail.com>
4062
4063 -Wshadow warning fix.
4064 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
4065 variable into "wild_match_p". Adjust code accordingly.
4066
d0a8ab18
JB
40672012-03-29 Joel Brobecker <brobecker@adacore.com>
4068 Andrey Smirnov <andrew.smirnov@gmail.com>
4069
4070 -Wshadow warning fix.
4071 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
4072 parameter into "wild_match_p". Adjust code accordingly.
4073 Document this parameter in the function description.
4074
48b78332
JB
40752012-03-29 Joel Brobecker <brobecker@adacore.com>
4076 Andrey Smirnov <andrew.smirnov@gmail.com>
4077
4078 -Wshadow warning fix.
4079 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
4080 "wild_match" parameter to "wild_match_p" (-Wshadow).
4081
2e6e0353
JB
40822012-03-29 Joel Brobecker <brobecker@adacore.com>
4083
4084 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
4085 in function documentation.
4086
dc4024cd
JB
40872012-03-29 Joel Brobecker <brobecker@adacore.com>
4088 Andrey Smirnov <andrew.smirnov@gmail.com>
4089
4090 -Wshadow warning fix.
4091 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
4092 variable into wild_match_p. Adjust code accordingly.
4093
6c88661c
JB
40942012-03-29 Joel Brobecker <brobecker@adacore.com>
4095 Andrey Smirnov <andrew.smirnov@gmail.com>
4096
4097 * ada-valprint.c (ada_val_print_1): Move the code handling
4098 TYPE_CODE_ENUM inside its own lexical block. Declare
4099 variables len and val there, instead of in the function's
4100 top level block. Avoid declaring deref_val again in a way
4101 that shadows another variable of the same name declared
4102 in one of the up-level blocks. Just re-use the up-level
4103 variable instead.
4104
4e5c77fe
JB
41052012-03-29 Joel Brobecker <brobecker@adacore.com>
4106
4107 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
4108 Replace block_found argument by symbol_info. Adjust
4109 implementation accordingly. Add function documentation.
4110 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
4111 Fix documentation.
4112 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
4113 * ada-exp.y (write_object_renaming): Adjust to new
4114 ada_lookup_encoded_symbol API.
4115
1c0ac8c7
JB
41162012-03-29 Joel Brobecker <brobecker@adacore.com>
4117
4118 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
4119 documentation.
4120
2aaed979
KB
41212012-03-28 Rathish C <rathish.c@kpitcummins.com>
4122
4123 * v850-tdep.c: Add the enum values for mpu and fpu registers.
4124 (v850_register_name): Add the mpu and fpu register names.
4125 (v850e_register_name): Add the mpu and fpu register names.
4126 (v850e2_register_name): New function.
a09130f9 4127 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
4128 bfd_mach_v850e2v3.
4129
927fbba6
JB
41302012-03-28 Joel Brobecker <brobecker@adacore.com>
4131
4132 * NEWS: Add entry for Ada varobj support.
4133
d32cafc7
JB
41342012-03-28 Joel Brobecker <brobecker@adacore.com>
4135
4136 * varobj.c (default_value_is_changeable_p): New function,
4137 extracted from varobj_value_is_changeable_p. Add declaration.
4138 (ada_value_is_changeable_p): New function, extracted from
4139 varobj_value_is_changeable_p. Add declaration.
4140 (struct language_specific): New field "value_is_changeable_p".
4141 (languages): Add entries for new field.
4142 (varobj_create): Set language before calling install_new_value.
4143 (varobj_value_is_changeable_p): Reimplement to call the varobj's
4144 "value_is_changeable_p" language callback.
4145
181875a4
JB
41462012-03-28 Joel Brobecker <brobecker@adacore.com>
4147
4148 * ada-varobj.h, ada-varobj.c: New files.
4149 * Makefile.in (SFILES): Add ada-varobj.c.
4150 (HFILES_NO_SRCDIR): Add ada-varobj.h.
4151 (COMMON_OBS): Add ada-varobj.o.
4152
7a290c40
JB
41532012-03-28 Joel Brobecker <brobecker@adacore.com>
4154
4155 * varobj.c (ada_value_has_mutated): Add declaration. New function.
4156 (struct language_specific): New field "value_has_mutated".
4157 (languages): Set field "value_has_mutated" in each entry of array.
4158 (varobj_value_has_mutated): New function.
4159 (varobj_udpdate): Add handling of type mutation.
4160 (value_of_root): Add handling of type mutation.
4161 (ada_value_has_mutated): New function.
4162
ca9b8b9c
PA
41632012-03-28 Pedro Alves <palves@redhat.com>
4164
4165 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
4166 Always supply $fr0 as 0.0 and $fr1 as 1.0.
4167
cc0265cd
TT
41682012-03-28 Tom Tromey <tromey@redhat.com>
4169
4170 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
4171 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
4172 before returning.
4173
3ad2ec6f
TT
41742012-03-28 Tom Tromey <tromey@redhat.com>
4175
4176 * .dir-locals.el: New file.
4177
4a6510ba
PA
41782012-03-28 Pedro Alves <palves@redhat.com>
4179
4180 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
4181
5a75128f
JB
41822012-03-28 Joel Brobecker <brobecker@adacore.com>
4183
4184 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
4185 handling for r0.
4186
f99d8bf4
PA
41872012-03-27 Pedro Alves <palves@redhat.com>
4188
4189 Eliminate struct ui_stream.
4190
4191 * ui-out.h (struct ui_stream): Delete.
4192 (ui_out_field_stream): Adjust prototype.
4193 (ui_out_stream_new, ui_out_stream_delete)
4194 (make_cleanup_ui_out_stream_delete): Delete declarations.
4195 * ui-out.c (ui_out_field_stream): Change prototype to take a
4196 ui_file instead of a ui_stream. Adjust.
4197 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
4198 (make_cleanup_ui_out_stream_delete): Delete.
4199 * breakpoint.c (print_breakpoint_location)
4200 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
4201 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4202 * disasm.c (dump_insns): Ditto.
4203 (do_mixed_source_and_assembly, do_assembly_only): Adjust
4204 prototype.
4205 (gdb_disassembly): Use ui_file/mem_fileopen instead of
4206 ui_stream/ui_out_stream_new.
4207 * infcmd.c (print_return_value): Ditto.
4208 * osdata.c (info_osdata_command): Don't allocate a local
4209 ui_stream.
4210 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
4211 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4212 * tracepoint.c (print_one_static_tracepoint_marker): Don't
4213 allocate a local ui_stream.
4214 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
4215 instead of ui_stream/ui_out_stream_new.
4216 (list_args_or_locals): Don't allocate a local ui_stream.
4217 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
4218 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
4219 ui_stream/ui_out_stream_new.
4220 * cli/cli-setshow.c (do_setshow_command): Ditto.
4221
6350a066 42222012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 4223
6350a066
PA
4224 * arm-linux-tdep.c (arm_linux_init_abi): Call
4225 set_gdbarch_process_record. Initialize `arm_swi_record' field.
4226 * arm-tdep.c (arm_process_record): New function.
4227 (deallocate_reg_mem): New function.
4228 (decode_insn): New function.
4229 (thumb_record_branch): New function.
4230 (thumb_record_ldm_stm_swi(): New function.
4231 (thumb_record_misc): New function.
4232 (thumb_record_ld_st_stack): New function.
4233 (thumb_record_ld_st_imm_offset): New function.
4234 (thumb_record_ld_st_reg_offset(): New function.
4235 (thumb_record_add_sub_cmp_mov): New function.
4236 (thumb_record_shift_add_sub): New function.
4237 (arm_record_coproc_data_proc): New function.
4238 (arm_record_coproc): New function.
4239 (arm_record_b_bl): New function.
4240 (arm_record_ld_st_multiple): New function.
4241 (arm_record_ld_st_reg_offset): New function.
4242 (arm_record_ld_st_imm_offset): New function.
4243 (arm_record_data_proc_imm): New function.
4244 (arm_record_data_proc_misc_ld_str): New function.
4245 (arm_record_extension_space): New function.
4246 (arm_record_strx): New function.
4247 (sbo_sbz): New function.
4248 (struct insn_decode_record): New structure for arm insn record.
4249 (REG_ALLOC): New macro for reg allocations.
4250 (MEM_ALLOC): New macro for memory allocations.
4251 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 4252
89e028e2
AS
42532012-03-27 Andreas Schwab <schwab@linux-m68k.org>
4254
4255 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
4256 (store_register): Likewise.
4257
6350a066 42582012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 4259
6350a066 4260 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 4261
5b43fab2
JK
42622012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4263
4264 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
4265 Describe also the option "auto".
4266
b5453b95
RH
42672012-03-22 Richard Henderson <rth@redhat.com>
4268
4269 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
4270 * sparc-nat.c (sparc_xfer_wcookie): Make static.
4271
227ee7fc
RH
42722012-03-22 Richard Henderson <rth@redhat.com>
4273
4274 * jit.c (jit_read_code_entry): Compute alignment and offset of
4275 int64_t member before computing entry_size.
4276
7b282c5a
SCR
42772012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4278
4279 Python scripting: Add new method Value.referenced_value to
4280 gdb.Value which can dereference pointer as well as reference
4281 values.
4282 * NEWS: Add entry under 'Python scripting' about the new method
4283 Value.referenced_value on gdb.Value objects.
4284 * python/py-value.c (valpy_referenced_value): New function
4285 defining a new method on gdb.Value objects which can dereference
4286 pointer and reference values.
4287
0c83539f
SCR
42882012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4289
4290 * MAINTAINERS (Write After Approval): Add myself to the list.
4291
7ccffd7c
KB
42922012-03-21 Kevin Buettner <kevinb@redhat.com>
4293
4294 * symtab.c (skip_prologue_sal): Change test to check for "main()"
4295 in addition to "main".
4296
bd0b9f9e
JB
42972012-03-21 Joel Brobecker <brobecker@adacore.com>
4298
4299 * expression.h (op_name): Add declaration.
4300 * expprint.c (op_name): Remove declaration. Make non-static.
4301 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
4302
a5362b9a
TS
43032012-03-21 Thomas Schwinge <thomas@codesourcery.com>
4304
4305 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
4306 of struct siginfo.
4307 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
4308 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4309 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
4310 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
4311 (linux_nat_get_siginfo): Likewise.
4312 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
4313 (linux_nat_get_siginfo): Likewise.
4314 * linux-tdep.c (linux_get_siginfo_type): Likewise.
4315 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
4316 * procfs.c (gdb_siginfo_t): Likewise.
4317
adcadaab
MF
43182012-03-21 Mike Frysinger <vapier@gentoo.org>
4319
4320 * .gitignore: Ignore more files.
4321
e278ad5b
PA
43222012-03-20 Pedro Alves <palves@redhat.com>
4323
4324 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
4325 returns.
4326
741e63d7
YQ
43272012-03-20 Yao Qi <yao@codesourcery.com>
4328
4329 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
4330 comment.
4331
b64f50a1
JK
43322012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4333
4334 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
4335 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
4336 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
4337 sect_offset.
4338 * dwarf2expr.h (cu_offset, sect_offset): New types.
4339 (struct dwarf_expr_context_funcs) <dwarf_call>
4340 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
4341 sect_offset.
4342 (struct dwarf_expr_context) <len>: Improve the comment.
4343 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
4344 cu_offset and sect_offset.
4345 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
4346 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
4347 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
4348 * dwarf2loc.h: Include dwarf2expr.h.
4349 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
4350 and sect_offset.
4351 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
4352 Improve the comment.
4353 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
4354 (struct signatured_type, struct line_header, struct partial_die_info)
4355 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
4356 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
4357 (get_die_type_at_offset, create_cus_from_index)
4358 (create_signatured_type_table_from_index, dw2_get_file_names)
4359 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
4360 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
4361 (create_debug_types_hash_table, process_psymtab_comp_unit)
4362 (load_partial_comp_unit, create_all_comp_units)
4363 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
4364 (load_full_comp_unit, dwarf2_physname, read_import_statement)
4365 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4366 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
4367 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
4368 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
4369 (find_partial_die, read_attribute_value, lookup_die_type)
4370 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
4371 (is_ref_attr): New function comment.
4372 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
4373 Use cu_offset and sect_offset.
4374 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
4375 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
4376 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
4377 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
4378 (offset_and_type_hash, offset_and_type_eq, set_die_type)
4379 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
4380 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
4381 sect_offset.
4382
e97a38f7
JK
43832012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4384
4385 Code cleanup.
4386 * python/py-auto-load.c (source_section_scripts): New variable back_to.
4387 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
4388 with xfree.
4389 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
4390
8320cc4f
JK
43912012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4392
4393 * NEWS: Describe new options --init-command=FILE, -ix and
4394 --init-eval-command=COMMAND, -iex.
4395 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
4396 CMDARG_INIT_COMMAND.
4397 (captured_main): New enum items OPT_IX and OPT_IEX. Add
4398 "init-command", "init-eval-command", "ix" and "iex" to the variable
4399 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
4400 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
4401 (print_gdb_help): Describe --init-command=FILE, -ix and
4402 --init-eval-command=COMMAND, -iex.
4403
26743505
JK
44042012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4405
4406 Code cleanup.
4407 * main.c (struct cmdarg): Move it here from main. Add more comments.
4408 (cmdarg_s, VEC (cmdarg_s)): New.
4409 (main): Move struct cmdarg from here. New variables cmdarg_vec and
4410 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
4411 Install cleanup for cmdarg_vec. Update filling for options 'x' and
4412 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
4413 of CMDARG.
4414
5ff5c7b4
TT
44152012-03-19 Tom Tromey <tromey@redhat.com>
4416
4417 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
4418
ab260dad
JK
44192012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4420
4421 PR symtab/13777
4422 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
4423 GCC >=4.5.
4424
c366c1f0
TT
44252012-03-16 Chris January <chris.january@allinea.com>
4426
4427 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4428 of clear.
4429
e16edb45
TT
44302012-03-16 Chris January <chris.january@allinea.com>
4431
4432 * source.c (add_path): Use memmove instead of strcpy because the
4433 strings overlap.
4434
53ba8333
JB
44352012-03-16 Joel Brobecker <brobecker@adacore.com>
4436
4437 * value.h (set_value_parent): Add declaration.
4438 * value.c (set_value_parent): New function.
4439 (value_address): If VALUE->PARENT is not NULL, then use it as
4440 the base address instead of VALUE->LOCATION.address.
4441 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4442 the same as OBJ's address. Adjust V's offset accordingly.
4443 Set V's parent.
4444
481860b3
GB
44452012-03-16 Gary Benson <gbenson@redhat.com>
4446
4447 PR breakpoints/10738
4448 * dwarf2read.c (use_deprecated_index_sections): New global.
4449 (struct partial_die_info): New member may_be_inlined.
4450 (read_partial_die): Set may_be_inlined where appropriate.
4451 (add_partial_subprogram): Add partial symbols for partial
4452 DIEs that may be inlined.
4453 (new_symbol_full): Add inlined subroutines to the current
4454 scope.
4455 (write_psymtabs_to_index): Bump version number.
4456 (dwarf2_read_index): Read only version 6 indices unless
4457 use_deprecated_index_sections is set.
4458 * linespec.c (symbol_and_data_callback): New structure.
4459 (iterate_inline_only): New function.
4460 (iterate_over_all_matching_symtabs): New argument
4461 "include_inline". If nonzero, also call the callback for
4462 symbols representing inlined subroutines.
4463 (lookup_prefix_sym): Pass extra argument to the above.
4464 (find_function_symbols): Likewise.
4465 (add_matching_symbols_to_info): Likewise.
4466 * NEWS: Mention that GDB can now set breakpoints on inlined
4467 functions.
4468
d0e7e15a
PM
44692012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4470
4471 * p-typeprint.c (pascal_type_print_method_args):
4472 Fix display of parameter of methods.
4473
3d354654
PM
44742012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4475
4476 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4477 Add missing prototype.
4478
cafe75b0
JK
44792012-03-16 Yao Qi <yao@codesourcery.com>
4480 Jan Kratochvil <jan.kratochvil@redhat.com>
4481
4482 Fix false compilation warning.
4483 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4484
25f8c692
JL
44852012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
4486 Pedro Alves <pedro@codesourcery.com>
4487
4488 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4489 (arm_register_g_packet_guesses): New function.
4490 (arm_gdbarch_init): Don't force a target description with
4491 registers when the executable is detected as M-profile. Instead
4492 set gdbarch->tdep->is_m. Register `g' packet guesses.
4493 (_initialize_arm_tdep): Initialize the new target description.
4494 * features/arm-with-m-fpa-layout.xml: New description.
4495 * features/arm-with-m-fpa-layout.c: New, generated.
4496
35c63cd8
JB
44972012-03-15 Joel Brobecker <brobecker@adacore.com>
4498
4499 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4500 Update function description.
4501 (insert_bp_location): Do not wipe bl->target_info out.
4502 * mem-break.c: #include "gdb_string.h".
4503 (default_memory_insert_breakpoint): Do not call target_read_memory
4504 with a pointer to the breakpoint's shadow_contents buffer. Use
4505 a local buffer instead.
4506 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4507
57651221
TT
45082012-03-15 Tom Tromey <tromey@redhat.com>
4509
4510 * NEWS: Mention "info vtbl", not "info vtable".
4511 * cp-support.c (info_vtbl_command): Fix comment.
4512 (_initialize_cp_support): Fix text.
4513
410528f0
TT
45142012-03-15 Tom Tromey <tromey@redhat.com>
4515
4516 * cp-valprint.c (cp_print_value_fields): Use
4517 print_function_pointer_address for vtable slot.
4518
c4aeac85
TT
45192012-03-15 Tom Tromey <tromey@redhat.com>
4520
4521 * gnu-v3-abi.c (struct value_and_voffset): New.
4522 (hash_value_and_voffset, eq_value_and_voffset)
4523 (compare_value_and_voffset, compute_vtable_size)
4524 (print_one_vtable, gnuv3_print_vtable): New functions.
4525 (init_gnuv3_ops): Initialize 'print_vtable' field.
4526 * cp-support.c (info_vtbl_command): New function.
4527 (_initialize_cp_support): Add "info vtbl".
4528 * cp-abi.h (cplus_print_vtable): Declare.
4529 (struct cp_abi_ops) <print_vtable>: New field.
4530 * cp-abi.c (cplus_print_vtable): New function.
4531 * NEWS: Update.
4532
95cbceff
TT
45332012-03-15 Tom Tromey <tromey@redhat.com>
4534
4535 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4536 iterate_over_symbols.
4537
589b4a32
DE
45382012-03-14 Doug Evans <dje@google.com>
4539
4540 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4541 DW_OP_GNU_parameter_ref.
4542
e837f12a
JK
45432012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4544
4545 Fix double prompt of 'interpreter-exec mi'.
4546 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4547 (mi_interpreter_resume): use it.
4548 (mi_execute_command_input_handler): New function.
4549 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4550 mi_execute_command_input_handler.
4551
ff1e4526 45522012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
4553
4554 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4555 prototype.
4556 (darwin_debug_port_info): Make static.
4557 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4558 * machoread.c (_initialize_machoread): Add prototype.
4559 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4560 (i386_darwin_set_control, i386_darwin_get_control)
4561 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4562 i386_darwin_get_status, i386_darwin_get_control):
4563 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4564
d8a5d6ee
JB
45652012-03-13 Joel Brobecker <brobecker@adacore.com>
4566
4567 * ax-gdb.c (gen_usual_unary): Remove special handling of
4568 enum and bool types.
4569
af381b8c
JB
45702012-03-13 Joel Brobecker <brobecker@adacore.com>
4571
4572 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4573
786c562f
JB
45742012-03-13 Joel Brobecker <brobecker@adacore.com>
4575
4576 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4577
e3ebf1bb
JB
45782012-03-13 Chris January <chris.january@allinea.com>
4579
4580 * aix-thread.c (fill_sprs): Store the floating point registers
4581 at the correct offsets into vals.
4582
c5b7e1cb
DE
45832012-03-13 Doug Evans <dje@google.com>
4584
16899756
DE
4585 * NEWS: Mention symbol-reloading has been deleted.
4586 * symfile.c (symbol_reloading): Delete.
4587 (show_symbol_reloading): Delete.
4588 (_initialize_symfile): Delete set/show symbol-reloading.
4589
c5b7e1cb
DE
4590 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4591 read_in_chain until we have successfully read it in.
4592 (load_full_comp_unit): Ditto.
4593 (read_signatured_type): Add comment.
4594
46cb6474
JB
45952012-03-13 Chris January <chris.january@allinea.com>
4596
4597 * stabsread.c (fix_common_block): Change type of valu argument
4598 to CORE_ADDR.
4599
76219d77
JB
46002012-03-13 Chris January <chris.january@allinea.com>
4601
4602 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4603 instruction.
4604
87b0bb13
JK
46052012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4606
4607 * common/linux-procfs.c (linux_proc_get_int): New, from
4608 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4609 field.
4610 (linux_proc_get_tgid): Only call linux_proc_get_int.
4611 (linux_proc_get_tracerpid): New.
4612 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4613 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4614 linux_proc_pid_has_state.
4615 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4616 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4617 (linux_ptrace_attach_warnings): New.
4618 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4619 New declaration.
4620 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4621 (linux_nat_attach): New variables ex, buffer, message and message_s.
4622 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4623
5f572dec
JK
46242012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4625
4626 * Makefile.in (linux-ptrace.o): New.
4627 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4628 from linux-nat.c.
4629 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4630 * common/linux-ptrace.c: New file.
4631 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4632 * config/arm/linux.mh: Likewise.
4633 * config/i386/linux.mh: Likewise.
4634 * config/i386/linux64.mh: Likewise.
4635 * config/ia64/linux.mh: Likewise.
4636 * config/m32r/linux.mh: Likewise.
4637 * config/m68k/linux.mh: Likewise.
4638 * config/mips/linux.mh: Likewise.
4639 * config/pa/linux.mh: Likewise.
4640 * config/powerpc/linux.mh: Likewise.
4641 * config/powerpc/ppc64-linux.mh: Likewise.
4642 * config/powerpc/spu-linux.mh: Likewise.
4643 * config/s390/s390.mh: Likewise.
4644 * config/sparc/linux.mh: Likewise.
4645 * config/sparc/linux64.mh: Likewise.
4646 * config/xtensa/linux.mh: Likewise.
4647 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4648 common/linux-procfs.c.
4649 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4650
44f238bb
PA
46512012-03-13 Hui Zhu <teawater@gmail.com>
4652 Pedro Alves <palves@redhat.com>
4653
4654 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4655 CREATE_BREAKPOINT_FLAGS_INSERTED.
4656 (create_breakpoint_sal, create_breakpoints_sal)
4657 (base_breakpoint_create_breakpoints_sal)
4658 (tracepoint_create_breakpoints_sal)
4659 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4660 down.
4661 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4662 (ftrace_command, strace_command): Adjust.
4663 (create_tracepoint_from_upload): Pass
4664 CREATE_BREAKPOINT_FLAGS_INSERTED.
4665 * breakpoint.h (enum breakpoint_create_flags): New.
4666 (create_breakpoint): New flags parameter.
4667 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4668 * python/py-breakpoint.c (bppy_init): Adjust.
4669 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4670 * spu-tdep.c (spu_catch_start): Adjust.
4671
1e51243a
PA
46722012-03-13 Pedro Alves <palves@redhat.com>
4673 Hui Zhu <teawater@gmail.com>
4674 Yao Qi <yao@codesourcery.com>
4675
4676 * remote.c (struct remote_state): New field `starting_up'.
4677 (remote_start_remote): Set and clear it.
4678 (remote_can_download_tracepoint): If starting up, return false.
4679
fa3064dd
YQ
46802012-03-13 Yao Qi <yao@codesourcery.com>
4681
4682 * inferior.h (struct inferior): Remove fields any_syscall_count,
4683 syscalls_counts and total_syscalls_count. Move them to new
4684 struct catch_syscall_inferior_data in breakpoint.c.
4685 * breakpoint.c: Call DEF_VEC_I(int).
4686 (struct catch_syscall_inferior_data): New.
4687 (get_catch_syscall_inferior_data): New.
4688 (catch_syscall_inferior_data_cleanup): New.
4689 (insert_catch_syscall): Update to access data in
4690 struct catch_syscall_inferior_data.
4691 (insert_catch_syscall): Likewise.
4692 (remove_catch_syscall): Likewise.
4693 (remove_catch_syscall): Likewise.
4694 (is_syscall_catchpoint_enabled): Likewise.
4695 (add_catch_command): Likewise.
4696 (_initialize_breakpoint): Register cleanup.
4697 * breakpoint.h: Removed DEF_VEC_I(int).
4698 * dwarf2loc.c: Call DEF_VEC_I(int).
4699 * mi/mi-main.c: Likewise.
4700
460fac3c
MK
47012012-03-12 Mark Kettenis <kettenis@gnu.org>
4702
4703 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4704
e1aca11e
JB
47052012-03-12 Chris January <chris.january@allinea.com>
4706
4707 * aix-thread.c (_initialize_aix_thread): Add prototype.
4708 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4709 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4710
649c7061
JB
47112012-03-12 Joel Brobecker <brobecker@adacore.com>
4712
4713 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4714 include of "amd64-nat.h".
4715
0b49e518
TT
47162012-03-12 Tom Tromey <tromey@redhat.com>
4717
4718 * buildsym.c (record_pending_block): Now static.
4719 * buildsym.h: (record_pending_block): Remove.
4720
fd24fa94
AT
47212012-03-12 Andreas Tobler <andreast@fgznet.ch>
4722
4723 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4724
ba919b58
TT
47252012-03-09 Tom Tromey <tromey@redhat.com>
4726
4727 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4728 producer_is_gxx_lt_4_6>: New fields.
4729 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4730
a48e046c
TT
47312012-03-09 Tom Tromey <tromey@redhat.com>
4732
4733 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4734
6f5e9362
JB
47352012-03-08 Joel Brobecker <brobecker@adacore.com>
4736
4737 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4738 prototype.
4739
8d037db9
JB
47402012-03-08 Joel Brobecker <brobecker@adacore.com>
4741
4742 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4743
4e841acf
JK
47442012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4745
4746 Fix -Wmissing-prototypes build.
4747 * arm-linux-nat.c (get_thread_id): Make it static.
4748 * xtensa-linux-nat.c (get_thread_id): Likewise.
4749
c6030312
JB
47502012-03-08 Joel Brobecker <brobecker@adacore.com>
4751
4752 * server.c (process_point_options): If a conditional expression
4753 is found, only print a message if remote_debug is nonzero.
4754
52323be9
LM
47552012-03-08 Luis Machado <lgustavo@codesourcery.com>
4756
4757 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4758 of internal error for unknown/unsupported types.
4759
7fe25d9b
JK
47602012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4761
4762 Fix CU relative vs. absolute DIE offsets.
4763 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4764 offset to offset_in_cu.
4765 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4766 TYPE_OFFSET.
4767 (dwarf2_fetch_die_location_block): Rename parameter offset to
4768 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4769
05e7c244
JK
47702012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4771
4772 * libunwind-frame.c: Rename to ...
4773 * ia64-libunwind-tdep.c: ... here.
4774 * libunwind-frame.h: Rename to ...
4775 * ia64-libunwind-tdep.h: ... here.
4776 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4777 ia64-libunwind-tdep.h.
4778 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4779 * README (--with-libunwind): Rename to ...
4780 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4781 * config.in: Regenerate.
4782 * configure: Regenerate.
4783 * configure.ac: New option --with-libunwind-ia64, make the
4784 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4785 Remove AC_DEFINE for HAVE_LIBUNWIND.
4786 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4787 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4788 Rename libunwind-frame in the general comment.
4789 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4790 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4791 Move forward declarations inside #ifndef. Rename libunwind-frame in
4792 the general comment.
4793 * ia64-tdep.c: Rename libunwind-frame.h #include to
4794 ia64-libunwind-tdep.h.
4795 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4796 (ia64_libunwind_descr): Rename libunwind-frame to
4797 ia64-libunwind-tdep in these function comments.
4798 * ia64-tdep.h: Rename libunwind-frame.h #include to
4799 ia64-libunwind-tdep.h.
4800 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4801 ia64-libunwind-tdep in that data comment.
4802
3755cbfd
JK
48032012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4804
4805 * libunwind-frame.h (struct frame_unwind): New declaration.
4806
d1cda5d9
JB
48072012-03-08 Joel Brobecker <brobecker@adacore.com>
4808
4809 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4810 "set breakpoint condition-evaluation" command.
4811
a0ba0aa2
TG
48122012-03-08 Tristan Gingold <gingold@adacore.com>
4813
4814 * sparc-stub.c: Move to stubs/
4815 * sh-stub.c: Likewise.
4816 * m68k-stub.c: Likewise.
4817 * m32r-stub.c: Likewise.
4818 * i386-stub.c: Likewise.
4819
7b8b6d6d
AS
48202012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4821
007cafee
AS
4822 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4823 linux_get_siginfo_type.
4824
7b8b6d6d
AS
4825 * m68klinux-nat.c: Include "gdb_proc_service.h".
4826 (PTRACE_GET_THREAD_AREA): Define.
4827 (ps_get_thread_area): New function.
4828
bba74b36
YQ
48292012-03-08 Yao Qi <yao@codesourcery.com>
4830
4831 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4832 `xsnprintf'.
4833 (remote_query_attached): Likewise.
4834 (remote_static_tracepoint_marker_at): Likewise.
4835 (remote_set_permissions): Likewise.
4836 (remote_detach_1, extended_remote_attach_1): Likewise.
4837 (send_g_packet, remote_vkill): Likewise.
4838 (extended_remote_disable_randomization): Likewise.
4839 (remote_add_target_side_condition): Likewise.
4840 (remote_insert_breakpoint): Likewise.
4841 (remote_remove_breakpoint): Likewise.
4842 (remote_insert_watchpoint): Likewise.
4843 (remote_remove_watchpoint): Likewise.
4844 (remote_insert_hw_breakpoint): Likewise.
4845 (remote_insert_hw_breakpoint): Likewise.
4846 (remote_remove_hw_breakpoint): Likewise.
4847 (remote_download_command_source): Likewise.
4848 (remote_download_tracepoint): Likewise.
4849 (remote_download_trace_state_variable): Likewise.
4850 (remote_disable_tracepoint): Likewise.
4851 (remote_trace_set_readonly_regions): Likewise.
4852 (remote_get_tracepoint_status): Likewise.
4853 (remote_trace_find): Likewise.
4854 (remote_get_trace_state_variable_value): Likewise.
4855 (remote_set_disconnected_tracing): Likewise.
4856 (remote_set_circular_trace_buffer): Likewise.
4857 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4858 (remote_use_agent): Likewise.
4859 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4860 Update callers.
4861
9b224c5e
PA
48622012-03-07 Pedro Alves <palves@redhat.com>
4863
4864 * NEWS: Mention QProgramSignals.
4865 * inferior.h (update_signals_program_target): Declare.
4866 * infrun.c: (update_signals_program_target): New.
4867 (handle_command): Update the target of the new program signals
4868 array changes.
4869 * remote.c (PACKET_QProgramSignals): New enum.
4870 (last_program_signals_packet): New global.
4871 (remote_program_signals): New.
4872 (remote_start_remote): Update the target with the program signals
4873 list.
4874 (remote_protocol_features): Add entry for QPassSignals.
4875 (remote_open_1): Free anc clear last_program_signals_packet.
4876 (init_remote_ops): Install remote_program_signals.
4877 * target.c (update_current_target): Adjust.
4878 (target_program_signals): New.
4879 * target.h (struct target_ops) <to_program_signals>: New field.
4880 (target_program_signals): Declare.
4881
74c48cbb
PA
48822012-03-07 Pedro Alves <palves@redhat.com>
4883
4884 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4885 extensions.
4886
0c13fc49
AS
48872012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4888
4889 * m68klinux-nat.c (getregs_supplies): Make static.
4890 (getfpregs_supplies): Likewise.
4891 (have_ptrace_getregs): Likewise.
4892
1281d2a3
JB
48932012-03-06 Joel Brobecker <brobecker@adacore.com>
4894
4895 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4896 in call to get_die_type_at_offset.
4897
2b03b41d
SS
48982012-03-06 Stan Shebs <stan@codesourcery.com>
4899
4900 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4901 * mi/mi-cmd-disas.c: Ditto.
4902 * mi/mi-cmd-env.c: Ditto.
4903 * mi/mi-cmd-file.c: Ditto.
4904 * mi/mi-cmd-stack.c: Ditto.
4905 * mi/mi-cmd-target.c: Ditto.
4906 * mi/mi-cmd-var.c: Ditto.
4907 * mi/mi-cmds.c: Ditto.
4908 * mi/mi-cmds.h: Ditto.
4909 * mi/mi-console.c: Ditto.
4910 * mi/mi-getopt.c: Ditto.
4911 * mi/mi-getopt.h: Ditto.
4912 * mi/mi-interp.c: Ditto.
4913 * mi/mi-main.c: Ditto.
4914 * mi/mi-out.c: Ditto.
4915 * mi/mi-parse.c: Ditto.
4916 * mi/mi-parse.h: Ditto.
4917 * mi/mi-symbol-cmds.c: Ditto.
4918
4919 * mi/mi-getopt.h: Move mi_opt struct up.
4920 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4921 return.
4922 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4923
c988ad87
TT
49242012-03-06 Tom Tromey <tromey@redhat.com>
4925
4926 * proc-service.c (ps_pglobal_lookup): Set the current program
4927 space.
4928
1b7c1b10
PA
49292012-03-06 Pedro Alves <palves@redhat.com>
4930
4931 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4932
3c182069
JB
49332012-03-05 Joel Brobecker <brobecker@adacore.com>
4934
4935 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4936
2e794194
JK
49372012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4938
4939 Code cleanup.
4940 * common/linux-osdata.c (linux_common_core_of_thread): New function
4941 comment.
4942 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4943 call by linux_common_core_of_thread.
4944 (linux_nat_core_of_thread_1): Remove.
4945 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4946 * linux-thread-db.c: Include linux-osdata.h.
4947 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4948 linux_common_core_of_thread.
4949
9f9f1f31
TT
49502012-03-05 Tom Tromey <tromey@redhat.com>
4951
4952 * value.c (value_primitive_field): Don't fetch contents for
4953 non-virtual bases.
4954
b7b189f3
TT
49552012-03-05 Tom Tromey <tromey@redhat.com>
4956
4957 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4958
05b8a789 49592012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 4960
5538f557
JB
4961 * s390-nat.c: Include "gregset.h".
4962
75528772
JK
49632012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4964
4965 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4966 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4967 (libunwind_load): New variable so_error, use it for dlerror. Try to
4968 load also LIBUNWIND_SO_7.
4969
275418ae
PA
49702012-03-05 Pedro Alves <palves@redhat.com>
4971
4972 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4973 is not NULL, and remove resulting dead code.
4974
5cbb9812
TS
49752012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4976
4977 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4978 prologue to sh_analyze_prologue.
4979 (sh_analyze_prologue): Make better use of such an upper limit, and
4980 generally be more cautious about accessing memory.
4981
541515ad
TT
49822012-03-05 Tom Tromey <tromey@redhat.com>
4983
4984 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4985 _initialize_ia64_hpux_tdep.
4986
b4d36fb8
PA
49872012-03-05 Pedro Alves <palves@redhat.com>
4988
24490249
PA
4989 PR gdb/13766
4990
b4d36fb8
PA
4991 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4992 the register state is clear, supply explicit zero, instead of
4993 marking the register unavailable.
4994
60c9a3c0
TG
49952012-03-05 Tristan Gingold <gingold@adacore.com>
4996
4997 * NEWS: Mention OpenVMS ia64 new target.
4998
696759ad
TG
49992012-03-05 Tristan Gingold <gingold@adacore.com>
5000
5001 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
5002 (ia64_unw_accessors, ia64_unw_rse_accessors)
5003 (ia64_libunwind_descr): Declare.
5004 * ia64-vms-tdep.c: New file.
5005 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
5006 (ia64_libunwind_descr): Make them public.
5007 * configure.tgt: Add ia64-*-*vms*.
5008 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
5009 (ALLDEPFILES): Add ia64-vms-tdep.c
5010
34864976
TG
50112012-03-05 Tristan Gingold <gingold@adacore.com>
5012
169081d0
TG
5013 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
5014 * remote.c (PACKET_qXfer_uib): New enum value.
5015 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
5016 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
5017 (_initialize_remote): Call add_packet_config_cmd for
5018 xfer:uib packet.
5019
50202012-03-05 Tristan Gingold <gingold@adacore.com>
5021
5022 * osabi.c (gdb_osabi_names): Add OpenVMS.
5023 (generic_elf_osabi_sniffer): Likewise.
5024 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 5025
6597b100
JK
50262012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5027
5028 Removed unused code.
5029 * libunwind-frame.c (libunwind_frame_unwind)
5030 (libunwind_frame_base_address): Remove.
5031 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
5032
87399aa1
YQ
50332012-03-04 Yao Qi <yao@codesourcery.com>
5034
5035 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
5036 remove trailing new line.
5037 (agent_run_command, agent_run_command): Add _ markup.
5038 (agent_capability_check): Likewise.
5039
abf1152a
JK
50402012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5041
5042 * breakpoint.c (set_condition_evaluation_mode): Set
5043 CONDITION_EVALUATION_MODE unconditionally.
5044
5808517f
YQ
50452012-03-03 Yao Qi <yao@codesourcery.com>
5046
5047 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
5048 * common/agent.h: Update declaration.
5049 * inf-child.c (inf_child_use_agent): New.
5050 (inf_child_can_use_agent): New.
5051 (inf_child_target): Initialize fields `to_use_agent'
5052 and `to_can_use_agent'.
5053 * agent.c (agent_new_objfile): New.
89b7509a 5054 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
5055 observer.
5056
5057 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5058 New.
89b7509a 5059 (linux_target_install_ops): Initialize field
5808517f
YQ
5060 `to_static_tracepoint_markers_by_strid'.
5061 * remote.c (free_current_marker): Move it to ...
5062 * tracepoint.c (free_current_marker): ... here. New.
5063 (cleanup_target_stop): New.
5064 * tracepoint.h: Declare free_current_marker.
5065 * NEWS: Add one entry about `info static-tracepoint-marker'.
5066
58b4daa5
YQ
50672012-03-03 Yao Qi <yao@codesourcery.com>
5068
5069 * common/agent.c (agent_loaded_p): New.
89b7509a 5070 (agent_look_up_symbols): New global.
58b4daa5
YQ
5071 * common/agent.h: Declare agent_loaded_p.
5072
8ffcbaaf
YQ
50732012-03-03 Yao Qi <yao@codesourcery.com>
5074
5075 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
5076 (agent_capability_check, agent_capability_invalidate): New.
5077 (symbol_list): New array element.
5078 * common/agent.h (enum agent_capa): New.
5079 * target.c (target_pre_inferior): Call agent_capability_invalidate.
5080
d1feda86
YQ
50812012-03-03 Yao Qi <yao@codesourcery.com>
5082
5083 * target.h (struct target_ops) <to_use_agent>: New field.
5084 (struct target_ops) <to_can_use_agent>: New field.
5085 (target_use_agent, target_can_use_agent): New macro.
5086 * target.c (update_current_target): Update.
5087 * remote.c: New enum `PACKET_QAgent'.
5088 (remote_protocol_features): Add a new element.
5089 (remote_use_agent, remote_can_use_agent): New.
5090 (init_remote_ops): Initialize field `can_use_agent' with
5091 remote_can_use_agent. Intiailize field `use_agent' with
5092 remote_use_agent.
5093 * common/agent.c (use_agent): New global.
5094 * common/agent.h: Declare it.
5095 * tracepoint.c (info_static_tracepoint_markers_command): Add
5096 comment.
5097 * Makefile.in (SFILES): Add common/agent.c and agent.c.
5098 (COMMON_OBS): Add common/agent.o and agent.o
5099 (common-agent.o): New rule.
5100 * agent.c: New.
5101
2fa291ac
YQ
51022012-03-03 Yao Qi <yao@codesourcery.com>
5103
5104 * common/agent.c: New.
5105 * common/agent.h: New.
5106 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
5107 AC_CHECK_HEADERS.
5108 * configure, configh.in: Regenerated.
5109
9fc05685
KB
51102012-03-02 Kevin Buettner <kevinb@redhat.com>
5111
5112 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
5113 unless it exists for this architecture.
5114
a5ee536b
JB
51152012-03-02 Joel Brobecker <brobecker@adacore.com>
5116
5117 * language.h (struct language_defn): New "method" la_read_var_value.
5118 * findvar.c: #include "language.h".
5119 (default_read_var_value): Renames read_var_value. Rewrite
5120 function description.
5121 (read_var_value): New function.
5122 * value.h (default_read_var_value): Add prototype.
5123 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
5124 New functions.
5125 (ada_language_defn): Add entry for la_read_var_value.
5126 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
5127 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
5128 language_defn structures to add entry for new la_read_var_value
5129 field.
5130
f59f708a
PA
51312012-03-02 Tom Tromey <tromey@redhat.com>
5132 Pedro Alves <palves@redhat.com>
5133
5134 PR breakpoints/13776:
5135 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
5136 breakpoints.
5137 (delete_longjmp_breakpoint_at_next_stop): New.
5138 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
5139 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
5140 before deleting the inferior. Add comments.
5141 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
5142 breakpoints immediately, but only on next stop. Move that code
5143 next to where we mark other breakpoints for deletion.
5144
44099a67
JB
51452012-03-02 Joel Brobecker <brobecker@adacore.com>
5146
5147 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
5148 marker.
5149 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
5150 violation.
5151
2a2ef594
PA
51522012-03-02 Pedro Alves <palves@redhat.com>
5153
5154 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
5155
b261e0c5
UW
51562012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5157
5158 Fix -Wmissing-prototypes build.
5159 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
5160 * remote-sim.c (gdbsim_has_all_memory): Likewise.
5161 (gdbsim_has_memory): Likewise.
5162
a95babbf
YQ
51632012-03-02 Yao Qi <yao@codesourcery.com>
5164
5165 Fix -Wmissing-prototypes build.
5166 * charset.c (phony_iconv_open): Make static.
5167 (phony_iconv_close, phony_iconv): Likewise.
5168 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
5169 * i386-windows-nat.c (_initialize_i386_windows_nat): New
5170 prototype.
5171 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
5172 * ser-mingw.c (create_select_thread): Make static.
5173 * windows-termcap.c (tgetent): New prototype.
5174 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
5175
d603d4b3
JK
51762012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
5177
5178 Fix -Wmissing-prototypes build.
5179 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
5180 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
5181 (_initialize_loadable): New prototypes.
5182
7fb3ad1f
DE
51832012-03-02 Doug Evans <dje@google.com>
5184
5185 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
5186 abbrev table, read_comp_unit will do it.
5187
693be288
JK
51882012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5189
5190 Fix -Wmissing-prototypes build.
5191 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
5192 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
5193 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
5194 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
5195 (_initialize_arm_symbian_tdep): New prototype.
5196 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
5197 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
5198 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
5199 static.
5200 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
5201 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
5202 prototype.
5203 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
5204 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
5205 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
5206 static.
5207 * moxie-tdep.c (moxie_process_record): Likewise.
5208 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
5209 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
5210 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
5211 (_initialize_rl78_tdep): New prototype.
5212 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
5213 (_initialize_rx_tdep): New prototype.
5214 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
5215 (_initialize_darwin_solib): New prototype.
5216 * solib-spu.c: Include solib-spu.h.
5217 (_initialize_spu_solib): New prototype.
5218 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
5219 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
5220 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
5221 (tic6x_software_single_step): Make it static.
5222 (_initialize_tic6x_tdep): New prototype.
5223
638234e5
JK
52242012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5225
5226 Fix -Wmissing-prototypes build.
5227 * cris-tdep.c (cris_can_use_hardware_watchpoint)
5228 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
5229
f4a6f16d
JK
52302012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5231
5232 Fix -Wmissing-prototypes build.
5233 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
5234 (frv_have_stopped_data_address): Remove.
5235
04dcf5fa
JK
52362012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5237
5238 Fix -Wmissing-prototypes build.
5239 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
5240 * sh-tdep.c: Include sh64-tdep.h.
5241 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
5242 * sh64-tdep.c: Include sh64-tdep.h.
5243 * sh64-tdep.h: New file.
5244
19080931
MR
52452012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5246
5247 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
5248
9aac7884
MR
52492012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5250
5251 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
5252 sp_regnum once the gdbarch_init_osabi hook has been called.
5253
a385295e
MR
52542012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5255
5256 * mips-tdep.c (mips32_bc1_pc): New function.
5257 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
5258 BPOSGE32 and BPOSGE64 instructions.
5259 (deal_with_atomic_sequence): Likewise.
5260 (mips32_instruction_has_delay_slot): Likewise.
5261
1faeff08 52622012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
5263 Chris Dearman <chris@mips.com>
5264 Maciej W. Rozycki <macro@codesourcery.com>
5265 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
5266
5267 * features/mips-dsp.xml: New file.
5268 * features/mips64-dsp.xml: New file.
5269 * features/mips-dsp-linux.xml: New file.
5270 * features/mips64-dsp-linux.xml: New file.
5271 * features/Makefile (WHICH): Add mips-dsp-linux and
5272 mips64-dsp-linux.
5273 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
5274 * features/mips-dsp-linux.c: New file.
5275 * features/mips64-dsp-linux.c: New file.
5276 * regformats/mips-dsp-linux.dat: New file.
5277 * regformats/mips64-dsp-linux.dat: New file.
5278 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
5279 registers.
5280 (mips64_linux_register_addr): Likewise.
5281 (mips64_linux_regsets_fetch_registers): Likewise.
5282 (mips64_linux_regsets_store_registers): Likewise.
5283 (mips64_linux_fetch_registers): Update call to
5284 mips64_linux_regsets_fetch_registers.
5285 (mips64_linux_store_registers): Update call to
5286 mips64_linux_regsets_store_registers.
5287 (mips_linux_read_description): Probe for DSP registers.
5288 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
5289 and initialize_tdesc_mips64_dsp_linux.
5290 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
5291 Remove padding of no longer used embedded register slots.
5292 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
5293 (MIPS_RESTART_REGNUM): Redefine enum value.
5294 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
5295 strings.
5296 (mips_tx39_reg_names): Likewise.
5297 (mips_linux_reg_names): New array of register names for Linux
5298 targets.
5299 (mips_register_name): Check for a null pointer in
5300 mips_processor_reg_names and return an empty string.
5301 (mips_register_type): Exclude embedded registers for the IRIX
5302 and Linux ABIs.
5303 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
5304 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
5305 DSP registers.
5306 (mips_stab_reg_to_regnum): Handle DSP accumulators.
5307 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
5308 (mips_gdbarch_init): Likewise. Initialize internal register
5309 indices for the Linux ABI. Use dynamic numbers to refer to
5310 registers, as applicable, while parsing the target description.
5311 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
5312
263689d8
JB
53132012-03-01 Joel Brobecker <brobecker@adacore.com>
5314
5315 * frame.h (read_frame_register_unsigned): Fix typo in function
5316 description.
5317
f3b4f45c
PA
53182012-03-01 Pedro Alves <palves@redhat.com>
5319
5320 * jit-reader.in [!__cplusplus]
5321 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
5322
b03a2011
PA
53232012-03-01 Pedro Alves <palves@redhat.com>
5324
5325 * configure.ac (build_warnings): Add -Wmissing-prototypes.
5326 * configure: Regenerate.
5327
70221824
PA
53282012-03-01 Pedro Alves <palves@redhat.com>
5329
5330 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
5331 * breakpoint.c (create_exception_master_breakpoint, trace_command)
5332 (ftrace_command, strace_command): Make static.
5333 * d-lang.c (_initialize_d_language): Declare.
5334 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
5335 * dwarf2loc.c (_initialize_dwarf2loc):
5336 * dwarf2read.c (process_psymtab_comp_unit): Make static.
5337 * exec.c (exec_get_section_table): Make static.
5338 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
5339 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
5340 * inferior.c (remove_inferior_command, add_inferior_command)
5341 (clone_inferior_command): Make static.
5342 * linux-nat.c (linux_nat_thread_address_space)
5343 (linux_nat_core_of_thread): Make static.
5344 * linux-tdep.c (_initialize_linux_tdep): Declare.
5345 * objc-lang.c (_initialize_objc_lang): Declare.
5346 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
5347 Make static.
5348 (_initialize_opencl_language): Declare.
5349 * record.c (_initialize_record): Declare.
5350 * remote.c (demand_private_info, remote_get_tib_address)
5351 (remote_supports_cond_tracepoints)
5352 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
5353 Make static.
5354 * skip.c (_initialize_step_skip): Declare.
5355 * symtab.c (skip_prologue_using_lineinfo): Make static.
5356 * tracepoint.c (delete_trace_state_variable)
5357 (trace_variable_command, delete_trace_variable_command)
5358 (get_uploaded_tsv, find_matching_tracepoint_location)
5359 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
5360 Make static.
5361 * value.c (pack_unsigned_long): Make static.
5362 * varobj.c (varobj_ensure_python_env): Make static.
5363 * windows-tdep.c (_initialize_windows_tdep): Declare.
5364 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
5365
33fbcbee
PA
53662012-03-01 Pedro Alves <palves@redhat.com>
5367
5368 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
5369 gdbarch parameter.
5370 (linux_init_abi): Install it as has_shared_address_space gdbarch
5371 callback.
5372
44d0cd3b
PA
53732012-03-01 Pedro Alves <palves@redhat.com>
5374
5375 * observer.c (observer_test_first_notification_function)
5376 (observer_test_second_notification_function)
5377 (observer_test_third_notification_function): Add declarations.
5378
ed01b82c
PA
53792012-03-01 Pedro Alves <palves@redhat.com>
5380
5381 * common/signals.c (default_target_signal_to_host)
5382 (default_target_signal_from_host): Move ...
5383 * arch-utils.c: ... here.
5384 * arch-utils.h (default_target_signal_to_host)
5385 (default_target_signal_from_host): Declare.
5386
5387 * common/signals.c (target_signal_from_command): Move ...
5388 * infrun.c: ... here.
5389 * inferior.h (target_signal_from_command): Declare.
5390 * target.h (target_signal_from_command)
5391 (default_target_signal_from_host, default_target_signal_to_host):
5392 Delete declarations.
5393
5394 * common/signals.c (_initialize_signals): Delete.
5395
c9b87335
PA
53962012-03-01 Pedro Alves <palves@redhat.com>
5397
5398 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
5399 both __cplusplus and !__cplusplus.
5400
9340a6c0
PA
54012012-03-01 Pedro Alves <palves@redhat.com>
5402
5403 * psymtab.c (find_and_open_source): Delete declaration.
5404 * source.c (find_and_open_source): Move comment ...
5405 * source.h (find_and_open_source): ... to this new declaration.
5406
e451c4a1
PA
54072012-03-01 Pedro Alves <palves@redhat.com>
5408
5409 * inline-frame.c: Include inline-frame.h.
5410
983fb104
PA
54112012-03-01 Pedro Alves <palves@redhat.com>
5412
5413 * tui/tui-data.c (set_gen_win_origin): Delete.
5414 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
5415 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
5416
5fbce5df
PA
54172012-03-01 Pedro Alves <palves@redhat.com>
5418
5419 * remote.c (encode_actions): Delete declaration.
5420 * tracepoint.c (encode_actions): Make extern.
5421 * tracepoint.h (encode_actions): Declare.
5422
49a8461d
PA
54232012-03-01 Pedro Alves <palves@redhat.com>
5424
5425 * python/py-breakpoint.c: Include python.h.
5426 * python/py-continueevent.c (create_continue_event_object): Make
5427 static.
5428 * python/py-lazy-string.c (stpy_get_type): Make static.
5429 * python/py-newobjfileevent.c (create_new_objfile_event_object):
5430 Make static.
5431 * python/py-utils.c (unicode_to_target_python_string): Make
5432 static.
5433 * python/py-value.c: Include python.h.
5434
9079102f
PA
54352012-03-01 Pedro Alves <palves@redhat.com>
5436
5437 * inferior.c (delete_threads_of_inferior): Delete.
5438
a298c5e8
PA
54392012-03-01 Pedro Alves <palves@redhat.com>
5440
5441 Import fallback definitions from glibc.
5442
5443 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5444 ps_prochandle): Forward declare.
5445 (ps_err_e): Use glibc's comments.
5446 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5447 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5448 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5449 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5450 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5451 (struct ps_prochandle): Adjust comment.
5452
e3084549
PA
54532012-03-01 Pedro Alves <palves@redhat.com>
5454
5455 * ada-lang.c (ada_modulus_from_name): Delete.
5456 * ada-lex.l (lexer_init): Make static.
5457
ad5f7d6e
PA
54582012-03-01 Pedro Alves <palves@redhat.com>
5459
5460 PR gdb/13767
5461
5462 * frame.c (read_frame_register_unsigned): New.
5463 * frame.h (read_frame_register_unsigned): Declare.
5464 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5465 Handle it.
5466 (print_i387_control_word): New parameter `control_p'. Handle it.
5467 (i387_print_float_info): Handle unavailable float registers.
5468
e0a4d108
KS
54692012-03-01 Keith Seitz <keiths@redhat.com>
5470
5471 * linespec.c (decode_line_2): Sort the list of methods
5472 alphabetically before presenting the user with a selection
5473 menu.
5474
122d1940
DE
54752012-03-01 Doug Evans <dje@google.com>
5476
5477 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5478 has_namespace_info.
5479 (dwarf2_read_abbrevs): Remove corresponding initialization.
5480
7d74f244
DE
54812012-03-01 Scott J. Goldman <scottjg@vmware.com>
5482
5483 * NEWS: Mention new python command class gdb.COMMAND_USER.
5484 * cli/cli-cmds.c (show_user): Print error when used on a python
5485 command.
5486 (init_cli_cmds): Update documentation strings for "show user" and
5487 "set/show max-user-call-depth" to clarify that it does not apply to
5488 python commands.
5489 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5490 error check.
5491 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5492 gdb python api.
5493 * top.c (execute_command): Only execute a user-defined command as a
5494 legacy macro if c->user_commands is set.
5495
e88acd96
TT
54962012-03-01 Tom Tromey <tromey@redhat.com>
5497
5498 * valprint.h (struct generic_val_print_decorations): New.
5499 (generic_val_print): Declare.
5500 * valprint.c (generic_val_print): New function.
5501 * p-valprint.c (p_decorations): New global.
5502 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5503 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5504 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5505 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5506 * m2-valprint.c (m2_decorations): New global.
5507 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5508 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5509 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5510 TYPE_CODE_ERROR>: Call generic_val_print.
5511 * f-valprint.c (f_decorations): New global.
5512 (f_val_print): Use print_function_pointer_address.
5513 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5514 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5515 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5516 generic_val_print.
5517 * c-valprint.c (c_decorations): New global.
5518 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5519 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5520 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5521 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5522 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5523 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5524 case.
5525
d3eab38a
TT
55262012-03-01 Tom Tromey <tromey@redhat.com>
5527
5528 * valprint.c (val_print): Update.
5529 * p-valprint (pascal_val_print): Return void.
5530 * p-lang.h (pascal_val_print): Return void.
5531 * m2-valprint.c (m2_val_print): Return void.
5532 * m2-lang.h (m2_val_print): Return void.
5533 * language.h (struct language_defn) <la_val_print>: Return void.
5534 * language.c (unk_lang_val_print): Return void.
5535 * jv-valprint.c (java_val_print): Return void.
5536 * jv-lang.h (java_val_print): Return void.
5537 * f-valprint.c (f_val_print): Return void.
5538 * f-lang.h (f_val_print): Return void.
5539 * d-valprint.c (d_val_print): Return void.
5540 (dynamic_array_type): Update.
5541 * d-lang.h (d_val_print): Return void.
5542 * c-valprint.c (c_val_print): Return void.
5543 * c-lang.h (c_val_print): Return void.
5544 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5545 void.
5546 * ada-lang.h (ada_val_print): Return void.
5547
35c0084b
TT
55482012-03-01 Tom Tromey <tromey@redhat.com>
5549
5550 * value.h (val_print): Return void.
5551 * valprint.c (val_print): Return void.
5552
a1f5dd1b
TT
55532012-03-01 Tom Tromey <tromey@redhat.com>
5554
5555 * value.h (common_val_print): Return void.
5556 * valprint.c (common_val_print): Return void.
5557
8e069a98
TT
55582012-03-01 Tom Tromey <tromey@redhat.com>
5559
5560 * value.h (value_print): Return void.
5561 * valprint.c (value_print): Return void.
5562 * p-valprint.c (pascal_value_print): Return void.
5563 * p-lang.h (pascal_value_print): Return void.
5564 * language.h (struct language_defn) <la_value_print>: Return
5565 void.
5566 * language.c (unk_lang_value_print): Return void.
5567 * jv-valprint.c (java_value_print): Return void.
5568 * jv-lang.h (java_value_print): Return void.
5569 * f-valprint.c (c_value_print): Don't declare.
5570 Include c-lang.h.
5571 * c-valprint.c (c_value_print): Return void.
5572 * c-lang.h (c_value_print): Return void.
5573 * ada-valprint.c (ada_value_print): Return void.
5574 * ada-lang.h (ada_value_print): Return void.
5575
be335936
TT
55762012-03-01 Tom Tromey <tromey@redhat.com>
5577
5578 * value.c (value_primitive_field): Handle virtual base classes.
5579
b0db66a7
TT
55802012-03-01 Tom Tromey <tromey@redhat.com>
5581
5582 * gdbtypes.h (struct vbase): Remove.
5583
132c57b4
TT
55842012-03-01 Tom Tromey <tromey@redhat.com>
5585
5586 * c-valprint.c (print_function_pointer_address): Move...
5587 * valprint.c: ... here. Make non-static.
5588 * m2-valprint.c (print_function_pointer_address): Remove.
5589 * valprint.h (print_function_pointer_address): Declare.
5590
e41eec66
JB
55912012-03-01 Joel Brobecker <brobecker@adacore.com>
5592
5593 * NEWS: Document the fact that one can provide a condition when
5594 creating an Ada exception catchpoint.
5595
19c37f24
TT
55962012-03-01 Tom Tromey <tromey@redhat.com>
5597
5598 * valprint.c (val_print_type_code_flags): Fix placement of
5599 trailing brace.
5600
f0fed3a3
JB
56012012-03-01 Joel Brobecker <brobecker@adacore.com>
5602
5603 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5604 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5605 environment variable before calling update-copyright.
5606
8ba85d85
JB
56072012-03-01 Joel Brobecker <brobecker@adacore.com>
5608
5609 * gnulib/extra/update-copyright: Update to the latest from
5610 gnulib's git repository.
5611 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5612 variable to 2 instead of 1.
5613
8219b1e8
JB
56142012-02-29 Joel Brobecker <brobecker@adacore.com>
5615
5616 * varobj.c (c_value_of_variable): Remove dead code.
5617
718cb7da
JB
56182012-02-29 Joel Brobecker <brobecker@adacore.com>
5619
5620 * ada-lex.p (processId): Do not modify already encoded IDs.
5621 Update function documentation.
5622
739593e0
JB
56232012-02-29 Joel Brobecker <brobecker@adacore.com>
5624
5625 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5626 "name" with "struct symbol *name_sym".
5627 * ada-exp.y (write_var_or_type): Update call to
5628 ada_find_renaming_symbol.
5629 "name" with "struct symbol *name_sym". Adjust Implementation
5630 accordingly. Adjust the function documentation.
5631
852dff6c
JB
56322012-02-29 Joel Brobecker <brobecker@adacore.com>
5633
5634 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5635 * ada-lang.c (ada_find_any_type): Add advance declaration.
5636 Make static. Replace ada_find_any_symbol by
5637 ada_find_any_type_symbol.
5638 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5639 Improve function description. Make static.
5640 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5641 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5642
1b611343
JB
56432012-02-29 Joel Brobecker <brobecker@adacore.com>
5644
5645 * ada-lang.c (struct tag_args): Delete.
5646 (ada_get_tsd_type): Function body moved up in source file.
5647 (ada_tag_name_1, ada_tag_name_2): Delete.
5648 (ada_get_tsd_from_tag): New function.
5649 (ada_tag_name_from_tsd): New function.
5650 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5651 to determine the tag name.
5652
41246937
JB
56532012-02-29 Joel Brobecker <brobecker@adacore.com>
5654
5655 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5656 declaration.
5657 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5658 function.
5659
ffde82bf
JB
56602012-02-29 Joel Brobecker <brobecker@adacore.com>
5661
5662 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5663
2ad01556
JB
56642012-02-29 Joel Brobecker <brobecker@adacore.com>
5665
5666 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5667 full searches.
5668
99b1c762
JB
56692012-02-29 Joel Brobecker <brobecker@adacore.com>
5670
5671 * ada-lang.c (constrained_packed_array_type): If there is a
5672 parallel XA type, use it to determine the array index type.
5673
2d4a02ee
JB
56742012-02-29 Joel Brobecker <brobecker@adacore.com>
5675
5676 * ada-valprint.c (ada_val_print_1): If our value is a reference
5677 to an array descriptor, dereference it before converting it
5678 to a simple array.
5679
c48db5ca
JB
56802012-02-29 Joel Brobecker <brobecker@adacore.com>
5681
5682 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5683 creating fixed value.
5684 (ada_value_ind, ada_coerce_ref, assign_component)
5685 (ada_evaluate_subexp): Remove call to unwrap_value before
5686 call to ada_to_fixed_value.
5687
2e6fda7d
JB
56882012-02-29 Joel Brobecker <brobecker@adacore.com>
5689
5690 * ada-lang.c (to_fixed_array_type): Set result's type name.
5691
5845583d
JB
56922012-02-29 Joel Brobecker <brobecker@adacore.com>
5693
5694 * ada-lang.c (catch_ada_exception_command_split): Add new
5695 argument cond_string. Add support for condition at end of
5696 "catch exception" commands.
5697 (ada_decode_exception_location): Add new argument cond_string.
5698 Update call to catch_ada_exception_command_split.
5699 (create_ada_exception_catchpoint): Add new argument cond_string.
5700 Set the breakpoint condition if needed.
5701 (catch_ada_exception_command): Update call to
5702 ada_decode_exception_location.
5703 (ada_decode_assert_location): Add function documentation.
5704 Add support for condition at end of "catch assert" command.
5705 (catch_assert_command): Update calls to ada_decode_assert_location
5706 and create_ada_exception_catchpoint.
5707
9a7f938f
JK
57082012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5709
5710 Fix disp-step-syscall.exp: fork: single step over fork.
5711 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5712 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5713 comment, change parameters gdbarch and ptid to regcache. Remove
5714 parameter regcache, initialize gdbarch from regcache here.
5715 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5716 New functions.
5717 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5718 instead.
5719 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5720 'syscall'. Make the 'int' check more strict.
5721
ffdf6de5
JK
57222012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5723
5724 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5725 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5726 (i386_linux_intx80_sysenter_syscall_record): ... here.
5727 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5728 Use the renamed function name.
5729
c70a6932
JK
57302012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5731
5732 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5733 * breakpoint.c (until_break_command): Likewise.
5734 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5735 * infcall.c (call_function_by_hand): Likewise.
5736 * infcmd.c (finish_forward): Likewise.
5737 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5738
05b8a789 57392012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 5740
d4cd3da9
JB
5741 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5742 avoid variable assignments inside condition.
5743
6425366c
JK
57442012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5745
5746 Fix static analysis issue found by cppcheck.
5747 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5748 uninitialized BUF for size 2.
5749
c8cef75f 57502012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
5751 Nathan Froyd <froydnj@codesourcery.com>
5752 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
5753
5754 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5755 (mips16_instruction_has_delay_slot): Likewise.
5756 (mips_segment_boundary): Likewise.
5757 (mips_adjust_breakpoint_address): Likewise.
5758 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5759
473347ad 57602012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 5761 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
5762
5763 * infrun.c (handle_inferior_event): Don't proceed through
5764 shared library trampolines if stepping at the machine
5765 instruction level.
5766
cf233303
MR
57672012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5768
5769 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5770 too.
5771
cb2cf4ce
TS
57722012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5773
5774 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5775 (sh_stub_unwind_sniffer): New functions.
5776 (sh_stub_unwind): New variable.
5777 (sh_gdbarch_init): Wire everything.
5778
644cebc9
PA
57792012-02-27 Pedro Alves <palves@redhat.com>
5780
5781 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5782 (linux_nat_post_attach_wait): Adjust to use
5783 linux_proc_pid_is_stopped.
5784 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5785 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5786 based on pid_is_stopped from both linux-nat.c and
5787 gdbserver/linux-low.c, and renamed.
5788
283002cf
MR
57892012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5790
5791 * remote.c (remote_watchpoint_addr_within_range): New function.
5792 (init_remote_ops): Use it.
5793
9b3e86b1
MR
57942012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5795
5796 * target.h (target_watchpoint_addr_within_range): Document macro.
5797
e36930bb
PA
57982012-02-24 Pedro Alves <palves@redhat.com>
5799
5800 * stack.c (set_last_displayed_sal): Issue internal_error instead
5801 of warning, and issue it after clearing the last displayed sal.
5802
883bc8d1
PA
58032012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5804 Pedro Alves <palves@redhat.com>
5805
5806 * breakpoint.c (until_break_command): Install breakpoints after
5807 all frame manipulations.
5808
b775012e
LM
58092012-02-24 Luis Machado <lgustavo@codesourcery.com>
5810
5811 * remote.c (remote_supports_cond_breakpoints): New forward
5812 declaration.
5813 (remote_add_target_side_condition): New function.
5814 (remote_insert_breakpoint): Add target-side breakpoint
5815 conditional if supported.
5816 (remote_insert_hw_breakpoint): Likewise.
5817 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5818 hook.
5819
5820 * target.c (update_current_target): Inherit
5821 to_supports_evaluation_of_breakpoint_conditions.
5822 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5823
5824 * target.h (struct target_ops)
5825 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5826 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5827
5828 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5829 (condition_evaluation_both, condition_evaluation_auto,
5830 condition_evaluation_host, condition_evaluation_target,
5831 condition_evaluation_enums, condition_evaluation_mode_1,
5832 condition_evaluation_mode): New static globals.
5833 (translate_condition_evaluation_mode): New function.
5834 (breakpoint_condition_evaluation_mode): New function.
5835 (gdb_evaluates_breakpoint_condition_p): New function.
5836 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5837 (mark_breakpoint_modified): New function.
5838 (mark_breakpoint_location_modified): New function.
5839 (set_condition_evaluation_mode): New function.
5840 (show_condition_evaluation_mode): New function.
5841 (bp_location_compare_addrs): New function.
5842 (get_first_location_gte_addr): New helper function.
5843 (set_breakpoint_condition): Free condition bytecode if locations
5844 has become unconditional. Call mark_breakpoint_modified (...).
5845 (condition_command): Call update_global_location_list (1) for
5846 breakpoints.
5847 (breakpoint_xfer_memory): Use is_breakpoint (...).
5848 (is_breakpoint): New function.
5849 (parse_cond_to_aexpr): New function.
5850 (build_target_condition_list): New function.
5851 (insert_bp_location): Handle target-side conditional
5852 breakpoints and call build_target_condition_list (...).
5853 (update_inserted_breakpoint_locations): New function.
5854 (insert_breakpoint_locations): Handle target-side conditional
5855 breakpoints.
5856 (bpstat_check_breakpoint_conditions): Add comment.
5857 (bp_condition_evaluator): New function.
5858 (bp_location_condition_evaluator): New function.
5859 (print_breakpoint_location): Print information on where the condition
5860 will be evaluated.
5861 (print_one_breakpoint_location): Likewise.
5862 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5863 breakpoint location.
5864 (force_breakpoint_reinsertion): New functions.
5865 (update_global_location_list): Handle target-side breakpoint
5866 conditions.
5867 Reinsert locations that are already inserted if conditions have
5868 changed.
5869 (bp_location_dtor): Free agent expression bytecode.
5870 (disable_breakpoint): Call mark_breakpoint_modified (...).
5871 Call update_global_location_list (...) with parameter 1 for breakpoints.
5872 (disable_command): Call mark_breakpoint_location_modified (...).
5873 Call update_global_location_list (...) with parameter 1 for breakpoints.
5874 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5875 (enable_command): mark_breakpoint_location_modified (...).
5876 (_initialize_breakpoint): Update documentation and add
5877 condition-evaluation breakpoint subcommand.
5878
5879 * breakpoint.h: Include ax.h.
5880 (condition_list): New data structure.
5881 (condition_status): New enum.
5882 (bp_target_info) <cond_list>: New field.
5883 (bp_location) <condition_changed, cond_bytecode>: New fields.
5884 (is_breakpoint): New prototype.
5885
3788aec7
LM
58862012-02-24 Luis Machado <lgustavo@codesourcery.com>
5887
5888 * remote.c (remote_state) <cond_breakpoints>: New field.
5889 (PACKET_ConditionalBreakpoints): New enum.
5890 (remote_cond_breakpoint_feature): New function.
5891 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5892 (remote_supports_cond_breakpoints): New function.
5893 (_initialize_remote): Add new packet configuration for
5894 target-side conditional breakpoints.
5895
72895ff6
LM
58962012-02-24 Luis Machado <lgustavo@codesourcery.com>
5897
5898 * NEWS: Mention target-side conditional breakpoint support,
5899 new condition-evaluation breakpoint subcommand and remote
5900 packet extensions.
5901
dea2aa5f
LM
59022012-02-24 Luis Machado <lgustavo@codesourcery.com>
5903
5904 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5905 number.
5906
8a8bc27f
TS
59072012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5908
5909 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5910 (after_prologue): Remove.
5911
6b446fdf
TT
59122012-02-23 Tom Tromey <tromey@redhat.com>
5913
5914 * jv-valprint.c (java_val_print): Remove dead code.
5915
ef59abfb
TG
59162012-02-23 Tristan Gingold <gingold@adacore.com>
5917
a09130f9
PA
5918 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5919 known_tasks_element and known_tasks_length fields.
5920 (read_known_tasks_array): Change argument type. Use pointer type
5921 and number of elements from DATA. Adjust.
5922 (read_known_tasks_list): Likewise.
5923 (get_known_tasks_addr): Remove.
5924 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5925 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5926 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 5927
def166f6
JK
59282012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5929
5930 PR backtrace/13716
5931 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5932 it after set_momentary_breakpoint.
5933
aeaa2474
SA
59342012-02-22 Sterling Augustine <saugustine@google.com>
5935
5936 PR 13689:
5937 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5938
feea76c2
GB
59392012-02-22 Gary Benson <gbenson@redhat.com>
5940
5941 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5942 (find_slot_in_mapped_hash): Likewise.
5943
f06e05e0
JK
59442012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5945
5946 PR build/13638
5947 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5948 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5949 * configure: Regenerate.
5950
b54a8fd7
PA
59512012-02-21 Tristan Gingold <gingold@adacore.com>
5952 Pedro Alves <palves@redhat.com>
5953
5954 * ia64-tdep.c: Do not include libunwind-ia64.h.
5955 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5956 Include libunwind-ia64.h instead of libunwind.h.
5957 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5958 for libunwind.h existence.
5959 * configure, config.in: Regenerate.
5960
dfcee124
AG
59612012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5962
5963 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5964 instead of value_rtti_target_type.
5965 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5966 instead of value_rtti_target_type.
5967 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5968 value_rtti_target_type.
5969 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5970 (value_rtti_target_type): Rename to ...
5971 (value_rtti_indirect_type): ... here and make it indirect. Update
5972 function comment.
5973 * value.c (readjust_indirect_value_type): New function.
5974 (coerce_ref): Support for enclosing type setting for references
5975 with readjust_indirect_value_type.
5976 * value.h (readjust_value_type): New declaration.
5977 (value_rtti_target_type): Rename to ...
5978 (value_rtti_indirect_type): ... here.
5979
02568277
AG
59802012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5981
5982 * MAINTAINERS (Write After Approval): Add myself to the list.
5983
10c07b7e 59842012-02-20 Doug Evans <dje@google.com>
28ee876a 5985
d82ea6a8
DE
5986 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5987 Rename objfile_p_char parameter to objfilep.
5988 (build_objfile_section_table): Result is now void. All callers
5989 updated.
5990 * objfiles.h (struct objfile): Tweak comments, whitespace.
5991 (build_objfile_section_table): Update.
5992
28ee876a
DE
5993 * elfread.c (elf_symfile_segments): Fix warning text.
5994
24c79950
TT
59952012-02-20 Tom Tromey <tromey@redhat.com>
5996
5997 PR gdb/13498:
5998 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5999 particular set of file names once.
6000 (dw2_map_symbol_filenames): Likewise.
6001
3a9b40b6
JK
60022012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6003
6004 Code cleanup.
6005 * main.c (write_files): Remove the declaration.
6006 (external_editor_command): Move the declaration ...
6007 [GDBTK] (external_editor_command): ... here. Fix the comment.
6008
4d0795ca
TT
60092012-02-20 Tom Tromey <tromey@redhat.com>
6010
6011 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
6012 extraneous block.
6013
637fd620
TG
60142012-02-20 Tristan Gingold <gingold@adacore.com>
6015
6016 * darwin-nat.h (enum darwin_msg_state): Add comments.
6017
6f124894
TG
60182012-02-20 Tristan Gingold <gingold@adacore.com>
6019
6020 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
6021 value.
6022
2e6e3d9c
JB
60232012-20-18 Joel Brobecker <brobecker@adacore.com>
6024
6025 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
6026 between function description and implementation.
6027
2e8265fd
TT
60282012-02-17 Tom Tromey <tromey@redhat.com>
6029
6030 PR python/12070:
6031 * python/py-event.c (event_object_getset): New global.
6032 (event_object_type): Reference it.
6033 * python/py-type.c (field_object_getset): New global.
6034 (field_object_type): Reference it.
6035 * python/python-internal.h (gdb_py_generic_dict): Declare.
6036 * python/py-utils.c (gdb_py_generic_dict): New function.
6037
8544a150 60382012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 6039
8544a150 6040 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 6041
ca193e27
TS
60422012-02-17 Thomas Schwinge <thomas@codesourcery.com>
6043
6044 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
6045 TYPE_CALLING_CONVENTION annotation.
6046
e5586183
KB
60472012-02-16 Kevin Buettner <kevinb@redhat.com>
6048
6049 * MAINTAINERS: Add rx to target ISA section.
6050 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
6051 (ALLDEPFILES): Add rx-tdep.c.
6052
7dcd53a0
TT
60532012-02-16 Tom Tromey <tromey@redhat.com>
6054
6055 * symfile.c (symbol_file_add_main_1): Use inferior's
6056 symfile_flags.
6057 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
6058 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
6059 inferior.
6060 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
6061 inferior.
6062 (follow_exec): Use inferior's symfile_flags.
6063 * inferior.h (struct inferior) <symfile_flags>: New field.
6064
ddd60447
MF
60652012-02-16 Mike Frysinger <vapier@gentoo.org>
6066
6067 PR gdb/9734:
6068 * remote-sim.c (gdbsim_create_inferior): Call error() when
6069 sim_create_inferior() fails.
6070
b0d32fb6
TG
60712012-02-16 Josh Matthews <josh@joshmatthews.net>
6072
6073 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
6074
9addecb9
TT
60752012-02-16 Tom Tromey <tromey@redhat.com>
6076
6077 PR c++/13653:
6078 * thread.c (struct current_thread_cleanup) <was_removable>: New
6079 field.
6080 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
6081 (make_cleanup_restore_current_thread): Initialize new field.
6082
a58b110a
KB
60832012-02-15 Kevin Buettner <kevinb@redhat.com>
6084
6085 * MAINTAINERS: Add rl78 to target ISA section.
6086 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
6087 (ALLDEPFILES): Add rl78-tdep.c.
6088 * NEWS: Mention rl78 as a new target.
6089
4cb6da1c
AR
60902012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
6091
6092 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
6093 data.
6094 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
6095
3af2590d
TT
60962012-02-15 Tom Tromey <tromey@redhat.com>
6097
6098 PR gdb/12659:
6099 * infcmd.c (registers_info): Print just the current register's
6100 name.
6101
c6910659
TT
61022012-02-15 Tom Tromey <tromey@redhat.com>
6103
6104 * python/py-symbol.c (sympy_value): Use _().
6105
7cee1e54
PA
61062012-02-15 Pedro Alves <palves@redhat.com>
6107
6108 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
6109 output to be like native targets'.
6110 (remote_pid_to_str): Special case the null ptid.
6111
816338b5
SS
61122012-02-14 Stan Shebs <stan@codesourcery.com>
6113
6114 * NEWS: Mention enable count command.
6115 * breakpoint.h (struct breakpoint): New field enable_count.
6116 * breakpoint.c (enable_breakpoint_disp): Add count argument.
6117 (enable_breakpoint): Add arg to call.
6118 (struct disp_data): New struct.
6119 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
6120 (do_map_enable_once_breakpoint): Create a struct and pass it.
6121 (do_map_enable_delete_breakpoint): Ditto.
6122 (do_map_enable_count_breakpoint): New function.
6123 (enable_count_command): New function.
6124 (bpstat_stop_status): Decrement enable_count.
6125 (print_one_breakpoint_location): Report enable count.
6126 (_initialize_breakpoint): Add enable count command.
6127
c47a44f4
KB
61282012-02-14 Kevin Buettner <kevinb@redhat.com>
6129
6130 * rl78-tdep.c (reggroups.h): Include.
6131 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
6132 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
6133 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
6134 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
6135 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
6136 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
6137 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
6138 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
6139 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
6140 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
6141 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
6142 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
6143 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
6144 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
6145 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
6146 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
6147 beginning of register list.
6148 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
6149 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
6150 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
6151 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
6152 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
6153 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
6154 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
6155 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
6156 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
6157 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
6158 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
6159 the pseudo registers. Rearrange other pseudo registers too so
6160 that the bank registers appear at the end.
6161 (rl78_register_type): Account for the fact that the byte sized
6162 bank registers are now pseudo-registers.
6163 (rl78_register_name): Rearrange the register name array. Make
6164 initial set of raw banked registers inaccessible.
6165 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
6166 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
6167 case for copying bytes back and forth between raw and pseudo
6168 versions of the banked registers. Update other cases to reflect
6169 the changed names.
6170 (rl78_return_value): Update to account for changed names of
6171 raw registers.
6172 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
6173 rl78_register_sim_regno().
6174
e4569f1e
KB
61752012-02-14 Kevin Buettner <kevinb@redhat.com>
6176
6177 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
6178 the name parameter being passed to find_pc_partial_function().
6179
7a05aae7
JK
61802012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6181
6182 * MAINTAINERS: Step down from being ia64 target maintainer.
6183
11fde611
JK
61842012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6185
6186 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
6187 compilation warning.
6188
57008375
JK
61892012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6190
6191 Fix crash on loaded shlibs without loaded exec_bfd.
6192 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
6193 (set_section_command): Replace exec_bfd by p->bfd.
6194
ff3c9849
TT
61952012-02-10 Tom Tromey <tromey@redhat.com>
6196
6197 * linespec.c (decode_line_internal): Skip symtabs_from_filename
6198 when we have a C++ qualified name.
6199
db2b9fdd
PA
62002012-02-10 Pedro Alves <palves@redhat.com>
6201
6202 * inferior.c (inferior_pid_to_str): New.
6203 (print_inferior, inferior_command): Use it.
6204
12cd34f3
PA
62052012-02-10 Pedro Alves <palves@redhat.com>
6206
6207 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
6208 the test CFLAGS.
6209 * configure: Regenerate.
6210
e871429d
JK
62112012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6212
6213 * linespec.c (decode_line_internal): Fix comment correctness.
6214
1916efaf
PA
62152012-02-09 Valery Khromov <valery.khromov@gmail.com>
6216
6217 PR gdb/12953
6218 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
6219 * amd64bsd-nat.c: Add support for debug registers (adapted from
6220 i386bsd-nat.c).
6221 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
6222 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
6223 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
6224 (amd64bsd_dr_get_control): New functions.
6225 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
6226 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
6227 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
6228 watchpoints initialization.
6229 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
6230
f4859d94
JK
62312012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6232
6233 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
6234 flds_bnds.fields.
6235 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
6236
c56a97f9
JK
62372012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6238
6239 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
6240
1a119f36
JB
62412012-02-08 Joel Brobecker <brobecker@adacore.com>
6242
6243 * language.h (symbol_name_cmp_ftype): Renames
6244 symbol_name_match_p_ftype.
6245 (struct language_defn)[la_get_symbol_name_cmp]: Renames
6246 la_get_symbol_name_match_p.
6247 * ada-lang.c (ada_get_symbol_name_cmp): Renames
6248 ada_get_symbol_name_match_p. Update comment.
6249 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
6250 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
6251 Renames symbol_name_match_p. Update field type.
6252 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
6253 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6254 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
6255 "la_get_symbol_name_cmp" in comments.
6256 * language.c: Likewise.
6257
c71bb1cf
RO
62582012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6259
6260 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
6261 %eflags offset.
6262 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
6263 (amd64_sol2_gregset32_reg_offs): Likewise.
6264
4b2d20a5
TG
62652012-02-08 Joel Brobecker <brobecker@adacore.com>
6266
6267 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
6268 of the returned BFD is allocated by GDB.
6269
f0823d2c
TT
62702012-02-07 Tom Tromey <tromey@redhat.com>
6271
6272 PR python/12027:
6273 * python/python-internal.h (frame_object_type): Declare.
6274 * python/py-symbol.c (sympy_needs_frame): New function.
6275 (sympy_value): New function.
6276 (symbol_object_getset): Add "needs_frame".
6277 (symbol_object_methods): Add "value".
6278 * python/py-frame.c (frame_object_type): No longer static.
6279
64e7d9dd
TT
62802012-02-07 Tom Tromey <tromey@redhat.com>
6281
6282 PR python/13599:
6283 * python/py-symbol.c (sympy_line): New function.
6284 (symbol_object_getset): Add "line".
6285
1d6b2d2b
TT
62862012-02-07 Tom Tromey <tromey@redhat.com>
6287
6288 * charset.c (find_charset_names): Check 'in' against NULL.
6289
0d5cff50
DE
62902012-02-06 Doug Evans <dje@google.com>
6291
6292 * gdbtypes.h (struct main_type): Change type of name,tag_name,
6293 and fields.name members from char * to const char *. All uses updated.
6294 (struct cplus_struct_type): Change type of fn_fieldlists.name member
6295 from char * to const char *. All uses updated.
6296 (type_name_no_tag): Update.
6297 (lookup_unsigned_typename, lookup_signed_typename): Update.
6298 * gdbtypes.c (type_name_no_tag): Change result type
6299 from char * to const char *. All callers updated.
6300 (lookup_unsigned_typename, lookup_signed_typename): Change type of
6301 name parameter from char * to const char *.
6302 * symtab.h (struct cplus_specific): Change type of demangled_name
6303 member from char * to const char *. All uses updated.
6304 (struct general_symbol_info): Change type of name and
6305 mangled_lang.demangled_name members from char * to const char *.
6306 All uses updated.
6307 (symbol_get_demangled_name, symbol_natural_name): Update.
6308 (symbol_demangled_name, symbol_search_name): Update.
6309 * symtab.c (symbol_get_demangled_name): Change result type
6310 from char * to const char *. All callers updated.
6311 (symbol_natural_name, symbol_demangled_name): Ditto.
6312 (symbol_search_name): Ditto.
6313 (completion_list_add_name): Change type of symname,sym_text,
6314 text,word parameters from char * to const char *.
6315 (completion_list_objc_symbol): Change type of sym_text,
6316 text,word parameters from char * to const char *.
6317 * ada-lang.c (find_struct_field): Change type of name parameter
6318 from char * to const char *.
6319 (encoded_ordered_before): Similarly for N0,N1 parameters.
6320 (old_renaming_is_invisible): Similarly for function_name parameter.
6321 (ada_type_name): Change result type from char * to const char *.
6322 All callers updated.
6323 * ada-lang.h (ada_type_name): Update.
6324 * buildsym.c (hashname): Change type of name parameter
6325 from char * to const char *.
6326 * buildsym.h (hashname): Update.
6327 * dbxread.c (end_psymtab): Change type of include_list parameter
6328 from char ** to const char **.
6329 * dwarf2read.c (determine_prefix): Change result type
6330 from char * to const char *. All callers updated.
6331 * f-lang.c (find_common_for_function): Change type of name, funcname
6332 parameters from char * to const char *.
6333 * f-lang.c (find_common_for_function): Update.
6334 * f-valprint.c (list_all_visible_commons): Change type of funcname
6335 parameters from char * to const char *.
6336 * gdbarch.sh (static_transform_name): Change type of name parameter
6337 and result from char * to const char *.
6338 * gdbarch.c: Regenerate.
6339 * gdbarch.h: Regenerate.
6340 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
6341 of name parameter from char * to const char *.
6342 * jv-lang.c (java_primitive_type_from_name): Ditto.
6343 (java_demangled_signature_length): Similarly for signature parameter.
6344 (java_demangled_signature_copy): Ditto.
6345 (java_demangle_type_signature): Ditto.
6346 * jv-lang.h (java_primitive_type_from_name): Update.
6347 (java_demangle_type_signature): Update.
6348 * objc-lang.c (specialcmp): Change type of a,b parameters
6349 from char * to const char *.
6350 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
6351 from char * to const char *. All callers updated.
6352 * p-lang.h (is_pascal_string_type): Update.
6353 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
6354 of name parameter from char * to const char *.
6355 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
6356 * utils.c (fprintf_symbol_filtered): Ditto.
6357 * defs.h (fprintf_symbol_filtered): Update.
6358 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
6359 * stabsread.h (end_psymtab): Update.
6360 * stack.c (find_frame_funname): Change type of funname parameter
6361 from char ** to const char **.
6362 * stack.h (find_frame_funname): Update.
6363 * typeprint.c (type_print): Change type of varstring parameter
6364 from char * to const char *.
6365 * value.h (type_print): Update.
6366 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
6367 from char * to const char *. All callers updated.
6368 (xcoff_end_psymtab): Change type of include_list parameter
6369 from char ** to const char **. All callers updated.
6370 (swap_sym): Similarly for name parameter. All callers updated.
6371 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
6372 Use xstrdup.
6373 (process_coff_symbol): Use xstrdup.
6374 * stabsread.c (stabs_method_name_from_physname): Renamed from
6375 update_method_name_from_physname. Change result type from void
6376 to char *. All callers updated.
6377 (read_member_functions): In has_destructor case, store name in objfile
6378 obstack instead of malloc space. In !has_stub case, fix mem leak.
6379
5579a92e
TT
63802012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
6381
6382 * configure: Rebuild.
6383 * configure.ac: Put -L../bfd and -L../libiberty at the front of
6384 LDFLAGS.
6385
9058f767
KB
63862012-02-03 Kevin Buettner <kevinb@redhat.com>
6387
6388 * configure.tgt (rl78-*-elf): New target.
6389 * rl78-tdep.c: New file.
6390
5b37825d
PW
63912012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6392
6393 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
6394 and continue the loop. Add QUIT statement.
6395
e009ee71
TT
63962012-02-03 Tom Tromey <tromey@redhat.com>
6397
6398 PR gdb/13596:
6399 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
6400 bfd_lookup_symbol_from_symtab.
6401 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
6402 gdb_bfd_lookup_symbol_from_symtab.
6403
f7e44f65
JB
64042012-02-03 Joel Brobecker <brobecker@adacore.com>
6405
6406 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
6407 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
6408 symbol. Add assertion that sym2 is never NULL.
6409
2c02bd72
DE
64102012-02-02 Doug Evans <dje@google.com>
6411
6412 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
6413 "name" parameter to const char ** from char **. All callers updated.
6414 (find_pc_partial_function): Ditto.
6415 (cache_pc_function_name): Change type to const char * from char *.
6416 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
6417 (find_pc_partial_function): Update.
6418 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
6419 type of "name" parameter to const char * from char *.
6420 All uses updated.
6421 * arch-utils.c (generic_in_solib_return_trampoline): Change
6422 type of "name" parameter to const char * from char *.
6423 * arch-utils.h (generic_in_solib_return_trampoline): Update.
6424 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
6425 type of "name" parameter to const char * from char *.
6426 * gdbarch.sh (in_solib_return_trampoline): Ditto.
6427 * gdbarch.c: Regenerate.
6428 * gdbarch.h: Regenerate.
6429 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6430 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6431 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6432 type of "name" parameter to const char * from char *.
6433 * skip.c (skip_function_pc): Ditto.
6434 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6435 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6436 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6437 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6438 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6439 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6440 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6441 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6442 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6443
e886a173
PA
64442012-02-02 Pedro Alves <palves@redhat.com>
6445
6446 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6447 the current inferior has no execution. Make sure the current
6448 remote process matches gdb's current inferior.
6449
c709a7c2
TT
64502012-02-02 Tom Tromey <tromey@redhat.com>
6451
6452 PR gdb/13405:
6453 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6454 read-only memory.
6455
f149aabd
TT
64562012-02-02 Tom Tromey <tromey@redhat.com>
6457
6458 PR gdb/9307:
6459 * symtab.c (lookup_language_this): Set block_found.
6460
03bef283
TT
64612012-02-01 Tom Tromey <tromey@redhat.com>
6462
6463 PR gdb/13431:
6464 * jit.c (struct jit_inferior_data): Rewrite.
6465 (struct jit_objfile_data): New.
6466 (get_jit_objfile_data): New function.
6467 (add_objfile_entry): Update.
6468 (jit_read_descriptor): Return int. Replace descriptor_addr
6469 argument with inf_data. Update. Don't call error.
6470 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
6471 descriptor here.
6472 (jit_inferior_init): Don't look up descriptor. Don't call error.
6473 (jit_reset_inferior_data_and_breakpoints)
6474 (jit_inferior_created_observer): Remove.
6475 (jit_inferior_exit_hook): Update.
6476 (jit_executable_changed_observer): Remove.
6477 (jit_event_handler): Update.
6478 (free_objfile_data): Reset inferior data if needed.
6479 (_initialize_jit): Update.
6480
f0bbc364
TT
64812012-02-01 Tom Tromey <tromey@redhat.com>
6482
6483 * jit.c (bfd_open_from_target_memory): Move higher in file.
6484
47c1316c
TG
64852012-02-01 Tristan Gingold <gingold@adacore.com>
6486
6487 * libunwind-frame.c (libunwind_load): Display message if dlopen
6488 failed.
6489
8e704927
GB
64902012-02-01 Gary Benson <gbenson@redhat.com>
6491
09c7a31f 6492 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
6493 (iterate_over_symbols): Use the above.
6494 * symtab.c (iterate_over_symbols): Likewise.
6495 * language.h (language_defn->la_iterate_over_symbols): Likewise.
6496 * ada-lang.c (ada_iterate_over_symbols): Likewise.
6497 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6498 (iterate_name_matcher): Document return values.
6499 (collect_one_symbol): Likewise.
6500 (collect_function_symbols): Likewise.
6501 (collect_symbols): Likewise.
6502
d9680e73
TT
65032012-02-01 Tom Tromey <tromey@redhat.com>
6504
6505 * ada-lang.c (resolve_subexp): Update.
6506 (ada_lookup_symbol_list): Add 'full_search' argument.
6507 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6508 ada_lookup_symbol_list.
6509 (ada_lookup_encoded_symbol): Update.
6510 (get_var_value): Update.
6511 * ada-exp.y (block_lookup): Update.
6512 (write_var_or_type): Update.
6513 (write_name_assoc): Update.
6514 * ada-lang.h (ada_lookup_symbol_list): Update.
6515
72e1143f
TT
65162012-01-31 Tom Tromey <tromey@redhat.com>
6517
6518 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6519 comment.
6520
ab2d2ad3
DE
65212012-01-31 Doug Evans <dje@google.com>
6522
6523 * symtab.h: Remove outdated comment.
e9111bf7 6524 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 6525
bc884eba
JB
65262012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6527
6528 Fix build error in Darwin port.
6529 * i386-darwin-nat.c: Include i386-nat.h.
6530
8fc3fc34
TT
65312012-01-30 Tom Tromey <tromey@redhat.com>
6532
6533 PR breakpoints/13568:
6534 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6535 argument. Check for recursive includes.
6536 (dwarf_decode_macros): Create an include hash.
6537
5d853008
ME
65382012-01-30 Michael Eager <eager@eagercon.com>
6539
6540 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6541 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 6542 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
6543 (powerpc_linux_in_plt_stub): New function.
6544 (powerpc_linux_in_dynsym_resolve_code): New function.
6545 (ppc_skip_trampoline_code): New function.
6546 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6547 Use glibc_skip_solib_resolver.
6548
40478521
JK
65492012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6550
6551 Code cleanup: Make 1440 bytes of data segment read-only.
6552 * arch-utils.c (endian_enum): Make it const char *const [].
6553 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6554 Likewise.
6555 * breakpoint.c (always_inserted_enums): Likewise.
6556 * cli/cli-cmds.c (script_ext_enums): Likewise.
6557 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6558 enumlist parameter const char *const *.
6559 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6560 const char *const *.
6561 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6562 parameter const char *const *.
6563 * cris-tdep.c (cris_modes): Make it const char *const [].
6564 * filesystem.c (target_file_system_kinds): Likewise.
6565 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6566 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6567 (can_use_displaced_stepping_enum, scheduler_enums)
6568 (exec_direction_names): Likewise.
6569 * language.c (_initialize_language): Make the type_or_range_names and
6570 case_sensitive_names variables const char *const [].
6571 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6572 * python/python.c (python_excp_enums): Likewise.
6573 * remote.c (interrupt_sequence_modes): Likewise.
6574 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6575 * serial.c (logbase_enums): Likewise.
6576 * sh-tdep.c (sh_cc_enum): Likewise.
6577 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6578 Likewise.
6579 * symtab.c (multiple_symbols_modes): Likewise.
6580 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6581 Likewise.
6582 * utils.c (internal_problem_modes): Likewise.
6583
b3b8b934
JK
65842012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6585
6586 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6587 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6588 result.
6589
8c85a4e2
DE
65902012-01-27 Doug Evans <dje@google.com>
6591
6592 * configure.ac (with_python): Fix absolute path handling for win32.
6593 * configure: Regenerate.
6594
78d8b4d7
DE
65952012-01-26 Doug Evans <dje@google.com>
6596
eca864fe
DE
6597 * symtab.c: Whitespace cleanup, no code changes.
6598
7e082072
DE
6599 * symtab.c (lookup_symbol_in_language): Improve comment.
6600 (lookup_symbol_aux): Fix comment.
6601
7dc25483
DE
6602 * psymtab.c (add_psymbol_to_list): Result is now "void".
6603 * psympriv.h (add_psymbol_to_list): Update.
6604
78d8b4d7
DE
6605 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6606
4c63965b
JK
66072012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6608
6609 Do not open script filenames twice.
6610 * cli/cli-cmds.c (source_script_from_stream): Pass to
6611 source_python_script also STREAM.
6612 * python/py-auto-load.c (source_section_scripts): Pass to
6613 source_python_script_for_objfile also STREAM.
6614 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6615 also INPUT.
6616 * python/python-internal.h (source_python_script_for_objfile): New
6617 parameter file, rename parameter file to filename.
6618 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6619 instead if !_WIN32. Update the function comment.
6620 (source_python_script, source_python_script_for_objfile)
6621 (source_python_script): New parameter file, rename parameter file to
6622 filename. Pass FILENAME to python_run_simple_file.
6623 * python/python.h (source_python_script): New parameter file, rename
6624 parameter file to filename.
6625
88f38a04
PA
66262012-01-26 Pedro Alves <palves@redhat.com>
6627
6628 * corelow.c (core_has_fake_pid): Delete.
6629 (core_close): Delete references to `core_has_fake_pid'.
6630 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6631 (core_open): Delete references to `core_has_fake_pid'.
6632 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6633 the removed global.
6634
e078317b
JB
66352012-01-26 Joel Brobecker <brobecker@adacore.com>
6636
6637 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6638 Remove language parameter from name_matcher. Adjust the comment.
6639 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6640 Remove language parameter.
6641 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6642 * linespec.c (iterate_name_matcher): Likewise.
6643 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6644 name_matcher. Adjust call accordingly.
6645 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6646 (maintenance_check_symtabs): Adjust type of parameter "fun".
6647 * psymtab.h (maintenance_check_symtabs): Likewise.
6648
74ccd7f5
JB
66492012-01-26 Joel Brobecker <brobecker@adacore.com>
6650
6651 * language.h (symbol_name_match_p_ftype): New typedef.
6652 (struct language_defn): Replace field la_symbol_name_compare
6653 by la_get_symbol_name_match_p.
6654 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6655 (ada_language_defn): Use it.
6656 * linespec.c (struct symbol_matcher_data): New type.
6657 (iterate_name_matcher): Rewrite.
6658 (iterate_over_all_matching_symtabs): Pass a pointer to
6659 a symbol_matcher_data struct to expand_symtabs_matching
6660 instead of just the lookup name.
6661 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6662 opencl-lang.c, p-lang.c, language.c: Delete field
6663 la_symbol_name_compare, and replace by NULL for new field
6664 la_get_symbol_name_match_p.
6665 * symfile.h (struct quick_symbol_functions): Update comment.
6666
5d268276
TT
66672012-01-25 Tom Tromey <tromey@redhat.com>
6668
6669 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6670 dereferencing.
6671
edcc5120
TT
66722012-01-24 Tom Tromey <tromey@redhat.com>
6673
6674 PR symtab/12406:
6675 * solib.c (update_solib_list): Update the program space's
6676 added_solibs and deleted_solibs fields.
6677 * progspace.h (struct program_space) <added_solibs,
6678 deleted_solibs>: New fields.
6679 (clear_program_space_solib_cache): Declare.
6680 * progspace.c (release_program_space): Call
6681 clear_program_space_solib_cache.
6682 (clear_program_space_solib_cache): New function.
6683 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6684 bpstat_stop_status. Use handle_solib_event.
6685 * breakpoint.c: Include gdb_regex.h.
6686 (print_solib_event): New function.
6687 (bpstat_print): Use print_solib_event.
6688 (bpstat_stop_status): Add special case for bp_shlib_event.
6689 (handle_solib_event): New function.
6690 (bpstat_what): Use handle_solib_event.
6691 (struct solib_catchpoint): New.
6692 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6693 (breakpoint_hit_catch_solib, check_status_catch_solib)
6694 (print_it_catch_solib, print_one_catch_solib)
6695 (print_mention_catch_solib, print_recreate_catch_solib): New
6696 functions.
6697 (catch_solib_breakpoint_ops): New global.
6698 (catch_load_or_unload, catch_load_command_1)
6699 (catch_unload_command_1): New functions.
6700 (internal_bkpt_check_status): Add special case for
6701 bp_shlib_event.
6702 (internal_bkpt_print_it): Use print_solib_event.
6703 (initialize_breakpoint_ops): Initialize
6704 catch_solib_breakpoint_ops.
6705 (_initialize_breakpoint): Register "catch load" and "catch
6706 unload".
6707 * breakpoint.h (handle_solib_event): Declare.
6708 * NEWS: Add entry for "catch load" and "catch unload".
6709
fa864999
TT
67102012-01-24 Tom Tromey <tromey@redhat.com>
6711
6712 * ada-lang.c: Include gdb_vecs.h.
6713 * charset.c: Include gdb_vecs.h.
6714 * tracepoint.h: Include gdb_vecs.h.
6715 * gdb_vecs.h: New file.
6716
f90263c1
TT
67172012-01-24 Pedro Alves <pedro@codesourcery.com>
6718
6719 * breakpoint.c (breakpoint_hit_catch_fork)
6720 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6721 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6722 * infrun.c (inferior_has_forked, inferior_has_vforked)
6723 (inferior_has_execd, inferior_has_called_syscall): Delete.
6724 (handle_syscall_event): Get syscall_number from the execution
6725 control state's wait status.
6726 (wait_for_inferior): Don't clear syscall_number.
6727
09ac7c10
TT
67282012-01-24 Pedro Alves <palves@redhat.com>
6729
6730 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6731 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6732 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6733 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6734 `ws' parameter.
6735 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6736 false for events other than TARGET_SIGNAL_TRAP.
6737 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6738 Add `ws' parameter.
6739 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6740 events other than TARGET_SIGNAL_TRAP.
6741 (tracepoint_breakpoint_hit): Add `ws' parameter.
6742 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6743 parameter.
6744 (bpstat_stop_status): Same.
6745 (pc_at_non_inline_function): Same.
6746 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6747 to pass the current event's waitstatus to bpstat_stop_status
6748 and pc_at_non_inline_function.
6749
86eb7e95
JK
67502012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6751
6752 Code cleanup.
6753 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6754 Update the function comment for it.
6755 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6756 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6757 for STREAM.
6758
a9b3a50f
PA
67592012-01-24 Pedro Alves <palves@redhat.com>
6760
6761 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6762 outside `bs->stop' block.
6763 (bpstat_what): Rework bp_shlib_event handling.
6764 (internal_bkpt_check_status): If the breakpoint is a
6765 bp_shlib_event, then set bs->stop and bs->print if
6766 stop_on_solib_events is set.
6767
53fe1783
GB
67682012-01-24 Gary Benson <gbenson@redhat.com>
6769
6770 Delete #if 0'd out code.
6771 * stack.c (print_frame_label_vars): Remove.
6772 (catch_info): Likewise.
6773 (_initialize_stack): Remove "info catch" command.
6774 * NEWS: Mention the above.
6775
49c62f2e
PA
67762012-01-24 Pedro Alves <palves@redhat.com>
6777
6778 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6779 it.
6780 (remote_notice_new_inferior): If the remote end doesn't support
6781 the multiprocess extensions, then the PID is fake.
6782 (add_current_inferior_and_thread): New.
6783 (remote_start_remote): Use it.
6784 (extended_remote_attach_1): Adjust.
6785 (extended_remote_create_inferior_1): Use
6786 add_current_inferior_and_thread.
6787
d0d8b0c6
JK
67882012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6789
6790 Fix watchpoints to be specific for each inferior.
6791 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6792 current_program_space.
6793 * i386-nat.c (i386_inferior_data_cleanup): New.
6794 (i386_inferior_data_get): Replace variable inf_data_local by an
6795 inferior_data call.
6796 (i386_use_watchpoints): Initialize i386_inferior_data.
6797 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6798 specific iterate_over_lwps.
6799
4403d8e9
JK
68002012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6801
6802 Fix watchpoints across inferior fork.
6803 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6804 comment for linux_nat_iterate_watchpoint_lwps.
6805 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6806 linux_nat_iterate_watchpoint_lwps.
6807 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6808 * i386-linux-nat.c (update_debug_registers_callback): Update the
6809 comment for linux_nat_iterate_watchpoint_lwps.
6810 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6811 linux_nat_iterate_watchpoint_lwps.
6812 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6813 * i386-nat.c: Include inferior.h.
6814 (dr_mirror): Remove.
6815 (i386_inferior_data, struct i386_inferior_data)
6816 (i386_inferior_data_get): New.
6817 (i386_debug_reg_state): Use i386_inferior_data_get.
6818 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6819 (i386_insert_watchpoint, i386_remove_watchpoint)
6820 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6821 (i386_remove_hw_breakpoint): New variable state, use
6822 i386_debug_reg_state instead of DR_MIRROR.
6823 * linux-nat.c (delete_lwp): New declaration.
6824 (num_lwps): Move here from downwards.
6825 (delete_lwp_cleanup): New.
6826 (linux_child_follow_fork): Create new child_lp, call
6827 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6828 PTRACE_DETACH.
6829 (num_lwps): Move upwards.
6830 (linux_nat_iterate_watchpoint_lwps): New.
6831 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6832 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6833
2992c9a7 68342012-01-24 Joel Brobecker <brobecker@adacore.com>
6835
6836 GDB 7.4 released.
6837
e360902b
PA
68382012-01-23 Pedro Alves <palves@redhat.com>
6839
6840 * top.c (caution): Rename to ...
6841 (confirm): ... this.
6842 (show_caution): Rename to ...
6843 (show_confirm): ... this.
6844 (quit_cover): Adjust.
6845 (init_main): Adjust.
6846 * top.h (caution): Rename to ...
6847 (confirm): ... this.
6848 * utils.c (internal_vproblem, defaulted_query): Adjust.
6849
050a2e1d
PA
68502012-01-23 Pedro Alves <palves@redhat.com>
6851
6852 * top.c (caution): Update comment.
6853 (execute_command): Don't consider the current value of `caution'.
6854
77a35dd8
JK
68552012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6856
6857 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6858
a71b5a38
UW
68592012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6860
6861 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6862 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6863 * target.c (target_fileio_pwrite): Remove buffer address from
6864 debug output.
6865 (target_fileio_pread): Likewise.
6866
d99bd577
UW
68672012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6868
6869 * NEWS: Document remote "info proc" and "generate-core-file".
6870
35c2fab7
UW
68712012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6872
6873 * gdbarch.sh (find_memory_regions): New callback.
6874 * gdbarch.c, gdbarch.h: Regenerate.
6875
6876 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6877 callback before falling back to target method.
6878
6879 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6880 (linux_target_install_ops): No longer install it.
6881
6882 * linux-tdep.c (linux_find_memory_regions): New function.
6883 (linux_init_abi): Install it.
6884
6432734d
UW
68852012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6886
6887 * gdbarch.sh (make_corefile_notes): New architecture callback.
6888 * gdbarch.c: Regenerate.
6889 * gdbarch.h: Likewise.
6890
6891 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6892 before target_make_corefile_notes. If NULL is returned, the
6893 target does not support core file generation.
6894
6895 * linux-nat.c: Include "linux-tdep.h".
6896 (find_signalled_thread, find_stop_signal): Remove.
6897 (linux_nat_do_thread_registers): Likewise.
6898 (struct linux_nat_corefile_thread_data): Likewise.
6899 (linux_nat_corefile_thread_callback): Likewise.
6900 (iterate_over_spus): Likewise.
6901 (struct linux_spu_corefile_data): Likewise.
6902 (linux_spu_corefile_callback): Likewise.
6903 (linux_spu_make_corefile_notes): Likewise.
6904 (linux_nat_collect_thread_registers): New function.
6905 (linux_nat_make_corefile_notes): Replace contents by call to
6906 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6907 as native-only callback.
6908
6909 * linux-tdep.h: Include "bfd.h".
6910 (struct regcache): Add forward declaration.
6911 (linux_collect_thread_registers_ftype): New typedef.
6912 (linux_make_corefile_notes): Add prototype.
6913 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6914 "regset.h", and "elf-bfd.h".
6915 (find_signalled_thread, find_stop_signal): New functions.
6916 (linux_spu_make_corefile_notes): Likewise.
6917 (linux_collect_thread_registers): Likewise.
6918 (struct linux_corefile_thread_data): New data structure.
6919 (linux_corefile_thread_callback): New funcion.
6920 (linux_make_corefile_notes): Likewise.
6921 (linux_make_corefile_notes_1): Likewise.
6922 (linux_init_abi): Install it.
6923
3030c96e
UW
69242012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6925
6926 * gdbarch.sh (info_proc): New callback.
6927 * gdbarch.c, gdbarch.h: Regenerate.
6928
6929 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6930 before falling back to the target info_proc callback.
6931
6932 * linux-nat.c: Do not include "cli/cli-utils.h".
6933 (linux_nat_info_proc): Remove.
6934 (linux_target_install_ops): No longer install it.
6935
6936 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6937 (read_mapping): New function.
6938 (linux_info_proc): Likewise.
6939 (linux_init_abi): Install it.
6940
145b16a9
UW
69412012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6942
6943 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6944 * infcmd.c: (info_proc_cmd_1): New function.
6945 (info_proc_cmd): New function, moved here from equivalent routine
6946 orignally in linux-nat.c.
6947 (info_proc_cmd_mappings): Likewise.
6948 (info_proc_cmd_stat): Likewise.
6949 (info_proc_cmd_status): Likewise.
6950 (info_proc_cmd_cwd): Likewise.
6951 (info_proc_cmd_cmdline): Likewise.
6952 (info_proc_cmd_exe): Likewise.
6953 (info_proc_cmd_all): Likewise.
6954 (_initialize_infcmd): Install "info proc" command and subcommands.
6955
6956 * target.h (struct target_ops): Add to_info_proc.
6957 (target_info_proc): Add prototype.
6958 * target.c (target_info_proc): New function.
6959
6960 * procfs.c (procfs_info_proc): Add prototype.
6961 (info_proc_cmd): Rename into ...
6962 (procfs_info_proc): ... this. Update argument types as appropriate
6963 for a to_info_proc implementation. Handle "what" argument.
6964 (procfs_target): Install procfs_info_proc.
6965 (_initialize_procfs): No longer install "info proc" command.
6966
6967 * linux-nat.c: (enum info_proc_what): Remove.
6968 (linux_nat_info_proc_cmd_1): Rename into ...
6969 (linux_nat_info_proc): ... this. Update argument types as appropriate
6970 for a to_info_proc implementation.
6971 (linux_nat_info_proc_cmd): Remove.
6972 (linux_nat_info_proc_cmd_mappings): Likewise.
6973 (linux_nat_info_proc_cmd_stat): Likewise.
6974 (linux_nat_info_proc_cmd_status): Likewise.
6975 (linux_nat_info_proc_cmd_cwd): Likewise.
6976 (linux_nat_info_proc_cmd_cmdline): Likewise.
6977 (linux_nat_info_proc_cmd_exe): Likewise.
6978 (linux_nat_info_proc_cmd_all): Likewise.
6979 (linux_target_install_ops): Install linux_nat_info_proc.
6980 (_initialize_linux_nat): No longer install "info proc" command
6981 and subcommands.
6982
b9e7b9c3
UW
69832012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6984
6985 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6986 * config.in, configure: Regenerate.
6987
6988 * target.h (struct target_ops): Add to_fileio_readlink.
6989 (target_fileio_readlink): Add prototype.
6990 * target.c (target_fileio_readlink): New function.
6991
6992 * inf-child.c: Conditionally include <sys/param.h>.
6993 (inf_child_fileio_readlink): New function.
6994 (inf_child_target): Install it.
6995
6996 * remote.c (PACKET_vFile_readlink): New enum value.
6997 (remote_hostio_readlink): New function.
6998 (init_remote_ops): Install it.
6999 (_initialize_remote): Handle vFile:readlink packet type.
7000
7313baad
UW
70012012-01-20 Pedro Alves <palves@redhat.com>
7002 Ulrich Weigand <ulrich.weigand@linaro.org>
7003
7004 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
7005 * config.in, configure: Regenerate.
7006
7007 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
7008 to_fileio_pread, to_fileio_close, to_fileio_unlink.
7009 (target_fileio_open): Add prototype.
7010 (target_fileio_pwrite): Likewise.
7011 (target_fileio_pread): Likewise.
7012 (target_fileio_close): Likewise.
7013 (target_fileio_unlink): Likewise.
7014 (target_fileio_read_alloc): Likewise.
7015 (target_fileio_read_stralloc): Likewise.
7016
7017 * target.c: Include "gdb/fileio.h".
7018 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
7019 (default_fileio_target): New function.
7020 (target_fileio_open): Likewise.
7021 (target_fileio_pwrite): Likewise.
7022 (target_fileio_pread): Likewise.
7023 (target_fileio_close): Likewise.
7024 (target_fileio_unlink): Likewise.
7025 (target_fileio_close_cleanup): Likewise.
7026 (target_fileio_read_alloc_1): Likewise.
7027 (target_fileio_read_alloc): Likewise.
7028 (target_fileio_read_stralloc): Likewise.
7029
7030 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
7031 <fcntl.h>, and <unistd.h>.
7032 (inf_child_fileio_open_flags_to_host): New function.
7033 (inf_child_errno_to_fileio_error): Likewise.
7034 (inf_child_fileio_open): Likewise.
7035 (inf_child_fileio_pwrite): Likewise.
7036 (inf_child_fileio_pread): Likewise.
7037 (inf_child_fileio_close): Likewise.
7038 (inf_child_fileio_unlink): Likewise.
7039 (inf_child_target): Install to_fileio routines.
7040
7041 * remote.c (init_remote_ops): Install to_fileio routines.
7042
901f9912
UW
70432012-01-20 Pedro Alves <palves@redhat.com>
7044 Ulrich Weigand <ulrich.weigand@linaro.org>
7045
7046 * remote.c (remote_multi_process_p): Only check for multi-process
7047 protocol feature, do not check for extended protocol.
7048 (remote_supports_multi_process): Check for extended protocol here.
7049 (set_general_process): Likewise.
7050 (extended_remote_kill): Likewise.
7051 (remote_pid_to_str): Likewise.
7052 (remote_query_supported): Always query multiprocess mode.
7053
e714e1bf
UW
70542012-01-20 Pedro Alves <palves@redhat.com>
7055 Ulrich Weigand <ulrich.weigand@linaro.org>
7056
7057 * inferior.h (struct inferior): Add fake_pid_p.
7058 * inferior.c (exit_inferior_1): Clear fake_pid_p.
7059 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
7060 magic_null_ptid since the remote side doesn't provide a real PID.
7061
50897289
TT
70622012-01-19 Tom Tromey <tromey@redhat.com>
7063
7064 * NEWS: Combine the two Python sections.
7065
1afc2033
JK
70662012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7067
7068 * target.h (target_close): Update comment on the target's unpush state.
7069
305436e0
PA
70702012-01-19 Pedro Alves <palves@redhat.com>
7071
7072 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
7073 linux_nat_async directly instead of going through the target
7074 vector.
7075 * target.c (unpush_target): Close target after unpushing it, not
7076 before.
7077
49323895
GB
70782012-01-19 Gary Benson <gbenson@redhat.com>
7079
7080 * mdebugread.c (sort_blocks): Replace integer constants with ones
7081 derived from FIRST_LOCAL_BLOCK.
7082
1db33378
PP
70832012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
7084 Jan Kratochvil <jan.kratochvil@redhat.com>
7085
7086 PR gdb/9538
7087 * symfile.c (find_separate_debug_file): New function.
7088 (terminate_after_last_dir_separator): Likewise.
7089 (find_separate_debug_file_by_debuglink): Also try realpath.
7090 * configure.ac (AC_CHECK_FUNCS): Add lstat.
7091 * configure: Regenerate.
7092 * config.in: Regenerate.
7093
f83d8a90
DE
70942012-01-18 Doug Evans <dje@google.com>
7095
7096 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
7097 (main.o): Remove rule.
7098 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
7099 (--with-sysroot): Rewrite.
7100 * configure: Regenerate.
7101 * config.in: Regenerate.
7102
2dbca4d6
SDJ
71032012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
7104
7105 * parse.c (initialize_expout): New function.
7106 (reallocate_expout): Likewise.
7107 (parse_exp_in_context): Use `initialize_expout' and
7108 `reallocate_expout' when appropriate.
7109
0695b514
PA
71102012-01-18 Pedro Alves <palves@redhat.com>
7111
7112 * record.c (struct record_breakpoint, record_breakpoint_p)
7113 (record_breakpoints): New.
7114 (record_insert_breakpoint, record_remove_breakpoint): Manage
7115 record breakpoints list. Only remove breakpoints from the
7116 inferior if they had been inserted there in the first place.
7117
136e1c30
DE
71182012-01-17 Doug Evans <dje@google.com>
7119
7120 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
7121 if we know we don't have a file name to look for.
7122
c0bf857d
PA
71232012-01-17 Pedro Alves <palves@redhat.com>
7124
7125 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
7126 the frame's stop reason is UNWIND_UNAVAILABLE.
7127
b486de60
JK
71282012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7129
7130 Fix compilation error.
7131 * m2-exp.y (yyerror): Use ANSI C prototype.
7132
d04550a6
SDJ
71332012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7134
7135 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
7136 (growbuf_by_size): Likewise.
7137 (yyerror): Likewise.
7138 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
7139 (modblock): Remove variable (was #if 0'ed).
7140 (parse_number): Convert prototype from K&R to ANSI C.
7141 (yyerror): Likewise.
7142 * objc-exp.y (parse_number): Likewise.
7143 (yyerror): Likewise.
7144 (yylex): Remove #if 0'ed code.
7145 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
7146 (yyerror): Likewise.
7147
4aac40c8
TT
71482012-01-16 Tom Tromey <tromey@redhat.com>
7149
7150 * NEWS: Add item.
7151 * symtab.h (compare_filenames_for_search): Declare.
7152 * symtab.c (compare_filenames_for_search): New function.
7153 (iterate_over_some_symtabs): Use it.
7154 * symfile.h (struct quick_symbol_functions)
7155 <map_symtabs_matching_filename>: Change spec.
7156 * psymtab.c (partial_map_symtabs_matching_filename): Use
7157 compare_filenames_for_search. Update for new spec.
7158 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
7159 compare_filenames_for_search. Update for new spec.
7160 * breakpoint.c (clear_command): Use compare_filenames_for_search.
7161
cafec441
TT
71622012-01-16 Tom Tromey <tromey@redhat.com>
7163
7164 PR python/13281:
7165 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
7166 (struct main_type) <flag_flag_enum>: New field.
7167 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
7168 * NEWS: Add entries.
7169 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
7170 enums.
7171 * python/lib/gdb/printing.py (_EnumInstance): New class.
7172 (FlagEnumerationPrinter): Likewise.
7173
983af33b
SDJ
71742012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7175
7176 * breakpoint.c (create_sals_from_address_default): New function.
7177 (create_breakpoints_sal_default): Likewise.
7178 (decode_linespec_default): Likewise.
7179 (is_marker_spec): Removed.
7180 (strace_marker_p): New function.
7181 (init_breakpoint_sal): Using `strace_marker_p' instead of
7182 `is_marker_spec'.
7183 (create_breakpoint): Call method `create_sals_from_address' from
7184 breakpoint_ops, replacing code that created SALs conditionally
7185 on the type of the breakpoint. Call method `create_breakpoints_sal',
7186 replacing code that created breakpoints conditionally on the type
7187 wanted.
7188 (base_breakpoint_create_sals_from_address): New function.
7189 (base_breakpoint_create_breakpoints_sal): Likewise.
7190 (base_breakpoint_decode_linespec): Likewise.
7191 (base_breakpoint_ops): Add methods
7192 `base_breakpoint_create_sals_from_address',
7193 `base_breakpoint_create_breakpoints_sal' and
7194 `base_breakpoint_decode_linespec'.
7195 (bkpt_create_sals_from_address): New function.
7196 (bkpt_create_breakpoints_sal): Likewise.
7197 (bkpt_decode_linespec): Likewise.
7198 (tracepoint_create_sals_from_address): Likewise.
7199 (tracepoint_create_breakpoints_sal): Likewise.
7200 (tracepoint_decode_linespec): Likewise.
7201 (strace_marker_create_sals_from_address): Likewise.
7202 (strace_marker_create_breakpoints_sal): Likewise.
7203 (strace_marker_decode_linespec): Likewise.
7204 (strace_marker_breakpoint_ops): New variable.
7205 (addr_string_to_sals): Remove `marker_spec'. Call method
7206 `decode_linespec' from breakpoint_ops, replacing code that decoded
7207 an address string into a SAL. Use `strace_marker_p' instead of
7208 `marker_spec'.
7209 (strace_command): Decide whether we are dealing with a static
7210 tracepoint with marker or not. Use the appropriate breakpoint_ops.
7211 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
7212 * breakpoint.h (linespec_result, linespec_sals): New forward
7213 declarations.
7214 (breakpoint_ops) <create_sals_from_address>,
7215 <create_breakpoints_sal>, <decode_linespec>: New methods.
7216
4795f398
DE
72172012-01-14 Doug Evans <dje@google.com>
7218
7219 * NEWS: Update text for "maint set python print-stack".
7220 It is deprecated in gdb 7.4 and deleted in 7.5.
7221
ee5106fe
EZ
72222012-01-13 Eli Zaretskii <eliz@gnu.org>
7223
7224 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
7225 including curses.h.
7226
b161e06f
JK
72272012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7228
7229 * configure: Regenerate.
7230 * config.in: Regenerate.
7231
85254831
KS
72322012-01-12 Keith Seitz <keiths@redhat.com>
7233
7234 PR mi/10586
7235 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
7236 (ANONYMOUS_UNION_NAME): Define.
7237 (is_path_expr_parent): New function.
7238 (get_path_expr_parent): New function.
7239 (is_anonymous_child): New function.
7240 (create_child_with_value): If the child is anonymous and without
7241 a name, assign an object name to it.
7242 (c_describe_child): Use get_path_expr_parent to determine
7243 the parent expression.
7244 If there field represents an anonymous struct or union and
7245 has no name, set an appropriate display name and expression.
7246 (cplus_describe_child): Likewise.
7247
620fa63a
PA
72482012-01-12 Pedro Alves <palves@redhat.com>
7249
7250 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
7251 available when %ebp is found to be zero (outermost).
7252
2efa2c79
AT
72532012-01-11 Andreas Tobler <andreast@fgznet.ch>
7254
7255 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
7256 an internal gdb_static_assert.
7257 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
7258
88e7d25d
TT
72592012-01-11 Tom Tromey <tromey@redhat.com>
7260
7261 PR gdb/9598:
7262 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
7263 catch" and "catch throw".
7264
72384ba3
PH
72652012-01-11 Paul Hilfinger <hilfingr@adacore.com>
7266
7267 * blockframe.c (block_innermost_frame): Start search from selected
7268 frame, if present, or otherwise the current frame.
7269
7270 * c-exp.y (variable): Update innermost_block for
7271 'block COLONCOLON NAME' clause.
7272 * m2-exp.y (variable): Ditto.
7273 * objc-exp.y (variable): Ditto.
7274
065a711f
TT
72752012-01-10 Tom Tromey <tromey@redhat.com>
7276
7277 PR python/13199:
7278 * python/python.c (finish_python_initialization): Set sys.argv.
7279
f3f5162e
DE
72802012-01-10 Doug Evans <dje@google.com>
7281
7282 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
7283 "want_line_info". All callers updated.
7284 (dwarf_decode_lines_1): New function.
7285 (handle_DW_AT_stmt_list): Add function comment.
7286 New arg "want_line_info". All callers updated.
7287 (read_file_scope,read_type_unit_scope): Move comment from
7288 handle_DW_AT_stmt_list to here.
7289
9934703b
JK
72902012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7291
7292 Fix regression after libiberty/ update for GCC PR 6057 and others.
7293 * c-exp.y (operator) <OPERATOR DELETE>
7294 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7295 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
7296 (make_builtin_type, make_name): New variable i, add gdb_assert.
7297 (operator) <OPERATOR NEW>: Update ARGS to 3.
7298 (operator) <OPERATOR DELETE>: Add trailing space.
7299 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
7300 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7301 * cp-support.c (cp_canonicalize_string): Check NULL from
7302 cp_comp_to_string, call warning and return.
7303
06b9f45f
JK
73042012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7305
7306 Fix duplicate .o files after omitting libbfd.a.
7307 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
7308 (SFILES): Add corelow.c.
7309 (COMMON_OBS): Add corelow.o.
7310 (ALLDEPFILES): Remove corelow.c.
7311 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
7312 * config/alpha/alpha-osf3.mh: Likewise.
7313 * config/alpha/fbsd.mh: Likewise.
7314 * config/arm/nbsdaout.mh: Likewise.
7315 * config/arm/nbsdelf.mh: Likewise.
7316 * config/i386/i386gnu.mh: Likewise.
7317 * config/ia64/hpux.mh: Likewise.
7318 * config/ia64/linux.mh: Likewise.
7319 * config/m32r/linux.mh: Likewise.
7320 * config/m68k/linux.mh: Likewise.
7321 * config/mips/irix5.mh: Likewise.
7322 * config/mips/irix6.mh: Likewise.
7323 * config/pa/hpux.mh: Likewise.
7324 * config/pa/linux.mh: Likewise.
7325 * config/powerpc/aix.mh: Likewise.
7326 * config/sparc/linux.mh: Likewise.
7327 * config/sparc/linux64.mh: Likewise.
7328 * config/sparc/sol2.mh: Likewise.
7329 * config/vax/vax.mh: Likewise.
7330 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
7331 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
7332 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
7333 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
7334 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
7335 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
7336 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
7337 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
7338 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
7339 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
7340 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
7341 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
7342 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7343 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
7344 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
7345 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7346 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
7347 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
7348 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
7349 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
7350 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
7351 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
7352 corelow.o from gdb_target_obs.
7353 * corefile.c (core_target): Update the comment on NULL value.
7354 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
7355 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
7356 MATCHES. Drop YUMMY set on NULL.
7357 (core_close): Do not call exit_inferior_silent on zero PID. Do not
7358 reclaim CORE_DATA if it is already NULL.
7359
34365054
DE
73602012-01-09 Doug Evans <dje@google.com>
7361
7362 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
7363 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
7364
696166a3
KS
73652012-01-09 Keith Seitz <keiths@redhat.com>
7366
7367 * breakpoint.c (wrapper.h): Don't include.
7368
8e7b59a5
KS
73692012-01-09 Keith Seitz <keiths@redhat.com>
7370
7371 * Makefile.in (SFILES): Remove wrapper.c.
7372 (HFILES_NO_SRCDIR): Remove wrapper.h.
7373 (COMMON_OBS): Remove wrapper.o.
7374 * cli/cli-interp.c: Don't inlude wrapper.h.
7375 * corelow.c: Likewise.
7376 (core_open): Replace gdb_target_find_new_threads with
7377 TRY_CATCH around target_find_new_threads.
7378 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
7379 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
7380 * varobj.c (varobj_create): Likewise for parse_exp_1 and
7381 evaluate_expression.
7382 (varobj_set_value): Likewise for evaluate_expression and
7383 value_assign.
7384 (install_new_variable): Likewise for value_fetch_lazy.
7385 (adjust_value_for_child_access): Likewise for value_ind.
7386 (c_describe_child): Likewise for value_subscript and
7387 value_ind.
7388 (c_value_of_root): Likewise for evaluate_expression.
7389 * wrapper.c: Remove.
7390 * wrapper.h: Remove.
7391
1a4eeb98
DE
73922012-01-09 Doug Evans <dje@google.com>
7393
9ff913ba
DE
7394 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
7395 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
7396 "abfd" args with "section". All callers updated.
7397 Error checking code moved ...
7398 (error_check_comp_unit_head): ... here. New function.
7399 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
7400 Delete arg "abfd". New arg "type_offset". All callers updated.
7401 (create_debug_types_hash_table): Simplify by using
7402 read_and_check_type_unit_head.
7403
1a4eeb98
DE
7404 * parser-defs.h (namecopy): Delete.
7405 * parse.c (namecopy, namecopy_size): Move into copy_name.
7406
2e6af8c0
JK
74072012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7408
7409 Partially fix duplicate .o files after omitting libbfd.a.
7410 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
7411 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7412 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
7413 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7414 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
7415 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
7416 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7417
9f2f828a
PA
74182012-01-09 Pedro Alves <palves@redhat.com>
7419
7420 * MAINTAINERS: Update my email address.
7421
4d72c0bc
DE
74222012-01-08 Doug Evans <dje@google.com>
7423
d467dd73
DE
7424 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
7425 n_type_units. Rename type_comp_units to all_type_units.
7426 All uses updated.
7427 (add_signatured_type_cu_to_table): Renamed from
7428 add_signatured_type_cu_to_list. All callers updated.
7429
4d72c0bc
DE
7430 * gdbtypes.h (struct cplus_struct_type): Delete member
7431 nfn_fields_total. All uses removed.
7432
21b2bd31
DE
74332012-01-06 Doug Evans <dje@google.com>
7434
7435 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7436 to top of file.
7437 (dwarf2_find_comp_unit): Delete.
7438 (process_psymtab_comp_unit): Make result "void".
7439 Delete args buffer, info_ptr, buffer_size, and replace with
7440 "section". All callers updated.
7441 (dwarf2_build_psymtabs_hard): Simplify.
7442
bfd189b1
SDJ
74432012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
7444 Thiago Jung Bauermann <bauerman@br.ibm.com>
7445
7446 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7447 before `struct gdb_exception'.
7448 * breakpoint.c (update_global_location_list_nothrow)
7449 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7450 * cp-abi.c (value_rtti_type): Likewise.
7451 * cp-support.c (cp_validate_operator): Likewise.
7452 * infrun.c (insert_exception_resume_breakpoint)
7453 (check_exception_resume, keep_going): Likewise.
7454 * mi-interp.c (mi_breakpoint_created)
7455 (mi_breakpoint_modified): Likewise.
7456 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7457 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7458 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7459
6b07635f
DE
74602012-01-05 Doug Evans <dje@google.com>
7461
0b30b85c
DE
7462 * dwarf2read.c (statement_prologue): Delete, unused.
7463
98714339
DE
7464 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7465 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7466
6b07635f
DE
7467 * dwarf2read.c (comp_unit_header): Delete, unused.
7468
761f4555
UW
74692012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
7470
7471 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7472 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7473
2ca0b532
PA
74742012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
7475
7476 * infrun.c (normal_stop): Don't skip calling the normal_stop
7477 observers if the thread was doing a multi-step, but stopped for
7478 some reason other than stepping.
7479
50aeff07
PA
74802012-01-05 Pedro Alves <alves.ped@gmail.com>
7481
7482 * cli/cli-decode.h: Add comments.
7483 (CMD_LIST_AMBIGUOUS): Moved to command.h
7484 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7485 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7486 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7487 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7488 (add_com, add_com_alias, add_info, add_info_alias)
7489 (complete_on_cmdlist, complete_on_enum, help_list): Remove
7490 declarations.
7491 * command.h: Add and adjust comments.
7492 (CMD_LIST_AMBIGUOUS): Moved here.
7493 (help_cmd, help_cmd_list): Delete declarations.
7494
5953832c
DE
74952012-01-04 Doug Evans <dje@google.com>
7496
e5fe5e75
DE
7497 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7498 All callers updated.
7499 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7500 Replace all arguments with "per_cu". All callers updated.
7501
28dee7f5
DE
7502 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7503
23745b47
DE
7504 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7505 New arg "per_cu". All callers updated.
7506
5953832c
DE
7507 Delete #if 0'd out code.
7508 * language.c (binop_result_type): Delete.
7509 (simple_type, ordered_type, same_type, integral_type): Delete.
7510 (numeric_type, character_type, string_type, boolean_type): Delete.
7511 (float_type, structured_type): Delete.
7512 * language.h: Update.
7513
0f5b7562
TT
75142012-01-04 Tom Tromey <tromey@redhat.com>
7515
7516 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7517
78218f56
JB
75182012-01-04 Joel Brobecker <brobecker@adacore.com>
7519
7520 * corefile.c (close_exec_file): Delete.
7521 (reopen_exec_file): Remove commented out code that seems related
7522 to close_exec_file, which is being deleted here.
7523 * inferior.h (close_exec_file): Delete.
7524 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7525
0fcd72ba
JB
75262012-01-04 Joel Brobecker <brobecker@adacore.com>
7527
7528 * ada-lang.c: #include "cli/cli-utils.h".
7529 (get_selections): Use skip_spaces.
7530 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7531 (catch_ada_exception_command_split): Use skip_spaces.
7532 (ada_decode_assert_location): Likewise.
7533
1dabb4c4
JB
75342012-01-04 Joel Brobecker <brobecker@adacore.com>
7535
7536 * linespec.c (decode_line_internal): Check for C++ or Java
7537 compound constructs only if the current language is C, C++
7538 or Java.
7539
5931a2fa
JK
75402012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7541
7542 Revert:
7543 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7544 Joel Brobecker <brobecker@adacore.com>
7545 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7546 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7547 3 times.
7548 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7549 fall through into AT_ENTRY_POINT.
7550 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7551 DUMMY_ADDR with it.
7552 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7553 PPC_INSN_SIZE skip to 3 times.
7554
1a2da5ee
JB
75552012-01-04 Joel Brobecker <brobecker@adacore.com>
7556
7557 * linespec.c (add_minsym): Preserve function descriptors.
7558
8645ff69
UW
75592012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7560
7561 * breakpoint.c (all_locations_are_pending): Consider locations
7562 in program spaces executing during startup pending as well.
7563
0b302171
JB
75642012-01-04 Joel Brobecker <brobecker@adacore.com>
7565
7566 Copyright year update in most files of the GDB Project.
7567
8ba098ad
JB
75682012-01-04 Joel Brobecker <brobecker@adacore.com>
7569
7570 * copyright.sh: Delete.
7571 * copyright.py: Rewrite.
7572
09c01c30
JB
75732012-01-04 Joel Brobecker <brobecker@adacore.com>
7574
7575 * gnulib/extra/update-copyright: New file, imported from gnulib.
7576
3c36c0af
JB
75772012-01-04 Joel Brobecker <brobecker@adacore.com>
7578
7579 * README (Copyright and License Notices): New section.
7580
888fe1e1
TT
75812012-01-03 Tom Tromey <tromey@redhat.com>
7582
7583 PR python/12533:
7584 * python/py-value.c (valpy_dereference, valpy_get_address
7585 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7586 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7587 (valpy_absolute, valpy_richcompare): Free intermediate values.
7588
6e681866
JB
75892011-01-03 Joel Brobecker <brobecker@adacore.com>
7590
7591 * ada-lang.c: Reformat the copyright notice.
7592
0cd09acb
JK
75932012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7594
7595 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7596 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7597 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7598 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7599 Revert this part of:
7600 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7601 Build gdb directly from *.o files not using libgdb.a.
7602 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7603
12c3e59c
JB
76042012-01-02 Joel Brobecker <brobecker@adacore.com>
7605
7606 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7607 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7608 Reformat the copyright header.
7609
11bf1490
JK
76102012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7611
7612 Revert this part of:
7613 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7614 Remove the gdbtui binary.
7615 * gdb.c (main): Remove args.interpreter_p initialization.
7616 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7617 * main.h (struct captured_main_args): Remove interpreter_p.
7618
1fef196f
JB
76192012-01-02 Joel Brobecker <brobecker@adacore.com>
7620
7621 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7622
67827812
JB
76232012-01-02 Joel Brobecker <brobecker@adacore.com>
7624
7625 * top.c (print_gdb_version): Update copyright year.
7626
a4d0b831
YQ
76272012-01-02 Yao Qi <yao@codesourcery.com>
7628
7629 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7630
b5914469
JK
76312012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7632 Joel Brobecker <brobecker@adacore.com>
7633
7634 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7635 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7636 3 times.
7637 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7638 fall through into AT_ENTRY_POINT.
7639 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7640 DUMMY_ADDR with it.
7641 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7642 PPC_INSN_SIZE skip to 3 times.
7643
8da828f7
JK
76442012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7645
7646 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7647 the return value.
7648 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7649
8574e74b
JK
76502012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7651
7652 Build gdb directly from *.o files not using libgdb.a.
7653 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7654 (COMMON_OBS): Remove solib-target.o.
7655 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7656 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7657 (LIBGDB_OBS, libgdb.a): Move it above.
7658 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7659 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7660 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7661 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7662 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7663 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7664 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7665 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7666 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7667 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7668 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7669 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7670 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7671 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7672 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7673 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7674 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7675 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7676 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7677 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7678 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7679 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7680 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7681 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7682 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7683 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7684 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7685
217bff3e
JK
76862012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7687
7688 Remove the gdbtui binary.
7689 * .gitignore (/gdbtui): Remove.
7690 * Makefile.in (TUI): Remove.
7691 (SUBDIR_TUI_OBS): Remove tui-main.o.
7692 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7693 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7694 (tui-main.o): Remove.
7695 (all_object_files): Remove tui-main.o.
7696 * NEWS: New note for the gdbtui removal.
7697 * configure: Rebuilt.
7698 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7699 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7700 CONFIG_UNINSTALL respectively.
7701 * gdb.c (main): Remove args.interpreter_p initialization.
7702 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7703 * main.h (struct captured_main_args): Remove interpreter_p.
7704 * tui/tui-main.c: Remove.
7705
9cdd5dbd
DE
77062012-01-01 Doug Evans <dje@google.com>
7707
bb5ed363
DE
7708 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7709 (dwarf2_physname, read_import_statement): Ditto.
7710 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7711 (process_structure_scope read_subroutine_type): Ditto.
7712 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7713 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7714 (dwarf2_fetch_die_location_block): Ditto.
7715 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7716
a0f42c21
DE
7717 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7718 All callers updated.
7719 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7720 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7721 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7722
2dc860c0
DE
7723 * dwarf2read.c (load_cu): Move assert to more useful location.
7724
68dc6402
DE
7725 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7726 All callers updated.
7727
9cdd5dbd
DE
7728 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7729 (dwarf2_elf_names): Minor reformat.
7730 (dwarf2_per_cu_data): Tweak comment.
7731 (dwarf2_read_section): Fix comment.
7732 (create_all_comp_units): Fix comment.
7733 (load_full_comp_unit): Fix comment.
7734 (process_full_comp_unit): Fix comment.
7735 (read_signatured_type): Fix comment.
7736
0c10e53e 7737For older changes see ChangeLog-2011.
c906108c
SS
7738\f
7739Local Variables:
7740mode: change-log
7741left-margin: 8
7742fill-column: 74
7743version-control: never
57da7796 7744coding: utf-8
c906108c 7745End:
This page took 1.968519 seconds and 4 git commands to generate.