1 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3 * amd64-linux-nat.c (compat_x32_clock_t): New.
4 (compat_x32_siginfo_t): Likewise.
5 (compat_x32_siginfo_from_siginfo): Likewise.
6 (siginfo_from_compat_x32_siginfo): Likewise.
7 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
8 and siginfo_from_compat_x32_siginfo for x32.
10 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
12 * tracepoint.c (tfile_xfer_partial): Add a lseek.
14 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
16 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
17 instead of gdbarch_ptr_bit.
18 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
19 (amd64_supply_native_gregset): Likewise.
20 (amd64_collect_native_gregset): Likewise.
21 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
22 (amd64_supply_xsave): Likewise.
23 (amd64_collect_fxsave): Likewise.
24 (amd64_collect_xsave): Likewise.
26 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
28 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
29 (amd64_linux_read_description): Check DS segment register for
32 2012-06-15 Tom Tromey <tromey@redhat.com>
34 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
35 init_cutu_and_read_dies.
37 2012-06-15 Iain Sandoe <iain@codesourcery.com>
39 * MAINTAINERS (Write After Approval): Add myself to the list.
41 2012-06-15 Tom Tromey <tromey@redhat.com>
43 * valops.c (value_find_oload_method_list): Now static.
44 * value.h (value_find_oload_method_list): Don't declare.
46 2012-06-15 Tom Tromey <tromey@redhat.com>
48 * valops.c (find_overload_match): Use value_ind.
50 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
52 * infrun.c (handle_inferior_event): Correct indentation.
54 2012-06-14 Doug Evans <dje@google.com>
56 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
57 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
59 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
60 updated. Handle DEBUG_LOC_START_LENGTH.
61 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
62 (loclist_describe_location): Ditto.
64 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
67 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
68 after hiding inline functions.
70 2012-06-13 Joel Brobecker <brobecker@adacore.com>
72 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
73 _initialize_inf_ttrace.
75 2012-06-13 Joel Brobecker <brobecker@adacore.com>
77 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
78 _initialize_hppa_hpux_nat.
80 2012-06-13 Joel Brobecker <brobecker@adacore.com>
82 * remote-sim.c (sim_command_completer): Change type of return
83 value to "VEC (char_ptr) *". Adjust implementation accordingly.
85 2012-06-13 Mark Kettenis <kettenis@gnu.org>
86 Jan Kratochvil <jan.kratochvil@redhat.com>
89 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
90 stack on a 16-byte boundary.
92 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
94 * jit.c (finalize_symtab): Set function's return type to 'void' by
97 2012-06-13 Mark Kettenis <kettenis@gnu.org>
98 H.J. Lu <hongjiu.lu@intel.com>
100 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
101 Move bits common to both the classic LP64 and the new x32 ILP32
103 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
104 (amd64_x32_linux_init_abi): New function.
105 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
108 * i386-tdep.h (i386_pseudo_register_name): New prototype.
109 * i386-tdep.c (i386_pseudo_register_name): Make public.
110 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
111 * amd64-tdep.c (amd64_dword_names): Add "eip".
112 (amd64_x32_pseudo_register_type): New function
113 (amd64_x32_init_abi): New function.
115 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
118 * inferior.h (struct inferior_suspend_state): Comment out.
119 (struct inferior): Comment out the field suspend.
120 * infrun.c (struct infcall_suspend_state): Comment out the field
122 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
125 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
127 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
128 * c-exp.y (classify_inner_name): Remove caller assumptions in the
129 function comment. Return ERROR for unresolved cases. Implement
130 returning proper NAME.
131 (yylex): Accept also NAME from classify_inner_name.
132 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
133 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
135 * cp-support.h (cp_lookup_nested_type): Update its declaration.
137 2012-06-13 Tom Tromey <tromey@redhat.com>
139 * breakpoint.c (condition_completer): New function.
140 (_initialize_breakpoint): Use it.
141 * value.c (complete_internalvar): New function.
142 * value.h (complete_internalvar): Declare.
144 2012-06-13 Tom Tromey <tromey@redhat.com>
146 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
147 * breakpoint.c (catch_syscall_completer): Return a VEC.
148 * cli/cli-cmds.c (complete_command): Update.
149 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
150 (complete_on_enum): Likewise.
151 * command.h: Include gdb_vecs.h.
152 (completer_ftype): Change return type.
153 (complete_on_cmdlist, complete_on_enum): Likewise.
154 * completer.c (noop_completer, filename_completer)
155 (location_completer): Return a VEC.
156 (add_struct_fields): Remove 'nextp' argument. Change 'output'
158 (expression_completer, complete_line_internal, complete_line)
159 (command_completer): Return a VEC.
160 (gdb_completion_word_break_characters, line_completion_function):
162 * completer.h: Include gdb_vecs.h.
163 (complete_line, noop_completer, filename_completer)
164 (expression_completer, location_completer, command_completer):
166 * f-lang.c (f_word_break_characters): Return a VEC.
167 * interps.c (interpreter_completer): Return a VEC.
168 * language.h (struct language_defn)
169 <la_make_symbol_completion_list>: Return a VEC.
170 * python/py-cmd.c (cmdpy_completer): Return a VEC.
171 * symtab.c (free_completion_list): Take a VEC.
172 (return_val_size, return_val_index): Remove.
173 (return_val): Now a VEC.
174 (completion_list_add_name): Update.
175 (default_make_symbol_completion_list_break_on)
176 (default_make_symbol_completion_list, make_symbol_completion_list)
177 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
179 (add_filename_to_list): Update.
180 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
182 (maybe_add_partial_symtab_filename): Update.
183 (make_source_files_completion_list): Return a VEC.
184 * symtab.h (default_make_symbol_completion_list_break_on)
185 (default_make_symbol_completion_list, make_symbol_completion_list)
186 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
187 (make_source_files_completion_list): Update.
189 2012-06-13 Tom Tromey <tromey@redhat.com>
191 * breakpoint.c (add_catch_command): Use completer_ftype.
192 * breakpoint.h: Include command.h.
193 (add_catch_command): Use completer_ftype.
194 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
195 * cli/cli-decode.h (struct cmd_list_element) <completer>:
197 * command.h (completer_ftype): New typedef.
198 (set_cmd_completer): Use it.
199 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
202 2012-06-13 Pedro Alves <palves@redhat.com>
204 Partial revert of previous change.
206 * serial.c (scb_base): New global.
207 (serial_for_fd): New.
208 (serial_open, serial_fdopen_ops): Link new serial in open serials
210 (do_serial_close): Unlink serial from the open serials chain.
212 2012-06-12 Pedro Alves <palves@redhat.com>
214 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
216 (prepare_for_detach): No longer context switch here in non-stop
218 (fetch_inferior_event): Ditto.
219 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
220 to the event thread before removing breakpoints. Switch to the
221 event thread before inserting breakpoints and resuming.
222 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
223 event thread before resuming.
224 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
225 Switch to the event thread before removing breakpoints.
227 2012-06-12 Eli Zaretskii <eliz@gnu.org>
229 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
230 special characters correctly for the Windows shells. See
231 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
233 [!__MINGW32__]: Remove extra double quote character from special
236 2012-06-11 Stan Shebs <stan@codesourcery.com>
238 * ui-out.h: Remove #if 0 declarations.
239 * ui-out.c: Remove #if 0 functions.
241 2012-06-11 Pedro Alves <palves@redhat.com>
243 * ser-base.c (run_async_handler_and_reschedule): New.
244 (fd_event, push_event): Use it.
245 * serial.c (serial_open, serial_fdopen_ops): Set the initial
246 reference count to 1.
247 (do_serial_close): Set the bufp field to NULL. Use serial_unref
249 (serial_is_open, serial_ref, serial_unref): New.
250 * serial.h (serial_open): Adjust comment.
251 (serial_is_open): Declare.
252 (serial_close): Adjust comment.
253 (serial_ref, serial_unref) Declare.
254 (struct serial): New field 'refcnt'.
256 2012-06-11 Pedro Alves <palves@redhat.com>
258 Remove #if 0'd "connect" command, and unnecessary associated
259 refcounting and serial reuse bits.
261 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
262 * serial.c (last_serial_opened): Delete.
264 (serial_open): Adjust.
265 (serial_for_fd): Delete.
266 (serial_fdopen_ops, do_serial_close): Adjust.
267 (serial_fdopen_ops): Adjust.
269 2012-06-11 Pedro Alves <palves@redhat.com>
271 * serial.c (do_serial_close): Remove early return when SCB is
274 2012-06-11 Tom Tromey <tromey@redhat.com>
276 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
278 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
280 Fix regression by the "ambiguous linespec" series.
281 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
282 get_last_displayed_symtab and get_last_displayed_line and depending
285 2012-06-11 Tom Tromey <tromey@redhat.com>
287 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
288 (dw2_find_symbol_file): Use it.
290 2012-06-11 Michael Eager <eager@eagercon.com>
292 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
293 * mips-linux-tdep.h (mips_signals): New
295 2012-06-11 Tom Tromey <tromey@redhat.com>
297 * infrun.c (handle_inferior_event)
298 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
300 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
301 exception logic in all cases. Update comments.
302 (insert_longjmp_resume_breakpoint): Set the exception resume
305 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
307 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
309 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
311 * valarith.c (binop_types_user_defined_p): Fix a typo.
313 2012-06-08 Yao Qi <yao@codesourcery.com>
314 Chung-Lin Tang <cltang@codesourcery.com>
316 * arch-utils.c (default_return_in_first_hidden_param_p): New.
317 * arch-utils.h: Declare.
318 * gdbarch.sh: Add return_in_first_hidden_param_p.
319 * gdbarch.c, gdbarch.h: Regenerated.
320 * infcall.c (call_function_by_hand): Call
321 gdbarch_return_in_first_hidden_param_p instead of
322 language_pass_by_reference.
324 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
325 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
326 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
327 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
328 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
329 `cplus_return_struct_by_reference'.
330 (tic6x_return_value): Handle language cplusplus.
331 (tic6x_return_in_first_hidden_param_p): New.
332 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
334 2012-06-07 Doug Evans <dje@google.com>
336 * dwarf2read.c (dwarf2_cu): Add comment.
338 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
340 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
342 (mips_eabi_push_dummy_call): Likewise.
343 (mips_n32n64_push_dummy_call): Likewise.
344 (mips_o32_push_dummy_call): Likewise.
345 (mips_o64_push_dummy_call): Likewise.
347 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
349 * mips-tdep.c (mips_convert_register_p): Correct coding style.
351 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
353 * mips-tdep.c (mips_pseudo_register_type): Use
354 mips_float_register_p.
356 2012-06-06 Pedro Alves <palves@redhat.com>
358 * infrun.c (handle_inferior_event): Remove calls to
359 reinit_frame_cache that follow a context_switch call.
361 2012-06-06 Pedro Alves <palves@redhat.com>
363 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
364 context_switch and remove stale comment.
366 2012-06-06 Pedro Alves <palves@redhat.com>
368 * infrun.c (struct execution_control_state): Remove
369 `new_thread_event' field.
370 (handle_inferior_event): Simplify new threads handling; don't
371 resume the inferior if we find a new thread.
373 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
375 * NEWS: Document the deprecation of SH's 'regs' command.
376 * inferior.h (all_registers_info): Add function declaration.
377 * sh-tdep.c (sh_show_regs): Remove variable.
378 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
379 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
380 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
381 (sh_show_regs_command): Remove functions.
382 (sh_gdbarch_init): Don't set sh_show_regs.
383 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
384 'info all-registers'.
385 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
386 (sh64_show_regs): Remove functions.
387 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
389 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
391 * configure.ac: Move development=true below AC_INIT.
392 * configure: Regenerate.
394 2012-06-05 Stan Shebs <stan@codesourcery.com>
396 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
399 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
401 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
403 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
404 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
405 * target.c (target_read_stack, target_write_memory)
406 (target_write_raw_memory): Likewise.
407 * target.h (target_read_stack, target_write_memory)
408 (target_write_raw_memory): Likewise.
410 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
412 * symfile-mem.c: Change gdb_static_assert to ssize_t.
413 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
414 * target.c (target_read_memory): Change LEN to ssize_t.
415 * target.h (target_read_memory): Change LEN to ssize_t.
417 2012-06-05 Pedro Alves <palves@redhat.com>
421 * breakpoint.c (until_break_command): Only fetch the selected
422 frame after decode_line_1.
424 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
426 * solib-svr4.c (enable_break): Don't fallback to setting the solib
427 event breakpoint at _start, __start or main if a program
428 interpreter is not found.
430 2012-06-05 Joel Brobecker <brobecker@adacore.com>
432 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
434 * windows-tdep.c: #include "objfiles.h".
435 (windows_iterate_over_objfiles_in_search_order): New function.
436 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
437 iterate_over_objfiles_in_search_order gdbarch method to
438 windows_iterate_over_objfiles_in_search_order.
439 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
441 2012-06-05 Joel Brobecker <brobecker@adacore.com>
443 * gdbarch.sh: Add generation of
444 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
445 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
446 (iterate_over_objfiles_in_search_order): New gdbarch method.
447 * gdbarch.h, gdbarch.c: Regenerate.
448 * objfiles.h (default_iterate_over_objfiles_in_search_order):
450 * objfiles.c (default_iterate_over_objfiles_in_search_order):
452 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
453 out of lookup_symbol_aux_symtabs.
454 (lookup_symbol_aux_symtabs): Replace extracted-out code by
455 call to lookup_symbol_aux_objfile.
456 (struct global_sym_lookup_data): New type.
457 (lookup_symbol_global_iterator_cb): New function.
458 (lookup_symbol_global): Search for symbol using
459 gdbarch_iterate_over_objfiles_in_search_order and
460 lookup_symbol_global_iterator_cb.
461 * findvar.c (struct minsym_lookup_data): New type.
462 (minsym_lookup_iterator_cb): New function.
463 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
464 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
465 and minsym_lookup_iterator_cb.
467 2012-06-05 Joel Brobecker <brobecker@adacore.com>
469 Revert the following patch:
470 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
471 try locating the symbol in the symbol's own objfile first, before
472 extending the search to all objfiles.
473 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
474 out of lookup_symbol_aux_symtabs.
475 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
476 Replace extracted-out code by call to lookup_symbol_aux_objfile.
477 Do not search EXCLUDE_OBJFILE.
478 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
479 (lookup_symbol_global): Search for matches in the block's objfile
480 first, before searching all other objfiles.
482 2012-06-05 Joel Brobecker <brobecker@adacore.com>
484 * breakpoint.c (find_condition_and_thread): Stop parsing
485 as soon as the first invalid keyword is found.
487 2012-06-05 Joel Brobecker <brobecker@adacore.com>
489 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
491 2012-06-05 Joel Brobecker <brobecker@adacore.com>
493 * config/djgpp/djcheck.sh: Add copyright header.
495 2012-06-05 Joel Brobecker <brobecker@adacore.com>
497 * copyright.py (update_files, main): Fix path to update-copyright
500 2012-06-05 Joel Brobecker <brobecker@adacore.com>
502 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
503 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
504 for which a reminder to update by hand is printed.
506 2012-06-04 Doug Evans <dje@google.com>
508 * buildsym.c (make_blockvector): Add comment.
510 2012-06-04 Pedro Alves <palves@redhat.com>
512 * arch-utils.c (default_gdb_signal_from_target): Delete.
513 * arch-utils.h (default_gdb_signal_from_target): Delete.
514 * corelow.c (core_open) <signal mapping>: Extended comment. Check
515 gdbarch_gdb_signal_from_target_p.
516 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
518 * gdbarch.h: Regenerate.
519 * gdbarch.c: Regenerate.
521 2012-06-04 Pedro Alves <palves@redhat.com>
523 * gdbarch.sh (gdb_signal_from_target): Mention that the
524 implementation of the method must be host independent.
525 * gdbarch.h: Regenerate.
527 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
529 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
531 (target_read_memory_bfd): New function.
532 (symbol_file_add_from_memory): Use it.
534 2012-06-03 Doug Evans <dje@google.com>
536 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
538 (basic_lookup_transparent_type): Ditto.
540 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
541 (ALL_PRIMARY_SYMTABS): Use it.
542 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
543 * dwarf2read.c (dw2_find_symbol_file): Ditto.
544 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
545 * symtab.c (lookup_symbol_aux_objfile): Ditto.
546 (basic_lookup_transparent_type): Ditto.
548 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
550 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
551 it to optimize resolution of demangled name.
553 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
555 * configure.ac (development): Define new variable.
556 Call AC_CHECK_LIB for mcheck if $development.
557 (ERROR_ON_WARNING): Enable it by default only if $development.
558 * config.in: Regenerate.
559 * configure: Regenerate.
561 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
563 * target.c (target_read_memory): Make LEN argument as size_t.
564 * target.h (target_read_memory): Likewise.
566 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
568 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
570 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
572 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
573 BookE interface for PowerPC server processors if not available
576 2012-05-31 Keith Seitz <keiths@redhat.com>
578 * linespec.c (decode_objc): Add cleanup to free
580 (find_linespec_symbols): Add cleanup to free CLASSES.
581 * symfile.c (find_separate_debug_file_by_debuglink): Add
582 cleanup to free DEBUGLINK.
583 * ui-out.c (clear_header_list): No need to check if
584 HEADER_NEXT.COLHDR is NULL.
585 Free HEADER_NEXT.COL_NAME.
587 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
589 * ada-lang.c (standard_lookup): Prevent uninitialized variable
592 2012-05-30 Jeff Kenton <jkenton@tilera.com>
594 * configure.host (gdb_host_cpu): Handle tilegx*.
595 (gdb_host): Handle tilegx-*-linux*.
596 * tilegx-linux-nat.c: New file.
597 * config/tilegx/linux.mh: New file.
599 2012-05-30 Jeff Kenton <jkenton@tilera.com>
601 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
603 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
605 * configure.tgt: Handle tilegx-*-linux*.
606 * tilegx-tdep.h: New file.
607 * tilegx-tdep.c: New file.
608 * tilegx-linux-tdep.c: New file.
609 * regformats/reg-tilegx.dat: New file.
611 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
613 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
614 accounting of hw watchpoints on ppc.
616 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
618 * source.c (openp): Expand tilde in path entries.
620 2012-05-29 Doug Evans <dje@google.com>
622 * buildsym.c (block_compar): Fix comment.
623 (end_symtab): Fix and clarify some comments.
625 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
626 cleanup_undefined_types.
627 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
630 2012-05-29 Tom Tromey <tromey@redhat.com>
632 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
634 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
635 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
637 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
640 2012-05-29 Tristan Gingold <gingold@adacore.com>
642 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
643 (struct darwin_info): ... New struct.
644 (solib_darwin_pspace_data): New variable.
645 (darwin_pspace_data_cleanup): New function.
646 (get_darwin_info): Likewise.
647 (darwin_dyld_version_ok, darwin_load_image_infos)
648 (darwin_solib_get_all_image_info_addr_at_init)
649 (darwin_solib_read_all_image_info_addr): Add info argument.
651 (darwin_current_sos): Use per pspace structure.
652 (darwin_solib_create_inferior_hook): Likewise.
653 (darwin_clear_solib): Likewise.
654 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
656 2012-05-28 Pedro Alves <palves@redhat.com>
658 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
659 block that uses them. Clear ecss before handling each event.
661 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
663 * solib-svr4.c (svr4_current_sos): New comment on
664 svr4_current_sos_via_xfer_libraries fall back.
666 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
668 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
669 it as a fallback for TYPE_IS_OPAQUE.
670 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
671 symbols for lookup_symbol.
673 2012-05-24 John Steele Scott <toojays@toojays.net>
675 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
676 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
677 (producer_is_gxx_lt_4_6): Move the checking and caching to...
678 (check_producer): ... this new function, which also checks for ICC
679 and caches the result.
680 (producer_is_icc): New function.
681 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
684 2012-05-24 Pedro Alves <palves@redhat.com>
688 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
689 (default_gdb_signal_to_target): ... this. Add comment.
690 (default_gdb_signal_from_host): Rename to ...
691 (default_gdb_signal_from_target): ... this. Add comment.
692 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
693 (default_gdb_signal_to_target): ... this.
694 (default_gdb_signal_from_host): Rename to ...
695 (default_gdb_signal_from_target): ... this.
696 * corelow.c (core_open): Adjust to naming change. Replace comment.
697 * gdbarch.sh (gdb_signal_from_host): Rename to ...
698 (gdb_signal_from_target): ... this. Adjust to
699 default_gdb_signal_from_host naming change. Extend comment.
700 (gdb_signal_to_host): Rename to ...
701 (gdb_signal_to_target): ... this. Adjust to
702 default_gdb_signal_to_host naming change.
703 * gdbarch.h, gdbarch.c: Renegerate.
705 2012-05-24 Pedro Alves <palves@redhat.com>
709 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
711 2012-05-24 Pedro Alves <palves@redhat.com>
715 Replace target_signal with gdb_signal throughout.
717 2012-05-24 Pedro Alves <palves@redhat.com>
721 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
722 string, instead of reusing the va_list argument.
724 2012-05-24 Tom Tromey <tromey@redhat.com>
726 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
729 2012-05-23 Doug Evans <dje@google.com>
731 * symtab.c (search_symbols): Formatting fixes.
732 (print_symbol_info): Formatting fixes.
734 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
735 int64_t change to leb128 API.
736 (read_encoded_value, decode_frame_entry_1): Ditto.
737 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
738 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
739 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
740 (execute_stack_op): Ditto.
741 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
742 (safe_read_uleb128, safe_read_sleb128): Ditto.
743 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
744 (dwarf2_compile_expr_to_ax): Ditto.
745 (locexpr_describe_location_piece): Ditto.
746 (disassemble_dwarf_expression): Ditto.
747 (locexpr_describe_location_1): Ditto.
749 2012-05-23 Stan Shebs <stan@codesourcery.com>
750 Kwok Cheung Yeung <kcy@codesourcery.com>
752 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
753 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
754 (mi-cmd-info.o): New rule.
755 * osdata.h (info_osdata_command): New declaration.
756 * osdata.c (info_osdata_command): Change to non-static.
757 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
758 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
759 * mi/mi-cmd-info.c: New file.
761 2012-05-23 Doug Evans <dje@google.com>
763 * symtab.c (search_symbols): Pass NULL for file_matcher to
764 expand_symtabs_matching if there are no files to match.
766 * gdbtypes.c (lookup_typename): Simplify.
768 2012-05-23 Pedro Alves <palves@redhat.com>
770 * arch-utils.h (default_target_signal_to_host): Delete.
771 * arch-utils.c (default_target_signal_to_host): Delete.
772 * gdbarch.sh (target_signal_to_host): Remove.
773 * gdbarch.h, gdbarch.c: Regenerate.
775 2012-05-22 Doug Evans <dje@google.com>
777 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
779 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
780 (execute_cfa_program): Update to match API of leb128 functions.
781 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
783 (read_unsigned_leb128, read_signed_leb128): Delete.
784 (read_initial_length): Change type of buf argument to
786 (read_encoded_value): Update to match API of leb128 functions.
787 (decode_frame_entry): Change result to "const gdb_byte *", and
788 similarly for "start" parameter.
789 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
790 (dwarf2_build_frame_info): Change local frame_ptr to
792 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
793 read_uleb128, read_sleb128. All callers updated.
794 (safe_skip_leb128): New function.
795 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
796 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
797 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
798 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
799 read_uleb128, read_sleb128.
800 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
801 (execute_stack_op): Update to match API of leb128 functions.
802 * dwarf2expr.h: #include "leb128.h".
803 (read_uleb128, read_sleb128): Delete.
804 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
805 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
806 * dwarf2loc.c (debug_loc_kind): New enum.
807 (decode_debug_loc_addresses): New function.
808 (decode_debug_loc_dwo_addresses): New function.
809 (dwarf2_find_location_expression): Rewrite.
810 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
811 (locexpr_describe_location_piece): Ditto.
812 (disassemble_dwarf_expression): Ditto.
813 (locexpr_describe_location_1): Ditto.
814 (loclist_describe_location): Rewrite.
815 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
816 * dwarf2read.c (die_reader_specs): New member "buffer_end".
817 (dwarf2_section_buffer_overflow_complaint): Renamed from
818 dwarf2_macros_too_long_complaint. All callers updated.
819 (skip_leb128): Delete.
820 (init_cu_die_reader): Initialize reader->buffer_end.
821 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
822 (skip_form_bytes): New arg buffer_end. All callers updated.
823 Replace call to skip_leb128 with gdb_skip_leb128.
824 (skip_unknown_opcode): New arg mac_end. All callers updated.
825 (fill_in_loclist_baton): Initialize baton->from_dwo.
827 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
829 * mips-linux-nat.c (mips_linux_read_description): Use a more
830 verbose error message.
832 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
834 * NEWS: Add MIPS/Linux DSP support.
835 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
836 (SIGCONTEXT_DSPCTL): New macro.
837 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
838 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
839 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
840 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
841 (N64_SIGCONTEXT_HI3): Likewise.
842 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
843 (N64_SIGCONTEXT_LO3): Likewise.
844 (N64_SIGCONTEXT_DSPCTL): Likewise.
845 (N64_SIGCONTEXT_FPCSR): Clarify definition.
846 (mips_linux_o32_sigframe_init): Handle DSP registers.
847 (mips_linux_n32n64_sigframe_init): Likewise.
849 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
851 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
854 2012-05-22 Pedro Alves <palves@redhat.com>
856 * target.h (store_waitstatus): Move declaration ...
857 * inf-child.h (store_waitstatus): ... here.
858 * target.c: Move inclusion of gdb_wait.h, and ...
859 (store_waitstatus): ... this ...
860 * inf-child.c: ... here.
861 * linux-nat.c: Include inf-child.h.
862 * rs6000-nat.c: Include inf-child.h.
863 * spu-linux-nat.c: Include inf-child.h.
865 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
867 * tracepoint.c (start_tracing): Add missing i18n markup.
868 (stop_tracing, set_trace_user): Ditto.
869 (set_trace_notes, set_trace_stop_notes): Ditto.
871 2012-05-21 Tom Tromey <tromey@redhat.com>
874 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
876 * value.h (value_cast_pointers): Update.
877 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
878 (value_cast): Update.
879 (update_search_result): New function.
880 (do_search_struct_field): New, from search_struct_field. Check
881 for ambiguous results.
882 (search_struct_field): Rewrite.
883 * infcall.c (value_arg_coerce): Update.
884 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
886 * ada-lang.c (ada_convert_actual): Update.
888 2012-05-21 Tom Tromey <tromey@redhat.com>
890 * macroexp.c (macro_stringify): Terminate the string.
892 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
894 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
896 * auto-load.c (auto_load_expand_dir_vars): New function.
897 (auto_load_safe_path_vec_update): Use it, remove the
898 substitute_path_component call thanks to it.
899 (auto_load_objfile_script): Remove the debug_file_directory processing.
900 Use auto_load_expand_dir_vars, remove the substitute_path_component
902 * configure: Regenerate.
903 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
904 path. Escape $ also for $debugdir.
905 (--with_auto_load_safe_path): Escape $ also for $debugdir.
906 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
908 2012-05-20 Doug Evans <dje@google.com>
910 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
911 before use. Check for symtab->includes == NULL before scanning it.
913 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
915 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
917 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
919 * NEWS: Add microMIPS support and "set mips compression",
920 "show mips compression" commands.
921 * mips-tdep.h (mips_isa): New enum.
922 (gdbarch_tdep): Add mips_isa.
923 (mips_pc_is_mips16): Update prototype.
924 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
925 * mips-tdep.c (mips_compression_mips16): New variable.
926 (mips_compression_micromips): Likewise.
927 (mips_compression_strings): Likewise.
928 (mips_compression_string): Likewise.
929 (is_mips16_isa, is_micromips_isa): New functions.
930 (is_mips16_addr): Rename to...
931 (is_compact_addr): ... this.
932 (unmake_mips16_addr): Likewise to...
933 (unmake_compact_addr): ... this.
934 (make_mips16_addr): Likewise to...
935 (make_compact_addr): ... this.
936 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
938 (mips_elf_make_msymbol_special): Handle microMIPS code.
939 (msymbol_is_special): Rename to...
940 (msymbol_is_mips16): ... this.
941 (mips_make_symbol_special, mips_pc_is_mips16): Update
943 (msymbol_is_mips, msymbol_is_micromips): New functions.
944 (mips16_to_32_reg): Rename to...
945 (mips_reg3_to_reg): ... this.
946 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
947 (mips_pc_isa): Likewise.
948 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
950 (mips_fetch_instruction): Pass return status instead of printing
951 an error message if requested. Handle microMIPS code. Bail out
953 (micromips_op): New macro.
954 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
955 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
956 (b6s4_op, b7s3_reg): Likewise.
957 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
958 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
959 (mips_insn_size): New function.
960 (mips32_next_pc): Update mips_fetch_instruction call.
961 (micromips_relative_offset7): New function.
962 (micromips_relative_offset10): Likewise.
963 (micromips_relative_offset16): Likewise.
964 (micromips_pc_insn_size): Likewise.
965 (micromips_bc1_pc): Likewise.
966 (micromips_next_pc): Likewise.
967 (unpack_mips16): Update mips_fetch_instruction call.
968 (extended_mips16_next_pc): Update according to change to
970 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
972 (mips16_scan_prologue): Update mips_fetch_instruction call.
973 Update according to change to mips16_to_32_reg.
974 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
975 (mips_insn16_frame_base_sniffer): Likewise.
976 (micromips_decode_imm9): New function.
977 (micromips_scan_prologue): Likewise.
978 (mips_micro_frame_cache): Likewise.
979 (mips_micro_frame_this_id): Likewise.
980 (mips_micro_frame_prev_register): Likewise.
981 (mips_micro_frame_sniffer): Likewise.
982 (mips_micro_frame_unwind): New variable.
983 (mips_micro_frame_base_address): New function.
984 (mips_micro_frame_base): New variable.
985 (mips_micro_frame_base_sniffer): New function.
986 (mips32_scan_prologue): Update mips_fetch_instruction call.
987 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
988 rather than for MIPS16.
989 (mips_insn32_frame_base_sniffer): Likewise.
990 (mips_addr_bits_remove): Handle microMIPS code.
991 (deal_with_atomic_sequence): Rename to...
992 (mips_deal_with_atomic_sequence): ... this. Update the type
993 of the variable used to hold an instruction. Remove the ISA bit
994 check. Update mips_fetch_instruction call.
995 (micromips_deal_with_atomic_sequence): New function.
996 (deal_with_atomic_sequence): Likewise.
997 (mips_about_to_return): Handle microMIPS code. Update
998 mips_fetch_instruction call.
999 (heuristic_proc_start): Check for the standard MIPS ISA rather
1000 than for MIPS16. Update mips_pc_is_mips16 and
1001 mips_fetch_instruction calls. Handle microMIPS code.
1002 (mips_push_dummy_code): Handle microMIPS code.
1003 (mips_eabi_push_dummy_call): Likewise.
1004 (mips_o32_return_value): Update mips_pc_is_mips16 call.
1005 (mips_o64_push_dummy_call): Handle microMIPS code.
1006 (mips_o64_return_value): Update mips_pc_is_mips16 call.
1007 (is_delayed): Remove function.
1008 (mips_single_step_through_delay): Replace the call to is_delayed
1009 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
1010 Handle microMIPS code.
1011 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
1013 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1015 (micromips_in_function_epilogue_p): New function.
1016 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1018 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1020 (gdb_print_insn_mips): Likewise.
1021 (mips_breakpoint_from_pc): Likewise.
1022 (mips_remote_breakpoint_from_pc): New function.
1023 (mips32_instruction_has_delay_slot): Simplify making use of the
1024 updated mips_fetch_instruction interface.
1025 (micromips_instruction_has_delay_slot): New function.
1026 (mips16_instruction_has_delay_slot): Simplify making use of the
1027 updated mips_fetch_instruction interface.
1028 (mips_adjust_breakpoint_address): Check for the standard MIPS
1029 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
1030 calls. Handle microMIPS code.
1031 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1032 (mips_skip_trampoline_code): Handle microMIPS code.
1033 (global_mips_compression): New function.
1034 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1035 file flags. Register the microMIPS remote breakpoint handler
1036 and heuristic frame unwinder.
1037 (show_mips_compression): New function.
1038 (_initialize_mips_tdep): Add the "set mips compression" and
1039 "show mips compression" commands.
1041 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
1046 * amd64-darwin-tdep.c:
1047 * arm-symbian-tdep.c:
1051 * bfin-linux-tdep.c:
1058 * dwarf2-frame-tailcall.c:
1087 * microblaze-tdep.c:
1088 * mips-linux-tdep.c:
1096 * python/py-finishbreakpoint.c:
1097 * python/py-inferior.c:
1098 * python/py-infthread.c:
1102 * remote-m32r-sdi.c:
1106 * rs6000-aix-tdep.c:
1132 * amd64-darwin-tdep.c:
1133 * arm-symbian-tdep.c:
1134 * arm-tdep.c: Delete unused variables.
1136 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1138 Rename $ddir to $datadir.
1139 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1140 * auto-load.c (auto_load_safe_path_vec_update)
1141 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1142 * configure: Regenerate.
1143 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1144 Likewise. Remove the 'use $ddir' help string.
1146 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1148 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1149 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1151 2012-05-18 Tom Tromey <tromey@redhat.com>
1154 * valprint.h (struct value_print_options) <symbol_print>: New
1156 * valprint.c (user_print_options): Add default for symbol_print.
1157 (show_symbol_print): New function.
1158 (generic_val_print): Respect symbol_print.
1159 (_initialize_valprint): Add "print symbol" setting.
1160 * f-valprint.c (f_val_print): Respect symbol_print.
1161 * c-valprint.c (c_val_print): Respect symbol_print.
1163 * printcmd.c (print_address_symbolic): Return int. Ignore some
1165 (print_address_demangle): Return int.
1166 * defs.h: (print_address_symbolic): Return int.
1167 * value.h (print_address_demangle): Return int.
1169 2012-05-18 Tom Tromey <tromey@redhat.com>
1171 * valprint.c (val_print_string): Don't print leading space.
1172 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1173 print space before string or vtbl.
1174 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1176 * jv-valprint.c (java_value_print): Print space before string.
1177 * go-valprint.c (print_go_string): Print space before string.
1178 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1179 space before string.
1180 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1181 space before string or vtbl.
1182 * auxv.c (fprint_target_auxv): Print space after address.
1184 2012-05-18 Tom Tromey <tromey@redhat.com>
1186 * printcmd.c (print_address_demangle): Remove special case for 0.
1188 2012-05-18 Tom Tromey <tromey@redhat.com>
1190 * printcmd.c (print_address_demangle): Add 'opts' argument.
1191 * p-valprint.c (pascal_val_print): Update.
1192 * jv-valprint.c (java_val_print): Update.
1194 * valprint.c (generic_val_print): Update.
1195 (print_function_pointer_address): Add 'options' argument. Remove
1196 'addressprint' argument. Update.
1197 * m2-valprint.c (print_unpacked_pointer): Update.
1198 * gnu-v3-abi.c (print_one_vtable): Update.
1199 (gnuv3_print_method_ptr): Update.
1200 * f-valprint.c (f_val_print): Update.
1201 * cp-valprint.c (cp_print_value_fields): Update.
1202 * valprint.h (print_function_pointer_address): Update.
1203 * c-valprint.c (c_val_print): Update.
1205 2012-05-18 Tom Tromey <tromey@redhat.com>
1207 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1208 directly corresponding to the found psymtab.
1209 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1210 (dw2_find_pc_sect_symtab): Use it.
1211 * block.h (blockvector_contains_pc): Declare.
1212 * block.c (find_block_in_blockvector): New function.
1213 (blockvector_for_pc_sect): Use it.
1214 (blockvector_contains_pc): New function.
1216 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1218 * mips-tdep.h (mips_write_pc): New prototype.
1219 * mips-tdep.c (mips_write_pc): Make external, add description.
1220 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1223 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1225 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1227 (mips_unwind_pc, mips_write_pc): Likewise.
1228 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1231 2012-05-17 Joel Brobecker <brobecker@adacore.com>
1233 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1234 proc_warn, proc_error, proc_get_status, proc_flags,
1235 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1236 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1237 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1238 proc_stop_process, proc_wait_for_stop, proc_run_process,
1239 proc_set_traced_signals, proc_set_traced_faults,
1240 proc_set_traced_sysentry, proc_set_traced_sysexit,
1241 proc_set_held_signals, proc_get_held_signals,
1242 proc_get_traced_signals, proc_get_traced_faults,
1243 proc_get_traced_sysentry, proc_get_traced_sysexit,
1244 proc_clear_current_fault, proc_set_current_signal,
1245 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1246 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1247 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1248 proc_get_current_thread, proc_get_current_thread,
1249 proc_get_current_thread, proc_update_threads,
1250 proc_update_threads, proc_update_threads, proc_update_threads,
1251 proc_iterate_over_threads, procfs_find_new_threads,
1252 procfs_pid_to_str): Make static. Remove advance declaration.
1253 (proc_cursig): Make static. Conditionalized defintion on
1254 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1255 (proc_syscall, proc_set_kill_on_last_close,
1256 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1257 proc_get_pending_signals, proc_get_signal_actions,
1258 proc_trace_signal, proc_ignore_signal): Delete.
1260 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1262 * coffread.c (cs_section_address): Passing proper argument for
1263 `bfd_get_section_vma'.
1264 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1265 `bfd_get_section_flags'.
1266 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1267 `bfd_get_section_vma'.
1269 2012-05-16 Tom Tromey <tromey@redhat.com>
1272 * macrotab.h: (macro_define_special): Declare.
1273 (enum macro_special_kind): New.
1274 (struct macro_definition) <argc, replacement>: Update comments.
1275 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1276 (macro_define_object_internal): New function.
1277 (macro_define_object): Use it.
1278 (macro_define_special): New function.
1279 (fixup_definition): New function.
1280 (macro_lookup_definition, foreach_macro_in_scope)
1281 (foreach_macro): Use fixup_definition.
1282 * macroexp.h (macro_stringify): Declare.
1283 * macroexp.c (free_buffer_return_text): New function.
1284 (stringify): Constify "arg".
1285 (macro_stringify): New function.
1286 * dwarf2read.c (macro_start_file): Call macro_define_special.
1288 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1289 Maciej W. Rozycki <macro@mips.com>
1291 * breakpoint.h (bp_location): Add related_address member.
1292 * inferior.h (get_return_value): Take a pointer to struct value
1293 instead of struct type for the function requested.
1294 * value.h (using_struct_return): Likewise.
1295 * gdbarch.sh (return_value): Take a pointer to struct value
1296 instead of struct type for the function requested.
1297 * breakpoint.c (set_breakpoint_location_function): Initialize
1298 related_address for bp_gnu_ifunc_resolver breakpoints.
1299 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1300 requested function's address to gdbarch_return_value.
1301 * eval.c (evaluate_subexp_standard): Pass the requested
1302 function's address to using_struct_return.
1303 * infcall.c (call_function_by_hand): Pass the requested
1304 function's address to using_struct_return and
1305 gdbarch_return_value.
1306 * infcmd.c (get_return_value): Take a pointer to struct value
1307 instead of struct type for the function requested.
1308 (print_return_value): Update accordingly.
1309 (finish_command_continuation): Likewise.
1310 * stack.c (return_command): Pass the requested function's
1311 address to using_struct_return and gdbarch_return_value.
1312 * value.c (using_struct_return): Take a pointer to struct value
1313 instead of struct type for the function requested. Pass the
1314 requested function's address to gdbarch_return_value.
1315 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1316 New function_value member, replacing function_type.
1317 (bpfinishpy_dealloc): Update accordingly.
1318 (bpfinishpy_pre_stop_hook): Likewise.
1319 (bpfinishpy_init): Likewise. Record the requested function's
1321 * mips-tdep.c (mips_fval_reg): New enum.
1322 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1323 words put in GP registers.
1324 (mips_o64_push_dummy_call): Update a comment.
1325 (mips_o32_return_value): Take a pointer to struct value instead
1326 of struct type for the function requested and use it to check if
1327 using the MIPS16 calling convention. Return the designated
1328 general purpose registers for floating-point values returned in
1330 (mips_o64_return_value): Likewise.
1331 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1332 (ppc_sysv_abi_broken_return_value): Likewise.
1333 (ppc64_sysv_abi_return_value): Likewise.
1334 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1335 value instead of struct type for the function requested.
1336 * amd64-tdep.c (amd64_return_value): Likewise.
1337 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1338 * arm-tdep.c (arm_return_value): Likewise.
1339 * avr-tdep.c (avr_return_value): Likewise.
1340 * bfin-tdep.c (bfin_return_value): Likewise.
1341 * cris-tdep.c (cris_return_value): Likewise.
1342 * frv-tdep.c (frv_return_value): Likewise.
1343 * h8300-tdep.c (h8300_return_value): Likewise.
1344 (h8300h_return_value): Likewise.
1345 * hppa-tdep.c (hppa32_return_value): Likewise.
1346 (hppa64_return_value): Likewise.
1347 * i386-tdep.c (i386_return_value): Likewise.
1348 * ia64-tdep.c (ia64_return_value): Likewise.
1349 * iq2000-tdep.c (iq2000_return_value): Likewise.
1350 * lm32-tdep.c (lm32_return_value): Likewise.
1351 * m32c-tdep.c (m32c_return_value): Likewise.
1352 * m32r-tdep.c (m32r_return_value): Likewise.
1353 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1354 * m68k-tdep.c (m68k_return_value): Likewise.
1355 (m68k_svr4_return_value): Likewise.
1356 * m88k-tdep.c (m88k_return_value): Likewise.
1357 * mep-tdep.c (mep_return_value): Likewise.
1358 * microblaze-tdep.c (microblaze_return_value): Likewise.
1359 * mn10300-tdep.c (mn10300_return_value): Likewise.
1360 * moxie-tdep.c (moxie_return_value): Likewise.
1361 * mt-tdep.c (mt_return_value): Likewise.
1362 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1363 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1364 (ppc_sysv_abi_broken_return_value): Likewise.
1365 (ppc64_sysv_abi_return_value): Likewise.
1366 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1367 * rl78-tdep.c (rl78_return_value): Likewise.
1368 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1369 * rx-tdep.c (rx_return_value): Likewise.
1370 * s390-tdep.c (s390_return_value): Likewise.
1371 * score-tdep.c (score_return_value): Likewise.
1372 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1373 (sh_return_value_fpu): Likewise.
1374 * sh64-tdep.c (sh64_return_value): Likewise.
1375 * sparc-tdep.c (sparc32_return_value): Likewise.
1376 * sparc64-tdep.c (sparc64_return_value): Likewise.
1377 * spu-tdep.c (spu_return_value): Likewise.
1378 * tic6x-tdep.c (tic6x_return_value): Likewise.
1379 * v850-tdep.c (v850_return_value): Likewise.
1380 * vax-tdep.c (vax_return_value): Likewise.
1381 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1382 * xtensa-tdep.c (xtensa_return_value): Likewise.
1383 * gdbarch.c: Regenerate.
1384 * gdbarch.h: Regenerate.
1386 2012-05-15 Tom Tromey <tromey@redhat.com>
1388 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1390 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1392 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1393 of command in two error message.
1395 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1397 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1399 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1401 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1403 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1405 * NEWS (show auto-load scripts-directory): Add forgotten command.
1407 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1409 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1412 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1414 * amd64-tdep.c: Include features/i386/x32.c and
1415 features/i386/x32-avx.c.
1416 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1417 initialize_tdesc_x32_avx.
1419 2012-05-14 Stan Shebs <stan@codesourcery.com>
1422 * breakpoint.h (enum bptype): New type bp_dprintf.
1423 (struct breakpoint): New field extra_string.
1424 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1425 (create_breakpoint): Add extra_string arg.
1426 * breakpoint.c (dprintf_breakpoint_ops): New.
1427 (is_breakpoint): Add bp_dprintf.
1428 (bpstat_what): Add dprintf case.
1429 (bptype_string): Ditto.
1430 (print_one_breakpoint_location): Ditto.
1431 (init_bp_location): Ditto.
1432 (bkpt_print_mention): Ditto.
1433 (dprintf_style_enums): New array.
1434 (dprintf_style): New global.
1435 (dprintf_function): New global.
1436 (dprintf_channel): New global.
1437 (update_dprintf_command_list): New function.
1438 (update_dprintf_commands): New function.
1439 (init_breakpoint_sal): Add extra_string argument, handle it.
1440 (create_breakpoint_sal): Add extra_string argument.
1441 (create_breakpoints_sal): Add extra_string argument, update callers.
1442 (find_condition_and_thread): Add extra argument.
1443 (create_breakpoint): Add extra_string argument, record it.
1444 (dprintf_command): New function.
1445 (break_command_1): Add arg to create_breakpoint call.
1446 (handle_gnu_v3_exceptions): Ditto.
1447 (trace_command): Ditto.
1448 (ftrace_command): Ditto.
1449 (strace_command): Ditto.
1450 (bkpt_print_mention): Add dprintf case.
1451 (create_breakpoint_sal_default): Add extra_string argument.
1452 (_initialize_breakpoint): Add new commands.
1453 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1454 * python/py-breakpoint.c (bppy_init): Ditto.
1455 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1457 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1459 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1461 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1463 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1466 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1468 Add a new function gdb.find_pc_line to the Python API.
1469 * NEWS (Python Scripting): Add entry about the new function.
1470 * python/python.c (gdbpy_find_pc_line): New function which
1471 implements gdb.find_pc_line.
1472 (GdbMethods): Add entry for the new function.
1474 2012-05-12 Pedro Alves <palves@redhat.com>
1476 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1477 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1479 2012-05-12 Eli Zaretskii <eliz@gnu.org>
1481 * inferior.c: Include completer.h
1482 (initialize_inferiors): Set completer of add-inferior to
1485 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1487 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1488 gdbarch_ptr_bit for x32 core dump.
1490 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1492 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1493 and features/i386/x32-avx-linux.c.
1495 2012-05-11 Stan Shebs <stan@codesourcery.com>
1496 Kwok Cheung Yeung <kcy@codesourcery.com>
1498 * NEWS: Describe new info os commands.
1499 * common/linux-osdata.c (PID_T, TIME_T): Define.
1500 (MAX_PID_T_STRLEN): New.
1501 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1503 (command_from_pid): Add comment. Change to use PID_T.
1504 (commandline_from_pid): Change to use PID_T.
1505 (user_from_pid): Add comment.
1506 (get_process_owner): Add comment. Change to use PID_T and
1508 (get_number_of_cpu_cores): Add comment.
1509 (get_cores_used_by_process): Add comment. Change to use PID_T and
1511 (linux_xfer_osdata_processes): Change to use PID_T and
1513 (compare_processes): New function.
1514 (linux_xfer_osdata_processgroups): New function.
1515 (linux_xfer_osdata_threads): Change to use PID_T.
1516 (linux_xfer_osdata_fds): New function.
1517 (format_socket_state, print_sockets): New functions.
1518 (union socket_addr): New union.
1519 (linux_xfer_osdata_isockets): New function.
1520 (time_from_time_t, group_from_gid): New functions.
1521 (linux_xfer_osdata_shm): New function.
1522 (linux_xfer_osdata_sem): New function.
1523 (linux_xfer_osdata_msg): New function.
1524 (linux_xfer_osdata_modules): New function.
1525 (osdata_table): Add new entries.
1526 * common/buffer.c (buffer_xml_printf): Add support for long and
1527 long long format specifiers.
1529 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1531 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1532 (tdesc_x32_avx_linux): Likewise.
1534 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1536 Implement multi-component --with-auto-load-dir.
1537 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1539 (--with-auto-load-safe-path): Update the default value description.
1540 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1542 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1543 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1544 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1545 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1546 "set auto-load scripts-directory".
1547 * config.in: Regenerate.
1548 * configure: Regenerate.
1549 * configure.ac (--with-auto-load-dir): New configure option.
1550 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1552 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1554 Provide $ddir substitution for --with-auto-load-safe-path.
1555 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1557 * auto-load.c: Include observer.h.
1558 (auto_load_safe_path_vec_update): Call substitute_path_component for
1559 each component. New variable ddir_subst.
1560 (auto_load_gdb_datadir_changed): New function.
1561 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1562 AUTO_LOAD_SAFE_PATH. New comment.
1563 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1564 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1565 * config.in: Regenerate.
1566 * configure: Regenerate.
1567 * configure.ac (--auto-load-safe-path): Rename
1568 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1569 GDB_DATADIR/auto-load.
1570 * defs.h (substitute_path_component): New declaration.
1571 * top.c: Include observer.h.
1572 (set_gdb_datadir): New function.
1573 (init_main): Install it for "set data-directory".
1574 * utils.c (substitute_path_component): New function.
1576 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1578 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1579 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1580 DEBUG_FILE_DIRECTORY. Handle multiple components of
1581 DEBUG_FILE_DIRECTORY.
1583 2012-05-10 Tom Tromey <tromey@redhat.com>
1585 * dwarf2read.c (recursively_write_psymbols): New function.
1586 (write_psymtabs_to_index): Use it.
1588 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1590 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1591 (load_partial_comp_unit): Update.
1592 (queue_comp_unit): Add argument 'pretend_language'.
1593 (process_queue): Update.
1594 (psymtab_to_symtab_1): Skip dependencies that have a user.
1595 (load_partial_comp_unit_reader): Give meaning to the 'data'
1597 (load_full_comp_unit): Add 'pretend_language' argument.
1598 (process_full_comp_unit): Add 'pretend_language' argument. Set
1600 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1602 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1603 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1605 (prepare_one_comp_unit): Add 'pretend_language' argument.
1607 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1608 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1609 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1610 (dw2_do_instantiate_symtab): Check whether symtab was read in
1612 (dw2_instantiate_symtab): Add assertion. Call
1613 process_cu_includes.
1614 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1615 (partial_symtab_p): New typedef.
1616 (set_partial_user): New function.
1617 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1618 (scan_partial_symbols): Add imported CU to imported_symtabs.
1619 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1620 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1621 (get_symtab, recursively_compute_inclusions)
1622 (compute_symtab_includes, process_cu_includes)
1623 (process_imported_unit_die): New functions.
1624 (process_die) <DW_TAG_imported_unit>: New case.
1625 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1627 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1629 (struct partial_die_info) <locdesc>: Remove.
1631 (process_psymtab_comp_unit): Add 'read_partial' argument.
1633 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1634 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1635 (add_partial_symbol): Update.
1636 (process_die): Handle DW_TAG_partial_unit.
1637 (read_file_scope): Update comment.
1638 (load_partial_dies): Handle DW_TAG_imported_unit.
1639 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1640 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1642 2012-05-10 Tom Tromey <tromey@redhat.com>
1644 * cc-with-dwz.sh: New file.
1646 2012-05-10 Tom Tromey <tromey@redhat.com>
1648 * symtab.h (struct symtab) <includes, user>: New fields.
1649 * block.h (struct block_iterator) <d, idx, which>: New fields.
1650 * block.c (initialize_block_iterator, find_iterator_symtab)
1651 (block_iterator_step, block_iter_name_step)
1652 (block_iter_match_step): New functions.
1653 (block_iterator_first, block_iterator_next)
1654 (block_iter_name_first, block_iter_name_next)
1655 (block_iter_match_first, block_iter_match_next): Rewrite.
1656 (get_block_symtab): New function.
1658 2012-05-10 Tom Tromey <tromey@redhat.com>
1660 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
1662 * jit.c (finalize_symtab): Use allocate_global_block,
1664 * buildsym.c (finish_block_internal): New function, from old
1666 (finish_block): Rewrite.
1667 (end_symtab): Use finish_block_internal, set_block_symtab.
1668 * block.h (struct global_block): New.
1669 (allocate_global_block, set_block_symtab): Declare.
1670 * block.c (allocate_global_block, set_block_symtab): New
1673 2012-05-10 Tom Tromey <tromey@redhat.com>
1675 * psymtab.c (partial_map_expand_apply): Add assertion.
1676 (partial_map_symtabs_matching_filename): Skip included psymtabs.
1677 (psymtab_to_symtab): Find unshared psymtab.
1678 (dump_psymtab): Print including psymtabs.
1679 (recursively_search_psymtabs): New function.
1680 (expand_symtabs_matching_via_partial): Use it.
1681 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
1683 (enum psymtab_search_status): New.
1685 2012-05-10 Tom Tromey <tromey@redhat.com>
1687 * tracepoint.c (scope_info): Update.
1688 * symtab.c (lookup_block_symbol, iterate_over_symbols)
1689 (find_pc_sect_symtab, search_symbols)
1690 (default_make_symbol_completion_list_break_on)
1691 (make_file_symbol_completion_list): Update.
1692 * symmisc.c (dump_symtab_1): Update.
1693 * stack.c (print_frame_args, iterate_over_block_locals)
1694 (print_frame_labels, iterate_over_block_arg_vars): Update.
1695 * python/py-block.c (block_object) <dict>: Remove.
1697 <iter>: Change type.
1698 (blpy_iter): Update.
1699 (blpy_block_syms_iternext): Update.
1700 * psymtab.c (map_block): Use block iterators.
1701 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
1702 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1703 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
1704 * infrun.c (check_exception_resume): Update.
1705 * cp-support.c (make_symbol_overload_list_block): Update.
1706 * coffread.c (patch_opaque_types): Update.
1707 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
1708 * block.h (struct block_iterator): New.
1709 (block_iterator_first, block_iterator_next, block_iter_name_first)
1710 (block_iter_name_next, block_iter_match_first)
1711 (block_iter_match_next): Declare.
1712 (ALL_BLOCK_SYMBOLS): Redefine.
1713 * block.c (block_iterator_first, block_iterator_next)
1714 (block_iter_name_first, block_iter_name_next)
1715 (block_iter_match_first, block_iter_match_next): New functions.
1716 * ada-lang.c (ada_add_block_symbols)
1717 (ada_make_symbol_completion_list): Use block iterator.
1719 2012-05-10 Tom Tromey <tromey@redhat.com>
1721 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
1722 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
1723 (lookup_partial_symbol, find_last_source_symtab_from_partial)
1724 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
1725 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
1728 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1730 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
1731 print-file-var-lib2.c, print-file-var-main.c and
1732 print-file-var.exp (located in gdb/testsuite/gdb.base).
1734 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1736 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1737 try locating the symbol in the symbol's own objfile first, before
1738 extending the search to all objfiles.
1739 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1740 out of lookup_symbol_aux_symtabs.
1741 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
1742 Replace extracted-out code by call to lookup_symbol_aux_objfile.
1743 Do not search EXCLUDE_OBJFILE.
1744 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
1745 (lookup_symbol_global): Search for matches in the block's objfile
1746 first, before searching all other objfiles.
1748 2012-05-10 Tristan Gingold <gingold@adacore.com>
1750 * printcmd.c (set_command): Add pre/post inc/dec.
1752 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
1754 * gdb.1: Document -ex option.
1756 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1758 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
1759 * inferior.h (AT_SYMBOL): Delete.
1761 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1763 * mips-tdep.c (mips_push_dummy_code): New function.
1764 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
1765 ON_STACK and install mips_push_dummy_code as our gdbarch
1766 push_dummy_code routine.
1768 2012-05-09 Pedro Alves <palves@redhat.com>
1770 * target.c (set_maintenance_target_async_permitted): Rename to ...
1771 (set_target_async_command): ... this.
1772 (show_maintenance_target_async_permitted): Rename to ...
1773 (show_target_async_command): ... this.
1774 (initialize_targets): Adjust.
1776 2012-05-08 Doug Evans <dje@google.com>
1778 * go-exp.y (classify_name): Add missing assignment of fields of
1781 2012-05-08 Eli Zaretskii <eliz@gnu.org>
1783 Display the ">" prompt in interactive mode while reading canned
1784 commands, even when the current interpreter is MI.
1786 * interps.c (interp_set_temp): New function.
1788 * interps.h (interp_set_temp): Add prototype.
1790 * cli/cli-script.c (restore_interp): New cleanup function.
1791 (read_command_lines): Temporarily override the current interpreter
1792 with CLI and arrange for restoring the original one.
1794 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
1796 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
1798 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
1800 * probe.c (parse_probes): Move conditional to check for
1801 debuginfo files from here...
1802 * stap-probe.c (stap_get_probes): ... to here.
1804 2012-05-07 Mark Kettenis <kettenis@gnu.org>
1805 H.J. Lu <hongjiu.lu@intel.com>
1807 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
1808 `movl %esp, %ebp' for the X32 ABI.
1810 2012-05-07 Tom Tromey <tromey@redhat.com>
1812 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
1814 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
1815 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
1816 (dwarf_stack_op_name): Remove.
1817 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
1818 (decode_locdesc): Use get_DW_OP_name.
1819 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
1820 (dwarf2_compile_expr_to_ax): Likewise.
1821 (disassemble_dwarf_expression): Likewise.
1822 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
1824 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
1826 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
1827 (sh_linux_sigtramp_cache): New function.
1828 (sh_linux_sigreturn_init): New function.
1829 (sh_linux_rt_sigreturn_init): New function.
1830 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
1832 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
1834 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
1835 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
1836 (sh_linux_init_abi): Add init calls to register new tramp_frame
1837 definitions under 32-bit SH, update comments.
1839 2012-05-07 Pedro Alves <palves@redhat.com>
1843 * amd64-linux-tdep.c: Include glibc-tdep.h.
1844 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
1845 gdbarch_skip_solib_resolver callback.
1847 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1849 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
1850 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
1851 (show_auto_load_safe_path): Check any-directory by comparison with "/".
1852 (add_auto_load_safe_path): Change the error message.
1853 (_initialize_auto_load): Change the "safe-path" help text.
1854 * configure: Regenerate
1855 * configure.ac (--without-auto-load-safe-path): Set
1856 WITH_AUTO_LOAD_SAFE_PATH to /.
1858 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
1860 * stap-probe.h: Do not include unecessary `probe.h'.
1862 2012-05-05 Alan Modra <amodra@gmail.com>
1864 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
1865 bfd_und_section_ptr.
1866 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
1867 and bfd_com_section_ptr.
1869 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1871 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
1873 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1875 * windows-nat.h (segment_register_p_ftype): New typedef.
1876 (windows_set_segment_register_p): Add declaration.
1877 * windows-nat.c (segment_register_p): New static global.
1878 (windows_set_segment_register_p): New function.
1879 (do_windows_fetch_inferior_registers): Add special handling
1880 for segment registers.
1881 * amd64-windows-nat.c: #include "amd64-tdep.h".
1882 (amd64_windows_segment_register_p): New function.
1883 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
1884 * i386-windows-nat.c: #include "i386-tdep.h".
1885 (i386_windows_segment_register_p): New function.
1886 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
1888 2012-05-04 Tristan Gingold <gingold@adacore.com>
1890 * printcmd.c (set_command): Emit a warning if the expression is not
1893 2012-05-03 Joel Brobecker <brobecker@adacore.com>
1895 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
1898 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
1900 * stap-probe.c (stap_is_operator): Change declaration.
1901 (stap_get_opcode): Change return value.
1902 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
1903 `stap_parse_argument_1'.
1905 2012-05-03 Pedro Alves <pedro@codesourcery.com>
1907 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
1910 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
1912 Add two new methods global_block and static_block to gdb.Symtab
1914 * NEWS (Python scripting): Add entry about the new methods.
1915 * python/py-symtab.c (stpy_global_block): New function which
1916 implements the gdb.Symtab.global_block() method.
1917 (stpy_static_block): New function which implements the
1918 gdb.Symtab.static_block() method.
1919 (symtab_object_methods): Add entries for the two new methods.
1921 2012-05-03 Doug Evans <dje@google.com>
1923 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
1926 2012-05-03 Yao Qi <yao@codesourcery.com>
1928 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
1930 (i386_process_record): Ditto.
1932 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1934 * infcall.c (unwind_on_signal_p): Make static.
1936 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1938 * sol-thread.c (solaris_pid_to_str): Make static.
1939 (_initialize_sol_thread): Add prototype.
1941 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1943 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
1945 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
1947 * MAINTAINERS: Remove myself.
1949 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1951 Fix --without-auto-load-safe-path for MS-Windows host platform.
1952 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
1954 2012-05-02 Eli Zaretskii <eliz@gnu.org>
1956 * gdb_curses.h: Undefine KEY_EVENT before including curses
1957 headers. Move "#undef MOUSE_MOVED" before any curses header
1960 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1962 * features/i386/i386-mmx-linux.c: Regenerate.
1963 * features/rs6000/powerpc-32.c: Likewise.
1964 * features/rs6000/powerpc-32l.c: Likewise.
1965 * features/rs6000/powerpc-403.c: Likewise.
1966 * features/rs6000/powerpc-403gc.c: Likewise.
1967 * features/rs6000/powerpc-405.c: Likewise.
1968 * features/rs6000/powerpc-505.c: Likewise.
1969 * features/rs6000/powerpc-601.c: Likewise.
1970 * features/rs6000/powerpc-602.c: Likewise.
1971 * features/rs6000/powerpc-603.c: Likewise.
1972 * features/rs6000/powerpc-604.c: Likewise.
1973 * features/rs6000/powerpc-64.c: Likewise.
1974 * features/rs6000/powerpc-64l.c: Likewise.
1975 * features/rs6000/powerpc-750.c: Likewise.
1976 * features/rs6000/powerpc-860.c: Likewise.
1977 * features/rs6000/powerpc-e500.c: Likewise.
1978 * features/rs6000/powerpc-e500l.c: Likewise.
1979 * features/rs6000/powerpc-isa205-32l.c: Likewise.
1980 * features/rs6000/powerpc-isa205-64l.c: Likewise.
1981 * features/rs6000/rs6000.c: Likewise.
1983 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1985 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
1987 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
1988 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
1989 (stap_parse_argument) <e>: Likewise.
1990 (handle_stap_probe) <byte_order>: Likewise.
1992 2012-04-30 Doug Evans <dje@google.com>
1994 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
1995 init_and_read_dies_worker. All callers updated.
1996 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
1997 replaced with init_cutu_and_read_dies.
1998 (load_partial_comp_unit): Pass 1 for use_existing_cu.
1999 (find_partial_die): Remove FIXME. Don't free current CU.
2001 2012-04-30 Sterling Augustine <saugustine@google.com>
2003 * contrib: New directory.
2004 * contrib/test_pubnames_and_indexes.py: New file.
2006 2012-04-30 Doug Evans <dje@google.com>
2008 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2009 All callers updated.
2010 (init_cu_die_reader): Verify the section is non-empty.
2011 (dwarf_decode_line_header): Don't dereference section->asection
2012 until we know the section is present.
2014 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
2016 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2019 2012-04-29 Yao Qi <yao@codesourcery.com>
2021 * gdb-code-style.el: New hook gdb-markup-hook
2022 and gdb-comment-hook.
2024 2012-04-28 Doug Evans <dje@google.com>
2026 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
2027 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2029 * symfile.h (dwarf2_debug_sections): New member addr.
2030 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2031 (ctx_no_get_addr_index): New function.
2032 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2033 (ctx_no_get_addr_index): Declare.
2034 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2035 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2036 (dwarf_expr_ctx_funcs): Update.
2037 (needs_get_addr_index): New function.
2038 (needs_frame_ctx_funcs): Update.
2039 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2040 * dwarf2read.c: #include "gdbcore.h".
2041 (dwarf2_per_objfile): New members addr, dwo_files.
2042 (dwarf2_elf_names): Add entry for addr.
2043 (struct dwo_section_names): New type.
2044 (dwo_section_names): New static global.
2045 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2046 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2047 old debug_types_section member updated to use this.
2048 Rename member debug_types_section to info_or_types_section,
2050 (signatured_type): Rename member type_offset to type_offset_in_tu,
2051 all uses updated. New member type_offset_in_section.
2052 (struct dwo_sections): New type.
2053 (struct dwo_unit): New type.
2054 (struct dwo_file): New type.
2055 (die_reader_specs): New member dwo_file.
2056 (dwarf2_locate_sections): Watch for .debug_addr.
2057 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2058 (dwarf2_read_section): Get bfd of section from bfd's asection,
2060 (create_cus_from_index): Initialize the_cu->info_or_types_section.
2061 (create_signatured_type_table_from_index): Initialize
2062 sig_type->info_or_types_section.
2063 (dw2_get_file_names): Statement lists for type units with DWO files
2064 live in the DWO file.
2065 (create_debug_types_hash_table): New function.
2066 (create_all_type_units): Rewrite.
2067 (init_cu_die_reader): New arg dwo_file, all callers updated.
2068 (init_and_read_dies_worker): Get section from
2069 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
2070 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2071 continue reading the CU/TU from there.
2072 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2073 updated. Get section from this_cu->info_or_types_section.
2074 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2075 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2076 DW_FORM_GNU_str_index.
2077 (hash_dwo_file, eq_dwo_file): New functions.
2078 (allocate_dwo_file_hash_table): New function.
2079 (hash_dwo_unit, eq_dwo_unit): New functions.
2080 (allocate_dwo_unit_table): New function.
2081 (dwarf2_locate_dwo_sections): New function.
2082 (struct create_dwo_info_table_data): New type.
2083 (create_debug_info_hash_table_reader): New function.
2084 (create_debug_info_hash_table): New function.
2085 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2086 (lookup_dwo_file): New function.
2087 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2088 (free_dwo_file, free_dwo_file_cleanup): New functions.
2089 (free_dwo_file_from_slot, free_dwo_files): New functions.
2090 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2091 (dwarf2_record_block_ranges): Ditto.
2092 (read_partial_die): Ditto.
2093 (process_enumeration_scope): Update to use type_offset_in_section.
2094 (read_full_die_1): New function.
2095 (read_full_die): Rewrite.
2096 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2097 DW_FORM_GNU_str_index.
2098 (read_addr_index_1, read_addr_index): New functions.
2099 (read_addr_index_from_leb128): New function.
2100 (struct dwarf2_read_addr_index_data): New type.
2101 (dwarf2_read_addr_index_reader): New function.
2102 (dwarf2_read_addr_index): New function.
2103 (read_str_index): New function.
2104 (leb128_size): New function.
2105 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2106 If processing a type unit from a DWO file, get the line section
2108 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2109 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2110 DW_FORM_GNU_str_index.
2111 (lookup_die_type): Check whether section offset of type's die is
2112 known before looking it up. Remove assert. Condition can
2113 legimately happen for inter-cu type references.
2114 (dwarf_attr_name): Handle Fission attributes.
2115 (dwarf_form_name): Handle Fission forms.
2116 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2117 DW_FORM_GNU_str_index.
2118 (follow_die_sig): Update to use type_offset_in_section.
2119 (decode_locdesc): New case DW_OP_GNU_addr_index.
2120 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2121 DW_FORM_GNU_str_index.
2122 (cu_debug_loc_section): New function.
2123 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2124 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2125 Free DWO files if present.
2126 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2128 Refactor DIE reading.
2129 * dwarf2read.c (dwarf2_per_objfile): Replace members
2130 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2131 (die_reader_specs): New member "die_section". Temporarily make
2132 member "buffer" non-const, pending constifying all info_ptr uses.
2133 (die_reader_func_ftype): New typedef.
2134 (dw2_get_file_names_reader): New function.
2135 (dw2_get_file_names): Rewrite.
2136 (read_and_check_type_unit_head): Rename arg type_offset to
2138 (create_all_type_units): Improve debugging message.
2139 Improve dummy type unit check.
2140 (init_cu_die_reader): New arg "section". All callers updated.
2141 (init_and_read_dies_worker): New function.
2142 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2143 (init_cutu_and_read_dies_no_follow): New function.
2144 (init_cutu_and_read_dies_simple): New function.
2145 (process_psymtab_comp_unit_reader): New function.
2146 (process_psymtab_comp_unit): Delete args section,
2147 is_debug_types_section. Rewrite. All callers updated.
2148 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2149 All callers updated. Rewrite.
2150 (load_partial_comp_unit_reader): New function.
2151 (load_partial_comp_unit): Rewrite.
2152 (skip_children): New arg reader. Delete args buffer, cu.
2153 All callers updated.
2154 (skip_one_die): New arg reader. Delete args buffer, cu.
2155 All callers updated.
2156 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2157 All callers updated.
2158 (load_full_comp_unit_reader): New function.
2159 (load_full_comp_unit): Rewrite.
2160 (read_comp_unit): Delete.
2161 (read_die_and_children_1): Delete, contents moved ...
2162 (read_die_and_children): ... here.
2163 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2164 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2165 All callers updated.
2166 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2167 All callers updated.
2168 (find_partial_die): Rewrite load_all_dies support.
2169 (read_attribute_value): New arg reader. Delete args abfd, cu.
2170 All callers updated.
2171 (read_attribute): New arg reader. Delete args abfd, cu.
2172 All callers updated.
2173 (load_full_type_unit): Add assert.
2174 (read_signatured_type_reader): New function.
2175 (read_signatured_type): Rewrite.
2176 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2177 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2178 All callers updated. Set per_cu->cu = NULL after freeing it.
2179 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2180 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2181 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2182 (set_die_type): Update.
2183 (get_die_type_at_offset): Update.
2184 (read_file_scope): Call prepare_one_comp_unit.
2185 (read_type_unit_scope): Ditto.
2186 (prepare_one_comp_unit): Set producer if present.
2188 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2190 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2191 gettext function on `error'.
2193 2012-04-27 Doug Evans <dje@google.com>
2195 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2198 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2199 Tom Tromey <tromey@redhat.com>
2201 * breakpoint.c (struct breakpoint_objfile_data)
2202 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2203 <exception_probes>: New fields.
2204 (free_breakpoint_probes): New function.
2205 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2206 `_Unwind_DebugHook'.
2207 (create_exception_master_breakpoint): Likewise.
2208 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2209 * infrun.c: Including necessary header files for handling SystemTap
2211 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2212 via SystemTap probes.
2213 (check_exception_resume): Remove `func' argument. Handle exception
2214 unwinding breakpoint set via a SystemTap probe.
2215 (insert_exception_resume_from_probe): New function.
2217 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2218 Tom Tromey <tromey@redhat.com>
2219 Jan Kratochvil <jan.kratochvil@redhat.com>
2221 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2222 (COMMON_OBS): Likewise.
2223 (HFILES_NO_SRCDIR): Add `probe'.
2224 * NEWS: Mention support for static and SystemTap probes.
2225 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2226 SystemTap probes' arguments parser.
2227 * arm-linux-tdep.c: Including headers needed to perform the parsing
2228 of SystemTap probes' arguments.
2229 (arm_stap_is_single_operand): New function.
2230 (arm_stap_parse_special_token): Likewise.
2231 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2232 probes' arguments parser.
2233 * ax-gdb.c (require_rvalue): Removing static declaration.
2234 (gen_expr): Likewise.
2235 * ax-gdb.h (gen_expr): Declaring function.
2236 (require_rvalue): Likewise.
2237 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2238 (bkpt_probe_breakpoint_ops): New variable.
2239 (momentary_breakpoint_from_master): Set the `probe' value.
2240 (add_location_to_breakpoint): Likewise.
2241 (break_command_1): Using proper breakpoint_ops according to the
2242 argument passed by the user in the command line.
2243 (bkpt_probe_insert_location): New function.
2244 (bkpt_probe_remove_location): Likewise.
2245 (bkpt_probe_create_sals_from_address): Likewise.
2246 (bkpt_probe_decode_linespec): Likewise.
2247 (tracepoint_probe_create_sals_from_address): Likewise.
2248 (tracepoint_probe_decode_linespec): Likewise.
2249 (tracepoint_probe_breakpoint_ops): New variable.
2250 (trace_command): Using proper breakpoint_ops according to the
2251 argument passed by the user in the command line.
2252 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2253 static probes on breakpoints and tracepoints.
2254 * breakpoint.h (struct bp_location) <probe>: New field.
2255 * cli-utils.c (skip_spaces_const): New function.
2256 (extract_arg): Likewise.
2257 * cli-utils.h (skip_spaces_const): Likewise.
2258 (extract_arg): Likewise.
2259 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2260 * configure.ac: Append `stap-probe.o' to be generated when ELF
2262 * configure: Regenerate.
2263 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2264 * elfread.c: Include `probe.h' and `arch-utils.h'.
2265 (probe_key): New variable.
2266 (elf_get_probes): New function.
2267 (elf_get_probe_argument_count): Likewise.
2268 (elf_evaluate_probe_argument): Likewise.
2269 (elf_compile_to_ax): Likewise.
2270 (elf_symfile_relocate_probe): Likewise.
2271 (stap_probe_key_free): Likewise.
2272 (elf_probe_fns): New variable.
2273 (elf_sym_fns): Add `sym_probe_fns' value.
2274 (elf_sym_fns_lazy_psyms): Likewise.
2275 (elf_sym_fns_gdb_index): Likewise.
2276 (_initialize_elfread): Initialize objfile cache for static
2278 * gdb_vecs.h (struct probe): New forward declaration.
2279 (probe_p): New VEC declaration.
2280 * gdbarch.c: Regenerate.
2281 * gdbarch.h: Regenerate.
2282 * gdbarch.sh (stap_integer_prefix): New variable.
2283 (stap_integer_suffix): Likewise.
2284 (stap_register_prefix): Likewise.
2285 (stap_register_suffix): Likewise.
2286 (stap_register_indirection_prefix): Likewise.
2287 (stap_register_indirection_suffix): Likewise.
2288 (stap_gdb_register_prefix): Likewise.
2289 (stap_gdb_register_suffix): Likewise.
2290 (stap_is_single_operand): New function.
2291 (stap_parse_special_token): Likewise.
2292 (struct stap_parse_info): Forward declaration.
2293 * i386-tdep.c: Including headers needed to perform the parsing
2294 of SystemTap probes' arguments.
2295 (i386_stap_is_single_operand): New function.
2296 (i386_stap_parse_special_token): Likewise.
2297 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2298 probes' arguments parser.
2299 * i386-tdep.h (i386_stap_is_single_operand): New function.
2300 (i386_stap_parse_special_token): Likewise.
2301 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2302 * mipsread.c (ecoff_sym_fns): Likewise.
2303 * objfiles.c (objfile_relocate1): Support relocation for static
2305 * parse.c (prefixify_expression): Remove static declaration.
2306 (initialize_expout): Likewise.
2307 (reallocate_expout): Likewise.
2308 * parser-defs.h (initialize_expout): Declare function.
2309 (reallocate_expout): Likewise.
2310 (prefixify_expression): Likewise.
2311 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2312 of SystemTap probes' arguments.
2313 (ppc_stap_is_single_operand): New function.
2314 (ppc_stap_parse_special_token): Likewise.
2315 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2316 probes' arguments parser.
2317 * probe.c: New file, for generic statically defined probe support.
2318 * probe.h: Likewise.
2319 * s390-tdep.c: Including headers needed to perform the parsing of
2320 SystemTap probes' arguments.
2321 (s390_stap_is_single_operand): New function.
2322 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2323 probes' arguments parser.
2324 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2325 * stap-probe.c: New file, for SystemTap probe support.
2326 * stap-probe.h: Likewise.
2327 * symfile.h: Include `gdb_vecs.h'.
2328 (struct sym_probe_fns): New struct.
2329 (struct sym_fns) <sym_probe_fns>: New field.
2330 * symtab.c (init_sal): Initialize `probe' field.
2331 * symtab.h (struct probe): Forward declaration.
2332 (struct symtab_and_line) <probe>: New field.
2333 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2335 (stop_tracing): Likewise.
2336 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2338 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2339 Tom Tromey <tromey@redhat.com>
2341 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2342 and to compile agent expressions.
2343 * infrun.c (siginfo_make_value): New argument `ignore'.
2344 (siginfo_funcs): New struct.
2345 (_initialize_infrun): New argument when calling
2346 `create_internalvar_type_lazy'.
2347 * thread.c (thread_id_make_value): New argument `ignore'.
2348 (thread_funcs): New struct.
2349 (_initialize_thread): New argument when calling
2350 `create_internalvar_type_lazy'.
2351 * tracepoint.c (sdata_make_value): New argument `ignore'.
2352 (sdata_funcs): New struct.
2353 (_initialize_tracepoint): New argument when calling
2354 `create_internalvar_type_lazy'.
2355 * value.c (make_value): New struct.
2356 (create_internalvar_type_lazy): New argument `data'.
2357 (compile_internalvar_to_ax): New function.
2358 (value_of_internalvar): Properly handling `make_value' case.
2359 (clear_internalvar): Likewise.
2360 (show_convenience): Adding `TRY_CATCH' block.
2361 * value.h (internalvar_make_value): Delete, replace by...
2362 (struct internalvar_funcs): ... this.
2363 (create_internalvar_type_lazy) <fun>: Delete argument.
2364 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2365 (compile_internalvar_to_ax): New function.
2366 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2367 (tlb_funcs): New struct.
2368 (_initialize_windows_tdep): New argument when calling
2369 `create_internalvar_type_lazy'.
2371 2012-04-27 Mark Wielaard <mjw@redhat.com>
2373 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2374 see whether it is an address or a constant offset from DW_AT_low_pc.
2375 (dwarf2_record_block_ranges): Likewise.
2376 (read_partial_die): Likewise.
2378 2012-04-26 Mark Wielaard <mjw@redhat.com>
2380 * MAINTAINERS (Write After Approval): Add myself to the list.
2382 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2384 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2385 (proc_prettyprint_signal): Likewise.
2386 (proc_prettyprint_faultset): Likewise.
2387 (proc_prettyprint_fault): Likewise.
2388 (proc_prettyprint_actionset): Likewise.
2389 (proc_prettyprint_flags): Move to new proc-flags.c section.
2390 (proc_prettyfprint_flags): New prototype.
2391 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2392 (proc_syscall, proc_cursig): Likewise.
2393 (proc_set_kill_on_last_close): Likewise.
2394 (proc_unset_kill_on_last_close): Likewise.
2395 (proc_set_watchpoint): Make static.
2396 (proc_delete_dead_threads): Likewise.
2397 (procfs_set_watchpoint): Likewise.
2398 (_initialize_procfs): Add prototype.
2399 * proc-events.c: Include proc-utils.h.
2400 (init_syscall_table): Make static.
2401 * proc-api.c (_initialize_proc_api): Add prototype.
2402 * proc-flags.c: Include proc-utils.h.
2404 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2406 * configure.ac: Add AC_ARG_PROGRAM.
2407 * configure: Regenerate.
2409 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2411 Fix DW_AT_lower_bound defaults for DWARF-4+.
2412 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2413 high. New variable low_default_is_valid. Implement DWARF-4+
2414 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2415 no default by the DWARF standard.
2417 2012-04-26 Maciej W. Rozycki <macro@mips.com>
2418 Maciej W. Rozycki <macro@codesourcery.com>
2420 * infrun.c (handle_inferior_event): Move the check for return
2421 trampolines ahead of the check for function trampolines.
2422 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2423 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2424 (mips_str_mips16_ret_stub): Likewise.
2425 (mips_str_call_fp_stub): Likewise.
2426 (mips_str_call_stub): Likewise.
2427 (mips_str_fn_stub): Likewise.
2428 (mips_str_pic): Likewise.
2429 (mips_in_frame_stub): New function.
2430 (mips_unwind_pc): Return the return address rather than the PC
2431 if the PC of an intermediate frame is inside a call thunk.
2432 (mips_is_stub_suffix): New function.
2433 (mips_is_stub_mode): Likewise.
2434 (mips_get_mips16_fn_stub_pc): Likewise.
2435 (mips_skip_mips16_trampoline_code): Update to handle all the
2436 currently generated stub types. Don't recurse into __fn_stub
2437 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2438 Use cooked register accesses.
2439 (mips_in_return_stub): Reintroduce function.
2440 (mips_skip_trampoline_code): Traverse trampolines recursively.
2441 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2443 2012-04-26 Joel Brobecker <brobecker@adacore.com>
2447 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2449 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2450 * features/arm-with-m-vfp-d16.xml: New file. Describes
2451 Cortex-M with VFPv4-sp-d16 FPU register layout.
2452 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2453 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2454 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2455 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2456 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2458 2012-04-25 Doug Evans <dje@google.com>
2460 * cli/cli-decode.c (print_doc_line): Use stream instead of
2463 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2465 * features/arm-with-iwmmxt.c: Regenerate.
2466 * features/arm-with-m-fpa-layout.c: Likewise.
2467 * features/arm-with-m.c: Likewise.
2468 * features/arm-with-neon.c: Likewise.
2469 * features/arm-with-vfpv2.c: Likewise.
2470 * features/arm-with-vfpv3.c: Likewise.
2471 * features/mips-dsp-linux.c: Likewise.
2472 * features/mips-linux.c: Likewise.
2473 * features/mips64-dsp-linux.c: Likewise.
2474 * features/mips64-linux.c: Likewise.
2475 * features/s390-linux32.c: Likewise.
2476 * features/s390-linux32v1.c: Likewise.
2477 * features/s390-linux32v2.c: Likewise.
2478 * features/s390-linux64.c: Likewise.
2479 * features/s390-linux64v1.c: Likewise.
2480 * features/s390-linux64v2.c: Likewise.
2481 * features/s390x-linux64.c: Likewise.
2482 * features/s390x-linux64v1.c: Likewise.
2483 * features/s390x-linux64v2.c: Likewise.
2484 * features/tic6x-c62x-linux.c: Likewise.
2485 * features/tic6x-c62x.c: Likewise.
2486 * features/tic6x-c64x-linux.c: Likewise.
2487 * features/tic6x-c64x.c: Likewise.
2488 * features/tic6x-c64xp-linux.c: Likewise.
2489 * features/tic6x-c64xp.c: Likewise.
2490 * target-descriptions.c: Only generate `field_type' and `type'
2491 variables when needed.
2493 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2495 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2497 2012-04-25 Doug Evans <dje@google.com>
2499 Initial pass at Go language support.
2501 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2503 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2504 (YYFILES): Add go-exp.c.
2505 (YYOBJ): Add go-exp.o.
2506 (local-maintainer-clean): Delete go-exp.c.
2507 * defs.h (enum language): Add language_go.
2508 * dwarf2read.c: #include "go-lang.h".
2509 (fixup_go_packaging): New function.
2510 (process_full_comp_unit): Call it when processing Go CUs.
2511 (dwarf2_physname): Add Go support.
2512 (read_file_scope): Handle missing language spec for GNU Go.
2513 (set_cu_language): Handle DW_LANG_Go.
2514 * go-exp.y: New file.
2515 * go-lang.h: New file.
2516 * go-lang.c: New file.
2517 * go-typeprint.c: New file.
2518 * go-valprint.c: New file.
2519 * symtab.c: #include "go-lang.h".
2520 (symbol_set_language): Handle language_go.
2521 (symbol_find_demangled_name, symbol_set_names): Ditto.
2522 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2524 2012-04-24 Jim Meyering <meyering@redhat.com>
2526 avoid a few strncpy-induced buffer overruns
2527 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2528 fname and psargs before trying to concatenate.
2529 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2530 "name" before applying strchr.
2532 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2534 * CONTRIBUTE: Use unified diff instead of context diff when
2537 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2539 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2540 code. Handle JR.HB correctly.
2542 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2545 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2546 with the other MIPS16 helpers.
2548 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2550 * observer.sh: Conditionally declare `args', thus cleaning up
2551 unused instances of this variable.
2553 2012-04-24 Yao Qi <yao@codesourcery.com>
2555 Revert this patch to allow breakpoint always-inserted
2557 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2558 * breakpoint.c: Include record.h.
2559 (breakpoints_always_inserted_mode): Return false when the record
2562 * breakpoint.c (iterate_over_bp_locations): New.
2563 * breakpoint.h: Declare.
2564 New typedef walk_bp_location_callback.
2565 * record.c (record_open): Call record_init_record_breakpoints.
2566 (record_sync_record_breakpoints): New.
2567 (record_init_record_breakpoints): New.
2568 * NEWS: Mention supporting breakpoint always-inserted mode in
2571 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2573 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2576 2012-04-24 Yao Qi <yao@codesourcery.com>
2578 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2579 (is_catchpoint): ... it.
2580 (print_one_breakpoint_location): Caller update.
2581 * breakpoint.h: Update declaration.
2583 2012-04-23 David S. Miller <davem@davemloft.net>
2585 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2587 2012-04-23 Tom Tromey <tromey@redhat.com>
2589 * buildsym.c (add_free_pendings): Remove.
2590 * buildsym.h (add_free_pendings): Remove.
2592 2012-04-23 Doug Evans <dje@google.com>
2594 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2595 attr.u.unsnd instead of attr.u.addr.
2596 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2597 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2599 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2600 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2602 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2604 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
2606 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2607 (mips_o32_return_value): Likewise.
2608 (mips_o64_return_value): Likewise.
2610 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
2612 * ada-lang.c (ada_evaluate_subexp): Add cases for
2613 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2614 their treatment in eval.c.
2616 2012-04-21 David S. Miller <davem@davemloft.net>
2618 * sparc-tdep.c (X_DISP10): Define.
2619 (sparc_analyze_control_transfer): Handle compare-and-branch.
2621 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
2623 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2624 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2626 2012-04-20 Nigel Stephens <nigel@mips.com>
2627 Maciej W. Rozycki <macro@codesourcery.com>
2629 * mips-tdep.c (mips_float_register_p): New function.
2630 (mips_convert_register_float_case_p): Use mips_float_register_p.
2631 (mips_register_type): Likewise.
2632 (mips_print_register): Likewise.
2633 (print_gp_register_row): Likewise.
2634 (mips_print_registers_info): Likewise.
2636 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
2638 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2641 2012-04-20 Andrew Pinski <apinski@cavium.com>
2643 * MAINTAINERS (Write After Approval): Add myself to the list.
2645 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2647 * MAINTAINERS: Update my e-mail address.
2649 2012-04-20 Pedro Alves <palves@redhat.com>
2651 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
2653 * configure: Regenerate.
2655 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2657 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
2659 * gdb_vecs.h: Declare `const_char_ptr' VEC.
2661 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2663 Fix compilation compatibility with python-2.4
2664 * python/py-type.c (convert_field): Cast ADDRSTRING for
2665 PyObject_SetAttrString as non-const. New comment.
2667 2012-04-19 Tom Tromey <tromey@redhat.com>
2669 * top.c (quit_target): Use all_cleanups.
2670 * main.c (captured_command_loop): Use all_cleanups.
2671 * exceptions.c (throw_exception): Use all_cleanups.
2673 2012-04-19 Pedro Alves <palves@redhat.com>
2675 * Makefile.in (GNULIB_BUILDDIR): New.
2676 (LIBGNU, INCGNU, GNULIB_H): Adjust.
2677 (SUBDIRS): Add $(GNULIB_BUILDDIR).
2678 (CLEANDIRS). Remove gnulib/import.
2679 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
2681 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
2682 (gnulib/import/Makefile): Replace gnulib/import with
2683 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
2684 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
2685 (aclocal_m4_deps): Remove the gnulib dependencies. Add
2686 acx_configure_dir.m4.
2687 * acinclude.m4: Include acx_configure_dir.m4.
2688 * acx_configure_dir.m4: New file.
2689 * aclocal.m4: Regenerate.
2690 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
2691 calls. Configure gnulib using ACX_CONFIGURE_DIR.
2692 (GNULIB): New variable.
2693 (GNULIB_STDINT_H): Adjust.
2694 (AC_OUTPUT): Don't output gnulib/Makefile.
2695 * gdb/defs.h: Include build-gnulib/config.h.
2696 * aclocal.m4: Regenerate.
2697 * config.in: Regenerate.
2698 * configure: Regenerate.
2700 * gnulib/Makefile.in: New file.
2701 * gnulib/configure.ac: New file.
2702 * gnulib/aclocal.m4: New file.
2703 * gnulib/config.in: New file.
2704 * gnulib/configure: New file.
2705 * gnulib/: Re-run gnulib-tool to adjust.
2707 2012-04-19 Doug Evans <dje@google.com>
2709 * cleanups.h (struct cleanup): Move to cleanups.c.
2710 (make_cleanup_dtor_ftype): New typedef.
2711 (make_cleanup_dtor): Use it.
2712 (ALL_CLEANUPS): Replace with ...
2713 (all_cleanups): ... this. Declare. All uses updated.
2714 * cleanups.c: #include "gdb_assert.h".
2715 (sentinel_cleanup): New static global.
2716 (SENTINEL_CLEANUP): Define.
2717 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
2718 (make_my_cleanup2): Assert result is non-NULL.
2719 (all_cleanups): New function.
2720 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
2723 2012-04-19 Pedro Alves <palves@redhat.com>
2725 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
2726 Adjust paths to gnulib imported files.
2728 2012-04-19 Pedro Alves <palves@redhat.com>
2730 * gnulib/: Move whole directory ...
2731 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
2732 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
2733 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
2734 (aclocal_m4_deps): Adjust.
2735 * aclocal.m4: Regenerate.
2736 * configure: Regenerate.
2737 * configure.ac: Adjust AC_OUTPUT output.
2739 2012-04-19 Yao Qi <yao@codesourcery.com>
2741 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
2743 * vec.c: Move it ...
2744 * common/vec.c: ... here.
2745 * vec.h: Move it ...
2746 * common/vec.h: ... here.
2748 2012-04-19 Yao Qi <yao@codesourcery.com>
2750 * gdb-code-style.el: New.
2752 2012-04-18 Pedro Alves <palves@redhat.com>
2754 Update gnulib from latest git.
2755 (639ea5ae15e39fe48d43e04864b2997301e4b969)
2757 * gnulib/Makefile.am: Update.
2758 * gnulib/dummy.c: Update.
2759 * gnulib/extra/arg-nonnull.h: Update.
2760 * gnulib/extra/c++defs.h: Update.
2761 * gnulib/extra/update-copyright: Update.
2762 * gnulib/extra/warn-on-use.h: Update.
2763 * gnulib/inttypes.in.h: Update.
2764 * gnulib/m4/00gnulib.m4: Update.
2765 * gnulib/m4/extensions.m4: Update.
2766 * gnulib/m4/gnulib-cache.m4: Update.
2767 * gnulib/m4/gnulib-common.m4: Update.
2768 * gnulib/m4/gnulib-comp.m4: Update.
2769 * gnulib/m4/gnulib-tool.m4: Update.
2770 * gnulib/m4/include_next.m4: Update.
2771 * gnulib/m4/inttypes-pri.m4: Update.
2772 * gnulib/m4/inttypes.m4: Update.
2773 * gnulib/m4/longlong.m4: Update.
2774 * gnulib/m4/memchr.m4: Update.
2775 * gnulib/m4/memmem.m4: Update.
2776 * gnulib/m4/mmap-anon.m4: Update.
2777 * gnulib/m4/multiarch.m4: Update.
2778 * gnulib/m4/onceonly.m4: Update.
2779 * gnulib/m4/stddef_h.m4: Update.
2780 * gnulib/m4/stdint.m4: Update.
2781 * gnulib/m4/string_h.m4: Update.
2782 * gnulib/m4/warn-on-use.m4: Update.
2783 * gnulib/m4/wchar_h.m4: Update.
2784 * gnulib/m4/wchar_t.m4: Update.
2785 * gnulib/m4/wint_t.m4: Update.
2786 * gnulib/memchr.c: Update.
2787 * gnulib/memmem.c: Update.
2788 * gnulib/stddef.in.h: Update.
2789 * gnulib/stdint.in.h: Update.
2790 * gnulib/str-two-way.h: Update.
2791 * gnulib/string.in.h: Update.
2792 * gnulib/wchar.in.h: Update.
2794 * gnulib/extra/arg-nonnull.h: Delete.
2795 * gnulib/extra/c++defs.h: Delete.
2796 * gnulib/extra/warn-on-use.h: Delete.
2797 * gnulib/m4/wchar_h.m4: Delete.
2798 * gnulib/m4/wint_t.m4: Delete.
2799 * gnulib/wchar.in.h: Delete.
2801 * gnulib/extra/snippets/arg-nonnull.h: New.
2802 * gnulib/extra/snippets/c++defs.h: New.
2803 * gnulib/extra/snippets/warn-on-use.h: New.
2805 * aclocal.m4: Regenerate.
2806 * config.in: Regenerate.
2807 * configure: Regenerate.
2808 * gnulib/Makefile.in: Regenerate.
2810 2012-04-18 Pedro Alves <palves@redhat.com>
2812 Reimport the update-copyright module from gnulib
2813 (250b80067c1e1d8faa0c42fb572f721975b929c5).
2815 * configure: Regenerate.
2816 * gnulib/Makefile.am: Update.
2817 * gnulib/Makefile.in: Regenerate.
2818 * gnulib/extra/update-copyright: Update.
2819 * gnulib/m4/gnulib-cache.m4: Update.
2820 * gnulib/m4/gnulib-comp.m4: Update.
2822 2012-04-18 Tristan Gingold <gingold@adacore.com>
2824 * configure.ac (aix): Put -lpthread into libs.
2825 * configure: Regenerate.
2827 2012-04-18 Tom Tromey <tromey@redhat.com>
2829 * linespec.c (convert_linespec_to_sals): Don't use
2831 (compare_msymbols): Arguments are minsym_and_objfile, not
2832 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
2834 2012-04-18 Pedro Alves <palves@redhat.com>
2836 Revert gnulib/ part of:
2837 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2838 Copyright year update in most files (performed by copyright.sh).
2840 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2842 Fix 64-bit constants on 32-bit hosts.
2843 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
2844 from unsigned long to ULONGEST.
2845 (read_signed_leb128): Change declaration return type from long to
2847 (dwarf2_const_value_attr): Change declaration parameter value from long
2849 (dwarf2_compute_name): Change variable value from long to LONGEST.
2850 (read_unsigned_leb128): Change return type, variable result and some
2851 casts from unsigned long to ULONGEST.
2852 (read_signed_leb128): Change return type, variable result and some
2853 casts from long to LONGEST.
2854 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
2855 value from long to LONGEST.
2856 (dwarf2_const_value): Change variable value from long to LONGEST.
2857 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
2858 plongest and hex_string.
2859 * symtab.h (struct general_symbol_info): Change ivalue from long to
2860 LONGEST, remove the comment.
2861 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
2862 Change SYMBOL_VALUE format strings to use plongest and hex_string.
2864 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
2867 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
2868 * ada-lang.c (ada_discrete_type_high_bound)
2869 (ada_discrete_type_low_bound): Fix function comment. Use
2870 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2871 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
2872 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2873 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
2874 Use TYPE_FIELD_ENUMVAL.
2875 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
2876 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2877 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
2878 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
2880 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
2881 * dwarf2read.c (process_enumeration_scope): Likewise.
2882 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
2884 (class StructMainTypePrettyPrinter): Support also
2885 FIELD_LOC_KIND_ENUMVAL.
2886 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
2888 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2889 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
2890 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
2891 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
2893 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
2894 accommodate enumval.
2895 (struct call_site): Adjust loc_kind to accommodate enumval.
2896 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
2897 (TYPE_FIELD_ENUMVAL): New macros.
2898 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
2899 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
2901 * p-typeprint.c (pascal_type_print_base): Likewise.
2902 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
2904 * python/lib/gdb/types.py (make_enum_dict): Likewise.
2905 * python/py-type.c (convert_field): New variable addrstring. Use
2906 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2907 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
2908 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
2909 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
2911 * valprint.c (generic_val_print): Likewise.
2913 2012-04-17 Doug Evans <dje@google.com>
2915 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
2917 * dwarf2read.c: Whitespace fixes.
2918 (lookup_signatured_type): Tweak comment.
2919 (get_die_type_at_offset): Fix comment.
2921 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2923 * xcoffread.c (xcoff_secnum_to_sections): New function.
2924 (secnum_to_section, secnum_to_bfd_section): Reimplement
2925 using xcoff_secnum_to_sections. Rename "secnum" parameter
2927 (RECORD_MINIMAL_SYMBOL): Delete.
2928 (record_minimal_symbol): New function.
2929 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
2930 by call to record_minimal_symbol and set misc_func_recorded
2931 to 1. Set last_csect_sec to the XCOFF section index instead
2932 of GDB's section_offset index. Update calls to
2933 prim_record_minimal_symbol_and_info to pass the BFD section
2936 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2938 * xcoffread.c (read_xcoff_symtab): Delete variables
2939 last_csect_val and last_csect_sec and associated code.
2941 2012-04-17 Doug Evans <dje@google.com>
2943 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
2944 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2945 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
2946 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
2948 * cleanups.h: New file.
2949 * cleanups.c: New file.
2950 * Makefile.in (SFILES): Add cleanups.c.
2951 (HFILES_NO_SRCDIR): Add cleanups.h.
2952 (COMMON_OBS): Add cleanups.o.
2953 * defs.h (struct cleanup): Moved to cleanups.h.
2954 (do_cleanups,do_final_cleanups): Ditto.
2955 (discard_cleanups,discard_final_cleanups): Ditto
2956 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2957 (save_cleanups,save_final_cleanups): Ditto.
2958 (restore_cleanups,restore_final_cleanups): Ditto.
2959 (null_cleanup): Ditto.
2960 (make_my_cleanup,make_my_cleanup2): Ditto.
2961 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2962 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
2963 (do_cleanups,do_final_cleanups): Ditto.
2964 (discard_cleanups,discard_final_cleanups): Ditto
2965 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2966 (save_cleanups,save_final_cleanups): Ditto.
2967 (restore_cleanups,restore_final_cleanups): Ditto.
2968 (null_cleanup): Ditto.
2969 (make_my_cleanup,make_my_cleanup2): Ditto.
2970 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2972 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
2974 (make_cleanup_dyn_string_delete): Ditto.
2975 (make_cleanup_ui_file_delete): Ditto.
2976 (make_cleanup_ui_out_redirect_pop): Ditto.
2977 (make_cleanup_free_section_addr_info): Ditto.
2978 (make_cleanup_restore_integer): Ditto.
2979 (make_cleanup_unpush_target): Ditto.
2980 (make_cleanup_value_free_to_mark): Ditto.
2981 (make_cleanup_value_free): Ditto.
2982 (make_cleanup_free_so): Ditto.
2984 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2986 New option "set debug auto-load".
2987 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
2988 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
2989 (auto_load_safe_path_vec_update)
2990 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
2992 (file_is_auto_load_safe): New parameters debug_fmt and ....
2993 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
2994 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
2995 caller by explanatory string.
2996 (_initialize_auto_load): Register "set debug auto-load".
2997 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
2999 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3000 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3001 by explanatory string.
3002 * main.c (captured_main): Likewise.
3003 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3004 (source_section_scripts): Likewise.
3006 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3008 New option "set auto-load safe-path".
3009 * NEWS: New commands "set auto-load safe-path"
3010 and "show auto-load safe-path".
3011 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3012 (auto_load_safe_path, auto_load_safe_path_vec)
3013 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3014 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3015 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3016 (source_gdb_script_for_objfile): New variable is_safe. Call
3017 file_is_auto_load_safe. Return if it is not.
3018 (struct loaded_script): New field loaded.
3019 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
3020 (print_script): Use LOADED indicator instead of FULL_PATH. Change
3021 output "Missing" to "No".
3022 (_initialize_auto_load): New variable cmd. Initialize
3023 auto_load_safe_path. Register "set auto-load safe-path",
3024 "show auto-load safe-path" and "add-auto-load-safe-path".
3025 * auto-load.h (maybe_add_script): Add parameter loaded.
3026 (file_is_auto_load_safe): New declaration.
3027 * config.in: Regenerate.
3028 * configure: Regenerate.
3029 * configure.ac: New parameters --with-auto-load-safe-path
3030 and --without-auto-load-safe-path.
3031 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3032 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3033 * main.c (captured_main): Check file_is_auto_load_safe for
3035 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3036 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
3037 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
3040 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3042 auto-load: Implementation.
3043 * NEWS: New descriptions for "info auto-load",
3044 "info auto-load gdb-scripts", "info auto-load python-scripts",
3045 "info auto-load local-gdbinit" and "info auto-load libthread-db".
3046 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3047 and "show auto-load-scripts". New description for "set auto-load",
3048 "show auto-load", "set auto-load gdb-scripts",
3049 "show auto-load gdb-scripts", "set auto-load python-scripts",
3050 "show auto-load python-scripts", "set auto-load local-gdbinit",
3051 "show auto-load local-gdbinit", "set auto-load libthread-db" and
3052 "show auto-load libthread-db".
3053 * auto-load.c: Remove include python/python-internal.h. Add includes
3054 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3056 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3057 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3058 (gdbpy_global_auto_load): Rename to ...
3059 (global_auto_load): ... here.
3060 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3061 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3062 (script_language_gdb, source_gdb_script_for_objfile): New.
3063 (struct loaded_script): New field language.
3064 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3066 (maybe_add_script): Add parameter language. Drop redundant
3067 entry.full_path initialization. Initialize entry.language and
3069 (auto_load_objfile_script): Change parameter suffix to language.
3070 Remove the call of maybe_add_script.
3071 Call language->source_script_for_objfile.
3072 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3074 (collect_matching_scripts): Adjust it for
3075 struct collect_matching_scripts_data.
3076 (auto_load_info_scripts_pattern_nl): New variable.
3077 (info_auto_load_scripts): Rename to ...
3078 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3079 for struct collect_matching_scripts_data.
3080 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3081 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3082 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3083 (auto_load_info_cmdlist_get): New.
3084 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3085 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3086 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3087 "info auto-load local-gdbinit".
3088 * auto-load.h (struct script_language): New.
3089 (gdbpy_global_auto_load): Rename to ...
3090 (global_auto_load): ... here.
3091 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3092 (auto_load_local_gdbinit_loaded): New declarations.
3093 (maybe_add_script): New parameter language.
3094 (auto_load_objfile_script): Change parameter suffix to language.
3095 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3096 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3097 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3099 * linux-thread-db.c: Include auto-load.h and ctype.h.
3100 (auto_load_thread_db, show_auto_load_thread_db): New.
3101 (struct thread_db_info): New field filename.
3102 (delete_thread_db_info): Call xfree for FILENAME.
3103 (try_thread_db_load): Initialize FILENAME.
3104 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3105 if !AUTO_LOAD_THREAD_DB.
3106 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3107 (_initialize_thread_db): Install auto_load_thread_db
3108 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3109 as "info auto-load libthread-db".
3110 * main.c (captured_main): Rename gdbpy_global_auto_load to
3111 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3112 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3113 (print_gdb_help): Extend the help for 'local init file'.
3114 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3115 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3116 (auto_load_scripts): Rename to ...
3117 (auto_load_python_scripts): ... here, update the comment.
3118 (gdbpy_load_auto_script_for_objfile): New declaration.
3119 (show_auto_load_python_scripts, script_language_python)
3120 (gdbpy_load_auto_script_for_objfile): New.
3121 (source_section_scripts): Refactor the code.
3122 (load_auto_scripts_for_objfile): Rename to ...
3123 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3124 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3125 (info_auto_load_python_scripts): New.
3126 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3127 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3128 Register "set auto-load-scripts" as its deprecated alias. Register
3129 "info auto-load python-scripts". Register "info auto-load-scripts" as
3130 its deprecated alias.
3131 (load_auto_scripts_for_objfile): Rename to ...
3132 (gdbpy_load_auto_scripts_for_objfile): ... here.
3133 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3134 (gdbpy_load_auto_scripts_for_objfile): ... here.
3136 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3138 auto-load: Move files.
3139 * Makefile.in (SFILES): Add auto-load.c.
3140 (HFILES_NO_SRCDIR): Add auto-load.h.
3141 (COMMON_OBS): Add auto-load.o.
3142 (distclean): Change .gdbinit for gdb-gdb.gdb.
3143 * auto-load.c: New file, with parts from python/py-auto-load.c.
3144 * auto-load.h: New file, with parts from python/python.h.
3145 * configure: Regenerate.
3146 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3147 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3148 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3149 * main.c: Include auto-load.h.
3150 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3151 command.h, observer.h and progspace.h to auto-load.c. Add include
3153 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3154 (struct loaded_script, auto_load_pspace_data)
3155 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3156 (hash_loaded_script_entry, eq_loaded_script_entry)
3157 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3158 (maybe_add_script): Move to auto-load.c.
3159 (source_section_scripts): Change maybe_add_script parameters passing,
3160 use script_not_found_warning_print.
3161 (clear_section_scripts, auto_load_objfile_script)
3162 (auto_load_new_objfile, loaded_script_ptr)
3163 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3164 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3165 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3166 auto_load_new_objfile and info_auto_load_scripts initizations to
3168 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3170 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3173 * charset.c (find_charset_names): Remove variables ix and elt.
3174 Use free_char_ptr_vec.
3175 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3176 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3177 debugdir_end. New variable debugdir_len.
3178 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3179 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3181 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3182 and elt. Use free_char_ptr_vec.
3183 * source.c (add_path): Remove variables argv, arg and argv_index.
3184 New variables dir_vec, back_to, ix and name.
3185 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3186 make_cleanup_freeargv. Remove variable separator. Simplify the code
3187 no longer expecting DIRNAME_SEPARATOR.
3188 (openp): Remove variable p, p1 and len. New variables dir_vec,
3189 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3190 no longer expecting DIRNAME_SEPARATOR.
3191 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3192 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3194 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3195 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3196 (dirnames_to_char_ptr_vec): New functions.
3198 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3201 * source.c (add_path): Remove always true conditional 'p == 0' and
3202 unindent its code block.
3204 2012-04-17 Pedro Alves <palves@redhat.com>
3206 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3207 (FIELD_BITPOS_LVAL): ... this.
3208 (FIELD_BITPOS): New.
3209 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3210 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3211 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3213 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3215 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3216 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3217 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3220 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3222 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3223 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3224 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3225 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3226 * jv-lang.c (java_link_class_type): Likewise, once.
3227 * stabsread.c (read_enum_type): Likewise.
3229 2012-04-16 Yao Qi <yao@codesourcery.com>
3231 * common/agent.c (agent_run_command): Add one more parameter `len'.
3233 * common/agent.h: Update declaration.
3234 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3236 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3238 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3241 * value.c (value_actual_type): New function.
3242 * value.h (value_actual_type): New declaration.
3243 * varobj.c (update_type_if_necessary): New function.
3244 (varobj_create): Call value_actual_type instead of
3246 (install_dynamic_child): distinct changed and type changed MI variable
3248 (update_dynamic_varobj_children): Updated for install_dynamic_child
3249 change. All callers updated.
3250 (varobj_update): Support for MI variable object type change if
3251 the value changed and RTTI is used to determine the type.
3252 (create_child_with_value): Call value_actual_type instead of
3254 (adjust_value_for_child_access): Extended with a new parameter which
3255 specify whether the given value should be casted to enclosing type.
3256 All callers updated.
3258 2012-04-14 Yao Qi <yao@codesourcery.com>
3260 Import gnulib module inttypes from git
3261 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3262 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3263 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3264 gnulib/m4/inttypes-pri.m4
3265 * aclocal.m4, config.in, configure: Regenerated.
3266 * gnulib/Makefile.am: Update.
3267 * gnulib/Makefile.in: Update.
3268 * gnulib/m4/gnulib-cache.m4: Update.
3269 * gnulib/m4/gnulib-comp.m4: Update.
3270 * gnulib/inttypes.in.h: New.
3271 * gnulib/m4/inttypes-pri.m4: New.
3272 * gnulib/m4/inttypes.m4: New.
3274 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
3276 * infrun.c (resume): Update PC address to the real PC after
3277 preparing to do displaced stepping.
3279 2012-04-12 Doug Evans <dje@google.com>
3281 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3282 All callers updated.
3284 2012-04-12 Mark Kettenis <kettenis@gnu.org>
3286 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3288 2012-04-12 Doug Evans <dje@google.com>
3290 * dwarf2read.c (create_all_type_units): Renamed from
3291 create_debug_types_hash_table. All callers updated.
3293 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3294 local type_sig to sig_type, type_offset to type_offset_in_tu.
3295 (hash_signatured_type): Renamed from hash_type_signature,
3296 all callers updated.
3297 (eq_signatured_type): Renamed from eq_type_signature,
3298 all callers updated.
3299 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3300 (process_enumeration_scope): Ditto.
3301 (lookup_signatured_type_at_offset): Ditto.
3302 (load_full_type_unit, read_signatured_type): Ditto.
3304 2012-04-12 Yao Qi <yao@codesourcery.com>
3306 * remote.c (async_remote_interrupt): Correct function name in
3308 (async_remote_interrupt_twice): Ditto.
3310 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3312 * source.c (find_and_open_source): Consistently pass resulting
3313 full path through xfullpath.
3315 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3317 Provide more specific displaced-stepping memory error message.
3318 * infrun.c (displaced_step_prepare): New variable status. Call
3319 target_read_memory instead of read_memory, provide more specific
3322 2012-04-11 Tristan Gingold <gingold@adacore.com>
3325 * darwin-nat.c (darwin_execvp): Revert previous patch.
3327 2012-04-11 Tristan Gingold <gingold@adacore.com>
3330 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3333 2012-04-11 Tristan Gingold <gingold@adacore.com>
3335 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3338 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3340 New command 'explore' which helps explore values and types in
3342 * NEWS: Add an entry about the new 'explore' command.
3343 * data-directory/Makefile.in: Add gdb/command/explore.py
3344 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3345 command using the GDB Python API.
3347 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3349 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3350 extension in jump target calculation.
3352 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3354 * mips-tdep.c (mips32_next_pc): Handle JALX.
3356 2012-04-10 Yao Qi <yao@codesourcery.com>
3358 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3360 2012-04-10 Yao Qi <yao@codesourcery.com>
3362 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3363 and gnulib/m4/gnulib-tool.m4.
3365 2012-04-10 Doug Evans <dje@google.com>
3367 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3368 (load_partial_dies): Clarify comment.
3369 (find_partial_die): Support rereading type units.
3370 Clarify CU handling, if we know offset is in CU, don't search for the
3371 containing CU. Add comment regarding memory waste.
3373 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3375 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3376 i386/x32-avx and i386/x32-avx-linux.
3377 (i386/x32-expedite): New.
3378 (i386/x32-linux-expedite): Likewise.
3379 (i386/x32-avx-expedite): Likewise.
3380 (i386/x32-avx-linux-expedite): Likewise.
3381 ($(outdir)/i386/x32.dat): Likewise.
3382 ($(outdir)/i386/x32-linux.dat): Likewise.
3383 ($(outdir)/i386/x32-avx.dat): Likewise.
3384 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3386 * features/i386/x32-avx-linux.xml: New file.
3387 * features/i386/x32-avx.xml: Likewise.
3388 * features/i386/x32-core.xml: Likewise.
3389 * features/i386/x32-linux.xml: Likewise.
3390 * features/i386/x32.xml: Likewise.
3392 * features/i386/x32-avx-linux.c: New. Generated.
3393 * features/i386/x32-avx.c: Likewise.
3394 * features/i386/x32-linux.c: Likewise.
3395 * features/i386/x32.c: Likewise.
3396 * regformats/i386/x32-avx-linux.dat: Likewise.
3397 * regformats/i386/x32-avx.dat: Likewise.
3398 * regformats/i386/x32-linux.dat: Likewise.
3399 * regformats/i386/x32.dat: Likewise.
3401 2012-04-10 Tristan Gingold <gingold@adacore.com>
3403 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3404 code to kill the inferior.
3406 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3408 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3410 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3412 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3413 (yyvsp): New defines.
3414 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3416 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3418 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3420 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3422 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3425 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3427 * sparc64-tdep.c (sparc64_store_arguments)
3428 (sparc64_store_arguments): Fix coding style.
3430 2012-04-07 Mark Kettenis <kettenis@gnu.org>
3432 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3433 complex floats, adjust some related comments and tighten a related
3435 (sparc64_extract_return_value): Handle complex floats.
3437 2012-04-07 Doug Evans <dje@google.com>
3439 * dwarf2read.c (load_partial_dies): Change condition to assert.
3441 2012-04-06 Doug Evans <dje@google.com>
3443 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3446 2012-04-05 Kevin Buettner <kevinb@redhat.com>
3448 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3450 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3451 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3454 2012-04-05 Keith Seitz <keiths@redhat.com>
3456 * linespec.c (decode_compound): Remove.
3457 (enum offset_relative_sign): New enum.
3458 (struct line_offset): New struct.
3459 (struct linespec): New struct.
3460 (struct linespec_state): Move file_symtabs,
3461 user_filename, and user_function into struct linespec.
3462 Make result an anonymous struct holding vectors of
3463 symbolp and minsym_and_objfile_d.
3464 Add language member.
3465 (enum ls_token_type): New enum.
3466 (linespec_keywords): New array.
3467 (struct ls_token): New struct.
3468 (struct ls_parser): New struct.
3469 (linespec_lexer_lex_number): New function.
3470 (linespec_lexer_lex_keyword): New function.
3471 (is_ada_operator): New function.
3472 (skip_quote_char): New function.
3473 (copy_token_string): New function.
3474 (is_closing_quote_enclosed): New function.
3475 (find_parameter_list_end): New function.
3476 (linespec_lexer_lex_string): New function.
3477 (linespec_lexer_lex_one): New function.
3478 (linespec_lexer_consume_token): New function.
3479 (linespec_lexer_peek_token): New function.
3480 (cplusplus_error): Remove unused function.
3481 (find_methods): Update comment.
3482 (find_toplevel_char): Return const.
3483 (is_objc_method_format): Remove unused function.
3484 (find_toplevel_string): New function.
3485 (is_linespec_boundary): Remove.
3486 (symbol_not_found_error): New function.
3487 (find_method_overload_end): Remove function.
3488 (unexpected_linespec_error): New function.
3489 (keep_name_info): Remove.
3490 (linespec_parse_line_offset): New function.
3491 (linespec_parse_basic): New function.
3492 (canonicalize_linespec): New function.
3493 (decode_line_internal): Remove.
3494 (create_sals_line_offset): New function adapted from
3496 (convert_linespec_to_sals): New function.
3497 (parse_linespec): New function.
3498 (linespec_parser_new): New function.
3499 (linespec_state_destructor): Change parameter type to
3500 struct linespec_state *.
3501 Add language parameter.
3502 Remove freeing of moved members.
3503 (linespec_parser_delete): New function.
3504 (decode_line_full): Use parse_linespec and linespec_parser_new.
3505 (decode_line_1): Likewise.
3506 (decode_indirect): Rename to ...
3507 (linespec_expression_to_pc): ... this and rewrite
3508 to simply find CORE_ADDR, storing this result for later
3510 (locate_first_half): Remove.
3511 (deocde_objc): Add parameter LS.
3512 Initialize new struct collect_info members.
3513 Handle minimal symbols, too.
3514 (decode_compound): Delete.
3515 (lookup_prefix_sym): Rewrite.
3516 (compare_msymbols): New function.
3517 (find_method): Rewrite.
3518 Do not call cplusplus_error.
3519 (symtabs_from_filename): Rewrite.
3520 (collect_function_symbols): Delete.
3521 (find_function_symbols): Rewrite without ARGPTR-style
3523 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3524 (decode_dollar): Adapted and renamed to ...
3525 (linespec_parse_variable): ... this.
3526 (find_linespec_symbols): New function.
3527 (decode_label): Adapted and renamed to ...
3528 (find_label_symbols): ... this.
3529 (decode_digits_list_mode): Add and use LS argument.
3530 (decode_digits_ordinary): Likewise.
3531 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3532 If in list mode, allow any symbol class. Otherwise, only
3533 permit LOC_BLOCK symbols.
3534 (minsym_found): Update comments.
3535 (search_minsyms_for_name): Do not convert the matching symbol
3536 into a SAL. Simply push the symbol and objfile into the
3538 (decode_variable): Delete. Contents adapted into
3539 find_linespec_symbols.
3541 * cp-support.c (SKIP_SPACE): Remove.
3542 (operator_tokens): Remove unused global.
3543 (cp_validate_operator): Remove.
3544 * cp-support.h (cp_validate_operator): Remove declaration.
3546 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3548 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3549 for TYPE_VPTR_FIELDNO.
3550 * valprint.c (valprint_check_validity): Make it global, move the
3551 function comment ...
3552 * value.h (valprint_check_validity): ... to this new declaration.
3554 2012-04-02 Tristan Gingold <gingold@adacore.com>
3556 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3557 the STATE32 api for i386 state.
3558 (i386_darwin_store_inferior_registers): Likewise.
3560 2012-04-02 Tristan Gingold <gingold@adacore.com>
3562 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3564 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3567 2012-04-02 Tristan Gingold <gingold@adacore.com>
3570 * darwin-nat.c (darwin_execvp): Set binary preference.
3572 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3574 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3576 2012-03-30 Tom Tromey <tromey@redhat.com>
3578 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3579 of TRY_CATCH. Fix error handling.
3580 * python/py-value.c (convert_value_from_python): Move 'old'
3581 declaration to innermost scope.
3583 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3584 Andrey Smirnov <andrew.smirnov@gmail.com>
3586 -Wshadow warning fix.
3587 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3588 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3589 Adjust code accordingly.
3591 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3593 * ada-lang.c (symbol_completion_add): Rename parameter
3594 "encoded" into "encoded_p". Ajust code and documentation
3597 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3598 Andrey Smirnov <andrew.smirnov@gmail.com>
3600 -Wshadow warning fix.
3601 * ada-lang.c (symbol_completion_add): Rename parameter
3602 "wild_match" into wild_match_p. Update code and documentation
3605 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3607 * ada-lang.c (symbol_completion_match): Rename parameter
3608 "encoded" into "encoded_p". Ajust code and documentation
3611 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3612 Andrey Smirnov <andrew.smirnov@gmail.com>
3614 -Wshadow warning fix.
3615 * ada-lang.c (symbol_completion_match): Rename parameter
3616 "wild_match" into "wild_match_p". Adjust code and function
3617 documentation accordingly.
3619 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3620 Andrey Smirnov <andrew.smirnov@gmail.com>
3622 -Wshadow warning fix.
3623 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3624 "symbol_info" into "info". Adjust code accordingly.
3625 (ada_lookup_symbol): Likewise.
3627 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3629 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3630 of this function's documentation.
3632 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3633 Andrey Smirnov <andrew.smirnov@gmail.com>
3635 -Wshadow warning fix.
3636 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3637 variable into "wild_match_p". Adjust code accordingly.
3639 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3640 Andrey Smirnov <andrew.smirnov@gmail.com>
3642 -Wshadow warning fix.
3643 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3644 parameter into "wild_match_p". Adjust code accordingly.
3645 Document this parameter in the function description.
3647 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3648 Andrey Smirnov <andrew.smirnov@gmail.com>
3650 -Wshadow warning fix.
3651 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
3652 "wild_match" parameter to "wild_match_p" (-Wshadow).
3654 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3656 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
3657 in function documentation.
3659 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3660 Andrey Smirnov <andrew.smirnov@gmail.com>
3662 -Wshadow warning fix.
3663 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
3664 variable into wild_match_p. Adjust code accordingly.
3666 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3667 Andrey Smirnov <andrew.smirnov@gmail.com>
3669 * ada-valprint.c (ada_val_print_1): Move the code handling
3670 TYPE_CODE_ENUM inside its own lexical block. Declare
3671 variables len and val there, instead of in the function's
3672 top level block. Avoid declaring deref_val again in a way
3673 that shadows another variable of the same name declared
3674 in one of the up-level blocks. Just re-use the up-level
3677 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3679 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
3680 Replace block_found argument by symbol_info. Adjust
3681 implementation accordingly. Add function documentation.
3682 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
3684 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
3685 * ada-exp.y (write_object_renaming): Adjust to new
3686 ada_lookup_encoded_symbol API.
3688 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3690 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
3693 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
3695 * v850-tdep.c: Add the enum values for mpu and fpu registers.
3696 (v850_register_name): Add the mpu and fpu register names.
3697 (v850e_register_name): Add the mpu and fpu register names.
3698 (v850e2_register_name): New function.
3699 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
3702 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3704 * NEWS: Add entry for Ada varobj support.
3706 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3708 * varobj.c (default_value_is_changeable_p): New function,
3709 extracted from varobj_value_is_changeable_p. Add declaration.
3710 (ada_value_is_changeable_p): New function, extracted from
3711 varobj_value_is_changeable_p. Add declaration.
3712 (struct language_specific): New field "value_is_changeable_p".
3713 (languages): Add entries for new field.
3714 (varobj_create): Set language before calling install_new_value.
3715 (varobj_value_is_changeable_p): Reimplement to call the varobj's
3716 "value_is_changeable_p" language callback.
3718 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3720 * ada-varobj.h, ada-varobj.c: New files.
3721 * Makefile.in (SFILES): Add ada-varobj.c.
3722 (HFILES_NO_SRCDIR): Add ada-varobj.h.
3723 (COMMON_OBS): Add ada-varobj.o.
3725 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3727 * varobj.c (ada_value_has_mutated): Add declaration. New function.
3728 (struct language_specific): New field "value_has_mutated".
3729 (languages): Set field "value_has_mutated" in each entry of array.
3730 (varobj_value_has_mutated): New function.
3731 (varobj_udpdate): Add handling of type mutation.
3732 (value_of_root): Add handling of type mutation.
3733 (ada_value_has_mutated): New function.
3735 2012-03-28 Pedro Alves <palves@redhat.com>
3737 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
3738 Always supply $fr0 as 0.0 and $fr1 as 1.0.
3740 2012-03-28 Tom Tromey <tromey@redhat.com>
3742 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
3743 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
3746 2012-03-28 Tom Tromey <tromey@redhat.com>
3748 * .dir-locals.el: New file.
3750 2012-03-28 Pedro Alves <palves@redhat.com>
3752 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
3754 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3756 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
3759 2012-03-27 Pedro Alves <palves@redhat.com>
3761 Eliminate struct ui_stream.
3763 * ui-out.h (struct ui_stream): Delete.
3764 (ui_out_field_stream): Adjust prototype.
3765 (ui_out_stream_new, ui_out_stream_delete)
3766 (make_cleanup_ui_out_stream_delete): Delete declarations.
3767 * ui-out.c (ui_out_field_stream): Change prototype to take a
3768 ui_file instead of a ui_stream. Adjust.
3769 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
3770 (make_cleanup_ui_out_stream_delete): Delete.
3771 * breakpoint.c (print_breakpoint_location)
3772 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
3773 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3774 * disasm.c (dump_insns): Ditto.
3775 (do_mixed_source_and_assembly, do_assembly_only): Adjust
3777 (gdb_disassembly): Use ui_file/mem_fileopen instead of
3778 ui_stream/ui_out_stream_new.
3779 * infcmd.c (print_return_value): Ditto.
3780 * osdata.c (info_osdata_command): Don't allocate a local
3782 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
3783 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3784 * tracepoint.c (print_one_static_tracepoint_marker): Don't
3785 allocate a local ui_stream.
3786 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
3787 instead of ui_stream/ui_out_stream_new.
3788 (list_args_or_locals): Don't allocate a local ui_stream.
3789 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
3790 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
3791 ui_stream/ui_out_stream_new.
3792 * cli/cli-setshow.c (do_setshow_command): Ditto.
3794 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
3796 * arm-linux-tdep.c (arm_linux_init_abi): Call
3797 set_gdbarch_process_record. Initialize `arm_swi_record' field.
3798 * arm-tdep.c (arm_process_record): New function.
3799 (deallocate_reg_mem): New function.
3800 (decode_insn): New function.
3801 (thumb_record_branch): New function.
3802 (thumb_record_ldm_stm_swi(): New function.
3803 (thumb_record_misc): New function.
3804 (thumb_record_ld_st_stack): New function.
3805 (thumb_record_ld_st_imm_offset): New function.
3806 (thumb_record_ld_st_reg_offset(): New function.
3807 (thumb_record_add_sub_cmp_mov): New function.
3808 (thumb_record_shift_add_sub): New function.
3809 (arm_record_coproc_data_proc): New function.
3810 (arm_record_coproc): New function.
3811 (arm_record_b_bl): New function.
3812 (arm_record_ld_st_multiple): New function.
3813 (arm_record_ld_st_reg_offset): New function.
3814 (arm_record_ld_st_imm_offset): New function.
3815 (arm_record_data_proc_imm): New function.
3816 (arm_record_data_proc_misc_ld_str): New function.
3817 (arm_record_extension_space): New function.
3818 (arm_record_strx): New function.
3819 (sbo_sbz): New function.
3820 (struct insn_decode_record): New structure for arm insn record.
3821 (REG_ALLOC): New macro for reg allocations.
3822 (MEM_ALLOC): New macro for memory allocations.
3823 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
3825 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
3827 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
3828 (store_register): Likewise.
3830 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3832 * MAINTAINERS (Write After Approval): Add myself to the list.
3834 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3836 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
3837 Describe also the option "auto".
3839 2012-03-22 Richard Henderson <rth@redhat.com>
3841 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
3842 * sparc-nat.c (sparc_xfer_wcookie): Make static.
3844 2012-03-22 Richard Henderson <rth@redhat.com>
3846 * jit.c (jit_read_code_entry): Compute alignment and offset of
3847 int64_t member before computing entry_size.
3849 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3851 Python scripting: Add new method Value.referenced_value to
3852 gdb.Value which can dereference pointer as well as reference
3854 * NEWS: Add entry under 'Python scripting' about the new method
3855 Value.referenced_value on gdb.Value objects.
3856 * python/py-value.c (valpy_referenced_value): New function
3857 defining a new method on gdb.Value objects which can dereference
3858 pointer and reference values.
3860 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3862 * MAINTAINERS (Write After Approval): Add myself to the list.
3864 2012-03-21 Kevin Buettner <kevinb@redhat.com>
3866 * symtab.c (skip_prologue_sal): Change test to check for "main()"
3867 in addition to "main".
3869 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3871 * expression.h (op_name): Add declaration.
3872 * expprint.c (op_name): Remove declaration. Make non-static.
3873 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
3875 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
3877 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
3879 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
3880 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3881 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
3882 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
3883 (linux_nat_get_siginfo): Likewise.
3884 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
3885 (linux_nat_get_siginfo): Likewise.
3886 * linux-tdep.c (linux_get_siginfo_type): Likewise.
3887 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
3888 * procfs.c (gdb_siginfo_t): Likewise.
3890 2012-03-21 Mike Frysinger <vapier@gentoo.org>
3892 * .gitignore: Ignore more files.
3894 2012-03-20 Pedro Alves <palves@redhat.com>
3896 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
3899 2012-03-20 Yao Qi <yao@codesourcery.com>
3901 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
3904 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3906 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
3907 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
3908 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
3910 * dwarf2expr.h (cu_offset, sect_offset): New types.
3911 (struct dwarf_expr_context_funcs) <dwarf_call>
3912 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
3914 (struct dwarf_expr_context) <len>: Improve the comment.
3915 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
3916 cu_offset and sect_offset.
3917 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
3918 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
3919 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
3920 * dwarf2loc.h: Include dwarf2expr.h.
3921 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
3923 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
3924 Improve the comment.
3925 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
3926 (struct signatured_type, struct line_header, struct partial_die_info)
3927 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
3928 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
3929 (get_die_type_at_offset, create_cus_from_index)
3930 (create_signatured_type_table_from_index, dw2_get_file_names)
3931 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
3932 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
3933 (create_debug_types_hash_table, process_psymtab_comp_unit)
3934 (load_partial_comp_unit, create_all_comp_units)
3935 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
3936 (load_full_comp_unit, dwarf2_physname, read_import_statement)
3937 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
3938 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
3939 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
3940 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
3941 (find_partial_die, read_attribute_value, lookup_die_type)
3942 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
3943 (is_ref_attr): New function comment.
3944 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
3945 Use cu_offset and sect_offset.
3946 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
3947 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
3948 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
3949 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
3950 (offset_and_type_hash, offset_and_type_eq, set_die_type)
3951 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
3952 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
3955 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3958 * python/py-auto-load.c (source_section_scripts): New variable back_to.
3959 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
3961 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
3963 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3965 * NEWS: Describe new options --init-command=FILE, -ix and
3966 --init-eval-command=COMMAND, -iex.
3967 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
3968 CMDARG_INIT_COMMAND.
3969 (captured_main): New enum items OPT_IX and OPT_IEX. Add
3970 "init-command", "init-eval-command", "ix" and "iex" to the variable
3971 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
3972 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
3973 (print_gdb_help): Describe --init-command=FILE, -ix and
3974 --init-eval-command=COMMAND, -iex.
3976 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3979 * main.c (struct cmdarg): Move it here from main. Add more comments.
3980 (cmdarg_s, VEC (cmdarg_s)): New.
3981 (main): Move struct cmdarg from here. New variables cmdarg_vec and
3982 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
3983 Install cleanup for cmdarg_vec. Update filling for options 'x' and
3984 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
3987 2012-03-19 Tom Tromey <tromey@redhat.com>
3989 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
3991 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3994 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
3997 2012-03-16 Chris January <chris.january@allinea.com>
3999 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4002 2012-03-16 Chris January <chris.january@allinea.com>
4004 * source.c (add_path): Use memmove instead of strcpy because the
4007 2012-03-16 Joel Brobecker <brobecker@adacore.com>
4009 * value.h (set_value_parent): Add declaration.
4010 * value.c (set_value_parent): New function.
4011 (value_address): If VALUE->PARENT is not NULL, then use it as
4012 the base address instead of VALUE->LOCATION.address.
4013 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4014 the same as OBJ's address. Adjust V's offset accordingly.
4017 2012-03-16 Gary Benson <gbenson@redhat.com>
4019 PR breakpoints/10738
4020 * dwarf2read.c (use_deprecated_index_sections): New global.
4021 (struct partial_die_info): New member may_be_inlined.
4022 (read_partial_die): Set may_be_inlined where appropriate.
4023 (add_partial_subprogram): Add partial symbols for partial
4024 DIEs that may be inlined.
4025 (new_symbol_full): Add inlined subroutines to the current
4027 (write_psymtabs_to_index): Bump version number.
4028 (dwarf2_read_index): Read only version 6 indices unless
4029 use_deprecated_index_sections is set.
4030 * linespec.c (symbol_and_data_callback): New structure.
4031 (iterate_inline_only): New function.
4032 (iterate_over_all_matching_symtabs): New argument
4033 "include_inline". If nonzero, also call the callback for
4034 symbols representing inlined subroutines.
4035 (lookup_prefix_sym): Pass extra argument to the above.
4036 (find_function_symbols): Likewise.
4037 (add_matching_symbols_to_info): Likewise.
4038 * NEWS: Mention that GDB can now set breakpoints on inlined
4041 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4043 * p-typeprint.c (pascal_type_print_method_args):
4044 Fix display of parameter of methods.
4046 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4048 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4049 Add missing prototype.
4051 2012-03-16 Yao Qi <yao@codesourcery.com>
4052 Jan Kratochvil <jan.kratochvil@redhat.com>
4054 Fix false compilation warning.
4055 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4057 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
4058 Pedro Alves <pedro@codesourcery.com>
4060 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4061 (arm_register_g_packet_guesses): New function.
4062 (arm_gdbarch_init): Don't force a target description with
4063 registers when the executable is detected as M-profile. Instead
4064 set gdbarch->tdep->is_m. Register `g' packet guesses.
4065 (_initialize_arm_tdep): Initialize the new target description.
4066 * features/arm-with-m-fpa-layout.xml: New description.
4067 * features/arm-with-m-fpa-layout.c: New, generated.
4069 2012-03-15 Joel Brobecker <brobecker@adacore.com>
4071 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4072 Update function description.
4073 (insert_bp_location): Do not wipe bl->target_info out.
4074 * mem-break.c: #include "gdb_string.h".
4075 (default_memory_insert_breakpoint): Do not call target_read_memory
4076 with a pointer to the breakpoint's shadow_contents buffer. Use
4077 a local buffer instead.
4078 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4080 2012-03-15 Tom Tromey <tromey@redhat.com>
4082 * NEWS: Mention "info vtbl", not "info vtable".
4083 * cp-support.c (info_vtbl_command): Fix comment.
4084 (_initialize_cp_support): Fix text.
4086 2012-03-15 Tom Tromey <tromey@redhat.com>
4088 * cp-valprint.c (cp_print_value_fields): Use
4089 print_function_pointer_address for vtable slot.
4091 2012-03-15 Tom Tromey <tromey@redhat.com>
4093 * gnu-v3-abi.c (struct value_and_voffset): New.
4094 (hash_value_and_voffset, eq_value_and_voffset)
4095 (compare_value_and_voffset, compute_vtable_size)
4096 (print_one_vtable, gnuv3_print_vtable): New functions.
4097 (init_gnuv3_ops): Initialize 'print_vtable' field.
4098 * cp-support.c (info_vtbl_command): New function.
4099 (_initialize_cp_support): Add "info vtbl".
4100 * cp-abi.h (cplus_print_vtable): Declare.
4101 (struct cp_abi_ops) <print_vtable>: New field.
4102 * cp-abi.c (cplus_print_vtable): New function.
4105 2012-03-15 Tom Tromey <tromey@redhat.com>
4107 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4108 iterate_over_symbols.
4110 2012-03-14 Doug Evans <dje@google.com>
4112 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4113 DW_OP_GNU_parameter_ref.
4115 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4117 Fix double prompt of 'interpreter-exec mi'.
4118 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4119 (mi_interpreter_resume): use it.
4120 (mi_execute_command_input_handler): New function.
4121 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4122 mi_execute_command_input_handler.
4124 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
4126 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4128 (darwin_debug_port_info): Make static.
4129 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4130 * machoread.c (_initialize_machoread): Add prototype.
4131 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4132 (i386_darwin_set_control, i386_darwin_get_control)
4133 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4134 i386_darwin_get_status, i386_darwin_get_control):
4135 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4137 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4139 * ax-gdb.c (gen_usual_unary): Remove special handling of
4140 enum and bool types.
4142 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4144 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4146 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4148 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4150 2012-03-13 Chris January <chris.january@allinea.com>
4152 * aix-thread.c (fill_sprs): Store the floating point registers
4153 at the correct offsets into vals.
4155 2012-03-13 Doug Evans <dje@google.com>
4157 * NEWS: Mention symbol-reloading has been deleted.
4158 * symfile.c (symbol_reloading): Delete.
4159 (show_symbol_reloading): Delete.
4160 (_initialize_symfile): Delete set/show symbol-reloading.
4162 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4163 read_in_chain until we have successfully read it in.
4164 (load_full_comp_unit): Ditto.
4165 (read_signatured_type): Add comment.
4167 2012-03-13 Chris January <chris.january@allinea.com>
4169 * stabsread.c (fix_common_block): Change type of valu argument
4172 2012-03-13 Chris January <chris.january@allinea.com>
4174 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4177 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4179 * common/linux-procfs.c (linux_proc_get_int): New, from
4180 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4182 (linux_proc_get_tgid): Only call linux_proc_get_int.
4183 (linux_proc_get_tracerpid): New.
4184 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4185 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4186 linux_proc_pid_has_state.
4187 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4188 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4189 (linux_ptrace_attach_warnings): New.
4190 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4192 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4193 (linux_nat_attach): New variables ex, buffer, message and message_s.
4194 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4196 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4198 * Makefile.in (linux-ptrace.o): New.
4199 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4201 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4202 * common/linux-ptrace.c: New file.
4203 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4204 * config/arm/linux.mh: Likewise.
4205 * config/i386/linux.mh: Likewise.
4206 * config/i386/linux64.mh: Likewise.
4207 * config/ia64/linux.mh: Likewise.
4208 * config/m32r/linux.mh: Likewise.
4209 * config/m68k/linux.mh: Likewise.
4210 * config/mips/linux.mh: Likewise.
4211 * config/pa/linux.mh: Likewise.
4212 * config/powerpc/linux.mh: Likewise.
4213 * config/powerpc/ppc64-linux.mh: Likewise.
4214 * config/powerpc/spu-linux.mh: Likewise.
4215 * config/s390/s390.mh: Likewise.
4216 * config/sparc/linux.mh: Likewise.
4217 * config/sparc/linux64.mh: Likewise.
4218 * config/xtensa/linux.mh: Likewise.
4219 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4220 common/linux-procfs.c.
4221 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4223 2012-03-13 Hui Zhu <teawater@gmail.com>
4224 Pedro Alves <palves@redhat.com>
4226 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4227 CREATE_BREAKPOINT_FLAGS_INSERTED.
4228 (create_breakpoint_sal, create_breakpoints_sal)
4229 (base_breakpoint_create_breakpoints_sal)
4230 (tracepoint_create_breakpoints_sal)
4231 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4233 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4234 (ftrace_command, strace_command): Adjust.
4235 (create_tracepoint_from_upload): Pass
4236 CREATE_BREAKPOINT_FLAGS_INSERTED.
4237 * breakpoint.h (enum breakpoint_create_flags): New.
4238 (create_breakpoint): New flags parameter.
4239 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4240 * python/py-breakpoint.c (bppy_init): Adjust.
4241 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4242 * spu-tdep.c (spu_catch_start): Adjust.
4244 2012-03-13 Pedro Alves <palves@redhat.com>
4245 Hui Zhu <teawater@gmail.com>
4246 Yao Qi <yao@codesourcery.com>
4248 * remote.c (struct remote_state): New field `starting_up'.
4249 (remote_start_remote): Set and clear it.
4250 (remote_can_download_tracepoint): If starting up, return false.
4252 2012-03-13 Yao Qi <yao@codesourcery.com>
4254 * inferior.h (struct inferior): Remove fields any_syscall_count,
4255 syscalls_counts and total_syscalls_count. Move them to new
4256 struct catch_syscall_inferior_data in breakpoint.c.
4257 * breakpoint.c: Call DEF_VEC_I(int).
4258 (struct catch_syscall_inferior_data): New.
4259 (get_catch_syscall_inferior_data): New.
4260 (catch_syscall_inferior_data_cleanup): New.
4261 (insert_catch_syscall): Update to access data in
4262 struct catch_syscall_inferior_data.
4263 (insert_catch_syscall): Likewise.
4264 (remove_catch_syscall): Likewise.
4265 (remove_catch_syscall): Likewise.
4266 (is_syscall_catchpoint_enabled): Likewise.
4267 (add_catch_command): Likewise.
4268 (_initialize_breakpoint): Register cleanup.
4269 * breakpoint.h: Removed DEF_VEC_I(int).
4270 * dwarf2loc.c: Call DEF_VEC_I(int).
4271 * mi/mi-main.c: Likewise.
4273 2012-03-12 Mark Kettenis <kettenis@gnu.org>
4275 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4277 2012-03-12 Chris January <chris.january@allinea.com>
4279 * aix-thread.c (_initialize_aix_thread): Add prototype.
4280 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4281 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4283 2012-03-12 Joel Brobecker <brobecker@adacore.com>
4285 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4286 include of "amd64-nat.h".
4288 2012-03-12 Tom Tromey <tromey@redhat.com>
4290 * buildsym.c (record_pending_block): Now static.
4291 * buildsym.h: (record_pending_block): Remove.
4293 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
4295 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4297 2012-03-09 Tom Tromey <tromey@redhat.com>
4299 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4300 producer_is_gxx_lt_4_6>: New fields.
4301 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4303 2012-03-09 Tom Tromey <tromey@redhat.com>
4305 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4307 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4309 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4312 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4314 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4316 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4318 Fix -Wmissing-prototypes build.
4319 * arm-linux-nat.c (get_thread_id): Make it static.
4320 * xtensa-linux-nat.c (get_thread_id): Likewise.
4322 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4324 * server.c (process_point_options): If a conditional expression
4325 is found, only print a message if remote_debug is nonzero.
4327 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
4329 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4330 of internal error for unknown/unsupported types.
4332 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4334 Fix CU relative vs. absolute DIE offsets.
4335 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4336 offset to offset_in_cu.
4337 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4339 (dwarf2_fetch_die_location_block): Rename parameter offset to
4340 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4342 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4344 * libunwind-frame.c: Rename to ...
4345 * ia64-libunwind-tdep.c: ... here.
4346 * libunwind-frame.h: Rename to ...
4347 * ia64-libunwind-tdep.h: ... here.
4348 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4349 ia64-libunwind-tdep.h.
4350 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4351 * README (--with-libunwind): Rename to ...
4352 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4353 * config.in: Regenerate.
4354 * configure: Regenerate.
4355 * configure.ac: New option --with-libunwind-ia64, make the
4356 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4357 Remove AC_DEFINE for HAVE_LIBUNWIND.
4358 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4359 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4360 Rename libunwind-frame in the general comment.
4361 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4362 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4363 Move forward declarations inside #ifndef. Rename libunwind-frame in
4364 the general comment.
4365 * ia64-tdep.c: Rename libunwind-frame.h #include to
4366 ia64-libunwind-tdep.h.
4367 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4368 (ia64_libunwind_descr): Rename libunwind-frame to
4369 ia64-libunwind-tdep in these function comments.
4370 * ia64-tdep.h: Rename libunwind-frame.h #include to
4371 ia64-libunwind-tdep.h.
4372 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4373 ia64-libunwind-tdep in that data comment.
4375 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4377 * libunwind-frame.h (struct frame_unwind): New declaration.
4379 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4381 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4382 "set breakpoint condition-evaluation" command.
4384 2012-03-08 Tristan Gingold <gingold@adacore.com>
4386 * sparc-stub.c: Move to stubs/
4387 * sh-stub.c: Likewise.
4388 * m68k-stub.c: Likewise.
4389 * m32r-stub.c: Likewise.
4390 * i386-stub.c: Likewise.
4392 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4394 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4395 linux_get_siginfo_type.
4397 * m68klinux-nat.c: Include "gdb_proc_service.h".
4398 (PTRACE_GET_THREAD_AREA): Define.
4399 (ps_get_thread_area): New function.
4401 2012-03-08 Yao Qi <yao@codesourcery.com>
4403 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4405 (remote_query_attached): Likewise.
4406 (remote_static_tracepoint_marker_at): Likewise.
4407 (remote_set_permissions): Likewise.
4408 (remote_detach_1, extended_remote_attach_1): Likewise.
4409 (send_g_packet, remote_vkill): Likewise.
4410 (extended_remote_disable_randomization): Likewise.
4411 (remote_add_target_side_condition): Likewise.
4412 (remote_insert_breakpoint): Likewise.
4413 (remote_remove_breakpoint): Likewise.
4414 (remote_insert_watchpoint): Likewise.
4415 (remote_remove_watchpoint): Likewise.
4416 (remote_insert_hw_breakpoint): Likewise.
4417 (remote_insert_hw_breakpoint): Likewise.
4418 (remote_remove_hw_breakpoint): Likewise.
4419 (remote_download_command_source): Likewise.
4420 (remote_download_tracepoint): Likewise.
4421 (remote_download_trace_state_variable): Likewise.
4422 (remote_disable_tracepoint): Likewise.
4423 (remote_trace_set_readonly_regions): Likewise.
4424 (remote_get_tracepoint_status): Likewise.
4425 (remote_trace_find): Likewise.
4426 (remote_get_trace_state_variable_value): Likewise.
4427 (remote_set_disconnected_tracing): Likewise.
4428 (remote_set_circular_trace_buffer): Likewise.
4429 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4430 (remote_use_agent): Likewise.
4431 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4434 2012-03-07 Pedro Alves <palves@redhat.com>
4436 * NEWS: Mention QProgramSignals.
4437 * inferior.h (update_signals_program_target): Declare.
4438 * infrun.c: (update_signals_program_target): New.
4439 (handle_command): Update the target of the new program signals
4441 * remote.c (PACKET_QProgramSignals): New enum.
4442 (last_program_signals_packet): New global.
4443 (remote_program_signals): New.
4444 (remote_start_remote): Update the target with the program signals
4446 (remote_protocol_features): Add entry for QPassSignals.
4447 (remote_open_1): Free anc clear last_program_signals_packet.
4448 (init_remote_ops): Install remote_program_signals.
4449 * target.c (update_current_target): Adjust.
4450 (target_program_signals): New.
4451 * target.h (struct target_ops) <to_program_signals>: New field.
4452 (target_program_signals): Declare.
4454 2012-03-07 Pedro Alves <palves@redhat.com>
4456 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4459 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4461 * m68klinux-nat.c (getregs_supplies): Make static.
4462 (getfpregs_supplies): Likewise.
4463 (have_ptrace_getregs): Likewise.
4465 2012-03-06 Joel Brobecker <brobecker@adacore.com>
4467 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4468 in call to get_die_type_at_offset.
4470 2012-03-06 Stan Shebs <stan@codesourcery.com>
4472 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4473 * mi/mi-cmd-disas.c: Ditto.
4474 * mi/mi-cmd-env.c: Ditto.
4475 * mi/mi-cmd-file.c: Ditto.
4476 * mi/mi-cmd-stack.c: Ditto.
4477 * mi/mi-cmd-target.c: Ditto.
4478 * mi/mi-cmd-var.c: Ditto.
4479 * mi/mi-cmds.c: Ditto.
4480 * mi/mi-cmds.h: Ditto.
4481 * mi/mi-console.c: Ditto.
4482 * mi/mi-getopt.c: Ditto.
4483 * mi/mi-getopt.h: Ditto.
4484 * mi/mi-interp.c: Ditto.
4485 * mi/mi-main.c: Ditto.
4486 * mi/mi-out.c: Ditto.
4487 * mi/mi-parse.c: Ditto.
4488 * mi/mi-parse.h: Ditto.
4489 * mi/mi-symbol-cmds.c: Ditto.
4491 * mi/mi-getopt.h: Move mi_opt struct up.
4492 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4494 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4496 2012-03-06 Tom Tromey <tromey@redhat.com>
4498 * proc-service.c (ps_pglobal_lookup): Set the current program
4501 2012-03-06 Pedro Alves <palves@redhat.com>
4503 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4505 2012-03-05 Joel Brobecker <brobecker@adacore.com>
4507 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4509 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4512 * common/linux-osdata.c (linux_common_core_of_thread): New function
4514 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4515 call by linux_common_core_of_thread.
4516 (linux_nat_core_of_thread_1): Remove.
4517 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4518 * linux-thread-db.c: Include linux-osdata.h.
4519 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4520 linux_common_core_of_thread.
4522 2012-03-05 Tom Tromey <tromey@redhat.com>
4524 * value.c (value_primitive_field): Don't fetch contents for
4527 2012-03-05 Tom Tromey <tromey@redhat.com>
4529 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4531 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
4533 * s390-nat.c: Include "gregset.h".
4535 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4537 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4538 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4539 (libunwind_load): New variable so_error, use it for dlerror. Try to
4540 load also LIBUNWIND_SO_7.
4542 2012-03-05 Pedro Alves <palves@redhat.com>
4544 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4545 is not NULL, and remove resulting dead code.
4547 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4549 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4550 prologue to sh_analyze_prologue.
4551 (sh_analyze_prologue): Make better use of such an upper limit, and
4552 generally be more cautious about accessing memory.
4554 2012-03-05 Tom Tromey <tromey@redhat.com>
4556 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4557 _initialize_ia64_hpux_tdep.
4559 2012-03-05 Pedro Alves <palves@redhat.com>
4563 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4564 the register state is clear, supply explicit zero, instead of
4565 marking the register unavailable.
4567 2012-03-05 Tristan Gingold <gingold@adacore.com>
4569 * NEWS: Mention OpenVMS ia64 new target.
4571 2012-03-05 Tristan Gingold <gingold@adacore.com>
4573 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4574 (ia64_unw_accessors, ia64_unw_rse_accessors)
4575 (ia64_libunwind_descr): Declare.
4576 * ia64-vms-tdep.c: New file.
4577 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4578 (ia64_libunwind_descr): Make them public.
4579 * configure.tgt: Add ia64-*-*vms*.
4580 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4581 (ALLDEPFILES): Add ia64-vms-tdep.c
4583 2012-03-05 Tristan Gingold <gingold@adacore.com>
4585 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4586 * remote.c (PACKET_qXfer_uib): New enum value.
4587 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4588 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4589 (_initialize_remote): Call add_packet_config_cmd for
4592 2012-03-05 Tristan Gingold <gingold@adacore.com>
4594 * osabi.c (gdb_osabi_names): Add OpenVMS.
4595 (generic_elf_osabi_sniffer): Likewise.
4596 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4598 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4600 Removed unused code.
4601 * libunwind-frame.c (libunwind_frame_unwind)
4602 (libunwind_frame_base_address): Remove.
4603 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4605 2012-03-04 Yao Qi <yao@codesourcery.com>
4607 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4608 remove trailing new line.
4609 (agent_run_command, agent_run_command): Add _ markup.
4610 (agent_capability_check): Likewise.
4612 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4614 * breakpoint.c (set_condition_evaluation_mode): Set
4615 CONDITION_EVALUATION_MODE unconditionally.
4617 2012-03-03 Yao Qi <yao@codesourcery.com>
4619 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4620 * common/agent.h: Update declaration.
4621 * inf-child.c (inf_child_use_agent): New.
4622 (inf_child_can_use_agent): New.
4623 (inf_child_target): Initialize fields `to_use_agent'
4624 and `to_can_use_agent'.
4625 * agent.c (agent_new_objfile): New.
4626 (_initialize_agent): Add agent_new_objfile to new_objfile
4629 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4631 (linux_target_install_ops): Initialize field
4632 `to_static_tracepoint_markers_by_strid'.
4633 * remote.c (free_current_marker): Move it to ...
4634 * tracepoint.c (free_current_marker): ... here. New.
4635 (cleanup_target_stop): New.
4636 * tracepoint.h: Declare free_current_marker.
4637 * NEWS: Add one entry about `info static-tracepoint-marker'.
4639 2012-03-03 Yao Qi <yao@codesourcery.com>
4641 * common/agent.c (agent_loaded_p): New.
4642 (agent_look_up_symbols): New global.
4643 * common/agent.h: Declare agent_loaded_p.
4645 2012-03-03 Yao Qi <yao@codesourcery.com>
4647 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
4648 (agent_capability_check, agent_capability_invalidate): New.
4649 (symbol_list): New array element.
4650 * common/agent.h (enum agent_capa): New.
4651 * target.c (target_pre_inferior): Call agent_capability_invalidate.
4653 2012-03-03 Yao Qi <yao@codesourcery.com>
4655 * target.h (struct target_ops) <to_use_agent>: New field.
4656 (struct target_ops) <to_can_use_agent>: New field.
4657 (target_use_agent, target_can_use_agent): New macro.
4658 * target.c (update_current_target): Update.
4659 * remote.c: New enum `PACKET_QAgent'.
4660 (remote_protocol_features): Add a new element.
4661 (remote_use_agent, remote_can_use_agent): New.
4662 (init_remote_ops): Initialize field `can_use_agent' with
4663 remote_can_use_agent. Intiailize field `use_agent' with
4665 * common/agent.c (use_agent): New global.
4666 * common/agent.h: Declare it.
4667 * tracepoint.c (info_static_tracepoint_markers_command): Add
4669 * Makefile.in (SFILES): Add common/agent.c and agent.c.
4670 (COMMON_OBS): Add common/agent.o and agent.o
4671 (common-agent.o): New rule.
4674 2012-03-03 Yao Qi <yao@codesourcery.com>
4676 * common/agent.c: New.
4677 * common/agent.h: New.
4678 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
4680 * configure, configh.in: Regenerated.
4682 2012-03-02 Kevin Buettner <kevinb@redhat.com>
4684 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
4685 unless it exists for this architecture.
4687 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4689 * language.h (struct language_defn): New "method" la_read_var_value.
4690 * findvar.c: #include "language.h".
4691 (default_read_var_value): Renames read_var_value. Rewrite
4692 function description.
4693 (read_var_value): New function.
4694 * value.h (default_read_var_value): Add prototype.
4695 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
4697 (ada_language_defn): Add entry for la_read_var_value.
4698 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
4699 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
4700 language_defn structures to add entry for new la_read_var_value
4703 2012-03-02 Tom Tromey <tromey@redhat.com>
4704 Pedro Alves <palves@redhat.com>
4706 PR breakpoints/13776:
4707 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
4709 (delete_longjmp_breakpoint_at_next_stop): New.
4710 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
4711 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
4712 before deleting the inferior. Add comments.
4713 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
4714 breakpoints immediately, but only on next stop. Move that code
4715 next to where we mark other breakpoints for deletion.
4717 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4719 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
4721 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
4724 2012-03-02 Pedro Alves <palves@redhat.com>
4726 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
4728 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4730 Fix -Wmissing-prototypes build.
4731 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
4732 * remote-sim.c (gdbsim_has_all_memory): Likewise.
4733 (gdbsim_has_memory): Likewise.
4735 2012-03-02 Yao Qi <yao@codesourcery.com>
4737 Fix -Wmissing-prototypes build.
4738 * charset.c (phony_iconv_open): Make static.
4739 (phony_iconv_close, phony_iconv): Likewise.
4740 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
4741 * i386-windows-nat.c (_initialize_i386_windows_nat): New
4743 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
4744 * ser-mingw.c (create_select_thread): Make static.
4745 * windows-termcap.c (tgetent): New prototype.
4746 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
4748 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
4750 Fix -Wmissing-prototypes build.
4751 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
4752 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
4753 (_initialize_loadable): New prototypes.
4755 2012-03-02 Doug Evans <dje@google.com>
4757 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
4758 abbrev table, read_comp_unit will do it.
4760 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4762 Fix -Wmissing-prototypes build.
4763 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
4764 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
4765 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
4766 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
4767 (_initialize_arm_symbian_tdep): New prototype.
4768 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
4769 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
4770 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
4772 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
4773 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
4775 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
4776 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
4777 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
4779 * moxie-tdep.c (moxie_process_record): Likewise.
4780 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
4781 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
4782 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
4783 (_initialize_rl78_tdep): New prototype.
4784 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
4785 (_initialize_rx_tdep): New prototype.
4786 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
4787 (_initialize_darwin_solib): New prototype.
4788 * solib-spu.c: Include solib-spu.h.
4789 (_initialize_spu_solib): New prototype.
4790 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
4791 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
4792 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
4793 (tic6x_software_single_step): Make it static.
4794 (_initialize_tic6x_tdep): New prototype.
4796 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4798 Fix -Wmissing-prototypes build.
4799 * cris-tdep.c (cris_can_use_hardware_watchpoint)
4800 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
4802 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4804 Fix -Wmissing-prototypes build.
4805 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
4806 (frv_have_stopped_data_address): Remove.
4808 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4810 Fix -Wmissing-prototypes build.
4811 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
4812 * sh-tdep.c: Include sh64-tdep.h.
4813 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
4814 * sh64-tdep.c: Include sh64-tdep.h.
4815 * sh64-tdep.h: New file.
4817 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4819 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
4821 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4823 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
4824 sp_regnum once the gdbarch_init_osabi hook has been called.
4826 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4828 * mips-tdep.c (mips32_bc1_pc): New function.
4829 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
4830 BPOSGE32 and BPOSGE64 instructions.
4831 (deal_with_atomic_sequence): Likewise.
4832 (mips32_instruction_has_delay_slot): Likewise.
4834 2012-03-01 Maciej W. Rozycki <macro@mips.com>
4835 Chris Dearman <chris@mips.com>
4836 Maciej W. Rozycki <macro@codesourcery.com>
4837 Joseph Myers <joseph@codesourcery.com>
4839 * features/mips-dsp.xml: New file.
4840 * features/mips64-dsp.xml: New file.
4841 * features/mips-dsp-linux.xml: New file.
4842 * features/mips64-dsp-linux.xml: New file.
4843 * features/Makefile (WHICH): Add mips-dsp-linux and
4845 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
4846 * features/mips-dsp-linux.c: New file.
4847 * features/mips64-dsp-linux.c: New file.
4848 * regformats/mips-dsp-linux.dat: New file.
4849 * regformats/mips64-dsp-linux.dat: New file.
4850 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
4852 (mips64_linux_register_addr): Likewise.
4853 (mips64_linux_regsets_fetch_registers): Likewise.
4854 (mips64_linux_regsets_store_registers): Likewise.
4855 (mips64_linux_fetch_registers): Update call to
4856 mips64_linux_regsets_fetch_registers.
4857 (mips64_linux_store_registers): Update call to
4858 mips64_linux_regsets_store_registers.
4859 (mips_linux_read_description): Probe for DSP registers.
4860 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
4861 and initialize_tdesc_mips64_dsp_linux.
4862 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
4863 Remove padding of no longer used embedded register slots.
4864 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
4865 (MIPS_RESTART_REGNUM): Redefine enum value.
4866 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
4868 (mips_tx39_reg_names): Likewise.
4869 (mips_linux_reg_names): New array of register names for Linux
4871 (mips_register_name): Check for a null pointer in
4872 mips_processor_reg_names and return an empty string.
4873 (mips_register_type): Exclude embedded registers for the IRIX
4875 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
4876 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
4878 (mips_stab_reg_to_regnum): Handle DSP accumulators.
4879 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
4880 (mips_gdbarch_init): Likewise. Initialize internal register
4881 indices for the Linux ABI. Use dynamic numbers to refer to
4882 registers, as applicable, while parsing the target description.
4883 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
4885 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4887 * frame.h (read_frame_register_unsigned): Fix typo in function
4890 2012-03-01 Pedro Alves <palves@redhat.com>
4892 * jit-reader.in [!__cplusplus]
4893 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
4895 2012-03-01 Pedro Alves <palves@redhat.com>
4897 * configure.ac (build_warnings): Add -Wmissing-prototypes.
4898 * configure: Regenerate.
4900 2012-03-01 Pedro Alves <palves@redhat.com>
4902 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
4903 * breakpoint.c (create_exception_master_breakpoint, trace_command)
4904 (ftrace_command, strace_command): Make static.
4905 * d-lang.c (_initialize_d_language): Declare.
4906 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
4907 * dwarf2loc.c (_initialize_dwarf2loc):
4908 * dwarf2read.c (process_psymtab_comp_unit): Make static.
4909 * exec.c (exec_get_section_table): Make static.
4910 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
4911 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
4912 * inferior.c (remove_inferior_command, add_inferior_command)
4913 (clone_inferior_command): Make static.
4914 * linux-nat.c (linux_nat_thread_address_space)
4915 (linux_nat_core_of_thread): Make static.
4916 * linux-tdep.c (_initialize_linux_tdep): Declare.
4917 * objc-lang.c (_initialize_objc_lang): Declare.
4918 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
4920 (_initialize_opencl_language): Declare.
4921 * record.c (_initialize_record): Declare.
4922 * remote.c (demand_private_info, remote_get_tib_address)
4923 (remote_supports_cond_tracepoints)
4924 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
4926 * skip.c (_initialize_step_skip): Declare.
4927 * symtab.c (skip_prologue_using_lineinfo): Make static.
4928 * tracepoint.c (delete_trace_state_variable)
4929 (trace_variable_command, delete_trace_variable_command)
4930 (get_uploaded_tsv, find_matching_tracepoint_location)
4931 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
4933 * value.c (pack_unsigned_long): Make static.
4934 * varobj.c (varobj_ensure_python_env): Make static.
4935 * windows-tdep.c (_initialize_windows_tdep): Declare.
4936 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
4938 2012-03-01 Pedro Alves <palves@redhat.com>
4940 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
4942 (linux_init_abi): Install it as has_shared_address_space gdbarch
4945 2012-03-01 Pedro Alves <palves@redhat.com>
4947 * observer.c (observer_test_first_notification_function)
4948 (observer_test_second_notification_function)
4949 (observer_test_third_notification_function): Add declarations.
4951 2012-03-01 Pedro Alves <palves@redhat.com>
4953 * common/signals.c (default_target_signal_to_host)
4954 (default_target_signal_from_host): Move ...
4955 * arch-utils.c: ... here.
4956 * arch-utils.h (default_target_signal_to_host)
4957 (default_target_signal_from_host): Declare.
4959 * common/signals.c (target_signal_from_command): Move ...
4960 * infrun.c: ... here.
4961 * inferior.h (target_signal_from_command): Declare.
4962 * target.h (target_signal_from_command)
4963 (default_target_signal_from_host, default_target_signal_to_host):
4964 Delete declarations.
4966 * common/signals.c (_initialize_signals): Delete.
4968 2012-03-01 Pedro Alves <palves@redhat.com>
4970 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
4971 both __cplusplus and !__cplusplus.
4973 2012-03-01 Pedro Alves <palves@redhat.com>
4975 * psymtab.c (find_and_open_source): Delete declaration.
4976 * source.c (find_and_open_source): Move comment ...
4977 * source.h (find_and_open_source): ... to this new declaration.
4979 2012-03-01 Pedro Alves <palves@redhat.com>
4981 * inline-frame.c: Include inline-frame.h.
4983 2012-03-01 Pedro Alves <palves@redhat.com>
4985 * tui/tui-data.c (set_gen_win_origin): Delete.
4986 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
4987 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
4989 2012-03-01 Pedro Alves <palves@redhat.com>
4991 * remote.c (encode_actions): Delete declaration.
4992 * tracepoint.c (encode_actions): Make extern.
4993 * tracepoint.h (encode_actions): Declare.
4995 2012-03-01 Pedro Alves <palves@redhat.com>
4997 * python/py-breakpoint.c: Include python.h.
4998 * python/py-continueevent.c (create_continue_event_object): Make
5000 * python/py-lazy-string.c (stpy_get_type): Make static.
5001 * python/py-newobjfileevent.c (create_new_objfile_event_object):
5003 * python/py-utils.c (unicode_to_target_python_string): Make
5005 * python/py-value.c: Include python.h.
5007 2012-03-01 Pedro Alves <palves@redhat.com>
5009 * inferior.c (delete_threads_of_inferior): Delete.
5011 2012-03-01 Pedro Alves <palves@redhat.com>
5013 Import fallback definitions from glibc.
5015 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5016 ps_prochandle): Forward declare.
5017 (ps_err_e): Use glibc's comments.
5018 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5019 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5020 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5021 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5022 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5023 (struct ps_prochandle): Adjust comment.
5025 2012-03-01 Pedro Alves <palves@redhat.com>
5027 * ada-lang.c (ada_modulus_from_name): Delete.
5028 * ada-lex.l (lexer_init): Make static.
5030 2012-03-01 Pedro Alves <palves@redhat.com>
5034 * frame.c (read_frame_register_unsigned): New.
5035 * frame.h (read_frame_register_unsigned): Declare.
5036 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5038 (print_i387_control_word): New parameter `control_p'. Handle it.
5039 (i387_print_float_info): Handle unavailable float registers.
5041 2012-03-01 Keith Seitz <keiths@redhat.com>
5043 * linespec.c (decode_line_2): Sort the list of methods
5044 alphabetically before presenting the user with a selection
5047 2012-03-01 Doug Evans <dje@google.com>
5049 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5051 (dwarf2_read_abbrevs): Remove corresponding initialization.
5053 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
5055 * NEWS: Mention new python command class gdb.COMMAND_USER.
5056 * cli/cli-cmds.c (show_user): Print error when used on a python
5058 (init_cli_cmds): Update documentation strings for "show user" and
5059 "set/show max-user-call-depth" to clarify that it does not apply to
5061 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5063 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5065 * top.c (execute_command): Only execute a user-defined command as a
5066 legacy macro if c->user_commands is set.
5068 2012-03-01 Tom Tromey <tromey@redhat.com>
5070 * valprint.h (struct generic_val_print_decorations): New.
5071 (generic_val_print): Declare.
5072 * valprint.c (generic_val_print): New function.
5073 * p-valprint.c (p_decorations): New global.
5074 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5075 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5076 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5077 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5078 * m2-valprint.c (m2_decorations): New global.
5079 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5080 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5081 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5082 TYPE_CODE_ERROR>: Call generic_val_print.
5083 * f-valprint.c (f_decorations): New global.
5084 (f_val_print): Use print_function_pointer_address.
5085 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5086 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5087 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5089 * c-valprint.c (c_decorations): New global.
5090 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5091 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5092 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5093 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5094 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5095 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5098 2012-03-01 Tom Tromey <tromey@redhat.com>
5100 * valprint.c (val_print): Update.
5101 * p-valprint (pascal_val_print): Return void.
5102 * p-lang.h (pascal_val_print): Return void.
5103 * m2-valprint.c (m2_val_print): Return void.
5104 * m2-lang.h (m2_val_print): Return void.
5105 * language.h (struct language_defn) <la_val_print>: Return void.
5106 * language.c (unk_lang_val_print): Return void.
5107 * jv-valprint.c (java_val_print): Return void.
5108 * jv-lang.h (java_val_print): Return void.
5109 * f-valprint.c (f_val_print): Return void.
5110 * f-lang.h (f_val_print): Return void.
5111 * d-valprint.c (d_val_print): Return void.
5112 (dynamic_array_type): Update.
5113 * d-lang.h (d_val_print): Return void.
5114 * c-valprint.c (c_val_print): Return void.
5115 * c-lang.h (c_val_print): Return void.
5116 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5118 * ada-lang.h (ada_val_print): Return void.
5120 2012-03-01 Tom Tromey <tromey@redhat.com>
5122 * value.h (val_print): Return void.
5123 * valprint.c (val_print): Return void.
5125 2012-03-01 Tom Tromey <tromey@redhat.com>
5127 * value.h (common_val_print): Return void.
5128 * valprint.c (common_val_print): Return void.
5130 2012-03-01 Tom Tromey <tromey@redhat.com>
5132 * value.h (value_print): Return void.
5133 * valprint.c (value_print): Return void.
5134 * p-valprint.c (pascal_value_print): Return void.
5135 * p-lang.h (pascal_value_print): Return void.
5136 * language.h (struct language_defn) <la_value_print>: Return
5138 * language.c (unk_lang_value_print): Return void.
5139 * jv-valprint.c (java_value_print): Return void.
5140 * jv-lang.h (java_value_print): Return void.
5141 * f-valprint.c (c_value_print): Don't declare.
5143 * c-valprint.c (c_value_print): Return void.
5144 * c-lang.h (c_value_print): Return void.
5145 * ada-valprint.c (ada_value_print): Return void.
5146 * ada-lang.h (ada_value_print): Return void.
5148 2012-03-01 Tom Tromey <tromey@redhat.com>
5150 * value.c (value_primitive_field): Handle virtual base classes.
5152 2012-03-01 Tom Tromey <tromey@redhat.com>
5154 * gdbtypes.h (struct vbase): Remove.
5156 2012-03-01 Tom Tromey <tromey@redhat.com>
5158 * c-valprint.c (print_function_pointer_address): Move...
5159 * valprint.c: ... here. Make non-static.
5160 * m2-valprint.c (print_function_pointer_address): Remove.
5161 * valprint.h (print_function_pointer_address): Declare.
5163 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5165 * NEWS: Document the fact that one can provide a condition when
5166 creating an Ada exception catchpoint.
5168 2012-03-01 Tom Tromey <tromey@redhat.com>
5170 * valprint.c (val_print_type_code_flags): Fix placement of
5173 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5175 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5176 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5177 environment variable before calling update-copyright.
5179 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5181 * gnulib/extra/update-copyright: Update to the latest from
5182 gnulib's git repository.
5183 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5184 variable to 2 instead of 1.
5186 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5188 * varobj.c (c_value_of_variable): Remove dead code.
5190 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5192 * ada-lex.p (processId): Do not modify already encoded IDs.
5193 Update function documentation.
5195 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5197 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5198 "name" with "struct symbol *name_sym".
5199 * ada-exp.y (write_var_or_type): Update call to
5200 ada_find_renaming_symbol.
5201 "name" with "struct symbol *name_sym". Adjust Implementation
5202 accordingly. Adjust the function documentation.
5204 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5206 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5207 * ada-lang.c (ada_find_any_type): Add advance declaration.
5208 Make static. Replace ada_find_any_symbol by
5209 ada_find_any_type_symbol.
5210 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5211 Improve function description. Make static.
5212 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5213 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5215 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5217 * ada-lang.c (struct tag_args): Delete.
5218 (ada_get_tsd_type): Function body moved up in source file.
5219 (ada_tag_name_1, ada_tag_name_2): Delete.
5220 (ada_get_tsd_from_tag): New function.
5221 (ada_tag_name_from_tsd): New function.
5222 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5223 to determine the tag name.
5225 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5227 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5229 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5232 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5234 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5236 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5238 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5241 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5243 * ada-lang.c (constrained_packed_array_type): If there is a
5244 parallel XA type, use it to determine the array index type.
5246 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5248 * ada-valprint.c (ada_val_print_1): If our value is a reference
5249 to an array descriptor, dereference it before converting it
5252 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5254 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5255 creating fixed value.
5256 (ada_value_ind, ada_coerce_ref, assign_component)
5257 (ada_evaluate_subexp): Remove call to unwrap_value before
5258 call to ada_to_fixed_value.
5260 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5262 * ada-lang.c (to_fixed_array_type): Set result's type name.
5264 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5266 * ada-lang.c (catch_ada_exception_command_split): Add new
5267 argument cond_string. Add support for condition at end of
5268 "catch exception" commands.
5269 (ada_decode_exception_location): Add new argument cond_string.
5270 Update call to catch_ada_exception_command_split.
5271 (create_ada_exception_catchpoint): Add new argument cond_string.
5272 Set the breakpoint condition if needed.
5273 (catch_ada_exception_command): Update call to
5274 ada_decode_exception_location.
5275 (ada_decode_assert_location): Add function documentation.
5276 Add support for condition at end of "catch assert" command.
5277 (catch_assert_command): Update calls to ada_decode_assert_location
5278 and create_ada_exception_catchpoint.
5280 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5282 Fix disp-step-syscall.exp: fork: single step over fork.
5283 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5284 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5285 comment, change parameters gdbarch and ptid to regcache. Remove
5286 parameter regcache, initialize gdbarch from regcache here.
5287 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5289 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5291 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5292 'syscall'. Make the 'int' check more strict.
5294 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5296 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5297 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5298 (i386_linux_intx80_sysenter_syscall_record): ... here.
5299 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5300 Use the renamed function name.
5302 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5304 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5305 * breakpoint.c (until_break_command): Likewise.
5306 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5307 * infcall.c (call_function_by_hand): Likewise.
5308 * infcmd.c (finish_forward): Likewise.
5309 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5311 2012-02-28 Tristan Gingold <gingold@adacore.com>
5313 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5314 avoid variable assignments inside condition.
5316 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5318 Fix static analysis issue found by cppcheck.
5319 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5320 uninitialized BUF for size 2.
5322 2012-02-27 Chris Dearman <chris@mips.com>
5323 Nathan Froyd <froydnj@codesourcery.com>
5324 Maciej W. Rozycki <macro@codesourcery.com>
5326 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5327 (mips16_instruction_has_delay_slot): Likewise.
5328 (mips_segment_boundary): Likewise.
5329 (mips_adjust_breakpoint_address): Likewise.
5330 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5332 2012-02-27 Maciej W. Rozycki <macro@mips.com>
5333 Maciej W. Rozycki <macro@codesourcery.com>
5335 * infrun.c (handle_inferior_event): Don't proceed through
5336 shared library trampolines if stepping at the machine
5339 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5341 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5344 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5346 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5347 (sh_stub_unwind_sniffer): New functions.
5348 (sh_stub_unwind): New variable.
5349 (sh_gdbarch_init): Wire everything.
5351 2012-02-27 Pedro Alves <palves@redhat.com>
5353 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5354 (linux_nat_post_attach_wait): Adjust to use
5355 linux_proc_pid_is_stopped.
5356 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5357 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5358 based on pid_is_stopped from both linux-nat.c and
5359 gdbserver/linux-low.c, and renamed.
5361 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5363 * remote.c (remote_watchpoint_addr_within_range): New function.
5364 (init_remote_ops): Use it.
5366 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5368 * target.h (target_watchpoint_addr_within_range): Document macro.
5370 2012-02-24 Pedro Alves <palves@redhat.com>
5372 * stack.c (set_last_displayed_sal): Issue internal_error instead
5373 of warning, and issue it after clearing the last displayed sal.
5375 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5376 Pedro Alves <palves@redhat.com>
5378 * breakpoint.c (until_break_command): Install breakpoints after
5379 all frame manipulations.
5381 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5383 * remote.c (remote_supports_cond_breakpoints): New forward
5385 (remote_add_target_side_condition): New function.
5386 (remote_insert_breakpoint): Add target-side breakpoint
5387 conditional if supported.
5388 (remote_insert_hw_breakpoint): Likewise.
5389 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5392 * target.c (update_current_target): Inherit
5393 to_supports_evaluation_of_breakpoint_conditions.
5394 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5396 * target.h (struct target_ops)
5397 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5398 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5400 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5401 (condition_evaluation_both, condition_evaluation_auto,
5402 condition_evaluation_host, condition_evaluation_target,
5403 condition_evaluation_enums, condition_evaluation_mode_1,
5404 condition_evaluation_mode): New static globals.
5405 (translate_condition_evaluation_mode): New function.
5406 (breakpoint_condition_evaluation_mode): New function.
5407 (gdb_evaluates_breakpoint_condition_p): New function.
5408 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5409 (mark_breakpoint_modified): New function.
5410 (mark_breakpoint_location_modified): New function.
5411 (set_condition_evaluation_mode): New function.
5412 (show_condition_evaluation_mode): New function.
5413 (bp_location_compare_addrs): New function.
5414 (get_first_location_gte_addr): New helper function.
5415 (set_breakpoint_condition): Free condition bytecode if locations
5416 has become unconditional. Call mark_breakpoint_modified (...).
5417 (condition_command): Call update_global_location_list (1) for
5419 (breakpoint_xfer_memory): Use is_breakpoint (...).
5420 (is_breakpoint): New function.
5421 (parse_cond_to_aexpr): New function.
5422 (build_target_condition_list): New function.
5423 (insert_bp_location): Handle target-side conditional
5424 breakpoints and call build_target_condition_list (...).
5425 (update_inserted_breakpoint_locations): New function.
5426 (insert_breakpoint_locations): Handle target-side conditional
5428 (bpstat_check_breakpoint_conditions): Add comment.
5429 (bp_condition_evaluator): New function.
5430 (bp_location_condition_evaluator): New function.
5431 (print_breakpoint_location): Print information on where the condition
5433 (print_one_breakpoint_location): Likewise.
5434 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5435 breakpoint location.
5436 (force_breakpoint_reinsertion): New functions.
5437 (update_global_location_list): Handle target-side breakpoint
5439 Reinsert locations that are already inserted if conditions have
5441 (bp_location_dtor): Free agent expression bytecode.
5442 (disable_breakpoint): Call mark_breakpoint_modified (...).
5443 Call update_global_location_list (...) with parameter 1 for breakpoints.
5444 (disable_command): Call mark_breakpoint_location_modified (...).
5445 Call update_global_location_list (...) with parameter 1 for breakpoints.
5446 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5447 (enable_command): mark_breakpoint_location_modified (...).
5448 (_initialize_breakpoint): Update documentation and add
5449 condition-evaluation breakpoint subcommand.
5451 * breakpoint.h: Include ax.h.
5452 (condition_list): New data structure.
5453 (condition_status): New enum.
5454 (bp_target_info) <cond_list>: New field.
5455 (bp_location) <condition_changed, cond_bytecode>: New fields.
5456 (is_breakpoint): New prototype.
5458 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5460 * remote.c (remote_state) <cond_breakpoints>: New field.
5461 (PACKET_ConditionalBreakpoints): New enum.
5462 (remote_cond_breakpoint_feature): New function.
5463 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5464 (remote_supports_cond_breakpoints): New function.
5465 (_initialize_remote): Add new packet configuration for
5466 target-side conditional breakpoints.
5468 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5470 * NEWS: Mention target-side conditional breakpoint support,
5471 new condition-evaluation breakpoint subcommand and remote
5474 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5476 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5479 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5481 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5482 (after_prologue): Remove.
5484 2012-02-23 Tom Tromey <tromey@redhat.com>
5486 * jv-valprint.c (java_val_print): Remove dead code.
5488 2012-02-23 Tristan Gingold <gingold@adacore.com>
5490 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5491 known_tasks_element and known_tasks_length fields.
5492 (read_known_tasks_array): Change argument type. Use pointer type
5493 and number of elements from DATA. Adjust.
5494 (read_known_tasks_list): Likewise.
5495 (get_known_tasks_addr): Remove.
5496 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5497 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5498 type and array length. Merge former get_known_tasks_addr code.
5500 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5503 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5504 it after set_momentary_breakpoint.
5506 2012-02-22 Sterling Augustine <saugustine@google.com>
5509 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5511 2012-02-22 Gary Benson <gbenson@redhat.com>
5513 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5514 (find_slot_in_mapped_hash): Likewise.
5516 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5519 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5520 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5521 * configure: Regenerate.
5523 2012-02-21 Tristan Gingold <gingold@adacore.com>
5524 Pedro Alves <palves@redhat.com>
5526 * ia64-tdep.c: Do not include libunwind-ia64.h.
5527 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5528 Include libunwind-ia64.h instead of libunwind.h.
5529 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5530 for libunwind.h existence.
5531 * configure, config.in: Regenerate.
5533 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5535 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5536 instead of value_rtti_target_type.
5537 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5538 instead of value_rtti_target_type.
5539 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5540 value_rtti_target_type.
5541 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5542 (value_rtti_target_type): Rename to ...
5543 (value_rtti_indirect_type): ... here and make it indirect. Update
5545 * value.c (readjust_indirect_value_type): New function.
5546 (coerce_ref): Support for enclosing type setting for references
5547 with readjust_indirect_value_type.
5548 * value.h (readjust_value_type): New declaration.
5549 (value_rtti_target_type): Rename to ...
5550 (value_rtti_indirect_type): ... here.
5552 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5554 * MAINTAINERS (Write After Approval): Add myself to the list.
5556 2012-02-20 Doug Evans <dje@google.com>
5558 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5559 Rename objfile_p_char parameter to objfilep.
5560 (build_objfile_section_table): Result is now void. All callers
5562 * objfiles.h (struct objfile): Tweak comments, whitespace.
5563 (build_objfile_section_table): Update.
5565 * elfread.c (elf_symfile_segments): Fix warning text.
5567 2012-02-20 Tom Tromey <tromey@redhat.com>
5570 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5571 particular set of file names once.
5572 (dw2_map_symbol_filenames): Likewise.
5574 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5577 * main.c (write_files): Remove the declaration.
5578 (external_editor_command): Move the declaration ...
5579 [GDBTK] (external_editor_command): ... here. Fix the comment.
5581 2012-02-20 Tom Tromey <tromey@redhat.com>
5583 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5586 2012-02-20 Tristan Gingold <gingold@adacore.com>
5588 * darwin-nat.h (enum darwin_msg_state): Add comments.
5590 2012-02-20 Tristan Gingold <gingold@adacore.com>
5592 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5595 2012-20-18 Joel Brobecker <brobecker@adacore.com>
5597 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5598 between function description and implementation.
5600 2012-02-17 Tom Tromey <tromey@redhat.com>
5603 * python/py-event.c (event_object_getset): New global.
5604 (event_object_type): Reference it.
5605 * python/py-type.c (field_object_getset): New global.
5606 (field_object_type): Reference it.
5607 * python/python-internal.h (gdb_py_generic_dict): Declare.
5608 * python/py-utils.c (gdb_py_generic_dict): New function.
5610 2012-02-17 Tristan Gingold <gingold@adacore.com>
5612 * solib-darwin.c (darwin_current_sos): Check magic and filetype
5614 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
5616 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5617 TYPE_CALLING_CONVENTION annotation.
5619 2012-02-16 Kevin Buettner <kevinb@redhat.com>
5621 * MAINTAINERS: Add rx to target ISA section.
5622 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5623 (ALLDEPFILES): Add rx-tdep.c.
5625 2012-02-16 Tom Tromey <tromey@redhat.com>
5627 * symfile.c (symbol_file_add_main_1): Use inferior's
5629 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5630 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5632 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5634 (follow_exec): Use inferior's symfile_flags.
5635 * inferior.h (struct inferior) <symfile_flags>: New field.
5637 2012-02-16 Mike Frysinger <vapier@gentoo.org>
5640 * remote-sim.c (gdbsim_create_inferior): Call error() when
5641 sim_create_inferior() fails.
5643 2012-02-16 Josh Matthews <josh@joshmatthews.net>
5645 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5647 2012-02-16 Tom Tromey <tromey@redhat.com>
5650 * thread.c (struct current_thread_cleanup) <was_removable>: New
5652 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
5653 (make_cleanup_restore_current_thread): Initialize new field.
5655 2012-02-15 Kevin Buettner <kevinb@redhat.com>
5657 * MAINTAINERS: Add rl78 to target ISA section.
5658 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
5659 (ALLDEPFILES): Add rl78-tdep.c.
5660 * NEWS: Mention rl78 as a new target.
5662 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
5664 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
5666 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
5668 2012-02-15 Tom Tromey <tromey@redhat.com>
5671 * infcmd.c (registers_info): Print just the current register's
5674 2012-02-15 Tom Tromey <tromey@redhat.com>
5676 * python/py-symbol.c (sympy_value): Use _().
5678 2012-02-15 Pedro Alves <palves@redhat.com>
5680 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
5681 output to be like native targets'.
5682 (remote_pid_to_str): Special case the null ptid.
5684 2012-02-14 Stan Shebs <stan@codesourcery.com>
5686 * NEWS: Mention enable count command.
5687 * breakpoint.h (struct breakpoint): New field enable_count.
5688 * breakpoint.c (enable_breakpoint_disp): Add count argument.
5689 (enable_breakpoint): Add arg to call.
5690 (struct disp_data): New struct.
5691 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
5692 (do_map_enable_once_breakpoint): Create a struct and pass it.
5693 (do_map_enable_delete_breakpoint): Ditto.
5694 (do_map_enable_count_breakpoint): New function.
5695 (enable_count_command): New function.
5696 (bpstat_stop_status): Decrement enable_count.
5697 (print_one_breakpoint_location): Report enable count.
5698 (_initialize_breakpoint): Add enable count command.
5700 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5702 * rl78-tdep.c (reggroups.h): Include.
5703 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
5704 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
5705 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
5706 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
5707 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
5708 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
5709 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
5710 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
5711 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
5712 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
5713 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
5714 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
5715 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
5716 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
5717 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
5718 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
5719 beginning of register list.
5720 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
5721 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
5722 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
5723 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
5724 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
5725 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
5726 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
5727 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
5728 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
5729 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
5730 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
5731 the pseudo registers. Rearrange other pseudo registers too so
5732 that the bank registers appear at the end.
5733 (rl78_register_type): Account for the fact that the byte sized
5734 bank registers are now pseudo-registers.
5735 (rl78_register_name): Rearrange the register name array. Make
5736 initial set of raw banked registers inaccessible.
5737 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
5738 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
5739 case for copying bytes back and forth between raw and pseudo
5740 versions of the banked registers. Update other cases to reflect
5742 (rl78_return_value): Update to account for changed names of
5744 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
5745 rl78_register_sim_regno().
5747 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5749 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
5750 the name parameter being passed to find_pc_partial_function().
5752 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5754 * MAINTAINERS: Step down from being ia64 target maintainer.
5756 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5758 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
5759 compilation warning.
5761 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5763 Fix crash on loaded shlibs without loaded exec_bfd.
5764 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
5765 (set_section_command): Replace exec_bfd by p->bfd.
5767 2012-02-10 Tom Tromey <tromey@redhat.com>
5769 * linespec.c (decode_line_internal): Skip symtabs_from_filename
5770 when we have a C++ qualified name.
5772 2012-02-10 Pedro Alves <palves@redhat.com>
5774 * inferior.c (inferior_pid_to_str): New.
5775 (print_inferior, inferior_command): Use it.
5777 2012-02-10 Pedro Alves <palves@redhat.com>
5779 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
5781 * configure: Regenerate.
5783 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5785 * linespec.c (decode_line_internal): Fix comment correctness.
5787 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
5790 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
5791 * amd64bsd-nat.c: Add support for debug registers (adapted from
5793 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
5794 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
5795 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
5796 (amd64bsd_dr_get_control): New functions.
5797 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
5798 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
5799 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
5800 watchpoints initialization.
5801 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
5803 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5805 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
5807 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
5809 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5811 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
5813 2012-02-08 Joel Brobecker <brobecker@adacore.com>
5815 * language.h (symbol_name_cmp_ftype): Renames
5816 symbol_name_match_p_ftype.
5817 (struct language_defn)[la_get_symbol_name_cmp]: Renames
5818 la_get_symbol_name_match_p.
5819 * ada-lang.c (ada_get_symbol_name_cmp): Renames
5820 ada_get_symbol_name_match_p. Update comment.
5821 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
5822 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
5823 Renames symbol_name_match_p. Update field type.
5824 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
5825 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5826 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
5827 "la_get_symbol_name_cmp" in comments.
5828 * language.c: Likewise.
5830 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5832 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
5834 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
5835 (amd64_sol2_gregset32_reg_offs): Likewise.
5837 2012-02-08 Joel Brobecker <brobecker@adacore.com>
5839 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
5840 of the returned BFD is allocated by GDB.
5842 2012-02-07 Tom Tromey <tromey@redhat.com>
5845 * python/python-internal.h (frame_object_type): Declare.
5846 * python/py-symbol.c (sympy_needs_frame): New function.
5847 (sympy_value): New function.
5848 (symbol_object_getset): Add "needs_frame".
5849 (symbol_object_methods): Add "value".
5850 * python/py-frame.c (frame_object_type): No longer static.
5852 2012-02-07 Tom Tromey <tromey@redhat.com>
5855 * python/py-symbol.c (sympy_line): New function.
5856 (symbol_object_getset): Add "line".
5858 2012-02-07 Tom Tromey <tromey@redhat.com>
5860 * charset.c (find_charset_names): Check 'in' against NULL.
5862 2012-02-06 Doug Evans <dje@google.com>
5864 * gdbtypes.h (struct main_type): Change type of name,tag_name,
5865 and fields.name members from char * to const char *. All uses updated.
5866 (struct cplus_struct_type): Change type of fn_fieldlists.name member
5867 from char * to const char *. All uses updated.
5868 (type_name_no_tag): Update.
5869 (lookup_unsigned_typename, lookup_signed_typename): Update.
5870 * gdbtypes.c (type_name_no_tag): Change result type
5871 from char * to const char *. All callers updated.
5872 (lookup_unsigned_typename, lookup_signed_typename): Change type of
5873 name parameter from char * to const char *.
5874 * symtab.h (struct cplus_specific): Change type of demangled_name
5875 member from char * to const char *. All uses updated.
5876 (struct general_symbol_info): Change type of name and
5877 mangled_lang.demangled_name members from char * to const char *.
5879 (symbol_get_demangled_name, symbol_natural_name): Update.
5880 (symbol_demangled_name, symbol_search_name): Update.
5881 * symtab.c (symbol_get_demangled_name): Change result type
5882 from char * to const char *. All callers updated.
5883 (symbol_natural_name, symbol_demangled_name): Ditto.
5884 (symbol_search_name): Ditto.
5885 (completion_list_add_name): Change type of symname,sym_text,
5886 text,word parameters from char * to const char *.
5887 (completion_list_objc_symbol): Change type of sym_text,
5888 text,word parameters from char * to const char *.
5889 * ada-lang.c (find_struct_field): Change type of name parameter
5890 from char * to const char *.
5891 (encoded_ordered_before): Similarly for N0,N1 parameters.
5892 (old_renaming_is_invisible): Similarly for function_name parameter.
5893 (ada_type_name): Change result type from char * to const char *.
5894 All callers updated.
5895 * ada-lang.h (ada_type_name): Update.
5896 * buildsym.c (hashname): Change type of name parameter
5897 from char * to const char *.
5898 * buildsym.h (hashname): Update.
5899 * dbxread.c (end_psymtab): Change type of include_list parameter
5900 from char ** to const char **.
5901 * dwarf2read.c (determine_prefix): Change result type
5902 from char * to const char *. All callers updated.
5903 * f-lang.c (find_common_for_function): Change type of name, funcname
5904 parameters from char * to const char *.
5905 * f-lang.c (find_common_for_function): Update.
5906 * f-valprint.c (list_all_visible_commons): Change type of funcname
5907 parameters from char * to const char *.
5908 * gdbarch.sh (static_transform_name): Change type of name parameter
5909 and result from char * to const char *.
5910 * gdbarch.c: Regenerate.
5911 * gdbarch.h: Regenerate.
5912 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
5913 of name parameter from char * to const char *.
5914 * jv-lang.c (java_primitive_type_from_name): Ditto.
5915 (java_demangled_signature_length): Similarly for signature parameter.
5916 (java_demangled_signature_copy): Ditto.
5917 (java_demangle_type_signature): Ditto.
5918 * jv-lang.h (java_primitive_type_from_name): Update.
5919 (java_demangle_type_signature): Update.
5920 * objc-lang.c (specialcmp): Change type of a,b parameters
5921 from char * to const char *.
5922 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
5923 from char * to const char *. All callers updated.
5924 * p-lang.h (is_pascal_string_type): Update.
5925 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
5926 of name parameter from char * to const char *.
5927 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
5928 * utils.c (fprintf_symbol_filtered): Ditto.
5929 * defs.h (fprintf_symbol_filtered): Update.
5930 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
5931 * stabsread.h (end_psymtab): Update.
5932 * stack.c (find_frame_funname): Change type of funname parameter
5933 from char ** to const char **.
5934 * stack.h (find_frame_funname): Update.
5935 * typeprint.c (type_print): Change type of varstring parameter
5936 from char * to const char *.
5937 * value.h (type_print): Update.
5938 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
5939 from char * to const char *. All callers updated.
5940 (xcoff_end_psymtab): Change type of include_list parameter
5941 from char ** to const char **. All callers updated.
5942 (swap_sym): Similarly for name parameter. All callers updated.
5943 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
5945 (process_coff_symbol): Use xstrdup.
5946 * stabsread.c (stabs_method_name_from_physname): Renamed from
5947 update_method_name_from_physname. Change result type from void
5948 to char *. All callers updated.
5949 (read_member_functions): In has_destructor case, store name in objfile
5950 obstack instead of malloc space. In !has_stub case, fix mem leak.
5952 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
5954 * configure: Rebuild.
5955 * configure.ac: Put -L../bfd and -L../libiberty at the front of
5958 2012-02-03 Kevin Buettner <kevinb@redhat.com>
5960 * configure.tgt (rl78-*-elf): New target.
5961 * rl78-tdep.c: New file.
5963 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5965 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
5966 and continue the loop. Add QUIT statement.
5968 2012-02-03 Tom Tromey <tromey@redhat.com>
5971 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
5972 bfd_lookup_symbol_from_symtab.
5973 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
5974 gdb_bfd_lookup_symbol_from_symtab.
5976 2012-02-03 Joel Brobecker <brobecker@adacore.com>
5978 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
5979 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
5980 symbol. Add assertion that sym2 is never NULL.
5982 2012-02-02 Doug Evans <dje@google.com>
5984 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
5985 "name" parameter to const char ** from char **. All callers updated.
5986 (find_pc_partial_function): Ditto.
5987 (cache_pc_function_name): Change type to const char * from char *.
5988 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
5989 (find_pc_partial_function): Update.
5990 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
5991 type of "name" parameter to const char * from char *.
5993 * arch-utils.c (generic_in_solib_return_trampoline): Change
5994 type of "name" parameter to const char * from char *.
5995 * arch-utils.h (generic_in_solib_return_trampoline): Update.
5996 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
5997 type of "name" parameter to const char * from char *.
5998 * gdbarch.sh (in_solib_return_trampoline): Ditto.
5999 * gdbarch.c: Regenerate.
6000 * gdbarch.h: Regenerate.
6001 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6002 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6003 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6004 type of "name" parameter to const char * from char *.
6005 * skip.c (skip_function_pc): Ditto.
6006 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6007 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6008 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6009 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6010 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6011 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6012 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6013 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6014 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6016 2012-02-02 Pedro Alves <palves@redhat.com>
6018 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6019 the current inferior has no execution. Make sure the current
6020 remote process matches gdb's current inferior.
6022 2012-02-02 Tom Tromey <tromey@redhat.com>
6025 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6028 2012-02-02 Tom Tromey <tromey@redhat.com>
6031 * symtab.c (lookup_language_this): Set block_found.
6033 2012-02-01 Tom Tromey <tromey@redhat.com>
6036 * jit.c (struct jit_inferior_data): Rewrite.
6037 (struct jit_objfile_data): New.
6038 (get_jit_objfile_data): New function.
6039 (add_objfile_entry): Update.
6040 (jit_read_descriptor): Return int. Replace descriptor_addr
6041 argument with inf_data. Update. Don't call error.
6042 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
6044 (jit_inferior_init): Don't look up descriptor. Don't call error.
6045 (jit_reset_inferior_data_and_breakpoints)
6046 (jit_inferior_created_observer): Remove.
6047 (jit_inferior_exit_hook): Update.
6048 (jit_executable_changed_observer): Remove.
6049 (jit_event_handler): Update.
6050 (free_objfile_data): Reset inferior data if needed.
6051 (_initialize_jit): Update.
6053 2012-02-01 Tom Tromey <tromey@redhat.com>
6055 * jit.c (bfd_open_from_target_memory): Move higher in file.
6057 2012-02-01 Tristan Gingold <gingold@adacore.com>
6059 * libunwind-frame.c (libunwind_load): Display message if dlopen
6062 2012-02-01 Gary Benson <gbenson@redhat.com>
6064 * symtab.h (symbol_found_callback_ftype): New typedef.
6065 (iterate_over_symbols): Use the above.
6066 * symtab.c (iterate_over_symbols): Likewise.
6067 * language.h (language_defn->la_iterate_over_symbols): Likewise.
6068 * ada-lang.c (ada_iterate_over_symbols): Likewise.
6069 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6070 (iterate_name_matcher): Document return values.
6071 (collect_one_symbol): Likewise.
6072 (collect_function_symbols): Likewise.
6073 (collect_symbols): Likewise.
6075 2012-02-01 Tom Tromey <tromey@redhat.com>
6077 * ada-lang.c (resolve_subexp): Update.
6078 (ada_lookup_symbol_list): Add 'full_search' argument.
6079 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6080 ada_lookup_symbol_list.
6081 (ada_lookup_encoded_symbol): Update.
6082 (get_var_value): Update.
6083 * ada-exp.y (block_lookup): Update.
6084 (write_var_or_type): Update.
6085 (write_name_assoc): Update.
6086 * ada-lang.h (ada_lookup_symbol_list): Update.
6088 2012-01-31 Tom Tromey <tromey@redhat.com>
6090 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6093 2012-01-31 Doug Evans <dje@google.com>
6095 * symtab.h: Remove outdated comment.
6096 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
6098 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6100 Fix build error in Darwin port.
6101 * i386-darwin-nat.c: Include i386-nat.h.
6103 2012-01-30 Tom Tromey <tromey@redhat.com>
6105 PR breakpoints/13568:
6106 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6107 argument. Check for recursive includes.
6108 (dwarf_decode_macros): Create an include hash.
6110 2012-01-30 Michael Eager <eager@eagercon.com>
6112 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6113 * ppc-linux-tdep.c: Include glibc-tdep.h.
6114 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
6115 (powerpc_linux_in_plt_stub): New function.
6116 (powerpc_linux_in_dynsym_resolve_code): New function.
6117 (ppc_skip_trampoline_code): New function.
6118 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6119 Use glibc_skip_solib_resolver.
6121 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6123 Code cleanup: Make 1440 bytes of data segment read-only.
6124 * arch-utils.c (endian_enum): Make it const char *const [].
6125 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6127 * breakpoint.c (always_inserted_enums): Likewise.
6128 * cli/cli-cmds.c (script_ext_enums): Likewise.
6129 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6130 enumlist parameter const char *const *.
6131 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6132 const char *const *.
6133 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6134 parameter const char *const *.
6135 * cris-tdep.c (cris_modes): Make it const char *const [].
6136 * filesystem.c (target_file_system_kinds): Likewise.
6137 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6138 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6139 (can_use_displaced_stepping_enum, scheduler_enums)
6140 (exec_direction_names): Likewise.
6141 * language.c (_initialize_language): Make the type_or_range_names and
6142 case_sensitive_names variables const char *const [].
6143 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6144 * python/python.c (python_excp_enums): Likewise.
6145 * remote.c (interrupt_sequence_modes): Likewise.
6146 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6147 * serial.c (logbase_enums): Likewise.
6148 * sh-tdep.c (sh_cc_enum): Likewise.
6149 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6151 * symtab.c (multiple_symbols_modes): Likewise.
6152 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6154 * utils.c (internal_problem_modes): Likewise.
6156 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6158 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6159 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6162 2012-01-27 Doug Evans <dje@google.com>
6164 * configure.ac (with_python): Fix absolute path handling for win32.
6165 * configure: Regenerate.
6167 2012-01-26 Doug Evans <dje@google.com>
6169 * symtab.c: Whitespace cleanup, no code changes.
6171 * symtab.c (lookup_symbol_in_language): Improve comment.
6172 (lookup_symbol_aux): Fix comment.
6174 * psymtab.c (add_psymbol_to_list): Result is now "void".
6175 * psympriv.h (add_psymbol_to_list): Update.
6177 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6179 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6181 Do not open script filenames twice.
6182 * cli/cli-cmds.c (source_script_from_stream): Pass to
6183 source_python_script also STREAM.
6184 * python/py-auto-load.c (source_section_scripts): Pass to
6185 source_python_script_for_objfile also STREAM.
6186 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6188 * python/python-internal.h (source_python_script_for_objfile): New
6189 parameter file, rename parameter file to filename.
6190 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6191 instead if !_WIN32. Update the function comment.
6192 (source_python_script, source_python_script_for_objfile)
6193 (source_python_script): New parameter file, rename parameter file to
6194 filename. Pass FILENAME to python_run_simple_file.
6195 * python/python.h (source_python_script): New parameter file, rename
6196 parameter file to filename.
6198 2012-01-26 Pedro Alves <palves@redhat.com>
6200 * corelow.c (core_has_fake_pid): Delete.
6201 (core_close): Delete references to `core_has_fake_pid'.
6202 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6203 (core_open): Delete references to `core_has_fake_pid'.
6204 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6207 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6209 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6210 Remove language parameter from name_matcher. Adjust the comment.
6211 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6212 Remove language parameter.
6213 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6214 * linespec.c (iterate_name_matcher): Likewise.
6215 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6216 name_matcher. Adjust call accordingly.
6217 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6218 (maintenance_check_symtabs): Adjust type of parameter "fun".
6219 * psymtab.h (maintenance_check_symtabs): Likewise.
6221 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6223 * language.h (symbol_name_match_p_ftype): New typedef.
6224 (struct language_defn): Replace field la_symbol_name_compare
6225 by la_get_symbol_name_match_p.
6226 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6227 (ada_language_defn): Use it.
6228 * linespec.c (struct symbol_matcher_data): New type.
6229 (iterate_name_matcher): Rewrite.
6230 (iterate_over_all_matching_symtabs): Pass a pointer to
6231 a symbol_matcher_data struct to expand_symtabs_matching
6232 instead of just the lookup name.
6233 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6234 opencl-lang.c, p-lang.c, language.c: Delete field
6235 la_symbol_name_compare, and replace by NULL for new field
6236 la_get_symbol_name_match_p.
6237 * symfile.h (struct quick_symbol_functions): Update comment.
6239 2012-01-25 Tom Tromey <tromey@redhat.com>
6241 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6244 2012-01-24 Tom Tromey <tromey@redhat.com>
6247 * solib.c (update_solib_list): Update the program space's
6248 added_solibs and deleted_solibs fields.
6249 * progspace.h (struct program_space) <added_solibs,
6250 deleted_solibs>: New fields.
6251 (clear_program_space_solib_cache): Declare.
6252 * progspace.c (release_program_space): Call
6253 clear_program_space_solib_cache.
6254 (clear_program_space_solib_cache): New function.
6255 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6256 bpstat_stop_status. Use handle_solib_event.
6257 * breakpoint.c: Include gdb_regex.h.
6258 (print_solib_event): New function.
6259 (bpstat_print): Use print_solib_event.
6260 (bpstat_stop_status): Add special case for bp_shlib_event.
6261 (handle_solib_event): New function.
6262 (bpstat_what): Use handle_solib_event.
6263 (struct solib_catchpoint): New.
6264 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6265 (breakpoint_hit_catch_solib, check_status_catch_solib)
6266 (print_it_catch_solib, print_one_catch_solib)
6267 (print_mention_catch_solib, print_recreate_catch_solib): New
6269 (catch_solib_breakpoint_ops): New global.
6270 (catch_load_or_unload, catch_load_command_1)
6271 (catch_unload_command_1): New functions.
6272 (internal_bkpt_check_status): Add special case for
6274 (internal_bkpt_print_it): Use print_solib_event.
6275 (initialize_breakpoint_ops): Initialize
6276 catch_solib_breakpoint_ops.
6277 (_initialize_breakpoint): Register "catch load" and "catch
6279 * breakpoint.h (handle_solib_event): Declare.
6280 * NEWS: Add entry for "catch load" and "catch unload".
6282 2012-01-24 Tom Tromey <tromey@redhat.com>
6284 * ada-lang.c: Include gdb_vecs.h.
6285 * charset.c: Include gdb_vecs.h.
6286 * tracepoint.h: Include gdb_vecs.h.
6287 * gdb_vecs.h: New file.
6289 2012-01-24 Pedro Alves <pedro@codesourcery.com>
6291 * breakpoint.c (breakpoint_hit_catch_fork)
6292 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6293 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6294 * infrun.c (inferior_has_forked, inferior_has_vforked)
6295 (inferior_has_execd, inferior_has_called_syscall): Delete.
6296 (handle_syscall_event): Get syscall_number from the execution
6297 control state's wait status.
6298 (wait_for_inferior): Don't clear syscall_number.
6300 2012-01-24 Pedro Alves <palves@redhat.com>
6302 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6303 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6304 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6305 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6307 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6308 false for events other than TARGET_SIGNAL_TRAP.
6309 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6311 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6312 events other than TARGET_SIGNAL_TRAP.
6313 (tracepoint_breakpoint_hit): Add `ws' parameter.
6314 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6316 (bpstat_stop_status): Same.
6317 (pc_at_non_inline_function): Same.
6318 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6319 to pass the current event's waitstatus to bpstat_stop_status
6320 and pc_at_non_inline_function.
6322 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6325 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6326 Update the function comment for it.
6327 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6328 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6331 2012-01-24 Pedro Alves <palves@redhat.com>
6333 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6334 outside `bs->stop' block.
6335 (bpstat_what): Rework bp_shlib_event handling.
6336 (internal_bkpt_check_status): If the breakpoint is a
6337 bp_shlib_event, then set bs->stop and bs->print if
6338 stop_on_solib_events is set.
6340 2012-01-24 Gary Benson <gbenson@redhat.com>
6342 Delete #if 0'd out code.
6343 * stack.c (print_frame_label_vars): Remove.
6344 (catch_info): Likewise.
6345 (_initialize_stack): Remove "info catch" command.
6346 * NEWS: Mention the above.
6348 2012-01-24 Pedro Alves <palves@redhat.com>
6350 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6352 (remote_notice_new_inferior): If the remote end doesn't support
6353 the multiprocess extensions, then the PID is fake.
6354 (add_current_inferior_and_thread): New.
6355 (remote_start_remote): Use it.
6356 (extended_remote_attach_1): Adjust.
6357 (extended_remote_create_inferior_1): Use
6358 add_current_inferior_and_thread.
6360 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6362 Fix watchpoints to be specific for each inferior.
6363 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6364 current_program_space.
6365 * i386-nat.c (i386_inferior_data_cleanup): New.
6366 (i386_inferior_data_get): Replace variable inf_data_local by an
6368 (i386_use_watchpoints): Initialize i386_inferior_data.
6369 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6370 specific iterate_over_lwps.
6372 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6374 Fix watchpoints across inferior fork.
6375 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6376 comment for linux_nat_iterate_watchpoint_lwps.
6377 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6378 linux_nat_iterate_watchpoint_lwps.
6379 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6380 * i386-linux-nat.c (update_debug_registers_callback): Update the
6381 comment for linux_nat_iterate_watchpoint_lwps.
6382 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6383 linux_nat_iterate_watchpoint_lwps.
6384 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6385 * i386-nat.c: Include inferior.h.
6386 (dr_mirror): Remove.
6387 (i386_inferior_data, struct i386_inferior_data)
6388 (i386_inferior_data_get): New.
6389 (i386_debug_reg_state): Use i386_inferior_data_get.
6390 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6391 (i386_insert_watchpoint, i386_remove_watchpoint)
6392 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6393 (i386_remove_hw_breakpoint): New variable state, use
6394 i386_debug_reg_state instead of DR_MIRROR.
6395 * linux-nat.c (delete_lwp): New declaration.
6396 (num_lwps): Move here from downwards.
6397 (delete_lwp_cleanup): New.
6398 (linux_child_follow_fork): Create new child_lp, call
6399 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6401 (num_lwps): Move upwards.
6402 (linux_nat_iterate_watchpoint_lwps): New.
6403 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6404 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6406 2012-01-24 Joel Brobecker <brobecker@adacore.com>
6410 2012-01-23 Pedro Alves <palves@redhat.com>
6412 * top.c (caution): Rename to ...
6413 (confirm): ... this.
6414 (show_caution): Rename to ...
6415 (show_confirm): ... this.
6416 (quit_cover): Adjust.
6417 (init_main): Adjust.
6418 * top.h (caution): Rename to ...
6419 (confirm): ... this.
6420 * utils.c (internal_vproblem, defaulted_query): Adjust.
6422 2012-01-23 Pedro Alves <palves@redhat.com>
6424 * top.c (caution): Update comment.
6425 (execute_command): Don't consider the current value of `caution'.
6427 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6429 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6431 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6433 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6434 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6435 * target.c (target_fileio_pwrite): Remove buffer address from
6437 (target_fileio_pread): Likewise.
6439 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6441 * NEWS: Document remote "info proc" and "generate-core-file".
6443 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6445 * gdbarch.sh (find_memory_regions): New callback.
6446 * gdbarch.c, gdbarch.h: Regenerate.
6448 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6449 callback before falling back to target method.
6451 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6452 (linux_target_install_ops): No longer install it.
6454 * linux-tdep.c (linux_find_memory_regions): New function.
6455 (linux_init_abi): Install it.
6457 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6459 * gdbarch.sh (make_corefile_notes): New architecture callback.
6460 * gdbarch.c: Regenerate.
6461 * gdbarch.h: Likewise.
6463 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6464 before target_make_corefile_notes. If NULL is returned, the
6465 target does not support core file generation.
6467 * linux-nat.c: Include "linux-tdep.h".
6468 (find_signalled_thread, find_stop_signal): Remove.
6469 (linux_nat_do_thread_registers): Likewise.
6470 (struct linux_nat_corefile_thread_data): Likewise.
6471 (linux_nat_corefile_thread_callback): Likewise.
6472 (iterate_over_spus): Likewise.
6473 (struct linux_spu_corefile_data): Likewise.
6474 (linux_spu_corefile_callback): Likewise.
6475 (linux_spu_make_corefile_notes): Likewise.
6476 (linux_nat_collect_thread_registers): New function.
6477 (linux_nat_make_corefile_notes): Replace contents by call to
6478 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6479 as native-only callback.
6481 * linux-tdep.h: Include "bfd.h".
6482 (struct regcache): Add forward declaration.
6483 (linux_collect_thread_registers_ftype): New typedef.
6484 (linux_make_corefile_notes): Add prototype.
6485 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6486 "regset.h", and "elf-bfd.h".
6487 (find_signalled_thread, find_stop_signal): New functions.
6488 (linux_spu_make_corefile_notes): Likewise.
6489 (linux_collect_thread_registers): Likewise.
6490 (struct linux_corefile_thread_data): New data structure.
6491 (linux_corefile_thread_callback): New funcion.
6492 (linux_make_corefile_notes): Likewise.
6493 (linux_make_corefile_notes_1): Likewise.
6494 (linux_init_abi): Install it.
6496 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6498 * gdbarch.sh (info_proc): New callback.
6499 * gdbarch.c, gdbarch.h: Regenerate.
6501 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6502 before falling back to the target info_proc callback.
6504 * linux-nat.c: Do not include "cli/cli-utils.h".
6505 (linux_nat_info_proc): Remove.
6506 (linux_target_install_ops): No longer install it.
6508 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6509 (read_mapping): New function.
6510 (linux_info_proc): Likewise.
6511 (linux_init_abi): Install it.
6513 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6515 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6516 * infcmd.c: (info_proc_cmd_1): New function.
6517 (info_proc_cmd): New function, moved here from equivalent routine
6518 orignally in linux-nat.c.
6519 (info_proc_cmd_mappings): Likewise.
6520 (info_proc_cmd_stat): Likewise.
6521 (info_proc_cmd_status): Likewise.
6522 (info_proc_cmd_cwd): Likewise.
6523 (info_proc_cmd_cmdline): Likewise.
6524 (info_proc_cmd_exe): Likewise.
6525 (info_proc_cmd_all): Likewise.
6526 (_initialize_infcmd): Install "info proc" command and subcommands.
6528 * target.h (struct target_ops): Add to_info_proc.
6529 (target_info_proc): Add prototype.
6530 * target.c (target_info_proc): New function.
6532 * procfs.c (procfs_info_proc): Add prototype.
6533 (info_proc_cmd): Rename into ...
6534 (procfs_info_proc): ... this. Update argument types as appropriate
6535 for a to_info_proc implementation. Handle "what" argument.
6536 (procfs_target): Install procfs_info_proc.
6537 (_initialize_procfs): No longer install "info proc" command.
6539 * linux-nat.c: (enum info_proc_what): Remove.
6540 (linux_nat_info_proc_cmd_1): Rename into ...
6541 (linux_nat_info_proc): ... this. Update argument types as appropriate
6542 for a to_info_proc implementation.
6543 (linux_nat_info_proc_cmd): Remove.
6544 (linux_nat_info_proc_cmd_mappings): Likewise.
6545 (linux_nat_info_proc_cmd_stat): Likewise.
6546 (linux_nat_info_proc_cmd_status): Likewise.
6547 (linux_nat_info_proc_cmd_cwd): Likewise.
6548 (linux_nat_info_proc_cmd_cmdline): Likewise.
6549 (linux_nat_info_proc_cmd_exe): Likewise.
6550 (linux_nat_info_proc_cmd_all): Likewise.
6551 (linux_target_install_ops): Install linux_nat_info_proc.
6552 (_initialize_linux_nat): No longer install "info proc" command
6555 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6557 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6558 * config.in, configure: Regenerate.
6560 * target.h (struct target_ops): Add to_fileio_readlink.
6561 (target_fileio_readlink): Add prototype.
6562 * target.c (target_fileio_readlink): New function.
6564 * inf-child.c: Conditionally include <sys/param.h>.
6565 (inf_child_fileio_readlink): New function.
6566 (inf_child_target): Install it.
6568 * remote.c (PACKET_vFile_readlink): New enum value.
6569 (remote_hostio_readlink): New function.
6570 (init_remote_ops): Install it.
6571 (_initialize_remote): Handle vFile:readlink packet type.
6573 2012-01-20 Pedro Alves <palves@redhat.com>
6574 Ulrich Weigand <ulrich.weigand@linaro.org>
6576 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6577 * config.in, configure: Regenerate.
6579 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6580 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6581 (target_fileio_open): Add prototype.
6582 (target_fileio_pwrite): Likewise.
6583 (target_fileio_pread): Likewise.
6584 (target_fileio_close): Likewise.
6585 (target_fileio_unlink): Likewise.
6586 (target_fileio_read_alloc): Likewise.
6587 (target_fileio_read_stralloc): Likewise.
6589 * target.c: Include "gdb/fileio.h".
6590 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6591 (default_fileio_target): New function.
6592 (target_fileio_open): Likewise.
6593 (target_fileio_pwrite): Likewise.
6594 (target_fileio_pread): Likewise.
6595 (target_fileio_close): Likewise.
6596 (target_fileio_unlink): Likewise.
6597 (target_fileio_close_cleanup): Likewise.
6598 (target_fileio_read_alloc_1): Likewise.
6599 (target_fileio_read_alloc): Likewise.
6600 (target_fileio_read_stralloc): Likewise.
6602 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6603 <fcntl.h>, and <unistd.h>.
6604 (inf_child_fileio_open_flags_to_host): New function.
6605 (inf_child_errno_to_fileio_error): Likewise.
6606 (inf_child_fileio_open): Likewise.
6607 (inf_child_fileio_pwrite): Likewise.
6608 (inf_child_fileio_pread): Likewise.
6609 (inf_child_fileio_close): Likewise.
6610 (inf_child_fileio_unlink): Likewise.
6611 (inf_child_target): Install to_fileio routines.
6613 * remote.c (init_remote_ops): Install to_fileio routines.
6615 2012-01-20 Pedro Alves <palves@redhat.com>
6616 Ulrich Weigand <ulrich.weigand@linaro.org>
6618 * remote.c (remote_multi_process_p): Only check for multi-process
6619 protocol feature, do not check for extended protocol.
6620 (remote_supports_multi_process): Check for extended protocol here.
6621 (set_general_process): Likewise.
6622 (extended_remote_kill): Likewise.
6623 (remote_pid_to_str): Likewise.
6624 (remote_query_supported): Always query multiprocess mode.
6626 2012-01-20 Pedro Alves <palves@redhat.com>
6627 Ulrich Weigand <ulrich.weigand@linaro.org>
6629 * inferior.h (struct inferior): Add fake_pid_p.
6630 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6631 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6632 magic_null_ptid since the remote side doesn't provide a real PID.
6634 2012-01-19 Tom Tromey <tromey@redhat.com>
6636 * NEWS: Combine the two Python sections.
6638 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6640 * target.h (target_close): Update comment on the target's unpush state.
6642 2012-01-19 Pedro Alves <palves@redhat.com>
6644 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6645 linux_nat_async directly instead of going through the target
6647 * target.c (unpush_target): Close target after unpushing it, not
6650 2012-01-19 Gary Benson <gbenson@redhat.com>
6652 * mdebugread.c (sort_blocks): Replace integer constants with ones
6653 derived from FIRST_LOCAL_BLOCK.
6655 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
6656 Jan Kratochvil <jan.kratochvil@redhat.com>
6659 * symfile.c (find_separate_debug_file): New function.
6660 (terminate_after_last_dir_separator): Likewise.
6661 (find_separate_debug_file_by_debuglink): Also try realpath.
6662 * configure.ac (AC_CHECK_FUNCS): Add lstat.
6663 * configure: Regenerate.
6664 * config.in: Regenerate.
6666 2012-01-18 Doug Evans <dje@google.com>
6668 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
6669 (main.o): Remove rule.
6670 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
6671 (--with-sysroot): Rewrite.
6672 * configure: Regenerate.
6673 * config.in: Regenerate.
6675 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
6677 * parse.c (initialize_expout): New function.
6678 (reallocate_expout): Likewise.
6679 (parse_exp_in_context): Use `initialize_expout' and
6680 `reallocate_expout' when appropriate.
6682 2012-01-18 Pedro Alves <palves@redhat.com>
6684 * record.c (struct record_breakpoint, record_breakpoint_p)
6685 (record_breakpoints): New.
6686 (record_insert_breakpoint, record_remove_breakpoint): Manage
6687 record breakpoints list. Only remove breakpoints from the
6688 inferior if they had been inserted there in the first place.
6690 2012-01-17 Doug Evans <dje@google.com>
6692 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
6693 if we know we don't have a file name to look for.
6695 2012-01-17 Pedro Alves <palves@redhat.com>
6697 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
6698 the frame's stop reason is UNWIND_UNAVAILABLE.
6700 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6702 Fix compilation error.
6703 * m2-exp.y (yyerror): Use ANSI C prototype.
6705 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6707 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
6708 (growbuf_by_size): Likewise.
6709 (yyerror): Likewise.
6710 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
6711 (modblock): Remove variable (was #if 0'ed).
6712 (parse_number): Convert prototype from K&R to ANSI C.
6713 (yyerror): Likewise.
6714 * objc-exp.y (parse_number): Likewise.
6715 (yyerror): Likewise.
6716 (yylex): Remove #if 0'ed code.
6717 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
6718 (yyerror): Likewise.
6720 2012-01-16 Tom Tromey <tromey@redhat.com>
6723 * symtab.h (compare_filenames_for_search): Declare.
6724 * symtab.c (compare_filenames_for_search): New function.
6725 (iterate_over_some_symtabs): Use it.
6726 * symfile.h (struct quick_symbol_functions)
6727 <map_symtabs_matching_filename>: Change spec.
6728 * psymtab.c (partial_map_symtabs_matching_filename): Use
6729 compare_filenames_for_search. Update for new spec.
6730 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
6731 compare_filenames_for_search. Update for new spec.
6732 * breakpoint.c (clear_command): Use compare_filenames_for_search.
6734 2012-01-16 Tom Tromey <tromey@redhat.com>
6737 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
6738 (struct main_type) <flag_flag_enum>: New field.
6739 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
6740 * NEWS: Add entries.
6741 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
6743 * python/lib/gdb/printing.py (_EnumInstance): New class.
6744 (FlagEnumerationPrinter): Likewise.
6746 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6748 * breakpoint.c (create_sals_from_address_default): New function.
6749 (create_breakpoints_sal_default): Likewise.
6750 (decode_linespec_default): Likewise.
6751 (is_marker_spec): Removed.
6752 (strace_marker_p): New function.
6753 (init_breakpoint_sal): Using `strace_marker_p' instead of
6755 (create_breakpoint): Call method `create_sals_from_address' from
6756 breakpoint_ops, replacing code that created SALs conditionally
6757 on the type of the breakpoint. Call method `create_breakpoints_sal',
6758 replacing code that created breakpoints conditionally on the type
6760 (base_breakpoint_create_sals_from_address): New function.
6761 (base_breakpoint_create_breakpoints_sal): Likewise.
6762 (base_breakpoint_decode_linespec): Likewise.
6763 (base_breakpoint_ops): Add methods
6764 `base_breakpoint_create_sals_from_address',
6765 `base_breakpoint_create_breakpoints_sal' and
6766 `base_breakpoint_decode_linespec'.
6767 (bkpt_create_sals_from_address): New function.
6768 (bkpt_create_breakpoints_sal): Likewise.
6769 (bkpt_decode_linespec): Likewise.
6770 (tracepoint_create_sals_from_address): Likewise.
6771 (tracepoint_create_breakpoints_sal): Likewise.
6772 (tracepoint_decode_linespec): Likewise.
6773 (strace_marker_create_sals_from_address): Likewise.
6774 (strace_marker_create_breakpoints_sal): Likewise.
6775 (strace_marker_decode_linespec): Likewise.
6776 (strace_marker_breakpoint_ops): New variable.
6777 (addr_string_to_sals): Remove `marker_spec'. Call method
6778 `decode_linespec' from breakpoint_ops, replacing code that decoded
6779 an address string into a SAL. Use `strace_marker_p' instead of
6781 (strace_command): Decide whether we are dealing with a static
6782 tracepoint with marker or not. Use the appropriate breakpoint_ops.
6783 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
6784 * breakpoint.h (linespec_result, linespec_sals): New forward
6786 (breakpoint_ops) <create_sals_from_address>,
6787 <create_breakpoints_sal>, <decode_linespec>: New methods.
6789 2012-01-14 Doug Evans <dje@google.com>
6791 * NEWS: Update text for "maint set python print-stack".
6792 It is deprecated in gdb 7.4 and deleted in 7.5.
6794 2012-01-13 Eli Zaretskii <eliz@gnu.org>
6796 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
6799 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6801 * configure: Regenerate.
6802 * config.in: Regenerate.
6804 2012-01-12 Keith Seitz <keiths@redhat.com>
6807 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
6808 (ANONYMOUS_UNION_NAME): Define.
6809 (is_path_expr_parent): New function.
6810 (get_path_expr_parent): New function.
6811 (is_anonymous_child): New function.
6812 (create_child_with_value): If the child is anonymous and without
6813 a name, assign an object name to it.
6814 (c_describe_child): Use get_path_expr_parent to determine
6815 the parent expression.
6816 If there field represents an anonymous struct or union and
6817 has no name, set an appropriate display name and expression.
6818 (cplus_describe_child): Likewise.
6820 2012-01-12 Pedro Alves <palves@redhat.com>
6822 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
6823 available when %ebp is found to be zero (outermost).
6825 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
6827 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
6828 an internal gdb_static_assert.
6829 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
6831 2012-01-11 Tom Tromey <tromey@redhat.com>
6834 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
6835 catch" and "catch throw".
6837 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
6839 * blockframe.c (block_innermost_frame): Start search from selected
6840 frame, if present, or otherwise the current frame.
6842 * c-exp.y (variable): Update innermost_block for
6843 'block COLONCOLON NAME' clause.
6844 * m2-exp.y (variable): Ditto.
6845 * objc-exp.y (variable): Ditto.
6847 2012-01-10 Tom Tromey <tromey@redhat.com>
6850 * python/python.c (finish_python_initialization): Set sys.argv.
6852 2012-01-10 Doug Evans <dje@google.com>
6854 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
6855 "want_line_info". All callers updated.
6856 (dwarf_decode_lines_1): New function.
6857 (handle_DW_AT_stmt_list): Add function comment.
6858 New arg "want_line_info". All callers updated.
6859 (read_file_scope,read_type_unit_scope): Move comment from
6860 handle_DW_AT_stmt_list to here.
6862 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6864 Fix regression after libiberty/ update for GCC PR 6057 and others.
6865 * c-exp.y (operator) <OPERATOR DELETE>
6866 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6867 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
6868 (make_builtin_type, make_name): New variable i, add gdb_assert.
6869 (operator) <OPERATOR NEW>: Update ARGS to 3.
6870 (operator) <OPERATOR DELETE>: Add trailing space.
6871 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
6872 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6873 * cp-support.c (cp_canonicalize_string): Check NULL from
6874 cp_comp_to_string, call warning and return.
6876 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6878 Fix duplicate .o files after omitting libbfd.a.
6879 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
6880 (SFILES): Add corelow.c.
6881 (COMMON_OBS): Add corelow.o.
6882 (ALLDEPFILES): Remove corelow.c.
6883 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
6884 * config/alpha/alpha-osf3.mh: Likewise.
6885 * config/alpha/fbsd.mh: Likewise.
6886 * config/arm/nbsdaout.mh: Likewise.
6887 * config/arm/nbsdelf.mh: Likewise.
6888 * config/i386/i386gnu.mh: Likewise.
6889 * config/ia64/hpux.mh: Likewise.
6890 * config/ia64/linux.mh: Likewise.
6891 * config/m32r/linux.mh: Likewise.
6892 * config/m68k/linux.mh: Likewise.
6893 * config/mips/irix5.mh: Likewise.
6894 * config/mips/irix6.mh: Likewise.
6895 * config/pa/hpux.mh: Likewise.
6896 * config/pa/linux.mh: Likewise.
6897 * config/powerpc/aix.mh: Likewise.
6898 * config/sparc/linux.mh: Likewise.
6899 * config/sparc/linux64.mh: Likewise.
6900 * config/sparc/sol2.mh: Likewise.
6901 * config/vax/vax.mh: Likewise.
6902 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
6903 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
6904 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
6905 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
6906 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
6907 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
6908 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
6909 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
6910 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
6911 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
6912 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
6913 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
6914 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6915 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
6916 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
6917 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6918 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
6919 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
6920 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
6921 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
6922 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
6923 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
6924 corelow.o from gdb_target_obs.
6925 * corefile.c (core_target): Update the comment on NULL value.
6926 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
6927 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
6928 MATCHES. Drop YUMMY set on NULL.
6929 (core_close): Do not call exit_inferior_silent on zero PID. Do not
6930 reclaim CORE_DATA if it is already NULL.
6932 2012-01-09 Doug Evans <dje@google.com>
6934 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
6935 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
6937 2012-01-09 Keith Seitz <keiths@redhat.com>
6939 * breakpoint.c (wrapper.h): Don't include.
6941 2012-01-09 Keith Seitz <keiths@redhat.com>
6943 * Makefile.in (SFILES): Remove wrapper.c.
6944 (HFILES_NO_SRCDIR): Remove wrapper.h.
6945 (COMMON_OBS): Remove wrapper.o.
6946 * cli/cli-interp.c: Don't inlude wrapper.h.
6947 * corelow.c: Likewise.
6948 (core_open): Replace gdb_target_find_new_threads with
6949 TRY_CATCH around target_find_new_threads.
6950 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
6951 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
6952 * varobj.c (varobj_create): Likewise for parse_exp_1 and
6953 evaluate_expression.
6954 (varobj_set_value): Likewise for evaluate_expression and
6956 (install_new_variable): Likewise for value_fetch_lazy.
6957 (adjust_value_for_child_access): Likewise for value_ind.
6958 (c_describe_child): Likewise for value_subscript and
6960 (c_value_of_root): Likewise for evaluate_expression.
6961 * wrapper.c: Remove.
6962 * wrapper.h: Remove.
6964 2012-01-09 Doug Evans <dje@google.com>
6966 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
6967 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
6968 "abfd" args with "section". All callers updated.
6969 Error checking code moved ...
6970 (error_check_comp_unit_head): ... here. New function.
6971 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
6972 Delete arg "abfd". New arg "type_offset". All callers updated.
6973 (create_debug_types_hash_table): Simplify by using
6974 read_and_check_type_unit_head.
6976 * parser-defs.h (namecopy): Delete.
6977 * parse.c (namecopy, namecopy_size): Move into copy_name.
6979 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6981 Partially fix duplicate .o files after omitting libbfd.a.
6982 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
6983 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6984 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
6985 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6986 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
6987 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
6988 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6990 2012-01-09 Pedro Alves <palves@redhat.com>
6992 * MAINTAINERS: Update my email address.
6994 2012-01-08 Doug Evans <dje@google.com>
6996 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
6997 n_type_units. Rename type_comp_units to all_type_units.
6999 (add_signatured_type_cu_to_table): Renamed from
7000 add_signatured_type_cu_to_list. All callers updated.
7002 * gdbtypes.h (struct cplus_struct_type): Delete member
7003 nfn_fields_total. All uses removed.
7005 2012-01-06 Doug Evans <dje@google.com>
7007 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7009 (dwarf2_find_comp_unit): Delete.
7010 (process_psymtab_comp_unit): Make result "void".
7011 Delete args buffer, info_ptr, buffer_size, and replace with
7012 "section". All callers updated.
7013 (dwarf2_build_psymtabs_hard): Simplify.
7015 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
7016 Thiago Jung Bauermann <bauerman@br.ibm.com>
7018 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7019 before `struct gdb_exception'.
7020 * breakpoint.c (update_global_location_list_nothrow)
7021 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7022 * cp-abi.c (value_rtti_type): Likewise.
7023 * cp-support.c (cp_validate_operator): Likewise.
7024 * infrun.c (insert_exception_resume_breakpoint)
7025 (check_exception_resume, keep_going): Likewise.
7026 * mi-interp.c (mi_breakpoint_created)
7027 (mi_breakpoint_modified): Likewise.
7028 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7029 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7030 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7032 2012-01-05 Doug Evans <dje@google.com>
7034 * dwarf2read.c (statement_prologue): Delete, unused.
7036 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7037 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7039 * dwarf2read.c (comp_unit_header): Delete, unused.
7041 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
7043 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7044 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7046 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
7048 * infrun.c (normal_stop): Don't skip calling the normal_stop
7049 observers if the thread was doing a multi-step, but stopped for
7050 some reason other than stepping.
7052 2012-01-05 Pedro Alves <alves.ped@gmail.com>
7054 * cli/cli-decode.h: Add comments.
7055 (CMD_LIST_AMBIGUOUS): Moved to command.h
7056 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7057 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7058 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7059 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7060 (add_com, add_com_alias, add_info, add_info_alias)
7061 (complete_on_cmdlist, complete_on_enum, help_list): Remove
7063 * command.h: Add and adjust comments.
7064 (CMD_LIST_AMBIGUOUS): Moved here.
7065 (help_cmd, help_cmd_list): Delete declarations.
7067 2012-01-04 Doug Evans <dje@google.com>
7069 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7070 All callers updated.
7071 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7072 Replace all arguments with "per_cu". All callers updated.
7074 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7076 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7077 New arg "per_cu". All callers updated.
7079 Delete #if 0'd out code.
7080 * language.c (binop_result_type): Delete.
7081 (simple_type, ordered_type, same_type, integral_type): Delete.
7082 (numeric_type, character_type, string_type, boolean_type): Delete.
7083 (float_type, structured_type): Delete.
7084 * language.h: Update.
7086 2012-01-04 Tom Tromey <tromey@redhat.com>
7088 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7090 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7092 * corefile.c (close_exec_file): Delete.
7093 (reopen_exec_file): Remove commented out code that seems related
7094 to close_exec_file, which is being deleted here.
7095 * inferior.h (close_exec_file): Delete.
7096 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7098 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7100 * ada-lang.c: #include "cli/cli-utils.h".
7101 (get_selections): Use skip_spaces.
7102 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7103 (catch_ada_exception_command_split): Use skip_spaces.
7104 (ada_decode_assert_location): Likewise.
7106 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7108 * linespec.c (decode_line_internal): Check for C++ or Java
7109 compound constructs only if the current language is C, C++
7112 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7115 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7116 Joel Brobecker <brobecker@adacore.com>
7117 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7118 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7120 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7121 fall through into AT_ENTRY_POINT.
7122 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7124 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7125 PPC_INSN_SIZE skip to 3 times.
7127 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7129 * linespec.c (add_minsym): Preserve function descriptors.
7131 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7133 * breakpoint.c (all_locations_are_pending): Consider locations
7134 in program spaces executing during startup pending as well.
7136 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7138 Copyright year update in most files of the GDB Project.
7140 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7142 * copyright.sh: Delete.
7143 * copyright.py: Rewrite.
7145 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7147 * gnulib/extra/update-copyright: New file, imported from gnulib.
7149 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7151 * README (Copyright and License Notices): New section.
7153 2012-01-03 Tom Tromey <tromey@redhat.com>
7156 * python/py-value.c (valpy_dereference, valpy_get_address
7157 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7158 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7159 (valpy_absolute, valpy_richcompare): Free intermediate values.
7161 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7163 * ada-lang.c: Reformat the copyright notice.
7165 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7167 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7168 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7169 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7170 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7171 Revert this part of:
7172 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7173 Build gdb directly from *.o files not using libgdb.a.
7174 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7176 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7178 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7179 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7180 Reformat the copyright header.
7182 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7184 Revert this part of:
7185 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7186 Remove the gdbtui binary.
7187 * gdb.c (main): Remove args.interpreter_p initialization.
7188 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7189 * main.h (struct captured_main_args): Remove interpreter_p.
7191 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7193 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7195 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7197 * top.c (print_gdb_version): Update copyright year.
7199 2012-01-02 Yao Qi <yao@codesourcery.com>
7201 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7203 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7204 Joel Brobecker <brobecker@adacore.com>
7206 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7207 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7209 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7210 fall through into AT_ENTRY_POINT.
7211 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7213 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7214 PPC_INSN_SIZE skip to 3 times.
7216 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7218 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7220 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7222 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7224 Build gdb directly from *.o files not using libgdb.a.
7225 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7226 (COMMON_OBS): Remove solib-target.o.
7227 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7228 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7229 (LIBGDB_OBS, libgdb.a): Move it above.
7230 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7231 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7232 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7233 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7234 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7235 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7236 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7237 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7238 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7239 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7240 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7241 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7242 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7243 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7244 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7245 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7246 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7247 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7248 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7249 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7250 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7251 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7252 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7253 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7254 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7255 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7256 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7258 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7260 Remove the gdbtui binary.
7261 * .gitignore (/gdbtui): Remove.
7262 * Makefile.in (TUI): Remove.
7263 (SUBDIR_TUI_OBS): Remove tui-main.o.
7264 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7265 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7266 (tui-main.o): Remove.
7267 (all_object_files): Remove tui-main.o.
7268 * NEWS: New note for the gdbtui removal.
7269 * configure: Rebuilt.
7270 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7271 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7272 CONFIG_UNINSTALL respectively.
7273 * gdb.c (main): Remove args.interpreter_p initialization.
7274 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7275 * main.h (struct captured_main_args): Remove interpreter_p.
7276 * tui/tui-main.c: Remove.
7278 2012-01-01 Doug Evans <dje@google.com>
7280 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7281 (dwarf2_physname, read_import_statement): Ditto.
7282 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7283 (process_structure_scope read_subroutine_type): Ditto.
7284 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7285 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7286 (dwarf2_fetch_die_location_block): Ditto.
7287 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7289 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7290 All callers updated.
7291 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7292 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7293 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7295 * dwarf2read.c (load_cu): Move assert to more useful location.
7297 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7298 All callers updated.
7300 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7301 (dwarf2_elf_names): Minor reformat.
7302 (dwarf2_per_cu_data): Tweak comment.
7303 (dwarf2_read_section): Fix comment.
7304 (create_all_comp_units): Fix comment.
7305 (load_full_comp_unit): Fix comment.
7306 (process_full_comp_unit): Fix comment.
7307 (read_signatured_type): Fix comment.
7309 For older changes see ChangeLog-2011.
7315 version-control: never