1 2012-06-28 Doug Evans <dje@google.com>
3 * symtab.c (lookup_symbol_aux_objfile): Use
4 ALL_OBJFILE_PRIMARY_SYMTABS.
6 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
8 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10 * common/buffer.c: Include inttypes.h and stdint.h.
11 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
13 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14 Pedro Alves <palves@redhat.com>
16 * gdbthread.h (ALL_THREADS): New macro.
17 (thread_list): Declare.
18 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
19 going, but instead fall through to the stepping handling.
20 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
21 the passed in signal. Adjust debug output.
22 (resume_callback): Rename to ...
23 (linux_nat_resume_callback): ... this. Pass the thread's last
24 stop signal, if in "pass" state.
25 (linux_nat_resume): Adjust to rename.
26 (stop_wait_callback): New assertion. Don't respawn signals;
27 instead let the LWP remain with SIGNALLED set.
28 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
29 * remote.c (append_pending_thread_resumptions): New.
30 (remote_vcont_resume): Call it.
31 * target.h (target_resume): Extend comment.
33 2012-06-28 Iain Sandoe <iain@codesourcery.com>
35 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
37 2012-06-27 Doug Evans <dje@google.com>
39 * dwarf2read.c (dwarf2_cu): Add ranges_base.
40 Delete have_addr_base, unused. All uses updated.
41 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
42 (dwarf2_get_pc_bounds): Add ranges_base.
43 (dwarf2_record_block_ranges): Ditto.
45 2012-06-27 Tom Tromey <tromey@redhat.com>
48 * varobj.c (varobj_create): Update.
49 (varobj_set_value): Update.
50 * tracepoint.c (validate_actionline): Update.
51 (encode_actions_1): Update.
52 * parse.c (parse_exp_1): Add 'pc' argument.
53 (parse_exp_in_context): Add 'pc' argument. Change how
54 expression_context_pc is set.
55 (parse_expression): Update.
56 (parse_field_expression): Update.
57 * expression.h (parse_exp_1): Update.
58 * eval.c (parse_to_comma_and_eval): Update.
59 * breakpoint.c (set_breakpoint_condition): Update.
60 (update_watchpoint): Update.
61 (init_breakpoint_sal): Update
62 (find_condition_and_thread): Update.
63 (watch_command_1): Update.
64 (update_breakpoint_locations): Update.
65 * ada-lang.c (ada_read_renaming_var_value): Update.
66 (create_excep_cond_exprs): Update.
68 2012-06-27 Doug Evans <dje@google.com>
70 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
73 2012-06-26 Doug Evans <dje@google.com>
75 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
77 (error_check_comp_unit_head): New arg abbrev_section. All callers
79 (read_and_check_comp_unit_head): Ditto.
80 (read_and_check_type_unit_head): Ditto.
82 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
84 New attribute 'last' for gdb.Symtab_and_line.
85 * NEWS (Python Scripting): Add entry about the new attribute.
86 * python/py-symtab.c (salpy_get_last): New function which
87 implements the get method for the 'last' attribute of
89 (sal_object_getset): Add entry for the 'last' attribute.
91 2012-06-26 Doug Evans <dje@google.com>
93 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
94 (dwo_sections): Add macinfo, macro.
95 (dwarf2_locate_dwo_sections): Watch for macro sections.
96 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
97 All callers updated. Handle DWO files.
99 * NEWS: Mention new options "set debug dwarf2-read" and
100 "set debug symtab-create".
101 * dwarf2read.c (dwarf2_read_debug): New static global.
102 (dwarf2_build_psymtabs_hard): Add debugging printfs.
103 (process_queue): Ditto.
104 (process_full_comp_unit): Ditto.
105 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
106 * elfread.c (elf_symfile_read): Add debugging printf.
107 * minsyms.c (install_minimal_symbols): Ditto.
108 * psymtab.c (allocate_psymtab): Ditto.
109 * symfile.c (allocate_symtab): Ditto.
110 * symtab.c (symtab_create_debug): New global.
111 (_initialize_symtab): Add new option "set debug symtab-create".
112 * symtab.h (symtab_create_debug): Declare.
114 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
115 (lookup_dwo_type_unit): Ditto.
117 2012-06-26 Roland McGrath <roland@hack.frob.com>
118 H.J. Lu <hongjiu.lu@intel.com>
120 * amd64-linux-nat.c: Include <sys/user.h>.
121 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
122 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
123 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
125 * configure.ac: Check if the fs_base and gs_base members of
126 `struct user_regs_struct' exist.
127 * config.in: Regenerated.
128 * configure: Likewise.
130 2012-06-25 Michael Eager <eager@eagercon.com>
133 * python/python.c (gdbpy_write): Check for interrupted output.
135 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
137 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
138 register as a stack alignment in ARM mode.
140 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
142 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
143 * gnulib/config.in: Regenerate.
144 * gnulib/configure: Likewise.
145 * gnulib/import/m4/extensions.m4: Update it.
146 * gnulib/import/m4/gnulib-common.m4: Likewise.
147 * gnulib/import/m4/memmem.m4: Likewise.
148 * gnulib/import/m4/mmap-anon.m4: Likewise.
149 * gnulib/import/m4/multiarch.m4: Likewise.
150 * gnulib/import/stdint.in.h: Likewise.
152 2012-06-24 Yao Qi <yao@codesourcery.com>
154 * corefile.c (write_memory_with_notification): New.
155 * gdbcore.h: Declare write_memory_with_notification.
156 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
157 'observer_notify_memory_changed' with 'write_memory_with_notification'.
158 * valops.c (value_assign): Likewise.
159 * python/py-inferior.c (infpy_write_memory): Call
160 'write_memory_with_notification'.
162 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
164 * cc-with-index.sh: Use also -ex "set auto-load no".
166 2012-06-23 Doug Evans <dje@google.com>
169 * NEWS: Document additions to .gdb_index.
170 * dwarf2read.c: #include "gdb/gdb-index.h".
171 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
172 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
173 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
174 (dwarf2_read_index): Recognize version 7.
175 (dw2_do_expand_symtabs_matching): New args want_specific_block,
176 block_kind, domain): All callers updated.
177 (dw2_find_symbol_file): Handle new index CU values.
178 (dw2_expand_symtabs_matching): Match symbol kind if requested.
179 (add_index_entry): New args is_static, kind. All callers updated.
180 (offset_type_compare, uniquify_cu_indices): New functions
181 (symbol_kind): New function.
182 (write_psymtabs_to_index): Remove duplicate CU values.
183 (write_psymtabs_to_index): Write .gdb_index version 7.
185 2012-06-22 Joel Brobecker <brobecker@adacore.com>
187 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
188 * configure: Regenerate.
190 2012-06-20 Yao Qi <yao@codesourcery.com>
192 * python/py-inferior.c: Update comments of infpy_read_memory
193 and infpy_write_memory.
195 2012-06-19 Tom Tromey <tromey@redhat.com>
198 * parser-defs.h (insert_type, insert_type_address_space): Declare.
199 (push_type_address_space): Remove.
200 * parse.c (insert_into_type_stack): New function.
201 (insert_type): Likewise.
202 (insert_type_address_space): Rename from push_type_address_space.
203 Insert tp_space_identifier.
204 * c-exp.y (ptr_operator): New production.
205 (abs_decl): Use ptr_operator.
206 (space_identifier): Call insert_type_address_space.
207 (ptype): Don't use const_or_volatile_or_space_identifier.
208 (const_or_volatile_noopt): Call insert_type.
209 (conversion_type_id, conversion_declarator): New productions.
210 (operator): Use conversion_type_id.
212 2012-06-18 Doug Evans <dje@google.com>
214 * symtab.h (minimal_symbol): New member created_by_gdb.
215 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
217 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
218 (search_symbols): Call it instead of lookup_symbol.
219 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
221 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
222 Adjust address for DW_OP_GNU_addr_index.
223 * dwarf2expr.h (dwarf_expr_context): Update comment.
224 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
225 all callers updated. Handle TLS vars described with
226 DW_OP_GNU_const_index.
227 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
228 and DW_OP_GNU_const_index.
229 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
231 * block.c (find_block_in_blockvector): Make explicit the fact that we
234 2012-06-18 Tom Tromey <tromey@redhat.com>
236 * c-exp.y (operator): Remove trailing space after "delete" and
239 2012-06-18 Mark Kettenis <kettenis@gnu.org>
240 Jan Kratochvil <jan.kratochvil@redhat.com>
242 Switch i386 and derived targets to ON_STACK.
243 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
244 (amd64_dicos_init_abi): Remove its installment.
245 * dicos-tdep.c (dicos_init_abi): Remove the
246 set_gdbarch_call_dummy_location call. Update the comment here.
247 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
248 (i386_dicos_init_abi): Remove its installment.
249 * i386-tdep.c (i386_push_dummy_code): New function.
250 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
251 i386_push_dummy_code.
253 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
255 Remove stale dummy frames.
256 * breakpoint.c: Include dummy-frame.h.
257 (longjmp_breakpoint_ops): New variable.
258 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
259 bp_longjmp_call_dummy.
260 (bpstat_what, bptype_string, print_one_breakpoint_location)
261 (init_bp_location): Support bp_longjmp_call_dummy.
262 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
263 (set_longjmp_breakpoint_for_call_dummy)
264 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
266 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
267 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
268 FIXME comment and extend the other comment for bp_call_dummy.
269 (set_longjmp_breakpoint_for_call_dummy)
270 (check_longjmp_breakpoint_for_call_dummy): New declarations.
271 * dummy-frame.c: Include gdbthread.h.
272 (pop_dummy_frame_bpt): New function.
273 (pop_dummy_frame): Call pop_dummy_frame_bpt.
274 (dummy_frame_discard): New function.
275 (cleanup_dummy_frames): Update the comment about longjmps.
276 * dummy-frame.h (dummy_frame_discard): New declaration.
277 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
278 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
279 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
280 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
281 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
282 keep_going if IS_LONGJMP and there is no other reason to stop.
284 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
286 * remote-sim.c (sim_command_completer): Initialize
289 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
291 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
292 * dwarf2loc.c (call_site_parameter_matches): Support
293 CALL_SITE_PARAMETER_PARAM_OFFSET.
294 (needs_dwarf_reg_entry_value): Push stub value.
295 * dwarf2read.c (read_call_site_scope): New variable origin. Support
296 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
297 * gdbtypes.h (enum call_site_parameter_kind): New item
298 CALL_SITE_PARAMETER_PARAM_OFFSET.
299 (struct call_site.parameter.u): New field param_offset.
301 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
303 Code cleanup: Generalize call_site.parameter key.
304 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
305 variable dwarf_reg. New variable kind_u. Update parameters to
306 push_dwarf_reg_entry_value.
307 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
308 * dwarf2expr.h (enum call_site_parameter_kind)
309 (union call_site_parameter_u): Forward declarations.
310 (struct dwarf_expr_context_funcs): Update parameters and their
311 description for push_dwarf_reg_entry_value.
312 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
313 * dwarf2loc.c (call_site_parameter_matches): New function.
314 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
315 description. Use call_site_parameter_matches.
316 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
317 Update parameters and their description.
318 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
319 New variable kind_u. Adjust the caller for updated parameters.
320 (needs_dwarf_reg_entry_value): Update parameters.
321 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
322 instead of attr. Update for the changed fields of struct
324 * gdbtypes.h: Include dwarf2expr.h.
325 (enum call_site_parameter_kind): New.
326 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
327 fb_offset into new union u.
329 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
331 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
332 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
335 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
337 * amd64-linux-nat.c (compat_x32_clock_t): New.
338 (compat_x32_siginfo_t): Likewise.
339 (compat_x32_siginfo_from_siginfo): Likewise.
340 (siginfo_from_compat_x32_siginfo): Likewise.
341 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
342 and siginfo_from_compat_x32_siginfo for x32.
344 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
346 * tracepoint.c (tfile_xfer_partial): Add a lseek.
348 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
350 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
351 instead of gdbarch_ptr_bit.
352 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
353 (amd64_supply_native_gregset): Likewise.
354 (amd64_collect_native_gregset): Likewise.
355 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
356 (amd64_supply_xsave): Likewise.
357 (amd64_collect_fxsave): Likewise.
358 (amd64_collect_xsave): Likewise.
360 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
362 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
363 (amd64_linux_read_description): Check DS segment register for
366 2012-06-15 Tom Tromey <tromey@redhat.com>
368 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
369 init_cutu_and_read_dies.
371 2012-06-15 Iain Sandoe <iain@codesourcery.com>
373 * MAINTAINERS (Write After Approval): Add myself to the list.
375 2012-06-15 Tom Tromey <tromey@redhat.com>
377 * valops.c (value_find_oload_method_list): Now static.
378 * value.h (value_find_oload_method_list): Don't declare.
380 2012-06-15 Tom Tromey <tromey@redhat.com>
382 * valops.c (find_overload_match): Use value_ind.
384 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
386 * infrun.c (handle_inferior_event): Correct indentation.
388 2012-06-14 Doug Evans <dje@google.com>
390 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
391 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
393 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
394 updated. Handle DEBUG_LOC_START_LENGTH.
395 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
396 (loclist_describe_location): Ditto.
398 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
401 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
402 after hiding inline functions.
404 2012-06-13 Joel Brobecker <brobecker@adacore.com>
406 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
407 _initialize_inf_ttrace.
409 2012-06-13 Joel Brobecker <brobecker@adacore.com>
411 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
412 _initialize_hppa_hpux_nat.
414 2012-06-13 Joel Brobecker <brobecker@adacore.com>
416 * remote-sim.c (sim_command_completer): Change type of return
417 value to "VEC (char_ptr) *". Adjust implementation accordingly.
419 2012-06-13 Mark Kettenis <kettenis@gnu.org>
420 Jan Kratochvil <jan.kratochvil@redhat.com>
423 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
424 stack on a 16-byte boundary.
426 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
428 * jit.c (finalize_symtab): Set function's return type to 'void' by
431 2012-06-13 Mark Kettenis <kettenis@gnu.org>
432 H.J. Lu <hongjiu.lu@intel.com>
434 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
435 Move bits common to both the classic LP64 and the new x32 ILP32
437 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
438 (amd64_x32_linux_init_abi): New function.
439 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
442 * i386-tdep.h (i386_pseudo_register_name): New prototype.
443 * i386-tdep.c (i386_pseudo_register_name): Make public.
444 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
445 * amd64-tdep.c (amd64_dword_names): Add "eip".
446 (amd64_x32_pseudo_register_type): New function
447 (amd64_x32_init_abi): New function.
449 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
452 * inferior.h (struct inferior_suspend_state): Comment out.
453 (struct inferior): Comment out the field suspend.
454 * infrun.c (struct infcall_suspend_state): Comment out the field
456 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
459 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
461 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
462 * c-exp.y (classify_inner_name): Remove caller assumptions in the
463 function comment. Return ERROR for unresolved cases. Implement
464 returning proper NAME.
465 (yylex): Accept also NAME from classify_inner_name.
466 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
467 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
469 * cp-support.h (cp_lookup_nested_type): Update its declaration.
471 2012-06-13 Tom Tromey <tromey@redhat.com>
473 * breakpoint.c (condition_completer): New function.
474 (_initialize_breakpoint): Use it.
475 * value.c (complete_internalvar): New function.
476 * value.h (complete_internalvar): Declare.
478 2012-06-13 Tom Tromey <tromey@redhat.com>
480 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
481 * breakpoint.c (catch_syscall_completer): Return a VEC.
482 * cli/cli-cmds.c (complete_command): Update.
483 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
484 (complete_on_enum): Likewise.
485 * command.h: Include gdb_vecs.h.
486 (completer_ftype): Change return type.
487 (complete_on_cmdlist, complete_on_enum): Likewise.
488 * completer.c (noop_completer, filename_completer)
489 (location_completer): Return a VEC.
490 (add_struct_fields): Remove 'nextp' argument. Change 'output'
492 (expression_completer, complete_line_internal, complete_line)
493 (command_completer): Return a VEC.
494 (gdb_completion_word_break_characters, line_completion_function):
496 * completer.h: Include gdb_vecs.h.
497 (complete_line, noop_completer, filename_completer)
498 (expression_completer, location_completer, command_completer):
500 * f-lang.c (f_word_break_characters): Return a VEC.
501 * interps.c (interpreter_completer): Return a VEC.
502 * language.h (struct language_defn)
503 <la_make_symbol_completion_list>: Return a VEC.
504 * python/py-cmd.c (cmdpy_completer): Return a VEC.
505 * symtab.c (free_completion_list): Take a VEC.
506 (return_val_size, return_val_index): Remove.
507 (return_val): Now a VEC.
508 (completion_list_add_name): Update.
509 (default_make_symbol_completion_list_break_on)
510 (default_make_symbol_completion_list, make_symbol_completion_list)
511 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
513 (add_filename_to_list): Update.
514 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
516 (maybe_add_partial_symtab_filename): Update.
517 (make_source_files_completion_list): Return a VEC.
518 * symtab.h (default_make_symbol_completion_list_break_on)
519 (default_make_symbol_completion_list, make_symbol_completion_list)
520 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
521 (make_source_files_completion_list): Update.
523 2012-06-13 Tom Tromey <tromey@redhat.com>
525 * breakpoint.c (add_catch_command): Use completer_ftype.
526 * breakpoint.h: Include command.h.
527 (add_catch_command): Use completer_ftype.
528 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
529 * cli/cli-decode.h (struct cmd_list_element) <completer>:
531 * command.h (completer_ftype): New typedef.
532 (set_cmd_completer): Use it.
533 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
536 2012-06-13 Pedro Alves <palves@redhat.com>
538 Partial revert of previous change.
540 * serial.c (scb_base): New global.
541 (serial_for_fd): New.
542 (serial_open, serial_fdopen_ops): Link new serial in open serials
544 (do_serial_close): Unlink serial from the open serials chain.
546 2012-06-12 Pedro Alves <palves@redhat.com>
548 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
550 (prepare_for_detach): No longer context switch here in non-stop
552 (fetch_inferior_event): Ditto.
553 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
554 to the event thread before removing breakpoints. Switch to the
555 event thread before inserting breakpoints and resuming.
556 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
557 event thread before resuming.
558 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
559 Switch to the event thread before removing breakpoints.
561 2012-06-12 Eli Zaretskii <eliz@gnu.org>
563 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
564 special characters correctly for the Windows shells. See
565 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
567 [!__MINGW32__]: Remove extra double quote character from special
570 2012-06-11 Stan Shebs <stan@codesourcery.com>
572 * ui-out.h: Remove #if 0 declarations.
573 * ui-out.c: Remove #if 0 functions.
575 2012-06-11 Pedro Alves <palves@redhat.com>
577 * ser-base.c (run_async_handler_and_reschedule): New.
578 (fd_event, push_event): Use it.
579 * serial.c (serial_open, serial_fdopen_ops): Set the initial
580 reference count to 1.
581 (do_serial_close): Set the bufp field to NULL. Use serial_unref
583 (serial_is_open, serial_ref, serial_unref): New.
584 * serial.h (serial_open): Adjust comment.
585 (serial_is_open): Declare.
586 (serial_close): Adjust comment.
587 (serial_ref, serial_unref) Declare.
588 (struct serial): New field 'refcnt'.
590 2012-06-11 Pedro Alves <palves@redhat.com>
592 Remove #if 0'd "connect" command, and unnecessary associated
593 refcounting and serial reuse bits.
595 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
596 * serial.c (last_serial_opened): Delete.
598 (serial_open): Adjust.
599 (serial_for_fd): Delete.
600 (serial_fdopen_ops, do_serial_close): Adjust.
601 (serial_fdopen_ops): Adjust.
603 2012-06-11 Pedro Alves <palves@redhat.com>
605 * serial.c (do_serial_close): Remove early return when SCB is
608 2012-06-11 Tom Tromey <tromey@redhat.com>
610 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
612 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
614 Fix regression by the "ambiguous linespec" series.
615 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
616 get_last_displayed_symtab and get_last_displayed_line and depending
619 2012-06-11 Tom Tromey <tromey@redhat.com>
621 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
622 (dw2_find_symbol_file): Use it.
624 2012-06-11 Michael Eager <eager@eagercon.com>
626 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
627 * mips-linux-tdep.h (mips_signals): New
629 2012-06-11 Tom Tromey <tromey@redhat.com>
631 * infrun.c (handle_inferior_event)
632 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
634 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
635 exception logic in all cases. Update comments.
636 (insert_longjmp_resume_breakpoint): Set the exception resume
639 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
641 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
643 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
645 * valarith.c (binop_types_user_defined_p): Fix a typo.
647 2012-06-08 Yao Qi <yao@codesourcery.com>
648 Chung-Lin Tang <cltang@codesourcery.com>
650 * arch-utils.c (default_return_in_first_hidden_param_p): New.
651 * arch-utils.h: Declare.
652 * gdbarch.sh: Add return_in_first_hidden_param_p.
653 * gdbarch.c, gdbarch.h: Regenerated.
654 * infcall.c (call_function_by_hand): Call
655 gdbarch_return_in_first_hidden_param_p instead of
656 language_pass_by_reference.
658 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
659 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
660 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
661 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
662 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
663 `cplus_return_struct_by_reference'.
664 (tic6x_return_value): Handle language cplusplus.
665 (tic6x_return_in_first_hidden_param_p): New.
666 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
668 2012-06-07 Doug Evans <dje@google.com>
670 * dwarf2read.c (dwarf2_cu): Add comment.
672 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
674 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
676 (mips_eabi_push_dummy_call): Likewise.
677 (mips_n32n64_push_dummy_call): Likewise.
678 (mips_o32_push_dummy_call): Likewise.
679 (mips_o64_push_dummy_call): Likewise.
681 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
683 * mips-tdep.c (mips_convert_register_p): Correct coding style.
685 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
687 * mips-tdep.c (mips_pseudo_register_type): Use
688 mips_float_register_p.
690 2012-06-06 Pedro Alves <palves@redhat.com>
692 * infrun.c (handle_inferior_event): Remove calls to
693 reinit_frame_cache that follow a context_switch call.
695 2012-06-06 Pedro Alves <palves@redhat.com>
697 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
698 context_switch and remove stale comment.
700 2012-06-06 Pedro Alves <palves@redhat.com>
702 * infrun.c (struct execution_control_state): Remove
703 `new_thread_event' field.
704 (handle_inferior_event): Simplify new threads handling; don't
705 resume the inferior if we find a new thread.
707 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
709 * NEWS: Document the deprecation of SH's 'regs' command.
710 * inferior.h (all_registers_info): Add function declaration.
711 * sh-tdep.c (sh_show_regs): Remove variable.
712 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
713 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
714 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
715 (sh_show_regs_command): Remove functions.
716 (sh_gdbarch_init): Don't set sh_show_regs.
717 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
718 'info all-registers'.
719 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
720 (sh64_show_regs): Remove functions.
721 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
723 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
725 * configure.ac: Move development=true below AC_INIT.
726 * configure: Regenerate.
728 2012-06-05 Stan Shebs <stan@codesourcery.com>
730 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
733 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
735 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
737 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
738 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
739 * target.c (target_read_stack, target_write_memory)
740 (target_write_raw_memory): Likewise.
741 * target.h (target_read_stack, target_write_memory)
742 (target_write_raw_memory): Likewise.
744 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
746 * symfile-mem.c: Change gdb_static_assert to ssize_t.
747 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
748 * target.c (target_read_memory): Change LEN to ssize_t.
749 * target.h (target_read_memory): Change LEN to ssize_t.
751 2012-06-05 Pedro Alves <palves@redhat.com>
755 * breakpoint.c (until_break_command): Only fetch the selected
756 frame after decode_line_1.
758 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
760 * solib-svr4.c (enable_break): Don't fallback to setting the solib
761 event breakpoint at _start, __start or main if a program
762 interpreter is not found.
764 2012-06-05 Joel Brobecker <brobecker@adacore.com>
766 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
768 * windows-tdep.c: #include "objfiles.h".
769 (windows_iterate_over_objfiles_in_search_order): New function.
770 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
771 iterate_over_objfiles_in_search_order gdbarch method to
772 windows_iterate_over_objfiles_in_search_order.
773 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
775 2012-06-05 Joel Brobecker <brobecker@adacore.com>
777 * gdbarch.sh: Add generation of
778 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
779 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
780 (iterate_over_objfiles_in_search_order): New gdbarch method.
781 * gdbarch.h, gdbarch.c: Regenerate.
782 * objfiles.h (default_iterate_over_objfiles_in_search_order):
784 * objfiles.c (default_iterate_over_objfiles_in_search_order):
786 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
787 out of lookup_symbol_aux_symtabs.
788 (lookup_symbol_aux_symtabs): Replace extracted-out code by
789 call to lookup_symbol_aux_objfile.
790 (struct global_sym_lookup_data): New type.
791 (lookup_symbol_global_iterator_cb): New function.
792 (lookup_symbol_global): Search for symbol using
793 gdbarch_iterate_over_objfiles_in_search_order and
794 lookup_symbol_global_iterator_cb.
795 * findvar.c (struct minsym_lookup_data): New type.
796 (minsym_lookup_iterator_cb): New function.
797 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
798 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
799 and minsym_lookup_iterator_cb.
801 2012-06-05 Joel Brobecker <brobecker@adacore.com>
803 Revert the following patch:
804 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
805 try locating the symbol in the symbol's own objfile first, before
806 extending the search to all objfiles.
807 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
808 out of lookup_symbol_aux_symtabs.
809 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
810 Replace extracted-out code by call to lookup_symbol_aux_objfile.
811 Do not search EXCLUDE_OBJFILE.
812 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
813 (lookup_symbol_global): Search for matches in the block's objfile
814 first, before searching all other objfiles.
816 2012-06-05 Joel Brobecker <brobecker@adacore.com>
818 * breakpoint.c (find_condition_and_thread): Stop parsing
819 as soon as the first invalid keyword is found.
821 2012-06-05 Joel Brobecker <brobecker@adacore.com>
823 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
825 2012-06-05 Joel Brobecker <brobecker@adacore.com>
827 * config/djgpp/djcheck.sh: Add copyright header.
829 2012-06-05 Joel Brobecker <brobecker@adacore.com>
831 * copyright.py (update_files, main): Fix path to update-copyright
834 2012-06-05 Joel Brobecker <brobecker@adacore.com>
836 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
837 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
838 for which a reminder to update by hand is printed.
840 2012-06-04 Doug Evans <dje@google.com>
842 * buildsym.c (make_blockvector): Add comment.
844 2012-06-04 Pedro Alves <palves@redhat.com>
846 * arch-utils.c (default_gdb_signal_from_target): Delete.
847 * arch-utils.h (default_gdb_signal_from_target): Delete.
848 * corelow.c (core_open) <signal mapping>: Extended comment. Check
849 gdbarch_gdb_signal_from_target_p.
850 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
852 * gdbarch.h: Regenerate.
853 * gdbarch.c: Regenerate.
855 2012-06-04 Pedro Alves <palves@redhat.com>
857 * gdbarch.sh (gdb_signal_from_target): Mention that the
858 implementation of the method must be host independent.
859 * gdbarch.h: Regenerate.
861 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
863 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
865 (target_read_memory_bfd): New function.
866 (symbol_file_add_from_memory): Use it.
868 2012-06-03 Doug Evans <dje@google.com>
870 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
872 (basic_lookup_transparent_type): Ditto.
874 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
875 (ALL_PRIMARY_SYMTABS): Use it.
876 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
877 * dwarf2read.c (dw2_find_symbol_file): Ditto.
878 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
879 * symtab.c (lookup_symbol_aux_objfile): Ditto.
880 (basic_lookup_transparent_type): Ditto.
882 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
884 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
885 it to optimize resolution of demangled name.
887 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
889 * configure.ac (development): Define new variable.
890 Call AC_CHECK_LIB for mcheck if $development.
891 (ERROR_ON_WARNING): Enable it by default only if $development.
892 * config.in: Regenerate.
893 * configure: Regenerate.
895 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
897 * target.c (target_read_memory): Make LEN argument as size_t.
898 * target.h (target_read_memory): Likewise.
900 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
902 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
904 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
906 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
907 BookE interface for PowerPC server processors if not available
910 2012-05-31 Keith Seitz <keiths@redhat.com>
912 * linespec.c (decode_objc): Add cleanup to free
914 (find_linespec_symbols): Add cleanup to free CLASSES.
915 * symfile.c (find_separate_debug_file_by_debuglink): Add
916 cleanup to free DEBUGLINK.
917 * ui-out.c (clear_header_list): No need to check if
918 HEADER_NEXT.COLHDR is NULL.
919 Free HEADER_NEXT.COL_NAME.
921 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
923 * ada-lang.c (standard_lookup): Prevent uninitialized variable
926 2012-05-30 Jeff Kenton <jkenton@tilera.com>
928 * configure.host (gdb_host_cpu): Handle tilegx*.
929 (gdb_host): Handle tilegx-*-linux*.
930 * tilegx-linux-nat.c: New file.
931 * config/tilegx/linux.mh: New file.
933 2012-05-30 Jeff Kenton <jkenton@tilera.com>
935 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
937 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
939 * configure.tgt: Handle tilegx-*-linux*.
940 * tilegx-tdep.h: New file.
941 * tilegx-tdep.c: New file.
942 * tilegx-linux-tdep.c: New file.
943 * regformats/reg-tilegx.dat: New file.
945 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
947 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
948 accounting of hw watchpoints on ppc.
950 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
952 * source.c (openp): Expand tilde in path entries.
954 2012-05-29 Doug Evans <dje@google.com>
956 * buildsym.c (block_compar): Fix comment.
957 (end_symtab): Fix and clarify some comments.
959 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
960 cleanup_undefined_types.
961 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
964 2012-05-29 Tom Tromey <tromey@redhat.com>
966 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
968 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
969 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
971 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
974 2012-05-29 Tristan Gingold <gingold@adacore.com>
976 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
977 (struct darwin_info): ... New struct.
978 (solib_darwin_pspace_data): New variable.
979 (darwin_pspace_data_cleanup): New function.
980 (get_darwin_info): Likewise.
981 (darwin_dyld_version_ok, darwin_load_image_infos)
982 (darwin_solib_get_all_image_info_addr_at_init)
983 (darwin_solib_read_all_image_info_addr): Add info argument.
985 (darwin_current_sos): Use per pspace structure.
986 (darwin_solib_create_inferior_hook): Likewise.
987 (darwin_clear_solib): Likewise.
988 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
990 2012-05-28 Pedro Alves <palves@redhat.com>
992 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
993 block that uses them. Clear ecss before handling each event.
995 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
997 * solib-svr4.c (svr4_current_sos): New comment on
998 svr4_current_sos_via_xfer_libraries fall back.
1000 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1002 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
1003 it as a fallback for TYPE_IS_OPAQUE.
1004 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
1005 symbols for lookup_symbol.
1007 2012-05-24 John Steele Scott <toojays@toojays.net>
1009 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
1010 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
1011 (producer_is_gxx_lt_4_6): Move the checking and caching to...
1012 (check_producer): ... this new function, which also checks for ICC
1013 and caches the result.
1014 (producer_is_icc): New function.
1015 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
1018 2012-05-24 Pedro Alves <palves@redhat.com>
1022 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
1023 (default_gdb_signal_to_target): ... this. Add comment.
1024 (default_gdb_signal_from_host): Rename to ...
1025 (default_gdb_signal_from_target): ... this. Add comment.
1026 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
1027 (default_gdb_signal_to_target): ... this.
1028 (default_gdb_signal_from_host): Rename to ...
1029 (default_gdb_signal_from_target): ... this.
1030 * corelow.c (core_open): Adjust to naming change. Replace comment.
1031 * gdbarch.sh (gdb_signal_from_host): Rename to ...
1032 (gdb_signal_from_target): ... this. Adjust to
1033 default_gdb_signal_from_host naming change. Extend comment.
1034 (gdb_signal_to_host): Rename to ...
1035 (gdb_signal_to_target): ... this. Adjust to
1036 default_gdb_signal_to_host naming change.
1037 * gdbarch.h, gdbarch.c: Renegerate.
1039 2012-05-24 Pedro Alves <palves@redhat.com>
1043 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1045 2012-05-24 Pedro Alves <palves@redhat.com>
1049 Replace target_signal with gdb_signal throughout.
1051 2012-05-24 Pedro Alves <palves@redhat.com>
1055 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
1056 string, instead of reusing the va_list argument.
1058 2012-05-24 Tom Tromey <tromey@redhat.com>
1060 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
1063 2012-05-23 Doug Evans <dje@google.com>
1065 * symtab.c (search_symbols): Formatting fixes.
1066 (print_symbol_info): Formatting fixes.
1068 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
1069 int64_t change to leb128 API.
1070 (read_encoded_value, decode_frame_entry_1): Ditto.
1071 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
1072 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
1073 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1074 (execute_stack_op): Ditto.
1075 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
1076 (safe_read_uleb128, safe_read_sleb128): Ditto.
1077 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
1078 (dwarf2_compile_expr_to_ax): Ditto.
1079 (locexpr_describe_location_piece): Ditto.
1080 (disassemble_dwarf_expression): Ditto.
1081 (locexpr_describe_location_1): Ditto.
1083 2012-05-23 Stan Shebs <stan@codesourcery.com>
1084 Kwok Cheung Yeung <kcy@codesourcery.com>
1086 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
1087 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
1088 (mi-cmd-info.o): New rule.
1089 * osdata.h (info_osdata_command): New declaration.
1090 * osdata.c (info_osdata_command): Change to non-static.
1091 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
1092 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
1093 * mi/mi-cmd-info.c: New file.
1095 2012-05-23 Doug Evans <dje@google.com>
1097 * symtab.c (search_symbols): Pass NULL for file_matcher to
1098 expand_symtabs_matching if there are no files to match.
1100 * gdbtypes.c (lookup_typename): Simplify.
1102 2012-05-23 Pedro Alves <palves@redhat.com>
1104 * arch-utils.h (default_target_signal_to_host): Delete.
1105 * arch-utils.c (default_target_signal_to_host): Delete.
1106 * gdbarch.sh (target_signal_to_host): Remove.
1107 * gdbarch.h, gdbarch.c: Regenerate.
1109 2012-05-22 Doug Evans <dje@google.com>
1111 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
1113 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
1114 (execute_cfa_program): Update to match API of leb128 functions.
1115 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
1117 (read_unsigned_leb128, read_signed_leb128): Delete.
1118 (read_initial_length): Change type of buf argument to
1120 (read_encoded_value): Update to match API of leb128 functions.
1121 (decode_frame_entry): Change result to "const gdb_byte *", and
1122 similarly for "start" parameter.
1123 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
1124 (dwarf2_build_frame_info): Change local frame_ptr to
1126 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
1127 read_uleb128, read_sleb128. All callers updated.
1128 (safe_skip_leb128): New function.
1129 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
1130 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
1131 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
1132 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
1133 read_uleb128, read_sleb128.
1134 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1135 (execute_stack_op): Update to match API of leb128 functions.
1136 * dwarf2expr.h: #include "leb128.h".
1137 (read_uleb128, read_sleb128): Delete.
1138 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
1139 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
1140 * dwarf2loc.c (debug_loc_kind): New enum.
1141 (decode_debug_loc_addresses): New function.
1142 (decode_debug_loc_dwo_addresses): New function.
1143 (dwarf2_find_location_expression): Rewrite.
1144 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
1145 (locexpr_describe_location_piece): Ditto.
1146 (disassemble_dwarf_expression): Ditto.
1147 (locexpr_describe_location_1): Ditto.
1148 (loclist_describe_location): Rewrite.
1149 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
1150 * dwarf2read.c (die_reader_specs): New member "buffer_end".
1151 (dwarf2_section_buffer_overflow_complaint): Renamed from
1152 dwarf2_macros_too_long_complaint. All callers updated.
1153 (skip_leb128): Delete.
1154 (init_cu_die_reader): Initialize reader->buffer_end.
1155 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
1156 (skip_form_bytes): New arg buffer_end. All callers updated.
1157 Replace call to skip_leb128 with gdb_skip_leb128.
1158 (skip_unknown_opcode): New arg mac_end. All callers updated.
1159 (fill_in_loclist_baton): Initialize baton->from_dwo.
1161 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1163 * mips-linux-nat.c (mips_linux_read_description): Use a more
1164 verbose error message.
1166 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1168 * NEWS: Add MIPS/Linux DSP support.
1169 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
1170 (SIGCONTEXT_DSPCTL): New macro.
1171 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
1172 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
1173 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
1174 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
1175 (N64_SIGCONTEXT_HI3): Likewise.
1176 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
1177 (N64_SIGCONTEXT_LO3): Likewise.
1178 (N64_SIGCONTEXT_DSPCTL): Likewise.
1179 (N64_SIGCONTEXT_FPCSR): Clarify definition.
1180 (mips_linux_o32_sigframe_init): Handle DSP registers.
1181 (mips_linux_n32n64_sigframe_init): Likewise.
1183 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1185 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
1188 2012-05-22 Pedro Alves <palves@redhat.com>
1190 * target.h (store_waitstatus): Move declaration ...
1191 * inf-child.h (store_waitstatus): ... here.
1192 * target.c: Move inclusion of gdb_wait.h, and ...
1193 (store_waitstatus): ... this ...
1194 * inf-child.c: ... here.
1195 * linux-nat.c: Include inf-child.h.
1196 * rs6000-nat.c: Include inf-child.h.
1197 * spu-linux-nat.c: Include inf-child.h.
1199 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1201 * tracepoint.c (start_tracing): Add missing i18n markup.
1202 (stop_tracing, set_trace_user): Ditto.
1203 (set_trace_notes, set_trace_stop_notes): Ditto.
1205 2012-05-21 Tom Tromey <tromey@redhat.com>
1208 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
1210 * value.h (value_cast_pointers): Update.
1211 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
1212 (value_cast): Update.
1213 (update_search_result): New function.
1214 (do_search_struct_field): New, from search_struct_field. Check
1215 for ambiguous results.
1216 (search_struct_field): Rewrite.
1217 * infcall.c (value_arg_coerce): Update.
1218 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
1219 value_cast_pointers.
1220 * ada-lang.c (ada_convert_actual): Update.
1222 2012-05-21 Tom Tromey <tromey@redhat.com>
1224 * macroexp.c (macro_stringify): Terminate the string.
1226 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1228 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
1230 * auto-load.c (auto_load_expand_dir_vars): New function.
1231 (auto_load_safe_path_vec_update): Use it, remove the
1232 substitute_path_component call thanks to it.
1233 (auto_load_objfile_script): Remove the debug_file_directory processing.
1234 Use auto_load_expand_dir_vars, remove the substitute_path_component
1236 * configure: Regenerate.
1237 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
1238 path. Escape $ also for $debugdir.
1239 (--with_auto_load_safe_path): Escape $ also for $debugdir.
1240 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
1242 2012-05-20 Doug Evans <dje@google.com>
1244 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
1245 before use. Check for symtab->includes == NULL before scanning it.
1247 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1249 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
1251 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1253 * NEWS: Add microMIPS support and "set mips compression",
1254 "show mips compression" commands.
1255 * mips-tdep.h (mips_isa): New enum.
1256 (gdbarch_tdep): Add mips_isa.
1257 (mips_pc_is_mips16): Update prototype.
1258 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
1259 * mips-tdep.c (mips_compression_mips16): New variable.
1260 (mips_compression_micromips): Likewise.
1261 (mips_compression_strings): Likewise.
1262 (mips_compression_string): Likewise.
1263 (is_mips16_isa, is_micromips_isa): New functions.
1264 (is_mips16_addr): Rename to...
1265 (is_compact_addr): ... this.
1266 (unmake_mips16_addr): Likewise to...
1267 (unmake_compact_addr): ... this.
1268 (make_mips16_addr): Likewise to...
1269 (make_compact_addr): ... this.
1270 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
1272 (mips_elf_make_msymbol_special): Handle microMIPS code.
1273 (msymbol_is_special): Rename to...
1274 (msymbol_is_mips16): ... this.
1275 (mips_make_symbol_special, mips_pc_is_mips16): Update
1277 (msymbol_is_mips, msymbol_is_micromips): New functions.
1278 (mips16_to_32_reg): Rename to...
1279 (mips_reg3_to_reg): ... this.
1280 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
1281 (mips_pc_isa): Likewise.
1282 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
1284 (mips_fetch_instruction): Pass return status instead of printing
1285 an error message if requested. Handle microMIPS code. Bail out
1287 (micromips_op): New macro.
1288 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
1289 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
1290 (b6s4_op, b7s3_reg): Likewise.
1291 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
1292 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
1293 (mips_insn_size): New function.
1294 (mips32_next_pc): Update mips_fetch_instruction call.
1295 (micromips_relative_offset7): New function.
1296 (micromips_relative_offset10): Likewise.
1297 (micromips_relative_offset16): Likewise.
1298 (micromips_pc_insn_size): Likewise.
1299 (micromips_bc1_pc): Likewise.
1300 (micromips_next_pc): Likewise.
1301 (unpack_mips16): Update mips_fetch_instruction call.
1302 (extended_mips16_next_pc): Update according to change to
1304 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
1306 (mips16_scan_prologue): Update mips_fetch_instruction call.
1307 Update according to change to mips16_to_32_reg.
1308 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
1309 (mips_insn16_frame_base_sniffer): Likewise.
1310 (micromips_decode_imm9): New function.
1311 (micromips_scan_prologue): Likewise.
1312 (mips_micro_frame_cache): Likewise.
1313 (mips_micro_frame_this_id): Likewise.
1314 (mips_micro_frame_prev_register): Likewise.
1315 (mips_micro_frame_sniffer): Likewise.
1316 (mips_micro_frame_unwind): New variable.
1317 (mips_micro_frame_base_address): New function.
1318 (mips_micro_frame_base): New variable.
1319 (mips_micro_frame_base_sniffer): New function.
1320 (mips32_scan_prologue): Update mips_fetch_instruction call.
1321 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
1322 rather than for MIPS16.
1323 (mips_insn32_frame_base_sniffer): Likewise.
1324 (mips_addr_bits_remove): Handle microMIPS code.
1325 (deal_with_atomic_sequence): Rename to...
1326 (mips_deal_with_atomic_sequence): ... this. Update the type
1327 of the variable used to hold an instruction. Remove the ISA bit
1328 check. Update mips_fetch_instruction call.
1329 (micromips_deal_with_atomic_sequence): New function.
1330 (deal_with_atomic_sequence): Likewise.
1331 (mips_about_to_return): Handle microMIPS code. Update
1332 mips_fetch_instruction call.
1333 (heuristic_proc_start): Check for the standard MIPS ISA rather
1334 than for MIPS16. Update mips_pc_is_mips16 and
1335 mips_fetch_instruction calls. Handle microMIPS code.
1336 (mips_push_dummy_code): Handle microMIPS code.
1337 (mips_eabi_push_dummy_call): Likewise.
1338 (mips_o32_return_value): Update mips_pc_is_mips16 call.
1339 (mips_o64_push_dummy_call): Handle microMIPS code.
1340 (mips_o64_return_value): Update mips_pc_is_mips16 call.
1341 (is_delayed): Remove function.
1342 (mips_single_step_through_delay): Replace the call to is_delayed
1343 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
1344 Handle microMIPS code.
1345 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
1347 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1349 (micromips_in_function_epilogue_p): New function.
1350 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1352 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1354 (gdb_print_insn_mips): Likewise.
1355 (mips_breakpoint_from_pc): Likewise.
1356 (mips_remote_breakpoint_from_pc): New function.
1357 (mips32_instruction_has_delay_slot): Simplify making use of the
1358 updated mips_fetch_instruction interface.
1359 (micromips_instruction_has_delay_slot): New function.
1360 (mips16_instruction_has_delay_slot): Simplify making use of the
1361 updated mips_fetch_instruction interface.
1362 (mips_adjust_breakpoint_address): Check for the standard MIPS
1363 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
1364 calls. Handle microMIPS code.
1365 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1366 (mips_skip_trampoline_code): Handle microMIPS code.
1367 (global_mips_compression): New function.
1368 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1369 file flags. Register the microMIPS remote breakpoint handler
1370 and heuristic frame unwinder.
1371 (show_mips_compression): New function.
1372 (_initialize_mips_tdep): Add the "set mips compression" and
1373 "show mips compression" commands.
1375 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
1380 * amd64-darwin-tdep.c:
1381 * arm-symbian-tdep.c:
1385 * bfin-linux-tdep.c:
1392 * dwarf2-frame-tailcall.c:
1421 * microblaze-tdep.c:
1422 * mips-linux-tdep.c:
1430 * python/py-finishbreakpoint.c:
1431 * python/py-inferior.c:
1432 * python/py-infthread.c:
1436 * remote-m32r-sdi.c:
1440 * rs6000-aix-tdep.c:
1466 * amd64-darwin-tdep.c:
1467 * arm-symbian-tdep.c:
1468 * arm-tdep.c: Delete unused variables.
1470 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1472 Rename $ddir to $datadir.
1473 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1474 * auto-load.c (auto_load_safe_path_vec_update)
1475 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1476 * configure: Regenerate.
1477 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1478 Likewise. Remove the 'use $ddir' help string.
1480 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1482 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1483 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1485 2012-05-18 Tom Tromey <tromey@redhat.com>
1488 * valprint.h (struct value_print_options) <symbol_print>: New
1490 * valprint.c (user_print_options): Add default for symbol_print.
1491 (show_symbol_print): New function.
1492 (generic_val_print): Respect symbol_print.
1493 (_initialize_valprint): Add "print symbol" setting.
1494 * f-valprint.c (f_val_print): Respect symbol_print.
1495 * c-valprint.c (c_val_print): Respect symbol_print.
1497 * printcmd.c (print_address_symbolic): Return int. Ignore some
1499 (print_address_demangle): Return int.
1500 * defs.h: (print_address_symbolic): Return int.
1501 * value.h (print_address_demangle): Return int.
1503 2012-05-18 Tom Tromey <tromey@redhat.com>
1505 * valprint.c (val_print_string): Don't print leading space.
1506 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1507 print space before string or vtbl.
1508 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1510 * jv-valprint.c (java_value_print): Print space before string.
1511 * go-valprint.c (print_go_string): Print space before string.
1512 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1513 space before string.
1514 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1515 space before string or vtbl.
1516 * auxv.c (fprint_target_auxv): Print space after address.
1518 2012-05-18 Tom Tromey <tromey@redhat.com>
1520 * printcmd.c (print_address_demangle): Remove special case for 0.
1522 2012-05-18 Tom Tromey <tromey@redhat.com>
1524 * printcmd.c (print_address_demangle): Add 'opts' argument.
1525 * p-valprint.c (pascal_val_print): Update.
1526 * jv-valprint.c (java_val_print): Update.
1528 * valprint.c (generic_val_print): Update.
1529 (print_function_pointer_address): Add 'options' argument. Remove
1530 'addressprint' argument. Update.
1531 * m2-valprint.c (print_unpacked_pointer): Update.
1532 * gnu-v3-abi.c (print_one_vtable): Update.
1533 (gnuv3_print_method_ptr): Update.
1534 * f-valprint.c (f_val_print): Update.
1535 * cp-valprint.c (cp_print_value_fields): Update.
1536 * valprint.h (print_function_pointer_address): Update.
1537 * c-valprint.c (c_val_print): Update.
1539 2012-05-18 Tom Tromey <tromey@redhat.com>
1541 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1542 directly corresponding to the found psymtab.
1543 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1544 (dw2_find_pc_sect_symtab): Use it.
1545 * block.h (blockvector_contains_pc): Declare.
1546 * block.c (find_block_in_blockvector): New function.
1547 (blockvector_for_pc_sect): Use it.
1548 (blockvector_contains_pc): New function.
1550 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1552 * mips-tdep.h (mips_write_pc): New prototype.
1553 * mips-tdep.c (mips_write_pc): Make external, add description.
1554 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1557 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1559 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1561 (mips_unwind_pc, mips_write_pc): Likewise.
1562 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1565 2012-05-17 Joel Brobecker <brobecker@adacore.com>
1567 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1568 proc_warn, proc_error, proc_get_status, proc_flags,
1569 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1570 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1571 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1572 proc_stop_process, proc_wait_for_stop, proc_run_process,
1573 proc_set_traced_signals, proc_set_traced_faults,
1574 proc_set_traced_sysentry, proc_set_traced_sysexit,
1575 proc_set_held_signals, proc_get_held_signals,
1576 proc_get_traced_signals, proc_get_traced_faults,
1577 proc_get_traced_sysentry, proc_get_traced_sysexit,
1578 proc_clear_current_fault, proc_set_current_signal,
1579 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1580 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1581 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1582 proc_get_current_thread, proc_get_current_thread,
1583 proc_get_current_thread, proc_update_threads,
1584 proc_update_threads, proc_update_threads, proc_update_threads,
1585 proc_iterate_over_threads, procfs_find_new_threads,
1586 procfs_pid_to_str): Make static. Remove advance declaration.
1587 (proc_cursig): Make static. Conditionalized defintion on
1588 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1589 (proc_syscall, proc_set_kill_on_last_close,
1590 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1591 proc_get_pending_signals, proc_get_signal_actions,
1592 proc_trace_signal, proc_ignore_signal): Delete.
1594 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1596 * coffread.c (cs_section_address): Passing proper argument for
1597 `bfd_get_section_vma'.
1598 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1599 `bfd_get_section_flags'.
1600 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1601 `bfd_get_section_vma'.
1603 2012-05-16 Tom Tromey <tromey@redhat.com>
1606 * macrotab.h: (macro_define_special): Declare.
1607 (enum macro_special_kind): New.
1608 (struct macro_definition) <argc, replacement>: Update comments.
1609 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1610 (macro_define_object_internal): New function.
1611 (macro_define_object): Use it.
1612 (macro_define_special): New function.
1613 (fixup_definition): New function.
1614 (macro_lookup_definition, foreach_macro_in_scope)
1615 (foreach_macro): Use fixup_definition.
1616 * macroexp.h (macro_stringify): Declare.
1617 * macroexp.c (free_buffer_return_text): New function.
1618 (stringify): Constify "arg".
1619 (macro_stringify): New function.
1620 * dwarf2read.c (macro_start_file): Call macro_define_special.
1622 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1623 Maciej W. Rozycki <macro@mips.com>
1625 * breakpoint.h (bp_location): Add related_address member.
1626 * inferior.h (get_return_value): Take a pointer to struct value
1627 instead of struct type for the function requested.
1628 * value.h (using_struct_return): Likewise.
1629 * gdbarch.sh (return_value): Take a pointer to struct value
1630 instead of struct type for the function requested.
1631 * breakpoint.c (set_breakpoint_location_function): Initialize
1632 related_address for bp_gnu_ifunc_resolver breakpoints.
1633 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1634 requested function's address to gdbarch_return_value.
1635 * eval.c (evaluate_subexp_standard): Pass the requested
1636 function's address to using_struct_return.
1637 * infcall.c (call_function_by_hand): Pass the requested
1638 function's address to using_struct_return and
1639 gdbarch_return_value.
1640 * infcmd.c (get_return_value): Take a pointer to struct value
1641 instead of struct type for the function requested.
1642 (print_return_value): Update accordingly.
1643 (finish_command_continuation): Likewise.
1644 * stack.c (return_command): Pass the requested function's
1645 address to using_struct_return and gdbarch_return_value.
1646 * value.c (using_struct_return): Take a pointer to struct value
1647 instead of struct type for the function requested. Pass the
1648 requested function's address to gdbarch_return_value.
1649 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1650 New function_value member, replacing function_type.
1651 (bpfinishpy_dealloc): Update accordingly.
1652 (bpfinishpy_pre_stop_hook): Likewise.
1653 (bpfinishpy_init): Likewise. Record the requested function's
1655 * mips-tdep.c (mips_fval_reg): New enum.
1656 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1657 words put in GP registers.
1658 (mips_o64_push_dummy_call): Update a comment.
1659 (mips_o32_return_value): Take a pointer to struct value instead
1660 of struct type for the function requested and use it to check if
1661 using the MIPS16 calling convention. Return the designated
1662 general purpose registers for floating-point values returned in
1664 (mips_o64_return_value): Likewise.
1665 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1666 (ppc_sysv_abi_broken_return_value): Likewise.
1667 (ppc64_sysv_abi_return_value): Likewise.
1668 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1669 value instead of struct type for the function requested.
1670 * amd64-tdep.c (amd64_return_value): Likewise.
1671 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1672 * arm-tdep.c (arm_return_value): Likewise.
1673 * avr-tdep.c (avr_return_value): Likewise.
1674 * bfin-tdep.c (bfin_return_value): Likewise.
1675 * cris-tdep.c (cris_return_value): Likewise.
1676 * frv-tdep.c (frv_return_value): Likewise.
1677 * h8300-tdep.c (h8300_return_value): Likewise.
1678 (h8300h_return_value): Likewise.
1679 * hppa-tdep.c (hppa32_return_value): Likewise.
1680 (hppa64_return_value): Likewise.
1681 * i386-tdep.c (i386_return_value): Likewise.
1682 * ia64-tdep.c (ia64_return_value): Likewise.
1683 * iq2000-tdep.c (iq2000_return_value): Likewise.
1684 * lm32-tdep.c (lm32_return_value): Likewise.
1685 * m32c-tdep.c (m32c_return_value): Likewise.
1686 * m32r-tdep.c (m32r_return_value): Likewise.
1687 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1688 * m68k-tdep.c (m68k_return_value): Likewise.
1689 (m68k_svr4_return_value): Likewise.
1690 * m88k-tdep.c (m88k_return_value): Likewise.
1691 * mep-tdep.c (mep_return_value): Likewise.
1692 * microblaze-tdep.c (microblaze_return_value): Likewise.
1693 * mn10300-tdep.c (mn10300_return_value): Likewise.
1694 * moxie-tdep.c (moxie_return_value): Likewise.
1695 * mt-tdep.c (mt_return_value): Likewise.
1696 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1697 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1698 (ppc_sysv_abi_broken_return_value): Likewise.
1699 (ppc64_sysv_abi_return_value): Likewise.
1700 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1701 * rl78-tdep.c (rl78_return_value): Likewise.
1702 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1703 * rx-tdep.c (rx_return_value): Likewise.
1704 * s390-tdep.c (s390_return_value): Likewise.
1705 * score-tdep.c (score_return_value): Likewise.
1706 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1707 (sh_return_value_fpu): Likewise.
1708 * sh64-tdep.c (sh64_return_value): Likewise.
1709 * sparc-tdep.c (sparc32_return_value): Likewise.
1710 * sparc64-tdep.c (sparc64_return_value): Likewise.
1711 * spu-tdep.c (spu_return_value): Likewise.
1712 * tic6x-tdep.c (tic6x_return_value): Likewise.
1713 * v850-tdep.c (v850_return_value): Likewise.
1714 * vax-tdep.c (vax_return_value): Likewise.
1715 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1716 * xtensa-tdep.c (xtensa_return_value): Likewise.
1717 * gdbarch.c: Regenerate.
1718 * gdbarch.h: Regenerate.
1720 2012-05-15 Tom Tromey <tromey@redhat.com>
1722 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1724 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1726 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1727 of command in two error message.
1729 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1731 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1733 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1735 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1737 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1739 * NEWS (show auto-load scripts-directory): Add forgotten command.
1741 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1743 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1746 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1748 * amd64-tdep.c: Include features/i386/x32.c and
1749 features/i386/x32-avx.c.
1750 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1751 initialize_tdesc_x32_avx.
1753 2012-05-14 Stan Shebs <stan@codesourcery.com>
1756 * breakpoint.h (enum bptype): New type bp_dprintf.
1757 (struct breakpoint): New field extra_string.
1758 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1759 (create_breakpoint): Add extra_string arg.
1760 * breakpoint.c (dprintf_breakpoint_ops): New.
1761 (is_breakpoint): Add bp_dprintf.
1762 (bpstat_what): Add dprintf case.
1763 (bptype_string): Ditto.
1764 (print_one_breakpoint_location): Ditto.
1765 (init_bp_location): Ditto.
1766 (bkpt_print_mention): Ditto.
1767 (dprintf_style_enums): New array.
1768 (dprintf_style): New global.
1769 (dprintf_function): New global.
1770 (dprintf_channel): New global.
1771 (update_dprintf_command_list): New function.
1772 (update_dprintf_commands): New function.
1773 (init_breakpoint_sal): Add extra_string argument, handle it.
1774 (create_breakpoint_sal): Add extra_string argument.
1775 (create_breakpoints_sal): Add extra_string argument, update callers.
1776 (find_condition_and_thread): Add extra argument.
1777 (create_breakpoint): Add extra_string argument, record it.
1778 (dprintf_command): New function.
1779 (break_command_1): Add arg to create_breakpoint call.
1780 (handle_gnu_v3_exceptions): Ditto.
1781 (trace_command): Ditto.
1782 (ftrace_command): Ditto.
1783 (strace_command): Ditto.
1784 (bkpt_print_mention): Add dprintf case.
1785 (create_breakpoint_sal_default): Add extra_string argument.
1786 (_initialize_breakpoint): Add new commands.
1787 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1788 * python/py-breakpoint.c (bppy_init): Ditto.
1789 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1791 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1793 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1795 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1797 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1800 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1802 Add a new function gdb.find_pc_line to the Python API.
1803 * NEWS (Python Scripting): Add entry about the new function.
1804 * python/python.c (gdbpy_find_pc_line): New function which
1805 implements gdb.find_pc_line.
1806 (GdbMethods): Add entry for the new function.
1808 2012-05-12 Pedro Alves <palves@redhat.com>
1810 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1811 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1813 2012-05-12 Eli Zaretskii <eliz@gnu.org>
1815 * inferior.c: Include completer.h
1816 (initialize_inferiors): Set completer of add-inferior to
1819 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1821 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1822 gdbarch_ptr_bit for x32 core dump.
1824 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1826 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1827 and features/i386/x32-avx-linux.c.
1829 2012-05-11 Stan Shebs <stan@codesourcery.com>
1830 Kwok Cheung Yeung <kcy@codesourcery.com>
1832 * NEWS: Describe new info os commands.
1833 * common/linux-osdata.c (PID_T, TIME_T): Define.
1834 (MAX_PID_T_STRLEN): New.
1835 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1837 (command_from_pid): Add comment. Change to use PID_T.
1838 (commandline_from_pid): Change to use PID_T.
1839 (user_from_pid): Add comment.
1840 (get_process_owner): Add comment. Change to use PID_T and
1842 (get_number_of_cpu_cores): Add comment.
1843 (get_cores_used_by_process): Add comment. Change to use PID_T and
1845 (linux_xfer_osdata_processes): Change to use PID_T and
1847 (compare_processes): New function.
1848 (linux_xfer_osdata_processgroups): New function.
1849 (linux_xfer_osdata_threads): Change to use PID_T.
1850 (linux_xfer_osdata_fds): New function.
1851 (format_socket_state, print_sockets): New functions.
1852 (union socket_addr): New union.
1853 (linux_xfer_osdata_isockets): New function.
1854 (time_from_time_t, group_from_gid): New functions.
1855 (linux_xfer_osdata_shm): New function.
1856 (linux_xfer_osdata_sem): New function.
1857 (linux_xfer_osdata_msg): New function.
1858 (linux_xfer_osdata_modules): New function.
1859 (osdata_table): Add new entries.
1860 * common/buffer.c (buffer_xml_printf): Add support for long and
1861 long long format specifiers.
1863 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1865 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1866 (tdesc_x32_avx_linux): Likewise.
1868 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1870 Implement multi-component --with-auto-load-dir.
1871 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1873 (--with-auto-load-safe-path): Update the default value description.
1874 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1876 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1877 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1878 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1879 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1880 "set auto-load scripts-directory".
1881 * config.in: Regenerate.
1882 * configure: Regenerate.
1883 * configure.ac (--with-auto-load-dir): New configure option.
1884 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1886 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1888 Provide $ddir substitution for --with-auto-load-safe-path.
1889 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1891 * auto-load.c: Include observer.h.
1892 (auto_load_safe_path_vec_update): Call substitute_path_component for
1893 each component. New variable ddir_subst.
1894 (auto_load_gdb_datadir_changed): New function.
1895 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1896 AUTO_LOAD_SAFE_PATH. New comment.
1897 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1898 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1899 * config.in: Regenerate.
1900 * configure: Regenerate.
1901 * configure.ac (--auto-load-safe-path): Rename
1902 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1903 GDB_DATADIR/auto-load.
1904 * defs.h (substitute_path_component): New declaration.
1905 * top.c: Include observer.h.
1906 (set_gdb_datadir): New function.
1907 (init_main): Install it for "set data-directory".
1908 * utils.c (substitute_path_component): New function.
1910 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1912 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1913 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1914 DEBUG_FILE_DIRECTORY. Handle multiple components of
1915 DEBUG_FILE_DIRECTORY.
1917 2012-05-10 Tom Tromey <tromey@redhat.com>
1919 * dwarf2read.c (recursively_write_psymbols): New function.
1920 (write_psymtabs_to_index): Use it.
1922 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1924 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1925 (load_partial_comp_unit): Update.
1926 (queue_comp_unit): Add argument 'pretend_language'.
1927 (process_queue): Update.
1928 (psymtab_to_symtab_1): Skip dependencies that have a user.
1929 (load_partial_comp_unit_reader): Give meaning to the 'data'
1931 (load_full_comp_unit): Add 'pretend_language' argument.
1932 (process_full_comp_unit): Add 'pretend_language' argument. Set
1934 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1936 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1937 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1939 (prepare_one_comp_unit): Add 'pretend_language' argument.
1941 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1942 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1943 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1944 (dw2_do_instantiate_symtab): Check whether symtab was read in
1946 (dw2_instantiate_symtab): Add assertion. Call
1947 process_cu_includes.
1948 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1949 (partial_symtab_p): New typedef.
1950 (set_partial_user): New function.
1951 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1952 (scan_partial_symbols): Add imported CU to imported_symtabs.
1953 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1954 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1955 (get_symtab, recursively_compute_inclusions)
1956 (compute_symtab_includes, process_cu_includes)
1957 (process_imported_unit_die): New functions.
1958 (process_die) <DW_TAG_imported_unit>: New case.
1959 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1961 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1963 (struct partial_die_info) <locdesc>: Remove.
1965 (process_psymtab_comp_unit): Add 'read_partial' argument.
1967 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1968 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1969 (add_partial_symbol): Update.
1970 (process_die): Handle DW_TAG_partial_unit.
1971 (read_file_scope): Update comment.
1972 (load_partial_dies): Handle DW_TAG_imported_unit.
1973 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1974 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1976 2012-05-10 Tom Tromey <tromey@redhat.com>
1978 * cc-with-dwz.sh: New file.
1980 2012-05-10 Tom Tromey <tromey@redhat.com>
1982 * symtab.h (struct symtab) <includes, user>: New fields.
1983 * block.h (struct block_iterator) <d, idx, which>: New fields.
1984 * block.c (initialize_block_iterator, find_iterator_symtab)
1985 (block_iterator_step, block_iter_name_step)
1986 (block_iter_match_step): New functions.
1987 (block_iterator_first, block_iterator_next)
1988 (block_iter_name_first, block_iter_name_next)
1989 (block_iter_match_first, block_iter_match_next): Rewrite.
1990 (get_block_symtab): New function.
1992 2012-05-10 Tom Tromey <tromey@redhat.com>
1994 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
1996 * jit.c (finalize_symtab): Use allocate_global_block,
1998 * buildsym.c (finish_block_internal): New function, from old
2000 (finish_block): Rewrite.
2001 (end_symtab): Use finish_block_internal, set_block_symtab.
2002 * block.h (struct global_block): New.
2003 (allocate_global_block, set_block_symtab): Declare.
2004 * block.c (allocate_global_block, set_block_symtab): New
2007 2012-05-10 Tom Tromey <tromey@redhat.com>
2009 * psymtab.c (partial_map_expand_apply): Add assertion.
2010 (partial_map_symtabs_matching_filename): Skip included psymtabs.
2011 (psymtab_to_symtab): Find unshared psymtab.
2012 (dump_psymtab): Print including psymtabs.
2013 (recursively_search_psymtabs): New function.
2014 (expand_symtabs_matching_via_partial): Use it.
2015 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
2017 (enum psymtab_search_status): New.
2019 2012-05-10 Tom Tromey <tromey@redhat.com>
2021 * tracepoint.c (scope_info): Update.
2022 * symtab.c (lookup_block_symbol, iterate_over_symbols)
2023 (find_pc_sect_symtab, search_symbols)
2024 (default_make_symbol_completion_list_break_on)
2025 (make_file_symbol_completion_list): Update.
2026 * symmisc.c (dump_symtab_1): Update.
2027 * stack.c (print_frame_args, iterate_over_block_locals)
2028 (print_frame_labels, iterate_over_block_arg_vars): Update.
2029 * python/py-block.c (block_object) <dict>: Remove.
2031 <iter>: Change type.
2032 (blpy_iter): Update.
2033 (blpy_block_syms_iternext): Update.
2034 * psymtab.c (map_block): Use block iterators.
2035 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
2036 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2037 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
2038 * infrun.c (check_exception_resume): Update.
2039 * cp-support.c (make_symbol_overload_list_block): Update.
2040 * coffread.c (patch_opaque_types): Update.
2041 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
2042 * block.h (struct block_iterator): New.
2043 (block_iterator_first, block_iterator_next, block_iter_name_first)
2044 (block_iter_name_next, block_iter_match_first)
2045 (block_iter_match_next): Declare.
2046 (ALL_BLOCK_SYMBOLS): Redefine.
2047 * block.c (block_iterator_first, block_iterator_next)
2048 (block_iter_name_first, block_iter_name_next)
2049 (block_iter_match_first, block_iter_match_next): New functions.
2050 * ada-lang.c (ada_add_block_symbols)
2051 (ada_make_symbol_completion_list): Use block iterator.
2053 2012-05-10 Tom Tromey <tromey@redhat.com>
2055 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
2056 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
2057 (lookup_partial_symbol, find_last_source_symtab_from_partial)
2058 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
2059 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
2062 2012-05-10 Joel Brobecker <brobecker@adacore.com>
2064 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
2065 print-file-var-lib2.c, print-file-var-main.c and
2066 print-file-var.exp (located in gdb/testsuite/gdb.base).
2068 2012-05-10 Joel Brobecker <brobecker@adacore.com>
2070 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2071 try locating the symbol in the symbol's own objfile first, before
2072 extending the search to all objfiles.
2073 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2074 out of lookup_symbol_aux_symtabs.
2075 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2076 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2077 Do not search EXCLUDE_OBJFILE.
2078 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2079 (lookup_symbol_global): Search for matches in the block's objfile
2080 first, before searching all other objfiles.
2082 2012-05-10 Tristan Gingold <gingold@adacore.com>
2084 * printcmd.c (set_command): Add pre/post inc/dec.
2086 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
2088 * gdb.1: Document -ex option.
2090 2012-05-09 Joel Brobecker <brobecker@adacore.com>
2092 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
2093 * inferior.h (AT_SYMBOL): Delete.
2095 2012-05-09 Joel Brobecker <brobecker@adacore.com>
2097 * mips-tdep.c (mips_push_dummy_code): New function.
2098 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
2099 ON_STACK and install mips_push_dummy_code as our gdbarch
2100 push_dummy_code routine.
2102 2012-05-09 Pedro Alves <palves@redhat.com>
2104 * target.c (set_maintenance_target_async_permitted): Rename to ...
2105 (set_target_async_command): ... this.
2106 (show_maintenance_target_async_permitted): Rename to ...
2107 (show_target_async_command): ... this.
2108 (initialize_targets): Adjust.
2110 2012-05-08 Doug Evans <dje@google.com>
2112 * go-exp.y (classify_name): Add missing assignment of fields of
2115 2012-05-08 Eli Zaretskii <eliz@gnu.org>
2117 Display the ">" prompt in interactive mode while reading canned
2118 commands, even when the current interpreter is MI.
2120 * interps.c (interp_set_temp): New function.
2122 * interps.h (interp_set_temp): Add prototype.
2124 * cli/cli-script.c (restore_interp): New cleanup function.
2125 (read_command_lines): Temporarily override the current interpreter
2126 with CLI and arrange for restoring the original one.
2128 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2130 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
2132 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
2134 * probe.c (parse_probes): Move conditional to check for
2135 debuginfo files from here...
2136 * stap-probe.c (stap_get_probes): ... to here.
2138 2012-05-07 Mark Kettenis <kettenis@gnu.org>
2139 H.J. Lu <hongjiu.lu@intel.com>
2141 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
2142 `movl %esp, %ebp' for the X32 ABI.
2144 2012-05-07 Tom Tromey <tromey@redhat.com>
2146 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
2148 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
2149 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
2150 (dwarf_stack_op_name): Remove.
2151 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
2152 (decode_locdesc): Use get_DW_OP_name.
2153 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
2154 (dwarf2_compile_expr_to_ax): Likewise.
2155 (disassemble_dwarf_expression): Likewise.
2156 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
2158 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
2160 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
2161 (sh_linux_sigtramp_cache): New function.
2162 (sh_linux_sigreturn_init): New function.
2163 (sh_linux_rt_sigreturn_init): New function.
2164 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
2166 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
2168 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
2169 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
2170 (sh_linux_init_abi): Add init calls to register new tramp_frame
2171 definitions under 32-bit SH, update comments.
2173 2012-05-07 Pedro Alves <palves@redhat.com>
2177 * amd64-linux-tdep.c: Include glibc-tdep.h.
2178 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
2179 gdbarch_skip_solib_resolver callback.
2181 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2183 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
2184 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
2185 (show_auto_load_safe_path): Check any-directory by comparison with "/".
2186 (add_auto_load_safe_path): Change the error message.
2187 (_initialize_auto_load): Change the "safe-path" help text.
2188 * configure: Regenerate
2189 * configure.ac (--without-auto-load-safe-path): Set
2190 WITH_AUTO_LOAD_SAFE_PATH to /.
2192 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
2194 * stap-probe.h: Do not include unecessary `probe.h'.
2196 2012-05-05 Alan Modra <amodra@gmail.com>
2198 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
2199 bfd_und_section_ptr.
2200 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
2201 and bfd_com_section_ptr.
2203 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2205 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
2207 2012-05-04 Joel Brobecker <brobecker@adacore.com>
2209 * windows-nat.h (segment_register_p_ftype): New typedef.
2210 (windows_set_segment_register_p): Add declaration.
2211 * windows-nat.c (segment_register_p): New static global.
2212 (windows_set_segment_register_p): New function.
2213 (do_windows_fetch_inferior_registers): Add special handling
2214 for segment registers.
2215 * amd64-windows-nat.c: #include "amd64-tdep.h".
2216 (amd64_windows_segment_register_p): New function.
2217 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
2218 * i386-windows-nat.c: #include "i386-tdep.h".
2219 (i386_windows_segment_register_p): New function.
2220 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
2222 2012-05-04 Tristan Gingold <gingold@adacore.com>
2224 * printcmd.c (set_command): Emit a warning if the expression is not
2227 2012-05-03 Joel Brobecker <brobecker@adacore.com>
2229 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
2232 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2234 * stap-probe.c (stap_is_operator): Change declaration.
2235 (stap_get_opcode): Change return value.
2236 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
2237 `stap_parse_argument_1'.
2239 2012-05-03 Pedro Alves <pedro@codesourcery.com>
2241 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
2244 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
2246 Add two new methods global_block and static_block to gdb.Symtab
2248 * NEWS (Python scripting): Add entry about the new methods.
2249 * python/py-symtab.c (stpy_global_block): New function which
2250 implements the gdb.Symtab.global_block() method.
2251 (stpy_static_block): New function which implements the
2252 gdb.Symtab.static_block() method.
2253 (symtab_object_methods): Add entries for the two new methods.
2255 2012-05-03 Doug Evans <dje@google.com>
2257 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
2260 2012-05-03 Yao Qi <yao@codesourcery.com>
2262 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
2264 (i386_process_record): Ditto.
2266 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2268 * infcall.c (unwind_on_signal_p): Make static.
2270 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2272 * sol-thread.c (solaris_pid_to_str): Make static.
2273 (_initialize_sol_thread): Add prototype.
2275 2012-05-02 Joel Brobecker <brobecker@adacore.com>
2277 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
2279 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
2281 * MAINTAINERS: Remove myself.
2283 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2285 Fix --without-auto-load-safe-path for MS-Windows host platform.
2286 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
2288 2012-05-02 Eli Zaretskii <eliz@gnu.org>
2290 * gdb_curses.h: Undefine KEY_EVENT before including curses
2291 headers. Move "#undef MOUSE_MOVED" before any curses header
2294 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2296 * features/i386/i386-mmx-linux.c: Regenerate.
2297 * features/rs6000/powerpc-32.c: Likewise.
2298 * features/rs6000/powerpc-32l.c: Likewise.
2299 * features/rs6000/powerpc-403.c: Likewise.
2300 * features/rs6000/powerpc-403gc.c: Likewise.
2301 * features/rs6000/powerpc-405.c: Likewise.
2302 * features/rs6000/powerpc-505.c: Likewise.
2303 * features/rs6000/powerpc-601.c: Likewise.
2304 * features/rs6000/powerpc-602.c: Likewise.
2305 * features/rs6000/powerpc-603.c: Likewise.
2306 * features/rs6000/powerpc-604.c: Likewise.
2307 * features/rs6000/powerpc-64.c: Likewise.
2308 * features/rs6000/powerpc-64l.c: Likewise.
2309 * features/rs6000/powerpc-750.c: Likewise.
2310 * features/rs6000/powerpc-860.c: Likewise.
2311 * features/rs6000/powerpc-e500.c: Likewise.
2312 * features/rs6000/powerpc-e500l.c: Likewise.
2313 * features/rs6000/powerpc-isa205-32l.c: Likewise.
2314 * features/rs6000/powerpc-isa205-64l.c: Likewise.
2315 * features/rs6000/rs6000.c: Likewise.
2317 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2319 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
2321 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
2322 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
2323 (stap_parse_argument) <e>: Likewise.
2324 (handle_stap_probe) <byte_order>: Likewise.
2326 2012-04-30 Doug Evans <dje@google.com>
2328 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
2329 init_and_read_dies_worker. All callers updated.
2330 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
2331 replaced with init_cutu_and_read_dies.
2332 (load_partial_comp_unit): Pass 1 for use_existing_cu.
2333 (find_partial_die): Remove FIXME. Don't free current CU.
2335 2012-04-30 Sterling Augustine <saugustine@google.com>
2337 * contrib: New directory.
2338 * contrib/test_pubnames_and_indexes.py: New file.
2340 2012-04-30 Doug Evans <dje@google.com>
2342 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2343 All callers updated.
2344 (init_cu_die_reader): Verify the section is non-empty.
2345 (dwarf_decode_line_header): Don't dereference section->asection
2346 until we know the section is present.
2348 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
2350 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2353 2012-04-29 Yao Qi <yao@codesourcery.com>
2355 * gdb-code-style.el: New hook gdb-markup-hook
2356 and gdb-comment-hook.
2358 2012-04-28 Doug Evans <dje@google.com>
2360 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
2361 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2363 * symfile.h (dwarf2_debug_sections): New member addr.
2364 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2365 (ctx_no_get_addr_index): New function.
2366 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2367 (ctx_no_get_addr_index): Declare.
2368 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2369 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2370 (dwarf_expr_ctx_funcs): Update.
2371 (needs_get_addr_index): New function.
2372 (needs_frame_ctx_funcs): Update.
2373 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2374 * dwarf2read.c: #include "gdbcore.h".
2375 (dwarf2_per_objfile): New members addr, dwo_files.
2376 (dwarf2_elf_names): Add entry for addr.
2377 (struct dwo_section_names): New type.
2378 (dwo_section_names): New static global.
2379 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2380 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2381 old debug_types_section member updated to use this.
2382 Rename member debug_types_section to info_or_types_section,
2384 (signatured_type): Rename member type_offset to type_offset_in_tu,
2385 all uses updated. New member type_offset_in_section.
2386 (struct dwo_sections): New type.
2387 (struct dwo_unit): New type.
2388 (struct dwo_file): New type.
2389 (die_reader_specs): New member dwo_file.
2390 (dwarf2_locate_sections): Watch for .debug_addr.
2391 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2392 (dwarf2_read_section): Get bfd of section from bfd's asection,
2394 (create_cus_from_index): Initialize the_cu->info_or_types_section.
2395 (create_signatured_type_table_from_index): Initialize
2396 sig_type->info_or_types_section.
2397 (dw2_get_file_names): Statement lists for type units with DWO files
2398 live in the DWO file.
2399 (create_debug_types_hash_table): New function.
2400 (create_all_type_units): Rewrite.
2401 (init_cu_die_reader): New arg dwo_file, all callers updated.
2402 (init_and_read_dies_worker): Get section from
2403 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
2404 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2405 continue reading the CU/TU from there.
2406 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2407 updated. Get section from this_cu->info_or_types_section.
2408 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2409 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2410 DW_FORM_GNU_str_index.
2411 (hash_dwo_file, eq_dwo_file): New functions.
2412 (allocate_dwo_file_hash_table): New function.
2413 (hash_dwo_unit, eq_dwo_unit): New functions.
2414 (allocate_dwo_unit_table): New function.
2415 (dwarf2_locate_dwo_sections): New function.
2416 (struct create_dwo_info_table_data): New type.
2417 (create_debug_info_hash_table_reader): New function.
2418 (create_debug_info_hash_table): New function.
2419 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2420 (lookup_dwo_file): New function.
2421 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2422 (free_dwo_file, free_dwo_file_cleanup): New functions.
2423 (free_dwo_file_from_slot, free_dwo_files): New functions.
2424 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2425 (dwarf2_record_block_ranges): Ditto.
2426 (read_partial_die): Ditto.
2427 (process_enumeration_scope): Update to use type_offset_in_section.
2428 (read_full_die_1): New function.
2429 (read_full_die): Rewrite.
2430 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2431 DW_FORM_GNU_str_index.
2432 (read_addr_index_1, read_addr_index): New functions.
2433 (read_addr_index_from_leb128): New function.
2434 (struct dwarf2_read_addr_index_data): New type.
2435 (dwarf2_read_addr_index_reader): New function.
2436 (dwarf2_read_addr_index): New function.
2437 (read_str_index): New function.
2438 (leb128_size): New function.
2439 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2440 If processing a type unit from a DWO file, get the line section
2442 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2443 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2444 DW_FORM_GNU_str_index.
2445 (lookup_die_type): Check whether section offset of type's die is
2446 known before looking it up. Remove assert. Condition can
2447 legimately happen for inter-cu type references.
2448 (dwarf_attr_name): Handle Fission attributes.
2449 (dwarf_form_name): Handle Fission forms.
2450 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2451 DW_FORM_GNU_str_index.
2452 (follow_die_sig): Update to use type_offset_in_section.
2453 (decode_locdesc): New case DW_OP_GNU_addr_index.
2454 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2455 DW_FORM_GNU_str_index.
2456 (cu_debug_loc_section): New function.
2457 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2458 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2459 Free DWO files if present.
2460 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2462 Refactor DIE reading.
2463 * dwarf2read.c (dwarf2_per_objfile): Replace members
2464 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2465 (die_reader_specs): New member "die_section". Temporarily make
2466 member "buffer" non-const, pending constifying all info_ptr uses.
2467 (die_reader_func_ftype): New typedef.
2468 (dw2_get_file_names_reader): New function.
2469 (dw2_get_file_names): Rewrite.
2470 (read_and_check_type_unit_head): Rename arg type_offset to
2472 (create_all_type_units): Improve debugging message.
2473 Improve dummy type unit check.
2474 (init_cu_die_reader): New arg "section". All callers updated.
2475 (init_and_read_dies_worker): New function.
2476 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2477 (init_cutu_and_read_dies_no_follow): New function.
2478 (init_cutu_and_read_dies_simple): New function.
2479 (process_psymtab_comp_unit_reader): New function.
2480 (process_psymtab_comp_unit): Delete args section,
2481 is_debug_types_section. Rewrite. All callers updated.
2482 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2483 All callers updated. Rewrite.
2484 (load_partial_comp_unit_reader): New function.
2485 (load_partial_comp_unit): Rewrite.
2486 (skip_children): New arg reader. Delete args buffer, cu.
2487 All callers updated.
2488 (skip_one_die): New arg reader. Delete args buffer, cu.
2489 All callers updated.
2490 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2491 All callers updated.
2492 (load_full_comp_unit_reader): New function.
2493 (load_full_comp_unit): Rewrite.
2494 (read_comp_unit): Delete.
2495 (read_die_and_children_1): Delete, contents moved ...
2496 (read_die_and_children): ... here.
2497 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2498 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2499 All callers updated.
2500 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2501 All callers updated.
2502 (find_partial_die): Rewrite load_all_dies support.
2503 (read_attribute_value): New arg reader. Delete args abfd, cu.
2504 All callers updated.
2505 (read_attribute): New arg reader. Delete args abfd, cu.
2506 All callers updated.
2507 (load_full_type_unit): Add assert.
2508 (read_signatured_type_reader): New function.
2509 (read_signatured_type): Rewrite.
2510 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2511 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2512 All callers updated. Set per_cu->cu = NULL after freeing it.
2513 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2514 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2515 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2516 (set_die_type): Update.
2517 (get_die_type_at_offset): Update.
2518 (read_file_scope): Call prepare_one_comp_unit.
2519 (read_type_unit_scope): Ditto.
2520 (prepare_one_comp_unit): Set producer if present.
2522 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2524 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2525 gettext function on `error'.
2527 2012-04-27 Doug Evans <dje@google.com>
2529 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2532 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2533 Tom Tromey <tromey@redhat.com>
2535 * breakpoint.c (struct breakpoint_objfile_data)
2536 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2537 <exception_probes>: New fields.
2538 (free_breakpoint_probes): New function.
2539 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2540 `_Unwind_DebugHook'.
2541 (create_exception_master_breakpoint): Likewise.
2542 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2543 * infrun.c: Including necessary header files for handling SystemTap
2545 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2546 via SystemTap probes.
2547 (check_exception_resume): Remove `func' argument. Handle exception
2548 unwinding breakpoint set via a SystemTap probe.
2549 (insert_exception_resume_from_probe): New function.
2551 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2552 Tom Tromey <tromey@redhat.com>
2553 Jan Kratochvil <jan.kratochvil@redhat.com>
2555 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2556 (COMMON_OBS): Likewise.
2557 (HFILES_NO_SRCDIR): Add `probe'.
2558 * NEWS: Mention support for static and SystemTap probes.
2559 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2560 SystemTap probes' arguments parser.
2561 * arm-linux-tdep.c: Including headers needed to perform the parsing
2562 of SystemTap probes' arguments.
2563 (arm_stap_is_single_operand): New function.
2564 (arm_stap_parse_special_token): Likewise.
2565 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2566 probes' arguments parser.
2567 * ax-gdb.c (require_rvalue): Removing static declaration.
2568 (gen_expr): Likewise.
2569 * ax-gdb.h (gen_expr): Declaring function.
2570 (require_rvalue): Likewise.
2571 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2572 (bkpt_probe_breakpoint_ops): New variable.
2573 (momentary_breakpoint_from_master): Set the `probe' value.
2574 (add_location_to_breakpoint): Likewise.
2575 (break_command_1): Using proper breakpoint_ops according to the
2576 argument passed by the user in the command line.
2577 (bkpt_probe_insert_location): New function.
2578 (bkpt_probe_remove_location): Likewise.
2579 (bkpt_probe_create_sals_from_address): Likewise.
2580 (bkpt_probe_decode_linespec): Likewise.
2581 (tracepoint_probe_create_sals_from_address): Likewise.
2582 (tracepoint_probe_decode_linespec): Likewise.
2583 (tracepoint_probe_breakpoint_ops): New variable.
2584 (trace_command): Using proper breakpoint_ops according to the
2585 argument passed by the user in the command line.
2586 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2587 static probes on breakpoints and tracepoints.
2588 * breakpoint.h (struct bp_location) <probe>: New field.
2589 * cli-utils.c (skip_spaces_const): New function.
2590 (extract_arg): Likewise.
2591 * cli-utils.h (skip_spaces_const): Likewise.
2592 (extract_arg): Likewise.
2593 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2594 * configure.ac: Append `stap-probe.o' to be generated when ELF
2596 * configure: Regenerate.
2597 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2598 * elfread.c: Include `probe.h' and `arch-utils.h'.
2599 (probe_key): New variable.
2600 (elf_get_probes): New function.
2601 (elf_get_probe_argument_count): Likewise.
2602 (elf_evaluate_probe_argument): Likewise.
2603 (elf_compile_to_ax): Likewise.
2604 (elf_symfile_relocate_probe): Likewise.
2605 (stap_probe_key_free): Likewise.
2606 (elf_probe_fns): New variable.
2607 (elf_sym_fns): Add `sym_probe_fns' value.
2608 (elf_sym_fns_lazy_psyms): Likewise.
2609 (elf_sym_fns_gdb_index): Likewise.
2610 (_initialize_elfread): Initialize objfile cache for static
2612 * gdb_vecs.h (struct probe): New forward declaration.
2613 (probe_p): New VEC declaration.
2614 * gdbarch.c: Regenerate.
2615 * gdbarch.h: Regenerate.
2616 * gdbarch.sh (stap_integer_prefix): New variable.
2617 (stap_integer_suffix): Likewise.
2618 (stap_register_prefix): Likewise.
2619 (stap_register_suffix): Likewise.
2620 (stap_register_indirection_prefix): Likewise.
2621 (stap_register_indirection_suffix): Likewise.
2622 (stap_gdb_register_prefix): Likewise.
2623 (stap_gdb_register_suffix): Likewise.
2624 (stap_is_single_operand): New function.
2625 (stap_parse_special_token): Likewise.
2626 (struct stap_parse_info): Forward declaration.
2627 * i386-tdep.c: Including headers needed to perform the parsing
2628 of SystemTap probes' arguments.
2629 (i386_stap_is_single_operand): New function.
2630 (i386_stap_parse_special_token): Likewise.
2631 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2632 probes' arguments parser.
2633 * i386-tdep.h (i386_stap_is_single_operand): New function.
2634 (i386_stap_parse_special_token): Likewise.
2635 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2636 * mipsread.c (ecoff_sym_fns): Likewise.
2637 * objfiles.c (objfile_relocate1): Support relocation for static
2639 * parse.c (prefixify_expression): Remove static declaration.
2640 (initialize_expout): Likewise.
2641 (reallocate_expout): Likewise.
2642 * parser-defs.h (initialize_expout): Declare function.
2643 (reallocate_expout): Likewise.
2644 (prefixify_expression): Likewise.
2645 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2646 of SystemTap probes' arguments.
2647 (ppc_stap_is_single_operand): New function.
2648 (ppc_stap_parse_special_token): Likewise.
2649 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2650 probes' arguments parser.
2651 * probe.c: New file, for generic statically defined probe support.
2652 * probe.h: Likewise.
2653 * s390-tdep.c: Including headers needed to perform the parsing of
2654 SystemTap probes' arguments.
2655 (s390_stap_is_single_operand): New function.
2656 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2657 probes' arguments parser.
2658 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2659 * stap-probe.c: New file, for SystemTap probe support.
2660 * stap-probe.h: Likewise.
2661 * symfile.h: Include `gdb_vecs.h'.
2662 (struct sym_probe_fns): New struct.
2663 (struct sym_fns) <sym_probe_fns>: New field.
2664 * symtab.c (init_sal): Initialize `probe' field.
2665 * symtab.h (struct probe): Forward declaration.
2666 (struct symtab_and_line) <probe>: New field.
2667 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2669 (stop_tracing): Likewise.
2670 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2672 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2673 Tom Tromey <tromey@redhat.com>
2675 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2676 and to compile agent expressions.
2677 * infrun.c (siginfo_make_value): New argument `ignore'.
2678 (siginfo_funcs): New struct.
2679 (_initialize_infrun): New argument when calling
2680 `create_internalvar_type_lazy'.
2681 * thread.c (thread_id_make_value): New argument `ignore'.
2682 (thread_funcs): New struct.
2683 (_initialize_thread): New argument when calling
2684 `create_internalvar_type_lazy'.
2685 * tracepoint.c (sdata_make_value): New argument `ignore'.
2686 (sdata_funcs): New struct.
2687 (_initialize_tracepoint): New argument when calling
2688 `create_internalvar_type_lazy'.
2689 * value.c (make_value): New struct.
2690 (create_internalvar_type_lazy): New argument `data'.
2691 (compile_internalvar_to_ax): New function.
2692 (value_of_internalvar): Properly handling `make_value' case.
2693 (clear_internalvar): Likewise.
2694 (show_convenience): Adding `TRY_CATCH' block.
2695 * value.h (internalvar_make_value): Delete, replace by...
2696 (struct internalvar_funcs): ... this.
2697 (create_internalvar_type_lazy) <fun>: Delete argument.
2698 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2699 (compile_internalvar_to_ax): New function.
2700 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2701 (tlb_funcs): New struct.
2702 (_initialize_windows_tdep): New argument when calling
2703 `create_internalvar_type_lazy'.
2705 2012-04-27 Mark Wielaard <mjw@redhat.com>
2707 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2708 see whether it is an address or a constant offset from DW_AT_low_pc.
2709 (dwarf2_record_block_ranges): Likewise.
2710 (read_partial_die): Likewise.
2712 2012-04-26 Mark Wielaard <mjw@redhat.com>
2714 * MAINTAINERS (Write After Approval): Add myself to the list.
2716 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2718 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2719 (proc_prettyprint_signal): Likewise.
2720 (proc_prettyprint_faultset): Likewise.
2721 (proc_prettyprint_fault): Likewise.
2722 (proc_prettyprint_actionset): Likewise.
2723 (proc_prettyprint_flags): Move to new proc-flags.c section.
2724 (proc_prettyfprint_flags): New prototype.
2725 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2726 (proc_syscall, proc_cursig): Likewise.
2727 (proc_set_kill_on_last_close): Likewise.
2728 (proc_unset_kill_on_last_close): Likewise.
2729 (proc_set_watchpoint): Make static.
2730 (proc_delete_dead_threads): Likewise.
2731 (procfs_set_watchpoint): Likewise.
2732 (_initialize_procfs): Add prototype.
2733 * proc-events.c: Include proc-utils.h.
2734 (init_syscall_table): Make static.
2735 * proc-api.c (_initialize_proc_api): Add prototype.
2736 * proc-flags.c: Include proc-utils.h.
2738 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2740 * configure.ac: Add AC_ARG_PROGRAM.
2741 * configure: Regenerate.
2743 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2745 Fix DW_AT_lower_bound defaults for DWARF-4+.
2746 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2747 high. New variable low_default_is_valid. Implement DWARF-4+
2748 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2749 no default by the DWARF standard.
2751 2012-04-26 Maciej W. Rozycki <macro@mips.com>
2752 Maciej W. Rozycki <macro@codesourcery.com>
2754 * infrun.c (handle_inferior_event): Move the check for return
2755 trampolines ahead of the check for function trampolines.
2756 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2757 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2758 (mips_str_mips16_ret_stub): Likewise.
2759 (mips_str_call_fp_stub): Likewise.
2760 (mips_str_call_stub): Likewise.
2761 (mips_str_fn_stub): Likewise.
2762 (mips_str_pic): Likewise.
2763 (mips_in_frame_stub): New function.
2764 (mips_unwind_pc): Return the return address rather than the PC
2765 if the PC of an intermediate frame is inside a call thunk.
2766 (mips_is_stub_suffix): New function.
2767 (mips_is_stub_mode): Likewise.
2768 (mips_get_mips16_fn_stub_pc): Likewise.
2769 (mips_skip_mips16_trampoline_code): Update to handle all the
2770 currently generated stub types. Don't recurse into __fn_stub
2771 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2772 Use cooked register accesses.
2773 (mips_in_return_stub): Reintroduce function.
2774 (mips_skip_trampoline_code): Traverse trampolines recursively.
2775 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2777 2012-04-26 Joel Brobecker <brobecker@adacore.com>
2781 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2783 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2784 * features/arm-with-m-vfp-d16.xml: New file. Describes
2785 Cortex-M with VFPv4-sp-d16 FPU register layout.
2786 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2787 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2788 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2789 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2790 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2792 2012-04-25 Doug Evans <dje@google.com>
2794 * cli/cli-decode.c (print_doc_line): Use stream instead of
2797 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2799 * features/arm-with-iwmmxt.c: Regenerate.
2800 * features/arm-with-m-fpa-layout.c: Likewise.
2801 * features/arm-with-m.c: Likewise.
2802 * features/arm-with-neon.c: Likewise.
2803 * features/arm-with-vfpv2.c: Likewise.
2804 * features/arm-with-vfpv3.c: Likewise.
2805 * features/mips-dsp-linux.c: Likewise.
2806 * features/mips-linux.c: Likewise.
2807 * features/mips64-dsp-linux.c: Likewise.
2808 * features/mips64-linux.c: Likewise.
2809 * features/s390-linux32.c: Likewise.
2810 * features/s390-linux32v1.c: Likewise.
2811 * features/s390-linux32v2.c: Likewise.
2812 * features/s390-linux64.c: Likewise.
2813 * features/s390-linux64v1.c: Likewise.
2814 * features/s390-linux64v2.c: Likewise.
2815 * features/s390x-linux64.c: Likewise.
2816 * features/s390x-linux64v1.c: Likewise.
2817 * features/s390x-linux64v2.c: Likewise.
2818 * features/tic6x-c62x-linux.c: Likewise.
2819 * features/tic6x-c62x.c: Likewise.
2820 * features/tic6x-c64x-linux.c: Likewise.
2821 * features/tic6x-c64x.c: Likewise.
2822 * features/tic6x-c64xp-linux.c: Likewise.
2823 * features/tic6x-c64xp.c: Likewise.
2824 * target-descriptions.c: Only generate `field_type' and `type'
2825 variables when needed.
2827 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2829 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2831 2012-04-25 Doug Evans <dje@google.com>
2833 Initial pass at Go language support.
2835 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2837 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2838 (YYFILES): Add go-exp.c.
2839 (YYOBJ): Add go-exp.o.
2840 (local-maintainer-clean): Delete go-exp.c.
2841 * defs.h (enum language): Add language_go.
2842 * dwarf2read.c: #include "go-lang.h".
2843 (fixup_go_packaging): New function.
2844 (process_full_comp_unit): Call it when processing Go CUs.
2845 (dwarf2_physname): Add Go support.
2846 (read_file_scope): Handle missing language spec for GNU Go.
2847 (set_cu_language): Handle DW_LANG_Go.
2848 * go-exp.y: New file.
2849 * go-lang.h: New file.
2850 * go-lang.c: New file.
2851 * go-typeprint.c: New file.
2852 * go-valprint.c: New file.
2853 * symtab.c: #include "go-lang.h".
2854 (symbol_set_language): Handle language_go.
2855 (symbol_find_demangled_name, symbol_set_names): Ditto.
2856 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2858 2012-04-24 Jim Meyering <meyering@redhat.com>
2860 avoid a few strncpy-induced buffer overruns
2861 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2862 fname and psargs before trying to concatenate.
2863 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2864 "name" before applying strchr.
2866 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2868 * CONTRIBUTE: Use unified diff instead of context diff when
2871 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2873 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2874 code. Handle JR.HB correctly.
2876 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2879 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2880 with the other MIPS16 helpers.
2882 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2884 * observer.sh: Conditionally declare `args', thus cleaning up
2885 unused instances of this variable.
2887 2012-04-24 Yao Qi <yao@codesourcery.com>
2889 Revert this patch to allow breakpoint always-inserted
2891 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2892 * breakpoint.c: Include record.h.
2893 (breakpoints_always_inserted_mode): Return false when the record
2896 * breakpoint.c (iterate_over_bp_locations): New.
2897 * breakpoint.h: Declare.
2898 New typedef walk_bp_location_callback.
2899 * record.c (record_open): Call record_init_record_breakpoints.
2900 (record_sync_record_breakpoints): New.
2901 (record_init_record_breakpoints): New.
2902 * NEWS: Mention supporting breakpoint always-inserted mode in
2905 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2907 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2910 2012-04-24 Yao Qi <yao@codesourcery.com>
2912 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2913 (is_catchpoint): ... it.
2914 (print_one_breakpoint_location): Caller update.
2915 * breakpoint.h: Update declaration.
2917 2012-04-23 David S. Miller <davem@davemloft.net>
2919 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2921 2012-04-23 Tom Tromey <tromey@redhat.com>
2923 * buildsym.c (add_free_pendings): Remove.
2924 * buildsym.h (add_free_pendings): Remove.
2926 2012-04-23 Doug Evans <dje@google.com>
2928 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2929 attr.u.unsnd instead of attr.u.addr.
2930 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2931 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2933 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2934 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2936 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2938 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
2940 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2941 (mips_o32_return_value): Likewise.
2942 (mips_o64_return_value): Likewise.
2944 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
2946 * ada-lang.c (ada_evaluate_subexp): Add cases for
2947 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2948 their treatment in eval.c.
2950 2012-04-21 David S. Miller <davem@davemloft.net>
2952 * sparc-tdep.c (X_DISP10): Define.
2953 (sparc_analyze_control_transfer): Handle compare-and-branch.
2955 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
2957 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2958 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2960 2012-04-20 Nigel Stephens <nigel@mips.com>
2961 Maciej W. Rozycki <macro@codesourcery.com>
2963 * mips-tdep.c (mips_float_register_p): New function.
2964 (mips_convert_register_float_case_p): Use mips_float_register_p.
2965 (mips_register_type): Likewise.
2966 (mips_print_register): Likewise.
2967 (print_gp_register_row): Likewise.
2968 (mips_print_registers_info): Likewise.
2970 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
2972 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2975 2012-04-20 Andrew Pinski <apinski@cavium.com>
2977 * MAINTAINERS (Write After Approval): Add myself to the list.
2979 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2981 * MAINTAINERS: Update my e-mail address.
2983 2012-04-20 Pedro Alves <palves@redhat.com>
2985 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
2987 * configure: Regenerate.
2989 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2991 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
2993 * gdb_vecs.h: Declare `const_char_ptr' VEC.
2995 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2997 Fix compilation compatibility with python-2.4
2998 * python/py-type.c (convert_field): Cast ADDRSTRING for
2999 PyObject_SetAttrString as non-const. New comment.
3001 2012-04-19 Tom Tromey <tromey@redhat.com>
3003 * top.c (quit_target): Use all_cleanups.
3004 * main.c (captured_command_loop): Use all_cleanups.
3005 * exceptions.c (throw_exception): Use all_cleanups.
3007 2012-04-19 Pedro Alves <palves@redhat.com>
3009 * Makefile.in (GNULIB_BUILDDIR): New.
3010 (LIBGNU, INCGNU, GNULIB_H): Adjust.
3011 (SUBDIRS): Add $(GNULIB_BUILDDIR).
3012 (CLEANDIRS). Remove gnulib/import.
3013 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
3015 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
3016 (gnulib/import/Makefile): Replace gnulib/import with
3017 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
3018 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
3019 (aclocal_m4_deps): Remove the gnulib dependencies. Add
3020 acx_configure_dir.m4.
3021 * acinclude.m4: Include acx_configure_dir.m4.
3022 * acx_configure_dir.m4: New file.
3023 * aclocal.m4: Regenerate.
3024 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
3025 calls. Configure gnulib using ACX_CONFIGURE_DIR.
3026 (GNULIB): New variable.
3027 (GNULIB_STDINT_H): Adjust.
3028 (AC_OUTPUT): Don't output gnulib/Makefile.
3029 * gdb/defs.h: Include build-gnulib/config.h.
3030 * aclocal.m4: Regenerate.
3031 * config.in: Regenerate.
3032 * configure: Regenerate.
3034 * gnulib/Makefile.in: New file.
3035 * gnulib/configure.ac: New file.
3036 * gnulib/aclocal.m4: New file.
3037 * gnulib/config.in: New file.
3038 * gnulib/configure: New file.
3039 * gnulib/: Re-run gnulib-tool to adjust.
3041 2012-04-19 Doug Evans <dje@google.com>
3043 * cleanups.h (struct cleanup): Move to cleanups.c.
3044 (make_cleanup_dtor_ftype): New typedef.
3045 (make_cleanup_dtor): Use it.
3046 (ALL_CLEANUPS): Replace with ...
3047 (all_cleanups): ... this. Declare. All uses updated.
3048 * cleanups.c: #include "gdb_assert.h".
3049 (sentinel_cleanup): New static global.
3050 (SENTINEL_CLEANUP): Define.
3051 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
3052 (make_my_cleanup2): Assert result is non-NULL.
3053 (all_cleanups): New function.
3054 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
3057 2012-04-19 Pedro Alves <palves@redhat.com>
3059 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
3060 Adjust paths to gnulib imported files.
3062 2012-04-19 Pedro Alves <palves@redhat.com>
3064 * gnulib/: Move whole directory ...
3065 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
3066 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
3067 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
3068 (aclocal_m4_deps): Adjust.
3069 * aclocal.m4: Regenerate.
3070 * configure: Regenerate.
3071 * configure.ac: Adjust AC_OUTPUT output.
3073 2012-04-19 Yao Qi <yao@codesourcery.com>
3075 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
3077 * vec.c: Move it ...
3078 * common/vec.c: ... here.
3079 * vec.h: Move it ...
3080 * common/vec.h: ... here.
3082 2012-04-19 Yao Qi <yao@codesourcery.com>
3084 * gdb-code-style.el: New.
3086 2012-04-18 Pedro Alves <palves@redhat.com>
3088 Update gnulib from latest git.
3089 (639ea5ae15e39fe48d43e04864b2997301e4b969)
3091 * gnulib/Makefile.am: Update.
3092 * gnulib/dummy.c: Update.
3093 * gnulib/extra/arg-nonnull.h: Update.
3094 * gnulib/extra/c++defs.h: Update.
3095 * gnulib/extra/update-copyright: Update.
3096 * gnulib/extra/warn-on-use.h: Update.
3097 * gnulib/inttypes.in.h: Update.
3098 * gnulib/m4/00gnulib.m4: Update.
3099 * gnulib/m4/extensions.m4: Update.
3100 * gnulib/m4/gnulib-cache.m4: Update.
3101 * gnulib/m4/gnulib-common.m4: Update.
3102 * gnulib/m4/gnulib-comp.m4: Update.
3103 * gnulib/m4/gnulib-tool.m4: Update.
3104 * gnulib/m4/include_next.m4: Update.
3105 * gnulib/m4/inttypes-pri.m4: Update.
3106 * gnulib/m4/inttypes.m4: Update.
3107 * gnulib/m4/longlong.m4: Update.
3108 * gnulib/m4/memchr.m4: Update.
3109 * gnulib/m4/memmem.m4: Update.
3110 * gnulib/m4/mmap-anon.m4: Update.
3111 * gnulib/m4/multiarch.m4: Update.
3112 * gnulib/m4/onceonly.m4: Update.
3113 * gnulib/m4/stddef_h.m4: Update.
3114 * gnulib/m4/stdint.m4: Update.
3115 * gnulib/m4/string_h.m4: Update.
3116 * gnulib/m4/warn-on-use.m4: Update.
3117 * gnulib/m4/wchar_h.m4: Update.
3118 * gnulib/m4/wchar_t.m4: Update.
3119 * gnulib/m4/wint_t.m4: Update.
3120 * gnulib/memchr.c: Update.
3121 * gnulib/memmem.c: Update.
3122 * gnulib/stddef.in.h: Update.
3123 * gnulib/stdint.in.h: Update.
3124 * gnulib/str-two-way.h: Update.
3125 * gnulib/string.in.h: Update.
3126 * gnulib/wchar.in.h: Update.
3128 * gnulib/extra/arg-nonnull.h: Delete.
3129 * gnulib/extra/c++defs.h: Delete.
3130 * gnulib/extra/warn-on-use.h: Delete.
3131 * gnulib/m4/wchar_h.m4: Delete.
3132 * gnulib/m4/wint_t.m4: Delete.
3133 * gnulib/wchar.in.h: Delete.
3135 * gnulib/extra/snippets/arg-nonnull.h: New.
3136 * gnulib/extra/snippets/c++defs.h: New.
3137 * gnulib/extra/snippets/warn-on-use.h: New.
3139 * aclocal.m4: Regenerate.
3140 * config.in: Regenerate.
3141 * configure: Regenerate.
3142 * gnulib/Makefile.in: Regenerate.
3144 2012-04-18 Pedro Alves <palves@redhat.com>
3146 Reimport the update-copyright module from gnulib
3147 (250b80067c1e1d8faa0c42fb572f721975b929c5).
3149 * configure: Regenerate.
3150 * gnulib/Makefile.am: Update.
3151 * gnulib/Makefile.in: Regenerate.
3152 * gnulib/extra/update-copyright: Update.
3153 * gnulib/m4/gnulib-cache.m4: Update.
3154 * gnulib/m4/gnulib-comp.m4: Update.
3156 2012-04-18 Tristan Gingold <gingold@adacore.com>
3158 * configure.ac (aix): Put -lpthread into libs.
3159 * configure: Regenerate.
3161 2012-04-18 Tom Tromey <tromey@redhat.com>
3163 * linespec.c (convert_linespec_to_sals): Don't use
3165 (compare_msymbols): Arguments are minsym_and_objfile, not
3166 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
3168 2012-04-18 Pedro Alves <palves@redhat.com>
3170 Revert gnulib/ part of:
3171 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3172 Copyright year update in most files (performed by copyright.sh).
3174 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3176 Fix 64-bit constants on 32-bit hosts.
3177 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
3178 from unsigned long to ULONGEST.
3179 (read_signed_leb128): Change declaration return type from long to
3181 (dwarf2_const_value_attr): Change declaration parameter value from long
3183 (dwarf2_compute_name): Change variable value from long to LONGEST.
3184 (read_unsigned_leb128): Change return type, variable result and some
3185 casts from unsigned long to ULONGEST.
3186 (read_signed_leb128): Change return type, variable result and some
3187 casts from long to LONGEST.
3188 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
3189 value from long to LONGEST.
3190 (dwarf2_const_value): Change variable value from long to LONGEST.
3191 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
3192 plongest and hex_string.
3193 * symtab.h (struct general_symbol_info): Change ivalue from long to
3194 LONGEST, remove the comment.
3195 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
3196 Change SYMBOL_VALUE format strings to use plongest and hex_string.
3198 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
3201 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
3202 * ada-lang.c (ada_discrete_type_high_bound)
3203 (ada_discrete_type_low_bound): Fix function comment. Use
3204 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3205 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
3206 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3207 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
3208 Use TYPE_FIELD_ENUMVAL.
3209 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
3210 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3211 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
3212 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
3214 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
3215 * dwarf2read.c (process_enumeration_scope): Likewise.
3216 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
3218 (class StructMainTypePrettyPrinter): Support also
3219 FIELD_LOC_KIND_ENUMVAL.
3220 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
3222 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3223 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
3224 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
3225 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
3227 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
3228 accommodate enumval.
3229 (struct call_site): Adjust loc_kind to accommodate enumval.
3230 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
3231 (TYPE_FIELD_ENUMVAL): New macros.
3232 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
3233 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
3235 * p-typeprint.c (pascal_type_print_base): Likewise.
3236 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
3238 * python/lib/gdb/types.py (make_enum_dict): Likewise.
3239 * python/py-type.c (convert_field): New variable addrstring. Use
3240 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3241 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
3242 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
3243 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
3245 * valprint.c (generic_val_print): Likewise.
3247 2012-04-17 Doug Evans <dje@google.com>
3249 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
3251 * dwarf2read.c: Whitespace fixes.
3252 (lookup_signatured_type): Tweak comment.
3253 (get_die_type_at_offset): Fix comment.
3255 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3257 * xcoffread.c (xcoff_secnum_to_sections): New function.
3258 (secnum_to_section, secnum_to_bfd_section): Reimplement
3259 using xcoff_secnum_to_sections. Rename "secnum" parameter
3261 (RECORD_MINIMAL_SYMBOL): Delete.
3262 (record_minimal_symbol): New function.
3263 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
3264 by call to record_minimal_symbol and set misc_func_recorded
3265 to 1. Set last_csect_sec to the XCOFF section index instead
3266 of GDB's section_offset index. Update calls to
3267 prim_record_minimal_symbol_and_info to pass the BFD section
3270 2012-04-17 Joel Brobecker <brobecker@adacore.com>
3272 * xcoffread.c (read_xcoff_symtab): Delete variables
3273 last_csect_val and last_csect_sec and associated code.
3275 2012-04-17 Doug Evans <dje@google.com>
3277 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
3278 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3279 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
3280 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
3282 * cleanups.h: New file.
3283 * cleanups.c: New file.
3284 * Makefile.in (SFILES): Add cleanups.c.
3285 (HFILES_NO_SRCDIR): Add cleanups.h.
3286 (COMMON_OBS): Add cleanups.o.
3287 * defs.h (struct cleanup): Moved to cleanups.h.
3288 (do_cleanups,do_final_cleanups): Ditto.
3289 (discard_cleanups,discard_final_cleanups): Ditto
3290 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3291 (save_cleanups,save_final_cleanups): Ditto.
3292 (restore_cleanups,restore_final_cleanups): Ditto.
3293 (null_cleanup): Ditto.
3294 (make_my_cleanup,make_my_cleanup2): Ditto.
3295 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3296 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
3297 (do_cleanups,do_final_cleanups): Ditto.
3298 (discard_cleanups,discard_final_cleanups): Ditto
3299 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3300 (save_cleanups,save_final_cleanups): Ditto.
3301 (restore_cleanups,restore_final_cleanups): Ditto.
3302 (null_cleanup): Ditto.
3303 (make_my_cleanup,make_my_cleanup2): Ditto.
3304 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3306 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
3308 (make_cleanup_dyn_string_delete): Ditto.
3309 (make_cleanup_ui_file_delete): Ditto.
3310 (make_cleanup_ui_out_redirect_pop): Ditto.
3311 (make_cleanup_free_section_addr_info): Ditto.
3312 (make_cleanup_restore_integer): Ditto.
3313 (make_cleanup_unpush_target): Ditto.
3314 (make_cleanup_value_free_to_mark): Ditto.
3315 (make_cleanup_value_free): Ditto.
3316 (make_cleanup_free_so): Ditto.
3318 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3320 New option "set debug auto-load".
3321 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
3322 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
3323 (auto_load_safe_path_vec_update)
3324 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
3326 (file_is_auto_load_safe): New parameters debug_fmt and ....
3327 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
3328 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
3329 caller by explanatory string.
3330 (_initialize_auto_load): Register "set debug auto-load".
3331 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
3333 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3334 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3335 by explanatory string.
3336 * main.c (captured_main): Likewise.
3337 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3338 (source_section_scripts): Likewise.
3340 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3342 New option "set auto-load safe-path".
3343 * NEWS: New commands "set auto-load safe-path"
3344 and "show auto-load safe-path".
3345 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3346 (auto_load_safe_path, auto_load_safe_path_vec)
3347 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3348 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3349 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3350 (source_gdb_script_for_objfile): New variable is_safe. Call
3351 file_is_auto_load_safe. Return if it is not.
3352 (struct loaded_script): New field loaded.
3353 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
3354 (print_script): Use LOADED indicator instead of FULL_PATH. Change
3355 output "Missing" to "No".
3356 (_initialize_auto_load): New variable cmd. Initialize
3357 auto_load_safe_path. Register "set auto-load safe-path",
3358 "show auto-load safe-path" and "add-auto-load-safe-path".
3359 * auto-load.h (maybe_add_script): Add parameter loaded.
3360 (file_is_auto_load_safe): New declaration.
3361 * config.in: Regenerate.
3362 * configure: Regenerate.
3363 * configure.ac: New parameters --with-auto-load-safe-path
3364 and --without-auto-load-safe-path.
3365 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3366 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3367 * main.c (captured_main): Check file_is_auto_load_safe for
3369 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3370 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
3371 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
3374 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3376 auto-load: Implementation.
3377 * NEWS: New descriptions for "info auto-load",
3378 "info auto-load gdb-scripts", "info auto-load python-scripts",
3379 "info auto-load local-gdbinit" and "info auto-load libthread-db".
3380 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3381 and "show auto-load-scripts". New description for "set auto-load",
3382 "show auto-load", "set auto-load gdb-scripts",
3383 "show auto-load gdb-scripts", "set auto-load python-scripts",
3384 "show auto-load python-scripts", "set auto-load local-gdbinit",
3385 "show auto-load local-gdbinit", "set auto-load libthread-db" and
3386 "show auto-load libthread-db".
3387 * auto-load.c: Remove include python/python-internal.h. Add includes
3388 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3390 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3391 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3392 (gdbpy_global_auto_load): Rename to ...
3393 (global_auto_load): ... here.
3394 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3395 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3396 (script_language_gdb, source_gdb_script_for_objfile): New.
3397 (struct loaded_script): New field language.
3398 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3400 (maybe_add_script): Add parameter language. Drop redundant
3401 entry.full_path initialization. Initialize entry.language and
3403 (auto_load_objfile_script): Change parameter suffix to language.
3404 Remove the call of maybe_add_script.
3405 Call language->source_script_for_objfile.
3406 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3408 (collect_matching_scripts): Adjust it for
3409 struct collect_matching_scripts_data.
3410 (auto_load_info_scripts_pattern_nl): New variable.
3411 (info_auto_load_scripts): Rename to ...
3412 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3413 for struct collect_matching_scripts_data.
3414 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3415 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3416 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3417 (auto_load_info_cmdlist_get): New.
3418 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3419 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3420 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3421 "info auto-load local-gdbinit".
3422 * auto-load.h (struct script_language): New.
3423 (gdbpy_global_auto_load): Rename to ...
3424 (global_auto_load): ... here.
3425 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3426 (auto_load_local_gdbinit_loaded): New declarations.
3427 (maybe_add_script): New parameter language.
3428 (auto_load_objfile_script): Change parameter suffix to language.
3429 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3430 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3431 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3433 * linux-thread-db.c: Include auto-load.h and ctype.h.
3434 (auto_load_thread_db, show_auto_load_thread_db): New.
3435 (struct thread_db_info): New field filename.
3436 (delete_thread_db_info): Call xfree for FILENAME.
3437 (try_thread_db_load): Initialize FILENAME.
3438 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3439 if !AUTO_LOAD_THREAD_DB.
3440 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3441 (_initialize_thread_db): Install auto_load_thread_db
3442 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3443 as "info auto-load libthread-db".
3444 * main.c (captured_main): Rename gdbpy_global_auto_load to
3445 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3446 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3447 (print_gdb_help): Extend the help for 'local init file'.
3448 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3449 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3450 (auto_load_scripts): Rename to ...
3451 (auto_load_python_scripts): ... here, update the comment.
3452 (gdbpy_load_auto_script_for_objfile): New declaration.
3453 (show_auto_load_python_scripts, script_language_python)
3454 (gdbpy_load_auto_script_for_objfile): New.
3455 (source_section_scripts): Refactor the code.
3456 (load_auto_scripts_for_objfile): Rename to ...
3457 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3458 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3459 (info_auto_load_python_scripts): New.
3460 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3461 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3462 Register "set auto-load-scripts" as its deprecated alias. Register
3463 "info auto-load python-scripts". Register "info auto-load-scripts" as
3464 its deprecated alias.
3465 (load_auto_scripts_for_objfile): Rename to ...
3466 (gdbpy_load_auto_scripts_for_objfile): ... here.
3467 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3468 (gdbpy_load_auto_scripts_for_objfile): ... here.
3470 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3472 auto-load: Move files.
3473 * Makefile.in (SFILES): Add auto-load.c.
3474 (HFILES_NO_SRCDIR): Add auto-load.h.
3475 (COMMON_OBS): Add auto-load.o.
3476 (distclean): Change .gdbinit for gdb-gdb.gdb.
3477 * auto-load.c: New file, with parts from python/py-auto-load.c.
3478 * auto-load.h: New file, with parts from python/python.h.
3479 * configure: Regenerate.
3480 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3481 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3482 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3483 * main.c: Include auto-load.h.
3484 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3485 command.h, observer.h and progspace.h to auto-load.c. Add include
3487 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3488 (struct loaded_script, auto_load_pspace_data)
3489 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3490 (hash_loaded_script_entry, eq_loaded_script_entry)
3491 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3492 (maybe_add_script): Move to auto-load.c.
3493 (source_section_scripts): Change maybe_add_script parameters passing,
3494 use script_not_found_warning_print.
3495 (clear_section_scripts, auto_load_objfile_script)
3496 (auto_load_new_objfile, loaded_script_ptr)
3497 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3498 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3499 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3500 auto_load_new_objfile and info_auto_load_scripts initizations to
3502 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3504 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3507 * charset.c (find_charset_names): Remove variables ix and elt.
3508 Use free_char_ptr_vec.
3509 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3510 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3511 debugdir_end. New variable debugdir_len.
3512 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3513 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3515 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3516 and elt. Use free_char_ptr_vec.
3517 * source.c (add_path): Remove variables argv, arg and argv_index.
3518 New variables dir_vec, back_to, ix and name.
3519 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3520 make_cleanup_freeargv. Remove variable separator. Simplify the code
3521 no longer expecting DIRNAME_SEPARATOR.
3522 (openp): Remove variable p, p1 and len. New variables dir_vec,
3523 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3524 no longer expecting DIRNAME_SEPARATOR.
3525 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3526 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3528 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3529 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3530 (dirnames_to_char_ptr_vec): New functions.
3532 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3535 * source.c (add_path): Remove always true conditional 'p == 0' and
3536 unindent its code block.
3538 2012-04-17 Pedro Alves <palves@redhat.com>
3540 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3541 (FIELD_BITPOS_LVAL): ... this.
3542 (FIELD_BITPOS): New.
3543 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3544 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3545 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3547 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3549 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3550 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3551 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3554 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3556 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3557 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3558 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3559 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3560 * jv-lang.c (java_link_class_type): Likewise, once.
3561 * stabsread.c (read_enum_type): Likewise.
3563 2012-04-16 Yao Qi <yao@codesourcery.com>
3565 * common/agent.c (agent_run_command): Add one more parameter `len'.
3567 * common/agent.h: Update declaration.
3568 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3570 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3572 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3575 * value.c (value_actual_type): New function.
3576 * value.h (value_actual_type): New declaration.
3577 * varobj.c (update_type_if_necessary): New function.
3578 (varobj_create): Call value_actual_type instead of
3580 (install_dynamic_child): distinct changed and type changed MI variable
3582 (update_dynamic_varobj_children): Updated for install_dynamic_child
3583 change. All callers updated.
3584 (varobj_update): Support for MI variable object type change if
3585 the value changed and RTTI is used to determine the type.
3586 (create_child_with_value): Call value_actual_type instead of
3588 (adjust_value_for_child_access): Extended with a new parameter which
3589 specify whether the given value should be casted to enclosing type.
3590 All callers updated.
3592 2012-04-14 Yao Qi <yao@codesourcery.com>
3594 Import gnulib module inttypes from git
3595 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3596 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3597 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3598 gnulib/m4/inttypes-pri.m4
3599 * aclocal.m4, config.in, configure: Regenerated.
3600 * gnulib/Makefile.am: Update.
3601 * gnulib/Makefile.in: Update.
3602 * gnulib/m4/gnulib-cache.m4: Update.
3603 * gnulib/m4/gnulib-comp.m4: Update.
3604 * gnulib/inttypes.in.h: New.
3605 * gnulib/m4/inttypes-pri.m4: New.
3606 * gnulib/m4/inttypes.m4: New.
3608 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
3610 * infrun.c (resume): Update PC address to the real PC after
3611 preparing to do displaced stepping.
3613 2012-04-12 Doug Evans <dje@google.com>
3615 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3616 All callers updated.
3618 2012-04-12 Mark Kettenis <kettenis@gnu.org>
3620 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3622 2012-04-12 Doug Evans <dje@google.com>
3624 * dwarf2read.c (create_all_type_units): Renamed from
3625 create_debug_types_hash_table. All callers updated.
3627 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3628 local type_sig to sig_type, type_offset to type_offset_in_tu.
3629 (hash_signatured_type): Renamed from hash_type_signature,
3630 all callers updated.
3631 (eq_signatured_type): Renamed from eq_type_signature,
3632 all callers updated.
3633 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3634 (process_enumeration_scope): Ditto.
3635 (lookup_signatured_type_at_offset): Ditto.
3636 (load_full_type_unit, read_signatured_type): Ditto.
3638 2012-04-12 Yao Qi <yao@codesourcery.com>
3640 * remote.c (async_remote_interrupt): Correct function name in
3642 (async_remote_interrupt_twice): Ditto.
3644 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3646 * source.c (find_and_open_source): Consistently pass resulting
3647 full path through xfullpath.
3649 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3651 Provide more specific displaced-stepping memory error message.
3652 * infrun.c (displaced_step_prepare): New variable status. Call
3653 target_read_memory instead of read_memory, provide more specific
3656 2012-04-11 Tristan Gingold <gingold@adacore.com>
3659 * darwin-nat.c (darwin_execvp): Revert previous patch.
3661 2012-04-11 Tristan Gingold <gingold@adacore.com>
3664 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3667 2012-04-11 Tristan Gingold <gingold@adacore.com>
3669 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3672 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3674 New command 'explore' which helps explore values and types in
3676 * NEWS: Add an entry about the new 'explore' command.
3677 * data-directory/Makefile.in: Add gdb/command/explore.py
3678 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3679 command using the GDB Python API.
3681 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3683 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3684 extension in jump target calculation.
3686 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3688 * mips-tdep.c (mips32_next_pc): Handle JALX.
3690 2012-04-10 Yao Qi <yao@codesourcery.com>
3692 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3694 2012-04-10 Yao Qi <yao@codesourcery.com>
3696 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3697 and gnulib/m4/gnulib-tool.m4.
3699 2012-04-10 Doug Evans <dje@google.com>
3701 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3702 (load_partial_dies): Clarify comment.
3703 (find_partial_die): Support rereading type units.
3704 Clarify CU handling, if we know offset is in CU, don't search for the
3705 containing CU. Add comment regarding memory waste.
3707 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3709 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3710 i386/x32-avx and i386/x32-avx-linux.
3711 (i386/x32-expedite): New.
3712 (i386/x32-linux-expedite): Likewise.
3713 (i386/x32-avx-expedite): Likewise.
3714 (i386/x32-avx-linux-expedite): Likewise.
3715 ($(outdir)/i386/x32.dat): Likewise.
3716 ($(outdir)/i386/x32-linux.dat): Likewise.
3717 ($(outdir)/i386/x32-avx.dat): Likewise.
3718 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3720 * features/i386/x32-avx-linux.xml: New file.
3721 * features/i386/x32-avx.xml: Likewise.
3722 * features/i386/x32-core.xml: Likewise.
3723 * features/i386/x32-linux.xml: Likewise.
3724 * features/i386/x32.xml: Likewise.
3726 * features/i386/x32-avx-linux.c: New. Generated.
3727 * features/i386/x32-avx.c: Likewise.
3728 * features/i386/x32-linux.c: Likewise.
3729 * features/i386/x32.c: Likewise.
3730 * regformats/i386/x32-avx-linux.dat: Likewise.
3731 * regformats/i386/x32-avx.dat: Likewise.
3732 * regformats/i386/x32-linux.dat: Likewise.
3733 * regformats/i386/x32.dat: Likewise.
3735 2012-04-10 Tristan Gingold <gingold@adacore.com>
3737 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3738 code to kill the inferior.
3740 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3742 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3744 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3746 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3747 (yyvsp): New defines.
3748 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3750 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3752 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3754 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3756 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3759 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3761 * sparc64-tdep.c (sparc64_store_arguments)
3762 (sparc64_store_arguments): Fix coding style.
3764 2012-04-07 Mark Kettenis <kettenis@gnu.org>
3766 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3767 complex floats, adjust some related comments and tighten a related
3769 (sparc64_extract_return_value): Handle complex floats.
3771 2012-04-07 Doug Evans <dje@google.com>
3773 * dwarf2read.c (load_partial_dies): Change condition to assert.
3775 2012-04-06 Doug Evans <dje@google.com>
3777 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3780 2012-04-05 Kevin Buettner <kevinb@redhat.com>
3782 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3784 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3785 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3788 2012-04-05 Keith Seitz <keiths@redhat.com>
3790 * linespec.c (decode_compound): Remove.
3791 (enum offset_relative_sign): New enum.
3792 (struct line_offset): New struct.
3793 (struct linespec): New struct.
3794 (struct linespec_state): Move file_symtabs,
3795 user_filename, and user_function into struct linespec.
3796 Make result an anonymous struct holding vectors of
3797 symbolp and minsym_and_objfile_d.
3798 Add language member.
3799 (enum ls_token_type): New enum.
3800 (linespec_keywords): New array.
3801 (struct ls_token): New struct.
3802 (struct ls_parser): New struct.
3803 (linespec_lexer_lex_number): New function.
3804 (linespec_lexer_lex_keyword): New function.
3805 (is_ada_operator): New function.
3806 (skip_quote_char): New function.
3807 (copy_token_string): New function.
3808 (is_closing_quote_enclosed): New function.
3809 (find_parameter_list_end): New function.
3810 (linespec_lexer_lex_string): New function.
3811 (linespec_lexer_lex_one): New function.
3812 (linespec_lexer_consume_token): New function.
3813 (linespec_lexer_peek_token): New function.
3814 (cplusplus_error): Remove unused function.
3815 (find_methods): Update comment.
3816 (find_toplevel_char): Return const.
3817 (is_objc_method_format): Remove unused function.
3818 (find_toplevel_string): New function.
3819 (is_linespec_boundary): Remove.
3820 (symbol_not_found_error): New function.
3821 (find_method_overload_end): Remove function.
3822 (unexpected_linespec_error): New function.
3823 (keep_name_info): Remove.
3824 (linespec_parse_line_offset): New function.
3825 (linespec_parse_basic): New function.
3826 (canonicalize_linespec): New function.
3827 (decode_line_internal): Remove.
3828 (create_sals_line_offset): New function adapted from
3830 (convert_linespec_to_sals): New function.
3831 (parse_linespec): New function.
3832 (linespec_parser_new): New function.
3833 (linespec_state_destructor): Change parameter type to
3834 struct linespec_state *.
3835 Add language parameter.
3836 Remove freeing of moved members.
3837 (linespec_parser_delete): New function.
3838 (decode_line_full): Use parse_linespec and linespec_parser_new.
3839 (decode_line_1): Likewise.
3840 (decode_indirect): Rename to ...
3841 (linespec_expression_to_pc): ... this and rewrite
3842 to simply find CORE_ADDR, storing this result for later
3844 (locate_first_half): Remove.
3845 (deocde_objc): Add parameter LS.
3846 Initialize new struct collect_info members.
3847 Handle minimal symbols, too.
3848 (decode_compound): Delete.
3849 (lookup_prefix_sym): Rewrite.
3850 (compare_msymbols): New function.
3851 (find_method): Rewrite.
3852 Do not call cplusplus_error.
3853 (symtabs_from_filename): Rewrite.
3854 (collect_function_symbols): Delete.
3855 (find_function_symbols): Rewrite without ARGPTR-style
3857 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3858 (decode_dollar): Adapted and renamed to ...
3859 (linespec_parse_variable): ... this.
3860 (find_linespec_symbols): New function.
3861 (decode_label): Adapted and renamed to ...
3862 (find_label_symbols): ... this.
3863 (decode_digits_list_mode): Add and use LS argument.
3864 (decode_digits_ordinary): Likewise.
3865 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3866 If in list mode, allow any symbol class. Otherwise, only
3867 permit LOC_BLOCK symbols.
3868 (minsym_found): Update comments.
3869 (search_minsyms_for_name): Do not convert the matching symbol
3870 into a SAL. Simply push the symbol and objfile into the
3872 (decode_variable): Delete. Contents adapted into
3873 find_linespec_symbols.
3875 * cp-support.c (SKIP_SPACE): Remove.
3876 (operator_tokens): Remove unused global.
3877 (cp_validate_operator): Remove.
3878 * cp-support.h (cp_validate_operator): Remove declaration.
3880 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3882 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3883 for TYPE_VPTR_FIELDNO.
3884 * valprint.c (valprint_check_validity): Make it global, move the
3885 function comment ...
3886 * value.h (valprint_check_validity): ... to this new declaration.
3888 2012-04-02 Tristan Gingold <gingold@adacore.com>
3890 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3891 the STATE32 api for i386 state.
3892 (i386_darwin_store_inferior_registers): Likewise.
3894 2012-04-02 Tristan Gingold <gingold@adacore.com>
3896 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3898 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3901 2012-04-02 Tristan Gingold <gingold@adacore.com>
3904 * darwin-nat.c (darwin_execvp): Set binary preference.
3906 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3908 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3910 2012-03-30 Tom Tromey <tromey@redhat.com>
3912 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3913 of TRY_CATCH. Fix error handling.
3914 * python/py-value.c (convert_value_from_python): Move 'old'
3915 declaration to innermost scope.
3917 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3918 Andrey Smirnov <andrew.smirnov@gmail.com>
3920 -Wshadow warning fix.
3921 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3922 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3923 Adjust code accordingly.
3925 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3927 * ada-lang.c (symbol_completion_add): Rename parameter
3928 "encoded" into "encoded_p". Ajust code and documentation
3931 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3932 Andrey Smirnov <andrew.smirnov@gmail.com>
3934 -Wshadow warning fix.
3935 * ada-lang.c (symbol_completion_add): Rename parameter
3936 "wild_match" into wild_match_p. Update code and documentation
3939 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3941 * ada-lang.c (symbol_completion_match): Rename parameter
3942 "encoded" into "encoded_p". Ajust code and documentation
3945 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3946 Andrey Smirnov <andrew.smirnov@gmail.com>
3948 -Wshadow warning fix.
3949 * ada-lang.c (symbol_completion_match): Rename parameter
3950 "wild_match" into "wild_match_p". Adjust code and function
3951 documentation accordingly.
3953 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3954 Andrey Smirnov <andrew.smirnov@gmail.com>
3956 -Wshadow warning fix.
3957 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3958 "symbol_info" into "info". Adjust code accordingly.
3959 (ada_lookup_symbol): Likewise.
3961 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3963 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3964 of this function's documentation.
3966 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3967 Andrey Smirnov <andrew.smirnov@gmail.com>
3969 -Wshadow warning fix.
3970 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3971 variable into "wild_match_p". Adjust code accordingly.
3973 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3974 Andrey Smirnov <andrew.smirnov@gmail.com>
3976 -Wshadow warning fix.
3977 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3978 parameter into "wild_match_p". Adjust code accordingly.
3979 Document this parameter in the function description.
3981 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3982 Andrey Smirnov <andrew.smirnov@gmail.com>
3984 -Wshadow warning fix.
3985 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
3986 "wild_match" parameter to "wild_match_p" (-Wshadow).
3988 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3990 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
3991 in function documentation.
3993 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3994 Andrey Smirnov <andrew.smirnov@gmail.com>
3996 -Wshadow warning fix.
3997 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
3998 variable into wild_match_p. Adjust code accordingly.
4000 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4001 Andrey Smirnov <andrew.smirnov@gmail.com>
4003 * ada-valprint.c (ada_val_print_1): Move the code handling
4004 TYPE_CODE_ENUM inside its own lexical block. Declare
4005 variables len and val there, instead of in the function's
4006 top level block. Avoid declaring deref_val again in a way
4007 that shadows another variable of the same name declared
4008 in one of the up-level blocks. Just re-use the up-level
4011 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4013 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
4014 Replace block_found argument by symbol_info. Adjust
4015 implementation accordingly. Add function documentation.
4016 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
4018 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
4019 * ada-exp.y (write_object_renaming): Adjust to new
4020 ada_lookup_encoded_symbol API.
4022 2012-03-29 Joel Brobecker <brobecker@adacore.com>
4024 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
4027 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
4029 * v850-tdep.c: Add the enum values for mpu and fpu registers.
4030 (v850_register_name): Add the mpu and fpu register names.
4031 (v850e_register_name): Add the mpu and fpu register names.
4032 (v850e2_register_name): New function.
4033 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
4036 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4038 * NEWS: Add entry for Ada varobj support.
4040 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4042 * varobj.c (default_value_is_changeable_p): New function,
4043 extracted from varobj_value_is_changeable_p. Add declaration.
4044 (ada_value_is_changeable_p): New function, extracted from
4045 varobj_value_is_changeable_p. Add declaration.
4046 (struct language_specific): New field "value_is_changeable_p".
4047 (languages): Add entries for new field.
4048 (varobj_create): Set language before calling install_new_value.
4049 (varobj_value_is_changeable_p): Reimplement to call the varobj's
4050 "value_is_changeable_p" language callback.
4052 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4054 * ada-varobj.h, ada-varobj.c: New files.
4055 * Makefile.in (SFILES): Add ada-varobj.c.
4056 (HFILES_NO_SRCDIR): Add ada-varobj.h.
4057 (COMMON_OBS): Add ada-varobj.o.
4059 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4061 * varobj.c (ada_value_has_mutated): Add declaration. New function.
4062 (struct language_specific): New field "value_has_mutated".
4063 (languages): Set field "value_has_mutated" in each entry of array.
4064 (varobj_value_has_mutated): New function.
4065 (varobj_udpdate): Add handling of type mutation.
4066 (value_of_root): Add handling of type mutation.
4067 (ada_value_has_mutated): New function.
4069 2012-03-28 Pedro Alves <palves@redhat.com>
4071 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
4072 Always supply $fr0 as 0.0 and $fr1 as 1.0.
4074 2012-03-28 Tom Tromey <tromey@redhat.com>
4076 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
4077 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
4080 2012-03-28 Tom Tromey <tromey@redhat.com>
4082 * .dir-locals.el: New file.
4084 2012-03-28 Pedro Alves <palves@redhat.com>
4086 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
4088 2012-03-28 Joel Brobecker <brobecker@adacore.com>
4090 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
4093 2012-03-27 Pedro Alves <palves@redhat.com>
4095 Eliminate struct ui_stream.
4097 * ui-out.h (struct ui_stream): Delete.
4098 (ui_out_field_stream): Adjust prototype.
4099 (ui_out_stream_new, ui_out_stream_delete)
4100 (make_cleanup_ui_out_stream_delete): Delete declarations.
4101 * ui-out.c (ui_out_field_stream): Change prototype to take a
4102 ui_file instead of a ui_stream. Adjust.
4103 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
4104 (make_cleanup_ui_out_stream_delete): Delete.
4105 * breakpoint.c (print_breakpoint_location)
4106 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
4107 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4108 * disasm.c (dump_insns): Ditto.
4109 (do_mixed_source_and_assembly, do_assembly_only): Adjust
4111 (gdb_disassembly): Use ui_file/mem_fileopen instead of
4112 ui_stream/ui_out_stream_new.
4113 * infcmd.c (print_return_value): Ditto.
4114 * osdata.c (info_osdata_command): Don't allocate a local
4116 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
4117 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4118 * tracepoint.c (print_one_static_tracepoint_marker): Don't
4119 allocate a local ui_stream.
4120 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
4121 instead of ui_stream/ui_out_stream_new.
4122 (list_args_or_locals): Don't allocate a local ui_stream.
4123 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
4124 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
4125 ui_stream/ui_out_stream_new.
4126 * cli/cli-setshow.c (do_setshow_command): Ditto.
4128 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
4130 * arm-linux-tdep.c (arm_linux_init_abi): Call
4131 set_gdbarch_process_record. Initialize `arm_swi_record' field.
4132 * arm-tdep.c (arm_process_record): New function.
4133 (deallocate_reg_mem): New function.
4134 (decode_insn): New function.
4135 (thumb_record_branch): New function.
4136 (thumb_record_ldm_stm_swi(): New function.
4137 (thumb_record_misc): New function.
4138 (thumb_record_ld_st_stack): New function.
4139 (thumb_record_ld_st_imm_offset): New function.
4140 (thumb_record_ld_st_reg_offset(): New function.
4141 (thumb_record_add_sub_cmp_mov): New function.
4142 (thumb_record_shift_add_sub): New function.
4143 (arm_record_coproc_data_proc): New function.
4144 (arm_record_coproc): New function.
4145 (arm_record_b_bl): New function.
4146 (arm_record_ld_st_multiple): New function.
4147 (arm_record_ld_st_reg_offset): New function.
4148 (arm_record_ld_st_imm_offset): New function.
4149 (arm_record_data_proc_imm): New function.
4150 (arm_record_data_proc_misc_ld_str): New function.
4151 (arm_record_extension_space): New function.
4152 (arm_record_strx): New function.
4153 (sbo_sbz): New function.
4154 (struct insn_decode_record): New structure for arm insn record.
4155 (REG_ALLOC): New macro for reg allocations.
4156 (MEM_ALLOC): New macro for memory allocations.
4157 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
4159 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
4161 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
4162 (store_register): Likewise.
4164 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
4166 * MAINTAINERS (Write After Approval): Add myself to the list.
4168 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4170 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
4171 Describe also the option "auto".
4173 2012-03-22 Richard Henderson <rth@redhat.com>
4175 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
4176 * sparc-nat.c (sparc_xfer_wcookie): Make static.
4178 2012-03-22 Richard Henderson <rth@redhat.com>
4180 * jit.c (jit_read_code_entry): Compute alignment and offset of
4181 int64_t member before computing entry_size.
4183 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4185 Python scripting: Add new method Value.referenced_value to
4186 gdb.Value which can dereference pointer as well as reference
4188 * NEWS: Add entry under 'Python scripting' about the new method
4189 Value.referenced_value on gdb.Value objects.
4190 * python/py-value.c (valpy_referenced_value): New function
4191 defining a new method on gdb.Value objects which can dereference
4192 pointer and reference values.
4194 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4196 * MAINTAINERS (Write After Approval): Add myself to the list.
4198 2012-03-21 Kevin Buettner <kevinb@redhat.com>
4200 * symtab.c (skip_prologue_sal): Change test to check for "main()"
4201 in addition to "main".
4203 2012-03-21 Joel Brobecker <brobecker@adacore.com>
4205 * expression.h (op_name): Add declaration.
4206 * expprint.c (op_name): Remove declaration. Make non-static.
4207 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
4209 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
4211 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
4213 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
4214 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4215 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
4216 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
4217 (linux_nat_get_siginfo): Likewise.
4218 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
4219 (linux_nat_get_siginfo): Likewise.
4220 * linux-tdep.c (linux_get_siginfo_type): Likewise.
4221 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
4222 * procfs.c (gdb_siginfo_t): Likewise.
4224 2012-03-21 Mike Frysinger <vapier@gentoo.org>
4226 * .gitignore: Ignore more files.
4228 2012-03-20 Pedro Alves <palves@redhat.com>
4230 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
4233 2012-03-20 Yao Qi <yao@codesourcery.com>
4235 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
4238 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4240 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
4241 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
4242 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
4244 * dwarf2expr.h (cu_offset, sect_offset): New types.
4245 (struct dwarf_expr_context_funcs) <dwarf_call>
4246 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
4248 (struct dwarf_expr_context) <len>: Improve the comment.
4249 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
4250 cu_offset and sect_offset.
4251 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
4252 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
4253 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
4254 * dwarf2loc.h: Include dwarf2expr.h.
4255 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
4257 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
4258 Improve the comment.
4259 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
4260 (struct signatured_type, struct line_header, struct partial_die_info)
4261 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
4262 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
4263 (get_die_type_at_offset, create_cus_from_index)
4264 (create_signatured_type_table_from_index, dw2_get_file_names)
4265 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
4266 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
4267 (create_debug_types_hash_table, process_psymtab_comp_unit)
4268 (load_partial_comp_unit, create_all_comp_units)
4269 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
4270 (load_full_comp_unit, dwarf2_physname, read_import_statement)
4271 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4272 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
4273 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
4274 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
4275 (find_partial_die, read_attribute_value, lookup_die_type)
4276 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
4277 (is_ref_attr): New function comment.
4278 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
4279 Use cu_offset and sect_offset.
4280 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
4281 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
4282 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
4283 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
4284 (offset_and_type_hash, offset_and_type_eq, set_die_type)
4285 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
4286 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
4289 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4292 * python/py-auto-load.c (source_section_scripts): New variable back_to.
4293 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
4295 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
4297 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4299 * NEWS: Describe new options --init-command=FILE, -ix and
4300 --init-eval-command=COMMAND, -iex.
4301 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
4302 CMDARG_INIT_COMMAND.
4303 (captured_main): New enum items OPT_IX and OPT_IEX. Add
4304 "init-command", "init-eval-command", "ix" and "iex" to the variable
4305 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
4306 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
4307 (print_gdb_help): Describe --init-command=FILE, -ix and
4308 --init-eval-command=COMMAND, -iex.
4310 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4313 * main.c (struct cmdarg): Move it here from main. Add more comments.
4314 (cmdarg_s, VEC (cmdarg_s)): New.
4315 (main): Move struct cmdarg from here. New variables cmdarg_vec and
4316 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
4317 Install cleanup for cmdarg_vec. Update filling for options 'x' and
4318 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
4321 2012-03-19 Tom Tromey <tromey@redhat.com>
4323 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
4325 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4328 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
4331 2012-03-16 Chris January <chris.january@allinea.com>
4333 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4336 2012-03-16 Chris January <chris.january@allinea.com>
4338 * source.c (add_path): Use memmove instead of strcpy because the
4341 2012-03-16 Joel Brobecker <brobecker@adacore.com>
4343 * value.h (set_value_parent): Add declaration.
4344 * value.c (set_value_parent): New function.
4345 (value_address): If VALUE->PARENT is not NULL, then use it as
4346 the base address instead of VALUE->LOCATION.address.
4347 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4348 the same as OBJ's address. Adjust V's offset accordingly.
4351 2012-03-16 Gary Benson <gbenson@redhat.com>
4353 PR breakpoints/10738
4354 * dwarf2read.c (use_deprecated_index_sections): New global.
4355 (struct partial_die_info): New member may_be_inlined.
4356 (read_partial_die): Set may_be_inlined where appropriate.
4357 (add_partial_subprogram): Add partial symbols for partial
4358 DIEs that may be inlined.
4359 (new_symbol_full): Add inlined subroutines to the current
4361 (write_psymtabs_to_index): Bump version number.
4362 (dwarf2_read_index): Read only version 6 indices unless
4363 use_deprecated_index_sections is set.
4364 * linespec.c (symbol_and_data_callback): New structure.
4365 (iterate_inline_only): New function.
4366 (iterate_over_all_matching_symtabs): New argument
4367 "include_inline". If nonzero, also call the callback for
4368 symbols representing inlined subroutines.
4369 (lookup_prefix_sym): Pass extra argument to the above.
4370 (find_function_symbols): Likewise.
4371 (add_matching_symbols_to_info): Likewise.
4372 * NEWS: Mention that GDB can now set breakpoints on inlined
4375 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4377 * p-typeprint.c (pascal_type_print_method_args):
4378 Fix display of parameter of methods.
4380 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4382 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4383 Add missing prototype.
4385 2012-03-16 Yao Qi <yao@codesourcery.com>
4386 Jan Kratochvil <jan.kratochvil@redhat.com>
4388 Fix false compilation warning.
4389 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4391 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
4392 Pedro Alves <pedro@codesourcery.com>
4394 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4395 (arm_register_g_packet_guesses): New function.
4396 (arm_gdbarch_init): Don't force a target description with
4397 registers when the executable is detected as M-profile. Instead
4398 set gdbarch->tdep->is_m. Register `g' packet guesses.
4399 (_initialize_arm_tdep): Initialize the new target description.
4400 * features/arm-with-m-fpa-layout.xml: New description.
4401 * features/arm-with-m-fpa-layout.c: New, generated.
4403 2012-03-15 Joel Brobecker <brobecker@adacore.com>
4405 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4406 Update function description.
4407 (insert_bp_location): Do not wipe bl->target_info out.
4408 * mem-break.c: #include "gdb_string.h".
4409 (default_memory_insert_breakpoint): Do not call target_read_memory
4410 with a pointer to the breakpoint's shadow_contents buffer. Use
4411 a local buffer instead.
4412 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4414 2012-03-15 Tom Tromey <tromey@redhat.com>
4416 * NEWS: Mention "info vtbl", not "info vtable".
4417 * cp-support.c (info_vtbl_command): Fix comment.
4418 (_initialize_cp_support): Fix text.
4420 2012-03-15 Tom Tromey <tromey@redhat.com>
4422 * cp-valprint.c (cp_print_value_fields): Use
4423 print_function_pointer_address for vtable slot.
4425 2012-03-15 Tom Tromey <tromey@redhat.com>
4427 * gnu-v3-abi.c (struct value_and_voffset): New.
4428 (hash_value_and_voffset, eq_value_and_voffset)
4429 (compare_value_and_voffset, compute_vtable_size)
4430 (print_one_vtable, gnuv3_print_vtable): New functions.
4431 (init_gnuv3_ops): Initialize 'print_vtable' field.
4432 * cp-support.c (info_vtbl_command): New function.
4433 (_initialize_cp_support): Add "info vtbl".
4434 * cp-abi.h (cplus_print_vtable): Declare.
4435 (struct cp_abi_ops) <print_vtable>: New field.
4436 * cp-abi.c (cplus_print_vtable): New function.
4439 2012-03-15 Tom Tromey <tromey@redhat.com>
4441 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4442 iterate_over_symbols.
4444 2012-03-14 Doug Evans <dje@google.com>
4446 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4447 DW_OP_GNU_parameter_ref.
4449 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4451 Fix double prompt of 'interpreter-exec mi'.
4452 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4453 (mi_interpreter_resume): use it.
4454 (mi_execute_command_input_handler): New function.
4455 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4456 mi_execute_command_input_handler.
4458 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
4460 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4462 (darwin_debug_port_info): Make static.
4463 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4464 * machoread.c (_initialize_machoread): Add prototype.
4465 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4466 (i386_darwin_set_control, i386_darwin_get_control)
4467 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4468 i386_darwin_get_status, i386_darwin_get_control):
4469 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4471 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4473 * ax-gdb.c (gen_usual_unary): Remove special handling of
4474 enum and bool types.
4476 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4478 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4480 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4482 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4484 2012-03-13 Chris January <chris.january@allinea.com>
4486 * aix-thread.c (fill_sprs): Store the floating point registers
4487 at the correct offsets into vals.
4489 2012-03-13 Doug Evans <dje@google.com>
4491 * NEWS: Mention symbol-reloading has been deleted.
4492 * symfile.c (symbol_reloading): Delete.
4493 (show_symbol_reloading): Delete.
4494 (_initialize_symfile): Delete set/show symbol-reloading.
4496 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4497 read_in_chain until we have successfully read it in.
4498 (load_full_comp_unit): Ditto.
4499 (read_signatured_type): Add comment.
4501 2012-03-13 Chris January <chris.january@allinea.com>
4503 * stabsread.c (fix_common_block): Change type of valu argument
4506 2012-03-13 Chris January <chris.january@allinea.com>
4508 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4511 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4513 * common/linux-procfs.c (linux_proc_get_int): New, from
4514 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4516 (linux_proc_get_tgid): Only call linux_proc_get_int.
4517 (linux_proc_get_tracerpid): New.
4518 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4519 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4520 linux_proc_pid_has_state.
4521 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4522 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4523 (linux_ptrace_attach_warnings): New.
4524 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4526 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4527 (linux_nat_attach): New variables ex, buffer, message and message_s.
4528 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4530 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4532 * Makefile.in (linux-ptrace.o): New.
4533 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4535 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4536 * common/linux-ptrace.c: New file.
4537 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4538 * config/arm/linux.mh: Likewise.
4539 * config/i386/linux.mh: Likewise.
4540 * config/i386/linux64.mh: Likewise.
4541 * config/ia64/linux.mh: Likewise.
4542 * config/m32r/linux.mh: Likewise.
4543 * config/m68k/linux.mh: Likewise.
4544 * config/mips/linux.mh: Likewise.
4545 * config/pa/linux.mh: Likewise.
4546 * config/powerpc/linux.mh: Likewise.
4547 * config/powerpc/ppc64-linux.mh: Likewise.
4548 * config/powerpc/spu-linux.mh: Likewise.
4549 * config/s390/s390.mh: Likewise.
4550 * config/sparc/linux.mh: Likewise.
4551 * config/sparc/linux64.mh: Likewise.
4552 * config/xtensa/linux.mh: Likewise.
4553 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4554 common/linux-procfs.c.
4555 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4557 2012-03-13 Hui Zhu <teawater@gmail.com>
4558 Pedro Alves <palves@redhat.com>
4560 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4561 CREATE_BREAKPOINT_FLAGS_INSERTED.
4562 (create_breakpoint_sal, create_breakpoints_sal)
4563 (base_breakpoint_create_breakpoints_sal)
4564 (tracepoint_create_breakpoints_sal)
4565 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4567 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4568 (ftrace_command, strace_command): Adjust.
4569 (create_tracepoint_from_upload): Pass
4570 CREATE_BREAKPOINT_FLAGS_INSERTED.
4571 * breakpoint.h (enum breakpoint_create_flags): New.
4572 (create_breakpoint): New flags parameter.
4573 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4574 * python/py-breakpoint.c (bppy_init): Adjust.
4575 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4576 * spu-tdep.c (spu_catch_start): Adjust.
4578 2012-03-13 Pedro Alves <palves@redhat.com>
4579 Hui Zhu <teawater@gmail.com>
4580 Yao Qi <yao@codesourcery.com>
4582 * remote.c (struct remote_state): New field `starting_up'.
4583 (remote_start_remote): Set and clear it.
4584 (remote_can_download_tracepoint): If starting up, return false.
4586 2012-03-13 Yao Qi <yao@codesourcery.com>
4588 * inferior.h (struct inferior): Remove fields any_syscall_count,
4589 syscalls_counts and total_syscalls_count. Move them to new
4590 struct catch_syscall_inferior_data in breakpoint.c.
4591 * breakpoint.c: Call DEF_VEC_I(int).
4592 (struct catch_syscall_inferior_data): New.
4593 (get_catch_syscall_inferior_data): New.
4594 (catch_syscall_inferior_data_cleanup): New.
4595 (insert_catch_syscall): Update to access data in
4596 struct catch_syscall_inferior_data.
4597 (insert_catch_syscall): Likewise.
4598 (remove_catch_syscall): Likewise.
4599 (remove_catch_syscall): Likewise.
4600 (is_syscall_catchpoint_enabled): Likewise.
4601 (add_catch_command): Likewise.
4602 (_initialize_breakpoint): Register cleanup.
4603 * breakpoint.h: Removed DEF_VEC_I(int).
4604 * dwarf2loc.c: Call DEF_VEC_I(int).
4605 * mi/mi-main.c: Likewise.
4607 2012-03-12 Mark Kettenis <kettenis@gnu.org>
4609 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4611 2012-03-12 Chris January <chris.january@allinea.com>
4613 * aix-thread.c (_initialize_aix_thread): Add prototype.
4614 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4615 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4617 2012-03-12 Joel Brobecker <brobecker@adacore.com>
4619 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4620 include of "amd64-nat.h".
4622 2012-03-12 Tom Tromey <tromey@redhat.com>
4624 * buildsym.c (record_pending_block): Now static.
4625 * buildsym.h: (record_pending_block): Remove.
4627 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
4629 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4631 2012-03-09 Tom Tromey <tromey@redhat.com>
4633 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4634 producer_is_gxx_lt_4_6>: New fields.
4635 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4637 2012-03-09 Tom Tromey <tromey@redhat.com>
4639 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4641 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4643 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4646 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4648 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4650 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4652 Fix -Wmissing-prototypes build.
4653 * arm-linux-nat.c (get_thread_id): Make it static.
4654 * xtensa-linux-nat.c (get_thread_id): Likewise.
4656 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4658 * server.c (process_point_options): If a conditional expression
4659 is found, only print a message if remote_debug is nonzero.
4661 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
4663 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4664 of internal error for unknown/unsupported types.
4666 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4668 Fix CU relative vs. absolute DIE offsets.
4669 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4670 offset to offset_in_cu.
4671 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4673 (dwarf2_fetch_die_location_block): Rename parameter offset to
4674 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4676 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4678 * libunwind-frame.c: Rename to ...
4679 * ia64-libunwind-tdep.c: ... here.
4680 * libunwind-frame.h: Rename to ...
4681 * ia64-libunwind-tdep.h: ... here.
4682 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4683 ia64-libunwind-tdep.h.
4684 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4685 * README (--with-libunwind): Rename to ...
4686 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4687 * config.in: Regenerate.
4688 * configure: Regenerate.
4689 * configure.ac: New option --with-libunwind-ia64, make the
4690 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4691 Remove AC_DEFINE for HAVE_LIBUNWIND.
4692 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4693 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4694 Rename libunwind-frame in the general comment.
4695 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4696 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4697 Move forward declarations inside #ifndef. Rename libunwind-frame in
4698 the general comment.
4699 * ia64-tdep.c: Rename libunwind-frame.h #include to
4700 ia64-libunwind-tdep.h.
4701 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4702 (ia64_libunwind_descr): Rename libunwind-frame to
4703 ia64-libunwind-tdep in these function comments.
4704 * ia64-tdep.h: Rename libunwind-frame.h #include to
4705 ia64-libunwind-tdep.h.
4706 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4707 ia64-libunwind-tdep in that data comment.
4709 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4711 * libunwind-frame.h (struct frame_unwind): New declaration.
4713 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4715 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4716 "set breakpoint condition-evaluation" command.
4718 2012-03-08 Tristan Gingold <gingold@adacore.com>
4720 * sparc-stub.c: Move to stubs/
4721 * sh-stub.c: Likewise.
4722 * m68k-stub.c: Likewise.
4723 * m32r-stub.c: Likewise.
4724 * i386-stub.c: Likewise.
4726 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4728 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4729 linux_get_siginfo_type.
4731 * m68klinux-nat.c: Include "gdb_proc_service.h".
4732 (PTRACE_GET_THREAD_AREA): Define.
4733 (ps_get_thread_area): New function.
4735 2012-03-08 Yao Qi <yao@codesourcery.com>
4737 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4739 (remote_query_attached): Likewise.
4740 (remote_static_tracepoint_marker_at): Likewise.
4741 (remote_set_permissions): Likewise.
4742 (remote_detach_1, extended_remote_attach_1): Likewise.
4743 (send_g_packet, remote_vkill): Likewise.
4744 (extended_remote_disable_randomization): Likewise.
4745 (remote_add_target_side_condition): Likewise.
4746 (remote_insert_breakpoint): Likewise.
4747 (remote_remove_breakpoint): Likewise.
4748 (remote_insert_watchpoint): Likewise.
4749 (remote_remove_watchpoint): Likewise.
4750 (remote_insert_hw_breakpoint): Likewise.
4751 (remote_insert_hw_breakpoint): Likewise.
4752 (remote_remove_hw_breakpoint): Likewise.
4753 (remote_download_command_source): Likewise.
4754 (remote_download_tracepoint): Likewise.
4755 (remote_download_trace_state_variable): Likewise.
4756 (remote_disable_tracepoint): Likewise.
4757 (remote_trace_set_readonly_regions): Likewise.
4758 (remote_get_tracepoint_status): Likewise.
4759 (remote_trace_find): Likewise.
4760 (remote_get_trace_state_variable_value): Likewise.
4761 (remote_set_disconnected_tracing): Likewise.
4762 (remote_set_circular_trace_buffer): Likewise.
4763 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4764 (remote_use_agent): Likewise.
4765 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4768 2012-03-07 Pedro Alves <palves@redhat.com>
4770 * NEWS: Mention QProgramSignals.
4771 * inferior.h (update_signals_program_target): Declare.
4772 * infrun.c: (update_signals_program_target): New.
4773 (handle_command): Update the target of the new program signals
4775 * remote.c (PACKET_QProgramSignals): New enum.
4776 (last_program_signals_packet): New global.
4777 (remote_program_signals): New.
4778 (remote_start_remote): Update the target with the program signals
4780 (remote_protocol_features): Add entry for QPassSignals.
4781 (remote_open_1): Free anc clear last_program_signals_packet.
4782 (init_remote_ops): Install remote_program_signals.
4783 * target.c (update_current_target): Adjust.
4784 (target_program_signals): New.
4785 * target.h (struct target_ops) <to_program_signals>: New field.
4786 (target_program_signals): Declare.
4788 2012-03-07 Pedro Alves <palves@redhat.com>
4790 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4793 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4795 * m68klinux-nat.c (getregs_supplies): Make static.
4796 (getfpregs_supplies): Likewise.
4797 (have_ptrace_getregs): Likewise.
4799 2012-03-06 Joel Brobecker <brobecker@adacore.com>
4801 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4802 in call to get_die_type_at_offset.
4804 2012-03-06 Stan Shebs <stan@codesourcery.com>
4806 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4807 * mi/mi-cmd-disas.c: Ditto.
4808 * mi/mi-cmd-env.c: Ditto.
4809 * mi/mi-cmd-file.c: Ditto.
4810 * mi/mi-cmd-stack.c: Ditto.
4811 * mi/mi-cmd-target.c: Ditto.
4812 * mi/mi-cmd-var.c: Ditto.
4813 * mi/mi-cmds.c: Ditto.
4814 * mi/mi-cmds.h: Ditto.
4815 * mi/mi-console.c: Ditto.
4816 * mi/mi-getopt.c: Ditto.
4817 * mi/mi-getopt.h: Ditto.
4818 * mi/mi-interp.c: Ditto.
4819 * mi/mi-main.c: Ditto.
4820 * mi/mi-out.c: Ditto.
4821 * mi/mi-parse.c: Ditto.
4822 * mi/mi-parse.h: Ditto.
4823 * mi/mi-symbol-cmds.c: Ditto.
4825 * mi/mi-getopt.h: Move mi_opt struct up.
4826 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4828 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4830 2012-03-06 Tom Tromey <tromey@redhat.com>
4832 * proc-service.c (ps_pglobal_lookup): Set the current program
4835 2012-03-06 Pedro Alves <palves@redhat.com>
4837 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4839 2012-03-05 Joel Brobecker <brobecker@adacore.com>
4841 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4843 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4846 * common/linux-osdata.c (linux_common_core_of_thread): New function
4848 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4849 call by linux_common_core_of_thread.
4850 (linux_nat_core_of_thread_1): Remove.
4851 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4852 * linux-thread-db.c: Include linux-osdata.h.
4853 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4854 linux_common_core_of_thread.
4856 2012-03-05 Tom Tromey <tromey@redhat.com>
4858 * value.c (value_primitive_field): Don't fetch contents for
4861 2012-03-05 Tom Tromey <tromey@redhat.com>
4863 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4865 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
4867 * s390-nat.c: Include "gregset.h".
4869 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4871 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4872 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4873 (libunwind_load): New variable so_error, use it for dlerror. Try to
4874 load also LIBUNWIND_SO_7.
4876 2012-03-05 Pedro Alves <palves@redhat.com>
4878 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4879 is not NULL, and remove resulting dead code.
4881 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4883 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4884 prologue to sh_analyze_prologue.
4885 (sh_analyze_prologue): Make better use of such an upper limit, and
4886 generally be more cautious about accessing memory.
4888 2012-03-05 Tom Tromey <tromey@redhat.com>
4890 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4891 _initialize_ia64_hpux_tdep.
4893 2012-03-05 Pedro Alves <palves@redhat.com>
4897 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4898 the register state is clear, supply explicit zero, instead of
4899 marking the register unavailable.
4901 2012-03-05 Tristan Gingold <gingold@adacore.com>
4903 * NEWS: Mention OpenVMS ia64 new target.
4905 2012-03-05 Tristan Gingold <gingold@adacore.com>
4907 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4908 (ia64_unw_accessors, ia64_unw_rse_accessors)
4909 (ia64_libunwind_descr): Declare.
4910 * ia64-vms-tdep.c: New file.
4911 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4912 (ia64_libunwind_descr): Make them public.
4913 * configure.tgt: Add ia64-*-*vms*.
4914 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4915 (ALLDEPFILES): Add ia64-vms-tdep.c
4917 2012-03-05 Tristan Gingold <gingold@adacore.com>
4919 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4920 * remote.c (PACKET_qXfer_uib): New enum value.
4921 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4922 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4923 (_initialize_remote): Call add_packet_config_cmd for
4926 2012-03-05 Tristan Gingold <gingold@adacore.com>
4928 * osabi.c (gdb_osabi_names): Add OpenVMS.
4929 (generic_elf_osabi_sniffer): Likewise.
4930 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4932 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4934 Removed unused code.
4935 * libunwind-frame.c (libunwind_frame_unwind)
4936 (libunwind_frame_base_address): Remove.
4937 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4939 2012-03-04 Yao Qi <yao@codesourcery.com>
4941 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4942 remove trailing new line.
4943 (agent_run_command, agent_run_command): Add _ markup.
4944 (agent_capability_check): Likewise.
4946 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4948 * breakpoint.c (set_condition_evaluation_mode): Set
4949 CONDITION_EVALUATION_MODE unconditionally.
4951 2012-03-03 Yao Qi <yao@codesourcery.com>
4953 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4954 * common/agent.h: Update declaration.
4955 * inf-child.c (inf_child_use_agent): New.
4956 (inf_child_can_use_agent): New.
4957 (inf_child_target): Initialize fields `to_use_agent'
4958 and `to_can_use_agent'.
4959 * agent.c (agent_new_objfile): New.
4960 (_initialize_agent): Add agent_new_objfile to new_objfile
4963 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4965 (linux_target_install_ops): Initialize field
4966 `to_static_tracepoint_markers_by_strid'.
4967 * remote.c (free_current_marker): Move it to ...
4968 * tracepoint.c (free_current_marker): ... here. New.
4969 (cleanup_target_stop): New.
4970 * tracepoint.h: Declare free_current_marker.
4971 * NEWS: Add one entry about `info static-tracepoint-marker'.
4973 2012-03-03 Yao Qi <yao@codesourcery.com>
4975 * common/agent.c (agent_loaded_p): New.
4976 (agent_look_up_symbols): New global.
4977 * common/agent.h: Declare agent_loaded_p.
4979 2012-03-03 Yao Qi <yao@codesourcery.com>
4981 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
4982 (agent_capability_check, agent_capability_invalidate): New.
4983 (symbol_list): New array element.
4984 * common/agent.h (enum agent_capa): New.
4985 * target.c (target_pre_inferior): Call agent_capability_invalidate.
4987 2012-03-03 Yao Qi <yao@codesourcery.com>
4989 * target.h (struct target_ops) <to_use_agent>: New field.
4990 (struct target_ops) <to_can_use_agent>: New field.
4991 (target_use_agent, target_can_use_agent): New macro.
4992 * target.c (update_current_target): Update.
4993 * remote.c: New enum `PACKET_QAgent'.
4994 (remote_protocol_features): Add a new element.
4995 (remote_use_agent, remote_can_use_agent): New.
4996 (init_remote_ops): Initialize field `can_use_agent' with
4997 remote_can_use_agent. Intiailize field `use_agent' with
4999 * common/agent.c (use_agent): New global.
5000 * common/agent.h: Declare it.
5001 * tracepoint.c (info_static_tracepoint_markers_command): Add
5003 * Makefile.in (SFILES): Add common/agent.c and agent.c.
5004 (COMMON_OBS): Add common/agent.o and agent.o
5005 (common-agent.o): New rule.
5008 2012-03-03 Yao Qi <yao@codesourcery.com>
5010 * common/agent.c: New.
5011 * common/agent.h: New.
5012 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
5014 * configure, configh.in: Regenerated.
5016 2012-03-02 Kevin Buettner <kevinb@redhat.com>
5018 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
5019 unless it exists for this architecture.
5021 2012-03-02 Joel Brobecker <brobecker@adacore.com>
5023 * language.h (struct language_defn): New "method" la_read_var_value.
5024 * findvar.c: #include "language.h".
5025 (default_read_var_value): Renames read_var_value. Rewrite
5026 function description.
5027 (read_var_value): New function.
5028 * value.h (default_read_var_value): Add prototype.
5029 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
5031 (ada_language_defn): Add entry for la_read_var_value.
5032 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
5033 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
5034 language_defn structures to add entry for new la_read_var_value
5037 2012-03-02 Tom Tromey <tromey@redhat.com>
5038 Pedro Alves <palves@redhat.com>
5040 PR breakpoints/13776:
5041 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
5043 (delete_longjmp_breakpoint_at_next_stop): New.
5044 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
5045 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
5046 before deleting the inferior. Add comments.
5047 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
5048 breakpoints immediately, but only on next stop. Move that code
5049 next to where we mark other breakpoints for deletion.
5051 2012-03-02 Joel Brobecker <brobecker@adacore.com>
5053 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
5055 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
5058 2012-03-02 Pedro Alves <palves@redhat.com>
5060 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
5062 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5064 Fix -Wmissing-prototypes build.
5065 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
5066 * remote-sim.c (gdbsim_has_all_memory): Likewise.
5067 (gdbsim_has_memory): Likewise.
5069 2012-03-02 Yao Qi <yao@codesourcery.com>
5071 Fix -Wmissing-prototypes build.
5072 * charset.c (phony_iconv_open): Make static.
5073 (phony_iconv_close, phony_iconv): Likewise.
5074 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
5075 * i386-windows-nat.c (_initialize_i386_windows_nat): New
5077 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
5078 * ser-mingw.c (create_select_thread): Make static.
5079 * windows-termcap.c (tgetent): New prototype.
5080 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
5082 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
5084 Fix -Wmissing-prototypes build.
5085 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
5086 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
5087 (_initialize_loadable): New prototypes.
5089 2012-03-02 Doug Evans <dje@google.com>
5091 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
5092 abbrev table, read_comp_unit will do it.
5094 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5096 Fix -Wmissing-prototypes build.
5097 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
5098 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
5099 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
5100 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
5101 (_initialize_arm_symbian_tdep): New prototype.
5102 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
5103 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
5104 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
5106 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
5107 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
5109 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
5110 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
5111 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
5113 * moxie-tdep.c (moxie_process_record): Likewise.
5114 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
5115 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
5116 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
5117 (_initialize_rl78_tdep): New prototype.
5118 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
5119 (_initialize_rx_tdep): New prototype.
5120 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
5121 (_initialize_darwin_solib): New prototype.
5122 * solib-spu.c: Include solib-spu.h.
5123 (_initialize_spu_solib): New prototype.
5124 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
5125 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
5126 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
5127 (tic6x_software_single_step): Make it static.
5128 (_initialize_tic6x_tdep): New prototype.
5130 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5132 Fix -Wmissing-prototypes build.
5133 * cris-tdep.c (cris_can_use_hardware_watchpoint)
5134 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
5136 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5138 Fix -Wmissing-prototypes build.
5139 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
5140 (frv_have_stopped_data_address): Remove.
5142 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5144 Fix -Wmissing-prototypes build.
5145 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
5146 * sh-tdep.c: Include sh64-tdep.h.
5147 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
5148 * sh64-tdep.c: Include sh64-tdep.h.
5149 * sh64-tdep.h: New file.
5151 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5153 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
5155 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5157 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
5158 sp_regnum once the gdbarch_init_osabi hook has been called.
5160 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5162 * mips-tdep.c (mips32_bc1_pc): New function.
5163 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
5164 BPOSGE32 and BPOSGE64 instructions.
5165 (deal_with_atomic_sequence): Likewise.
5166 (mips32_instruction_has_delay_slot): Likewise.
5168 2012-03-01 Maciej W. Rozycki <macro@mips.com>
5169 Chris Dearman <chris@mips.com>
5170 Maciej W. Rozycki <macro@codesourcery.com>
5171 Joseph Myers <joseph@codesourcery.com>
5173 * features/mips-dsp.xml: New file.
5174 * features/mips64-dsp.xml: New file.
5175 * features/mips-dsp-linux.xml: New file.
5176 * features/mips64-dsp-linux.xml: New file.
5177 * features/Makefile (WHICH): Add mips-dsp-linux and
5179 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
5180 * features/mips-dsp-linux.c: New file.
5181 * features/mips64-dsp-linux.c: New file.
5182 * regformats/mips-dsp-linux.dat: New file.
5183 * regformats/mips64-dsp-linux.dat: New file.
5184 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
5186 (mips64_linux_register_addr): Likewise.
5187 (mips64_linux_regsets_fetch_registers): Likewise.
5188 (mips64_linux_regsets_store_registers): Likewise.
5189 (mips64_linux_fetch_registers): Update call to
5190 mips64_linux_regsets_fetch_registers.
5191 (mips64_linux_store_registers): Update call to
5192 mips64_linux_regsets_store_registers.
5193 (mips_linux_read_description): Probe for DSP registers.
5194 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
5195 and initialize_tdesc_mips64_dsp_linux.
5196 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
5197 Remove padding of no longer used embedded register slots.
5198 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
5199 (MIPS_RESTART_REGNUM): Redefine enum value.
5200 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
5202 (mips_tx39_reg_names): Likewise.
5203 (mips_linux_reg_names): New array of register names for Linux
5205 (mips_register_name): Check for a null pointer in
5206 mips_processor_reg_names and return an empty string.
5207 (mips_register_type): Exclude embedded registers for the IRIX
5209 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
5210 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
5212 (mips_stab_reg_to_regnum): Handle DSP accumulators.
5213 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
5214 (mips_gdbarch_init): Likewise. Initialize internal register
5215 indices for the Linux ABI. Use dynamic numbers to refer to
5216 registers, as applicable, while parsing the target description.
5217 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
5219 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5221 * frame.h (read_frame_register_unsigned): Fix typo in function
5224 2012-03-01 Pedro Alves <palves@redhat.com>
5226 * jit-reader.in [!__cplusplus]
5227 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
5229 2012-03-01 Pedro Alves <palves@redhat.com>
5231 * configure.ac (build_warnings): Add -Wmissing-prototypes.
5232 * configure: Regenerate.
5234 2012-03-01 Pedro Alves <palves@redhat.com>
5236 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
5237 * breakpoint.c (create_exception_master_breakpoint, trace_command)
5238 (ftrace_command, strace_command): Make static.
5239 * d-lang.c (_initialize_d_language): Declare.
5240 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
5241 * dwarf2loc.c (_initialize_dwarf2loc):
5242 * dwarf2read.c (process_psymtab_comp_unit): Make static.
5243 * exec.c (exec_get_section_table): Make static.
5244 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
5245 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
5246 * inferior.c (remove_inferior_command, add_inferior_command)
5247 (clone_inferior_command): Make static.
5248 * linux-nat.c (linux_nat_thread_address_space)
5249 (linux_nat_core_of_thread): Make static.
5250 * linux-tdep.c (_initialize_linux_tdep): Declare.
5251 * objc-lang.c (_initialize_objc_lang): Declare.
5252 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
5254 (_initialize_opencl_language): Declare.
5255 * record.c (_initialize_record): Declare.
5256 * remote.c (demand_private_info, remote_get_tib_address)
5257 (remote_supports_cond_tracepoints)
5258 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
5260 * skip.c (_initialize_step_skip): Declare.
5261 * symtab.c (skip_prologue_using_lineinfo): Make static.
5262 * tracepoint.c (delete_trace_state_variable)
5263 (trace_variable_command, delete_trace_variable_command)
5264 (get_uploaded_tsv, find_matching_tracepoint_location)
5265 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
5267 * value.c (pack_unsigned_long): Make static.
5268 * varobj.c (varobj_ensure_python_env): Make static.
5269 * windows-tdep.c (_initialize_windows_tdep): Declare.
5270 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
5272 2012-03-01 Pedro Alves <palves@redhat.com>
5274 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
5276 (linux_init_abi): Install it as has_shared_address_space gdbarch
5279 2012-03-01 Pedro Alves <palves@redhat.com>
5281 * observer.c (observer_test_first_notification_function)
5282 (observer_test_second_notification_function)
5283 (observer_test_third_notification_function): Add declarations.
5285 2012-03-01 Pedro Alves <palves@redhat.com>
5287 * common/signals.c (default_target_signal_to_host)
5288 (default_target_signal_from_host): Move ...
5289 * arch-utils.c: ... here.
5290 * arch-utils.h (default_target_signal_to_host)
5291 (default_target_signal_from_host): Declare.
5293 * common/signals.c (target_signal_from_command): Move ...
5294 * infrun.c: ... here.
5295 * inferior.h (target_signal_from_command): Declare.
5296 * target.h (target_signal_from_command)
5297 (default_target_signal_from_host, default_target_signal_to_host):
5298 Delete declarations.
5300 * common/signals.c (_initialize_signals): Delete.
5302 2012-03-01 Pedro Alves <palves@redhat.com>
5304 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
5305 both __cplusplus and !__cplusplus.
5307 2012-03-01 Pedro Alves <palves@redhat.com>
5309 * psymtab.c (find_and_open_source): Delete declaration.
5310 * source.c (find_and_open_source): Move comment ...
5311 * source.h (find_and_open_source): ... to this new declaration.
5313 2012-03-01 Pedro Alves <palves@redhat.com>
5315 * inline-frame.c: Include inline-frame.h.
5317 2012-03-01 Pedro Alves <palves@redhat.com>
5319 * tui/tui-data.c (set_gen_win_origin): Delete.
5320 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
5321 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
5323 2012-03-01 Pedro Alves <palves@redhat.com>
5325 * remote.c (encode_actions): Delete declaration.
5326 * tracepoint.c (encode_actions): Make extern.
5327 * tracepoint.h (encode_actions): Declare.
5329 2012-03-01 Pedro Alves <palves@redhat.com>
5331 * python/py-breakpoint.c: Include python.h.
5332 * python/py-continueevent.c (create_continue_event_object): Make
5334 * python/py-lazy-string.c (stpy_get_type): Make static.
5335 * python/py-newobjfileevent.c (create_new_objfile_event_object):
5337 * python/py-utils.c (unicode_to_target_python_string): Make
5339 * python/py-value.c: Include python.h.
5341 2012-03-01 Pedro Alves <palves@redhat.com>
5343 * inferior.c (delete_threads_of_inferior): Delete.
5345 2012-03-01 Pedro Alves <palves@redhat.com>
5347 Import fallback definitions from glibc.
5349 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5350 ps_prochandle): Forward declare.
5351 (ps_err_e): Use glibc's comments.
5352 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5353 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5354 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5355 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5356 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5357 (struct ps_prochandle): Adjust comment.
5359 2012-03-01 Pedro Alves <palves@redhat.com>
5361 * ada-lang.c (ada_modulus_from_name): Delete.
5362 * ada-lex.l (lexer_init): Make static.
5364 2012-03-01 Pedro Alves <palves@redhat.com>
5368 * frame.c (read_frame_register_unsigned): New.
5369 * frame.h (read_frame_register_unsigned): Declare.
5370 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5372 (print_i387_control_word): New parameter `control_p'. Handle it.
5373 (i387_print_float_info): Handle unavailable float registers.
5375 2012-03-01 Keith Seitz <keiths@redhat.com>
5377 * linespec.c (decode_line_2): Sort the list of methods
5378 alphabetically before presenting the user with a selection
5381 2012-03-01 Doug Evans <dje@google.com>
5383 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5385 (dwarf2_read_abbrevs): Remove corresponding initialization.
5387 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
5389 * NEWS: Mention new python command class gdb.COMMAND_USER.
5390 * cli/cli-cmds.c (show_user): Print error when used on a python
5392 (init_cli_cmds): Update documentation strings for "show user" and
5393 "set/show max-user-call-depth" to clarify that it does not apply to
5395 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5397 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5399 * top.c (execute_command): Only execute a user-defined command as a
5400 legacy macro if c->user_commands is set.
5402 2012-03-01 Tom Tromey <tromey@redhat.com>
5404 * valprint.h (struct generic_val_print_decorations): New.
5405 (generic_val_print): Declare.
5406 * valprint.c (generic_val_print): New function.
5407 * p-valprint.c (p_decorations): New global.
5408 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5409 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5410 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5411 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5412 * m2-valprint.c (m2_decorations): New global.
5413 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5414 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5415 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5416 TYPE_CODE_ERROR>: Call generic_val_print.
5417 * f-valprint.c (f_decorations): New global.
5418 (f_val_print): Use print_function_pointer_address.
5419 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5420 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5421 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5423 * c-valprint.c (c_decorations): New global.
5424 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5425 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5426 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5427 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5428 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5429 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5432 2012-03-01 Tom Tromey <tromey@redhat.com>
5434 * valprint.c (val_print): Update.
5435 * p-valprint (pascal_val_print): Return void.
5436 * p-lang.h (pascal_val_print): Return void.
5437 * m2-valprint.c (m2_val_print): Return void.
5438 * m2-lang.h (m2_val_print): Return void.
5439 * language.h (struct language_defn) <la_val_print>: Return void.
5440 * language.c (unk_lang_val_print): Return void.
5441 * jv-valprint.c (java_val_print): Return void.
5442 * jv-lang.h (java_val_print): Return void.
5443 * f-valprint.c (f_val_print): Return void.
5444 * f-lang.h (f_val_print): Return void.
5445 * d-valprint.c (d_val_print): Return void.
5446 (dynamic_array_type): Update.
5447 * d-lang.h (d_val_print): Return void.
5448 * c-valprint.c (c_val_print): Return void.
5449 * c-lang.h (c_val_print): Return void.
5450 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5452 * ada-lang.h (ada_val_print): Return void.
5454 2012-03-01 Tom Tromey <tromey@redhat.com>
5456 * value.h (val_print): Return void.
5457 * valprint.c (val_print): Return void.
5459 2012-03-01 Tom Tromey <tromey@redhat.com>
5461 * value.h (common_val_print): Return void.
5462 * valprint.c (common_val_print): Return void.
5464 2012-03-01 Tom Tromey <tromey@redhat.com>
5466 * value.h (value_print): Return void.
5467 * valprint.c (value_print): Return void.
5468 * p-valprint.c (pascal_value_print): Return void.
5469 * p-lang.h (pascal_value_print): Return void.
5470 * language.h (struct language_defn) <la_value_print>: Return
5472 * language.c (unk_lang_value_print): Return void.
5473 * jv-valprint.c (java_value_print): Return void.
5474 * jv-lang.h (java_value_print): Return void.
5475 * f-valprint.c (c_value_print): Don't declare.
5477 * c-valprint.c (c_value_print): Return void.
5478 * c-lang.h (c_value_print): Return void.
5479 * ada-valprint.c (ada_value_print): Return void.
5480 * ada-lang.h (ada_value_print): Return void.
5482 2012-03-01 Tom Tromey <tromey@redhat.com>
5484 * value.c (value_primitive_field): Handle virtual base classes.
5486 2012-03-01 Tom Tromey <tromey@redhat.com>
5488 * gdbtypes.h (struct vbase): Remove.
5490 2012-03-01 Tom Tromey <tromey@redhat.com>
5492 * c-valprint.c (print_function_pointer_address): Move...
5493 * valprint.c: ... here. Make non-static.
5494 * m2-valprint.c (print_function_pointer_address): Remove.
5495 * valprint.h (print_function_pointer_address): Declare.
5497 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5499 * NEWS: Document the fact that one can provide a condition when
5500 creating an Ada exception catchpoint.
5502 2012-03-01 Tom Tromey <tromey@redhat.com>
5504 * valprint.c (val_print_type_code_flags): Fix placement of
5507 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5509 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5510 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5511 environment variable before calling update-copyright.
5513 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5515 * gnulib/extra/update-copyright: Update to the latest from
5516 gnulib's git repository.
5517 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5518 variable to 2 instead of 1.
5520 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5522 * varobj.c (c_value_of_variable): Remove dead code.
5524 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5526 * ada-lex.p (processId): Do not modify already encoded IDs.
5527 Update function documentation.
5529 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5531 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5532 "name" with "struct symbol *name_sym".
5533 * ada-exp.y (write_var_or_type): Update call to
5534 ada_find_renaming_symbol.
5535 "name" with "struct symbol *name_sym". Adjust Implementation
5536 accordingly. Adjust the function documentation.
5538 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5540 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5541 * ada-lang.c (ada_find_any_type): Add advance declaration.
5542 Make static. Replace ada_find_any_symbol by
5543 ada_find_any_type_symbol.
5544 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5545 Improve function description. Make static.
5546 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5547 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5549 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5551 * ada-lang.c (struct tag_args): Delete.
5552 (ada_get_tsd_type): Function body moved up in source file.
5553 (ada_tag_name_1, ada_tag_name_2): Delete.
5554 (ada_get_tsd_from_tag): New function.
5555 (ada_tag_name_from_tsd): New function.
5556 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5557 to determine the tag name.
5559 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5561 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5563 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5566 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5568 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5570 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5572 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5575 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5577 * ada-lang.c (constrained_packed_array_type): If there is a
5578 parallel XA type, use it to determine the array index type.
5580 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5582 * ada-valprint.c (ada_val_print_1): If our value is a reference
5583 to an array descriptor, dereference it before converting it
5586 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5588 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5589 creating fixed value.
5590 (ada_value_ind, ada_coerce_ref, assign_component)
5591 (ada_evaluate_subexp): Remove call to unwrap_value before
5592 call to ada_to_fixed_value.
5594 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5596 * ada-lang.c (to_fixed_array_type): Set result's type name.
5598 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5600 * ada-lang.c (catch_ada_exception_command_split): Add new
5601 argument cond_string. Add support for condition at end of
5602 "catch exception" commands.
5603 (ada_decode_exception_location): Add new argument cond_string.
5604 Update call to catch_ada_exception_command_split.
5605 (create_ada_exception_catchpoint): Add new argument cond_string.
5606 Set the breakpoint condition if needed.
5607 (catch_ada_exception_command): Update call to
5608 ada_decode_exception_location.
5609 (ada_decode_assert_location): Add function documentation.
5610 Add support for condition at end of "catch assert" command.
5611 (catch_assert_command): Update calls to ada_decode_assert_location
5612 and create_ada_exception_catchpoint.
5614 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5616 Fix disp-step-syscall.exp: fork: single step over fork.
5617 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5618 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5619 comment, change parameters gdbarch and ptid to regcache. Remove
5620 parameter regcache, initialize gdbarch from regcache here.
5621 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5623 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5625 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5626 'syscall'. Make the 'int' check more strict.
5628 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5630 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5631 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5632 (i386_linux_intx80_sysenter_syscall_record): ... here.
5633 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5634 Use the renamed function name.
5636 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5638 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5639 * breakpoint.c (until_break_command): Likewise.
5640 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5641 * infcall.c (call_function_by_hand): Likewise.
5642 * infcmd.c (finish_forward): Likewise.
5643 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5645 2012-02-28 Tristan Gingold <gingold@adacore.com>
5647 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5648 avoid variable assignments inside condition.
5650 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5652 Fix static analysis issue found by cppcheck.
5653 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5654 uninitialized BUF for size 2.
5656 2012-02-27 Chris Dearman <chris@mips.com>
5657 Nathan Froyd <froydnj@codesourcery.com>
5658 Maciej W. Rozycki <macro@codesourcery.com>
5660 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5661 (mips16_instruction_has_delay_slot): Likewise.
5662 (mips_segment_boundary): Likewise.
5663 (mips_adjust_breakpoint_address): Likewise.
5664 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5666 2012-02-27 Maciej W. Rozycki <macro@mips.com>
5667 Maciej W. Rozycki <macro@codesourcery.com>
5669 * infrun.c (handle_inferior_event): Don't proceed through
5670 shared library trampolines if stepping at the machine
5673 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5675 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5678 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5680 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5681 (sh_stub_unwind_sniffer): New functions.
5682 (sh_stub_unwind): New variable.
5683 (sh_gdbarch_init): Wire everything.
5685 2012-02-27 Pedro Alves <palves@redhat.com>
5687 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5688 (linux_nat_post_attach_wait): Adjust to use
5689 linux_proc_pid_is_stopped.
5690 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5691 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5692 based on pid_is_stopped from both linux-nat.c and
5693 gdbserver/linux-low.c, and renamed.
5695 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5697 * remote.c (remote_watchpoint_addr_within_range): New function.
5698 (init_remote_ops): Use it.
5700 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5702 * target.h (target_watchpoint_addr_within_range): Document macro.
5704 2012-02-24 Pedro Alves <palves@redhat.com>
5706 * stack.c (set_last_displayed_sal): Issue internal_error instead
5707 of warning, and issue it after clearing the last displayed sal.
5709 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5710 Pedro Alves <palves@redhat.com>
5712 * breakpoint.c (until_break_command): Install breakpoints after
5713 all frame manipulations.
5715 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5717 * remote.c (remote_supports_cond_breakpoints): New forward
5719 (remote_add_target_side_condition): New function.
5720 (remote_insert_breakpoint): Add target-side breakpoint
5721 conditional if supported.
5722 (remote_insert_hw_breakpoint): Likewise.
5723 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5726 * target.c (update_current_target): Inherit
5727 to_supports_evaluation_of_breakpoint_conditions.
5728 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5730 * target.h (struct target_ops)
5731 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5732 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5734 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5735 (condition_evaluation_both, condition_evaluation_auto,
5736 condition_evaluation_host, condition_evaluation_target,
5737 condition_evaluation_enums, condition_evaluation_mode_1,
5738 condition_evaluation_mode): New static globals.
5739 (translate_condition_evaluation_mode): New function.
5740 (breakpoint_condition_evaluation_mode): New function.
5741 (gdb_evaluates_breakpoint_condition_p): New function.
5742 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5743 (mark_breakpoint_modified): New function.
5744 (mark_breakpoint_location_modified): New function.
5745 (set_condition_evaluation_mode): New function.
5746 (show_condition_evaluation_mode): New function.
5747 (bp_location_compare_addrs): New function.
5748 (get_first_location_gte_addr): New helper function.
5749 (set_breakpoint_condition): Free condition bytecode if locations
5750 has become unconditional. Call mark_breakpoint_modified (...).
5751 (condition_command): Call update_global_location_list (1) for
5753 (breakpoint_xfer_memory): Use is_breakpoint (...).
5754 (is_breakpoint): New function.
5755 (parse_cond_to_aexpr): New function.
5756 (build_target_condition_list): New function.
5757 (insert_bp_location): Handle target-side conditional
5758 breakpoints and call build_target_condition_list (...).
5759 (update_inserted_breakpoint_locations): New function.
5760 (insert_breakpoint_locations): Handle target-side conditional
5762 (bpstat_check_breakpoint_conditions): Add comment.
5763 (bp_condition_evaluator): New function.
5764 (bp_location_condition_evaluator): New function.
5765 (print_breakpoint_location): Print information on where the condition
5767 (print_one_breakpoint_location): Likewise.
5768 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5769 breakpoint location.
5770 (force_breakpoint_reinsertion): New functions.
5771 (update_global_location_list): Handle target-side breakpoint
5773 Reinsert locations that are already inserted if conditions have
5775 (bp_location_dtor): Free agent expression bytecode.
5776 (disable_breakpoint): Call mark_breakpoint_modified (...).
5777 Call update_global_location_list (...) with parameter 1 for breakpoints.
5778 (disable_command): Call mark_breakpoint_location_modified (...).
5779 Call update_global_location_list (...) with parameter 1 for breakpoints.
5780 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5781 (enable_command): mark_breakpoint_location_modified (...).
5782 (_initialize_breakpoint): Update documentation and add
5783 condition-evaluation breakpoint subcommand.
5785 * breakpoint.h: Include ax.h.
5786 (condition_list): New data structure.
5787 (condition_status): New enum.
5788 (bp_target_info) <cond_list>: New field.
5789 (bp_location) <condition_changed, cond_bytecode>: New fields.
5790 (is_breakpoint): New prototype.
5792 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5794 * remote.c (remote_state) <cond_breakpoints>: New field.
5795 (PACKET_ConditionalBreakpoints): New enum.
5796 (remote_cond_breakpoint_feature): New function.
5797 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5798 (remote_supports_cond_breakpoints): New function.
5799 (_initialize_remote): Add new packet configuration for
5800 target-side conditional breakpoints.
5802 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5804 * NEWS: Mention target-side conditional breakpoint support,
5805 new condition-evaluation breakpoint subcommand and remote
5808 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5810 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5813 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5815 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5816 (after_prologue): Remove.
5818 2012-02-23 Tom Tromey <tromey@redhat.com>
5820 * jv-valprint.c (java_val_print): Remove dead code.
5822 2012-02-23 Tristan Gingold <gingold@adacore.com>
5824 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5825 known_tasks_element and known_tasks_length fields.
5826 (read_known_tasks_array): Change argument type. Use pointer type
5827 and number of elements from DATA. Adjust.
5828 (read_known_tasks_list): Likewise.
5829 (get_known_tasks_addr): Remove.
5830 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5831 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5832 type and array length. Merge former get_known_tasks_addr code.
5834 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5837 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5838 it after set_momentary_breakpoint.
5840 2012-02-22 Sterling Augustine <saugustine@google.com>
5843 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5845 2012-02-22 Gary Benson <gbenson@redhat.com>
5847 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5848 (find_slot_in_mapped_hash): Likewise.
5850 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5853 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5854 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5855 * configure: Regenerate.
5857 2012-02-21 Tristan Gingold <gingold@adacore.com>
5858 Pedro Alves <palves@redhat.com>
5860 * ia64-tdep.c: Do not include libunwind-ia64.h.
5861 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5862 Include libunwind-ia64.h instead of libunwind.h.
5863 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5864 for libunwind.h existence.
5865 * configure, config.in: Regenerate.
5867 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5869 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5870 instead of value_rtti_target_type.
5871 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5872 instead of value_rtti_target_type.
5873 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5874 value_rtti_target_type.
5875 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5876 (value_rtti_target_type): Rename to ...
5877 (value_rtti_indirect_type): ... here and make it indirect. Update
5879 * value.c (readjust_indirect_value_type): New function.
5880 (coerce_ref): Support for enclosing type setting for references
5881 with readjust_indirect_value_type.
5882 * value.h (readjust_value_type): New declaration.
5883 (value_rtti_target_type): Rename to ...
5884 (value_rtti_indirect_type): ... here.
5886 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5888 * MAINTAINERS (Write After Approval): Add myself to the list.
5890 2012-02-20 Doug Evans <dje@google.com>
5892 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5893 Rename objfile_p_char parameter to objfilep.
5894 (build_objfile_section_table): Result is now void. All callers
5896 * objfiles.h (struct objfile): Tweak comments, whitespace.
5897 (build_objfile_section_table): Update.
5899 * elfread.c (elf_symfile_segments): Fix warning text.
5901 2012-02-20 Tom Tromey <tromey@redhat.com>
5904 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5905 particular set of file names once.
5906 (dw2_map_symbol_filenames): Likewise.
5908 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5911 * main.c (write_files): Remove the declaration.
5912 (external_editor_command): Move the declaration ...
5913 [GDBTK] (external_editor_command): ... here. Fix the comment.
5915 2012-02-20 Tom Tromey <tromey@redhat.com>
5917 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5920 2012-02-20 Tristan Gingold <gingold@adacore.com>
5922 * darwin-nat.h (enum darwin_msg_state): Add comments.
5924 2012-02-20 Tristan Gingold <gingold@adacore.com>
5926 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5929 2012-20-18 Joel Brobecker <brobecker@adacore.com>
5931 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5932 between function description and implementation.
5934 2012-02-17 Tom Tromey <tromey@redhat.com>
5937 * python/py-event.c (event_object_getset): New global.
5938 (event_object_type): Reference it.
5939 * python/py-type.c (field_object_getset): New global.
5940 (field_object_type): Reference it.
5941 * python/python-internal.h (gdb_py_generic_dict): Declare.
5942 * python/py-utils.c (gdb_py_generic_dict): New function.
5944 2012-02-17 Tristan Gingold <gingold@adacore.com>
5946 * solib-darwin.c (darwin_current_sos): Check magic and filetype
5948 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
5950 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5951 TYPE_CALLING_CONVENTION annotation.
5953 2012-02-16 Kevin Buettner <kevinb@redhat.com>
5955 * MAINTAINERS: Add rx to target ISA section.
5956 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5957 (ALLDEPFILES): Add rx-tdep.c.
5959 2012-02-16 Tom Tromey <tromey@redhat.com>
5961 * symfile.c (symbol_file_add_main_1): Use inferior's
5963 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5964 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5966 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5968 (follow_exec): Use inferior's symfile_flags.
5969 * inferior.h (struct inferior) <symfile_flags>: New field.
5971 2012-02-16 Mike Frysinger <vapier@gentoo.org>
5974 * remote-sim.c (gdbsim_create_inferior): Call error() when
5975 sim_create_inferior() fails.
5977 2012-02-16 Josh Matthews <josh@joshmatthews.net>
5979 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5981 2012-02-16 Tom Tromey <tromey@redhat.com>
5984 * thread.c (struct current_thread_cleanup) <was_removable>: New
5986 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
5987 (make_cleanup_restore_current_thread): Initialize new field.
5989 2012-02-15 Kevin Buettner <kevinb@redhat.com>
5991 * MAINTAINERS: Add rl78 to target ISA section.
5992 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
5993 (ALLDEPFILES): Add rl78-tdep.c.
5994 * NEWS: Mention rl78 as a new target.
5996 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
5998 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
6000 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
6002 2012-02-15 Tom Tromey <tromey@redhat.com>
6005 * infcmd.c (registers_info): Print just the current register's
6008 2012-02-15 Tom Tromey <tromey@redhat.com>
6010 * python/py-symbol.c (sympy_value): Use _().
6012 2012-02-15 Pedro Alves <palves@redhat.com>
6014 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
6015 output to be like native targets'.
6016 (remote_pid_to_str): Special case the null ptid.
6018 2012-02-14 Stan Shebs <stan@codesourcery.com>
6020 * NEWS: Mention enable count command.
6021 * breakpoint.h (struct breakpoint): New field enable_count.
6022 * breakpoint.c (enable_breakpoint_disp): Add count argument.
6023 (enable_breakpoint): Add arg to call.
6024 (struct disp_data): New struct.
6025 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
6026 (do_map_enable_once_breakpoint): Create a struct and pass it.
6027 (do_map_enable_delete_breakpoint): Ditto.
6028 (do_map_enable_count_breakpoint): New function.
6029 (enable_count_command): New function.
6030 (bpstat_stop_status): Decrement enable_count.
6031 (print_one_breakpoint_location): Report enable count.
6032 (_initialize_breakpoint): Add enable count command.
6034 2012-02-14 Kevin Buettner <kevinb@redhat.com>
6036 * rl78-tdep.c (reggroups.h): Include.
6037 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
6038 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
6039 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
6040 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
6041 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
6042 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
6043 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
6044 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
6045 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
6046 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
6047 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
6048 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
6049 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
6050 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
6051 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
6052 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
6053 beginning of register list.
6054 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
6055 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
6056 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
6057 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
6058 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
6059 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
6060 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
6061 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
6062 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
6063 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
6064 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
6065 the pseudo registers. Rearrange other pseudo registers too so
6066 that the bank registers appear at the end.
6067 (rl78_register_type): Account for the fact that the byte sized
6068 bank registers are now pseudo-registers.
6069 (rl78_register_name): Rearrange the register name array. Make
6070 initial set of raw banked registers inaccessible.
6071 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
6072 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
6073 case for copying bytes back and forth between raw and pseudo
6074 versions of the banked registers. Update other cases to reflect
6076 (rl78_return_value): Update to account for changed names of
6078 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
6079 rl78_register_sim_regno().
6081 2012-02-14 Kevin Buettner <kevinb@redhat.com>
6083 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
6084 the name parameter being passed to find_pc_partial_function().
6086 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6088 * MAINTAINERS: Step down from being ia64 target maintainer.
6090 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6092 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
6093 compilation warning.
6095 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6097 Fix crash on loaded shlibs without loaded exec_bfd.
6098 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
6099 (set_section_command): Replace exec_bfd by p->bfd.
6101 2012-02-10 Tom Tromey <tromey@redhat.com>
6103 * linespec.c (decode_line_internal): Skip symtabs_from_filename
6104 when we have a C++ qualified name.
6106 2012-02-10 Pedro Alves <palves@redhat.com>
6108 * inferior.c (inferior_pid_to_str): New.
6109 (print_inferior, inferior_command): Use it.
6111 2012-02-10 Pedro Alves <palves@redhat.com>
6113 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
6115 * configure: Regenerate.
6117 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6119 * linespec.c (decode_line_internal): Fix comment correctness.
6121 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
6124 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
6125 * amd64bsd-nat.c: Add support for debug registers (adapted from
6127 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
6128 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
6129 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
6130 (amd64bsd_dr_get_control): New functions.
6131 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
6132 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
6133 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
6134 watchpoints initialization.
6135 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
6137 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6139 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
6141 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
6143 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6145 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
6147 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6149 * language.h (symbol_name_cmp_ftype): Renames
6150 symbol_name_match_p_ftype.
6151 (struct language_defn)[la_get_symbol_name_cmp]: Renames
6152 la_get_symbol_name_match_p.
6153 * ada-lang.c (ada_get_symbol_name_cmp): Renames
6154 ada_get_symbol_name_match_p. Update comment.
6155 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
6156 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
6157 Renames symbol_name_match_p. Update field type.
6158 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
6159 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6160 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
6161 "la_get_symbol_name_cmp" in comments.
6162 * language.c: Likewise.
6164 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6166 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
6168 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
6169 (amd64_sol2_gregset32_reg_offs): Likewise.
6171 2012-02-08 Joel Brobecker <brobecker@adacore.com>
6173 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
6174 of the returned BFD is allocated by GDB.
6176 2012-02-07 Tom Tromey <tromey@redhat.com>
6179 * python/python-internal.h (frame_object_type): Declare.
6180 * python/py-symbol.c (sympy_needs_frame): New function.
6181 (sympy_value): New function.
6182 (symbol_object_getset): Add "needs_frame".
6183 (symbol_object_methods): Add "value".
6184 * python/py-frame.c (frame_object_type): No longer static.
6186 2012-02-07 Tom Tromey <tromey@redhat.com>
6189 * python/py-symbol.c (sympy_line): New function.
6190 (symbol_object_getset): Add "line".
6192 2012-02-07 Tom Tromey <tromey@redhat.com>
6194 * charset.c (find_charset_names): Check 'in' against NULL.
6196 2012-02-06 Doug Evans <dje@google.com>
6198 * gdbtypes.h (struct main_type): Change type of name,tag_name,
6199 and fields.name members from char * to const char *. All uses updated.
6200 (struct cplus_struct_type): Change type of fn_fieldlists.name member
6201 from char * to const char *. All uses updated.
6202 (type_name_no_tag): Update.
6203 (lookup_unsigned_typename, lookup_signed_typename): Update.
6204 * gdbtypes.c (type_name_no_tag): Change result type
6205 from char * to const char *. All callers updated.
6206 (lookup_unsigned_typename, lookup_signed_typename): Change type of
6207 name parameter from char * to const char *.
6208 * symtab.h (struct cplus_specific): Change type of demangled_name
6209 member from char * to const char *. All uses updated.
6210 (struct general_symbol_info): Change type of name and
6211 mangled_lang.demangled_name members from char * to const char *.
6213 (symbol_get_demangled_name, symbol_natural_name): Update.
6214 (symbol_demangled_name, symbol_search_name): Update.
6215 * symtab.c (symbol_get_demangled_name): Change result type
6216 from char * to const char *. All callers updated.
6217 (symbol_natural_name, symbol_demangled_name): Ditto.
6218 (symbol_search_name): Ditto.
6219 (completion_list_add_name): Change type of symname,sym_text,
6220 text,word parameters from char * to const char *.
6221 (completion_list_objc_symbol): Change type of sym_text,
6222 text,word parameters from char * to const char *.
6223 * ada-lang.c (find_struct_field): Change type of name parameter
6224 from char * to const char *.
6225 (encoded_ordered_before): Similarly for N0,N1 parameters.
6226 (old_renaming_is_invisible): Similarly for function_name parameter.
6227 (ada_type_name): Change result type from char * to const char *.
6228 All callers updated.
6229 * ada-lang.h (ada_type_name): Update.
6230 * buildsym.c (hashname): Change type of name parameter
6231 from char * to const char *.
6232 * buildsym.h (hashname): Update.
6233 * dbxread.c (end_psymtab): Change type of include_list parameter
6234 from char ** to const char **.
6235 * dwarf2read.c (determine_prefix): Change result type
6236 from char * to const char *. All callers updated.
6237 * f-lang.c (find_common_for_function): Change type of name, funcname
6238 parameters from char * to const char *.
6239 * f-lang.c (find_common_for_function): Update.
6240 * f-valprint.c (list_all_visible_commons): Change type of funcname
6241 parameters from char * to const char *.
6242 * gdbarch.sh (static_transform_name): Change type of name parameter
6243 and result from char * to const char *.
6244 * gdbarch.c: Regenerate.
6245 * gdbarch.h: Regenerate.
6246 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
6247 of name parameter from char * to const char *.
6248 * jv-lang.c (java_primitive_type_from_name): Ditto.
6249 (java_demangled_signature_length): Similarly for signature parameter.
6250 (java_demangled_signature_copy): Ditto.
6251 (java_demangle_type_signature): Ditto.
6252 * jv-lang.h (java_primitive_type_from_name): Update.
6253 (java_demangle_type_signature): Update.
6254 * objc-lang.c (specialcmp): Change type of a,b parameters
6255 from char * to const char *.
6256 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
6257 from char * to const char *. All callers updated.
6258 * p-lang.h (is_pascal_string_type): Update.
6259 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
6260 of name parameter from char * to const char *.
6261 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
6262 * utils.c (fprintf_symbol_filtered): Ditto.
6263 * defs.h (fprintf_symbol_filtered): Update.
6264 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
6265 * stabsread.h (end_psymtab): Update.
6266 * stack.c (find_frame_funname): Change type of funname parameter
6267 from char ** to const char **.
6268 * stack.h (find_frame_funname): Update.
6269 * typeprint.c (type_print): Change type of varstring parameter
6270 from char * to const char *.
6271 * value.h (type_print): Update.
6272 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
6273 from char * to const char *. All callers updated.
6274 (xcoff_end_psymtab): Change type of include_list parameter
6275 from char ** to const char **. All callers updated.
6276 (swap_sym): Similarly for name parameter. All callers updated.
6277 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
6279 (process_coff_symbol): Use xstrdup.
6280 * stabsread.c (stabs_method_name_from_physname): Renamed from
6281 update_method_name_from_physname. Change result type from void
6282 to char *. All callers updated.
6283 (read_member_functions): In has_destructor case, store name in objfile
6284 obstack instead of malloc space. In !has_stub case, fix mem leak.
6286 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
6288 * configure: Rebuild.
6289 * configure.ac: Put -L../bfd and -L../libiberty at the front of
6292 2012-02-03 Kevin Buettner <kevinb@redhat.com>
6294 * configure.tgt (rl78-*-elf): New target.
6295 * rl78-tdep.c: New file.
6297 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6299 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
6300 and continue the loop. Add QUIT statement.
6302 2012-02-03 Tom Tromey <tromey@redhat.com>
6305 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
6306 bfd_lookup_symbol_from_symtab.
6307 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
6308 gdb_bfd_lookup_symbol_from_symtab.
6310 2012-02-03 Joel Brobecker <brobecker@adacore.com>
6312 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
6313 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
6314 symbol. Add assertion that sym2 is never NULL.
6316 2012-02-02 Doug Evans <dje@google.com>
6318 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
6319 "name" parameter to const char ** from char **. All callers updated.
6320 (find_pc_partial_function): Ditto.
6321 (cache_pc_function_name): Change type to const char * from char *.
6322 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
6323 (find_pc_partial_function): Update.
6324 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
6325 type of "name" parameter to const char * from char *.
6327 * arch-utils.c (generic_in_solib_return_trampoline): Change
6328 type of "name" parameter to const char * from char *.
6329 * arch-utils.h (generic_in_solib_return_trampoline): Update.
6330 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
6331 type of "name" parameter to const char * from char *.
6332 * gdbarch.sh (in_solib_return_trampoline): Ditto.
6333 * gdbarch.c: Regenerate.
6334 * gdbarch.h: Regenerate.
6335 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6336 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6337 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6338 type of "name" parameter to const char * from char *.
6339 * skip.c (skip_function_pc): Ditto.
6340 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6341 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6342 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6343 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6344 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6345 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6346 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6347 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6348 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6350 2012-02-02 Pedro Alves <palves@redhat.com>
6352 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6353 the current inferior has no execution. Make sure the current
6354 remote process matches gdb's current inferior.
6356 2012-02-02 Tom Tromey <tromey@redhat.com>
6359 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6362 2012-02-02 Tom Tromey <tromey@redhat.com>
6365 * symtab.c (lookup_language_this): Set block_found.
6367 2012-02-01 Tom Tromey <tromey@redhat.com>
6370 * jit.c (struct jit_inferior_data): Rewrite.
6371 (struct jit_objfile_data): New.
6372 (get_jit_objfile_data): New function.
6373 (add_objfile_entry): Update.
6374 (jit_read_descriptor): Return int. Replace descriptor_addr
6375 argument with inf_data. Update. Don't call error.
6376 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
6378 (jit_inferior_init): Don't look up descriptor. Don't call error.
6379 (jit_reset_inferior_data_and_breakpoints)
6380 (jit_inferior_created_observer): Remove.
6381 (jit_inferior_exit_hook): Update.
6382 (jit_executable_changed_observer): Remove.
6383 (jit_event_handler): Update.
6384 (free_objfile_data): Reset inferior data if needed.
6385 (_initialize_jit): Update.
6387 2012-02-01 Tom Tromey <tromey@redhat.com>
6389 * jit.c (bfd_open_from_target_memory): Move higher in file.
6391 2012-02-01 Tristan Gingold <gingold@adacore.com>
6393 * libunwind-frame.c (libunwind_load): Display message if dlopen
6396 2012-02-01 Gary Benson <gbenson@redhat.com>
6398 * symtab.h (symbol_found_callback_ftype): New typedef.
6399 (iterate_over_symbols): Use the above.
6400 * symtab.c (iterate_over_symbols): Likewise.
6401 * language.h (language_defn->la_iterate_over_symbols): Likewise.
6402 * ada-lang.c (ada_iterate_over_symbols): Likewise.
6403 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6404 (iterate_name_matcher): Document return values.
6405 (collect_one_symbol): Likewise.
6406 (collect_function_symbols): Likewise.
6407 (collect_symbols): Likewise.
6409 2012-02-01 Tom Tromey <tromey@redhat.com>
6411 * ada-lang.c (resolve_subexp): Update.
6412 (ada_lookup_symbol_list): Add 'full_search' argument.
6413 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6414 ada_lookup_symbol_list.
6415 (ada_lookup_encoded_symbol): Update.
6416 (get_var_value): Update.
6417 * ada-exp.y (block_lookup): Update.
6418 (write_var_or_type): Update.
6419 (write_name_assoc): Update.
6420 * ada-lang.h (ada_lookup_symbol_list): Update.
6422 2012-01-31 Tom Tromey <tromey@redhat.com>
6424 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6427 2012-01-31 Doug Evans <dje@google.com>
6429 * symtab.h: Remove outdated comment.
6430 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
6432 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6434 Fix build error in Darwin port.
6435 * i386-darwin-nat.c: Include i386-nat.h.
6437 2012-01-30 Tom Tromey <tromey@redhat.com>
6439 PR breakpoints/13568:
6440 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6441 argument. Check for recursive includes.
6442 (dwarf_decode_macros): Create an include hash.
6444 2012-01-30 Michael Eager <eager@eagercon.com>
6446 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6447 * ppc-linux-tdep.c: Include glibc-tdep.h.
6448 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
6449 (powerpc_linux_in_plt_stub): New function.
6450 (powerpc_linux_in_dynsym_resolve_code): New function.
6451 (ppc_skip_trampoline_code): New function.
6452 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6453 Use glibc_skip_solib_resolver.
6455 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6457 Code cleanup: Make 1440 bytes of data segment read-only.
6458 * arch-utils.c (endian_enum): Make it const char *const [].
6459 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6461 * breakpoint.c (always_inserted_enums): Likewise.
6462 * cli/cli-cmds.c (script_ext_enums): Likewise.
6463 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6464 enumlist parameter const char *const *.
6465 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6466 const char *const *.
6467 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6468 parameter const char *const *.
6469 * cris-tdep.c (cris_modes): Make it const char *const [].
6470 * filesystem.c (target_file_system_kinds): Likewise.
6471 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6472 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6473 (can_use_displaced_stepping_enum, scheduler_enums)
6474 (exec_direction_names): Likewise.
6475 * language.c (_initialize_language): Make the type_or_range_names and
6476 case_sensitive_names variables const char *const [].
6477 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6478 * python/python.c (python_excp_enums): Likewise.
6479 * remote.c (interrupt_sequence_modes): Likewise.
6480 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6481 * serial.c (logbase_enums): Likewise.
6482 * sh-tdep.c (sh_cc_enum): Likewise.
6483 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6485 * symtab.c (multiple_symbols_modes): Likewise.
6486 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6488 * utils.c (internal_problem_modes): Likewise.
6490 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6492 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6493 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6496 2012-01-27 Doug Evans <dje@google.com>
6498 * configure.ac (with_python): Fix absolute path handling for win32.
6499 * configure: Regenerate.
6501 2012-01-26 Doug Evans <dje@google.com>
6503 * symtab.c: Whitespace cleanup, no code changes.
6505 * symtab.c (lookup_symbol_in_language): Improve comment.
6506 (lookup_symbol_aux): Fix comment.
6508 * psymtab.c (add_psymbol_to_list): Result is now "void".
6509 * psympriv.h (add_psymbol_to_list): Update.
6511 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6513 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6515 Do not open script filenames twice.
6516 * cli/cli-cmds.c (source_script_from_stream): Pass to
6517 source_python_script also STREAM.
6518 * python/py-auto-load.c (source_section_scripts): Pass to
6519 source_python_script_for_objfile also STREAM.
6520 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6522 * python/python-internal.h (source_python_script_for_objfile): New
6523 parameter file, rename parameter file to filename.
6524 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6525 instead if !_WIN32. Update the function comment.
6526 (source_python_script, source_python_script_for_objfile)
6527 (source_python_script): New parameter file, rename parameter file to
6528 filename. Pass FILENAME to python_run_simple_file.
6529 * python/python.h (source_python_script): New parameter file, rename
6530 parameter file to filename.
6532 2012-01-26 Pedro Alves <palves@redhat.com>
6534 * corelow.c (core_has_fake_pid): Delete.
6535 (core_close): Delete references to `core_has_fake_pid'.
6536 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6537 (core_open): Delete references to `core_has_fake_pid'.
6538 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6541 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6543 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6544 Remove language parameter from name_matcher. Adjust the comment.
6545 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6546 Remove language parameter.
6547 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6548 * linespec.c (iterate_name_matcher): Likewise.
6549 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6550 name_matcher. Adjust call accordingly.
6551 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6552 (maintenance_check_symtabs): Adjust type of parameter "fun".
6553 * psymtab.h (maintenance_check_symtabs): Likewise.
6555 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6557 * language.h (symbol_name_match_p_ftype): New typedef.
6558 (struct language_defn): Replace field la_symbol_name_compare
6559 by la_get_symbol_name_match_p.
6560 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6561 (ada_language_defn): Use it.
6562 * linespec.c (struct symbol_matcher_data): New type.
6563 (iterate_name_matcher): Rewrite.
6564 (iterate_over_all_matching_symtabs): Pass a pointer to
6565 a symbol_matcher_data struct to expand_symtabs_matching
6566 instead of just the lookup name.
6567 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6568 opencl-lang.c, p-lang.c, language.c: Delete field
6569 la_symbol_name_compare, and replace by NULL for new field
6570 la_get_symbol_name_match_p.
6571 * symfile.h (struct quick_symbol_functions): Update comment.
6573 2012-01-25 Tom Tromey <tromey@redhat.com>
6575 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6578 2012-01-24 Tom Tromey <tromey@redhat.com>
6581 * solib.c (update_solib_list): Update the program space's
6582 added_solibs and deleted_solibs fields.
6583 * progspace.h (struct program_space) <added_solibs,
6584 deleted_solibs>: New fields.
6585 (clear_program_space_solib_cache): Declare.
6586 * progspace.c (release_program_space): Call
6587 clear_program_space_solib_cache.
6588 (clear_program_space_solib_cache): New function.
6589 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6590 bpstat_stop_status. Use handle_solib_event.
6591 * breakpoint.c: Include gdb_regex.h.
6592 (print_solib_event): New function.
6593 (bpstat_print): Use print_solib_event.
6594 (bpstat_stop_status): Add special case for bp_shlib_event.
6595 (handle_solib_event): New function.
6596 (bpstat_what): Use handle_solib_event.
6597 (struct solib_catchpoint): New.
6598 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6599 (breakpoint_hit_catch_solib, check_status_catch_solib)
6600 (print_it_catch_solib, print_one_catch_solib)
6601 (print_mention_catch_solib, print_recreate_catch_solib): New
6603 (catch_solib_breakpoint_ops): New global.
6604 (catch_load_or_unload, catch_load_command_1)
6605 (catch_unload_command_1): New functions.
6606 (internal_bkpt_check_status): Add special case for
6608 (internal_bkpt_print_it): Use print_solib_event.
6609 (initialize_breakpoint_ops): Initialize
6610 catch_solib_breakpoint_ops.
6611 (_initialize_breakpoint): Register "catch load" and "catch
6613 * breakpoint.h (handle_solib_event): Declare.
6614 * NEWS: Add entry for "catch load" and "catch unload".
6616 2012-01-24 Tom Tromey <tromey@redhat.com>
6618 * ada-lang.c: Include gdb_vecs.h.
6619 * charset.c: Include gdb_vecs.h.
6620 * tracepoint.h: Include gdb_vecs.h.
6621 * gdb_vecs.h: New file.
6623 2012-01-24 Pedro Alves <pedro@codesourcery.com>
6625 * breakpoint.c (breakpoint_hit_catch_fork)
6626 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6627 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6628 * infrun.c (inferior_has_forked, inferior_has_vforked)
6629 (inferior_has_execd, inferior_has_called_syscall): Delete.
6630 (handle_syscall_event): Get syscall_number from the execution
6631 control state's wait status.
6632 (wait_for_inferior): Don't clear syscall_number.
6634 2012-01-24 Pedro Alves <palves@redhat.com>
6636 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6637 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6638 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6639 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6641 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6642 false for events other than TARGET_SIGNAL_TRAP.
6643 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6645 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6646 events other than TARGET_SIGNAL_TRAP.
6647 (tracepoint_breakpoint_hit): Add `ws' parameter.
6648 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6650 (bpstat_stop_status): Same.
6651 (pc_at_non_inline_function): Same.
6652 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6653 to pass the current event's waitstatus to bpstat_stop_status
6654 and pc_at_non_inline_function.
6656 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6659 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6660 Update the function comment for it.
6661 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6662 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6665 2012-01-24 Pedro Alves <palves@redhat.com>
6667 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6668 outside `bs->stop' block.
6669 (bpstat_what): Rework bp_shlib_event handling.
6670 (internal_bkpt_check_status): If the breakpoint is a
6671 bp_shlib_event, then set bs->stop and bs->print if
6672 stop_on_solib_events is set.
6674 2012-01-24 Gary Benson <gbenson@redhat.com>
6676 Delete #if 0'd out code.
6677 * stack.c (print_frame_label_vars): Remove.
6678 (catch_info): Likewise.
6679 (_initialize_stack): Remove "info catch" command.
6680 * NEWS: Mention the above.
6682 2012-01-24 Pedro Alves <palves@redhat.com>
6684 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6686 (remote_notice_new_inferior): If the remote end doesn't support
6687 the multiprocess extensions, then the PID is fake.
6688 (add_current_inferior_and_thread): New.
6689 (remote_start_remote): Use it.
6690 (extended_remote_attach_1): Adjust.
6691 (extended_remote_create_inferior_1): Use
6692 add_current_inferior_and_thread.
6694 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6696 Fix watchpoints to be specific for each inferior.
6697 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6698 current_program_space.
6699 * i386-nat.c (i386_inferior_data_cleanup): New.
6700 (i386_inferior_data_get): Replace variable inf_data_local by an
6702 (i386_use_watchpoints): Initialize i386_inferior_data.
6703 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6704 specific iterate_over_lwps.
6706 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6708 Fix watchpoints across inferior fork.
6709 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6710 comment for linux_nat_iterate_watchpoint_lwps.
6711 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6712 linux_nat_iterate_watchpoint_lwps.
6713 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6714 * i386-linux-nat.c (update_debug_registers_callback): Update the
6715 comment for linux_nat_iterate_watchpoint_lwps.
6716 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6717 linux_nat_iterate_watchpoint_lwps.
6718 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6719 * i386-nat.c: Include inferior.h.
6720 (dr_mirror): Remove.
6721 (i386_inferior_data, struct i386_inferior_data)
6722 (i386_inferior_data_get): New.
6723 (i386_debug_reg_state): Use i386_inferior_data_get.
6724 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6725 (i386_insert_watchpoint, i386_remove_watchpoint)
6726 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6727 (i386_remove_hw_breakpoint): New variable state, use
6728 i386_debug_reg_state instead of DR_MIRROR.
6729 * linux-nat.c (delete_lwp): New declaration.
6730 (num_lwps): Move here from downwards.
6731 (delete_lwp_cleanup): New.
6732 (linux_child_follow_fork): Create new child_lp, call
6733 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6735 (num_lwps): Move upwards.
6736 (linux_nat_iterate_watchpoint_lwps): New.
6737 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6738 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6740 2012-01-24 Joel Brobecker <brobecker@adacore.com>
6744 2012-01-23 Pedro Alves <palves@redhat.com>
6746 * top.c (caution): Rename to ...
6747 (confirm): ... this.
6748 (show_caution): Rename to ...
6749 (show_confirm): ... this.
6750 (quit_cover): Adjust.
6751 (init_main): Adjust.
6752 * top.h (caution): Rename to ...
6753 (confirm): ... this.
6754 * utils.c (internal_vproblem, defaulted_query): Adjust.
6756 2012-01-23 Pedro Alves <palves@redhat.com>
6758 * top.c (caution): Update comment.
6759 (execute_command): Don't consider the current value of `caution'.
6761 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6763 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6765 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6767 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6768 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6769 * target.c (target_fileio_pwrite): Remove buffer address from
6771 (target_fileio_pread): Likewise.
6773 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6775 * NEWS: Document remote "info proc" and "generate-core-file".
6777 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6779 * gdbarch.sh (find_memory_regions): New callback.
6780 * gdbarch.c, gdbarch.h: Regenerate.
6782 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6783 callback before falling back to target method.
6785 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6786 (linux_target_install_ops): No longer install it.
6788 * linux-tdep.c (linux_find_memory_regions): New function.
6789 (linux_init_abi): Install it.
6791 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6793 * gdbarch.sh (make_corefile_notes): New architecture callback.
6794 * gdbarch.c: Regenerate.
6795 * gdbarch.h: Likewise.
6797 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6798 before target_make_corefile_notes. If NULL is returned, the
6799 target does not support core file generation.
6801 * linux-nat.c: Include "linux-tdep.h".
6802 (find_signalled_thread, find_stop_signal): Remove.
6803 (linux_nat_do_thread_registers): Likewise.
6804 (struct linux_nat_corefile_thread_data): Likewise.
6805 (linux_nat_corefile_thread_callback): Likewise.
6806 (iterate_over_spus): Likewise.
6807 (struct linux_spu_corefile_data): Likewise.
6808 (linux_spu_corefile_callback): Likewise.
6809 (linux_spu_make_corefile_notes): Likewise.
6810 (linux_nat_collect_thread_registers): New function.
6811 (linux_nat_make_corefile_notes): Replace contents by call to
6812 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6813 as native-only callback.
6815 * linux-tdep.h: Include "bfd.h".
6816 (struct regcache): Add forward declaration.
6817 (linux_collect_thread_registers_ftype): New typedef.
6818 (linux_make_corefile_notes): Add prototype.
6819 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6820 "regset.h", and "elf-bfd.h".
6821 (find_signalled_thread, find_stop_signal): New functions.
6822 (linux_spu_make_corefile_notes): Likewise.
6823 (linux_collect_thread_registers): Likewise.
6824 (struct linux_corefile_thread_data): New data structure.
6825 (linux_corefile_thread_callback): New funcion.
6826 (linux_make_corefile_notes): Likewise.
6827 (linux_make_corefile_notes_1): Likewise.
6828 (linux_init_abi): Install it.
6830 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6832 * gdbarch.sh (info_proc): New callback.
6833 * gdbarch.c, gdbarch.h: Regenerate.
6835 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6836 before falling back to the target info_proc callback.
6838 * linux-nat.c: Do not include "cli/cli-utils.h".
6839 (linux_nat_info_proc): Remove.
6840 (linux_target_install_ops): No longer install it.
6842 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6843 (read_mapping): New function.
6844 (linux_info_proc): Likewise.
6845 (linux_init_abi): Install it.
6847 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6849 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6850 * infcmd.c: (info_proc_cmd_1): New function.
6851 (info_proc_cmd): New function, moved here from equivalent routine
6852 orignally in linux-nat.c.
6853 (info_proc_cmd_mappings): Likewise.
6854 (info_proc_cmd_stat): Likewise.
6855 (info_proc_cmd_status): Likewise.
6856 (info_proc_cmd_cwd): Likewise.
6857 (info_proc_cmd_cmdline): Likewise.
6858 (info_proc_cmd_exe): Likewise.
6859 (info_proc_cmd_all): Likewise.
6860 (_initialize_infcmd): Install "info proc" command and subcommands.
6862 * target.h (struct target_ops): Add to_info_proc.
6863 (target_info_proc): Add prototype.
6864 * target.c (target_info_proc): New function.
6866 * procfs.c (procfs_info_proc): Add prototype.
6867 (info_proc_cmd): Rename into ...
6868 (procfs_info_proc): ... this. Update argument types as appropriate
6869 for a to_info_proc implementation. Handle "what" argument.
6870 (procfs_target): Install procfs_info_proc.
6871 (_initialize_procfs): No longer install "info proc" command.
6873 * linux-nat.c: (enum info_proc_what): Remove.
6874 (linux_nat_info_proc_cmd_1): Rename into ...
6875 (linux_nat_info_proc): ... this. Update argument types as appropriate
6876 for a to_info_proc implementation.
6877 (linux_nat_info_proc_cmd): Remove.
6878 (linux_nat_info_proc_cmd_mappings): Likewise.
6879 (linux_nat_info_proc_cmd_stat): Likewise.
6880 (linux_nat_info_proc_cmd_status): Likewise.
6881 (linux_nat_info_proc_cmd_cwd): Likewise.
6882 (linux_nat_info_proc_cmd_cmdline): Likewise.
6883 (linux_nat_info_proc_cmd_exe): Likewise.
6884 (linux_nat_info_proc_cmd_all): Likewise.
6885 (linux_target_install_ops): Install linux_nat_info_proc.
6886 (_initialize_linux_nat): No longer install "info proc" command
6889 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6891 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6892 * config.in, configure: Regenerate.
6894 * target.h (struct target_ops): Add to_fileio_readlink.
6895 (target_fileio_readlink): Add prototype.
6896 * target.c (target_fileio_readlink): New function.
6898 * inf-child.c: Conditionally include <sys/param.h>.
6899 (inf_child_fileio_readlink): New function.
6900 (inf_child_target): Install it.
6902 * remote.c (PACKET_vFile_readlink): New enum value.
6903 (remote_hostio_readlink): New function.
6904 (init_remote_ops): Install it.
6905 (_initialize_remote): Handle vFile:readlink packet type.
6907 2012-01-20 Pedro Alves <palves@redhat.com>
6908 Ulrich Weigand <ulrich.weigand@linaro.org>
6910 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6911 * config.in, configure: Regenerate.
6913 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6914 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6915 (target_fileio_open): Add prototype.
6916 (target_fileio_pwrite): Likewise.
6917 (target_fileio_pread): Likewise.
6918 (target_fileio_close): Likewise.
6919 (target_fileio_unlink): Likewise.
6920 (target_fileio_read_alloc): Likewise.
6921 (target_fileio_read_stralloc): Likewise.
6923 * target.c: Include "gdb/fileio.h".
6924 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6925 (default_fileio_target): New function.
6926 (target_fileio_open): Likewise.
6927 (target_fileio_pwrite): Likewise.
6928 (target_fileio_pread): Likewise.
6929 (target_fileio_close): Likewise.
6930 (target_fileio_unlink): Likewise.
6931 (target_fileio_close_cleanup): Likewise.
6932 (target_fileio_read_alloc_1): Likewise.
6933 (target_fileio_read_alloc): Likewise.
6934 (target_fileio_read_stralloc): Likewise.
6936 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6937 <fcntl.h>, and <unistd.h>.
6938 (inf_child_fileio_open_flags_to_host): New function.
6939 (inf_child_errno_to_fileio_error): Likewise.
6940 (inf_child_fileio_open): Likewise.
6941 (inf_child_fileio_pwrite): Likewise.
6942 (inf_child_fileio_pread): Likewise.
6943 (inf_child_fileio_close): Likewise.
6944 (inf_child_fileio_unlink): Likewise.
6945 (inf_child_target): Install to_fileio routines.
6947 * remote.c (init_remote_ops): Install to_fileio routines.
6949 2012-01-20 Pedro Alves <palves@redhat.com>
6950 Ulrich Weigand <ulrich.weigand@linaro.org>
6952 * remote.c (remote_multi_process_p): Only check for multi-process
6953 protocol feature, do not check for extended protocol.
6954 (remote_supports_multi_process): Check for extended protocol here.
6955 (set_general_process): Likewise.
6956 (extended_remote_kill): Likewise.
6957 (remote_pid_to_str): Likewise.
6958 (remote_query_supported): Always query multiprocess mode.
6960 2012-01-20 Pedro Alves <palves@redhat.com>
6961 Ulrich Weigand <ulrich.weigand@linaro.org>
6963 * inferior.h (struct inferior): Add fake_pid_p.
6964 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6965 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6966 magic_null_ptid since the remote side doesn't provide a real PID.
6968 2012-01-19 Tom Tromey <tromey@redhat.com>
6970 * NEWS: Combine the two Python sections.
6972 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6974 * target.h (target_close): Update comment on the target's unpush state.
6976 2012-01-19 Pedro Alves <palves@redhat.com>
6978 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6979 linux_nat_async directly instead of going through the target
6981 * target.c (unpush_target): Close target after unpushing it, not
6984 2012-01-19 Gary Benson <gbenson@redhat.com>
6986 * mdebugread.c (sort_blocks): Replace integer constants with ones
6987 derived from FIRST_LOCAL_BLOCK.
6989 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
6990 Jan Kratochvil <jan.kratochvil@redhat.com>
6993 * symfile.c (find_separate_debug_file): New function.
6994 (terminate_after_last_dir_separator): Likewise.
6995 (find_separate_debug_file_by_debuglink): Also try realpath.
6996 * configure.ac (AC_CHECK_FUNCS): Add lstat.
6997 * configure: Regenerate.
6998 * config.in: Regenerate.
7000 2012-01-18 Doug Evans <dje@google.com>
7002 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
7003 (main.o): Remove rule.
7004 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
7005 (--with-sysroot): Rewrite.
7006 * configure: Regenerate.
7007 * config.in: Regenerate.
7009 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
7011 * parse.c (initialize_expout): New function.
7012 (reallocate_expout): Likewise.
7013 (parse_exp_in_context): Use `initialize_expout' and
7014 `reallocate_expout' when appropriate.
7016 2012-01-18 Pedro Alves <palves@redhat.com>
7018 * record.c (struct record_breakpoint, record_breakpoint_p)
7019 (record_breakpoints): New.
7020 (record_insert_breakpoint, record_remove_breakpoint): Manage
7021 record breakpoints list. Only remove breakpoints from the
7022 inferior if they had been inserted there in the first place.
7024 2012-01-17 Doug Evans <dje@google.com>
7026 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
7027 if we know we don't have a file name to look for.
7029 2012-01-17 Pedro Alves <palves@redhat.com>
7031 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
7032 the frame's stop reason is UNWIND_UNAVAILABLE.
7034 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7036 Fix compilation error.
7037 * m2-exp.y (yyerror): Use ANSI C prototype.
7039 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7041 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
7042 (growbuf_by_size): Likewise.
7043 (yyerror): Likewise.
7044 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
7045 (modblock): Remove variable (was #if 0'ed).
7046 (parse_number): Convert prototype from K&R to ANSI C.
7047 (yyerror): Likewise.
7048 * objc-exp.y (parse_number): Likewise.
7049 (yyerror): Likewise.
7050 (yylex): Remove #if 0'ed code.
7051 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
7052 (yyerror): Likewise.
7054 2012-01-16 Tom Tromey <tromey@redhat.com>
7057 * symtab.h (compare_filenames_for_search): Declare.
7058 * symtab.c (compare_filenames_for_search): New function.
7059 (iterate_over_some_symtabs): Use it.
7060 * symfile.h (struct quick_symbol_functions)
7061 <map_symtabs_matching_filename>: Change spec.
7062 * psymtab.c (partial_map_symtabs_matching_filename): Use
7063 compare_filenames_for_search. Update for new spec.
7064 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
7065 compare_filenames_for_search. Update for new spec.
7066 * breakpoint.c (clear_command): Use compare_filenames_for_search.
7068 2012-01-16 Tom Tromey <tromey@redhat.com>
7071 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
7072 (struct main_type) <flag_flag_enum>: New field.
7073 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
7074 * NEWS: Add entries.
7075 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
7077 * python/lib/gdb/printing.py (_EnumInstance): New class.
7078 (FlagEnumerationPrinter): Likewise.
7080 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7082 * breakpoint.c (create_sals_from_address_default): New function.
7083 (create_breakpoints_sal_default): Likewise.
7084 (decode_linespec_default): Likewise.
7085 (is_marker_spec): Removed.
7086 (strace_marker_p): New function.
7087 (init_breakpoint_sal): Using `strace_marker_p' instead of
7089 (create_breakpoint): Call method `create_sals_from_address' from
7090 breakpoint_ops, replacing code that created SALs conditionally
7091 on the type of the breakpoint. Call method `create_breakpoints_sal',
7092 replacing code that created breakpoints conditionally on the type
7094 (base_breakpoint_create_sals_from_address): New function.
7095 (base_breakpoint_create_breakpoints_sal): Likewise.
7096 (base_breakpoint_decode_linespec): Likewise.
7097 (base_breakpoint_ops): Add methods
7098 `base_breakpoint_create_sals_from_address',
7099 `base_breakpoint_create_breakpoints_sal' and
7100 `base_breakpoint_decode_linespec'.
7101 (bkpt_create_sals_from_address): New function.
7102 (bkpt_create_breakpoints_sal): Likewise.
7103 (bkpt_decode_linespec): Likewise.
7104 (tracepoint_create_sals_from_address): Likewise.
7105 (tracepoint_create_breakpoints_sal): Likewise.
7106 (tracepoint_decode_linespec): Likewise.
7107 (strace_marker_create_sals_from_address): Likewise.
7108 (strace_marker_create_breakpoints_sal): Likewise.
7109 (strace_marker_decode_linespec): Likewise.
7110 (strace_marker_breakpoint_ops): New variable.
7111 (addr_string_to_sals): Remove `marker_spec'. Call method
7112 `decode_linespec' from breakpoint_ops, replacing code that decoded
7113 an address string into a SAL. Use `strace_marker_p' instead of
7115 (strace_command): Decide whether we are dealing with a static
7116 tracepoint with marker or not. Use the appropriate breakpoint_ops.
7117 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
7118 * breakpoint.h (linespec_result, linespec_sals): New forward
7120 (breakpoint_ops) <create_sals_from_address>,
7121 <create_breakpoints_sal>, <decode_linespec>: New methods.
7123 2012-01-14 Doug Evans <dje@google.com>
7125 * NEWS: Update text for "maint set python print-stack".
7126 It is deprecated in gdb 7.4 and deleted in 7.5.
7128 2012-01-13 Eli Zaretskii <eliz@gnu.org>
7130 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
7133 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7135 * configure: Regenerate.
7136 * config.in: Regenerate.
7138 2012-01-12 Keith Seitz <keiths@redhat.com>
7141 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
7142 (ANONYMOUS_UNION_NAME): Define.
7143 (is_path_expr_parent): New function.
7144 (get_path_expr_parent): New function.
7145 (is_anonymous_child): New function.
7146 (create_child_with_value): If the child is anonymous and without
7147 a name, assign an object name to it.
7148 (c_describe_child): Use get_path_expr_parent to determine
7149 the parent expression.
7150 If there field represents an anonymous struct or union and
7151 has no name, set an appropriate display name and expression.
7152 (cplus_describe_child): Likewise.
7154 2012-01-12 Pedro Alves <palves@redhat.com>
7156 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
7157 available when %ebp is found to be zero (outermost).
7159 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
7161 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
7162 an internal gdb_static_assert.
7163 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
7165 2012-01-11 Tom Tromey <tromey@redhat.com>
7168 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
7169 catch" and "catch throw".
7171 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
7173 * blockframe.c (block_innermost_frame): Start search from selected
7174 frame, if present, or otherwise the current frame.
7176 * c-exp.y (variable): Update innermost_block for
7177 'block COLONCOLON NAME' clause.
7178 * m2-exp.y (variable): Ditto.
7179 * objc-exp.y (variable): Ditto.
7181 2012-01-10 Tom Tromey <tromey@redhat.com>
7184 * python/python.c (finish_python_initialization): Set sys.argv.
7186 2012-01-10 Doug Evans <dje@google.com>
7188 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
7189 "want_line_info". All callers updated.
7190 (dwarf_decode_lines_1): New function.
7191 (handle_DW_AT_stmt_list): Add function comment.
7192 New arg "want_line_info". All callers updated.
7193 (read_file_scope,read_type_unit_scope): Move comment from
7194 handle_DW_AT_stmt_list to here.
7196 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7198 Fix regression after libiberty/ update for GCC PR 6057 and others.
7199 * c-exp.y (operator) <OPERATOR DELETE>
7200 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7201 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
7202 (make_builtin_type, make_name): New variable i, add gdb_assert.
7203 (operator) <OPERATOR NEW>: Update ARGS to 3.
7204 (operator) <OPERATOR DELETE>: Add trailing space.
7205 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
7206 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7207 * cp-support.c (cp_canonicalize_string): Check NULL from
7208 cp_comp_to_string, call warning and return.
7210 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7212 Fix duplicate .o files after omitting libbfd.a.
7213 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
7214 (SFILES): Add corelow.c.
7215 (COMMON_OBS): Add corelow.o.
7216 (ALLDEPFILES): Remove corelow.c.
7217 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
7218 * config/alpha/alpha-osf3.mh: Likewise.
7219 * config/alpha/fbsd.mh: Likewise.
7220 * config/arm/nbsdaout.mh: Likewise.
7221 * config/arm/nbsdelf.mh: Likewise.
7222 * config/i386/i386gnu.mh: Likewise.
7223 * config/ia64/hpux.mh: Likewise.
7224 * config/ia64/linux.mh: Likewise.
7225 * config/m32r/linux.mh: Likewise.
7226 * config/m68k/linux.mh: Likewise.
7227 * config/mips/irix5.mh: Likewise.
7228 * config/mips/irix6.mh: Likewise.
7229 * config/pa/hpux.mh: Likewise.
7230 * config/pa/linux.mh: Likewise.
7231 * config/powerpc/aix.mh: Likewise.
7232 * config/sparc/linux.mh: Likewise.
7233 * config/sparc/linux64.mh: Likewise.
7234 * config/sparc/sol2.mh: Likewise.
7235 * config/vax/vax.mh: Likewise.
7236 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
7237 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
7238 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
7239 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
7240 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
7241 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
7242 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
7243 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
7244 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
7245 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
7246 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
7247 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
7248 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7249 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
7250 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
7251 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7252 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
7253 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
7254 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
7255 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
7256 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
7257 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
7258 corelow.o from gdb_target_obs.
7259 * corefile.c (core_target): Update the comment on NULL value.
7260 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
7261 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
7262 MATCHES. Drop YUMMY set on NULL.
7263 (core_close): Do not call exit_inferior_silent on zero PID. Do not
7264 reclaim CORE_DATA if it is already NULL.
7266 2012-01-09 Doug Evans <dje@google.com>
7268 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
7269 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
7271 2012-01-09 Keith Seitz <keiths@redhat.com>
7273 * breakpoint.c (wrapper.h): Don't include.
7275 2012-01-09 Keith Seitz <keiths@redhat.com>
7277 * Makefile.in (SFILES): Remove wrapper.c.
7278 (HFILES_NO_SRCDIR): Remove wrapper.h.
7279 (COMMON_OBS): Remove wrapper.o.
7280 * cli/cli-interp.c: Don't inlude wrapper.h.
7281 * corelow.c: Likewise.
7282 (core_open): Replace gdb_target_find_new_threads with
7283 TRY_CATCH around target_find_new_threads.
7284 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
7285 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
7286 * varobj.c (varobj_create): Likewise for parse_exp_1 and
7287 evaluate_expression.
7288 (varobj_set_value): Likewise for evaluate_expression and
7290 (install_new_variable): Likewise for value_fetch_lazy.
7291 (adjust_value_for_child_access): Likewise for value_ind.
7292 (c_describe_child): Likewise for value_subscript and
7294 (c_value_of_root): Likewise for evaluate_expression.
7295 * wrapper.c: Remove.
7296 * wrapper.h: Remove.
7298 2012-01-09 Doug Evans <dje@google.com>
7300 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
7301 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
7302 "abfd" args with "section". All callers updated.
7303 Error checking code moved ...
7304 (error_check_comp_unit_head): ... here. New function.
7305 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
7306 Delete arg "abfd". New arg "type_offset". All callers updated.
7307 (create_debug_types_hash_table): Simplify by using
7308 read_and_check_type_unit_head.
7310 * parser-defs.h (namecopy): Delete.
7311 * parse.c (namecopy, namecopy_size): Move into copy_name.
7313 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7315 Partially fix duplicate .o files after omitting libbfd.a.
7316 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
7317 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7318 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
7319 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7320 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
7321 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
7322 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7324 2012-01-09 Pedro Alves <palves@redhat.com>
7326 * MAINTAINERS: Update my email address.
7328 2012-01-08 Doug Evans <dje@google.com>
7330 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
7331 n_type_units. Rename type_comp_units to all_type_units.
7333 (add_signatured_type_cu_to_table): Renamed from
7334 add_signatured_type_cu_to_list. All callers updated.
7336 * gdbtypes.h (struct cplus_struct_type): Delete member
7337 nfn_fields_total. All uses removed.
7339 2012-01-06 Doug Evans <dje@google.com>
7341 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7343 (dwarf2_find_comp_unit): Delete.
7344 (process_psymtab_comp_unit): Make result "void".
7345 Delete args buffer, info_ptr, buffer_size, and replace with
7346 "section". All callers updated.
7347 (dwarf2_build_psymtabs_hard): Simplify.
7349 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
7350 Thiago Jung Bauermann <bauerman@br.ibm.com>
7352 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7353 before `struct gdb_exception'.
7354 * breakpoint.c (update_global_location_list_nothrow)
7355 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7356 * cp-abi.c (value_rtti_type): Likewise.
7357 * cp-support.c (cp_validate_operator): Likewise.
7358 * infrun.c (insert_exception_resume_breakpoint)
7359 (check_exception_resume, keep_going): Likewise.
7360 * mi-interp.c (mi_breakpoint_created)
7361 (mi_breakpoint_modified): Likewise.
7362 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7363 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7364 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7366 2012-01-05 Doug Evans <dje@google.com>
7368 * dwarf2read.c (statement_prologue): Delete, unused.
7370 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7371 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7373 * dwarf2read.c (comp_unit_header): Delete, unused.
7375 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
7377 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7378 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7380 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
7382 * infrun.c (normal_stop): Don't skip calling the normal_stop
7383 observers if the thread was doing a multi-step, but stopped for
7384 some reason other than stepping.
7386 2012-01-05 Pedro Alves <alves.ped@gmail.com>
7388 * cli/cli-decode.h: Add comments.
7389 (CMD_LIST_AMBIGUOUS): Moved to command.h
7390 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7391 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7392 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7393 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7394 (add_com, add_com_alias, add_info, add_info_alias)
7395 (complete_on_cmdlist, complete_on_enum, help_list): Remove
7397 * command.h: Add and adjust comments.
7398 (CMD_LIST_AMBIGUOUS): Moved here.
7399 (help_cmd, help_cmd_list): Delete declarations.
7401 2012-01-04 Doug Evans <dje@google.com>
7403 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7404 All callers updated.
7405 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7406 Replace all arguments with "per_cu". All callers updated.
7408 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7410 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7411 New arg "per_cu". All callers updated.
7413 Delete #if 0'd out code.
7414 * language.c (binop_result_type): Delete.
7415 (simple_type, ordered_type, same_type, integral_type): Delete.
7416 (numeric_type, character_type, string_type, boolean_type): Delete.
7417 (float_type, structured_type): Delete.
7418 * language.h: Update.
7420 2012-01-04 Tom Tromey <tromey@redhat.com>
7422 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7424 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7426 * corefile.c (close_exec_file): Delete.
7427 (reopen_exec_file): Remove commented out code that seems related
7428 to close_exec_file, which is being deleted here.
7429 * inferior.h (close_exec_file): Delete.
7430 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7432 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7434 * ada-lang.c: #include "cli/cli-utils.h".
7435 (get_selections): Use skip_spaces.
7436 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7437 (catch_ada_exception_command_split): Use skip_spaces.
7438 (ada_decode_assert_location): Likewise.
7440 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7442 * linespec.c (decode_line_internal): Check for C++ or Java
7443 compound constructs only if the current language is C, C++
7446 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7449 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7450 Joel Brobecker <brobecker@adacore.com>
7451 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7452 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7454 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7455 fall through into AT_ENTRY_POINT.
7456 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7458 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7459 PPC_INSN_SIZE skip to 3 times.
7461 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7463 * linespec.c (add_minsym): Preserve function descriptors.
7465 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7467 * breakpoint.c (all_locations_are_pending): Consider locations
7468 in program spaces executing during startup pending as well.
7470 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7472 Copyright year update in most files of the GDB Project.
7474 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7476 * copyright.sh: Delete.
7477 * copyright.py: Rewrite.
7479 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7481 * gnulib/extra/update-copyright: New file, imported from gnulib.
7483 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7485 * README (Copyright and License Notices): New section.
7487 2012-01-03 Tom Tromey <tromey@redhat.com>
7490 * python/py-value.c (valpy_dereference, valpy_get_address
7491 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7492 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7493 (valpy_absolute, valpy_richcompare): Free intermediate values.
7495 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7497 * ada-lang.c: Reformat the copyright notice.
7499 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7501 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7502 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7503 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7504 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7505 Revert this part of:
7506 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7507 Build gdb directly from *.o files not using libgdb.a.
7508 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7510 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7512 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7513 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7514 Reformat the copyright header.
7516 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7518 Revert this part of:
7519 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7520 Remove the gdbtui binary.
7521 * gdb.c (main): Remove args.interpreter_p initialization.
7522 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7523 * main.h (struct captured_main_args): Remove interpreter_p.
7525 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7527 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7529 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7531 * top.c (print_gdb_version): Update copyright year.
7533 2012-01-02 Yao Qi <yao@codesourcery.com>
7535 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7537 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7538 Joel Brobecker <brobecker@adacore.com>
7540 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7541 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7543 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7544 fall through into AT_ENTRY_POINT.
7545 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7547 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7548 PPC_INSN_SIZE skip to 3 times.
7550 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7552 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7554 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7556 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7558 Build gdb directly from *.o files not using libgdb.a.
7559 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7560 (COMMON_OBS): Remove solib-target.o.
7561 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7562 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7563 (LIBGDB_OBS, libgdb.a): Move it above.
7564 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7565 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7566 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7567 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7568 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7569 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7570 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7571 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7572 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7573 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7574 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7575 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7576 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7577 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7578 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7579 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7580 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7581 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7582 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7583 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7584 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7585 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7586 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7587 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7588 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7589 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7590 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7592 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7594 Remove the gdbtui binary.
7595 * .gitignore (/gdbtui): Remove.
7596 * Makefile.in (TUI): Remove.
7597 (SUBDIR_TUI_OBS): Remove tui-main.o.
7598 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7599 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7600 (tui-main.o): Remove.
7601 (all_object_files): Remove tui-main.o.
7602 * NEWS: New note for the gdbtui removal.
7603 * configure: Rebuilt.
7604 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7605 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7606 CONFIG_UNINSTALL respectively.
7607 * gdb.c (main): Remove args.interpreter_p initialization.
7608 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7609 * main.h (struct captured_main_args): Remove interpreter_p.
7610 * tui/tui-main.c: Remove.
7612 2012-01-01 Doug Evans <dje@google.com>
7614 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7615 (dwarf2_physname, read_import_statement): Ditto.
7616 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7617 (process_structure_scope read_subroutine_type): Ditto.
7618 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7619 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7620 (dwarf2_fetch_die_location_block): Ditto.
7621 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7623 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7624 All callers updated.
7625 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7626 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7627 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7629 * dwarf2read.c (load_cu): Move assert to more useful location.
7631 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7632 All callers updated.
7634 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7635 (dwarf2_elf_names): Minor reformat.
7636 (dwarf2_per_cu_data): Tweak comment.
7637 (dwarf2_read_section): Fix comment.
7638 (create_all_comp_units): Fix comment.
7639 (load_full_comp_unit): Fix comment.
7640 (process_full_comp_unit): Fix comment.
7641 (read_signatured_type): Fix comment.
7643 For older changes see ChangeLog-2011.
7649 version-control: never