1 2012-06-13 Joel Brobecker <brobecker@adacore.com>
3 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4 _initialize_inf_ttrace.
6 2012-06-13 Joel Brobecker <brobecker@adacore.com>
8 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
9 _initialize_hppa_hpux_nat.
11 2012-06-13 Joel Brobecker <brobecker@adacore.com>
13 * remote-sim.c (sim_command_completer): Change type of return
14 value to "VEC (char_ptr) *". Adjust implementation accordingly.
16 2012-06-13 Mark Kettenis <kettenis@gnu.org>
17 Jan Kratochvil <jan.kratochvil@redhat.com>
20 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
21 stack on a 16-byte boundary.
23 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
25 * jit.c (finalize_symtab): Set function's return type to 'void' by
28 2012-06-13 Mark Kettenis <kettenis@gnu.org>
29 H.J. Lu <hongjiu.lu@intel.com>
31 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
32 Move bits common to both the classic LP64 and the new x32 ILP32
34 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
35 (amd64_x32_linux_init_abi): New function.
36 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
39 * i386-tdep.h (i386_pseudo_register_name): New prototype.
40 * i386-tdep.c (i386_pseudo_register_name): Make public.
41 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
42 * amd64-tdep.c (amd64_dword_names): Add "eip".
43 (amd64_x32_pseudo_register_type): New function
44 (amd64_x32_init_abi): New function.
46 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
49 * inferior.h (struct inferior_suspend_state): Comment out.
50 (struct inferior): Comment out the field suspend.
51 * infrun.c (struct infcall_suspend_state): Comment out the field
53 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
56 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
58 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
59 * c-exp.y (classify_inner_name): Remove caller assumptions in the
60 function comment. Return ERROR for unresolved cases. Implement
61 returning proper NAME.
62 (yylex): Accept also NAME from classify_inner_name.
63 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
64 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
66 * cp-support.h (cp_lookup_nested_type): Update its declaration.
68 2012-06-13 Tom Tromey <tromey@redhat.com>
70 * breakpoint.c (condition_completer): New function.
71 (_initialize_breakpoint): Use it.
72 * value.c (complete_internalvar): New function.
73 * value.h (complete_internalvar): Declare.
75 2012-06-13 Tom Tromey <tromey@redhat.com>
77 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
78 * breakpoint.c (catch_syscall_completer): Return a VEC.
79 * cli/cli-cmds.c (complete_command): Update.
80 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
81 (complete_on_enum): Likewise.
82 * command.h: Include gdb_vecs.h.
83 (completer_ftype): Change return type.
84 (complete_on_cmdlist, complete_on_enum): Likewise.
85 * completer.c (noop_completer, filename_completer)
86 (location_completer): Return a VEC.
87 (add_struct_fields): Remove 'nextp' argument. Change 'output'
89 (expression_completer, complete_line_internal, complete_line)
90 (command_completer): Return a VEC.
91 (gdb_completion_word_break_characters, line_completion_function):
93 * completer.h: Include gdb_vecs.h.
94 (complete_line, noop_completer, filename_completer)
95 (expression_completer, location_completer, command_completer):
97 * f-lang.c (f_word_break_characters): Return a VEC.
98 * interps.c (interpreter_completer): Return a VEC.
99 * language.h (struct language_defn)
100 <la_make_symbol_completion_list>: Return a VEC.
101 * python/py-cmd.c (cmdpy_completer): Return a VEC.
102 * symtab.c (free_completion_list): Take a VEC.
103 (return_val_size, return_val_index): Remove.
104 (return_val): Now a VEC.
105 (completion_list_add_name): Update.
106 (default_make_symbol_completion_list_break_on)
107 (default_make_symbol_completion_list, make_symbol_completion_list)
108 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
110 (add_filename_to_list): Update.
111 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
113 (maybe_add_partial_symtab_filename): Update.
114 (make_source_files_completion_list): Return a VEC.
115 * symtab.h (default_make_symbol_completion_list_break_on)
116 (default_make_symbol_completion_list, make_symbol_completion_list)
117 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
118 (make_source_files_completion_list): Update.
120 2012-06-13 Tom Tromey <tromey@redhat.com>
122 * breakpoint.c (add_catch_command): Use completer_ftype.
123 * breakpoint.h: Include command.h.
124 (add_catch_command): Use completer_ftype.
125 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
126 * cli/cli-decode.h (struct cmd_list_element) <completer>:
128 * command.h (completer_ftype): New typedef.
129 (set_cmd_completer): Use it.
130 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
133 2012-06-13 Pedro Alves <palves@redhat.com>
135 Partial revert of previous change.
137 * serial.c (scb_base): New global.
138 (serial_for_fd): New.
139 (serial_open, serial_fdopen_ops): Link new serial in open serials
141 (do_serial_close): Unlink serial from the open serials chain.
143 2012-06-12 Pedro Alves <palves@redhat.com>
145 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
147 (prepare_for_detach): No longer context switch here in non-stop
149 (fetch_inferior_event): Ditto.
150 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
151 to the event thread before removing breakpoints. Switch to the
152 event thread before inserting breakpoints and resuming.
153 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
154 event thread before resuming.
155 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
156 Switch to the event thread before removing breakpoints.
158 2012-06-12 Eli Zaretskii <eliz@gnu.org>
160 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
161 special characters correctly for the Windows shells. See
162 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
164 [!__MINGW32__]: Remove extra double quote character from special
167 2012-06-11 Stan Shebs <stan@codesourcery.com>
169 * ui-out.h: Remove #if 0 declarations.
170 * ui-out.c: Remove #if 0 functions.
172 2012-06-11 Pedro Alves <palves@redhat.com>
174 * ser-base.c (run_async_handler_and_reschedule): New.
175 (fd_event, push_event): Use it.
176 * serial.c (serial_open, serial_fdopen_ops): Set the initial
177 reference count to 1.
178 (do_serial_close): Set the bufp field to NULL. Use serial_unref
180 (serial_is_open, serial_ref, serial_unref): New.
181 * serial.h (serial_open): Adjust comment.
182 (serial_is_open): Declare.
183 (serial_close): Adjust comment.
184 (serial_ref, serial_unref) Declare.
185 (struct serial): New field 'refcnt'.
187 2012-06-11 Pedro Alves <palves@redhat.com>
189 Remove #if 0'd "connect" command, and unnecessary associated
190 refcounting and serial reuse bits.
192 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
193 * serial.c (last_serial_opened): Delete.
195 (serial_open): Adjust.
196 (serial_for_fd): Delete.
197 (serial_fdopen_ops, do_serial_close): Adjust.
198 (serial_fdopen_ops): Adjust.
200 2012-06-11 Pedro Alves <palves@redhat.com>
202 * serial.c (do_serial_close): Remove early return when SCB is
205 2012-06-11 Tom Tromey <tromey@redhat.com>
207 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
209 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
211 Fix regression by the "ambiguous linespec" series.
212 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
213 get_last_displayed_symtab and get_last_displayed_line and depending
216 2012-06-11 Tom Tromey <tromey@redhat.com>
218 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
219 (dw2_find_symbol_file): Use it.
221 2012-06-11 Michael Eager <eager@eagercon.com>
223 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
224 * mips-linux-tdep.h (mips_signals): New
226 2012-06-11 Tom Tromey <tromey@redhat.com>
228 * infrun.c (handle_inferior_event)
229 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
231 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
232 exception logic in all cases. Update comments.
233 (insert_longjmp_resume_breakpoint): Set the exception resume
236 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
238 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
240 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
242 * valarith.c (binop_types_user_defined_p): Fix a typo.
244 2012-06-08 Yao Qi <yao@codesourcery.com>
245 Chung-Lin Tang <cltang@codesourcery.com>
247 * arch-utils.c (default_return_in_first_hidden_param_p): New.
248 * arch-utils.h: Declare.
249 * gdbarch.sh: Add return_in_first_hidden_param_p.
250 * gdbarch.c, gdbarch.h: Regenerated.
251 * infcall.c (call_function_by_hand): Call
252 gdbarch_return_in_first_hidden_param_p instead of
253 language_pass_by_reference.
255 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
256 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
257 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
258 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
259 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
260 `cplus_return_struct_by_reference'.
261 (tic6x_return_value): Handle language cplusplus.
262 (tic6x_return_in_first_hidden_param_p): New.
263 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
265 2012-06-07 Doug Evans <dje@google.com>
267 * dwarf2read.c (dwarf2_cu): Add comment.
269 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
271 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
273 (mips_eabi_push_dummy_call): Likewise.
274 (mips_n32n64_push_dummy_call): Likewise.
275 (mips_o32_push_dummy_call): Likewise.
276 (mips_o64_push_dummy_call): Likewise.
278 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
280 * mips-tdep.c (mips_convert_register_p): Correct coding style.
282 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
284 * mips-tdep.c (mips_pseudo_register_type): Use
285 mips_float_register_p.
287 2012-06-06 Pedro Alves <palves@redhat.com>
289 * infrun.c (handle_inferior_event): Remove calls to
290 reinit_frame_cache that follow a context_switch call.
292 2012-06-06 Pedro Alves <palves@redhat.com>
294 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
295 context_switch and remove stale comment.
297 2012-06-06 Pedro Alves <palves@redhat.com>
299 * infrun.c (struct execution_control_state): Remove
300 `new_thread_event' field.
301 (handle_inferior_event): Simplify new threads handling; don't
302 resume the inferior if we find a new thread.
304 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
306 * NEWS: Document the deprecation of SH's 'regs' command.
307 * inferior.h (all_registers_info): Add function declaration.
308 * sh-tdep.c (sh_show_regs): Remove variable.
309 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
310 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
311 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
312 (sh_show_regs_command): Remove functions.
313 (sh_gdbarch_init): Don't set sh_show_regs.
314 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
315 'info all-registers'.
316 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
317 (sh64_show_regs): Remove functions.
318 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
320 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
322 * configure.ac: Move development=true below AC_INIT.
323 * configure: Regenerate.
325 2012-06-05 Stan Shebs <stan@codesourcery.com>
327 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
330 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
332 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
334 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
335 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
336 * target.c (target_read_stack, target_write_memory)
337 (target_write_raw_memory): Likewise.
338 * target.h (target_read_stack, target_write_memory)
339 (target_write_raw_memory): Likewise.
341 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
343 * symfile-mem.c: Change gdb_static_assert to ssize_t.
344 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
345 * target.c (target_read_memory): Change LEN to ssize_t.
346 * target.h (target_read_memory): Change LEN to ssize_t.
348 2012-06-05 Pedro Alves <palves@redhat.com>
352 * breakpoint.c (until_break_command): Only fetch the selected
353 frame after decode_line_1.
355 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
357 * solib-svr4.c (enable_break): Don't fallback to setting the solib
358 event breakpoint at _start, __start or main if a program
359 interpreter is not found.
361 2012-06-05 Joel Brobecker <brobecker@adacore.com>
363 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
365 * windows-tdep.c: #include "objfiles.h".
366 (windows_iterate_over_objfiles_in_search_order): New function.
367 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
368 iterate_over_objfiles_in_search_order gdbarch method to
369 windows_iterate_over_objfiles_in_search_order.
370 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
372 2012-06-05 Joel Brobecker <brobecker@adacore.com>
374 * gdbarch.sh: Add generation of
375 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
376 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
377 (iterate_over_objfiles_in_search_order): New gdbarch method.
378 * gdbarch.h, gdbarch.c: Regenerate.
379 * objfiles.h (default_iterate_over_objfiles_in_search_order):
381 * objfiles.c (default_iterate_over_objfiles_in_search_order):
383 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
384 out of lookup_symbol_aux_symtabs.
385 (lookup_symbol_aux_symtabs): Replace extracted-out code by
386 call to lookup_symbol_aux_objfile.
387 (struct global_sym_lookup_data): New type.
388 (lookup_symbol_global_iterator_cb): New function.
389 (lookup_symbol_global): Search for symbol using
390 gdbarch_iterate_over_objfiles_in_search_order and
391 lookup_symbol_global_iterator_cb.
392 * findvar.c (struct minsym_lookup_data): New type.
393 (minsym_lookup_iterator_cb): New function.
394 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
395 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
396 and minsym_lookup_iterator_cb.
398 2012-06-05 Joel Brobecker <brobecker@adacore.com>
400 Revert the following patch:
401 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
402 try locating the symbol in the symbol's own objfile first, before
403 extending the search to all objfiles.
404 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
405 out of lookup_symbol_aux_symtabs.
406 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
407 Replace extracted-out code by call to lookup_symbol_aux_objfile.
408 Do not search EXCLUDE_OBJFILE.
409 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
410 (lookup_symbol_global): Search for matches in the block's objfile
411 first, before searching all other objfiles.
413 2012-06-05 Joel Brobecker <brobecker@adacore.com>
415 * breakpoint.c (find_condition_and_thread): Stop parsing
416 as soon as the first invalid keyword is found.
418 2012-06-05 Joel Brobecker <brobecker@adacore.com>
420 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
422 2012-06-05 Joel Brobecker <brobecker@adacore.com>
424 * config/djgpp/djcheck.sh: Add copyright header.
426 2012-06-05 Joel Brobecker <brobecker@adacore.com>
428 * copyright.py (update_files, main): Fix path to update-copyright
431 2012-06-05 Joel Brobecker <brobecker@adacore.com>
433 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
434 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
435 for which a reminder to update by hand is printed.
437 2012-06-04 Doug Evans <dje@google.com>
439 * buildsym.c (make_blockvector): Add comment.
441 2012-06-04 Pedro Alves <palves@redhat.com>
443 * arch-utils.c (default_gdb_signal_from_target): Delete.
444 * arch-utils.h (default_gdb_signal_from_target): Delete.
445 * corelow.c (core_open) <signal mapping>: Extended comment. Check
446 gdbarch_gdb_signal_from_target_p.
447 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
449 * gdbarch.h: Regenerate.
450 * gdbarch.c: Regenerate.
452 2012-06-04 Pedro Alves <palves@redhat.com>
454 * gdbarch.sh (gdb_signal_from_target): Mention that the
455 implementation of the method must be host independent.
456 * gdbarch.h: Regenerate.
458 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
460 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
462 (target_read_memory_bfd): New function.
463 (symbol_file_add_from_memory): Use it.
465 2012-06-03 Doug Evans <dje@google.com>
467 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
469 (basic_lookup_transparent_type): Ditto.
471 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
472 (ALL_PRIMARY_SYMTABS): Use it.
473 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
474 * dwarf2read.c (dw2_find_symbol_file): Ditto.
475 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
476 * symtab.c (lookup_symbol_aux_objfile): Ditto.
477 (basic_lookup_transparent_type): Ditto.
479 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
481 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
482 it to optimize resolution of demangled name.
484 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
486 * configure.ac (development): Define new variable.
487 Call AC_CHECK_LIB for mcheck if $development.
488 (ERROR_ON_WARNING): Enable it by default only if $development.
489 * config.in: Regenerate.
490 * configure: Regenerate.
492 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
494 * target.c (target_read_memory): Make LEN argument as size_t.
495 * target.h (target_read_memory): Likewise.
497 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
499 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
501 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
503 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
504 BookE interface for PowerPC server processors if not available
507 2012-05-31 Keith Seitz <keiths@redhat.com>
509 * linespec.c (decode_objc): Add cleanup to free
511 (find_linespec_symbols): Add cleanup to free CLASSES.
512 * symfile.c (find_separate_debug_file_by_debuglink): Add
513 cleanup to free DEBUGLINK.
514 * ui-out.c (clear_header_list): No need to check if
515 HEADER_NEXT.COLHDR is NULL.
516 Free HEADER_NEXT.COL_NAME.
518 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
520 * ada-lang.c (standard_lookup): Prevent uninitialized variable
523 2012-05-30 Jeff Kenton <jkenton@tilera.com>
525 * configure.host (gdb_host_cpu): Handle tilegx*.
526 (gdb_host): Handle tilegx-*-linux*.
527 * tilegx-linux-nat.c: New file.
528 * config/tilegx/linux.mh: New file.
530 2012-05-30 Jeff Kenton <jkenton@tilera.com>
532 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
534 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
536 * configure.tgt: Handle tilegx-*-linux*.
537 * tilegx-tdep.h: New file.
538 * tilegx-tdep.c: New file.
539 * tilegx-linux-tdep.c: New file.
540 * regformats/reg-tilegx.dat: New file.
542 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
544 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
545 accounting of hw watchpoints on ppc.
547 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
549 * source.c (openp): Expand tilde in path entries.
551 2012-05-29 Doug Evans <dje@google.com>
553 * buildsym.c (block_compar): Fix comment.
554 (end_symtab): Fix and clarify some comments.
556 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
557 cleanup_undefined_types.
558 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
561 2012-05-29 Tom Tromey <tromey@redhat.com>
563 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
565 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
566 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
568 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
571 2012-05-29 Tristan Gingold <gingold@adacore.com>
573 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
574 (struct darwin_info): ... New struct.
575 (solib_darwin_pspace_data): New variable.
576 (darwin_pspace_data_cleanup): New function.
577 (get_darwin_info): Likewise.
578 (darwin_dyld_version_ok, darwin_load_image_infos)
579 (darwin_solib_get_all_image_info_addr_at_init)
580 (darwin_solib_read_all_image_info_addr): Add info argument.
582 (darwin_current_sos): Use per pspace structure.
583 (darwin_solib_create_inferior_hook): Likewise.
584 (darwin_clear_solib): Likewise.
585 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
587 2012-05-28 Pedro Alves <palves@redhat.com>
589 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
590 block that uses them. Clear ecss before handling each event.
592 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
594 * solib-svr4.c (svr4_current_sos): New comment on
595 svr4_current_sos_via_xfer_libraries fall back.
597 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
599 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
600 it as a fallback for TYPE_IS_OPAQUE.
601 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
602 symbols for lookup_symbol.
604 2012-05-24 John Steele Scott <toojays@toojays.net>
606 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
607 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
608 (producer_is_gxx_lt_4_6): Move the checking and caching to...
609 (check_producer): ... this new function, which also checks for ICC
610 and caches the result.
611 (producer_is_icc): New function.
612 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
615 2012-05-24 Pedro Alves <palves@redhat.com>
619 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
620 (default_gdb_signal_to_target): ... this. Add comment.
621 (default_gdb_signal_from_host): Rename to ...
622 (default_gdb_signal_from_target): ... this. Add comment.
623 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
624 (default_gdb_signal_to_target): ... this.
625 (default_gdb_signal_from_host): Rename to ...
626 (default_gdb_signal_from_target): ... this.
627 * corelow.c (core_open): Adjust to naming change. Replace comment.
628 * gdbarch.sh (gdb_signal_from_host): Rename to ...
629 (gdb_signal_from_target): ... this. Adjust to
630 default_gdb_signal_from_host naming change. Extend comment.
631 (gdb_signal_to_host): Rename to ...
632 (gdb_signal_to_target): ... this. Adjust to
633 default_gdb_signal_to_host naming change.
634 * gdbarch.h, gdbarch.c: Renegerate.
636 2012-05-24 Pedro Alves <palves@redhat.com>
640 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
642 2012-05-24 Pedro Alves <palves@redhat.com>
646 Replace target_signal with gdb_signal throughout.
648 2012-05-24 Pedro Alves <palves@redhat.com>
652 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
653 string, instead of reusing the va_list argument.
655 2012-05-24 Tom Tromey <tromey@redhat.com>
657 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
660 2012-05-23 Doug Evans <dje@google.com>
662 * symtab.c (search_symbols): Formatting fixes.
663 (print_symbol_info): Formatting fixes.
665 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
666 int64_t change to leb128 API.
667 (read_encoded_value, decode_frame_entry_1): Ditto.
668 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
669 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
670 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
671 (execute_stack_op): Ditto.
672 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
673 (safe_read_uleb128, safe_read_sleb128): Ditto.
674 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
675 (dwarf2_compile_expr_to_ax): Ditto.
676 (locexpr_describe_location_piece): Ditto.
677 (disassemble_dwarf_expression): Ditto.
678 (locexpr_describe_location_1): Ditto.
680 2012-05-23 Stan Shebs <stan@codesourcery.com>
681 Kwok Cheung Yeung <kcy@codesourcery.com>
683 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
684 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
685 (mi-cmd-info.o): New rule.
686 * osdata.h (info_osdata_command): New declaration.
687 * osdata.c (info_osdata_command): Change to non-static.
688 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
689 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
690 * mi/mi-cmd-info.c: New file.
692 2012-05-23 Doug Evans <dje@google.com>
694 * symtab.c (search_symbols): Pass NULL for file_matcher to
695 expand_symtabs_matching if there are no files to match.
697 * gdbtypes.c (lookup_typename): Simplify.
699 2012-05-23 Pedro Alves <palves@redhat.com>
701 * arch-utils.h (default_target_signal_to_host): Delete.
702 * arch-utils.c (default_target_signal_to_host): Delete.
703 * gdbarch.sh (target_signal_to_host): Remove.
704 * gdbarch.h, gdbarch.c: Regenerate.
706 2012-05-22 Doug Evans <dje@google.com>
708 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
710 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
711 (execute_cfa_program): Update to match API of leb128 functions.
712 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
714 (read_unsigned_leb128, read_signed_leb128): Delete.
715 (read_initial_length): Change type of buf argument to
717 (read_encoded_value): Update to match API of leb128 functions.
718 (decode_frame_entry): Change result to "const gdb_byte *", and
719 similarly for "start" parameter.
720 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
721 (dwarf2_build_frame_info): Change local frame_ptr to
723 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
724 read_uleb128, read_sleb128. All callers updated.
725 (safe_skip_leb128): New function.
726 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
727 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
728 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
729 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
730 read_uleb128, read_sleb128.
731 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
732 (execute_stack_op): Update to match API of leb128 functions.
733 * dwarf2expr.h: #include "leb128.h".
734 (read_uleb128, read_sleb128): Delete.
735 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
736 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
737 * dwarf2loc.c (debug_loc_kind): New enum.
738 (decode_debug_loc_addresses): New function.
739 (decode_debug_loc_dwo_addresses): New function.
740 (dwarf2_find_location_expression): Rewrite.
741 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
742 (locexpr_describe_location_piece): Ditto.
743 (disassemble_dwarf_expression): Ditto.
744 (locexpr_describe_location_1): Ditto.
745 (loclist_describe_location): Rewrite.
746 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
747 * dwarf2read.c (die_reader_specs): New member "buffer_end".
748 (dwarf2_section_buffer_overflow_complaint): Renamed from
749 dwarf2_macros_too_long_complaint. All callers updated.
750 (skip_leb128): Delete.
751 (init_cu_die_reader): Initialize reader->buffer_end.
752 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
753 (skip_form_bytes): New arg buffer_end. All callers updated.
754 Replace call to skip_leb128 with gdb_skip_leb128.
755 (skip_unknown_opcode): New arg mac_end. All callers updated.
756 (fill_in_loclist_baton): Initialize baton->from_dwo.
758 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
760 * mips-linux-nat.c (mips_linux_read_description): Use a more
761 verbose error message.
763 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
765 * NEWS: Add MIPS/Linux DSP support.
766 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
767 (SIGCONTEXT_DSPCTL): New macro.
768 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
769 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
770 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
771 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
772 (N64_SIGCONTEXT_HI3): Likewise.
773 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
774 (N64_SIGCONTEXT_LO3): Likewise.
775 (N64_SIGCONTEXT_DSPCTL): Likewise.
776 (N64_SIGCONTEXT_FPCSR): Clarify definition.
777 (mips_linux_o32_sigframe_init): Handle DSP registers.
778 (mips_linux_n32n64_sigframe_init): Likewise.
780 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
782 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
785 2012-05-22 Pedro Alves <palves@redhat.com>
787 * target.h (store_waitstatus): Move declaration ...
788 * inf-child.h (store_waitstatus): ... here.
789 * target.c: Move inclusion of gdb_wait.h, and ...
790 (store_waitstatus): ... this ...
791 * inf-child.c: ... here.
792 * linux-nat.c: Include inf-child.h.
793 * rs6000-nat.c: Include inf-child.h.
794 * spu-linux-nat.c: Include inf-child.h.
796 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
798 * tracepoint.c (start_tracing): Add missing i18n markup.
799 (stop_tracing, set_trace_user): Ditto.
800 (set_trace_notes, set_trace_stop_notes): Ditto.
802 2012-05-21 Tom Tromey <tromey@redhat.com>
805 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
807 * value.h (value_cast_pointers): Update.
808 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
809 (value_cast): Update.
810 (update_search_result): New function.
811 (do_search_struct_field): New, from search_struct_field. Check
812 for ambiguous results.
813 (search_struct_field): Rewrite.
814 * infcall.c (value_arg_coerce): Update.
815 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
817 * ada-lang.c (ada_convert_actual): Update.
819 2012-05-21 Tom Tromey <tromey@redhat.com>
821 * macroexp.c (macro_stringify): Terminate the string.
823 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
825 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
827 * auto-load.c (auto_load_expand_dir_vars): New function.
828 (auto_load_safe_path_vec_update): Use it, remove the
829 substitute_path_component call thanks to it.
830 (auto_load_objfile_script): Remove the debug_file_directory processing.
831 Use auto_load_expand_dir_vars, remove the substitute_path_component
833 * configure: Regenerate.
834 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
835 path. Escape $ also for $debugdir.
836 (--with_auto_load_safe_path): Escape $ also for $debugdir.
837 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
839 2012-05-20 Doug Evans <dje@google.com>
841 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
842 before use. Check for symtab->includes == NULL before scanning it.
844 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
846 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
848 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
850 * NEWS: Add microMIPS support and "set mips compression",
851 "show mips compression" commands.
852 * mips-tdep.h (mips_isa): New enum.
853 (gdbarch_tdep): Add mips_isa.
854 (mips_pc_is_mips16): Update prototype.
855 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
856 * mips-tdep.c (mips_compression_mips16): New variable.
857 (mips_compression_micromips): Likewise.
858 (mips_compression_strings): Likewise.
859 (mips_compression_string): Likewise.
860 (is_mips16_isa, is_micromips_isa): New functions.
861 (is_mips16_addr): Rename to...
862 (is_compact_addr): ... this.
863 (unmake_mips16_addr): Likewise to...
864 (unmake_compact_addr): ... this.
865 (make_mips16_addr): Likewise to...
866 (make_compact_addr): ... this.
867 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
869 (mips_elf_make_msymbol_special): Handle microMIPS code.
870 (msymbol_is_special): Rename to...
871 (msymbol_is_mips16): ... this.
872 (mips_make_symbol_special, mips_pc_is_mips16): Update
874 (msymbol_is_mips, msymbol_is_micromips): New functions.
875 (mips16_to_32_reg): Rename to...
876 (mips_reg3_to_reg): ... this.
877 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
878 (mips_pc_isa): Likewise.
879 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
881 (mips_fetch_instruction): Pass return status instead of printing
882 an error message if requested. Handle microMIPS code. Bail out
884 (micromips_op): New macro.
885 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
886 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
887 (b6s4_op, b7s3_reg): Likewise.
888 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
889 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
890 (mips_insn_size): New function.
891 (mips32_next_pc): Update mips_fetch_instruction call.
892 (micromips_relative_offset7): New function.
893 (micromips_relative_offset10): Likewise.
894 (micromips_relative_offset16): Likewise.
895 (micromips_pc_insn_size): Likewise.
896 (micromips_bc1_pc): Likewise.
897 (micromips_next_pc): Likewise.
898 (unpack_mips16): Update mips_fetch_instruction call.
899 (extended_mips16_next_pc): Update according to change to
901 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
903 (mips16_scan_prologue): Update mips_fetch_instruction call.
904 Update according to change to mips16_to_32_reg.
905 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
906 (mips_insn16_frame_base_sniffer): Likewise.
907 (micromips_decode_imm9): New function.
908 (micromips_scan_prologue): Likewise.
909 (mips_micro_frame_cache): Likewise.
910 (mips_micro_frame_this_id): Likewise.
911 (mips_micro_frame_prev_register): Likewise.
912 (mips_micro_frame_sniffer): Likewise.
913 (mips_micro_frame_unwind): New variable.
914 (mips_micro_frame_base_address): New function.
915 (mips_micro_frame_base): New variable.
916 (mips_micro_frame_base_sniffer): New function.
917 (mips32_scan_prologue): Update mips_fetch_instruction call.
918 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
919 rather than for MIPS16.
920 (mips_insn32_frame_base_sniffer): Likewise.
921 (mips_addr_bits_remove): Handle microMIPS code.
922 (deal_with_atomic_sequence): Rename to...
923 (mips_deal_with_atomic_sequence): ... this. Update the type
924 of the variable used to hold an instruction. Remove the ISA bit
925 check. Update mips_fetch_instruction call.
926 (micromips_deal_with_atomic_sequence): New function.
927 (deal_with_atomic_sequence): Likewise.
928 (mips_about_to_return): Handle microMIPS code. Update
929 mips_fetch_instruction call.
930 (heuristic_proc_start): Check for the standard MIPS ISA rather
931 than for MIPS16. Update mips_pc_is_mips16 and
932 mips_fetch_instruction calls. Handle microMIPS code.
933 (mips_push_dummy_code): Handle microMIPS code.
934 (mips_eabi_push_dummy_call): Likewise.
935 (mips_o32_return_value): Update mips_pc_is_mips16 call.
936 (mips_o64_push_dummy_call): Handle microMIPS code.
937 (mips_o64_return_value): Update mips_pc_is_mips16 call.
938 (is_delayed): Remove function.
939 (mips_single_step_through_delay): Replace the call to is_delayed
940 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
941 Handle microMIPS code.
942 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
944 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
946 (micromips_in_function_epilogue_p): New function.
947 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
949 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
951 (gdb_print_insn_mips): Likewise.
952 (mips_breakpoint_from_pc): Likewise.
953 (mips_remote_breakpoint_from_pc): New function.
954 (mips32_instruction_has_delay_slot): Simplify making use of the
955 updated mips_fetch_instruction interface.
956 (micromips_instruction_has_delay_slot): New function.
957 (mips16_instruction_has_delay_slot): Simplify making use of the
958 updated mips_fetch_instruction interface.
959 (mips_adjust_breakpoint_address): Check for the standard MIPS
960 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
961 calls. Handle microMIPS code.
962 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
963 (mips_skip_trampoline_code): Handle microMIPS code.
964 (global_mips_compression): New function.
965 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
966 file flags. Register the microMIPS remote breakpoint handler
967 and heuristic frame unwinder.
968 (show_mips_compression): New function.
969 (_initialize_mips_tdep): Add the "set mips compression" and
970 "show mips compression" commands.
972 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
977 * amd64-darwin-tdep.c:
978 * arm-symbian-tdep.c:
989 * dwarf2-frame-tailcall.c:
1018 * microblaze-tdep.c:
1019 * mips-linux-tdep.c:
1027 * python/py-finishbreakpoint.c:
1028 * python/py-inferior.c:
1029 * python/py-infthread.c:
1033 * remote-m32r-sdi.c:
1037 * rs6000-aix-tdep.c:
1063 * amd64-darwin-tdep.c:
1064 * arm-symbian-tdep.c:
1065 * arm-tdep.c: Delete unused variables.
1067 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1069 Rename $ddir to $datadir.
1070 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1071 * auto-load.c (auto_load_safe_path_vec_update)
1072 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1073 * configure: Regenerate.
1074 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1075 Likewise. Remove the 'use $ddir' help string.
1077 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1079 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1080 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1082 2012-05-18 Tom Tromey <tromey@redhat.com>
1085 * valprint.h (struct value_print_options) <symbol_print>: New
1087 * valprint.c (user_print_options): Add default for symbol_print.
1088 (show_symbol_print): New function.
1089 (generic_val_print): Respect symbol_print.
1090 (_initialize_valprint): Add "print symbol" setting.
1091 * f-valprint.c (f_val_print): Respect symbol_print.
1092 * c-valprint.c (c_val_print): Respect symbol_print.
1094 * printcmd.c (print_address_symbolic): Return int. Ignore some
1096 (print_address_demangle): Return int.
1097 * defs.h: (print_address_symbolic): Return int.
1098 * value.h (print_address_demangle): Return int.
1100 2012-05-18 Tom Tromey <tromey@redhat.com>
1102 * valprint.c (val_print_string): Don't print leading space.
1103 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1104 print space before string or vtbl.
1105 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1107 * jv-valprint.c (java_value_print): Print space before string.
1108 * go-valprint.c (print_go_string): Print space before string.
1109 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1110 space before string.
1111 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1112 space before string or vtbl.
1113 * auxv.c (fprint_target_auxv): Print space after address.
1115 2012-05-18 Tom Tromey <tromey@redhat.com>
1117 * printcmd.c (print_address_demangle): Remove special case for 0.
1119 2012-05-18 Tom Tromey <tromey@redhat.com>
1121 * printcmd.c (print_address_demangle): Add 'opts' argument.
1122 * p-valprint.c (pascal_val_print): Update.
1123 * jv-valprint.c (java_val_print): Update.
1125 * valprint.c (generic_val_print): Update.
1126 (print_function_pointer_address): Add 'options' argument. Remove
1127 'addressprint' argument. Update.
1128 * m2-valprint.c (print_unpacked_pointer): Update.
1129 * gnu-v3-abi.c (print_one_vtable): Update.
1130 (gnuv3_print_method_ptr): Update.
1131 * f-valprint.c (f_val_print): Update.
1132 * cp-valprint.c (cp_print_value_fields): Update.
1133 * valprint.h (print_function_pointer_address): Update.
1134 * c-valprint.c (c_val_print): Update.
1136 2012-05-18 Tom Tromey <tromey@redhat.com>
1138 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1139 directly corresponding to the found psymtab.
1140 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1141 (dw2_find_pc_sect_symtab): Use it.
1142 * block.h (blockvector_contains_pc): Declare.
1143 * block.c (find_block_in_blockvector): New function.
1144 (blockvector_for_pc_sect): Use it.
1145 (blockvector_contains_pc): New function.
1147 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1149 * mips-tdep.h (mips_write_pc): New prototype.
1150 * mips-tdep.c (mips_write_pc): Make external, add description.
1151 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1154 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1156 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1158 (mips_unwind_pc, mips_write_pc): Likewise.
1159 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1162 2012-05-17 Joel Brobecker <brobecker@adacore.com>
1164 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1165 proc_warn, proc_error, proc_get_status, proc_flags,
1166 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1167 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1168 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1169 proc_stop_process, proc_wait_for_stop, proc_run_process,
1170 proc_set_traced_signals, proc_set_traced_faults,
1171 proc_set_traced_sysentry, proc_set_traced_sysexit,
1172 proc_set_held_signals, proc_get_held_signals,
1173 proc_get_traced_signals, proc_get_traced_faults,
1174 proc_get_traced_sysentry, proc_get_traced_sysexit,
1175 proc_clear_current_fault, proc_set_current_signal,
1176 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1177 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1178 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1179 proc_get_current_thread, proc_get_current_thread,
1180 proc_get_current_thread, proc_update_threads,
1181 proc_update_threads, proc_update_threads, proc_update_threads,
1182 proc_iterate_over_threads, procfs_find_new_threads,
1183 procfs_pid_to_str): Make static. Remove advance declaration.
1184 (proc_cursig): Make static. Conditionalized defintion on
1185 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1186 (proc_syscall, proc_set_kill_on_last_close,
1187 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1188 proc_get_pending_signals, proc_get_signal_actions,
1189 proc_trace_signal, proc_ignore_signal): Delete.
1191 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1193 * coffread.c (cs_section_address): Passing proper argument for
1194 `bfd_get_section_vma'.
1195 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1196 `bfd_get_section_flags'.
1197 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1198 `bfd_get_section_vma'.
1200 2012-05-16 Tom Tromey <tromey@redhat.com>
1203 * macrotab.h: (macro_define_special): Declare.
1204 (enum macro_special_kind): New.
1205 (struct macro_definition) <argc, replacement>: Update comments.
1206 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1207 (macro_define_object_internal): New function.
1208 (macro_define_object): Use it.
1209 (macro_define_special): New function.
1210 (fixup_definition): New function.
1211 (macro_lookup_definition, foreach_macro_in_scope)
1212 (foreach_macro): Use fixup_definition.
1213 * macroexp.h (macro_stringify): Declare.
1214 * macroexp.c (free_buffer_return_text): New function.
1215 (stringify): Constify "arg".
1216 (macro_stringify): New function.
1217 * dwarf2read.c (macro_start_file): Call macro_define_special.
1219 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1220 Maciej W. Rozycki <macro@mips.com>
1222 * breakpoint.h (bp_location): Add related_address member.
1223 * inferior.h (get_return_value): Take a pointer to struct value
1224 instead of struct type for the function requested.
1225 * value.h (using_struct_return): Likewise.
1226 * gdbarch.sh (return_value): Take a pointer to struct value
1227 instead of struct type for the function requested.
1228 * breakpoint.c (set_breakpoint_location_function): Initialize
1229 related_address for bp_gnu_ifunc_resolver breakpoints.
1230 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1231 requested function's address to gdbarch_return_value.
1232 * eval.c (evaluate_subexp_standard): Pass the requested
1233 function's address to using_struct_return.
1234 * infcall.c (call_function_by_hand): Pass the requested
1235 function's address to using_struct_return and
1236 gdbarch_return_value.
1237 * infcmd.c (get_return_value): Take a pointer to struct value
1238 instead of struct type for the function requested.
1239 (print_return_value): Update accordingly.
1240 (finish_command_continuation): Likewise.
1241 * stack.c (return_command): Pass the requested function's
1242 address to using_struct_return and gdbarch_return_value.
1243 * value.c (using_struct_return): Take a pointer to struct value
1244 instead of struct type for the function requested. Pass the
1245 requested function's address to gdbarch_return_value.
1246 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1247 New function_value member, replacing function_type.
1248 (bpfinishpy_dealloc): Update accordingly.
1249 (bpfinishpy_pre_stop_hook): Likewise.
1250 (bpfinishpy_init): Likewise. Record the requested function's
1252 * mips-tdep.c (mips_fval_reg): New enum.
1253 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1254 words put in GP registers.
1255 (mips_o64_push_dummy_call): Update a comment.
1256 (mips_o32_return_value): Take a pointer to struct value instead
1257 of struct type for the function requested and use it to check if
1258 using the MIPS16 calling convention. Return the designated
1259 general purpose registers for floating-point values returned in
1261 (mips_o64_return_value): Likewise.
1262 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1263 (ppc_sysv_abi_broken_return_value): Likewise.
1264 (ppc64_sysv_abi_return_value): Likewise.
1265 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1266 value instead of struct type for the function requested.
1267 * amd64-tdep.c (amd64_return_value): Likewise.
1268 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1269 * arm-tdep.c (arm_return_value): Likewise.
1270 * avr-tdep.c (avr_return_value): Likewise.
1271 * bfin-tdep.c (bfin_return_value): Likewise.
1272 * cris-tdep.c (cris_return_value): Likewise.
1273 * frv-tdep.c (frv_return_value): Likewise.
1274 * h8300-tdep.c (h8300_return_value): Likewise.
1275 (h8300h_return_value): Likewise.
1276 * hppa-tdep.c (hppa32_return_value): Likewise.
1277 (hppa64_return_value): Likewise.
1278 * i386-tdep.c (i386_return_value): Likewise.
1279 * ia64-tdep.c (ia64_return_value): Likewise.
1280 * iq2000-tdep.c (iq2000_return_value): Likewise.
1281 * lm32-tdep.c (lm32_return_value): Likewise.
1282 * m32c-tdep.c (m32c_return_value): Likewise.
1283 * m32r-tdep.c (m32r_return_value): Likewise.
1284 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1285 * m68k-tdep.c (m68k_return_value): Likewise.
1286 (m68k_svr4_return_value): Likewise.
1287 * m88k-tdep.c (m88k_return_value): Likewise.
1288 * mep-tdep.c (mep_return_value): Likewise.
1289 * microblaze-tdep.c (microblaze_return_value): Likewise.
1290 * mn10300-tdep.c (mn10300_return_value): Likewise.
1291 * moxie-tdep.c (moxie_return_value): Likewise.
1292 * mt-tdep.c (mt_return_value): Likewise.
1293 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1294 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1295 (ppc_sysv_abi_broken_return_value): Likewise.
1296 (ppc64_sysv_abi_return_value): Likewise.
1297 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1298 * rl78-tdep.c (rl78_return_value): Likewise.
1299 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1300 * rx-tdep.c (rx_return_value): Likewise.
1301 * s390-tdep.c (s390_return_value): Likewise.
1302 * score-tdep.c (score_return_value): Likewise.
1303 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1304 (sh_return_value_fpu): Likewise.
1305 * sh64-tdep.c (sh64_return_value): Likewise.
1306 * sparc-tdep.c (sparc32_return_value): Likewise.
1307 * sparc64-tdep.c (sparc64_return_value): Likewise.
1308 * spu-tdep.c (spu_return_value): Likewise.
1309 * tic6x-tdep.c (tic6x_return_value): Likewise.
1310 * v850-tdep.c (v850_return_value): Likewise.
1311 * vax-tdep.c (vax_return_value): Likewise.
1312 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1313 * xtensa-tdep.c (xtensa_return_value): Likewise.
1314 * gdbarch.c: Regenerate.
1315 * gdbarch.h: Regenerate.
1317 2012-05-15 Tom Tromey <tromey@redhat.com>
1319 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1321 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1323 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1324 of command in two error message.
1326 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1328 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1330 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1332 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1334 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1336 * NEWS (show auto-load scripts-directory): Add forgotten command.
1338 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1340 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1343 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1345 * amd64-tdep.c: Include features/i386/x32.c and
1346 features/i386/x32-avx.c.
1347 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1348 initialize_tdesc_x32_avx.
1350 2012-05-14 Stan Shebs <stan@codesourcery.com>
1353 * breakpoint.h (enum bptype): New type bp_dprintf.
1354 (struct breakpoint): New field extra_string.
1355 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1356 (create_breakpoint): Add extra_string arg.
1357 * breakpoint.c (dprintf_breakpoint_ops): New.
1358 (is_breakpoint): Add bp_dprintf.
1359 (bpstat_what): Add dprintf case.
1360 (bptype_string): Ditto.
1361 (print_one_breakpoint_location): Ditto.
1362 (init_bp_location): Ditto.
1363 (bkpt_print_mention): Ditto.
1364 (dprintf_style_enums): New array.
1365 (dprintf_style): New global.
1366 (dprintf_function): New global.
1367 (dprintf_channel): New global.
1368 (update_dprintf_command_list): New function.
1369 (update_dprintf_commands): New function.
1370 (init_breakpoint_sal): Add extra_string argument, handle it.
1371 (create_breakpoint_sal): Add extra_string argument.
1372 (create_breakpoints_sal): Add extra_string argument, update callers.
1373 (find_condition_and_thread): Add extra argument.
1374 (create_breakpoint): Add extra_string argument, record it.
1375 (dprintf_command): New function.
1376 (break_command_1): Add arg to create_breakpoint call.
1377 (handle_gnu_v3_exceptions): Ditto.
1378 (trace_command): Ditto.
1379 (ftrace_command): Ditto.
1380 (strace_command): Ditto.
1381 (bkpt_print_mention): Add dprintf case.
1382 (create_breakpoint_sal_default): Add extra_string argument.
1383 (_initialize_breakpoint): Add new commands.
1384 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1385 * python/py-breakpoint.c (bppy_init): Ditto.
1386 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1388 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1390 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1392 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1394 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1397 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1399 Add a new function gdb.find_pc_line to the Python API.
1400 * NEWS (Python Scripting): Add entry about the new function.
1401 * python/python.c (gdbpy_find_pc_line): New function which
1402 implements gdb.find_pc_line.
1403 (GdbMethods): Add entry for the new function.
1405 2012-05-12 Pedro Alves <palves@redhat.com>
1407 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1408 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1410 2012-05-12 Eli Zaretskii <eliz@gnu.org>
1412 * inferior.c: Include completer.h
1413 (initialize_inferiors): Set completer of add-inferior to
1416 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1418 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1419 gdbarch_ptr_bit for x32 core dump.
1421 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1423 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1424 and features/i386/x32-avx-linux.c.
1426 2012-05-11 Stan Shebs <stan@codesourcery.com>
1427 Kwok Cheung Yeung <kcy@codesourcery.com>
1429 * NEWS: Describe new info os commands.
1430 * common/linux-osdata.c (PID_T, TIME_T): Define.
1431 (MAX_PID_T_STRLEN): New.
1432 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1434 (command_from_pid): Add comment. Change to use PID_T.
1435 (commandline_from_pid): Change to use PID_T.
1436 (user_from_pid): Add comment.
1437 (get_process_owner): Add comment. Change to use PID_T and
1439 (get_number_of_cpu_cores): Add comment.
1440 (get_cores_used_by_process): Add comment. Change to use PID_T and
1442 (linux_xfer_osdata_processes): Change to use PID_T and
1444 (compare_processes): New function.
1445 (linux_xfer_osdata_processgroups): New function.
1446 (linux_xfer_osdata_threads): Change to use PID_T.
1447 (linux_xfer_osdata_fds): New function.
1448 (format_socket_state, print_sockets): New functions.
1449 (union socket_addr): New union.
1450 (linux_xfer_osdata_isockets): New function.
1451 (time_from_time_t, group_from_gid): New functions.
1452 (linux_xfer_osdata_shm): New function.
1453 (linux_xfer_osdata_sem): New function.
1454 (linux_xfer_osdata_msg): New function.
1455 (linux_xfer_osdata_modules): New function.
1456 (osdata_table): Add new entries.
1457 * common/buffer.c (buffer_xml_printf): Add support for long and
1458 long long format specifiers.
1460 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1462 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1463 (tdesc_x32_avx_linux): Likewise.
1465 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1467 Implement multi-component --with-auto-load-dir.
1468 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1470 (--with-auto-load-safe-path): Update the default value description.
1471 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1473 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1474 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1475 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1476 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1477 "set auto-load scripts-directory".
1478 * config.in: Regenerate.
1479 * configure: Regenerate.
1480 * configure.ac (--with-auto-load-dir): New configure option.
1481 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1483 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1485 Provide $ddir substitution for --with-auto-load-safe-path.
1486 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1488 * auto-load.c: Include observer.h.
1489 (auto_load_safe_path_vec_update): Call substitute_path_component for
1490 each component. New variable ddir_subst.
1491 (auto_load_gdb_datadir_changed): New function.
1492 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1493 AUTO_LOAD_SAFE_PATH. New comment.
1494 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1495 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1496 * config.in: Regenerate.
1497 * configure: Regenerate.
1498 * configure.ac (--auto-load-safe-path): Rename
1499 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1500 GDB_DATADIR/auto-load.
1501 * defs.h (substitute_path_component): New declaration.
1502 * top.c: Include observer.h.
1503 (set_gdb_datadir): New function.
1504 (init_main): Install it for "set data-directory".
1505 * utils.c (substitute_path_component): New function.
1507 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1509 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1510 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1511 DEBUG_FILE_DIRECTORY. Handle multiple components of
1512 DEBUG_FILE_DIRECTORY.
1514 2012-05-10 Tom Tromey <tromey@redhat.com>
1516 * dwarf2read.c (recursively_write_psymbols): New function.
1517 (write_psymtabs_to_index): Use it.
1519 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1521 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1522 (load_partial_comp_unit): Update.
1523 (queue_comp_unit): Add argument 'pretend_language'.
1524 (process_queue): Update.
1525 (psymtab_to_symtab_1): Skip dependencies that have a user.
1526 (load_partial_comp_unit_reader): Give meaning to the 'data'
1528 (load_full_comp_unit): Add 'pretend_language' argument.
1529 (process_full_comp_unit): Add 'pretend_language' argument. Set
1531 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1533 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1534 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1536 (prepare_one_comp_unit): Add 'pretend_language' argument.
1538 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1539 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1540 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1541 (dw2_do_instantiate_symtab): Check whether symtab was read in
1543 (dw2_instantiate_symtab): Add assertion. Call
1544 process_cu_includes.
1545 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1546 (partial_symtab_p): New typedef.
1547 (set_partial_user): New function.
1548 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1549 (scan_partial_symbols): Add imported CU to imported_symtabs.
1550 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1551 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1552 (get_symtab, recursively_compute_inclusions)
1553 (compute_symtab_includes, process_cu_includes)
1554 (process_imported_unit_die): New functions.
1555 (process_die) <DW_TAG_imported_unit>: New case.
1556 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1558 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1560 (struct partial_die_info) <locdesc>: Remove.
1562 (process_psymtab_comp_unit): Add 'read_partial' argument.
1564 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1565 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1566 (add_partial_symbol): Update.
1567 (process_die): Handle DW_TAG_partial_unit.
1568 (read_file_scope): Update comment.
1569 (load_partial_dies): Handle DW_TAG_imported_unit.
1570 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1571 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1573 2012-05-10 Tom Tromey <tromey@redhat.com>
1575 * cc-with-dwz.sh: New file.
1577 2012-05-10 Tom Tromey <tromey@redhat.com>
1579 * symtab.h (struct symtab) <includes, user>: New fields.
1580 * block.h (struct block_iterator) <d, idx, which>: New fields.
1581 * block.c (initialize_block_iterator, find_iterator_symtab)
1582 (block_iterator_step, block_iter_name_step)
1583 (block_iter_match_step): New functions.
1584 (block_iterator_first, block_iterator_next)
1585 (block_iter_name_first, block_iter_name_next)
1586 (block_iter_match_first, block_iter_match_next): Rewrite.
1587 (get_block_symtab): New function.
1589 2012-05-10 Tom Tromey <tromey@redhat.com>
1591 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
1593 * jit.c (finalize_symtab): Use allocate_global_block,
1595 * buildsym.c (finish_block_internal): New function, from old
1597 (finish_block): Rewrite.
1598 (end_symtab): Use finish_block_internal, set_block_symtab.
1599 * block.h (struct global_block): New.
1600 (allocate_global_block, set_block_symtab): Declare.
1601 * block.c (allocate_global_block, set_block_symtab): New
1604 2012-05-10 Tom Tromey <tromey@redhat.com>
1606 * psymtab.c (partial_map_expand_apply): Add assertion.
1607 (partial_map_symtabs_matching_filename): Skip included psymtabs.
1608 (psymtab_to_symtab): Find unshared psymtab.
1609 (dump_psymtab): Print including psymtabs.
1610 (recursively_search_psymtabs): New function.
1611 (expand_symtabs_matching_via_partial): Use it.
1612 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
1614 (enum psymtab_search_status): New.
1616 2012-05-10 Tom Tromey <tromey@redhat.com>
1618 * tracepoint.c (scope_info): Update.
1619 * symtab.c (lookup_block_symbol, iterate_over_symbols)
1620 (find_pc_sect_symtab, search_symbols)
1621 (default_make_symbol_completion_list_break_on)
1622 (make_file_symbol_completion_list): Update.
1623 * symmisc.c (dump_symtab_1): Update.
1624 * stack.c (print_frame_args, iterate_over_block_locals)
1625 (print_frame_labels, iterate_over_block_arg_vars): Update.
1626 * python/py-block.c (block_object) <dict>: Remove.
1628 <iter>: Change type.
1629 (blpy_iter): Update.
1630 (blpy_block_syms_iternext): Update.
1631 * psymtab.c (map_block): Use block iterators.
1632 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
1633 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1634 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
1635 * infrun.c (check_exception_resume): Update.
1636 * cp-support.c (make_symbol_overload_list_block): Update.
1637 * coffread.c (patch_opaque_types): Update.
1638 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
1639 * block.h (struct block_iterator): New.
1640 (block_iterator_first, block_iterator_next, block_iter_name_first)
1641 (block_iter_name_next, block_iter_match_first)
1642 (block_iter_match_next): Declare.
1643 (ALL_BLOCK_SYMBOLS): Redefine.
1644 * block.c (block_iterator_first, block_iterator_next)
1645 (block_iter_name_first, block_iter_name_next)
1646 (block_iter_match_first, block_iter_match_next): New functions.
1647 * ada-lang.c (ada_add_block_symbols)
1648 (ada_make_symbol_completion_list): Use block iterator.
1650 2012-05-10 Tom Tromey <tromey@redhat.com>
1652 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
1653 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
1654 (lookup_partial_symbol, find_last_source_symtab_from_partial)
1655 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
1656 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
1659 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1661 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
1662 print-file-var-lib2.c, print-file-var-main.c and
1663 print-file-var.exp (located in gdb/testsuite/gdb.base).
1665 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1667 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1668 try locating the symbol in the symbol's own objfile first, before
1669 extending the search to all objfiles.
1670 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1671 out of lookup_symbol_aux_symtabs.
1672 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
1673 Replace extracted-out code by call to lookup_symbol_aux_objfile.
1674 Do not search EXCLUDE_OBJFILE.
1675 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
1676 (lookup_symbol_global): Search for matches in the block's objfile
1677 first, before searching all other objfiles.
1679 2012-05-10 Tristan Gingold <gingold@adacore.com>
1681 * printcmd.c (set_command): Add pre/post inc/dec.
1683 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
1685 * gdb.1: Document -ex option.
1687 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1689 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
1690 * inferior.h (AT_SYMBOL): Delete.
1692 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1694 * mips-tdep.c (mips_push_dummy_code): New function.
1695 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
1696 ON_STACK and install mips_push_dummy_code as our gdbarch
1697 push_dummy_code routine.
1699 2012-05-09 Pedro Alves <palves@redhat.com>
1701 * target.c (set_maintenance_target_async_permitted): Rename to ...
1702 (set_target_async_command): ... this.
1703 (show_maintenance_target_async_permitted): Rename to ...
1704 (show_target_async_command): ... this.
1705 (initialize_targets): Adjust.
1707 2012-05-08 Doug Evans <dje@google.com>
1709 * go-exp.y (classify_name): Add missing assignment of fields of
1712 2012-05-08 Eli Zaretskii <eliz@gnu.org>
1714 Display the ">" prompt in interactive mode while reading canned
1715 commands, even when the current interpreter is MI.
1717 * interps.c (interp_set_temp): New function.
1719 * interps.h (interp_set_temp): Add prototype.
1721 * cli/cli-script.c (restore_interp): New cleanup function.
1722 (read_command_lines): Temporarily override the current interpreter
1723 with CLI and arrange for restoring the original one.
1725 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
1727 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
1729 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
1731 * probe.c (parse_probes): Move conditional to check for
1732 debuginfo files from here...
1733 * stap-probe.c (stap_get_probes): ... to here.
1735 2012-05-07 Mark Kettenis <kettenis@gnu.org>
1736 H.J. Lu <hongjiu.lu@intel.com>
1738 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
1739 `movl %esp, %ebp' for the X32 ABI.
1741 2012-05-07 Tom Tromey <tromey@redhat.com>
1743 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
1745 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
1746 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
1747 (dwarf_stack_op_name): Remove.
1748 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
1749 (decode_locdesc): Use get_DW_OP_name.
1750 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
1751 (dwarf2_compile_expr_to_ax): Likewise.
1752 (disassemble_dwarf_expression): Likewise.
1753 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
1755 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
1757 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
1758 (sh_linux_sigtramp_cache): New function.
1759 (sh_linux_sigreturn_init): New function.
1760 (sh_linux_rt_sigreturn_init): New function.
1761 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
1763 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
1765 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
1766 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
1767 (sh_linux_init_abi): Add init calls to register new tramp_frame
1768 definitions under 32-bit SH, update comments.
1770 2012-05-07 Pedro Alves <palves@redhat.com>
1774 * amd64-linux-tdep.c: Include glibc-tdep.h.
1775 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
1776 gdbarch_skip_solib_resolver callback.
1778 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1780 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
1781 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
1782 (show_auto_load_safe_path): Check any-directory by comparison with "/".
1783 (add_auto_load_safe_path): Change the error message.
1784 (_initialize_auto_load): Change the "safe-path" help text.
1785 * configure: Regenerate
1786 * configure.ac (--without-auto-load-safe-path): Set
1787 WITH_AUTO_LOAD_SAFE_PATH to /.
1789 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
1791 * stap-probe.h: Do not include unecessary `probe.h'.
1793 2012-05-05 Alan Modra <amodra@gmail.com>
1795 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
1796 bfd_und_section_ptr.
1797 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
1798 and bfd_com_section_ptr.
1800 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1802 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
1804 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1806 * windows-nat.h (segment_register_p_ftype): New typedef.
1807 (windows_set_segment_register_p): Add declaration.
1808 * windows-nat.c (segment_register_p): New static global.
1809 (windows_set_segment_register_p): New function.
1810 (do_windows_fetch_inferior_registers): Add special handling
1811 for segment registers.
1812 * amd64-windows-nat.c: #include "amd64-tdep.h".
1813 (amd64_windows_segment_register_p): New function.
1814 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
1815 * i386-windows-nat.c: #include "i386-tdep.h".
1816 (i386_windows_segment_register_p): New function.
1817 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
1819 2012-05-04 Tristan Gingold <gingold@adacore.com>
1821 * printcmd.c (set_command): Emit a warning if the expression is not
1824 2012-05-03 Joel Brobecker <brobecker@adacore.com>
1826 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
1829 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
1831 * stap-probe.c (stap_is_operator): Change declaration.
1832 (stap_get_opcode): Change return value.
1833 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
1834 `stap_parse_argument_1'.
1836 2012-05-03 Pedro Alves <pedro@codesourcery.com>
1838 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
1841 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
1843 Add two new methods global_block and static_block to gdb.Symtab
1845 * NEWS (Python scripting): Add entry about the new methods.
1846 * python/py-symtab.c (stpy_global_block): New function which
1847 implements the gdb.Symtab.global_block() method.
1848 (stpy_static_block): New function which implements the
1849 gdb.Symtab.static_block() method.
1850 (symtab_object_methods): Add entries for the two new methods.
1852 2012-05-03 Doug Evans <dje@google.com>
1854 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
1857 2012-05-03 Yao Qi <yao@codesourcery.com>
1859 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
1861 (i386_process_record): Ditto.
1863 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1865 * infcall.c (unwind_on_signal_p): Make static.
1867 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1869 * sol-thread.c (solaris_pid_to_str): Make static.
1870 (_initialize_sol_thread): Add prototype.
1872 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1874 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
1876 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
1878 * MAINTAINERS: Remove myself.
1880 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1882 Fix --without-auto-load-safe-path for MS-Windows host platform.
1883 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
1885 2012-05-02 Eli Zaretskii <eliz@gnu.org>
1887 * gdb_curses.h: Undefine KEY_EVENT before including curses
1888 headers. Move "#undef MOUSE_MOVED" before any curses header
1891 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1893 * features/i386/i386-mmx-linux.c: Regenerate.
1894 * features/rs6000/powerpc-32.c: Likewise.
1895 * features/rs6000/powerpc-32l.c: Likewise.
1896 * features/rs6000/powerpc-403.c: Likewise.
1897 * features/rs6000/powerpc-403gc.c: Likewise.
1898 * features/rs6000/powerpc-405.c: Likewise.
1899 * features/rs6000/powerpc-505.c: Likewise.
1900 * features/rs6000/powerpc-601.c: Likewise.
1901 * features/rs6000/powerpc-602.c: Likewise.
1902 * features/rs6000/powerpc-603.c: Likewise.
1903 * features/rs6000/powerpc-604.c: Likewise.
1904 * features/rs6000/powerpc-64.c: Likewise.
1905 * features/rs6000/powerpc-64l.c: Likewise.
1906 * features/rs6000/powerpc-750.c: Likewise.
1907 * features/rs6000/powerpc-860.c: Likewise.
1908 * features/rs6000/powerpc-e500.c: Likewise.
1909 * features/rs6000/powerpc-e500l.c: Likewise.
1910 * features/rs6000/powerpc-isa205-32l.c: Likewise.
1911 * features/rs6000/powerpc-isa205-64l.c: Likewise.
1912 * features/rs6000/rs6000.c: Likewise.
1914 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1916 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
1918 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
1919 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
1920 (stap_parse_argument) <e>: Likewise.
1921 (handle_stap_probe) <byte_order>: Likewise.
1923 2012-04-30 Doug Evans <dje@google.com>
1925 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
1926 init_and_read_dies_worker. All callers updated.
1927 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
1928 replaced with init_cutu_and_read_dies.
1929 (load_partial_comp_unit): Pass 1 for use_existing_cu.
1930 (find_partial_die): Remove FIXME. Don't free current CU.
1932 2012-04-30 Sterling Augustine <saugustine@google.com>
1934 * contrib: New directory.
1935 * contrib/test_pubnames_and_indexes.py: New file.
1937 2012-04-30 Doug Evans <dje@google.com>
1939 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
1940 All callers updated.
1941 (init_cu_die_reader): Verify the section is non-empty.
1942 (dwarf_decode_line_header): Don't dereference section->asection
1943 until we know the section is present.
1945 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
1947 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
1950 2012-04-29 Yao Qi <yao@codesourcery.com>
1952 * gdb-code-style.el: New hook gdb-markup-hook
1953 and gdb-comment-hook.
1955 2012-04-28 Doug Evans <dje@google.com>
1957 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
1958 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
1960 * symfile.h (dwarf2_debug_sections): New member addr.
1961 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
1962 (ctx_no_get_addr_index): New function.
1963 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
1964 (ctx_no_get_addr_index): Declare.
1965 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
1966 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
1967 (dwarf_expr_ctx_funcs): Update.
1968 (needs_get_addr_index): New function.
1969 (needs_frame_ctx_funcs): Update.
1970 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
1971 * dwarf2read.c: #include "gdbcore.h".
1972 (dwarf2_per_objfile): New members addr, dwo_files.
1973 (dwarf2_elf_names): Add entry for addr.
1974 (struct dwo_section_names): New type.
1975 (dwo_section_names): New static global.
1976 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
1977 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
1978 old debug_types_section member updated to use this.
1979 Rename member debug_types_section to info_or_types_section,
1981 (signatured_type): Rename member type_offset to type_offset_in_tu,
1982 all uses updated. New member type_offset_in_section.
1983 (struct dwo_sections): New type.
1984 (struct dwo_unit): New type.
1985 (struct dwo_file): New type.
1986 (die_reader_specs): New member dwo_file.
1987 (dwarf2_locate_sections): Watch for .debug_addr.
1988 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
1989 (dwarf2_read_section): Get bfd of section from bfd's asection,
1991 (create_cus_from_index): Initialize the_cu->info_or_types_section.
1992 (create_signatured_type_table_from_index): Initialize
1993 sig_type->info_or_types_section.
1994 (dw2_get_file_names): Statement lists for type units with DWO files
1995 live in the DWO file.
1996 (create_debug_types_hash_table): New function.
1997 (create_all_type_units): Rewrite.
1998 (init_cu_die_reader): New arg dwo_file, all callers updated.
1999 (init_and_read_dies_worker): Get section from
2000 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
2001 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2002 continue reading the CU/TU from there.
2003 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2004 updated. Get section from this_cu->info_or_types_section.
2005 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2006 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2007 DW_FORM_GNU_str_index.
2008 (hash_dwo_file, eq_dwo_file): New functions.
2009 (allocate_dwo_file_hash_table): New function.
2010 (hash_dwo_unit, eq_dwo_unit): New functions.
2011 (allocate_dwo_unit_table): New function.
2012 (dwarf2_locate_dwo_sections): New function.
2013 (struct create_dwo_info_table_data): New type.
2014 (create_debug_info_hash_table_reader): New function.
2015 (create_debug_info_hash_table): New function.
2016 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2017 (lookup_dwo_file): New function.
2018 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2019 (free_dwo_file, free_dwo_file_cleanup): New functions.
2020 (free_dwo_file_from_slot, free_dwo_files): New functions.
2021 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2022 (dwarf2_record_block_ranges): Ditto.
2023 (read_partial_die): Ditto.
2024 (process_enumeration_scope): Update to use type_offset_in_section.
2025 (read_full_die_1): New function.
2026 (read_full_die): Rewrite.
2027 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2028 DW_FORM_GNU_str_index.
2029 (read_addr_index_1, read_addr_index): New functions.
2030 (read_addr_index_from_leb128): New function.
2031 (struct dwarf2_read_addr_index_data): New type.
2032 (dwarf2_read_addr_index_reader): New function.
2033 (dwarf2_read_addr_index): New function.
2034 (read_str_index): New function.
2035 (leb128_size): New function.
2036 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2037 If processing a type unit from a DWO file, get the line section
2039 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2040 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2041 DW_FORM_GNU_str_index.
2042 (lookup_die_type): Check whether section offset of type's die is
2043 known before looking it up. Remove assert. Condition can
2044 legimately happen for inter-cu type references.
2045 (dwarf_attr_name): Handle Fission attributes.
2046 (dwarf_form_name): Handle Fission forms.
2047 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2048 DW_FORM_GNU_str_index.
2049 (follow_die_sig): Update to use type_offset_in_section.
2050 (decode_locdesc): New case DW_OP_GNU_addr_index.
2051 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2052 DW_FORM_GNU_str_index.
2053 (cu_debug_loc_section): New function.
2054 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2055 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2056 Free DWO files if present.
2057 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2059 Refactor DIE reading.
2060 * dwarf2read.c (dwarf2_per_objfile): Replace members
2061 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2062 (die_reader_specs): New member "die_section". Temporarily make
2063 member "buffer" non-const, pending constifying all info_ptr uses.
2064 (die_reader_func_ftype): New typedef.
2065 (dw2_get_file_names_reader): New function.
2066 (dw2_get_file_names): Rewrite.
2067 (read_and_check_type_unit_head): Rename arg type_offset to
2069 (create_all_type_units): Improve debugging message.
2070 Improve dummy type unit check.
2071 (init_cu_die_reader): New arg "section". All callers updated.
2072 (init_and_read_dies_worker): New function.
2073 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2074 (init_cutu_and_read_dies_no_follow): New function.
2075 (init_cutu_and_read_dies_simple): New function.
2076 (process_psymtab_comp_unit_reader): New function.
2077 (process_psymtab_comp_unit): Delete args section,
2078 is_debug_types_section. Rewrite. All callers updated.
2079 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2080 All callers updated. Rewrite.
2081 (load_partial_comp_unit_reader): New function.
2082 (load_partial_comp_unit): Rewrite.
2083 (skip_children): New arg reader. Delete args buffer, cu.
2084 All callers updated.
2085 (skip_one_die): New arg reader. Delete args buffer, cu.
2086 All callers updated.
2087 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2088 All callers updated.
2089 (load_full_comp_unit_reader): New function.
2090 (load_full_comp_unit): Rewrite.
2091 (read_comp_unit): Delete.
2092 (read_die_and_children_1): Delete, contents moved ...
2093 (read_die_and_children): ... here.
2094 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2095 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2096 All callers updated.
2097 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2098 All callers updated.
2099 (find_partial_die): Rewrite load_all_dies support.
2100 (read_attribute_value): New arg reader. Delete args abfd, cu.
2101 All callers updated.
2102 (read_attribute): New arg reader. Delete args abfd, cu.
2103 All callers updated.
2104 (load_full_type_unit): Add assert.
2105 (read_signatured_type_reader): New function.
2106 (read_signatured_type): Rewrite.
2107 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2108 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2109 All callers updated. Set per_cu->cu = NULL after freeing it.
2110 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2111 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2112 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2113 (set_die_type): Update.
2114 (get_die_type_at_offset): Update.
2115 (read_file_scope): Call prepare_one_comp_unit.
2116 (read_type_unit_scope): Ditto.
2117 (prepare_one_comp_unit): Set producer if present.
2119 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2121 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2122 gettext function on `error'.
2124 2012-04-27 Doug Evans <dje@google.com>
2126 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2129 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2130 Tom Tromey <tromey@redhat.com>
2132 * breakpoint.c (struct breakpoint_objfile_data)
2133 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2134 <exception_probes>: New fields.
2135 (free_breakpoint_probes): New function.
2136 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2137 `_Unwind_DebugHook'.
2138 (create_exception_master_breakpoint): Likewise.
2139 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2140 * infrun.c: Including necessary header files for handling SystemTap
2142 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2143 via SystemTap probes.
2144 (check_exception_resume): Remove `func' argument. Handle exception
2145 unwinding breakpoint set via a SystemTap probe.
2146 (insert_exception_resume_from_probe): New function.
2148 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2149 Tom Tromey <tromey@redhat.com>
2150 Jan Kratochvil <jan.kratochvil@redhat.com>
2152 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2153 (COMMON_OBS): Likewise.
2154 (HFILES_NO_SRCDIR): Add `probe'.
2155 * NEWS: Mention support for static and SystemTap probes.
2156 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2157 SystemTap probes' arguments parser.
2158 * arm-linux-tdep.c: Including headers needed to perform the parsing
2159 of SystemTap probes' arguments.
2160 (arm_stap_is_single_operand): New function.
2161 (arm_stap_parse_special_token): Likewise.
2162 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2163 probes' arguments parser.
2164 * ax-gdb.c (require_rvalue): Removing static declaration.
2165 (gen_expr): Likewise.
2166 * ax-gdb.h (gen_expr): Declaring function.
2167 (require_rvalue): Likewise.
2168 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2169 (bkpt_probe_breakpoint_ops): New variable.
2170 (momentary_breakpoint_from_master): Set the `probe' value.
2171 (add_location_to_breakpoint): Likewise.
2172 (break_command_1): Using proper breakpoint_ops according to the
2173 argument passed by the user in the command line.
2174 (bkpt_probe_insert_location): New function.
2175 (bkpt_probe_remove_location): Likewise.
2176 (bkpt_probe_create_sals_from_address): Likewise.
2177 (bkpt_probe_decode_linespec): Likewise.
2178 (tracepoint_probe_create_sals_from_address): Likewise.
2179 (tracepoint_probe_decode_linespec): Likewise.
2180 (tracepoint_probe_breakpoint_ops): New variable.
2181 (trace_command): Using proper breakpoint_ops according to the
2182 argument passed by the user in the command line.
2183 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2184 static probes on breakpoints and tracepoints.
2185 * breakpoint.h (struct bp_location) <probe>: New field.
2186 * cli-utils.c (skip_spaces_const): New function.
2187 (extract_arg): Likewise.
2188 * cli-utils.h (skip_spaces_const): Likewise.
2189 (extract_arg): Likewise.
2190 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2191 * configure.ac: Append `stap-probe.o' to be generated when ELF
2193 * configure: Regenerate.
2194 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2195 * elfread.c: Include `probe.h' and `arch-utils.h'.
2196 (probe_key): New variable.
2197 (elf_get_probes): New function.
2198 (elf_get_probe_argument_count): Likewise.
2199 (elf_evaluate_probe_argument): Likewise.
2200 (elf_compile_to_ax): Likewise.
2201 (elf_symfile_relocate_probe): Likewise.
2202 (stap_probe_key_free): Likewise.
2203 (elf_probe_fns): New variable.
2204 (elf_sym_fns): Add `sym_probe_fns' value.
2205 (elf_sym_fns_lazy_psyms): Likewise.
2206 (elf_sym_fns_gdb_index): Likewise.
2207 (_initialize_elfread): Initialize objfile cache for static
2209 * gdb_vecs.h (struct probe): New forward declaration.
2210 (probe_p): New VEC declaration.
2211 * gdbarch.c: Regenerate.
2212 * gdbarch.h: Regenerate.
2213 * gdbarch.sh (stap_integer_prefix): New variable.
2214 (stap_integer_suffix): Likewise.
2215 (stap_register_prefix): Likewise.
2216 (stap_register_suffix): Likewise.
2217 (stap_register_indirection_prefix): Likewise.
2218 (stap_register_indirection_suffix): Likewise.
2219 (stap_gdb_register_prefix): Likewise.
2220 (stap_gdb_register_suffix): Likewise.
2221 (stap_is_single_operand): New function.
2222 (stap_parse_special_token): Likewise.
2223 (struct stap_parse_info): Forward declaration.
2224 * i386-tdep.c: Including headers needed to perform the parsing
2225 of SystemTap probes' arguments.
2226 (i386_stap_is_single_operand): New function.
2227 (i386_stap_parse_special_token): Likewise.
2228 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2229 probes' arguments parser.
2230 * i386-tdep.h (i386_stap_is_single_operand): New function.
2231 (i386_stap_parse_special_token): Likewise.
2232 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2233 * mipsread.c (ecoff_sym_fns): Likewise.
2234 * objfiles.c (objfile_relocate1): Support relocation for static
2236 * parse.c (prefixify_expression): Remove static declaration.
2237 (initialize_expout): Likewise.
2238 (reallocate_expout): Likewise.
2239 * parser-defs.h (initialize_expout): Declare function.
2240 (reallocate_expout): Likewise.
2241 (prefixify_expression): Likewise.
2242 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2243 of SystemTap probes' arguments.
2244 (ppc_stap_is_single_operand): New function.
2245 (ppc_stap_parse_special_token): Likewise.
2246 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2247 probes' arguments parser.
2248 * probe.c: New file, for generic statically defined probe support.
2249 * probe.h: Likewise.
2250 * s390-tdep.c: Including headers needed to perform the parsing of
2251 SystemTap probes' arguments.
2252 (s390_stap_is_single_operand): New function.
2253 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2254 probes' arguments parser.
2255 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2256 * stap-probe.c: New file, for SystemTap probe support.
2257 * stap-probe.h: Likewise.
2258 * symfile.h: Include `gdb_vecs.h'.
2259 (struct sym_probe_fns): New struct.
2260 (struct sym_fns) <sym_probe_fns>: New field.
2261 * symtab.c (init_sal): Initialize `probe' field.
2262 * symtab.h (struct probe): Forward declaration.
2263 (struct symtab_and_line) <probe>: New field.
2264 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2266 (stop_tracing): Likewise.
2267 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2269 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2270 Tom Tromey <tromey@redhat.com>
2272 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2273 and to compile agent expressions.
2274 * infrun.c (siginfo_make_value): New argument `ignore'.
2275 (siginfo_funcs): New struct.
2276 (_initialize_infrun): New argument when calling
2277 `create_internalvar_type_lazy'.
2278 * thread.c (thread_id_make_value): New argument `ignore'.
2279 (thread_funcs): New struct.
2280 (_initialize_thread): New argument when calling
2281 `create_internalvar_type_lazy'.
2282 * tracepoint.c (sdata_make_value): New argument `ignore'.
2283 (sdata_funcs): New struct.
2284 (_initialize_tracepoint): New argument when calling
2285 `create_internalvar_type_lazy'.
2286 * value.c (make_value): New struct.
2287 (create_internalvar_type_lazy): New argument `data'.
2288 (compile_internalvar_to_ax): New function.
2289 (value_of_internalvar): Properly handling `make_value' case.
2290 (clear_internalvar): Likewise.
2291 (show_convenience): Adding `TRY_CATCH' block.
2292 * value.h (internalvar_make_value): Delete, replace by...
2293 (struct internalvar_funcs): ... this.
2294 (create_internalvar_type_lazy) <fun>: Delete argument.
2295 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2296 (compile_internalvar_to_ax): New function.
2297 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2298 (tlb_funcs): New struct.
2299 (_initialize_windows_tdep): New argument when calling
2300 `create_internalvar_type_lazy'.
2302 2012-04-27 Mark Wielaard <mjw@redhat.com>
2304 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2305 see whether it is an address or a constant offset from DW_AT_low_pc.
2306 (dwarf2_record_block_ranges): Likewise.
2307 (read_partial_die): Likewise.
2309 2012-04-26 Mark Wielaard <mjw@redhat.com>
2311 * MAINTAINERS (Write After Approval): Add myself to the list.
2313 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2315 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2316 (proc_prettyprint_signal): Likewise.
2317 (proc_prettyprint_faultset): Likewise.
2318 (proc_prettyprint_fault): Likewise.
2319 (proc_prettyprint_actionset): Likewise.
2320 (proc_prettyprint_flags): Move to new proc-flags.c section.
2321 (proc_prettyfprint_flags): New prototype.
2322 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2323 (proc_syscall, proc_cursig): Likewise.
2324 (proc_set_kill_on_last_close): Likewise.
2325 (proc_unset_kill_on_last_close): Likewise.
2326 (proc_set_watchpoint): Make static.
2327 (proc_delete_dead_threads): Likewise.
2328 (procfs_set_watchpoint): Likewise.
2329 (_initialize_procfs): Add prototype.
2330 * proc-events.c: Include proc-utils.h.
2331 (init_syscall_table): Make static.
2332 * proc-api.c (_initialize_proc_api): Add prototype.
2333 * proc-flags.c: Include proc-utils.h.
2335 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2337 * configure.ac: Add AC_ARG_PROGRAM.
2338 * configure: Regenerate.
2340 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2342 Fix DW_AT_lower_bound defaults for DWARF-4+.
2343 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2344 high. New variable low_default_is_valid. Implement DWARF-4+
2345 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2346 no default by the DWARF standard.
2348 2012-04-26 Maciej W. Rozycki <macro@mips.com>
2349 Maciej W. Rozycki <macro@codesourcery.com>
2351 * infrun.c (handle_inferior_event): Move the check for return
2352 trampolines ahead of the check for function trampolines.
2353 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2354 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2355 (mips_str_mips16_ret_stub): Likewise.
2356 (mips_str_call_fp_stub): Likewise.
2357 (mips_str_call_stub): Likewise.
2358 (mips_str_fn_stub): Likewise.
2359 (mips_str_pic): Likewise.
2360 (mips_in_frame_stub): New function.
2361 (mips_unwind_pc): Return the return address rather than the PC
2362 if the PC of an intermediate frame is inside a call thunk.
2363 (mips_is_stub_suffix): New function.
2364 (mips_is_stub_mode): Likewise.
2365 (mips_get_mips16_fn_stub_pc): Likewise.
2366 (mips_skip_mips16_trampoline_code): Update to handle all the
2367 currently generated stub types. Don't recurse into __fn_stub
2368 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2369 Use cooked register accesses.
2370 (mips_in_return_stub): Reintroduce function.
2371 (mips_skip_trampoline_code): Traverse trampolines recursively.
2372 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2374 2012-04-26 Joel Brobecker <brobecker@adacore.com>
2378 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2380 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2381 * features/arm-with-m-vfp-d16.xml: New file. Describes
2382 Cortex-M with VFPv4-sp-d16 FPU register layout.
2383 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2384 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2385 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2386 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2387 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2389 2012-04-25 Doug Evans <dje@google.com>
2391 * cli/cli-decode.c (print_doc_line): Use stream instead of
2394 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2396 * features/arm-with-iwmmxt.c: Regenerate.
2397 * features/arm-with-m-fpa-layout.c: Likewise.
2398 * features/arm-with-m.c: Likewise.
2399 * features/arm-with-neon.c: Likewise.
2400 * features/arm-with-vfpv2.c: Likewise.
2401 * features/arm-with-vfpv3.c: Likewise.
2402 * features/mips-dsp-linux.c: Likewise.
2403 * features/mips-linux.c: Likewise.
2404 * features/mips64-dsp-linux.c: Likewise.
2405 * features/mips64-linux.c: Likewise.
2406 * features/s390-linux32.c: Likewise.
2407 * features/s390-linux32v1.c: Likewise.
2408 * features/s390-linux32v2.c: Likewise.
2409 * features/s390-linux64.c: Likewise.
2410 * features/s390-linux64v1.c: Likewise.
2411 * features/s390-linux64v2.c: Likewise.
2412 * features/s390x-linux64.c: Likewise.
2413 * features/s390x-linux64v1.c: Likewise.
2414 * features/s390x-linux64v2.c: Likewise.
2415 * features/tic6x-c62x-linux.c: Likewise.
2416 * features/tic6x-c62x.c: Likewise.
2417 * features/tic6x-c64x-linux.c: Likewise.
2418 * features/tic6x-c64x.c: Likewise.
2419 * features/tic6x-c64xp-linux.c: Likewise.
2420 * features/tic6x-c64xp.c: Likewise.
2421 * target-descriptions.c: Only generate `field_type' and `type'
2422 variables when needed.
2424 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2426 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2428 2012-04-25 Doug Evans <dje@google.com>
2430 Initial pass at Go language support.
2432 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2434 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2435 (YYFILES): Add go-exp.c.
2436 (YYOBJ): Add go-exp.o.
2437 (local-maintainer-clean): Delete go-exp.c.
2438 * defs.h (enum language): Add language_go.
2439 * dwarf2read.c: #include "go-lang.h".
2440 (fixup_go_packaging): New function.
2441 (process_full_comp_unit): Call it when processing Go CUs.
2442 (dwarf2_physname): Add Go support.
2443 (read_file_scope): Handle missing language spec for GNU Go.
2444 (set_cu_language): Handle DW_LANG_Go.
2445 * go-exp.y: New file.
2446 * go-lang.h: New file.
2447 * go-lang.c: New file.
2448 * go-typeprint.c: New file.
2449 * go-valprint.c: New file.
2450 * symtab.c: #include "go-lang.h".
2451 (symbol_set_language): Handle language_go.
2452 (symbol_find_demangled_name, symbol_set_names): Ditto.
2453 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2455 2012-04-24 Jim Meyering <meyering@redhat.com>
2457 avoid a few strncpy-induced buffer overruns
2458 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2459 fname and psargs before trying to concatenate.
2460 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2461 "name" before applying strchr.
2463 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2465 * CONTRIBUTE: Use unified diff instead of context diff when
2468 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2470 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2471 code. Handle JR.HB correctly.
2473 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2476 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2477 with the other MIPS16 helpers.
2479 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2481 * observer.sh: Conditionally declare `args', thus cleaning up
2482 unused instances of this variable.
2484 2012-04-24 Yao Qi <yao@codesourcery.com>
2486 Revert this patch to allow breakpoint always-inserted
2488 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2489 * breakpoint.c: Include record.h.
2490 (breakpoints_always_inserted_mode): Return false when the record
2493 * breakpoint.c (iterate_over_bp_locations): New.
2494 * breakpoint.h: Declare.
2495 New typedef walk_bp_location_callback.
2496 * record.c (record_open): Call record_init_record_breakpoints.
2497 (record_sync_record_breakpoints): New.
2498 (record_init_record_breakpoints): New.
2499 * NEWS: Mention supporting breakpoint always-inserted mode in
2502 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2504 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2507 2012-04-24 Yao Qi <yao@codesourcery.com>
2509 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2510 (is_catchpoint): ... it.
2511 (print_one_breakpoint_location): Caller update.
2512 * breakpoint.h: Update declaration.
2514 2012-04-23 David S. Miller <davem@davemloft.net>
2516 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2518 2012-04-23 Tom Tromey <tromey@redhat.com>
2520 * buildsym.c (add_free_pendings): Remove.
2521 * buildsym.h (add_free_pendings): Remove.
2523 2012-04-23 Doug Evans <dje@google.com>
2525 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2526 attr.u.unsnd instead of attr.u.addr.
2527 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2528 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2530 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2531 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2533 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2535 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
2537 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2538 (mips_o32_return_value): Likewise.
2539 (mips_o64_return_value): Likewise.
2541 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
2543 * ada-lang.c (ada_evaluate_subexp): Add cases for
2544 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2545 their treatment in eval.c.
2547 2012-04-21 David S. Miller <davem@davemloft.net>
2549 * sparc-tdep.c (X_DISP10): Define.
2550 (sparc_analyze_control_transfer): Handle compare-and-branch.
2552 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
2554 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2555 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2557 2012-04-20 Nigel Stephens <nigel@mips.com>
2558 Maciej W. Rozycki <macro@codesourcery.com>
2560 * mips-tdep.c (mips_float_register_p): New function.
2561 (mips_convert_register_float_case_p): Use mips_float_register_p.
2562 (mips_register_type): Likewise.
2563 (mips_print_register): Likewise.
2564 (print_gp_register_row): Likewise.
2565 (mips_print_registers_info): Likewise.
2567 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
2569 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2572 2012-04-20 Andrew Pinski <apinski@cavium.com>
2574 * MAINTAINERS (Write After Approval): Add myself to the list.
2576 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2578 * MAINTAINERS: Update my e-mail address.
2580 2012-04-20 Pedro Alves <palves@redhat.com>
2582 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
2584 * configure: Regenerate.
2586 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2588 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
2590 * gdb_vecs.h: Declare `const_char_ptr' VEC.
2592 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2594 Fix compilation compatibility with python-2.4
2595 * python/py-type.c (convert_field): Cast ADDRSTRING for
2596 PyObject_SetAttrString as non-const. New comment.
2598 2012-04-19 Tom Tromey <tromey@redhat.com>
2600 * top.c (quit_target): Use all_cleanups.
2601 * main.c (captured_command_loop): Use all_cleanups.
2602 * exceptions.c (throw_exception): Use all_cleanups.
2604 2012-04-19 Pedro Alves <palves@redhat.com>
2606 * Makefile.in (GNULIB_BUILDDIR): New.
2607 (LIBGNU, INCGNU, GNULIB_H): Adjust.
2608 (SUBDIRS): Add $(GNULIB_BUILDDIR).
2609 (CLEANDIRS). Remove gnulib/import.
2610 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
2612 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
2613 (gnulib/import/Makefile): Replace gnulib/import with
2614 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
2615 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
2616 (aclocal_m4_deps): Remove the gnulib dependencies. Add
2617 acx_configure_dir.m4.
2618 * acinclude.m4: Include acx_configure_dir.m4.
2619 * acx_configure_dir.m4: New file.
2620 * aclocal.m4: Regenerate.
2621 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
2622 calls. Configure gnulib using ACX_CONFIGURE_DIR.
2623 (GNULIB): New variable.
2624 (GNULIB_STDINT_H): Adjust.
2625 (AC_OUTPUT): Don't output gnulib/Makefile.
2626 * gdb/defs.h: Include build-gnulib/config.h.
2627 * aclocal.m4: Regenerate.
2628 * config.in: Regenerate.
2629 * configure: Regenerate.
2631 * gnulib/Makefile.in: New file.
2632 * gnulib/configure.ac: New file.
2633 * gnulib/aclocal.m4: New file.
2634 * gnulib/config.in: New file.
2635 * gnulib/configure: New file.
2636 * gnulib/: Re-run gnulib-tool to adjust.
2638 2012-04-19 Doug Evans <dje@google.com>
2640 * cleanups.h (struct cleanup): Move to cleanups.c.
2641 (make_cleanup_dtor_ftype): New typedef.
2642 (make_cleanup_dtor): Use it.
2643 (ALL_CLEANUPS): Replace with ...
2644 (all_cleanups): ... this. Declare. All uses updated.
2645 * cleanups.c: #include "gdb_assert.h".
2646 (sentinel_cleanup): New static global.
2647 (SENTINEL_CLEANUP): Define.
2648 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
2649 (make_my_cleanup2): Assert result is non-NULL.
2650 (all_cleanups): New function.
2651 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
2654 2012-04-19 Pedro Alves <palves@redhat.com>
2656 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
2657 Adjust paths to gnulib imported files.
2659 2012-04-19 Pedro Alves <palves@redhat.com>
2661 * gnulib/: Move whole directory ...
2662 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
2663 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
2664 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
2665 (aclocal_m4_deps): Adjust.
2666 * aclocal.m4: Regenerate.
2667 * configure: Regenerate.
2668 * configure.ac: Adjust AC_OUTPUT output.
2670 2012-04-19 Yao Qi <yao@codesourcery.com>
2672 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
2674 * vec.c: Move it ...
2675 * common/vec.c: ... here.
2676 * vec.h: Move it ...
2677 * common/vec.h: ... here.
2679 2012-04-19 Yao Qi <yao@codesourcery.com>
2681 * gdb-code-style.el: New.
2683 2012-04-18 Pedro Alves <palves@redhat.com>
2685 Update gnulib from latest git.
2686 (639ea5ae15e39fe48d43e04864b2997301e4b969)
2688 * gnulib/Makefile.am: Update.
2689 * gnulib/dummy.c: Update.
2690 * gnulib/extra/arg-nonnull.h: Update.
2691 * gnulib/extra/c++defs.h: Update.
2692 * gnulib/extra/update-copyright: Update.
2693 * gnulib/extra/warn-on-use.h: Update.
2694 * gnulib/inttypes.in.h: Update.
2695 * gnulib/m4/00gnulib.m4: Update.
2696 * gnulib/m4/extensions.m4: Update.
2697 * gnulib/m4/gnulib-cache.m4: Update.
2698 * gnulib/m4/gnulib-common.m4: Update.
2699 * gnulib/m4/gnulib-comp.m4: Update.
2700 * gnulib/m4/gnulib-tool.m4: Update.
2701 * gnulib/m4/include_next.m4: Update.
2702 * gnulib/m4/inttypes-pri.m4: Update.
2703 * gnulib/m4/inttypes.m4: Update.
2704 * gnulib/m4/longlong.m4: Update.
2705 * gnulib/m4/memchr.m4: Update.
2706 * gnulib/m4/memmem.m4: Update.
2707 * gnulib/m4/mmap-anon.m4: Update.
2708 * gnulib/m4/multiarch.m4: Update.
2709 * gnulib/m4/onceonly.m4: Update.
2710 * gnulib/m4/stddef_h.m4: Update.
2711 * gnulib/m4/stdint.m4: Update.
2712 * gnulib/m4/string_h.m4: Update.
2713 * gnulib/m4/warn-on-use.m4: Update.
2714 * gnulib/m4/wchar_h.m4: Update.
2715 * gnulib/m4/wchar_t.m4: Update.
2716 * gnulib/m4/wint_t.m4: Update.
2717 * gnulib/memchr.c: Update.
2718 * gnulib/memmem.c: Update.
2719 * gnulib/stddef.in.h: Update.
2720 * gnulib/stdint.in.h: Update.
2721 * gnulib/str-two-way.h: Update.
2722 * gnulib/string.in.h: Update.
2723 * gnulib/wchar.in.h: Update.
2725 * gnulib/extra/arg-nonnull.h: Delete.
2726 * gnulib/extra/c++defs.h: Delete.
2727 * gnulib/extra/warn-on-use.h: Delete.
2728 * gnulib/m4/wchar_h.m4: Delete.
2729 * gnulib/m4/wint_t.m4: Delete.
2730 * gnulib/wchar.in.h: Delete.
2732 * gnulib/extra/snippets/arg-nonnull.h: New.
2733 * gnulib/extra/snippets/c++defs.h: New.
2734 * gnulib/extra/snippets/warn-on-use.h: New.
2736 * aclocal.m4: Regenerate.
2737 * config.in: Regenerate.
2738 * configure: Regenerate.
2739 * gnulib/Makefile.in: Regenerate.
2741 2012-04-18 Pedro Alves <palves@redhat.com>
2743 Reimport the update-copyright module from gnulib
2744 (250b80067c1e1d8faa0c42fb572f721975b929c5).
2746 * configure: Regenerate.
2747 * gnulib/Makefile.am: Update.
2748 * gnulib/Makefile.in: Regenerate.
2749 * gnulib/extra/update-copyright: Update.
2750 * gnulib/m4/gnulib-cache.m4: Update.
2751 * gnulib/m4/gnulib-comp.m4: Update.
2753 2012-04-18 Tristan Gingold <gingold@adacore.com>
2755 * configure.ac (aix): Put -lpthread into libs.
2756 * configure: Regenerate.
2758 2012-04-18 Tom Tromey <tromey@redhat.com>
2760 * linespec.c (convert_linespec_to_sals): Don't use
2762 (compare_msymbols): Arguments are minsym_and_objfile, not
2763 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
2765 2012-04-18 Pedro Alves <palves@redhat.com>
2767 Revert gnulib/ part of:
2768 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2769 Copyright year update in most files (performed by copyright.sh).
2771 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2773 Fix 64-bit constants on 32-bit hosts.
2774 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
2775 from unsigned long to ULONGEST.
2776 (read_signed_leb128): Change declaration return type from long to
2778 (dwarf2_const_value_attr): Change declaration parameter value from long
2780 (dwarf2_compute_name): Change variable value from long to LONGEST.
2781 (read_unsigned_leb128): Change return type, variable result and some
2782 casts from unsigned long to ULONGEST.
2783 (read_signed_leb128): Change return type, variable result and some
2784 casts from long to LONGEST.
2785 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
2786 value from long to LONGEST.
2787 (dwarf2_const_value): Change variable value from long to LONGEST.
2788 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
2789 plongest and hex_string.
2790 * symtab.h (struct general_symbol_info): Change ivalue from long to
2791 LONGEST, remove the comment.
2792 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
2793 Change SYMBOL_VALUE format strings to use plongest and hex_string.
2795 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
2798 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
2799 * ada-lang.c (ada_discrete_type_high_bound)
2800 (ada_discrete_type_low_bound): Fix function comment. Use
2801 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2802 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
2803 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2804 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
2805 Use TYPE_FIELD_ENUMVAL.
2806 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
2807 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2808 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
2809 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
2811 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
2812 * dwarf2read.c (process_enumeration_scope): Likewise.
2813 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
2815 (class StructMainTypePrettyPrinter): Support also
2816 FIELD_LOC_KIND_ENUMVAL.
2817 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
2819 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2820 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
2821 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
2822 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
2824 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
2825 accommodate enumval.
2826 (struct call_site): Adjust loc_kind to accommodate enumval.
2827 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
2828 (TYPE_FIELD_ENUMVAL): New macros.
2829 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
2830 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
2832 * p-typeprint.c (pascal_type_print_base): Likewise.
2833 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
2835 * python/lib/gdb/types.py (make_enum_dict): Likewise.
2836 * python/py-type.c (convert_field): New variable addrstring. Use
2837 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2838 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
2839 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
2840 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
2842 * valprint.c (generic_val_print): Likewise.
2844 2012-04-17 Doug Evans <dje@google.com>
2846 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
2848 * dwarf2read.c: Whitespace fixes.
2849 (lookup_signatured_type): Tweak comment.
2850 (get_die_type_at_offset): Fix comment.
2852 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2854 * xcoffread.c (xcoff_secnum_to_sections): New function.
2855 (secnum_to_section, secnum_to_bfd_section): Reimplement
2856 using xcoff_secnum_to_sections. Rename "secnum" parameter
2858 (RECORD_MINIMAL_SYMBOL): Delete.
2859 (record_minimal_symbol): New function.
2860 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
2861 by call to record_minimal_symbol and set misc_func_recorded
2862 to 1. Set last_csect_sec to the XCOFF section index instead
2863 of GDB's section_offset index. Update calls to
2864 prim_record_minimal_symbol_and_info to pass the BFD section
2867 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2869 * xcoffread.c (read_xcoff_symtab): Delete variables
2870 last_csect_val and last_csect_sec and associated code.
2872 2012-04-17 Doug Evans <dje@google.com>
2874 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
2875 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2876 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
2877 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
2879 * cleanups.h: New file.
2880 * cleanups.c: New file.
2881 * Makefile.in (SFILES): Add cleanups.c.
2882 (HFILES_NO_SRCDIR): Add cleanups.h.
2883 (COMMON_OBS): Add cleanups.o.
2884 * defs.h (struct cleanup): Moved to cleanups.h.
2885 (do_cleanups,do_final_cleanups): Ditto.
2886 (discard_cleanups,discard_final_cleanups): Ditto
2887 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2888 (save_cleanups,save_final_cleanups): Ditto.
2889 (restore_cleanups,restore_final_cleanups): Ditto.
2890 (null_cleanup): Ditto.
2891 (make_my_cleanup,make_my_cleanup2): Ditto.
2892 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2893 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
2894 (do_cleanups,do_final_cleanups): Ditto.
2895 (discard_cleanups,discard_final_cleanups): Ditto
2896 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2897 (save_cleanups,save_final_cleanups): Ditto.
2898 (restore_cleanups,restore_final_cleanups): Ditto.
2899 (null_cleanup): Ditto.
2900 (make_my_cleanup,make_my_cleanup2): Ditto.
2901 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2903 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
2905 (make_cleanup_dyn_string_delete): Ditto.
2906 (make_cleanup_ui_file_delete): Ditto.
2907 (make_cleanup_ui_out_redirect_pop): Ditto.
2908 (make_cleanup_free_section_addr_info): Ditto.
2909 (make_cleanup_restore_integer): Ditto.
2910 (make_cleanup_unpush_target): Ditto.
2911 (make_cleanup_value_free_to_mark): Ditto.
2912 (make_cleanup_value_free): Ditto.
2913 (make_cleanup_free_so): Ditto.
2915 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2917 New option "set debug auto-load".
2918 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
2919 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
2920 (auto_load_safe_path_vec_update)
2921 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
2923 (file_is_auto_load_safe): New parameters debug_fmt and ....
2924 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
2925 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
2926 caller by explanatory string.
2927 (_initialize_auto_load): Register "set debug auto-load".
2928 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
2930 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2931 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
2932 by explanatory string.
2933 * main.c (captured_main): Likewise.
2934 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2935 (source_section_scripts): Likewise.
2937 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2939 New option "set auto-load safe-path".
2940 * NEWS: New commands "set auto-load safe-path"
2941 and "show auto-load safe-path".
2942 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
2943 (auto_load_safe_path, auto_load_safe_path_vec)
2944 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
2945 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
2946 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
2947 (source_gdb_script_for_objfile): New variable is_safe. Call
2948 file_is_auto_load_safe. Return if it is not.
2949 (struct loaded_script): New field loaded.
2950 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
2951 (print_script): Use LOADED indicator instead of FULL_PATH. Change
2952 output "Missing" to "No".
2953 (_initialize_auto_load): New variable cmd. Initialize
2954 auto_load_safe_path. Register "set auto-load safe-path",
2955 "show auto-load safe-path" and "add-auto-load-safe-path".
2956 * auto-load.h (maybe_add_script): Add parameter loaded.
2957 (file_is_auto_load_safe): New declaration.
2958 * config.in: Regenerate.
2959 * configure: Regenerate.
2960 * configure.ac: New parameters --with-auto-load-safe-path
2961 and --without-auto-load-safe-path.
2962 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2963 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
2964 * main.c (captured_main): Check file_is_auto_load_safe for
2966 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
2967 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
2968 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
2971 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2973 auto-load: Implementation.
2974 * NEWS: New descriptions for "info auto-load",
2975 "info auto-load gdb-scripts", "info auto-load python-scripts",
2976 "info auto-load local-gdbinit" and "info auto-load libthread-db".
2977 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
2978 and "show auto-load-scripts". New description for "set auto-load",
2979 "show auto-load", "set auto-load gdb-scripts",
2980 "show auto-load gdb-scripts", "set auto-load python-scripts",
2981 "show auto-load python-scripts", "set auto-load local-gdbinit",
2982 "show auto-load local-gdbinit", "set auto-load libthread-db" and
2983 "show auto-load libthread-db".
2984 * auto-load.c: Remove include python/python-internal.h. Add includes
2985 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
2987 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
2988 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
2989 (gdbpy_global_auto_load): Rename to ...
2990 (global_auto_load): ... here.
2991 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2992 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
2993 (script_language_gdb, source_gdb_script_for_objfile): New.
2994 (struct loaded_script): New field language.
2995 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
2997 (maybe_add_script): Add parameter language. Drop redundant
2998 entry.full_path initialization. Initialize entry.language and
3000 (auto_load_objfile_script): Change parameter suffix to language.
3001 Remove the call of maybe_add_script.
3002 Call language->source_script_for_objfile.
3003 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3005 (collect_matching_scripts): Adjust it for
3006 struct collect_matching_scripts_data.
3007 (auto_load_info_scripts_pattern_nl): New variable.
3008 (info_auto_load_scripts): Rename to ...
3009 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3010 for struct collect_matching_scripts_data.
3011 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3012 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3013 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3014 (auto_load_info_cmdlist_get): New.
3015 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3016 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3017 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3018 "info auto-load local-gdbinit".
3019 * auto-load.h (struct script_language): New.
3020 (gdbpy_global_auto_load): Rename to ...
3021 (global_auto_load): ... here.
3022 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3023 (auto_load_local_gdbinit_loaded): New declarations.
3024 (maybe_add_script): New parameter language.
3025 (auto_load_objfile_script): Change parameter suffix to language.
3026 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3027 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3028 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3030 * linux-thread-db.c: Include auto-load.h and ctype.h.
3031 (auto_load_thread_db, show_auto_load_thread_db): New.
3032 (struct thread_db_info): New field filename.
3033 (delete_thread_db_info): Call xfree for FILENAME.
3034 (try_thread_db_load): Initialize FILENAME.
3035 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3036 if !AUTO_LOAD_THREAD_DB.
3037 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3038 (_initialize_thread_db): Install auto_load_thread_db
3039 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3040 as "info auto-load libthread-db".
3041 * main.c (captured_main): Rename gdbpy_global_auto_load to
3042 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3043 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3044 (print_gdb_help): Extend the help for 'local init file'.
3045 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3046 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3047 (auto_load_scripts): Rename to ...
3048 (auto_load_python_scripts): ... here, update the comment.
3049 (gdbpy_load_auto_script_for_objfile): New declaration.
3050 (show_auto_load_python_scripts, script_language_python)
3051 (gdbpy_load_auto_script_for_objfile): New.
3052 (source_section_scripts): Refactor the code.
3053 (load_auto_scripts_for_objfile): Rename to ...
3054 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3055 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3056 (info_auto_load_python_scripts): New.
3057 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3058 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3059 Register "set auto-load-scripts" as its deprecated alias. Register
3060 "info auto-load python-scripts". Register "info auto-load-scripts" as
3061 its deprecated alias.
3062 (load_auto_scripts_for_objfile): Rename to ...
3063 (gdbpy_load_auto_scripts_for_objfile): ... here.
3064 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3065 (gdbpy_load_auto_scripts_for_objfile): ... here.
3067 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3069 auto-load: Move files.
3070 * Makefile.in (SFILES): Add auto-load.c.
3071 (HFILES_NO_SRCDIR): Add auto-load.h.
3072 (COMMON_OBS): Add auto-load.o.
3073 (distclean): Change .gdbinit for gdb-gdb.gdb.
3074 * auto-load.c: New file, with parts from python/py-auto-load.c.
3075 * auto-load.h: New file, with parts from python/python.h.
3076 * configure: Regenerate.
3077 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3078 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3079 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3080 * main.c: Include auto-load.h.
3081 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3082 command.h, observer.h and progspace.h to auto-load.c. Add include
3084 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3085 (struct loaded_script, auto_load_pspace_data)
3086 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3087 (hash_loaded_script_entry, eq_loaded_script_entry)
3088 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3089 (maybe_add_script): Move to auto-load.c.
3090 (source_section_scripts): Change maybe_add_script parameters passing,
3091 use script_not_found_warning_print.
3092 (clear_section_scripts, auto_load_objfile_script)
3093 (auto_load_new_objfile, loaded_script_ptr)
3094 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3095 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3096 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3097 auto_load_new_objfile and info_auto_load_scripts initizations to
3099 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3101 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3104 * charset.c (find_charset_names): Remove variables ix and elt.
3105 Use free_char_ptr_vec.
3106 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3107 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3108 debugdir_end. New variable debugdir_len.
3109 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3110 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3112 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3113 and elt. Use free_char_ptr_vec.
3114 * source.c (add_path): Remove variables argv, arg and argv_index.
3115 New variables dir_vec, back_to, ix and name.
3116 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3117 make_cleanup_freeargv. Remove variable separator. Simplify the code
3118 no longer expecting DIRNAME_SEPARATOR.
3119 (openp): Remove variable p, p1 and len. New variables dir_vec,
3120 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3121 no longer expecting DIRNAME_SEPARATOR.
3122 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3123 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3125 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3126 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3127 (dirnames_to_char_ptr_vec): New functions.
3129 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3132 * source.c (add_path): Remove always true conditional 'p == 0' and
3133 unindent its code block.
3135 2012-04-17 Pedro Alves <palves@redhat.com>
3137 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3138 (FIELD_BITPOS_LVAL): ... this.
3139 (FIELD_BITPOS): New.
3140 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3141 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3142 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3144 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3146 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3147 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3148 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3151 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3153 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3154 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3155 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3156 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3157 * jv-lang.c (java_link_class_type): Likewise, once.
3158 * stabsread.c (read_enum_type): Likewise.
3160 2012-04-16 Yao Qi <yao@codesourcery.com>
3162 * common/agent.c (agent_run_command): Add one more parameter `len'.
3164 * common/agent.h: Update declaration.
3165 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3167 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3169 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3172 * value.c (value_actual_type): New function.
3173 * value.h (value_actual_type): New declaration.
3174 * varobj.c (update_type_if_necessary): New function.
3175 (varobj_create): Call value_actual_type instead of
3177 (install_dynamic_child): distinct changed and type changed MI variable
3179 (update_dynamic_varobj_children): Updated for install_dynamic_child
3180 change. All callers updated.
3181 (varobj_update): Support for MI variable object type change if
3182 the value changed and RTTI is used to determine the type.
3183 (create_child_with_value): Call value_actual_type instead of
3185 (adjust_value_for_child_access): Extended with a new parameter which
3186 specify whether the given value should be casted to enclosing type.
3187 All callers updated.
3189 2012-04-14 Yao Qi <yao@codesourcery.com>
3191 Import gnulib module inttypes from git
3192 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3193 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3194 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3195 gnulib/m4/inttypes-pri.m4
3196 * aclocal.m4, config.in, configure: Regenerated.
3197 * gnulib/Makefile.am: Update.
3198 * gnulib/Makefile.in: Update.
3199 * gnulib/m4/gnulib-cache.m4: Update.
3200 * gnulib/m4/gnulib-comp.m4: Update.
3201 * gnulib/inttypes.in.h: New.
3202 * gnulib/m4/inttypes-pri.m4: New.
3203 * gnulib/m4/inttypes.m4: New.
3205 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
3207 * infrun.c (resume): Update PC address to the real PC after
3208 preparing to do displaced stepping.
3210 2012-04-12 Doug Evans <dje@google.com>
3212 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3213 All callers updated.
3215 2012-04-12 Mark Kettenis <kettenis@gnu.org>
3217 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3219 2012-04-12 Doug Evans <dje@google.com>
3221 * dwarf2read.c (create_all_type_units): Renamed from
3222 create_debug_types_hash_table. All callers updated.
3224 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3225 local type_sig to sig_type, type_offset to type_offset_in_tu.
3226 (hash_signatured_type): Renamed from hash_type_signature,
3227 all callers updated.
3228 (eq_signatured_type): Renamed from eq_type_signature,
3229 all callers updated.
3230 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3231 (process_enumeration_scope): Ditto.
3232 (lookup_signatured_type_at_offset): Ditto.
3233 (load_full_type_unit, read_signatured_type): Ditto.
3235 2012-04-12 Yao Qi <yao@codesourcery.com>
3237 * remote.c (async_remote_interrupt): Correct function name in
3239 (async_remote_interrupt_twice): Ditto.
3241 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3243 * source.c (find_and_open_source): Consistently pass resulting
3244 full path through xfullpath.
3246 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3248 Provide more specific displaced-stepping memory error message.
3249 * infrun.c (displaced_step_prepare): New variable status. Call
3250 target_read_memory instead of read_memory, provide more specific
3253 2012-04-11 Tristan Gingold <gingold@adacore.com>
3256 * darwin-nat.c (darwin_execvp): Revert previous patch.
3258 2012-04-11 Tristan Gingold <gingold@adacore.com>
3261 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3264 2012-04-11 Tristan Gingold <gingold@adacore.com>
3266 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3269 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3271 New command 'explore' which helps explore values and types in
3273 * NEWS: Add an entry about the new 'explore' command.
3274 * data-directory/Makefile.in: Add gdb/command/explore.py
3275 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3276 command using the GDB Python API.
3278 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3280 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3281 extension in jump target calculation.
3283 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3285 * mips-tdep.c (mips32_next_pc): Handle JALX.
3287 2012-04-10 Yao Qi <yao@codesourcery.com>
3289 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3291 2012-04-10 Yao Qi <yao@codesourcery.com>
3293 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3294 and gnulib/m4/gnulib-tool.m4.
3296 2012-04-10 Doug Evans <dje@google.com>
3298 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3299 (load_partial_dies): Clarify comment.
3300 (find_partial_die): Support rereading type units.
3301 Clarify CU handling, if we know offset is in CU, don't search for the
3302 containing CU. Add comment regarding memory waste.
3304 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3306 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3307 i386/x32-avx and i386/x32-avx-linux.
3308 (i386/x32-expedite): New.
3309 (i386/x32-linux-expedite): Likewise.
3310 (i386/x32-avx-expedite): Likewise.
3311 (i386/x32-avx-linux-expedite): Likewise.
3312 ($(outdir)/i386/x32.dat): Likewise.
3313 ($(outdir)/i386/x32-linux.dat): Likewise.
3314 ($(outdir)/i386/x32-avx.dat): Likewise.
3315 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3317 * features/i386/x32-avx-linux.xml: New file.
3318 * features/i386/x32-avx.xml: Likewise.
3319 * features/i386/x32-core.xml: Likewise.
3320 * features/i386/x32-linux.xml: Likewise.
3321 * features/i386/x32.xml: Likewise.
3323 * features/i386/x32-avx-linux.c: New. Generated.
3324 * features/i386/x32-avx.c: Likewise.
3325 * features/i386/x32-linux.c: Likewise.
3326 * features/i386/x32.c: Likewise.
3327 * regformats/i386/x32-avx-linux.dat: Likewise.
3328 * regformats/i386/x32-avx.dat: Likewise.
3329 * regformats/i386/x32-linux.dat: Likewise.
3330 * regformats/i386/x32.dat: Likewise.
3332 2012-04-10 Tristan Gingold <gingold@adacore.com>
3334 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3335 code to kill the inferior.
3337 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3339 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3341 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3343 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3344 (yyvsp): New defines.
3345 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3347 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3349 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3351 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3353 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3356 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3358 * sparc64-tdep.c (sparc64_store_arguments)
3359 (sparc64_store_arguments): Fix coding style.
3361 2012-04-07 Mark Kettenis <kettenis@gnu.org>
3363 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3364 complex floats, adjust some related comments and tighten a related
3366 (sparc64_extract_return_value): Handle complex floats.
3368 2012-04-07 Doug Evans <dje@google.com>
3370 * dwarf2read.c (load_partial_dies): Change condition to assert.
3372 2012-04-06 Doug Evans <dje@google.com>
3374 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3377 2012-04-05 Kevin Buettner <kevinb@redhat.com>
3379 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3381 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3382 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3385 2012-04-05 Keith Seitz <keiths@redhat.com>
3387 * linespec.c (decode_compound): Remove.
3388 (enum offset_relative_sign): New enum.
3389 (struct line_offset): New struct.
3390 (struct linespec): New struct.
3391 (struct linespec_state): Move file_symtabs,
3392 user_filename, and user_function into struct linespec.
3393 Make result an anonymous struct holding vectors of
3394 symbolp and minsym_and_objfile_d.
3395 Add language member.
3396 (enum ls_token_type): New enum.
3397 (linespec_keywords): New array.
3398 (struct ls_token): New struct.
3399 (struct ls_parser): New struct.
3400 (linespec_lexer_lex_number): New function.
3401 (linespec_lexer_lex_keyword): New function.
3402 (is_ada_operator): New function.
3403 (skip_quote_char): New function.
3404 (copy_token_string): New function.
3405 (is_closing_quote_enclosed): New function.
3406 (find_parameter_list_end): New function.
3407 (linespec_lexer_lex_string): New function.
3408 (linespec_lexer_lex_one): New function.
3409 (linespec_lexer_consume_token): New function.
3410 (linespec_lexer_peek_token): New function.
3411 (cplusplus_error): Remove unused function.
3412 (find_methods): Update comment.
3413 (find_toplevel_char): Return const.
3414 (is_objc_method_format): Remove unused function.
3415 (find_toplevel_string): New function.
3416 (is_linespec_boundary): Remove.
3417 (symbol_not_found_error): New function.
3418 (find_method_overload_end): Remove function.
3419 (unexpected_linespec_error): New function.
3420 (keep_name_info): Remove.
3421 (linespec_parse_line_offset): New function.
3422 (linespec_parse_basic): New function.
3423 (canonicalize_linespec): New function.
3424 (decode_line_internal): Remove.
3425 (create_sals_line_offset): New function adapted from
3427 (convert_linespec_to_sals): New function.
3428 (parse_linespec): New function.
3429 (linespec_parser_new): New function.
3430 (linespec_state_destructor): Change parameter type to
3431 struct linespec_state *.
3432 Add language parameter.
3433 Remove freeing of moved members.
3434 (linespec_parser_delete): New function.
3435 (decode_line_full): Use parse_linespec and linespec_parser_new.
3436 (decode_line_1): Likewise.
3437 (decode_indirect): Rename to ...
3438 (linespec_expression_to_pc): ... this and rewrite
3439 to simply find CORE_ADDR, storing this result for later
3441 (locate_first_half): Remove.
3442 (deocde_objc): Add parameter LS.
3443 Initialize new struct collect_info members.
3444 Handle minimal symbols, too.
3445 (decode_compound): Delete.
3446 (lookup_prefix_sym): Rewrite.
3447 (compare_msymbols): New function.
3448 (find_method): Rewrite.
3449 Do not call cplusplus_error.
3450 (symtabs_from_filename): Rewrite.
3451 (collect_function_symbols): Delete.
3452 (find_function_symbols): Rewrite without ARGPTR-style
3454 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3455 (decode_dollar): Adapted and renamed to ...
3456 (linespec_parse_variable): ... this.
3457 (find_linespec_symbols): New function.
3458 (decode_label): Adapted and renamed to ...
3459 (find_label_symbols): ... this.
3460 (decode_digits_list_mode): Add and use LS argument.
3461 (decode_digits_ordinary): Likewise.
3462 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3463 If in list mode, allow any symbol class. Otherwise, only
3464 permit LOC_BLOCK symbols.
3465 (minsym_found): Update comments.
3466 (search_minsyms_for_name): Do not convert the matching symbol
3467 into a SAL. Simply push the symbol and objfile into the
3469 (decode_variable): Delete. Contents adapted into
3470 find_linespec_symbols.
3472 * cp-support.c (SKIP_SPACE): Remove.
3473 (operator_tokens): Remove unused global.
3474 (cp_validate_operator): Remove.
3475 * cp-support.h (cp_validate_operator): Remove declaration.
3477 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3479 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3480 for TYPE_VPTR_FIELDNO.
3481 * valprint.c (valprint_check_validity): Make it global, move the
3482 function comment ...
3483 * value.h (valprint_check_validity): ... to this new declaration.
3485 2012-04-02 Tristan Gingold <gingold@adacore.com>
3487 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3488 the STATE32 api for i386 state.
3489 (i386_darwin_store_inferior_registers): Likewise.
3491 2012-04-02 Tristan Gingold <gingold@adacore.com>
3493 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3495 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3498 2012-04-02 Tristan Gingold <gingold@adacore.com>
3501 * darwin-nat.c (darwin_execvp): Set binary preference.
3503 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3505 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3507 2012-03-30 Tom Tromey <tromey@redhat.com>
3509 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3510 of TRY_CATCH. Fix error handling.
3511 * python/py-value.c (convert_value_from_python): Move 'old'
3512 declaration to innermost scope.
3514 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3515 Andrey Smirnov <andrew.smirnov@gmail.com>
3517 -Wshadow warning fix.
3518 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3519 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3520 Adjust code accordingly.
3522 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3524 * ada-lang.c (symbol_completion_add): Rename parameter
3525 "encoded" into "encoded_p". Ajust code and documentation
3528 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3529 Andrey Smirnov <andrew.smirnov@gmail.com>
3531 -Wshadow warning fix.
3532 * ada-lang.c (symbol_completion_add): Rename parameter
3533 "wild_match" into wild_match_p. Update code and documentation
3536 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3538 * ada-lang.c (symbol_completion_match): Rename parameter
3539 "encoded" into "encoded_p". Ajust code and documentation
3542 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3543 Andrey Smirnov <andrew.smirnov@gmail.com>
3545 -Wshadow warning fix.
3546 * ada-lang.c (symbol_completion_match): Rename parameter
3547 "wild_match" into "wild_match_p". Adjust code and function
3548 documentation accordingly.
3550 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3551 Andrey Smirnov <andrew.smirnov@gmail.com>
3553 -Wshadow warning fix.
3554 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3555 "symbol_info" into "info". Adjust code accordingly.
3556 (ada_lookup_symbol): Likewise.
3558 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3560 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3561 of this function's documentation.
3563 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3564 Andrey Smirnov <andrew.smirnov@gmail.com>
3566 -Wshadow warning fix.
3567 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3568 variable into "wild_match_p". Adjust code accordingly.
3570 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3571 Andrey Smirnov <andrew.smirnov@gmail.com>
3573 -Wshadow warning fix.
3574 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3575 parameter into "wild_match_p". Adjust code accordingly.
3576 Document this parameter in the function description.
3578 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3579 Andrey Smirnov <andrew.smirnov@gmail.com>
3581 -Wshadow warning fix.
3582 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
3583 "wild_match" parameter to "wild_match_p" (-Wshadow).
3585 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3587 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
3588 in function documentation.
3590 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3591 Andrey Smirnov <andrew.smirnov@gmail.com>
3593 -Wshadow warning fix.
3594 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
3595 variable into wild_match_p. Adjust code accordingly.
3597 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3598 Andrey Smirnov <andrew.smirnov@gmail.com>
3600 * ada-valprint.c (ada_val_print_1): Move the code handling
3601 TYPE_CODE_ENUM inside its own lexical block. Declare
3602 variables len and val there, instead of in the function's
3603 top level block. Avoid declaring deref_val again in a way
3604 that shadows another variable of the same name declared
3605 in one of the up-level blocks. Just re-use the up-level
3608 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3610 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
3611 Replace block_found argument by symbol_info. Adjust
3612 implementation accordingly. Add function documentation.
3613 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
3615 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
3616 * ada-exp.y (write_object_renaming): Adjust to new
3617 ada_lookup_encoded_symbol API.
3619 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3621 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
3624 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
3626 * v850-tdep.c: Add the enum values for mpu and fpu registers.
3627 (v850_register_name): Add the mpu and fpu register names.
3628 (v850e_register_name): Add the mpu and fpu register names.
3629 (v850e2_register_name): New function.
3630 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
3633 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3635 * NEWS: Add entry for Ada varobj support.
3637 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3639 * varobj.c (default_value_is_changeable_p): New function,
3640 extracted from varobj_value_is_changeable_p. Add declaration.
3641 (ada_value_is_changeable_p): New function, extracted from
3642 varobj_value_is_changeable_p. Add declaration.
3643 (struct language_specific): New field "value_is_changeable_p".
3644 (languages): Add entries for new field.
3645 (varobj_create): Set language before calling install_new_value.
3646 (varobj_value_is_changeable_p): Reimplement to call the varobj's
3647 "value_is_changeable_p" language callback.
3649 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3651 * ada-varobj.h, ada-varobj.c: New files.
3652 * Makefile.in (SFILES): Add ada-varobj.c.
3653 (HFILES_NO_SRCDIR): Add ada-varobj.h.
3654 (COMMON_OBS): Add ada-varobj.o.
3656 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3658 * varobj.c (ada_value_has_mutated): Add declaration. New function.
3659 (struct language_specific): New field "value_has_mutated".
3660 (languages): Set field "value_has_mutated" in each entry of array.
3661 (varobj_value_has_mutated): New function.
3662 (varobj_udpdate): Add handling of type mutation.
3663 (value_of_root): Add handling of type mutation.
3664 (ada_value_has_mutated): New function.
3666 2012-03-28 Pedro Alves <palves@redhat.com>
3668 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
3669 Always supply $fr0 as 0.0 and $fr1 as 1.0.
3671 2012-03-28 Tom Tromey <tromey@redhat.com>
3673 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
3674 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
3677 2012-03-28 Tom Tromey <tromey@redhat.com>
3679 * .dir-locals.el: New file.
3681 2012-03-28 Pedro Alves <palves@redhat.com>
3683 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
3685 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3687 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
3690 2012-03-27 Pedro Alves <palves@redhat.com>
3692 Eliminate struct ui_stream.
3694 * ui-out.h (struct ui_stream): Delete.
3695 (ui_out_field_stream): Adjust prototype.
3696 (ui_out_stream_new, ui_out_stream_delete)
3697 (make_cleanup_ui_out_stream_delete): Delete declarations.
3698 * ui-out.c (ui_out_field_stream): Change prototype to take a
3699 ui_file instead of a ui_stream. Adjust.
3700 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
3701 (make_cleanup_ui_out_stream_delete): Delete.
3702 * breakpoint.c (print_breakpoint_location)
3703 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
3704 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3705 * disasm.c (dump_insns): Ditto.
3706 (do_mixed_source_and_assembly, do_assembly_only): Adjust
3708 (gdb_disassembly): Use ui_file/mem_fileopen instead of
3709 ui_stream/ui_out_stream_new.
3710 * infcmd.c (print_return_value): Ditto.
3711 * osdata.c (info_osdata_command): Don't allocate a local
3713 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
3714 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3715 * tracepoint.c (print_one_static_tracepoint_marker): Don't
3716 allocate a local ui_stream.
3717 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
3718 instead of ui_stream/ui_out_stream_new.
3719 (list_args_or_locals): Don't allocate a local ui_stream.
3720 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
3721 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
3722 ui_stream/ui_out_stream_new.
3723 * cli/cli-setshow.c (do_setshow_command): Ditto.
3725 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
3727 * arm-linux-tdep.c (arm_linux_init_abi): Call
3728 set_gdbarch_process_record. Initialize `arm_swi_record' field.
3729 * arm-tdep.c (arm_process_record): New function.
3730 (deallocate_reg_mem): New function.
3731 (decode_insn): New function.
3732 (thumb_record_branch): New function.
3733 (thumb_record_ldm_stm_swi(): New function.
3734 (thumb_record_misc): New function.
3735 (thumb_record_ld_st_stack): New function.
3736 (thumb_record_ld_st_imm_offset): New function.
3737 (thumb_record_ld_st_reg_offset(): New function.
3738 (thumb_record_add_sub_cmp_mov): New function.
3739 (thumb_record_shift_add_sub): New function.
3740 (arm_record_coproc_data_proc): New function.
3741 (arm_record_coproc): New function.
3742 (arm_record_b_bl): New function.
3743 (arm_record_ld_st_multiple): New function.
3744 (arm_record_ld_st_reg_offset): New function.
3745 (arm_record_ld_st_imm_offset): New function.
3746 (arm_record_data_proc_imm): New function.
3747 (arm_record_data_proc_misc_ld_str): New function.
3748 (arm_record_extension_space): New function.
3749 (arm_record_strx): New function.
3750 (sbo_sbz): New function.
3751 (struct insn_decode_record): New structure for arm insn record.
3752 (REG_ALLOC): New macro for reg allocations.
3753 (MEM_ALLOC): New macro for memory allocations.
3754 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
3756 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
3758 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
3759 (store_register): Likewise.
3761 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3763 * MAINTAINERS (Write After Approval): Add myself to the list.
3765 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3767 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
3768 Describe also the option "auto".
3770 2012-03-22 Richard Henderson <rth@redhat.com>
3772 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
3773 * sparc-nat.c (sparc_xfer_wcookie): Make static.
3775 2012-03-22 Richard Henderson <rth@redhat.com>
3777 * jit.c (jit_read_code_entry): Compute alignment and offset of
3778 int64_t member before computing entry_size.
3780 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3782 Python scripting: Add new method Value.referenced_value to
3783 gdb.Value which can dereference pointer as well as reference
3785 * NEWS: Add entry under 'Python scripting' about the new method
3786 Value.referenced_value on gdb.Value objects.
3787 * python/py-value.c (valpy_referenced_value): New function
3788 defining a new method on gdb.Value objects which can dereference
3789 pointer and reference values.
3791 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3793 * MAINTAINERS (Write After Approval): Add myself to the list.
3795 2012-03-21 Kevin Buettner <kevinb@redhat.com>
3797 * symtab.c (skip_prologue_sal): Change test to check for "main()"
3798 in addition to "main".
3800 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3802 * expression.h (op_name): Add declaration.
3803 * expprint.c (op_name): Remove declaration. Make non-static.
3804 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
3806 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
3808 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
3810 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
3811 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3812 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
3813 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
3814 (linux_nat_get_siginfo): Likewise.
3815 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
3816 (linux_nat_get_siginfo): Likewise.
3817 * linux-tdep.c (linux_get_siginfo_type): Likewise.
3818 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
3819 * procfs.c (gdb_siginfo_t): Likewise.
3821 2012-03-21 Mike Frysinger <vapier@gentoo.org>
3823 * .gitignore: Ignore more files.
3825 2012-03-20 Pedro Alves <palves@redhat.com>
3827 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
3830 2012-03-20 Yao Qi <yao@codesourcery.com>
3832 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
3835 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3837 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
3838 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
3839 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
3841 * dwarf2expr.h (cu_offset, sect_offset): New types.
3842 (struct dwarf_expr_context_funcs) <dwarf_call>
3843 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
3845 (struct dwarf_expr_context) <len>: Improve the comment.
3846 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
3847 cu_offset and sect_offset.
3848 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
3849 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
3850 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
3851 * dwarf2loc.h: Include dwarf2expr.h.
3852 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
3854 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
3855 Improve the comment.
3856 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
3857 (struct signatured_type, struct line_header, struct partial_die_info)
3858 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
3859 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
3860 (get_die_type_at_offset, create_cus_from_index)
3861 (create_signatured_type_table_from_index, dw2_get_file_names)
3862 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
3863 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
3864 (create_debug_types_hash_table, process_psymtab_comp_unit)
3865 (load_partial_comp_unit, create_all_comp_units)
3866 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
3867 (load_full_comp_unit, dwarf2_physname, read_import_statement)
3868 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
3869 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
3870 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
3871 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
3872 (find_partial_die, read_attribute_value, lookup_die_type)
3873 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
3874 (is_ref_attr): New function comment.
3875 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
3876 Use cu_offset and sect_offset.
3877 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
3878 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
3879 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
3880 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
3881 (offset_and_type_hash, offset_and_type_eq, set_die_type)
3882 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
3883 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
3886 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3889 * python/py-auto-load.c (source_section_scripts): New variable back_to.
3890 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
3892 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
3894 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3896 * NEWS: Describe new options --init-command=FILE, -ix and
3897 --init-eval-command=COMMAND, -iex.
3898 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
3899 CMDARG_INIT_COMMAND.
3900 (captured_main): New enum items OPT_IX and OPT_IEX. Add
3901 "init-command", "init-eval-command", "ix" and "iex" to the variable
3902 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
3903 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
3904 (print_gdb_help): Describe --init-command=FILE, -ix and
3905 --init-eval-command=COMMAND, -iex.
3907 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3910 * main.c (struct cmdarg): Move it here from main. Add more comments.
3911 (cmdarg_s, VEC (cmdarg_s)): New.
3912 (main): Move struct cmdarg from here. New variables cmdarg_vec and
3913 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
3914 Install cleanup for cmdarg_vec. Update filling for options 'x' and
3915 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
3918 2012-03-19 Tom Tromey <tromey@redhat.com>
3920 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
3922 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3925 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
3928 2012-03-16 Chris January <chris.january@allinea.com>
3930 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
3933 2012-03-16 Chris January <chris.january@allinea.com>
3935 * source.c (add_path): Use memmove instead of strcpy because the
3938 2012-03-16 Joel Brobecker <brobecker@adacore.com>
3940 * value.h (set_value_parent): Add declaration.
3941 * value.c (set_value_parent): New function.
3942 (value_address): If VALUE->PARENT is not NULL, then use it as
3943 the base address instead of VALUE->LOCATION.address.
3944 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
3945 the same as OBJ's address. Adjust V's offset accordingly.
3948 2012-03-16 Gary Benson <gbenson@redhat.com>
3950 PR breakpoints/10738
3951 * dwarf2read.c (use_deprecated_index_sections): New global.
3952 (struct partial_die_info): New member may_be_inlined.
3953 (read_partial_die): Set may_be_inlined where appropriate.
3954 (add_partial_subprogram): Add partial symbols for partial
3955 DIEs that may be inlined.
3956 (new_symbol_full): Add inlined subroutines to the current
3958 (write_psymtabs_to_index): Bump version number.
3959 (dwarf2_read_index): Read only version 6 indices unless
3960 use_deprecated_index_sections is set.
3961 * linespec.c (symbol_and_data_callback): New structure.
3962 (iterate_inline_only): New function.
3963 (iterate_over_all_matching_symtabs): New argument
3964 "include_inline". If nonzero, also call the callback for
3965 symbols representing inlined subroutines.
3966 (lookup_prefix_sym): Pass extra argument to the above.
3967 (find_function_symbols): Likewise.
3968 (add_matching_symbols_to_info): Likewise.
3969 * NEWS: Mention that GDB can now set breakpoints on inlined
3972 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3974 * p-typeprint.c (pascal_type_print_method_args):
3975 Fix display of parameter of methods.
3977 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3979 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
3980 Add missing prototype.
3982 2012-03-16 Yao Qi <yao@codesourcery.com>
3983 Jan Kratochvil <jan.kratochvil@redhat.com>
3985 Fix false compilation warning.
3986 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
3988 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
3989 Pedro Alves <pedro@codesourcery.com>
3991 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
3992 (arm_register_g_packet_guesses): New function.
3993 (arm_gdbarch_init): Don't force a target description with
3994 registers when the executable is detected as M-profile. Instead
3995 set gdbarch->tdep->is_m. Register `g' packet guesses.
3996 (_initialize_arm_tdep): Initialize the new target description.
3997 * features/arm-with-m-fpa-layout.xml: New description.
3998 * features/arm-with-m-fpa-layout.c: New, generated.
4000 2012-03-15 Joel Brobecker <brobecker@adacore.com>
4002 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4003 Update function description.
4004 (insert_bp_location): Do not wipe bl->target_info out.
4005 * mem-break.c: #include "gdb_string.h".
4006 (default_memory_insert_breakpoint): Do not call target_read_memory
4007 with a pointer to the breakpoint's shadow_contents buffer. Use
4008 a local buffer instead.
4009 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4011 2012-03-15 Tom Tromey <tromey@redhat.com>
4013 * NEWS: Mention "info vtbl", not "info vtable".
4014 * cp-support.c (info_vtbl_command): Fix comment.
4015 (_initialize_cp_support): Fix text.
4017 2012-03-15 Tom Tromey <tromey@redhat.com>
4019 * cp-valprint.c (cp_print_value_fields): Use
4020 print_function_pointer_address for vtable slot.
4022 2012-03-15 Tom Tromey <tromey@redhat.com>
4024 * gnu-v3-abi.c (struct value_and_voffset): New.
4025 (hash_value_and_voffset, eq_value_and_voffset)
4026 (compare_value_and_voffset, compute_vtable_size)
4027 (print_one_vtable, gnuv3_print_vtable): New functions.
4028 (init_gnuv3_ops): Initialize 'print_vtable' field.
4029 * cp-support.c (info_vtbl_command): New function.
4030 (_initialize_cp_support): Add "info vtbl".
4031 * cp-abi.h (cplus_print_vtable): Declare.
4032 (struct cp_abi_ops) <print_vtable>: New field.
4033 * cp-abi.c (cplus_print_vtable): New function.
4036 2012-03-15 Tom Tromey <tromey@redhat.com>
4038 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4039 iterate_over_symbols.
4041 2012-03-14 Doug Evans <dje@google.com>
4043 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4044 DW_OP_GNU_parameter_ref.
4046 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4048 Fix double prompt of 'interpreter-exec mi'.
4049 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4050 (mi_interpreter_resume): use it.
4051 (mi_execute_command_input_handler): New function.
4052 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4053 mi_execute_command_input_handler.
4055 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
4057 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4059 (darwin_debug_port_info): Make static.
4060 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4061 * machoread.c (_initialize_machoread): Add prototype.
4062 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4063 (i386_darwin_set_control, i386_darwin_get_control)
4064 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4065 i386_darwin_get_status, i386_darwin_get_control):
4066 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4068 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4070 * ax-gdb.c (gen_usual_unary): Remove special handling of
4071 enum and bool types.
4073 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4075 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4077 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4079 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4081 2012-03-13 Chris January <chris.january@allinea.com>
4083 * aix-thread.c (fill_sprs): Store the floating point registers
4084 at the correct offsets into vals.
4086 2012-03-13 Doug Evans <dje@google.com>
4088 * NEWS: Mention symbol-reloading has been deleted.
4089 * symfile.c (symbol_reloading): Delete.
4090 (show_symbol_reloading): Delete.
4091 (_initialize_symfile): Delete set/show symbol-reloading.
4093 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4094 read_in_chain until we have successfully read it in.
4095 (load_full_comp_unit): Ditto.
4096 (read_signatured_type): Add comment.
4098 2012-03-13 Chris January <chris.january@allinea.com>
4100 * stabsread.c (fix_common_block): Change type of valu argument
4103 2012-03-13 Chris January <chris.january@allinea.com>
4105 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4108 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4110 * common/linux-procfs.c (linux_proc_get_int): New, from
4111 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4113 (linux_proc_get_tgid): Only call linux_proc_get_int.
4114 (linux_proc_get_tracerpid): New.
4115 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4116 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4117 linux_proc_pid_has_state.
4118 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4119 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4120 (linux_ptrace_attach_warnings): New.
4121 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4123 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4124 (linux_nat_attach): New variables ex, buffer, message and message_s.
4125 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4127 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4129 * Makefile.in (linux-ptrace.o): New.
4130 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4132 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4133 * common/linux-ptrace.c: New file.
4134 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4135 * config/arm/linux.mh: Likewise.
4136 * config/i386/linux.mh: Likewise.
4137 * config/i386/linux64.mh: Likewise.
4138 * config/ia64/linux.mh: Likewise.
4139 * config/m32r/linux.mh: Likewise.
4140 * config/m68k/linux.mh: Likewise.
4141 * config/mips/linux.mh: Likewise.
4142 * config/pa/linux.mh: Likewise.
4143 * config/powerpc/linux.mh: Likewise.
4144 * config/powerpc/ppc64-linux.mh: Likewise.
4145 * config/powerpc/spu-linux.mh: Likewise.
4146 * config/s390/s390.mh: Likewise.
4147 * config/sparc/linux.mh: Likewise.
4148 * config/sparc/linux64.mh: Likewise.
4149 * config/xtensa/linux.mh: Likewise.
4150 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4151 common/linux-procfs.c.
4152 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4154 2012-03-13 Hui Zhu <teawater@gmail.com>
4155 Pedro Alves <palves@redhat.com>
4157 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4158 CREATE_BREAKPOINT_FLAGS_INSERTED.
4159 (create_breakpoint_sal, create_breakpoints_sal)
4160 (base_breakpoint_create_breakpoints_sal)
4161 (tracepoint_create_breakpoints_sal)
4162 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4164 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4165 (ftrace_command, strace_command): Adjust.
4166 (create_tracepoint_from_upload): Pass
4167 CREATE_BREAKPOINT_FLAGS_INSERTED.
4168 * breakpoint.h (enum breakpoint_create_flags): New.
4169 (create_breakpoint): New flags parameter.
4170 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4171 * python/py-breakpoint.c (bppy_init): Adjust.
4172 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4173 * spu-tdep.c (spu_catch_start): Adjust.
4175 2012-03-13 Pedro Alves <palves@redhat.com>
4176 Hui Zhu <teawater@gmail.com>
4177 Yao Qi <yao@codesourcery.com>
4179 * remote.c (struct remote_state): New field `starting_up'.
4180 (remote_start_remote): Set and clear it.
4181 (remote_can_download_tracepoint): If starting up, return false.
4183 2012-03-13 Yao Qi <yao@codesourcery.com>
4185 * inferior.h (struct inferior): Remove fields any_syscall_count,
4186 syscalls_counts and total_syscalls_count. Move them to new
4187 struct catch_syscall_inferior_data in breakpoint.c.
4188 * breakpoint.c: Call DEF_VEC_I(int).
4189 (struct catch_syscall_inferior_data): New.
4190 (get_catch_syscall_inferior_data): New.
4191 (catch_syscall_inferior_data_cleanup): New.
4192 (insert_catch_syscall): Update to access data in
4193 struct catch_syscall_inferior_data.
4194 (insert_catch_syscall): Likewise.
4195 (remove_catch_syscall): Likewise.
4196 (remove_catch_syscall): Likewise.
4197 (is_syscall_catchpoint_enabled): Likewise.
4198 (add_catch_command): Likewise.
4199 (_initialize_breakpoint): Register cleanup.
4200 * breakpoint.h: Removed DEF_VEC_I(int).
4201 * dwarf2loc.c: Call DEF_VEC_I(int).
4202 * mi/mi-main.c: Likewise.
4204 2012-03-12 Mark Kettenis <kettenis@gnu.org>
4206 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4208 2012-03-12 Chris January <chris.january@allinea.com>
4210 * aix-thread.c (_initialize_aix_thread): Add prototype.
4211 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4212 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4214 2012-03-12 Joel Brobecker <brobecker@adacore.com>
4216 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4217 include of "amd64-nat.h".
4219 2012-03-12 Tom Tromey <tromey@redhat.com>
4221 * buildsym.c (record_pending_block): Now static.
4222 * buildsym.h: (record_pending_block): Remove.
4224 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
4226 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4228 2012-03-09 Tom Tromey <tromey@redhat.com>
4230 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4231 producer_is_gxx_lt_4_6>: New fields.
4232 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4234 2012-03-09 Tom Tromey <tromey@redhat.com>
4236 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4238 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4240 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4243 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4245 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4247 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4249 Fix -Wmissing-prototypes build.
4250 * arm-linux-nat.c (get_thread_id): Make it static.
4251 * xtensa-linux-nat.c (get_thread_id): Likewise.
4253 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4255 * server.c (process_point_options): If a conditional expression
4256 is found, only print a message if remote_debug is nonzero.
4258 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
4260 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4261 of internal error for unknown/unsupported types.
4263 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4265 Fix CU relative vs. absolute DIE offsets.
4266 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4267 offset to offset_in_cu.
4268 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4270 (dwarf2_fetch_die_location_block): Rename parameter offset to
4271 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4273 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4275 * libunwind-frame.c: Rename to ...
4276 * ia64-libunwind-tdep.c: ... here.
4277 * libunwind-frame.h: Rename to ...
4278 * ia64-libunwind-tdep.h: ... here.
4279 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4280 ia64-libunwind-tdep.h.
4281 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4282 * README (--with-libunwind): Rename to ...
4283 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4284 * config.in: Regenerate.
4285 * configure: Regenerate.
4286 * configure.ac: New option --with-libunwind-ia64, make the
4287 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4288 Remove AC_DEFINE for HAVE_LIBUNWIND.
4289 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4290 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4291 Rename libunwind-frame in the general comment.
4292 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4293 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4294 Move forward declarations inside #ifndef. Rename libunwind-frame in
4295 the general comment.
4296 * ia64-tdep.c: Rename libunwind-frame.h #include to
4297 ia64-libunwind-tdep.h.
4298 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4299 (ia64_libunwind_descr): Rename libunwind-frame to
4300 ia64-libunwind-tdep in these function comments.
4301 * ia64-tdep.h: Rename libunwind-frame.h #include to
4302 ia64-libunwind-tdep.h.
4303 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4304 ia64-libunwind-tdep in that data comment.
4306 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4308 * libunwind-frame.h (struct frame_unwind): New declaration.
4310 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4312 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4313 "set breakpoint condition-evaluation" command.
4315 2012-03-08 Tristan Gingold <gingold@adacore.com>
4317 * sparc-stub.c: Move to stubs/
4318 * sh-stub.c: Likewise.
4319 * m68k-stub.c: Likewise.
4320 * m32r-stub.c: Likewise.
4321 * i386-stub.c: Likewise.
4323 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4325 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4326 linux_get_siginfo_type.
4328 * m68klinux-nat.c: Include "gdb_proc_service.h".
4329 (PTRACE_GET_THREAD_AREA): Define.
4330 (ps_get_thread_area): New function.
4332 2012-03-08 Yao Qi <yao@codesourcery.com>
4334 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4336 (remote_query_attached): Likewise.
4337 (remote_static_tracepoint_marker_at): Likewise.
4338 (remote_set_permissions): Likewise.
4339 (remote_detach_1, extended_remote_attach_1): Likewise.
4340 (send_g_packet, remote_vkill): Likewise.
4341 (extended_remote_disable_randomization): Likewise.
4342 (remote_add_target_side_condition): Likewise.
4343 (remote_insert_breakpoint): Likewise.
4344 (remote_remove_breakpoint): Likewise.
4345 (remote_insert_watchpoint): Likewise.
4346 (remote_remove_watchpoint): Likewise.
4347 (remote_insert_hw_breakpoint): Likewise.
4348 (remote_insert_hw_breakpoint): Likewise.
4349 (remote_remove_hw_breakpoint): Likewise.
4350 (remote_download_command_source): Likewise.
4351 (remote_download_tracepoint): Likewise.
4352 (remote_download_trace_state_variable): Likewise.
4353 (remote_disable_tracepoint): Likewise.
4354 (remote_trace_set_readonly_regions): Likewise.
4355 (remote_get_tracepoint_status): Likewise.
4356 (remote_trace_find): Likewise.
4357 (remote_get_trace_state_variable_value): Likewise.
4358 (remote_set_disconnected_tracing): Likewise.
4359 (remote_set_circular_trace_buffer): Likewise.
4360 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4361 (remote_use_agent): Likewise.
4362 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4365 2012-03-07 Pedro Alves <palves@redhat.com>
4367 * NEWS: Mention QProgramSignals.
4368 * inferior.h (update_signals_program_target): Declare.
4369 * infrun.c: (update_signals_program_target): New.
4370 (handle_command): Update the target of the new program signals
4372 * remote.c (PACKET_QProgramSignals): New enum.
4373 (last_program_signals_packet): New global.
4374 (remote_program_signals): New.
4375 (remote_start_remote): Update the target with the program signals
4377 (remote_protocol_features): Add entry for QPassSignals.
4378 (remote_open_1): Free anc clear last_program_signals_packet.
4379 (init_remote_ops): Install remote_program_signals.
4380 * target.c (update_current_target): Adjust.
4381 (target_program_signals): New.
4382 * target.h (struct target_ops) <to_program_signals>: New field.
4383 (target_program_signals): Declare.
4385 2012-03-07 Pedro Alves <palves@redhat.com>
4387 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4390 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4392 * m68klinux-nat.c (getregs_supplies): Make static.
4393 (getfpregs_supplies): Likewise.
4394 (have_ptrace_getregs): Likewise.
4396 2012-03-06 Joel Brobecker <brobecker@adacore.com>
4398 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4399 in call to get_die_type_at_offset.
4401 2012-03-06 Stan Shebs <stan@codesourcery.com>
4403 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4404 * mi/mi-cmd-disas.c: Ditto.
4405 * mi/mi-cmd-env.c: Ditto.
4406 * mi/mi-cmd-file.c: Ditto.
4407 * mi/mi-cmd-stack.c: Ditto.
4408 * mi/mi-cmd-target.c: Ditto.
4409 * mi/mi-cmd-var.c: Ditto.
4410 * mi/mi-cmds.c: Ditto.
4411 * mi/mi-cmds.h: Ditto.
4412 * mi/mi-console.c: Ditto.
4413 * mi/mi-getopt.c: Ditto.
4414 * mi/mi-getopt.h: Ditto.
4415 * mi/mi-interp.c: Ditto.
4416 * mi/mi-main.c: Ditto.
4417 * mi/mi-out.c: Ditto.
4418 * mi/mi-parse.c: Ditto.
4419 * mi/mi-parse.h: Ditto.
4420 * mi/mi-symbol-cmds.c: Ditto.
4422 * mi/mi-getopt.h: Move mi_opt struct up.
4423 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4425 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4427 2012-03-06 Tom Tromey <tromey@redhat.com>
4429 * proc-service.c (ps_pglobal_lookup): Set the current program
4432 2012-03-06 Pedro Alves <palves@redhat.com>
4434 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4436 2012-03-05 Joel Brobecker <brobecker@adacore.com>
4438 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4440 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4443 * common/linux-osdata.c (linux_common_core_of_thread): New function
4445 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4446 call by linux_common_core_of_thread.
4447 (linux_nat_core_of_thread_1): Remove.
4448 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4449 * linux-thread-db.c: Include linux-osdata.h.
4450 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4451 linux_common_core_of_thread.
4453 2012-03-05 Tom Tromey <tromey@redhat.com>
4455 * value.c (value_primitive_field): Don't fetch contents for
4458 2012-03-05 Tom Tromey <tromey@redhat.com>
4460 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4462 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
4464 * s390-nat.c: Include "gregset.h".
4466 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4468 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4469 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4470 (libunwind_load): New variable so_error, use it for dlerror. Try to
4471 load also LIBUNWIND_SO_7.
4473 2012-03-05 Pedro Alves <palves@redhat.com>
4475 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4476 is not NULL, and remove resulting dead code.
4478 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4480 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4481 prologue to sh_analyze_prologue.
4482 (sh_analyze_prologue): Make better use of such an upper limit, and
4483 generally be more cautious about accessing memory.
4485 2012-03-05 Tom Tromey <tromey@redhat.com>
4487 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4488 _initialize_ia64_hpux_tdep.
4490 2012-03-05 Pedro Alves <palves@redhat.com>
4494 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4495 the register state is clear, supply explicit zero, instead of
4496 marking the register unavailable.
4498 2012-03-05 Tristan Gingold <gingold@adacore.com>
4500 * NEWS: Mention OpenVMS ia64 new target.
4502 2012-03-05 Tristan Gingold <gingold@adacore.com>
4504 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4505 (ia64_unw_accessors, ia64_unw_rse_accessors)
4506 (ia64_libunwind_descr): Declare.
4507 * ia64-vms-tdep.c: New file.
4508 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4509 (ia64_libunwind_descr): Make them public.
4510 * configure.tgt: Add ia64-*-*vms*.
4511 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4512 (ALLDEPFILES): Add ia64-vms-tdep.c
4514 2012-03-05 Tristan Gingold <gingold@adacore.com>
4516 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4517 * remote.c (PACKET_qXfer_uib): New enum value.
4518 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4519 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4520 (_initialize_remote): Call add_packet_config_cmd for
4523 2012-03-05 Tristan Gingold <gingold@adacore.com>
4525 * osabi.c (gdb_osabi_names): Add OpenVMS.
4526 (generic_elf_osabi_sniffer): Likewise.
4527 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4529 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4531 Removed unused code.
4532 * libunwind-frame.c (libunwind_frame_unwind)
4533 (libunwind_frame_base_address): Remove.
4534 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4536 2012-03-04 Yao Qi <yao@codesourcery.com>
4538 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4539 remove trailing new line.
4540 (agent_run_command, agent_run_command): Add _ markup.
4541 (agent_capability_check): Likewise.
4543 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4545 * breakpoint.c (set_condition_evaluation_mode): Set
4546 CONDITION_EVALUATION_MODE unconditionally.
4548 2012-03-03 Yao Qi <yao@codesourcery.com>
4550 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4551 * common/agent.h: Update declaration.
4552 * inf-child.c (inf_child_use_agent): New.
4553 (inf_child_can_use_agent): New.
4554 (inf_child_target): Initialize fields `to_use_agent'
4555 and `to_can_use_agent'.
4556 * agent.c (agent_new_objfile): New.
4557 (_initialize_agent): Add agent_new_objfile to new_objfile
4560 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4562 (linux_target_install_ops): Initialize field
4563 `to_static_tracepoint_markers_by_strid'.
4564 * remote.c (free_current_marker): Move it to ...
4565 * tracepoint.c (free_current_marker): ... here. New.
4566 (cleanup_target_stop): New.
4567 * tracepoint.h: Declare free_current_marker.
4568 * NEWS: Add one entry about `info static-tracepoint-marker'.
4570 2012-03-03 Yao Qi <yao@codesourcery.com>
4572 * common/agent.c (agent_loaded_p): New.
4573 (agent_look_up_symbols): New global.
4574 * common/agent.h: Declare agent_loaded_p.
4576 2012-03-03 Yao Qi <yao@codesourcery.com>
4578 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
4579 (agent_capability_check, agent_capability_invalidate): New.
4580 (symbol_list): New array element.
4581 * common/agent.h (enum agent_capa): New.
4582 * target.c (target_pre_inferior): Call agent_capability_invalidate.
4584 2012-03-03 Yao Qi <yao@codesourcery.com>
4586 * target.h (struct target_ops) <to_use_agent>: New field.
4587 (struct target_ops) <to_can_use_agent>: New field.
4588 (target_use_agent, target_can_use_agent): New macro.
4589 * target.c (update_current_target): Update.
4590 * remote.c: New enum `PACKET_QAgent'.
4591 (remote_protocol_features): Add a new element.
4592 (remote_use_agent, remote_can_use_agent): New.
4593 (init_remote_ops): Initialize field `can_use_agent' with
4594 remote_can_use_agent. Intiailize field `use_agent' with
4596 * common/agent.c (use_agent): New global.
4597 * common/agent.h: Declare it.
4598 * tracepoint.c (info_static_tracepoint_markers_command): Add
4600 * Makefile.in (SFILES): Add common/agent.c and agent.c.
4601 (COMMON_OBS): Add common/agent.o and agent.o
4602 (common-agent.o): New rule.
4605 2012-03-03 Yao Qi <yao@codesourcery.com>
4607 * common/agent.c: New.
4608 * common/agent.h: New.
4609 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
4611 * configure, configh.in: Regenerated.
4613 2012-03-02 Kevin Buettner <kevinb@redhat.com>
4615 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
4616 unless it exists for this architecture.
4618 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4620 * language.h (struct language_defn): New "method" la_read_var_value.
4621 * findvar.c: #include "language.h".
4622 (default_read_var_value): Renames read_var_value. Rewrite
4623 function description.
4624 (read_var_value): New function.
4625 * value.h (default_read_var_value): Add prototype.
4626 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
4628 (ada_language_defn): Add entry for la_read_var_value.
4629 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
4630 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
4631 language_defn structures to add entry for new la_read_var_value
4634 2012-03-02 Tom Tromey <tromey@redhat.com>
4635 Pedro Alves <palves@redhat.com>
4637 PR breakpoints/13776:
4638 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
4640 (delete_longjmp_breakpoint_at_next_stop): New.
4641 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
4642 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
4643 before deleting the inferior. Add comments.
4644 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
4645 breakpoints immediately, but only on next stop. Move that code
4646 next to where we mark other breakpoints for deletion.
4648 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4650 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
4652 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
4655 2012-03-02 Pedro Alves <palves@redhat.com>
4657 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
4659 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4661 Fix -Wmissing-prototypes build.
4662 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
4663 * remote-sim.c (gdbsim_has_all_memory): Likewise.
4664 (gdbsim_has_memory): Likewise.
4666 2012-03-02 Yao Qi <yao@codesourcery.com>
4668 Fix -Wmissing-prototypes build.
4669 * charset.c (phony_iconv_open): Make static.
4670 (phony_iconv_close, phony_iconv): Likewise.
4671 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
4672 * i386-windows-nat.c (_initialize_i386_windows_nat): New
4674 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
4675 * ser-mingw.c (create_select_thread): Make static.
4676 * windows-termcap.c (tgetent): New prototype.
4677 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
4679 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
4681 Fix -Wmissing-prototypes build.
4682 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
4683 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
4684 (_initialize_loadable): New prototypes.
4686 2012-03-02 Doug Evans <dje@google.com>
4688 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
4689 abbrev table, read_comp_unit will do it.
4691 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4693 Fix -Wmissing-prototypes build.
4694 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
4695 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
4696 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
4697 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
4698 (_initialize_arm_symbian_tdep): New prototype.
4699 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
4700 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
4701 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
4703 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
4704 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
4706 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
4707 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
4708 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
4710 * moxie-tdep.c (moxie_process_record): Likewise.
4711 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
4712 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
4713 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
4714 (_initialize_rl78_tdep): New prototype.
4715 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
4716 (_initialize_rx_tdep): New prototype.
4717 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
4718 (_initialize_darwin_solib): New prototype.
4719 * solib-spu.c: Include solib-spu.h.
4720 (_initialize_spu_solib): New prototype.
4721 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
4722 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
4723 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
4724 (tic6x_software_single_step): Make it static.
4725 (_initialize_tic6x_tdep): New prototype.
4727 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4729 Fix -Wmissing-prototypes build.
4730 * cris-tdep.c (cris_can_use_hardware_watchpoint)
4731 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
4733 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4735 Fix -Wmissing-prototypes build.
4736 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
4737 (frv_have_stopped_data_address): Remove.
4739 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4741 Fix -Wmissing-prototypes build.
4742 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
4743 * sh-tdep.c: Include sh64-tdep.h.
4744 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
4745 * sh64-tdep.c: Include sh64-tdep.h.
4746 * sh64-tdep.h: New file.
4748 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4750 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
4752 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4754 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
4755 sp_regnum once the gdbarch_init_osabi hook has been called.
4757 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4759 * mips-tdep.c (mips32_bc1_pc): New function.
4760 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
4761 BPOSGE32 and BPOSGE64 instructions.
4762 (deal_with_atomic_sequence): Likewise.
4763 (mips32_instruction_has_delay_slot): Likewise.
4765 2012-03-01 Maciej W. Rozycki <macro@mips.com>
4766 Chris Dearman <chris@mips.com>
4767 Maciej W. Rozycki <macro@codesourcery.com>
4768 Joseph Myers <joseph@codesourcery.com>
4770 * features/mips-dsp.xml: New file.
4771 * features/mips64-dsp.xml: New file.
4772 * features/mips-dsp-linux.xml: New file.
4773 * features/mips64-dsp-linux.xml: New file.
4774 * features/Makefile (WHICH): Add mips-dsp-linux and
4776 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
4777 * features/mips-dsp-linux.c: New file.
4778 * features/mips64-dsp-linux.c: New file.
4779 * regformats/mips-dsp-linux.dat: New file.
4780 * regformats/mips64-dsp-linux.dat: New file.
4781 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
4783 (mips64_linux_register_addr): Likewise.
4784 (mips64_linux_regsets_fetch_registers): Likewise.
4785 (mips64_linux_regsets_store_registers): Likewise.
4786 (mips64_linux_fetch_registers): Update call to
4787 mips64_linux_regsets_fetch_registers.
4788 (mips64_linux_store_registers): Update call to
4789 mips64_linux_regsets_store_registers.
4790 (mips_linux_read_description): Probe for DSP registers.
4791 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
4792 and initialize_tdesc_mips64_dsp_linux.
4793 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
4794 Remove padding of no longer used embedded register slots.
4795 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
4796 (MIPS_RESTART_REGNUM): Redefine enum value.
4797 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
4799 (mips_tx39_reg_names): Likewise.
4800 (mips_linux_reg_names): New array of register names for Linux
4802 (mips_register_name): Check for a null pointer in
4803 mips_processor_reg_names and return an empty string.
4804 (mips_register_type): Exclude embedded registers for the IRIX
4806 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
4807 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
4809 (mips_stab_reg_to_regnum): Handle DSP accumulators.
4810 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
4811 (mips_gdbarch_init): Likewise. Initialize internal register
4812 indices for the Linux ABI. Use dynamic numbers to refer to
4813 registers, as applicable, while parsing the target description.
4814 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
4816 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4818 * frame.h (read_frame_register_unsigned): Fix typo in function
4821 2012-03-01 Pedro Alves <palves@redhat.com>
4823 * jit-reader.in [!__cplusplus]
4824 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
4826 2012-03-01 Pedro Alves <palves@redhat.com>
4828 * configure.ac (build_warnings): Add -Wmissing-prototypes.
4829 * configure: Regenerate.
4831 2012-03-01 Pedro Alves <palves@redhat.com>
4833 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
4834 * breakpoint.c (create_exception_master_breakpoint, trace_command)
4835 (ftrace_command, strace_command): Make static.
4836 * d-lang.c (_initialize_d_language): Declare.
4837 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
4838 * dwarf2loc.c (_initialize_dwarf2loc):
4839 * dwarf2read.c (process_psymtab_comp_unit): Make static.
4840 * exec.c (exec_get_section_table): Make static.
4841 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
4842 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
4843 * inferior.c (remove_inferior_command, add_inferior_command)
4844 (clone_inferior_command): Make static.
4845 * linux-nat.c (linux_nat_thread_address_space)
4846 (linux_nat_core_of_thread): Make static.
4847 * linux-tdep.c (_initialize_linux_tdep): Declare.
4848 * objc-lang.c (_initialize_objc_lang): Declare.
4849 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
4851 (_initialize_opencl_language): Declare.
4852 * record.c (_initialize_record): Declare.
4853 * remote.c (demand_private_info, remote_get_tib_address)
4854 (remote_supports_cond_tracepoints)
4855 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
4857 * skip.c (_initialize_step_skip): Declare.
4858 * symtab.c (skip_prologue_using_lineinfo): Make static.
4859 * tracepoint.c (delete_trace_state_variable)
4860 (trace_variable_command, delete_trace_variable_command)
4861 (get_uploaded_tsv, find_matching_tracepoint_location)
4862 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
4864 * value.c (pack_unsigned_long): Make static.
4865 * varobj.c (varobj_ensure_python_env): Make static.
4866 * windows-tdep.c (_initialize_windows_tdep): Declare.
4867 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
4869 2012-03-01 Pedro Alves <palves@redhat.com>
4871 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
4873 (linux_init_abi): Install it as has_shared_address_space gdbarch
4876 2012-03-01 Pedro Alves <palves@redhat.com>
4878 * observer.c (observer_test_first_notification_function)
4879 (observer_test_second_notification_function)
4880 (observer_test_third_notification_function): Add declarations.
4882 2012-03-01 Pedro Alves <palves@redhat.com>
4884 * common/signals.c (default_target_signal_to_host)
4885 (default_target_signal_from_host): Move ...
4886 * arch-utils.c: ... here.
4887 * arch-utils.h (default_target_signal_to_host)
4888 (default_target_signal_from_host): Declare.
4890 * common/signals.c (target_signal_from_command): Move ...
4891 * infrun.c: ... here.
4892 * inferior.h (target_signal_from_command): Declare.
4893 * target.h (target_signal_from_command)
4894 (default_target_signal_from_host, default_target_signal_to_host):
4895 Delete declarations.
4897 * common/signals.c (_initialize_signals): Delete.
4899 2012-03-01 Pedro Alves <palves@redhat.com>
4901 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
4902 both __cplusplus and !__cplusplus.
4904 2012-03-01 Pedro Alves <palves@redhat.com>
4906 * psymtab.c (find_and_open_source): Delete declaration.
4907 * source.c (find_and_open_source): Move comment ...
4908 * source.h (find_and_open_source): ... to this new declaration.
4910 2012-03-01 Pedro Alves <palves@redhat.com>
4912 * inline-frame.c: Include inline-frame.h.
4914 2012-03-01 Pedro Alves <palves@redhat.com>
4916 * tui/tui-data.c (set_gen_win_origin): Delete.
4917 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
4918 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
4920 2012-03-01 Pedro Alves <palves@redhat.com>
4922 * remote.c (encode_actions): Delete declaration.
4923 * tracepoint.c (encode_actions): Make extern.
4924 * tracepoint.h (encode_actions): Declare.
4926 2012-03-01 Pedro Alves <palves@redhat.com>
4928 * python/py-breakpoint.c: Include python.h.
4929 * python/py-continueevent.c (create_continue_event_object): Make
4931 * python/py-lazy-string.c (stpy_get_type): Make static.
4932 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4934 * python/py-utils.c (unicode_to_target_python_string): Make
4936 * python/py-value.c: Include python.h.
4938 2012-03-01 Pedro Alves <palves@redhat.com>
4940 * inferior.c (delete_threads_of_inferior): Delete.
4942 2012-03-01 Pedro Alves <palves@redhat.com>
4944 Import fallback definitions from glibc.
4946 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
4947 ps_prochandle): Forward declare.
4948 (ps_err_e): Use glibc's comments.
4949 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
4950 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4951 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
4952 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
4953 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
4954 (struct ps_prochandle): Adjust comment.
4956 2012-03-01 Pedro Alves <palves@redhat.com>
4958 * ada-lang.c (ada_modulus_from_name): Delete.
4959 * ada-lex.l (lexer_init): Make static.
4961 2012-03-01 Pedro Alves <palves@redhat.com>
4965 * frame.c (read_frame_register_unsigned): New.
4966 * frame.h (read_frame_register_unsigned): Declare.
4967 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
4969 (print_i387_control_word): New parameter `control_p'. Handle it.
4970 (i387_print_float_info): Handle unavailable float registers.
4972 2012-03-01 Keith Seitz <keiths@redhat.com>
4974 * linespec.c (decode_line_2): Sort the list of methods
4975 alphabetically before presenting the user with a selection
4978 2012-03-01 Doug Evans <dje@google.com>
4980 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
4982 (dwarf2_read_abbrevs): Remove corresponding initialization.
4984 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
4986 * NEWS: Mention new python command class gdb.COMMAND_USER.
4987 * cli/cli-cmds.c (show_user): Print error when used on a python
4989 (init_cli_cmds): Update documentation strings for "show user" and
4990 "set/show max-user-call-depth" to clarify that it does not apply to
4992 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
4994 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
4996 * top.c (execute_command): Only execute a user-defined command as a
4997 legacy macro if c->user_commands is set.
4999 2012-03-01 Tom Tromey <tromey@redhat.com>
5001 * valprint.h (struct generic_val_print_decorations): New.
5002 (generic_val_print): Declare.
5003 * valprint.c (generic_val_print): New function.
5004 * p-valprint.c (p_decorations): New global.
5005 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5006 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5007 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5008 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5009 * m2-valprint.c (m2_decorations): New global.
5010 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5011 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5012 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5013 TYPE_CODE_ERROR>: Call generic_val_print.
5014 * f-valprint.c (f_decorations): New global.
5015 (f_val_print): Use print_function_pointer_address.
5016 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5017 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5018 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5020 * c-valprint.c (c_decorations): New global.
5021 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5022 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5023 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5024 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5025 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5026 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5029 2012-03-01 Tom Tromey <tromey@redhat.com>
5031 * valprint.c (val_print): Update.
5032 * p-valprint (pascal_val_print): Return void.
5033 * p-lang.h (pascal_val_print): Return void.
5034 * m2-valprint.c (m2_val_print): Return void.
5035 * m2-lang.h (m2_val_print): Return void.
5036 * language.h (struct language_defn) <la_val_print>: Return void.
5037 * language.c (unk_lang_val_print): Return void.
5038 * jv-valprint.c (java_val_print): Return void.
5039 * jv-lang.h (java_val_print): Return void.
5040 * f-valprint.c (f_val_print): Return void.
5041 * f-lang.h (f_val_print): Return void.
5042 * d-valprint.c (d_val_print): Return void.
5043 (dynamic_array_type): Update.
5044 * d-lang.h (d_val_print): Return void.
5045 * c-valprint.c (c_val_print): Return void.
5046 * c-lang.h (c_val_print): Return void.
5047 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5049 * ada-lang.h (ada_val_print): Return void.
5051 2012-03-01 Tom Tromey <tromey@redhat.com>
5053 * value.h (val_print): Return void.
5054 * valprint.c (val_print): Return void.
5056 2012-03-01 Tom Tromey <tromey@redhat.com>
5058 * value.h (common_val_print): Return void.
5059 * valprint.c (common_val_print): Return void.
5061 2012-03-01 Tom Tromey <tromey@redhat.com>
5063 * value.h (value_print): Return void.
5064 * valprint.c (value_print): Return void.
5065 * p-valprint.c (pascal_value_print): Return void.
5066 * p-lang.h (pascal_value_print): Return void.
5067 * language.h (struct language_defn) <la_value_print>: Return
5069 * language.c (unk_lang_value_print): Return void.
5070 * jv-valprint.c (java_value_print): Return void.
5071 * jv-lang.h (java_value_print): Return void.
5072 * f-valprint.c (c_value_print): Don't declare.
5074 * c-valprint.c (c_value_print): Return void.
5075 * c-lang.h (c_value_print): Return void.
5076 * ada-valprint.c (ada_value_print): Return void.
5077 * ada-lang.h (ada_value_print): Return void.
5079 2012-03-01 Tom Tromey <tromey@redhat.com>
5081 * value.c (value_primitive_field): Handle virtual base classes.
5083 2012-03-01 Tom Tromey <tromey@redhat.com>
5085 * gdbtypes.h (struct vbase): Remove.
5087 2012-03-01 Tom Tromey <tromey@redhat.com>
5089 * c-valprint.c (print_function_pointer_address): Move...
5090 * valprint.c: ... here. Make non-static.
5091 * m2-valprint.c (print_function_pointer_address): Remove.
5092 * valprint.h (print_function_pointer_address): Declare.
5094 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5096 * NEWS: Document the fact that one can provide a condition when
5097 creating an Ada exception catchpoint.
5099 2012-03-01 Tom Tromey <tromey@redhat.com>
5101 * valprint.c (val_print_type_code_flags): Fix placement of
5104 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5106 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5107 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5108 environment variable before calling update-copyright.
5110 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5112 * gnulib/extra/update-copyright: Update to the latest from
5113 gnulib's git repository.
5114 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5115 variable to 2 instead of 1.
5117 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5119 * varobj.c (c_value_of_variable): Remove dead code.
5121 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5123 * ada-lex.p (processId): Do not modify already encoded IDs.
5124 Update function documentation.
5126 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5128 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5129 "name" with "struct symbol *name_sym".
5130 * ada-exp.y (write_var_or_type): Update call to
5131 ada_find_renaming_symbol.
5132 "name" with "struct symbol *name_sym". Adjust Implementation
5133 accordingly. Adjust the function documentation.
5135 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5137 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5138 * ada-lang.c (ada_find_any_type): Add advance declaration.
5139 Make static. Replace ada_find_any_symbol by
5140 ada_find_any_type_symbol.
5141 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5142 Improve function description. Make static.
5143 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5144 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5146 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5148 * ada-lang.c (struct tag_args): Delete.
5149 (ada_get_tsd_type): Function body moved up in source file.
5150 (ada_tag_name_1, ada_tag_name_2): Delete.
5151 (ada_get_tsd_from_tag): New function.
5152 (ada_tag_name_from_tsd): New function.
5153 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5154 to determine the tag name.
5156 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5158 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5160 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5163 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5165 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5167 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5169 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5172 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5174 * ada-lang.c (constrained_packed_array_type): If there is a
5175 parallel XA type, use it to determine the array index type.
5177 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5179 * ada-valprint.c (ada_val_print_1): If our value is a reference
5180 to an array descriptor, dereference it before converting it
5183 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5185 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5186 creating fixed value.
5187 (ada_value_ind, ada_coerce_ref, assign_component)
5188 (ada_evaluate_subexp): Remove call to unwrap_value before
5189 call to ada_to_fixed_value.
5191 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5193 * ada-lang.c (to_fixed_array_type): Set result's type name.
5195 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5197 * ada-lang.c (catch_ada_exception_command_split): Add new
5198 argument cond_string. Add support for condition at end of
5199 "catch exception" commands.
5200 (ada_decode_exception_location): Add new argument cond_string.
5201 Update call to catch_ada_exception_command_split.
5202 (create_ada_exception_catchpoint): Add new argument cond_string.
5203 Set the breakpoint condition if needed.
5204 (catch_ada_exception_command): Update call to
5205 ada_decode_exception_location.
5206 (ada_decode_assert_location): Add function documentation.
5207 Add support for condition at end of "catch assert" command.
5208 (catch_assert_command): Update calls to ada_decode_assert_location
5209 and create_ada_exception_catchpoint.
5211 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5213 Fix disp-step-syscall.exp: fork: single step over fork.
5214 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5215 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5216 comment, change parameters gdbarch and ptid to regcache. Remove
5217 parameter regcache, initialize gdbarch from regcache here.
5218 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5220 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5222 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5223 'syscall'. Make the 'int' check more strict.
5225 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5227 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5228 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5229 (i386_linux_intx80_sysenter_syscall_record): ... here.
5230 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5231 Use the renamed function name.
5233 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5235 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5236 * breakpoint.c (until_break_command): Likewise.
5237 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5238 * infcall.c (call_function_by_hand): Likewise.
5239 * infcmd.c (finish_forward): Likewise.
5240 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5242 2012-02-28 Tristan Gingold <gingold@adacore.com>
5244 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5245 avoid variable assignments inside condition.
5247 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5249 Fix static analysis issue found by cppcheck.
5250 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5251 uninitialized BUF for size 2.
5253 2012-02-27 Chris Dearman <chris@mips.com>
5254 Nathan Froyd <froydnj@codesourcery.com>
5255 Maciej W. Rozycki <macro@codesourcery.com>
5257 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5258 (mips16_instruction_has_delay_slot): Likewise.
5259 (mips_segment_boundary): Likewise.
5260 (mips_adjust_breakpoint_address): Likewise.
5261 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5263 2012-02-27 Maciej W. Rozycki <macro@mips.com>
5264 Maciej W. Rozycki <macro@codesourcery.com>
5266 * infrun.c (handle_inferior_event): Don't proceed through
5267 shared library trampolines if stepping at the machine
5270 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5272 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5275 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5277 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5278 (sh_stub_unwind_sniffer): New functions.
5279 (sh_stub_unwind): New variable.
5280 (sh_gdbarch_init): Wire everything.
5282 2012-02-27 Pedro Alves <palves@redhat.com>
5284 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5285 (linux_nat_post_attach_wait): Adjust to use
5286 linux_proc_pid_is_stopped.
5287 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5288 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5289 based on pid_is_stopped from both linux-nat.c and
5290 gdbserver/linux-low.c, and renamed.
5292 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5294 * remote.c (remote_watchpoint_addr_within_range): New function.
5295 (init_remote_ops): Use it.
5297 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5299 * target.h (target_watchpoint_addr_within_range): Document macro.
5301 2012-02-24 Pedro Alves <palves@redhat.com>
5303 * stack.c (set_last_displayed_sal): Issue internal_error instead
5304 of warning, and issue it after clearing the last displayed sal.
5306 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5307 Pedro Alves <palves@redhat.com>
5309 * breakpoint.c (until_break_command): Install breakpoints after
5310 all frame manipulations.
5312 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5314 * remote.c (remote_supports_cond_breakpoints): New forward
5316 (remote_add_target_side_condition): New function.
5317 (remote_insert_breakpoint): Add target-side breakpoint
5318 conditional if supported.
5319 (remote_insert_hw_breakpoint): Likewise.
5320 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5323 * target.c (update_current_target): Inherit
5324 to_supports_evaluation_of_breakpoint_conditions.
5325 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5327 * target.h (struct target_ops)
5328 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5329 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5331 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5332 (condition_evaluation_both, condition_evaluation_auto,
5333 condition_evaluation_host, condition_evaluation_target,
5334 condition_evaluation_enums, condition_evaluation_mode_1,
5335 condition_evaluation_mode): New static globals.
5336 (translate_condition_evaluation_mode): New function.
5337 (breakpoint_condition_evaluation_mode): New function.
5338 (gdb_evaluates_breakpoint_condition_p): New function.
5339 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5340 (mark_breakpoint_modified): New function.
5341 (mark_breakpoint_location_modified): New function.
5342 (set_condition_evaluation_mode): New function.
5343 (show_condition_evaluation_mode): New function.
5344 (bp_location_compare_addrs): New function.
5345 (get_first_location_gte_addr): New helper function.
5346 (set_breakpoint_condition): Free condition bytecode if locations
5347 has become unconditional. Call mark_breakpoint_modified (...).
5348 (condition_command): Call update_global_location_list (1) for
5350 (breakpoint_xfer_memory): Use is_breakpoint (...).
5351 (is_breakpoint): New function.
5352 (parse_cond_to_aexpr): New function.
5353 (build_target_condition_list): New function.
5354 (insert_bp_location): Handle target-side conditional
5355 breakpoints and call build_target_condition_list (...).
5356 (update_inserted_breakpoint_locations): New function.
5357 (insert_breakpoint_locations): Handle target-side conditional
5359 (bpstat_check_breakpoint_conditions): Add comment.
5360 (bp_condition_evaluator): New function.
5361 (bp_location_condition_evaluator): New function.
5362 (print_breakpoint_location): Print information on where the condition
5364 (print_one_breakpoint_location): Likewise.
5365 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5366 breakpoint location.
5367 (force_breakpoint_reinsertion): New functions.
5368 (update_global_location_list): Handle target-side breakpoint
5370 Reinsert locations that are already inserted if conditions have
5372 (bp_location_dtor): Free agent expression bytecode.
5373 (disable_breakpoint): Call mark_breakpoint_modified (...).
5374 Call update_global_location_list (...) with parameter 1 for breakpoints.
5375 (disable_command): Call mark_breakpoint_location_modified (...).
5376 Call update_global_location_list (...) with parameter 1 for breakpoints.
5377 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5378 (enable_command): mark_breakpoint_location_modified (...).
5379 (_initialize_breakpoint): Update documentation and add
5380 condition-evaluation breakpoint subcommand.
5382 * breakpoint.h: Include ax.h.
5383 (condition_list): New data structure.
5384 (condition_status): New enum.
5385 (bp_target_info) <cond_list>: New field.
5386 (bp_location) <condition_changed, cond_bytecode>: New fields.
5387 (is_breakpoint): New prototype.
5389 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5391 * remote.c (remote_state) <cond_breakpoints>: New field.
5392 (PACKET_ConditionalBreakpoints): New enum.
5393 (remote_cond_breakpoint_feature): New function.
5394 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5395 (remote_supports_cond_breakpoints): New function.
5396 (_initialize_remote): Add new packet configuration for
5397 target-side conditional breakpoints.
5399 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5401 * NEWS: Mention target-side conditional breakpoint support,
5402 new condition-evaluation breakpoint subcommand and remote
5405 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5407 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5410 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5412 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5413 (after_prologue): Remove.
5415 2012-02-23 Tom Tromey <tromey@redhat.com>
5417 * jv-valprint.c (java_val_print): Remove dead code.
5419 2012-02-23 Tristan Gingold <gingold@adacore.com>
5421 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5422 known_tasks_element and known_tasks_length fields.
5423 (read_known_tasks_array): Change argument type. Use pointer type
5424 and number of elements from DATA. Adjust.
5425 (read_known_tasks_list): Likewise.
5426 (get_known_tasks_addr): Remove.
5427 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5428 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5429 type and array length. Merge former get_known_tasks_addr code.
5431 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5434 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5435 it after set_momentary_breakpoint.
5437 2012-02-22 Sterling Augustine <saugustine@google.com>
5440 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5442 2012-02-22 Gary Benson <gbenson@redhat.com>
5444 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5445 (find_slot_in_mapped_hash): Likewise.
5447 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5450 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5451 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5452 * configure: Regenerate.
5454 2012-02-21 Tristan Gingold <gingold@adacore.com>
5455 Pedro Alves <palves@redhat.com>
5457 * ia64-tdep.c: Do not include libunwind-ia64.h.
5458 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5459 Include libunwind-ia64.h instead of libunwind.h.
5460 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5461 for libunwind.h existence.
5462 * configure, config.in: Regenerate.
5464 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5466 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5467 instead of value_rtti_target_type.
5468 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5469 instead of value_rtti_target_type.
5470 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5471 value_rtti_target_type.
5472 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5473 (value_rtti_target_type): Rename to ...
5474 (value_rtti_indirect_type): ... here and make it indirect. Update
5476 * value.c (readjust_indirect_value_type): New function.
5477 (coerce_ref): Support for enclosing type setting for references
5478 with readjust_indirect_value_type.
5479 * value.h (readjust_value_type): New declaration.
5480 (value_rtti_target_type): Rename to ...
5481 (value_rtti_indirect_type): ... here.
5483 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5485 * MAINTAINERS (Write After Approval): Add myself to the list.
5487 2012-02-20 Doug Evans <dje@google.com>
5489 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5490 Rename objfile_p_char parameter to objfilep.
5491 (build_objfile_section_table): Result is now void. All callers
5493 * objfiles.h (struct objfile): Tweak comments, whitespace.
5494 (build_objfile_section_table): Update.
5496 * elfread.c (elf_symfile_segments): Fix warning text.
5498 2012-02-20 Tom Tromey <tromey@redhat.com>
5501 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5502 particular set of file names once.
5503 (dw2_map_symbol_filenames): Likewise.
5505 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5508 * main.c (write_files): Remove the declaration.
5509 (external_editor_command): Move the declaration ...
5510 [GDBTK] (external_editor_command): ... here. Fix the comment.
5512 2012-02-20 Tom Tromey <tromey@redhat.com>
5514 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5517 2012-02-20 Tristan Gingold <gingold@adacore.com>
5519 * darwin-nat.h (enum darwin_msg_state): Add comments.
5521 2012-02-20 Tristan Gingold <gingold@adacore.com>
5523 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5526 2012-20-18 Joel Brobecker <brobecker@adacore.com>
5528 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5529 between function description and implementation.
5531 2012-02-17 Tom Tromey <tromey@redhat.com>
5534 * python/py-event.c (event_object_getset): New global.
5535 (event_object_type): Reference it.
5536 * python/py-type.c (field_object_getset): New global.
5537 (field_object_type): Reference it.
5538 * python/python-internal.h (gdb_py_generic_dict): Declare.
5539 * python/py-utils.c (gdb_py_generic_dict): New function.
5541 2012-02-17 Tristan Gingold <gingold@adacore.com>
5543 * solib-darwin.c (darwin_current_sos): Check magic and filetype
5545 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
5547 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5548 TYPE_CALLING_CONVENTION annotation.
5550 2012-02-16 Kevin Buettner <kevinb@redhat.com>
5552 * MAINTAINERS: Add rx to target ISA section.
5553 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5554 (ALLDEPFILES): Add rx-tdep.c.
5556 2012-02-16 Tom Tromey <tromey@redhat.com>
5558 * symfile.c (symbol_file_add_main_1): Use inferior's
5560 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5561 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5563 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5565 (follow_exec): Use inferior's symfile_flags.
5566 * inferior.h (struct inferior) <symfile_flags>: New field.
5568 2012-02-16 Mike Frysinger <vapier@gentoo.org>
5571 * remote-sim.c (gdbsim_create_inferior): Call error() when
5572 sim_create_inferior() fails.
5574 2012-02-16 Josh Matthews <josh@joshmatthews.net>
5576 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5578 2012-02-16 Tom Tromey <tromey@redhat.com>
5581 * thread.c (struct current_thread_cleanup) <was_removable>: New
5583 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
5584 (make_cleanup_restore_current_thread): Initialize new field.
5586 2012-02-15 Kevin Buettner <kevinb@redhat.com>
5588 * MAINTAINERS: Add rl78 to target ISA section.
5589 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
5590 (ALLDEPFILES): Add rl78-tdep.c.
5591 * NEWS: Mention rl78 as a new target.
5593 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
5595 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
5597 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
5599 2012-02-15 Tom Tromey <tromey@redhat.com>
5602 * infcmd.c (registers_info): Print just the current register's
5605 2012-02-15 Tom Tromey <tromey@redhat.com>
5607 * python/py-symbol.c (sympy_value): Use _().
5609 2012-02-15 Pedro Alves <palves@redhat.com>
5611 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
5612 output to be like native targets'.
5613 (remote_pid_to_str): Special case the null ptid.
5615 2012-02-14 Stan Shebs <stan@codesourcery.com>
5617 * NEWS: Mention enable count command.
5618 * breakpoint.h (struct breakpoint): New field enable_count.
5619 * breakpoint.c (enable_breakpoint_disp): Add count argument.
5620 (enable_breakpoint): Add arg to call.
5621 (struct disp_data): New struct.
5622 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
5623 (do_map_enable_once_breakpoint): Create a struct and pass it.
5624 (do_map_enable_delete_breakpoint): Ditto.
5625 (do_map_enable_count_breakpoint): New function.
5626 (enable_count_command): New function.
5627 (bpstat_stop_status): Decrement enable_count.
5628 (print_one_breakpoint_location): Report enable count.
5629 (_initialize_breakpoint): Add enable count command.
5631 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5633 * rl78-tdep.c (reggroups.h): Include.
5634 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
5635 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
5636 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
5637 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
5638 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
5639 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
5640 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
5641 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
5642 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
5643 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
5644 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
5645 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
5646 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
5647 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
5648 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
5649 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
5650 beginning of register list.
5651 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
5652 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
5653 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
5654 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
5655 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
5656 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
5657 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
5658 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
5659 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
5660 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
5661 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
5662 the pseudo registers. Rearrange other pseudo registers too so
5663 that the bank registers appear at the end.
5664 (rl78_register_type): Account for the fact that the byte sized
5665 bank registers are now pseudo-registers.
5666 (rl78_register_name): Rearrange the register name array. Make
5667 initial set of raw banked registers inaccessible.
5668 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
5669 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
5670 case for copying bytes back and forth between raw and pseudo
5671 versions of the banked registers. Update other cases to reflect
5673 (rl78_return_value): Update to account for changed names of
5675 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
5676 rl78_register_sim_regno().
5678 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5680 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
5681 the name parameter being passed to find_pc_partial_function().
5683 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5685 * MAINTAINERS: Step down from being ia64 target maintainer.
5687 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5689 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
5690 compilation warning.
5692 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5694 Fix crash on loaded shlibs without loaded exec_bfd.
5695 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
5696 (set_section_command): Replace exec_bfd by p->bfd.
5698 2012-02-10 Tom Tromey <tromey@redhat.com>
5700 * linespec.c (decode_line_internal): Skip symtabs_from_filename
5701 when we have a C++ qualified name.
5703 2012-02-10 Pedro Alves <palves@redhat.com>
5705 * inferior.c (inferior_pid_to_str): New.
5706 (print_inferior, inferior_command): Use it.
5708 2012-02-10 Pedro Alves <palves@redhat.com>
5710 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
5712 * configure: Regenerate.
5714 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5716 * linespec.c (decode_line_internal): Fix comment correctness.
5718 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
5721 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
5722 * amd64bsd-nat.c: Add support for debug registers (adapted from
5724 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
5725 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
5726 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
5727 (amd64bsd_dr_get_control): New functions.
5728 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
5729 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
5730 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
5731 watchpoints initialization.
5732 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
5734 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5736 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
5738 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
5740 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5742 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
5744 2012-02-08 Joel Brobecker <brobecker@adacore.com>
5746 * language.h (symbol_name_cmp_ftype): Renames
5747 symbol_name_match_p_ftype.
5748 (struct language_defn)[la_get_symbol_name_cmp]: Renames
5749 la_get_symbol_name_match_p.
5750 * ada-lang.c (ada_get_symbol_name_cmp): Renames
5751 ada_get_symbol_name_match_p. Update comment.
5752 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
5753 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
5754 Renames symbol_name_match_p. Update field type.
5755 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
5756 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5757 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
5758 "la_get_symbol_name_cmp" in comments.
5759 * language.c: Likewise.
5761 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5763 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
5765 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
5766 (amd64_sol2_gregset32_reg_offs): Likewise.
5768 2012-02-08 Joel Brobecker <brobecker@adacore.com>
5770 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
5771 of the returned BFD is allocated by GDB.
5773 2012-02-07 Tom Tromey <tromey@redhat.com>
5776 * python/python-internal.h (frame_object_type): Declare.
5777 * python/py-symbol.c (sympy_needs_frame): New function.
5778 (sympy_value): New function.
5779 (symbol_object_getset): Add "needs_frame".
5780 (symbol_object_methods): Add "value".
5781 * python/py-frame.c (frame_object_type): No longer static.
5783 2012-02-07 Tom Tromey <tromey@redhat.com>
5786 * python/py-symbol.c (sympy_line): New function.
5787 (symbol_object_getset): Add "line".
5789 2012-02-07 Tom Tromey <tromey@redhat.com>
5791 * charset.c (find_charset_names): Check 'in' against NULL.
5793 2012-02-06 Doug Evans <dje@google.com>
5795 * gdbtypes.h (struct main_type): Change type of name,tag_name,
5796 and fields.name members from char * to const char *. All uses updated.
5797 (struct cplus_struct_type): Change type of fn_fieldlists.name member
5798 from char * to const char *. All uses updated.
5799 (type_name_no_tag): Update.
5800 (lookup_unsigned_typename, lookup_signed_typename): Update.
5801 * gdbtypes.c (type_name_no_tag): Change result type
5802 from char * to const char *. All callers updated.
5803 (lookup_unsigned_typename, lookup_signed_typename): Change type of
5804 name parameter from char * to const char *.
5805 * symtab.h (struct cplus_specific): Change type of demangled_name
5806 member from char * to const char *. All uses updated.
5807 (struct general_symbol_info): Change type of name and
5808 mangled_lang.demangled_name members from char * to const char *.
5810 (symbol_get_demangled_name, symbol_natural_name): Update.
5811 (symbol_demangled_name, symbol_search_name): Update.
5812 * symtab.c (symbol_get_demangled_name): Change result type
5813 from char * to const char *. All callers updated.
5814 (symbol_natural_name, symbol_demangled_name): Ditto.
5815 (symbol_search_name): Ditto.
5816 (completion_list_add_name): Change type of symname,sym_text,
5817 text,word parameters from char * to const char *.
5818 (completion_list_objc_symbol): Change type of sym_text,
5819 text,word parameters from char * to const char *.
5820 * ada-lang.c (find_struct_field): Change type of name parameter
5821 from char * to const char *.
5822 (encoded_ordered_before): Similarly for N0,N1 parameters.
5823 (old_renaming_is_invisible): Similarly for function_name parameter.
5824 (ada_type_name): Change result type from char * to const char *.
5825 All callers updated.
5826 * ada-lang.h (ada_type_name): Update.
5827 * buildsym.c (hashname): Change type of name parameter
5828 from char * to const char *.
5829 * buildsym.h (hashname): Update.
5830 * dbxread.c (end_psymtab): Change type of include_list parameter
5831 from char ** to const char **.
5832 * dwarf2read.c (determine_prefix): Change result type
5833 from char * to const char *. All callers updated.
5834 * f-lang.c (find_common_for_function): Change type of name, funcname
5835 parameters from char * to const char *.
5836 * f-lang.c (find_common_for_function): Update.
5837 * f-valprint.c (list_all_visible_commons): Change type of funcname
5838 parameters from char * to const char *.
5839 * gdbarch.sh (static_transform_name): Change type of name parameter
5840 and result from char * to const char *.
5841 * gdbarch.c: Regenerate.
5842 * gdbarch.h: Regenerate.
5843 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
5844 of name parameter from char * to const char *.
5845 * jv-lang.c (java_primitive_type_from_name): Ditto.
5846 (java_demangled_signature_length): Similarly for signature parameter.
5847 (java_demangled_signature_copy): Ditto.
5848 (java_demangle_type_signature): Ditto.
5849 * jv-lang.h (java_primitive_type_from_name): Update.
5850 (java_demangle_type_signature): Update.
5851 * objc-lang.c (specialcmp): Change type of a,b parameters
5852 from char * to const char *.
5853 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
5854 from char * to const char *. All callers updated.
5855 * p-lang.h (is_pascal_string_type): Update.
5856 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
5857 of name parameter from char * to const char *.
5858 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
5859 * utils.c (fprintf_symbol_filtered): Ditto.
5860 * defs.h (fprintf_symbol_filtered): Update.
5861 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
5862 * stabsread.h (end_psymtab): Update.
5863 * stack.c (find_frame_funname): Change type of funname parameter
5864 from char ** to const char **.
5865 * stack.h (find_frame_funname): Update.
5866 * typeprint.c (type_print): Change type of varstring parameter
5867 from char * to const char *.
5868 * value.h (type_print): Update.
5869 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
5870 from char * to const char *. All callers updated.
5871 (xcoff_end_psymtab): Change type of include_list parameter
5872 from char ** to const char **. All callers updated.
5873 (swap_sym): Similarly for name parameter. All callers updated.
5874 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
5876 (process_coff_symbol): Use xstrdup.
5877 * stabsread.c (stabs_method_name_from_physname): Renamed from
5878 update_method_name_from_physname. Change result type from void
5879 to char *. All callers updated.
5880 (read_member_functions): In has_destructor case, store name in objfile
5881 obstack instead of malloc space. In !has_stub case, fix mem leak.
5883 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
5885 * configure: Rebuild.
5886 * configure.ac: Put -L../bfd and -L../libiberty at the front of
5889 2012-02-03 Kevin Buettner <kevinb@redhat.com>
5891 * configure.tgt (rl78-*-elf): New target.
5892 * rl78-tdep.c: New file.
5894 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5896 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
5897 and continue the loop. Add QUIT statement.
5899 2012-02-03 Tom Tromey <tromey@redhat.com>
5902 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
5903 bfd_lookup_symbol_from_symtab.
5904 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
5905 gdb_bfd_lookup_symbol_from_symtab.
5907 2012-02-03 Joel Brobecker <brobecker@adacore.com>
5909 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
5910 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
5911 symbol. Add assertion that sym2 is never NULL.
5913 2012-02-02 Doug Evans <dje@google.com>
5915 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
5916 "name" parameter to const char ** from char **. All callers updated.
5917 (find_pc_partial_function): Ditto.
5918 (cache_pc_function_name): Change type to const char * from char *.
5919 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
5920 (find_pc_partial_function): Update.
5921 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
5922 type of "name" parameter to const char * from char *.
5924 * arch-utils.c (generic_in_solib_return_trampoline): Change
5925 type of "name" parameter to const char * from char *.
5926 * arch-utils.h (generic_in_solib_return_trampoline): Update.
5927 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
5928 type of "name" parameter to const char * from char *.
5929 * gdbarch.sh (in_solib_return_trampoline): Ditto.
5930 * gdbarch.c: Regenerate.
5931 * gdbarch.h: Regenerate.
5932 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
5933 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
5934 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
5935 type of "name" parameter to const char * from char *.
5936 * skip.c (skip_function_pc): Ditto.
5937 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
5938 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
5939 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
5940 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
5941 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
5942 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
5943 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
5944 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
5945 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
5947 2012-02-02 Pedro Alves <palves@redhat.com>
5949 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
5950 the current inferior has no execution. Make sure the current
5951 remote process matches gdb's current inferior.
5953 2012-02-02 Tom Tromey <tromey@redhat.com>
5956 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
5959 2012-02-02 Tom Tromey <tromey@redhat.com>
5962 * symtab.c (lookup_language_this): Set block_found.
5964 2012-02-01 Tom Tromey <tromey@redhat.com>
5967 * jit.c (struct jit_inferior_data): Rewrite.
5968 (struct jit_objfile_data): New.
5969 (get_jit_objfile_data): New function.
5970 (add_objfile_entry): Update.
5971 (jit_read_descriptor): Return int. Replace descriptor_addr
5972 argument with inf_data. Update. Don't call error.
5973 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
5975 (jit_inferior_init): Don't look up descriptor. Don't call error.
5976 (jit_reset_inferior_data_and_breakpoints)
5977 (jit_inferior_created_observer): Remove.
5978 (jit_inferior_exit_hook): Update.
5979 (jit_executable_changed_observer): Remove.
5980 (jit_event_handler): Update.
5981 (free_objfile_data): Reset inferior data if needed.
5982 (_initialize_jit): Update.
5984 2012-02-01 Tom Tromey <tromey@redhat.com>
5986 * jit.c (bfd_open_from_target_memory): Move higher in file.
5988 2012-02-01 Tristan Gingold <gingold@adacore.com>
5990 * libunwind-frame.c (libunwind_load): Display message if dlopen
5993 2012-02-01 Gary Benson <gbenson@redhat.com>
5995 * symtab.h (symbol_found_callback_ftype): New typedef.
5996 (iterate_over_symbols): Use the above.
5997 * symtab.c (iterate_over_symbols): Likewise.
5998 * language.h (language_defn->la_iterate_over_symbols): Likewise.
5999 * ada-lang.c (ada_iterate_over_symbols): Likewise.
6000 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6001 (iterate_name_matcher): Document return values.
6002 (collect_one_symbol): Likewise.
6003 (collect_function_symbols): Likewise.
6004 (collect_symbols): Likewise.
6006 2012-02-01 Tom Tromey <tromey@redhat.com>
6008 * ada-lang.c (resolve_subexp): Update.
6009 (ada_lookup_symbol_list): Add 'full_search' argument.
6010 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6011 ada_lookup_symbol_list.
6012 (ada_lookup_encoded_symbol): Update.
6013 (get_var_value): Update.
6014 * ada-exp.y (block_lookup): Update.
6015 (write_var_or_type): Update.
6016 (write_name_assoc): Update.
6017 * ada-lang.h (ada_lookup_symbol_list): Update.
6019 2012-01-31 Tom Tromey <tromey@redhat.com>
6021 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6024 2012-01-31 Doug Evans <dje@google.com>
6026 * symtab.h: Remove outdated comment.
6027 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
6029 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6031 Fix build error in Darwin port.
6032 * i386-darwin-nat.c: Include i386-nat.h.
6034 2012-01-30 Tom Tromey <tromey@redhat.com>
6036 PR breakpoints/13568:
6037 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6038 argument. Check for recursive includes.
6039 (dwarf_decode_macros): Create an include hash.
6041 2012-01-30 Michael Eager <eager@eagercon.com>
6043 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6044 * ppc-linux-tdep.c: Include glibc-tdep.h.
6045 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
6046 (powerpc_linux_in_plt_stub): New function.
6047 (powerpc_linux_in_dynsym_resolve_code): New function.
6048 (ppc_skip_trampoline_code): New function.
6049 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6050 Use glibc_skip_solib_resolver.
6052 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6054 Code cleanup: Make 1440 bytes of data segment read-only.
6055 * arch-utils.c (endian_enum): Make it const char *const [].
6056 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6058 * breakpoint.c (always_inserted_enums): Likewise.
6059 * cli/cli-cmds.c (script_ext_enums): Likewise.
6060 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6061 enumlist parameter const char *const *.
6062 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6063 const char *const *.
6064 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6065 parameter const char *const *.
6066 * cris-tdep.c (cris_modes): Make it const char *const [].
6067 * filesystem.c (target_file_system_kinds): Likewise.
6068 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6069 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6070 (can_use_displaced_stepping_enum, scheduler_enums)
6071 (exec_direction_names): Likewise.
6072 * language.c (_initialize_language): Make the type_or_range_names and
6073 case_sensitive_names variables const char *const [].
6074 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6075 * python/python.c (python_excp_enums): Likewise.
6076 * remote.c (interrupt_sequence_modes): Likewise.
6077 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6078 * serial.c (logbase_enums): Likewise.
6079 * sh-tdep.c (sh_cc_enum): Likewise.
6080 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6082 * symtab.c (multiple_symbols_modes): Likewise.
6083 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6085 * utils.c (internal_problem_modes): Likewise.
6087 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6089 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6090 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6093 2012-01-27 Doug Evans <dje@google.com>
6095 * configure.ac (with_python): Fix absolute path handling for win32.
6096 * configure: Regenerate.
6098 2012-01-26 Doug Evans <dje@google.com>
6100 * symtab.c: Whitespace cleanup, no code changes.
6102 * symtab.c (lookup_symbol_in_language): Improve comment.
6103 (lookup_symbol_aux): Fix comment.
6105 * psymtab.c (add_psymbol_to_list): Result is now "void".
6106 * psympriv.h (add_psymbol_to_list): Update.
6108 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6110 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6112 Do not open script filenames twice.
6113 * cli/cli-cmds.c (source_script_from_stream): Pass to
6114 source_python_script also STREAM.
6115 * python/py-auto-load.c (source_section_scripts): Pass to
6116 source_python_script_for_objfile also STREAM.
6117 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6119 * python/python-internal.h (source_python_script_for_objfile): New
6120 parameter file, rename parameter file to filename.
6121 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6122 instead if !_WIN32. Update the function comment.
6123 (source_python_script, source_python_script_for_objfile)
6124 (source_python_script): New parameter file, rename parameter file to
6125 filename. Pass FILENAME to python_run_simple_file.
6126 * python/python.h (source_python_script): New parameter file, rename
6127 parameter file to filename.
6129 2012-01-26 Pedro Alves <palves@redhat.com>
6131 * corelow.c (core_has_fake_pid): Delete.
6132 (core_close): Delete references to `core_has_fake_pid'.
6133 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6134 (core_open): Delete references to `core_has_fake_pid'.
6135 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6138 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6140 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6141 Remove language parameter from name_matcher. Adjust the comment.
6142 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6143 Remove language parameter.
6144 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6145 * linespec.c (iterate_name_matcher): Likewise.
6146 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6147 name_matcher. Adjust call accordingly.
6148 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6149 (maintenance_check_symtabs): Adjust type of parameter "fun".
6150 * psymtab.h (maintenance_check_symtabs): Likewise.
6152 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6154 * language.h (symbol_name_match_p_ftype): New typedef.
6155 (struct language_defn): Replace field la_symbol_name_compare
6156 by la_get_symbol_name_match_p.
6157 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6158 (ada_language_defn): Use it.
6159 * linespec.c (struct symbol_matcher_data): New type.
6160 (iterate_name_matcher): Rewrite.
6161 (iterate_over_all_matching_symtabs): Pass a pointer to
6162 a symbol_matcher_data struct to expand_symtabs_matching
6163 instead of just the lookup name.
6164 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6165 opencl-lang.c, p-lang.c, language.c: Delete field
6166 la_symbol_name_compare, and replace by NULL for new field
6167 la_get_symbol_name_match_p.
6168 * symfile.h (struct quick_symbol_functions): Update comment.
6170 2012-01-25 Tom Tromey <tromey@redhat.com>
6172 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6175 2012-01-24 Tom Tromey <tromey@redhat.com>
6178 * solib.c (update_solib_list): Update the program space's
6179 added_solibs and deleted_solibs fields.
6180 * progspace.h (struct program_space) <added_solibs,
6181 deleted_solibs>: New fields.
6182 (clear_program_space_solib_cache): Declare.
6183 * progspace.c (release_program_space): Call
6184 clear_program_space_solib_cache.
6185 (clear_program_space_solib_cache): New function.
6186 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6187 bpstat_stop_status. Use handle_solib_event.
6188 * breakpoint.c: Include gdb_regex.h.
6189 (print_solib_event): New function.
6190 (bpstat_print): Use print_solib_event.
6191 (bpstat_stop_status): Add special case for bp_shlib_event.
6192 (handle_solib_event): New function.
6193 (bpstat_what): Use handle_solib_event.
6194 (struct solib_catchpoint): New.
6195 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6196 (breakpoint_hit_catch_solib, check_status_catch_solib)
6197 (print_it_catch_solib, print_one_catch_solib)
6198 (print_mention_catch_solib, print_recreate_catch_solib): New
6200 (catch_solib_breakpoint_ops): New global.
6201 (catch_load_or_unload, catch_load_command_1)
6202 (catch_unload_command_1): New functions.
6203 (internal_bkpt_check_status): Add special case for
6205 (internal_bkpt_print_it): Use print_solib_event.
6206 (initialize_breakpoint_ops): Initialize
6207 catch_solib_breakpoint_ops.
6208 (_initialize_breakpoint): Register "catch load" and "catch
6210 * breakpoint.h (handle_solib_event): Declare.
6211 * NEWS: Add entry for "catch load" and "catch unload".
6213 2012-01-24 Tom Tromey <tromey@redhat.com>
6215 * ada-lang.c: Include gdb_vecs.h.
6216 * charset.c: Include gdb_vecs.h.
6217 * tracepoint.h: Include gdb_vecs.h.
6218 * gdb_vecs.h: New file.
6220 2012-01-24 Pedro Alves <pedro@codesourcery.com>
6222 * breakpoint.c (breakpoint_hit_catch_fork)
6223 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6224 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6225 * infrun.c (inferior_has_forked, inferior_has_vforked)
6226 (inferior_has_execd, inferior_has_called_syscall): Delete.
6227 (handle_syscall_event): Get syscall_number from the execution
6228 control state's wait status.
6229 (wait_for_inferior): Don't clear syscall_number.
6231 2012-01-24 Pedro Alves <palves@redhat.com>
6233 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6234 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6235 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6236 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6238 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6239 false for events other than TARGET_SIGNAL_TRAP.
6240 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6242 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6243 events other than TARGET_SIGNAL_TRAP.
6244 (tracepoint_breakpoint_hit): Add `ws' parameter.
6245 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6247 (bpstat_stop_status): Same.
6248 (pc_at_non_inline_function): Same.
6249 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6250 to pass the current event's waitstatus to bpstat_stop_status
6251 and pc_at_non_inline_function.
6253 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6256 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6257 Update the function comment for it.
6258 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6259 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6262 2012-01-24 Pedro Alves <palves@redhat.com>
6264 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6265 outside `bs->stop' block.
6266 (bpstat_what): Rework bp_shlib_event handling.
6267 (internal_bkpt_check_status): If the breakpoint is a
6268 bp_shlib_event, then set bs->stop and bs->print if
6269 stop_on_solib_events is set.
6271 2012-01-24 Gary Benson <gbenson@redhat.com>
6273 Delete #if 0'd out code.
6274 * stack.c (print_frame_label_vars): Remove.
6275 (catch_info): Likewise.
6276 (_initialize_stack): Remove "info catch" command.
6277 * NEWS: Mention the above.
6279 2012-01-24 Pedro Alves <palves@redhat.com>
6281 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6283 (remote_notice_new_inferior): If the remote end doesn't support
6284 the multiprocess extensions, then the PID is fake.
6285 (add_current_inferior_and_thread): New.
6286 (remote_start_remote): Use it.
6287 (extended_remote_attach_1): Adjust.
6288 (extended_remote_create_inferior_1): Use
6289 add_current_inferior_and_thread.
6291 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6293 Fix watchpoints to be specific for each inferior.
6294 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6295 current_program_space.
6296 * i386-nat.c (i386_inferior_data_cleanup): New.
6297 (i386_inferior_data_get): Replace variable inf_data_local by an
6299 (i386_use_watchpoints): Initialize i386_inferior_data.
6300 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6301 specific iterate_over_lwps.
6303 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6305 Fix watchpoints across inferior fork.
6306 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6307 comment for linux_nat_iterate_watchpoint_lwps.
6308 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6309 linux_nat_iterate_watchpoint_lwps.
6310 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6311 * i386-linux-nat.c (update_debug_registers_callback): Update the
6312 comment for linux_nat_iterate_watchpoint_lwps.
6313 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6314 linux_nat_iterate_watchpoint_lwps.
6315 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6316 * i386-nat.c: Include inferior.h.
6317 (dr_mirror): Remove.
6318 (i386_inferior_data, struct i386_inferior_data)
6319 (i386_inferior_data_get): New.
6320 (i386_debug_reg_state): Use i386_inferior_data_get.
6321 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6322 (i386_insert_watchpoint, i386_remove_watchpoint)
6323 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6324 (i386_remove_hw_breakpoint): New variable state, use
6325 i386_debug_reg_state instead of DR_MIRROR.
6326 * linux-nat.c (delete_lwp): New declaration.
6327 (num_lwps): Move here from downwards.
6328 (delete_lwp_cleanup): New.
6329 (linux_child_follow_fork): Create new child_lp, call
6330 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6332 (num_lwps): Move upwards.
6333 (linux_nat_iterate_watchpoint_lwps): New.
6334 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6335 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6337 2012-01-24 Joel Brobecker <brobecker@adacore.com>
6341 2012-01-23 Pedro Alves <palves@redhat.com>
6343 * top.c (caution): Rename to ...
6344 (confirm): ... this.
6345 (show_caution): Rename to ...
6346 (show_confirm): ... this.
6347 (quit_cover): Adjust.
6348 (init_main): Adjust.
6349 * top.h (caution): Rename to ...
6350 (confirm): ... this.
6351 * utils.c (internal_vproblem, defaulted_query): Adjust.
6353 2012-01-23 Pedro Alves <palves@redhat.com>
6355 * top.c (caution): Update comment.
6356 (execute_command): Don't consider the current value of `caution'.
6358 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6360 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6362 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6364 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6365 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6366 * target.c (target_fileio_pwrite): Remove buffer address from
6368 (target_fileio_pread): Likewise.
6370 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6372 * NEWS: Document remote "info proc" and "generate-core-file".
6374 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6376 * gdbarch.sh (find_memory_regions): New callback.
6377 * gdbarch.c, gdbarch.h: Regenerate.
6379 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6380 callback before falling back to target method.
6382 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6383 (linux_target_install_ops): No longer install it.
6385 * linux-tdep.c (linux_find_memory_regions): New function.
6386 (linux_init_abi): Install it.
6388 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6390 * gdbarch.sh (make_corefile_notes): New architecture callback.
6391 * gdbarch.c: Regenerate.
6392 * gdbarch.h: Likewise.
6394 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6395 before target_make_corefile_notes. If NULL is returned, the
6396 target does not support core file generation.
6398 * linux-nat.c: Include "linux-tdep.h".
6399 (find_signalled_thread, find_stop_signal): Remove.
6400 (linux_nat_do_thread_registers): Likewise.
6401 (struct linux_nat_corefile_thread_data): Likewise.
6402 (linux_nat_corefile_thread_callback): Likewise.
6403 (iterate_over_spus): Likewise.
6404 (struct linux_spu_corefile_data): Likewise.
6405 (linux_spu_corefile_callback): Likewise.
6406 (linux_spu_make_corefile_notes): Likewise.
6407 (linux_nat_collect_thread_registers): New function.
6408 (linux_nat_make_corefile_notes): Replace contents by call to
6409 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6410 as native-only callback.
6412 * linux-tdep.h: Include "bfd.h".
6413 (struct regcache): Add forward declaration.
6414 (linux_collect_thread_registers_ftype): New typedef.
6415 (linux_make_corefile_notes): Add prototype.
6416 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6417 "regset.h", and "elf-bfd.h".
6418 (find_signalled_thread, find_stop_signal): New functions.
6419 (linux_spu_make_corefile_notes): Likewise.
6420 (linux_collect_thread_registers): Likewise.
6421 (struct linux_corefile_thread_data): New data structure.
6422 (linux_corefile_thread_callback): New funcion.
6423 (linux_make_corefile_notes): Likewise.
6424 (linux_make_corefile_notes_1): Likewise.
6425 (linux_init_abi): Install it.
6427 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6429 * gdbarch.sh (info_proc): New callback.
6430 * gdbarch.c, gdbarch.h: Regenerate.
6432 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6433 before falling back to the target info_proc callback.
6435 * linux-nat.c: Do not include "cli/cli-utils.h".
6436 (linux_nat_info_proc): Remove.
6437 (linux_target_install_ops): No longer install it.
6439 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6440 (read_mapping): New function.
6441 (linux_info_proc): Likewise.
6442 (linux_init_abi): Install it.
6444 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6446 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6447 * infcmd.c: (info_proc_cmd_1): New function.
6448 (info_proc_cmd): New function, moved here from equivalent routine
6449 orignally in linux-nat.c.
6450 (info_proc_cmd_mappings): Likewise.
6451 (info_proc_cmd_stat): Likewise.
6452 (info_proc_cmd_status): Likewise.
6453 (info_proc_cmd_cwd): Likewise.
6454 (info_proc_cmd_cmdline): Likewise.
6455 (info_proc_cmd_exe): Likewise.
6456 (info_proc_cmd_all): Likewise.
6457 (_initialize_infcmd): Install "info proc" command and subcommands.
6459 * target.h (struct target_ops): Add to_info_proc.
6460 (target_info_proc): Add prototype.
6461 * target.c (target_info_proc): New function.
6463 * procfs.c (procfs_info_proc): Add prototype.
6464 (info_proc_cmd): Rename into ...
6465 (procfs_info_proc): ... this. Update argument types as appropriate
6466 for a to_info_proc implementation. Handle "what" argument.
6467 (procfs_target): Install procfs_info_proc.
6468 (_initialize_procfs): No longer install "info proc" command.
6470 * linux-nat.c: (enum info_proc_what): Remove.
6471 (linux_nat_info_proc_cmd_1): Rename into ...
6472 (linux_nat_info_proc): ... this. Update argument types as appropriate
6473 for a to_info_proc implementation.
6474 (linux_nat_info_proc_cmd): Remove.
6475 (linux_nat_info_proc_cmd_mappings): Likewise.
6476 (linux_nat_info_proc_cmd_stat): Likewise.
6477 (linux_nat_info_proc_cmd_status): Likewise.
6478 (linux_nat_info_proc_cmd_cwd): Likewise.
6479 (linux_nat_info_proc_cmd_cmdline): Likewise.
6480 (linux_nat_info_proc_cmd_exe): Likewise.
6481 (linux_nat_info_proc_cmd_all): Likewise.
6482 (linux_target_install_ops): Install linux_nat_info_proc.
6483 (_initialize_linux_nat): No longer install "info proc" command
6486 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6488 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6489 * config.in, configure: Regenerate.
6491 * target.h (struct target_ops): Add to_fileio_readlink.
6492 (target_fileio_readlink): Add prototype.
6493 * target.c (target_fileio_readlink): New function.
6495 * inf-child.c: Conditionally include <sys/param.h>.
6496 (inf_child_fileio_readlink): New function.
6497 (inf_child_target): Install it.
6499 * remote.c (PACKET_vFile_readlink): New enum value.
6500 (remote_hostio_readlink): New function.
6501 (init_remote_ops): Install it.
6502 (_initialize_remote): Handle vFile:readlink packet type.
6504 2012-01-20 Pedro Alves <palves@redhat.com>
6505 Ulrich Weigand <ulrich.weigand@linaro.org>
6507 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6508 * config.in, configure: Regenerate.
6510 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6511 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6512 (target_fileio_open): Add prototype.
6513 (target_fileio_pwrite): Likewise.
6514 (target_fileio_pread): Likewise.
6515 (target_fileio_close): Likewise.
6516 (target_fileio_unlink): Likewise.
6517 (target_fileio_read_alloc): Likewise.
6518 (target_fileio_read_stralloc): Likewise.
6520 * target.c: Include "gdb/fileio.h".
6521 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6522 (default_fileio_target): New function.
6523 (target_fileio_open): Likewise.
6524 (target_fileio_pwrite): Likewise.
6525 (target_fileio_pread): Likewise.
6526 (target_fileio_close): Likewise.
6527 (target_fileio_unlink): Likewise.
6528 (target_fileio_close_cleanup): Likewise.
6529 (target_fileio_read_alloc_1): Likewise.
6530 (target_fileio_read_alloc): Likewise.
6531 (target_fileio_read_stralloc): Likewise.
6533 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6534 <fcntl.h>, and <unistd.h>.
6535 (inf_child_fileio_open_flags_to_host): New function.
6536 (inf_child_errno_to_fileio_error): Likewise.
6537 (inf_child_fileio_open): Likewise.
6538 (inf_child_fileio_pwrite): Likewise.
6539 (inf_child_fileio_pread): Likewise.
6540 (inf_child_fileio_close): Likewise.
6541 (inf_child_fileio_unlink): Likewise.
6542 (inf_child_target): Install to_fileio routines.
6544 * remote.c (init_remote_ops): Install to_fileio routines.
6546 2012-01-20 Pedro Alves <palves@redhat.com>
6547 Ulrich Weigand <ulrich.weigand@linaro.org>
6549 * remote.c (remote_multi_process_p): Only check for multi-process
6550 protocol feature, do not check for extended protocol.
6551 (remote_supports_multi_process): Check for extended protocol here.
6552 (set_general_process): Likewise.
6553 (extended_remote_kill): Likewise.
6554 (remote_pid_to_str): Likewise.
6555 (remote_query_supported): Always query multiprocess mode.
6557 2012-01-20 Pedro Alves <palves@redhat.com>
6558 Ulrich Weigand <ulrich.weigand@linaro.org>
6560 * inferior.h (struct inferior): Add fake_pid_p.
6561 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6562 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6563 magic_null_ptid since the remote side doesn't provide a real PID.
6565 2012-01-19 Tom Tromey <tromey@redhat.com>
6567 * NEWS: Combine the two Python sections.
6569 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6571 * target.h (target_close): Update comment on the target's unpush state.
6573 2012-01-19 Pedro Alves <palves@redhat.com>
6575 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6576 linux_nat_async directly instead of going through the target
6578 * target.c (unpush_target): Close target after unpushing it, not
6581 2012-01-19 Gary Benson <gbenson@redhat.com>
6583 * mdebugread.c (sort_blocks): Replace integer constants with ones
6584 derived from FIRST_LOCAL_BLOCK.
6586 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
6587 Jan Kratochvil <jan.kratochvil@redhat.com>
6590 * symfile.c (find_separate_debug_file): New function.
6591 (terminate_after_last_dir_separator): Likewise.
6592 (find_separate_debug_file_by_debuglink): Also try realpath.
6593 * configure.ac (AC_CHECK_FUNCS): Add lstat.
6594 * configure: Regenerate.
6595 * config.in: Regenerate.
6597 2012-01-18 Doug Evans <dje@google.com>
6599 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
6600 (main.o): Remove rule.
6601 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
6602 (--with-sysroot): Rewrite.
6603 * configure: Regenerate.
6604 * config.in: Regenerate.
6606 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
6608 * parse.c (initialize_expout): New function.
6609 (reallocate_expout): Likewise.
6610 (parse_exp_in_context): Use `initialize_expout' and
6611 `reallocate_expout' when appropriate.
6613 2012-01-18 Pedro Alves <palves@redhat.com>
6615 * record.c (struct record_breakpoint, record_breakpoint_p)
6616 (record_breakpoints): New.
6617 (record_insert_breakpoint, record_remove_breakpoint): Manage
6618 record breakpoints list. Only remove breakpoints from the
6619 inferior if they had been inserted there in the first place.
6621 2012-01-17 Doug Evans <dje@google.com>
6623 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
6624 if we know we don't have a file name to look for.
6626 2012-01-17 Pedro Alves <palves@redhat.com>
6628 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
6629 the frame's stop reason is UNWIND_UNAVAILABLE.
6631 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6633 Fix compilation error.
6634 * m2-exp.y (yyerror): Use ANSI C prototype.
6636 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6638 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
6639 (growbuf_by_size): Likewise.
6640 (yyerror): Likewise.
6641 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
6642 (modblock): Remove variable (was #if 0'ed).
6643 (parse_number): Convert prototype from K&R to ANSI C.
6644 (yyerror): Likewise.
6645 * objc-exp.y (parse_number): Likewise.
6646 (yyerror): Likewise.
6647 (yylex): Remove #if 0'ed code.
6648 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
6649 (yyerror): Likewise.
6651 2012-01-16 Tom Tromey <tromey@redhat.com>
6654 * symtab.h (compare_filenames_for_search): Declare.
6655 * symtab.c (compare_filenames_for_search): New function.
6656 (iterate_over_some_symtabs): Use it.
6657 * symfile.h (struct quick_symbol_functions)
6658 <map_symtabs_matching_filename>: Change spec.
6659 * psymtab.c (partial_map_symtabs_matching_filename): Use
6660 compare_filenames_for_search. Update for new spec.
6661 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
6662 compare_filenames_for_search. Update for new spec.
6663 * breakpoint.c (clear_command): Use compare_filenames_for_search.
6665 2012-01-16 Tom Tromey <tromey@redhat.com>
6668 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
6669 (struct main_type) <flag_flag_enum>: New field.
6670 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
6671 * NEWS: Add entries.
6672 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
6674 * python/lib/gdb/printing.py (_EnumInstance): New class.
6675 (FlagEnumerationPrinter): Likewise.
6677 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6679 * breakpoint.c (create_sals_from_address_default): New function.
6680 (create_breakpoints_sal_default): Likewise.
6681 (decode_linespec_default): Likewise.
6682 (is_marker_spec): Removed.
6683 (strace_marker_p): New function.
6684 (init_breakpoint_sal): Using `strace_marker_p' instead of
6686 (create_breakpoint): Call method `create_sals_from_address' from
6687 breakpoint_ops, replacing code that created SALs conditionally
6688 on the type of the breakpoint. Call method `create_breakpoints_sal',
6689 replacing code that created breakpoints conditionally on the type
6691 (base_breakpoint_create_sals_from_address): New function.
6692 (base_breakpoint_create_breakpoints_sal): Likewise.
6693 (base_breakpoint_decode_linespec): Likewise.
6694 (base_breakpoint_ops): Add methods
6695 `base_breakpoint_create_sals_from_address',
6696 `base_breakpoint_create_breakpoints_sal' and
6697 `base_breakpoint_decode_linespec'.
6698 (bkpt_create_sals_from_address): New function.
6699 (bkpt_create_breakpoints_sal): Likewise.
6700 (bkpt_decode_linespec): Likewise.
6701 (tracepoint_create_sals_from_address): Likewise.
6702 (tracepoint_create_breakpoints_sal): Likewise.
6703 (tracepoint_decode_linespec): Likewise.
6704 (strace_marker_create_sals_from_address): Likewise.
6705 (strace_marker_create_breakpoints_sal): Likewise.
6706 (strace_marker_decode_linespec): Likewise.
6707 (strace_marker_breakpoint_ops): New variable.
6708 (addr_string_to_sals): Remove `marker_spec'. Call method
6709 `decode_linespec' from breakpoint_ops, replacing code that decoded
6710 an address string into a SAL. Use `strace_marker_p' instead of
6712 (strace_command): Decide whether we are dealing with a static
6713 tracepoint with marker or not. Use the appropriate breakpoint_ops.
6714 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
6715 * breakpoint.h (linespec_result, linespec_sals): New forward
6717 (breakpoint_ops) <create_sals_from_address>,
6718 <create_breakpoints_sal>, <decode_linespec>: New methods.
6720 2012-01-14 Doug Evans <dje@google.com>
6722 * NEWS: Update text for "maint set python print-stack".
6723 It is deprecated in gdb 7.4 and deleted in 7.5.
6725 2012-01-13 Eli Zaretskii <eliz@gnu.org>
6727 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
6730 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6732 * configure: Regenerate.
6733 * config.in: Regenerate.
6735 2012-01-12 Keith Seitz <keiths@redhat.com>
6738 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
6739 (ANONYMOUS_UNION_NAME): Define.
6740 (is_path_expr_parent): New function.
6741 (get_path_expr_parent): New function.
6742 (is_anonymous_child): New function.
6743 (create_child_with_value): If the child is anonymous and without
6744 a name, assign an object name to it.
6745 (c_describe_child): Use get_path_expr_parent to determine
6746 the parent expression.
6747 If there field represents an anonymous struct or union and
6748 has no name, set an appropriate display name and expression.
6749 (cplus_describe_child): Likewise.
6751 2012-01-12 Pedro Alves <palves@redhat.com>
6753 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
6754 available when %ebp is found to be zero (outermost).
6756 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
6758 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
6759 an internal gdb_static_assert.
6760 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
6762 2012-01-11 Tom Tromey <tromey@redhat.com>
6765 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
6766 catch" and "catch throw".
6768 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
6770 * blockframe.c (block_innermost_frame): Start search from selected
6771 frame, if present, or otherwise the current frame.
6773 * c-exp.y (variable): Update innermost_block for
6774 'block COLONCOLON NAME' clause.
6775 * m2-exp.y (variable): Ditto.
6776 * objc-exp.y (variable): Ditto.
6778 2012-01-10 Tom Tromey <tromey@redhat.com>
6781 * python/python.c (finish_python_initialization): Set sys.argv.
6783 2012-01-10 Doug Evans <dje@google.com>
6785 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
6786 "want_line_info". All callers updated.
6787 (dwarf_decode_lines_1): New function.
6788 (handle_DW_AT_stmt_list): Add function comment.
6789 New arg "want_line_info". All callers updated.
6790 (read_file_scope,read_type_unit_scope): Move comment from
6791 handle_DW_AT_stmt_list to here.
6793 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6795 Fix regression after libiberty/ update for GCC PR 6057 and others.
6796 * c-exp.y (operator) <OPERATOR DELETE>
6797 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6798 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
6799 (make_builtin_type, make_name): New variable i, add gdb_assert.
6800 (operator) <OPERATOR NEW>: Update ARGS to 3.
6801 (operator) <OPERATOR DELETE>: Add trailing space.
6802 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
6803 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6804 * cp-support.c (cp_canonicalize_string): Check NULL from
6805 cp_comp_to_string, call warning and return.
6807 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6809 Fix duplicate .o files after omitting libbfd.a.
6810 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
6811 (SFILES): Add corelow.c.
6812 (COMMON_OBS): Add corelow.o.
6813 (ALLDEPFILES): Remove corelow.c.
6814 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
6815 * config/alpha/alpha-osf3.mh: Likewise.
6816 * config/alpha/fbsd.mh: Likewise.
6817 * config/arm/nbsdaout.mh: Likewise.
6818 * config/arm/nbsdelf.mh: Likewise.
6819 * config/i386/i386gnu.mh: Likewise.
6820 * config/ia64/hpux.mh: Likewise.
6821 * config/ia64/linux.mh: Likewise.
6822 * config/m32r/linux.mh: Likewise.
6823 * config/m68k/linux.mh: Likewise.
6824 * config/mips/irix5.mh: Likewise.
6825 * config/mips/irix6.mh: Likewise.
6826 * config/pa/hpux.mh: Likewise.
6827 * config/pa/linux.mh: Likewise.
6828 * config/powerpc/aix.mh: Likewise.
6829 * config/sparc/linux.mh: Likewise.
6830 * config/sparc/linux64.mh: Likewise.
6831 * config/sparc/sol2.mh: Likewise.
6832 * config/vax/vax.mh: Likewise.
6833 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
6834 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
6835 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
6836 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
6837 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
6838 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
6839 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
6840 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
6841 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
6842 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
6843 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
6844 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
6845 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6846 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
6847 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
6848 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6849 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
6850 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
6851 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
6852 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
6853 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
6854 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
6855 corelow.o from gdb_target_obs.
6856 * corefile.c (core_target): Update the comment on NULL value.
6857 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
6858 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
6859 MATCHES. Drop YUMMY set on NULL.
6860 (core_close): Do not call exit_inferior_silent on zero PID. Do not
6861 reclaim CORE_DATA if it is already NULL.
6863 2012-01-09 Doug Evans <dje@google.com>
6865 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
6866 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
6868 2012-01-09 Keith Seitz <keiths@redhat.com>
6870 * breakpoint.c (wrapper.h): Don't include.
6872 2012-01-09 Keith Seitz <keiths@redhat.com>
6874 * Makefile.in (SFILES): Remove wrapper.c.
6875 (HFILES_NO_SRCDIR): Remove wrapper.h.
6876 (COMMON_OBS): Remove wrapper.o.
6877 * cli/cli-interp.c: Don't inlude wrapper.h.
6878 * corelow.c: Likewise.
6879 (core_open): Replace gdb_target_find_new_threads with
6880 TRY_CATCH around target_find_new_threads.
6881 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
6882 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
6883 * varobj.c (varobj_create): Likewise for parse_exp_1 and
6884 evaluate_expression.
6885 (varobj_set_value): Likewise for evaluate_expression and
6887 (install_new_variable): Likewise for value_fetch_lazy.
6888 (adjust_value_for_child_access): Likewise for value_ind.
6889 (c_describe_child): Likewise for value_subscript and
6891 (c_value_of_root): Likewise for evaluate_expression.
6892 * wrapper.c: Remove.
6893 * wrapper.h: Remove.
6895 2012-01-09 Doug Evans <dje@google.com>
6897 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
6898 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
6899 "abfd" args with "section". All callers updated.
6900 Error checking code moved ...
6901 (error_check_comp_unit_head): ... here. New function.
6902 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
6903 Delete arg "abfd". New arg "type_offset". All callers updated.
6904 (create_debug_types_hash_table): Simplify by using
6905 read_and_check_type_unit_head.
6907 * parser-defs.h (namecopy): Delete.
6908 * parse.c (namecopy, namecopy_size): Move into copy_name.
6910 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6912 Partially fix duplicate .o files after omitting libbfd.a.
6913 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
6914 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6915 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
6916 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6917 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
6918 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
6919 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6921 2012-01-09 Pedro Alves <palves@redhat.com>
6923 * MAINTAINERS: Update my email address.
6925 2012-01-08 Doug Evans <dje@google.com>
6927 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
6928 n_type_units. Rename type_comp_units to all_type_units.
6930 (add_signatured_type_cu_to_table): Renamed from
6931 add_signatured_type_cu_to_list. All callers updated.
6933 * gdbtypes.h (struct cplus_struct_type): Delete member
6934 nfn_fields_total. All uses removed.
6936 2012-01-06 Doug Evans <dje@google.com>
6938 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
6940 (dwarf2_find_comp_unit): Delete.
6941 (process_psymtab_comp_unit): Make result "void".
6942 Delete args buffer, info_ptr, buffer_size, and replace with
6943 "section". All callers updated.
6944 (dwarf2_build_psymtabs_hard): Simplify.
6946 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
6947 Thiago Jung Bauermann <bauerman@br.ibm.com>
6949 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
6950 before `struct gdb_exception'.
6951 * breakpoint.c (update_global_location_list_nothrow)
6952 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
6953 * cp-abi.c (value_rtti_type): Likewise.
6954 * cp-support.c (cp_validate_operator): Likewise.
6955 * infrun.c (insert_exception_resume_breakpoint)
6956 (check_exception_resume, keep_going): Likewise.
6957 * mi-interp.c (mi_breakpoint_created)
6958 (mi_breakpoint_modified): Likewise.
6959 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
6960 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
6961 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
6963 2012-01-05 Doug Evans <dje@google.com>
6965 * dwarf2read.c (statement_prologue): Delete, unused.
6967 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
6968 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
6970 * dwarf2read.c (comp_unit_header): Delete, unused.
6972 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
6974 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
6975 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
6977 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
6979 * infrun.c (normal_stop): Don't skip calling the normal_stop
6980 observers if the thread was doing a multi-step, but stopped for
6981 some reason other than stepping.
6983 2012-01-05 Pedro Alves <alves.ped@gmail.com>
6985 * cli/cli-decode.h: Add comments.
6986 (CMD_LIST_AMBIGUOUS): Moved to command.h
6987 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
6988 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
6989 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
6990 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
6991 (add_com, add_com_alias, add_info, add_info_alias)
6992 (complete_on_cmdlist, complete_on_enum, help_list): Remove
6994 * command.h: Add and adjust comments.
6995 (CMD_LIST_AMBIGUOUS): Moved here.
6996 (help_cmd, help_cmd_list): Delete declarations.
6998 2012-01-04 Doug Evans <dje@google.com>
7000 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7001 All callers updated.
7002 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7003 Replace all arguments with "per_cu". All callers updated.
7005 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7007 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7008 New arg "per_cu". All callers updated.
7010 Delete #if 0'd out code.
7011 * language.c (binop_result_type): Delete.
7012 (simple_type, ordered_type, same_type, integral_type): Delete.
7013 (numeric_type, character_type, string_type, boolean_type): Delete.
7014 (float_type, structured_type): Delete.
7015 * language.h: Update.
7017 2012-01-04 Tom Tromey <tromey@redhat.com>
7019 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7021 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7023 * corefile.c (close_exec_file): Delete.
7024 (reopen_exec_file): Remove commented out code that seems related
7025 to close_exec_file, which is being deleted here.
7026 * inferior.h (close_exec_file): Delete.
7027 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7029 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7031 * ada-lang.c: #include "cli/cli-utils.h".
7032 (get_selections): Use skip_spaces.
7033 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7034 (catch_ada_exception_command_split): Use skip_spaces.
7035 (ada_decode_assert_location): Likewise.
7037 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7039 * linespec.c (decode_line_internal): Check for C++ or Java
7040 compound constructs only if the current language is C, C++
7043 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7046 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7047 Joel Brobecker <brobecker@adacore.com>
7048 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7049 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7051 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7052 fall through into AT_ENTRY_POINT.
7053 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7055 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7056 PPC_INSN_SIZE skip to 3 times.
7058 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7060 * linespec.c (add_minsym): Preserve function descriptors.
7062 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7064 * breakpoint.c (all_locations_are_pending): Consider locations
7065 in program spaces executing during startup pending as well.
7067 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7069 Copyright year update in most files of the GDB Project.
7071 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7073 * copyright.sh: Delete.
7074 * copyright.py: Rewrite.
7076 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7078 * gnulib/extra/update-copyright: New file, imported from gnulib.
7080 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7082 * README (Copyright and License Notices): New section.
7084 2012-01-03 Tom Tromey <tromey@redhat.com>
7087 * python/py-value.c (valpy_dereference, valpy_get_address
7088 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7089 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7090 (valpy_absolute, valpy_richcompare): Free intermediate values.
7092 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7094 * ada-lang.c: Reformat the copyright notice.
7096 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7098 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7099 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7100 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7101 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7102 Revert this part of:
7103 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7104 Build gdb directly from *.o files not using libgdb.a.
7105 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7107 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7109 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7110 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7111 Reformat the copyright header.
7113 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7115 Revert this part of:
7116 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7117 Remove the gdbtui binary.
7118 * gdb.c (main): Remove args.interpreter_p initialization.
7119 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7120 * main.h (struct captured_main_args): Remove interpreter_p.
7122 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7124 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7126 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7128 * top.c (print_gdb_version): Update copyright year.
7130 2012-01-02 Yao Qi <yao@codesourcery.com>
7132 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7134 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7135 Joel Brobecker <brobecker@adacore.com>
7137 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7138 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7140 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7141 fall through into AT_ENTRY_POINT.
7142 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7144 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7145 PPC_INSN_SIZE skip to 3 times.
7147 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7149 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7151 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7153 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7155 Build gdb directly from *.o files not using libgdb.a.
7156 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7157 (COMMON_OBS): Remove solib-target.o.
7158 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7159 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7160 (LIBGDB_OBS, libgdb.a): Move it above.
7161 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7162 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7163 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7164 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7165 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7166 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7167 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7168 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7169 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7170 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7171 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7172 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7173 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7174 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7175 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7176 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7177 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7178 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7179 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7180 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7181 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7182 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7183 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7184 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7185 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7186 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7187 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7189 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7191 Remove the gdbtui binary.
7192 * .gitignore (/gdbtui): Remove.
7193 * Makefile.in (TUI): Remove.
7194 (SUBDIR_TUI_OBS): Remove tui-main.o.
7195 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7196 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7197 (tui-main.o): Remove.
7198 (all_object_files): Remove tui-main.o.
7199 * NEWS: New note for the gdbtui removal.
7200 * configure: Rebuilt.
7201 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7202 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7203 CONFIG_UNINSTALL respectively.
7204 * gdb.c (main): Remove args.interpreter_p initialization.
7205 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7206 * main.h (struct captured_main_args): Remove interpreter_p.
7207 * tui/tui-main.c: Remove.
7209 2012-01-01 Doug Evans <dje@google.com>
7211 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7212 (dwarf2_physname, read_import_statement): Ditto.
7213 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7214 (process_structure_scope read_subroutine_type): Ditto.
7215 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7216 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7217 (dwarf2_fetch_die_location_block): Ditto.
7218 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7220 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7221 All callers updated.
7222 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7223 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7224 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7226 * dwarf2read.c (load_cu): Move assert to more useful location.
7228 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7229 All callers updated.
7231 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7232 (dwarf2_elf_names): Minor reformat.
7233 (dwarf2_per_cu_data): Tweak comment.
7234 (dwarf2_read_section): Fix comment.
7235 (create_all_comp_units): Fix comment.
7236 (load_full_comp_unit): Fix comment.
7237 (process_full_comp_unit): Fix comment.
7238 (read_signatured_type): Fix comment.
7240 For older changes see ChangeLog-2011.
7246 version-control: never