1 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4 * dwarf2loc.c (call_site_parameter_matches): Support
5 CALL_SITE_PARAMETER_PARAM_OFFSET.
6 (needs_dwarf_reg_entry_value): Push stub value.
7 * dwarf2read.c (read_call_site_scope): New variable origin. Support
8 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
9 * gdbtypes.h (enum call_site_parameter_kind): New item
10 CALL_SITE_PARAMETER_PARAM_OFFSET.
11 (struct call_site.parameter.u): New field param_offset.
13 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
15 Code cleanup: Generalize call_site.parameter key.
16 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
17 variable dwarf_reg. New variable kind_u. Update parameters to
18 push_dwarf_reg_entry_value.
19 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
20 * dwarf2expr.h (enum call_site_parameter_kind)
21 (union call_site_parameter_u): Forward declarations.
22 (struct dwarf_expr_context_funcs): Update parameters and their
23 description for push_dwarf_reg_entry_value.
24 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
25 * dwarf2loc.c (call_site_parameter_matches): New function.
26 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
27 description. Use call_site_parameter_matches.
28 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
29 Update parameters and their description.
30 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
31 New variable kind_u. Adjust the caller for updated parameters.
32 (needs_dwarf_reg_entry_value): Update parameters.
33 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
34 instead of attr. Update for the changed fields of struct
36 * gdbtypes.h: Include dwarf2expr.h.
37 (enum call_site_parameter_kind): New.
38 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
39 fb_offset into new union u.
41 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
43 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
44 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
47 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
49 * amd64-linux-nat.c (compat_x32_clock_t): New.
50 (compat_x32_siginfo_t): Likewise.
51 (compat_x32_siginfo_from_siginfo): Likewise.
52 (siginfo_from_compat_x32_siginfo): Likewise.
53 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
54 and siginfo_from_compat_x32_siginfo for x32.
56 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
58 * tracepoint.c (tfile_xfer_partial): Add a lseek.
60 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
62 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
63 instead of gdbarch_ptr_bit.
64 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
65 (amd64_supply_native_gregset): Likewise.
66 (amd64_collect_native_gregset): Likewise.
67 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
68 (amd64_supply_xsave): Likewise.
69 (amd64_collect_fxsave): Likewise.
70 (amd64_collect_xsave): Likewise.
72 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
74 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
75 (amd64_linux_read_description): Check DS segment register for
78 2012-06-15 Tom Tromey <tromey@redhat.com>
80 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
81 init_cutu_and_read_dies.
83 2012-06-15 Iain Sandoe <iain@codesourcery.com>
85 * MAINTAINERS (Write After Approval): Add myself to the list.
87 2012-06-15 Tom Tromey <tromey@redhat.com>
89 * valops.c (value_find_oload_method_list): Now static.
90 * value.h (value_find_oload_method_list): Don't declare.
92 2012-06-15 Tom Tromey <tromey@redhat.com>
94 * valops.c (find_overload_match): Use value_ind.
96 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
98 * infrun.c (handle_inferior_event): Correct indentation.
100 2012-06-14 Doug Evans <dje@google.com>
102 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
103 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
105 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
106 updated. Handle DEBUG_LOC_START_LENGTH.
107 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
108 (loclist_describe_location): Ditto.
110 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
113 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
114 after hiding inline functions.
116 2012-06-13 Joel Brobecker <brobecker@adacore.com>
118 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
119 _initialize_inf_ttrace.
121 2012-06-13 Joel Brobecker <brobecker@adacore.com>
123 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
124 _initialize_hppa_hpux_nat.
126 2012-06-13 Joel Brobecker <brobecker@adacore.com>
128 * remote-sim.c (sim_command_completer): Change type of return
129 value to "VEC (char_ptr) *". Adjust implementation accordingly.
131 2012-06-13 Mark Kettenis <kettenis@gnu.org>
132 Jan Kratochvil <jan.kratochvil@redhat.com>
135 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
136 stack on a 16-byte boundary.
138 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
140 * jit.c (finalize_symtab): Set function's return type to 'void' by
143 2012-06-13 Mark Kettenis <kettenis@gnu.org>
144 H.J. Lu <hongjiu.lu@intel.com>
146 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
147 Move bits common to both the classic LP64 and the new x32 ILP32
149 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
150 (amd64_x32_linux_init_abi): New function.
151 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
154 * i386-tdep.h (i386_pseudo_register_name): New prototype.
155 * i386-tdep.c (i386_pseudo_register_name): Make public.
156 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
157 * amd64-tdep.c (amd64_dword_names): Add "eip".
158 (amd64_x32_pseudo_register_type): New function
159 (amd64_x32_init_abi): New function.
161 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
164 * inferior.h (struct inferior_suspend_state): Comment out.
165 (struct inferior): Comment out the field suspend.
166 * infrun.c (struct infcall_suspend_state): Comment out the field
168 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
171 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
173 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
174 * c-exp.y (classify_inner_name): Remove caller assumptions in the
175 function comment. Return ERROR for unresolved cases. Implement
176 returning proper NAME.
177 (yylex): Accept also NAME from classify_inner_name.
178 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
179 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
181 * cp-support.h (cp_lookup_nested_type): Update its declaration.
183 2012-06-13 Tom Tromey <tromey@redhat.com>
185 * breakpoint.c (condition_completer): New function.
186 (_initialize_breakpoint): Use it.
187 * value.c (complete_internalvar): New function.
188 * value.h (complete_internalvar): Declare.
190 2012-06-13 Tom Tromey <tromey@redhat.com>
192 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
193 * breakpoint.c (catch_syscall_completer): Return a VEC.
194 * cli/cli-cmds.c (complete_command): Update.
195 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
196 (complete_on_enum): Likewise.
197 * command.h: Include gdb_vecs.h.
198 (completer_ftype): Change return type.
199 (complete_on_cmdlist, complete_on_enum): Likewise.
200 * completer.c (noop_completer, filename_completer)
201 (location_completer): Return a VEC.
202 (add_struct_fields): Remove 'nextp' argument. Change 'output'
204 (expression_completer, complete_line_internal, complete_line)
205 (command_completer): Return a VEC.
206 (gdb_completion_word_break_characters, line_completion_function):
208 * completer.h: Include gdb_vecs.h.
209 (complete_line, noop_completer, filename_completer)
210 (expression_completer, location_completer, command_completer):
212 * f-lang.c (f_word_break_characters): Return a VEC.
213 * interps.c (interpreter_completer): Return a VEC.
214 * language.h (struct language_defn)
215 <la_make_symbol_completion_list>: Return a VEC.
216 * python/py-cmd.c (cmdpy_completer): Return a VEC.
217 * symtab.c (free_completion_list): Take a VEC.
218 (return_val_size, return_val_index): Remove.
219 (return_val): Now a VEC.
220 (completion_list_add_name): Update.
221 (default_make_symbol_completion_list_break_on)
222 (default_make_symbol_completion_list, make_symbol_completion_list)
223 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
225 (add_filename_to_list): Update.
226 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
228 (maybe_add_partial_symtab_filename): Update.
229 (make_source_files_completion_list): Return a VEC.
230 * symtab.h (default_make_symbol_completion_list_break_on)
231 (default_make_symbol_completion_list, make_symbol_completion_list)
232 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
233 (make_source_files_completion_list): Update.
235 2012-06-13 Tom Tromey <tromey@redhat.com>
237 * breakpoint.c (add_catch_command): Use completer_ftype.
238 * breakpoint.h: Include command.h.
239 (add_catch_command): Use completer_ftype.
240 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
241 * cli/cli-decode.h (struct cmd_list_element) <completer>:
243 * command.h (completer_ftype): New typedef.
244 (set_cmd_completer): Use it.
245 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
248 2012-06-13 Pedro Alves <palves@redhat.com>
250 Partial revert of previous change.
252 * serial.c (scb_base): New global.
253 (serial_for_fd): New.
254 (serial_open, serial_fdopen_ops): Link new serial in open serials
256 (do_serial_close): Unlink serial from the open serials chain.
258 2012-06-12 Pedro Alves <palves@redhat.com>
260 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
262 (prepare_for_detach): No longer context switch here in non-stop
264 (fetch_inferior_event): Ditto.
265 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
266 to the event thread before removing breakpoints. Switch to the
267 event thread before inserting breakpoints and resuming.
268 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
269 event thread before resuming.
270 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
271 Switch to the event thread before removing breakpoints.
273 2012-06-12 Eli Zaretskii <eliz@gnu.org>
275 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
276 special characters correctly for the Windows shells. See
277 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
279 [!__MINGW32__]: Remove extra double quote character from special
282 2012-06-11 Stan Shebs <stan@codesourcery.com>
284 * ui-out.h: Remove #if 0 declarations.
285 * ui-out.c: Remove #if 0 functions.
287 2012-06-11 Pedro Alves <palves@redhat.com>
289 * ser-base.c (run_async_handler_and_reschedule): New.
290 (fd_event, push_event): Use it.
291 * serial.c (serial_open, serial_fdopen_ops): Set the initial
292 reference count to 1.
293 (do_serial_close): Set the bufp field to NULL. Use serial_unref
295 (serial_is_open, serial_ref, serial_unref): New.
296 * serial.h (serial_open): Adjust comment.
297 (serial_is_open): Declare.
298 (serial_close): Adjust comment.
299 (serial_ref, serial_unref) Declare.
300 (struct serial): New field 'refcnt'.
302 2012-06-11 Pedro Alves <palves@redhat.com>
304 Remove #if 0'd "connect" command, and unnecessary associated
305 refcounting and serial reuse bits.
307 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
308 * serial.c (last_serial_opened): Delete.
310 (serial_open): Adjust.
311 (serial_for_fd): Delete.
312 (serial_fdopen_ops, do_serial_close): Adjust.
313 (serial_fdopen_ops): Adjust.
315 2012-06-11 Pedro Alves <palves@redhat.com>
317 * serial.c (do_serial_close): Remove early return when SCB is
320 2012-06-11 Tom Tromey <tromey@redhat.com>
322 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
324 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
326 Fix regression by the "ambiguous linespec" series.
327 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
328 get_last_displayed_symtab and get_last_displayed_line and depending
331 2012-06-11 Tom Tromey <tromey@redhat.com>
333 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
334 (dw2_find_symbol_file): Use it.
336 2012-06-11 Michael Eager <eager@eagercon.com>
338 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
339 * mips-linux-tdep.h (mips_signals): New
341 2012-06-11 Tom Tromey <tromey@redhat.com>
343 * infrun.c (handle_inferior_event)
344 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
346 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
347 exception logic in all cases. Update comments.
348 (insert_longjmp_resume_breakpoint): Set the exception resume
351 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
353 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
355 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
357 * valarith.c (binop_types_user_defined_p): Fix a typo.
359 2012-06-08 Yao Qi <yao@codesourcery.com>
360 Chung-Lin Tang <cltang@codesourcery.com>
362 * arch-utils.c (default_return_in_first_hidden_param_p): New.
363 * arch-utils.h: Declare.
364 * gdbarch.sh: Add return_in_first_hidden_param_p.
365 * gdbarch.c, gdbarch.h: Regenerated.
366 * infcall.c (call_function_by_hand): Call
367 gdbarch_return_in_first_hidden_param_p instead of
368 language_pass_by_reference.
370 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
371 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
372 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
373 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
374 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
375 `cplus_return_struct_by_reference'.
376 (tic6x_return_value): Handle language cplusplus.
377 (tic6x_return_in_first_hidden_param_p): New.
378 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
380 2012-06-07 Doug Evans <dje@google.com>
382 * dwarf2read.c (dwarf2_cu): Add comment.
384 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
386 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
388 (mips_eabi_push_dummy_call): Likewise.
389 (mips_n32n64_push_dummy_call): Likewise.
390 (mips_o32_push_dummy_call): Likewise.
391 (mips_o64_push_dummy_call): Likewise.
393 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
395 * mips-tdep.c (mips_convert_register_p): Correct coding style.
397 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
399 * mips-tdep.c (mips_pseudo_register_type): Use
400 mips_float_register_p.
402 2012-06-06 Pedro Alves <palves@redhat.com>
404 * infrun.c (handle_inferior_event): Remove calls to
405 reinit_frame_cache that follow a context_switch call.
407 2012-06-06 Pedro Alves <palves@redhat.com>
409 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
410 context_switch and remove stale comment.
412 2012-06-06 Pedro Alves <palves@redhat.com>
414 * infrun.c (struct execution_control_state): Remove
415 `new_thread_event' field.
416 (handle_inferior_event): Simplify new threads handling; don't
417 resume the inferior if we find a new thread.
419 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
421 * NEWS: Document the deprecation of SH's 'regs' command.
422 * inferior.h (all_registers_info): Add function declaration.
423 * sh-tdep.c (sh_show_regs): Remove variable.
424 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
425 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
426 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
427 (sh_show_regs_command): Remove functions.
428 (sh_gdbarch_init): Don't set sh_show_regs.
429 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
430 'info all-registers'.
431 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
432 (sh64_show_regs): Remove functions.
433 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
435 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
437 * configure.ac: Move development=true below AC_INIT.
438 * configure: Regenerate.
440 2012-06-05 Stan Shebs <stan@codesourcery.com>
442 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
445 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
447 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
449 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
450 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
451 * target.c (target_read_stack, target_write_memory)
452 (target_write_raw_memory): Likewise.
453 * target.h (target_read_stack, target_write_memory)
454 (target_write_raw_memory): Likewise.
456 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
458 * symfile-mem.c: Change gdb_static_assert to ssize_t.
459 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
460 * target.c (target_read_memory): Change LEN to ssize_t.
461 * target.h (target_read_memory): Change LEN to ssize_t.
463 2012-06-05 Pedro Alves <palves@redhat.com>
467 * breakpoint.c (until_break_command): Only fetch the selected
468 frame after decode_line_1.
470 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
472 * solib-svr4.c (enable_break): Don't fallback to setting the solib
473 event breakpoint at _start, __start or main if a program
474 interpreter is not found.
476 2012-06-05 Joel Brobecker <brobecker@adacore.com>
478 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
480 * windows-tdep.c: #include "objfiles.h".
481 (windows_iterate_over_objfiles_in_search_order): New function.
482 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
483 iterate_over_objfiles_in_search_order gdbarch method to
484 windows_iterate_over_objfiles_in_search_order.
485 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
487 2012-06-05 Joel Brobecker <brobecker@adacore.com>
489 * gdbarch.sh: Add generation of
490 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
491 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
492 (iterate_over_objfiles_in_search_order): New gdbarch method.
493 * gdbarch.h, gdbarch.c: Regenerate.
494 * objfiles.h (default_iterate_over_objfiles_in_search_order):
496 * objfiles.c (default_iterate_over_objfiles_in_search_order):
498 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
499 out of lookup_symbol_aux_symtabs.
500 (lookup_symbol_aux_symtabs): Replace extracted-out code by
501 call to lookup_symbol_aux_objfile.
502 (struct global_sym_lookup_data): New type.
503 (lookup_symbol_global_iterator_cb): New function.
504 (lookup_symbol_global): Search for symbol using
505 gdbarch_iterate_over_objfiles_in_search_order and
506 lookup_symbol_global_iterator_cb.
507 * findvar.c (struct minsym_lookup_data): New type.
508 (minsym_lookup_iterator_cb): New function.
509 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
510 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
511 and minsym_lookup_iterator_cb.
513 2012-06-05 Joel Brobecker <brobecker@adacore.com>
515 Revert the following patch:
516 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
517 try locating the symbol in the symbol's own objfile first, before
518 extending the search to all objfiles.
519 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
520 out of lookup_symbol_aux_symtabs.
521 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
522 Replace extracted-out code by call to lookup_symbol_aux_objfile.
523 Do not search EXCLUDE_OBJFILE.
524 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
525 (lookup_symbol_global): Search for matches in the block's objfile
526 first, before searching all other objfiles.
528 2012-06-05 Joel Brobecker <brobecker@adacore.com>
530 * breakpoint.c (find_condition_and_thread): Stop parsing
531 as soon as the first invalid keyword is found.
533 2012-06-05 Joel Brobecker <brobecker@adacore.com>
535 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
537 2012-06-05 Joel Brobecker <brobecker@adacore.com>
539 * config/djgpp/djcheck.sh: Add copyright header.
541 2012-06-05 Joel Brobecker <brobecker@adacore.com>
543 * copyright.py (update_files, main): Fix path to update-copyright
546 2012-06-05 Joel Brobecker <brobecker@adacore.com>
548 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
549 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
550 for which a reminder to update by hand is printed.
552 2012-06-04 Doug Evans <dje@google.com>
554 * buildsym.c (make_blockvector): Add comment.
556 2012-06-04 Pedro Alves <palves@redhat.com>
558 * arch-utils.c (default_gdb_signal_from_target): Delete.
559 * arch-utils.h (default_gdb_signal_from_target): Delete.
560 * corelow.c (core_open) <signal mapping>: Extended comment. Check
561 gdbarch_gdb_signal_from_target_p.
562 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
564 * gdbarch.h: Regenerate.
565 * gdbarch.c: Regenerate.
567 2012-06-04 Pedro Alves <palves@redhat.com>
569 * gdbarch.sh (gdb_signal_from_target): Mention that the
570 implementation of the method must be host independent.
571 * gdbarch.h: Regenerate.
573 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
575 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
577 (target_read_memory_bfd): New function.
578 (symbol_file_add_from_memory): Use it.
580 2012-06-03 Doug Evans <dje@google.com>
582 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
584 (basic_lookup_transparent_type): Ditto.
586 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
587 (ALL_PRIMARY_SYMTABS): Use it.
588 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
589 * dwarf2read.c (dw2_find_symbol_file): Ditto.
590 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
591 * symtab.c (lookup_symbol_aux_objfile): Ditto.
592 (basic_lookup_transparent_type): Ditto.
594 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
596 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
597 it to optimize resolution of demangled name.
599 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
601 * configure.ac (development): Define new variable.
602 Call AC_CHECK_LIB for mcheck if $development.
603 (ERROR_ON_WARNING): Enable it by default only if $development.
604 * config.in: Regenerate.
605 * configure: Regenerate.
607 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
609 * target.c (target_read_memory): Make LEN argument as size_t.
610 * target.h (target_read_memory): Likewise.
612 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
614 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
616 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
618 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
619 BookE interface for PowerPC server processors if not available
622 2012-05-31 Keith Seitz <keiths@redhat.com>
624 * linespec.c (decode_objc): Add cleanup to free
626 (find_linespec_symbols): Add cleanup to free CLASSES.
627 * symfile.c (find_separate_debug_file_by_debuglink): Add
628 cleanup to free DEBUGLINK.
629 * ui-out.c (clear_header_list): No need to check if
630 HEADER_NEXT.COLHDR is NULL.
631 Free HEADER_NEXT.COL_NAME.
633 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
635 * ada-lang.c (standard_lookup): Prevent uninitialized variable
638 2012-05-30 Jeff Kenton <jkenton@tilera.com>
640 * configure.host (gdb_host_cpu): Handle tilegx*.
641 (gdb_host): Handle tilegx-*-linux*.
642 * tilegx-linux-nat.c: New file.
643 * config/tilegx/linux.mh: New file.
645 2012-05-30 Jeff Kenton <jkenton@tilera.com>
647 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
649 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
651 * configure.tgt: Handle tilegx-*-linux*.
652 * tilegx-tdep.h: New file.
653 * tilegx-tdep.c: New file.
654 * tilegx-linux-tdep.c: New file.
655 * regformats/reg-tilegx.dat: New file.
657 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
659 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
660 accounting of hw watchpoints on ppc.
662 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
664 * source.c (openp): Expand tilde in path entries.
666 2012-05-29 Doug Evans <dje@google.com>
668 * buildsym.c (block_compar): Fix comment.
669 (end_symtab): Fix and clarify some comments.
671 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
672 cleanup_undefined_types.
673 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
676 2012-05-29 Tom Tromey <tromey@redhat.com>
678 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
680 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
681 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
683 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
686 2012-05-29 Tristan Gingold <gingold@adacore.com>
688 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
689 (struct darwin_info): ... New struct.
690 (solib_darwin_pspace_data): New variable.
691 (darwin_pspace_data_cleanup): New function.
692 (get_darwin_info): Likewise.
693 (darwin_dyld_version_ok, darwin_load_image_infos)
694 (darwin_solib_get_all_image_info_addr_at_init)
695 (darwin_solib_read_all_image_info_addr): Add info argument.
697 (darwin_current_sos): Use per pspace structure.
698 (darwin_solib_create_inferior_hook): Likewise.
699 (darwin_clear_solib): Likewise.
700 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
702 2012-05-28 Pedro Alves <palves@redhat.com>
704 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
705 block that uses them. Clear ecss before handling each event.
707 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
709 * solib-svr4.c (svr4_current_sos): New comment on
710 svr4_current_sos_via_xfer_libraries fall back.
712 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
714 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
715 it as a fallback for TYPE_IS_OPAQUE.
716 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
717 symbols for lookup_symbol.
719 2012-05-24 John Steele Scott <toojays@toojays.net>
721 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
722 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
723 (producer_is_gxx_lt_4_6): Move the checking and caching to...
724 (check_producer): ... this new function, which also checks for ICC
725 and caches the result.
726 (producer_is_icc): New function.
727 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
730 2012-05-24 Pedro Alves <palves@redhat.com>
734 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
735 (default_gdb_signal_to_target): ... this. Add comment.
736 (default_gdb_signal_from_host): Rename to ...
737 (default_gdb_signal_from_target): ... this. Add comment.
738 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
739 (default_gdb_signal_to_target): ... this.
740 (default_gdb_signal_from_host): Rename to ...
741 (default_gdb_signal_from_target): ... this.
742 * corelow.c (core_open): Adjust to naming change. Replace comment.
743 * gdbarch.sh (gdb_signal_from_host): Rename to ...
744 (gdb_signal_from_target): ... this. Adjust to
745 default_gdb_signal_from_host naming change. Extend comment.
746 (gdb_signal_to_host): Rename to ...
747 (gdb_signal_to_target): ... this. Adjust to
748 default_gdb_signal_to_host naming change.
749 * gdbarch.h, gdbarch.c: Renegerate.
751 2012-05-24 Pedro Alves <palves@redhat.com>
755 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
757 2012-05-24 Pedro Alves <palves@redhat.com>
761 Replace target_signal with gdb_signal throughout.
763 2012-05-24 Pedro Alves <palves@redhat.com>
767 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
768 string, instead of reusing the va_list argument.
770 2012-05-24 Tom Tromey <tromey@redhat.com>
772 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
775 2012-05-23 Doug Evans <dje@google.com>
777 * symtab.c (search_symbols): Formatting fixes.
778 (print_symbol_info): Formatting fixes.
780 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
781 int64_t change to leb128 API.
782 (read_encoded_value, decode_frame_entry_1): Ditto.
783 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
784 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
785 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
786 (execute_stack_op): Ditto.
787 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
788 (safe_read_uleb128, safe_read_sleb128): Ditto.
789 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
790 (dwarf2_compile_expr_to_ax): Ditto.
791 (locexpr_describe_location_piece): Ditto.
792 (disassemble_dwarf_expression): Ditto.
793 (locexpr_describe_location_1): Ditto.
795 2012-05-23 Stan Shebs <stan@codesourcery.com>
796 Kwok Cheung Yeung <kcy@codesourcery.com>
798 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
799 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
800 (mi-cmd-info.o): New rule.
801 * osdata.h (info_osdata_command): New declaration.
802 * osdata.c (info_osdata_command): Change to non-static.
803 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
804 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
805 * mi/mi-cmd-info.c: New file.
807 2012-05-23 Doug Evans <dje@google.com>
809 * symtab.c (search_symbols): Pass NULL for file_matcher to
810 expand_symtabs_matching if there are no files to match.
812 * gdbtypes.c (lookup_typename): Simplify.
814 2012-05-23 Pedro Alves <palves@redhat.com>
816 * arch-utils.h (default_target_signal_to_host): Delete.
817 * arch-utils.c (default_target_signal_to_host): Delete.
818 * gdbarch.sh (target_signal_to_host): Remove.
819 * gdbarch.h, gdbarch.c: Regenerate.
821 2012-05-22 Doug Evans <dje@google.com>
823 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
825 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
826 (execute_cfa_program): Update to match API of leb128 functions.
827 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
829 (read_unsigned_leb128, read_signed_leb128): Delete.
830 (read_initial_length): Change type of buf argument to
832 (read_encoded_value): Update to match API of leb128 functions.
833 (decode_frame_entry): Change result to "const gdb_byte *", and
834 similarly for "start" parameter.
835 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
836 (dwarf2_build_frame_info): Change local frame_ptr to
838 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
839 read_uleb128, read_sleb128. All callers updated.
840 (safe_skip_leb128): New function.
841 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
842 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
843 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
844 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
845 read_uleb128, read_sleb128.
846 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
847 (execute_stack_op): Update to match API of leb128 functions.
848 * dwarf2expr.h: #include "leb128.h".
849 (read_uleb128, read_sleb128): Delete.
850 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
851 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
852 * dwarf2loc.c (debug_loc_kind): New enum.
853 (decode_debug_loc_addresses): New function.
854 (decode_debug_loc_dwo_addresses): New function.
855 (dwarf2_find_location_expression): Rewrite.
856 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
857 (locexpr_describe_location_piece): Ditto.
858 (disassemble_dwarf_expression): Ditto.
859 (locexpr_describe_location_1): Ditto.
860 (loclist_describe_location): Rewrite.
861 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
862 * dwarf2read.c (die_reader_specs): New member "buffer_end".
863 (dwarf2_section_buffer_overflow_complaint): Renamed from
864 dwarf2_macros_too_long_complaint. All callers updated.
865 (skip_leb128): Delete.
866 (init_cu_die_reader): Initialize reader->buffer_end.
867 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
868 (skip_form_bytes): New arg buffer_end. All callers updated.
869 Replace call to skip_leb128 with gdb_skip_leb128.
870 (skip_unknown_opcode): New arg mac_end. All callers updated.
871 (fill_in_loclist_baton): Initialize baton->from_dwo.
873 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
875 * mips-linux-nat.c (mips_linux_read_description): Use a more
876 verbose error message.
878 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
880 * NEWS: Add MIPS/Linux DSP support.
881 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
882 (SIGCONTEXT_DSPCTL): New macro.
883 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
884 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
885 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
886 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
887 (N64_SIGCONTEXT_HI3): Likewise.
888 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
889 (N64_SIGCONTEXT_LO3): Likewise.
890 (N64_SIGCONTEXT_DSPCTL): Likewise.
891 (N64_SIGCONTEXT_FPCSR): Clarify definition.
892 (mips_linux_o32_sigframe_init): Handle DSP registers.
893 (mips_linux_n32n64_sigframe_init): Likewise.
895 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
897 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
900 2012-05-22 Pedro Alves <palves@redhat.com>
902 * target.h (store_waitstatus): Move declaration ...
903 * inf-child.h (store_waitstatus): ... here.
904 * target.c: Move inclusion of gdb_wait.h, and ...
905 (store_waitstatus): ... this ...
906 * inf-child.c: ... here.
907 * linux-nat.c: Include inf-child.h.
908 * rs6000-nat.c: Include inf-child.h.
909 * spu-linux-nat.c: Include inf-child.h.
911 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
913 * tracepoint.c (start_tracing): Add missing i18n markup.
914 (stop_tracing, set_trace_user): Ditto.
915 (set_trace_notes, set_trace_stop_notes): Ditto.
917 2012-05-21 Tom Tromey <tromey@redhat.com>
920 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
922 * value.h (value_cast_pointers): Update.
923 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
924 (value_cast): Update.
925 (update_search_result): New function.
926 (do_search_struct_field): New, from search_struct_field. Check
927 for ambiguous results.
928 (search_struct_field): Rewrite.
929 * infcall.c (value_arg_coerce): Update.
930 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
932 * ada-lang.c (ada_convert_actual): Update.
934 2012-05-21 Tom Tromey <tromey@redhat.com>
936 * macroexp.c (macro_stringify): Terminate the string.
938 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
940 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
942 * auto-load.c (auto_load_expand_dir_vars): New function.
943 (auto_load_safe_path_vec_update): Use it, remove the
944 substitute_path_component call thanks to it.
945 (auto_load_objfile_script): Remove the debug_file_directory processing.
946 Use auto_load_expand_dir_vars, remove the substitute_path_component
948 * configure: Regenerate.
949 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
950 path. Escape $ also for $debugdir.
951 (--with_auto_load_safe_path): Escape $ also for $debugdir.
952 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
954 2012-05-20 Doug Evans <dje@google.com>
956 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
957 before use. Check for symtab->includes == NULL before scanning it.
959 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
961 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
963 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
965 * NEWS: Add microMIPS support and "set mips compression",
966 "show mips compression" commands.
967 * mips-tdep.h (mips_isa): New enum.
968 (gdbarch_tdep): Add mips_isa.
969 (mips_pc_is_mips16): Update prototype.
970 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
971 * mips-tdep.c (mips_compression_mips16): New variable.
972 (mips_compression_micromips): Likewise.
973 (mips_compression_strings): Likewise.
974 (mips_compression_string): Likewise.
975 (is_mips16_isa, is_micromips_isa): New functions.
976 (is_mips16_addr): Rename to...
977 (is_compact_addr): ... this.
978 (unmake_mips16_addr): Likewise to...
979 (unmake_compact_addr): ... this.
980 (make_mips16_addr): Likewise to...
981 (make_compact_addr): ... this.
982 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
984 (mips_elf_make_msymbol_special): Handle microMIPS code.
985 (msymbol_is_special): Rename to...
986 (msymbol_is_mips16): ... this.
987 (mips_make_symbol_special, mips_pc_is_mips16): Update
989 (msymbol_is_mips, msymbol_is_micromips): New functions.
990 (mips16_to_32_reg): Rename to...
991 (mips_reg3_to_reg): ... this.
992 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
993 (mips_pc_isa): Likewise.
994 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
996 (mips_fetch_instruction): Pass return status instead of printing
997 an error message if requested. Handle microMIPS code. Bail out
999 (micromips_op): New macro.
1000 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
1001 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
1002 (b6s4_op, b7s3_reg): Likewise.
1003 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
1004 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
1005 (mips_insn_size): New function.
1006 (mips32_next_pc): Update mips_fetch_instruction call.
1007 (micromips_relative_offset7): New function.
1008 (micromips_relative_offset10): Likewise.
1009 (micromips_relative_offset16): Likewise.
1010 (micromips_pc_insn_size): Likewise.
1011 (micromips_bc1_pc): Likewise.
1012 (micromips_next_pc): Likewise.
1013 (unpack_mips16): Update mips_fetch_instruction call.
1014 (extended_mips16_next_pc): Update according to change to
1016 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
1018 (mips16_scan_prologue): Update mips_fetch_instruction call.
1019 Update according to change to mips16_to_32_reg.
1020 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
1021 (mips_insn16_frame_base_sniffer): Likewise.
1022 (micromips_decode_imm9): New function.
1023 (micromips_scan_prologue): Likewise.
1024 (mips_micro_frame_cache): Likewise.
1025 (mips_micro_frame_this_id): Likewise.
1026 (mips_micro_frame_prev_register): Likewise.
1027 (mips_micro_frame_sniffer): Likewise.
1028 (mips_micro_frame_unwind): New variable.
1029 (mips_micro_frame_base_address): New function.
1030 (mips_micro_frame_base): New variable.
1031 (mips_micro_frame_base_sniffer): New function.
1032 (mips32_scan_prologue): Update mips_fetch_instruction call.
1033 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
1034 rather than for MIPS16.
1035 (mips_insn32_frame_base_sniffer): Likewise.
1036 (mips_addr_bits_remove): Handle microMIPS code.
1037 (deal_with_atomic_sequence): Rename to...
1038 (mips_deal_with_atomic_sequence): ... this. Update the type
1039 of the variable used to hold an instruction. Remove the ISA bit
1040 check. Update mips_fetch_instruction call.
1041 (micromips_deal_with_atomic_sequence): New function.
1042 (deal_with_atomic_sequence): Likewise.
1043 (mips_about_to_return): Handle microMIPS code. Update
1044 mips_fetch_instruction call.
1045 (heuristic_proc_start): Check for the standard MIPS ISA rather
1046 than for MIPS16. Update mips_pc_is_mips16 and
1047 mips_fetch_instruction calls. Handle microMIPS code.
1048 (mips_push_dummy_code): Handle microMIPS code.
1049 (mips_eabi_push_dummy_call): Likewise.
1050 (mips_o32_return_value): Update mips_pc_is_mips16 call.
1051 (mips_o64_push_dummy_call): Handle microMIPS code.
1052 (mips_o64_return_value): Update mips_pc_is_mips16 call.
1053 (is_delayed): Remove function.
1054 (mips_single_step_through_delay): Replace the call to is_delayed
1055 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
1056 Handle microMIPS code.
1057 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
1059 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1061 (micromips_in_function_epilogue_p): New function.
1062 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1064 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1066 (gdb_print_insn_mips): Likewise.
1067 (mips_breakpoint_from_pc): Likewise.
1068 (mips_remote_breakpoint_from_pc): New function.
1069 (mips32_instruction_has_delay_slot): Simplify making use of the
1070 updated mips_fetch_instruction interface.
1071 (micromips_instruction_has_delay_slot): New function.
1072 (mips16_instruction_has_delay_slot): Simplify making use of the
1073 updated mips_fetch_instruction interface.
1074 (mips_adjust_breakpoint_address): Check for the standard MIPS
1075 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
1076 calls. Handle microMIPS code.
1077 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1078 (mips_skip_trampoline_code): Handle microMIPS code.
1079 (global_mips_compression): New function.
1080 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1081 file flags. Register the microMIPS remote breakpoint handler
1082 and heuristic frame unwinder.
1083 (show_mips_compression): New function.
1084 (_initialize_mips_tdep): Add the "set mips compression" and
1085 "show mips compression" commands.
1087 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
1092 * amd64-darwin-tdep.c:
1093 * arm-symbian-tdep.c:
1097 * bfin-linux-tdep.c:
1104 * dwarf2-frame-tailcall.c:
1133 * microblaze-tdep.c:
1134 * mips-linux-tdep.c:
1142 * python/py-finishbreakpoint.c:
1143 * python/py-inferior.c:
1144 * python/py-infthread.c:
1148 * remote-m32r-sdi.c:
1152 * rs6000-aix-tdep.c:
1178 * amd64-darwin-tdep.c:
1179 * arm-symbian-tdep.c:
1180 * arm-tdep.c: Delete unused variables.
1182 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1184 Rename $ddir to $datadir.
1185 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1186 * auto-load.c (auto_load_safe_path_vec_update)
1187 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1188 * configure: Regenerate.
1189 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1190 Likewise. Remove the 'use $ddir' help string.
1192 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1194 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1195 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1197 2012-05-18 Tom Tromey <tromey@redhat.com>
1200 * valprint.h (struct value_print_options) <symbol_print>: New
1202 * valprint.c (user_print_options): Add default for symbol_print.
1203 (show_symbol_print): New function.
1204 (generic_val_print): Respect symbol_print.
1205 (_initialize_valprint): Add "print symbol" setting.
1206 * f-valprint.c (f_val_print): Respect symbol_print.
1207 * c-valprint.c (c_val_print): Respect symbol_print.
1209 * printcmd.c (print_address_symbolic): Return int. Ignore some
1211 (print_address_demangle): Return int.
1212 * defs.h: (print_address_symbolic): Return int.
1213 * value.h (print_address_demangle): Return int.
1215 2012-05-18 Tom Tromey <tromey@redhat.com>
1217 * valprint.c (val_print_string): Don't print leading space.
1218 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1219 print space before string or vtbl.
1220 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1222 * jv-valprint.c (java_value_print): Print space before string.
1223 * go-valprint.c (print_go_string): Print space before string.
1224 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1225 space before string.
1226 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1227 space before string or vtbl.
1228 * auxv.c (fprint_target_auxv): Print space after address.
1230 2012-05-18 Tom Tromey <tromey@redhat.com>
1232 * printcmd.c (print_address_demangle): Remove special case for 0.
1234 2012-05-18 Tom Tromey <tromey@redhat.com>
1236 * printcmd.c (print_address_demangle): Add 'opts' argument.
1237 * p-valprint.c (pascal_val_print): Update.
1238 * jv-valprint.c (java_val_print): Update.
1240 * valprint.c (generic_val_print): Update.
1241 (print_function_pointer_address): Add 'options' argument. Remove
1242 'addressprint' argument. Update.
1243 * m2-valprint.c (print_unpacked_pointer): Update.
1244 * gnu-v3-abi.c (print_one_vtable): Update.
1245 (gnuv3_print_method_ptr): Update.
1246 * f-valprint.c (f_val_print): Update.
1247 * cp-valprint.c (cp_print_value_fields): Update.
1248 * valprint.h (print_function_pointer_address): Update.
1249 * c-valprint.c (c_val_print): Update.
1251 2012-05-18 Tom Tromey <tromey@redhat.com>
1253 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1254 directly corresponding to the found psymtab.
1255 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1256 (dw2_find_pc_sect_symtab): Use it.
1257 * block.h (blockvector_contains_pc): Declare.
1258 * block.c (find_block_in_blockvector): New function.
1259 (blockvector_for_pc_sect): Use it.
1260 (blockvector_contains_pc): New function.
1262 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1264 * mips-tdep.h (mips_write_pc): New prototype.
1265 * mips-tdep.c (mips_write_pc): Make external, add description.
1266 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1269 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1271 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1273 (mips_unwind_pc, mips_write_pc): Likewise.
1274 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1277 2012-05-17 Joel Brobecker <brobecker@adacore.com>
1279 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1280 proc_warn, proc_error, proc_get_status, proc_flags,
1281 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1282 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1283 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1284 proc_stop_process, proc_wait_for_stop, proc_run_process,
1285 proc_set_traced_signals, proc_set_traced_faults,
1286 proc_set_traced_sysentry, proc_set_traced_sysexit,
1287 proc_set_held_signals, proc_get_held_signals,
1288 proc_get_traced_signals, proc_get_traced_faults,
1289 proc_get_traced_sysentry, proc_get_traced_sysexit,
1290 proc_clear_current_fault, proc_set_current_signal,
1291 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1292 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1293 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1294 proc_get_current_thread, proc_get_current_thread,
1295 proc_get_current_thread, proc_update_threads,
1296 proc_update_threads, proc_update_threads, proc_update_threads,
1297 proc_iterate_over_threads, procfs_find_new_threads,
1298 procfs_pid_to_str): Make static. Remove advance declaration.
1299 (proc_cursig): Make static. Conditionalized defintion on
1300 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1301 (proc_syscall, proc_set_kill_on_last_close,
1302 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1303 proc_get_pending_signals, proc_get_signal_actions,
1304 proc_trace_signal, proc_ignore_signal): Delete.
1306 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1308 * coffread.c (cs_section_address): Passing proper argument for
1309 `bfd_get_section_vma'.
1310 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1311 `bfd_get_section_flags'.
1312 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1313 `bfd_get_section_vma'.
1315 2012-05-16 Tom Tromey <tromey@redhat.com>
1318 * macrotab.h: (macro_define_special): Declare.
1319 (enum macro_special_kind): New.
1320 (struct macro_definition) <argc, replacement>: Update comments.
1321 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1322 (macro_define_object_internal): New function.
1323 (macro_define_object): Use it.
1324 (macro_define_special): New function.
1325 (fixup_definition): New function.
1326 (macro_lookup_definition, foreach_macro_in_scope)
1327 (foreach_macro): Use fixup_definition.
1328 * macroexp.h (macro_stringify): Declare.
1329 * macroexp.c (free_buffer_return_text): New function.
1330 (stringify): Constify "arg".
1331 (macro_stringify): New function.
1332 * dwarf2read.c (macro_start_file): Call macro_define_special.
1334 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1335 Maciej W. Rozycki <macro@mips.com>
1337 * breakpoint.h (bp_location): Add related_address member.
1338 * inferior.h (get_return_value): Take a pointer to struct value
1339 instead of struct type for the function requested.
1340 * value.h (using_struct_return): Likewise.
1341 * gdbarch.sh (return_value): Take a pointer to struct value
1342 instead of struct type for the function requested.
1343 * breakpoint.c (set_breakpoint_location_function): Initialize
1344 related_address for bp_gnu_ifunc_resolver breakpoints.
1345 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1346 requested function's address to gdbarch_return_value.
1347 * eval.c (evaluate_subexp_standard): Pass the requested
1348 function's address to using_struct_return.
1349 * infcall.c (call_function_by_hand): Pass the requested
1350 function's address to using_struct_return and
1351 gdbarch_return_value.
1352 * infcmd.c (get_return_value): Take a pointer to struct value
1353 instead of struct type for the function requested.
1354 (print_return_value): Update accordingly.
1355 (finish_command_continuation): Likewise.
1356 * stack.c (return_command): Pass the requested function's
1357 address to using_struct_return and gdbarch_return_value.
1358 * value.c (using_struct_return): Take a pointer to struct value
1359 instead of struct type for the function requested. Pass the
1360 requested function's address to gdbarch_return_value.
1361 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1362 New function_value member, replacing function_type.
1363 (bpfinishpy_dealloc): Update accordingly.
1364 (bpfinishpy_pre_stop_hook): Likewise.
1365 (bpfinishpy_init): Likewise. Record the requested function's
1367 * mips-tdep.c (mips_fval_reg): New enum.
1368 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1369 words put in GP registers.
1370 (mips_o64_push_dummy_call): Update a comment.
1371 (mips_o32_return_value): Take a pointer to struct value instead
1372 of struct type for the function requested and use it to check if
1373 using the MIPS16 calling convention. Return the designated
1374 general purpose registers for floating-point values returned in
1376 (mips_o64_return_value): Likewise.
1377 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1378 (ppc_sysv_abi_broken_return_value): Likewise.
1379 (ppc64_sysv_abi_return_value): Likewise.
1380 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1381 value instead of struct type for the function requested.
1382 * amd64-tdep.c (amd64_return_value): Likewise.
1383 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1384 * arm-tdep.c (arm_return_value): Likewise.
1385 * avr-tdep.c (avr_return_value): Likewise.
1386 * bfin-tdep.c (bfin_return_value): Likewise.
1387 * cris-tdep.c (cris_return_value): Likewise.
1388 * frv-tdep.c (frv_return_value): Likewise.
1389 * h8300-tdep.c (h8300_return_value): Likewise.
1390 (h8300h_return_value): Likewise.
1391 * hppa-tdep.c (hppa32_return_value): Likewise.
1392 (hppa64_return_value): Likewise.
1393 * i386-tdep.c (i386_return_value): Likewise.
1394 * ia64-tdep.c (ia64_return_value): Likewise.
1395 * iq2000-tdep.c (iq2000_return_value): Likewise.
1396 * lm32-tdep.c (lm32_return_value): Likewise.
1397 * m32c-tdep.c (m32c_return_value): Likewise.
1398 * m32r-tdep.c (m32r_return_value): Likewise.
1399 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1400 * m68k-tdep.c (m68k_return_value): Likewise.
1401 (m68k_svr4_return_value): Likewise.
1402 * m88k-tdep.c (m88k_return_value): Likewise.
1403 * mep-tdep.c (mep_return_value): Likewise.
1404 * microblaze-tdep.c (microblaze_return_value): Likewise.
1405 * mn10300-tdep.c (mn10300_return_value): Likewise.
1406 * moxie-tdep.c (moxie_return_value): Likewise.
1407 * mt-tdep.c (mt_return_value): Likewise.
1408 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1409 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1410 (ppc_sysv_abi_broken_return_value): Likewise.
1411 (ppc64_sysv_abi_return_value): Likewise.
1412 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1413 * rl78-tdep.c (rl78_return_value): Likewise.
1414 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1415 * rx-tdep.c (rx_return_value): Likewise.
1416 * s390-tdep.c (s390_return_value): Likewise.
1417 * score-tdep.c (score_return_value): Likewise.
1418 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1419 (sh_return_value_fpu): Likewise.
1420 * sh64-tdep.c (sh64_return_value): Likewise.
1421 * sparc-tdep.c (sparc32_return_value): Likewise.
1422 * sparc64-tdep.c (sparc64_return_value): Likewise.
1423 * spu-tdep.c (spu_return_value): Likewise.
1424 * tic6x-tdep.c (tic6x_return_value): Likewise.
1425 * v850-tdep.c (v850_return_value): Likewise.
1426 * vax-tdep.c (vax_return_value): Likewise.
1427 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1428 * xtensa-tdep.c (xtensa_return_value): Likewise.
1429 * gdbarch.c: Regenerate.
1430 * gdbarch.h: Regenerate.
1432 2012-05-15 Tom Tromey <tromey@redhat.com>
1434 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1436 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1438 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1439 of command in two error message.
1441 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1443 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1445 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1447 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1449 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1451 * NEWS (show auto-load scripts-directory): Add forgotten command.
1453 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1455 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1458 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1460 * amd64-tdep.c: Include features/i386/x32.c and
1461 features/i386/x32-avx.c.
1462 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1463 initialize_tdesc_x32_avx.
1465 2012-05-14 Stan Shebs <stan@codesourcery.com>
1468 * breakpoint.h (enum bptype): New type bp_dprintf.
1469 (struct breakpoint): New field extra_string.
1470 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1471 (create_breakpoint): Add extra_string arg.
1472 * breakpoint.c (dprintf_breakpoint_ops): New.
1473 (is_breakpoint): Add bp_dprintf.
1474 (bpstat_what): Add dprintf case.
1475 (bptype_string): Ditto.
1476 (print_one_breakpoint_location): Ditto.
1477 (init_bp_location): Ditto.
1478 (bkpt_print_mention): Ditto.
1479 (dprintf_style_enums): New array.
1480 (dprintf_style): New global.
1481 (dprintf_function): New global.
1482 (dprintf_channel): New global.
1483 (update_dprintf_command_list): New function.
1484 (update_dprintf_commands): New function.
1485 (init_breakpoint_sal): Add extra_string argument, handle it.
1486 (create_breakpoint_sal): Add extra_string argument.
1487 (create_breakpoints_sal): Add extra_string argument, update callers.
1488 (find_condition_and_thread): Add extra argument.
1489 (create_breakpoint): Add extra_string argument, record it.
1490 (dprintf_command): New function.
1491 (break_command_1): Add arg to create_breakpoint call.
1492 (handle_gnu_v3_exceptions): Ditto.
1493 (trace_command): Ditto.
1494 (ftrace_command): Ditto.
1495 (strace_command): Ditto.
1496 (bkpt_print_mention): Add dprintf case.
1497 (create_breakpoint_sal_default): Add extra_string argument.
1498 (_initialize_breakpoint): Add new commands.
1499 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1500 * python/py-breakpoint.c (bppy_init): Ditto.
1501 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1503 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1505 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1507 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1509 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1512 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1514 Add a new function gdb.find_pc_line to the Python API.
1515 * NEWS (Python Scripting): Add entry about the new function.
1516 * python/python.c (gdbpy_find_pc_line): New function which
1517 implements gdb.find_pc_line.
1518 (GdbMethods): Add entry for the new function.
1520 2012-05-12 Pedro Alves <palves@redhat.com>
1522 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1523 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1525 2012-05-12 Eli Zaretskii <eliz@gnu.org>
1527 * inferior.c: Include completer.h
1528 (initialize_inferiors): Set completer of add-inferior to
1531 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1533 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1534 gdbarch_ptr_bit for x32 core dump.
1536 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1538 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1539 and features/i386/x32-avx-linux.c.
1541 2012-05-11 Stan Shebs <stan@codesourcery.com>
1542 Kwok Cheung Yeung <kcy@codesourcery.com>
1544 * NEWS: Describe new info os commands.
1545 * common/linux-osdata.c (PID_T, TIME_T): Define.
1546 (MAX_PID_T_STRLEN): New.
1547 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1549 (command_from_pid): Add comment. Change to use PID_T.
1550 (commandline_from_pid): Change to use PID_T.
1551 (user_from_pid): Add comment.
1552 (get_process_owner): Add comment. Change to use PID_T and
1554 (get_number_of_cpu_cores): Add comment.
1555 (get_cores_used_by_process): Add comment. Change to use PID_T and
1557 (linux_xfer_osdata_processes): Change to use PID_T and
1559 (compare_processes): New function.
1560 (linux_xfer_osdata_processgroups): New function.
1561 (linux_xfer_osdata_threads): Change to use PID_T.
1562 (linux_xfer_osdata_fds): New function.
1563 (format_socket_state, print_sockets): New functions.
1564 (union socket_addr): New union.
1565 (linux_xfer_osdata_isockets): New function.
1566 (time_from_time_t, group_from_gid): New functions.
1567 (linux_xfer_osdata_shm): New function.
1568 (linux_xfer_osdata_sem): New function.
1569 (linux_xfer_osdata_msg): New function.
1570 (linux_xfer_osdata_modules): New function.
1571 (osdata_table): Add new entries.
1572 * common/buffer.c (buffer_xml_printf): Add support for long and
1573 long long format specifiers.
1575 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1577 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1578 (tdesc_x32_avx_linux): Likewise.
1580 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1582 Implement multi-component --with-auto-load-dir.
1583 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1585 (--with-auto-load-safe-path): Update the default value description.
1586 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1588 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1589 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1590 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1591 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1592 "set auto-load scripts-directory".
1593 * config.in: Regenerate.
1594 * configure: Regenerate.
1595 * configure.ac (--with-auto-load-dir): New configure option.
1596 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1598 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1600 Provide $ddir substitution for --with-auto-load-safe-path.
1601 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1603 * auto-load.c: Include observer.h.
1604 (auto_load_safe_path_vec_update): Call substitute_path_component for
1605 each component. New variable ddir_subst.
1606 (auto_load_gdb_datadir_changed): New function.
1607 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1608 AUTO_LOAD_SAFE_PATH. New comment.
1609 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1610 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1611 * config.in: Regenerate.
1612 * configure: Regenerate.
1613 * configure.ac (--auto-load-safe-path): Rename
1614 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1615 GDB_DATADIR/auto-load.
1616 * defs.h (substitute_path_component): New declaration.
1617 * top.c: Include observer.h.
1618 (set_gdb_datadir): New function.
1619 (init_main): Install it for "set data-directory".
1620 * utils.c (substitute_path_component): New function.
1622 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1624 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1625 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1626 DEBUG_FILE_DIRECTORY. Handle multiple components of
1627 DEBUG_FILE_DIRECTORY.
1629 2012-05-10 Tom Tromey <tromey@redhat.com>
1631 * dwarf2read.c (recursively_write_psymbols): New function.
1632 (write_psymtabs_to_index): Use it.
1634 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1636 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1637 (load_partial_comp_unit): Update.
1638 (queue_comp_unit): Add argument 'pretend_language'.
1639 (process_queue): Update.
1640 (psymtab_to_symtab_1): Skip dependencies that have a user.
1641 (load_partial_comp_unit_reader): Give meaning to the 'data'
1643 (load_full_comp_unit): Add 'pretend_language' argument.
1644 (process_full_comp_unit): Add 'pretend_language' argument. Set
1646 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1648 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1649 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1651 (prepare_one_comp_unit): Add 'pretend_language' argument.
1653 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1654 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1655 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1656 (dw2_do_instantiate_symtab): Check whether symtab was read in
1658 (dw2_instantiate_symtab): Add assertion. Call
1659 process_cu_includes.
1660 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1661 (partial_symtab_p): New typedef.
1662 (set_partial_user): New function.
1663 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1664 (scan_partial_symbols): Add imported CU to imported_symtabs.
1665 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1666 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1667 (get_symtab, recursively_compute_inclusions)
1668 (compute_symtab_includes, process_cu_includes)
1669 (process_imported_unit_die): New functions.
1670 (process_die) <DW_TAG_imported_unit>: New case.
1671 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1673 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1675 (struct partial_die_info) <locdesc>: Remove.
1677 (process_psymtab_comp_unit): Add 'read_partial' argument.
1679 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1680 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1681 (add_partial_symbol): Update.
1682 (process_die): Handle DW_TAG_partial_unit.
1683 (read_file_scope): Update comment.
1684 (load_partial_dies): Handle DW_TAG_imported_unit.
1685 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1686 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1688 2012-05-10 Tom Tromey <tromey@redhat.com>
1690 * cc-with-dwz.sh: New file.
1692 2012-05-10 Tom Tromey <tromey@redhat.com>
1694 * symtab.h (struct symtab) <includes, user>: New fields.
1695 * block.h (struct block_iterator) <d, idx, which>: New fields.
1696 * block.c (initialize_block_iterator, find_iterator_symtab)
1697 (block_iterator_step, block_iter_name_step)
1698 (block_iter_match_step): New functions.
1699 (block_iterator_first, block_iterator_next)
1700 (block_iter_name_first, block_iter_name_next)
1701 (block_iter_match_first, block_iter_match_next): Rewrite.
1702 (get_block_symtab): New function.
1704 2012-05-10 Tom Tromey <tromey@redhat.com>
1706 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
1708 * jit.c (finalize_symtab): Use allocate_global_block,
1710 * buildsym.c (finish_block_internal): New function, from old
1712 (finish_block): Rewrite.
1713 (end_symtab): Use finish_block_internal, set_block_symtab.
1714 * block.h (struct global_block): New.
1715 (allocate_global_block, set_block_symtab): Declare.
1716 * block.c (allocate_global_block, set_block_symtab): New
1719 2012-05-10 Tom Tromey <tromey@redhat.com>
1721 * psymtab.c (partial_map_expand_apply): Add assertion.
1722 (partial_map_symtabs_matching_filename): Skip included psymtabs.
1723 (psymtab_to_symtab): Find unshared psymtab.
1724 (dump_psymtab): Print including psymtabs.
1725 (recursively_search_psymtabs): New function.
1726 (expand_symtabs_matching_via_partial): Use it.
1727 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
1729 (enum psymtab_search_status): New.
1731 2012-05-10 Tom Tromey <tromey@redhat.com>
1733 * tracepoint.c (scope_info): Update.
1734 * symtab.c (lookup_block_symbol, iterate_over_symbols)
1735 (find_pc_sect_symtab, search_symbols)
1736 (default_make_symbol_completion_list_break_on)
1737 (make_file_symbol_completion_list): Update.
1738 * symmisc.c (dump_symtab_1): Update.
1739 * stack.c (print_frame_args, iterate_over_block_locals)
1740 (print_frame_labels, iterate_over_block_arg_vars): Update.
1741 * python/py-block.c (block_object) <dict>: Remove.
1743 <iter>: Change type.
1744 (blpy_iter): Update.
1745 (blpy_block_syms_iternext): Update.
1746 * psymtab.c (map_block): Use block iterators.
1747 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
1748 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1749 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
1750 * infrun.c (check_exception_resume): Update.
1751 * cp-support.c (make_symbol_overload_list_block): Update.
1752 * coffread.c (patch_opaque_types): Update.
1753 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
1754 * block.h (struct block_iterator): New.
1755 (block_iterator_first, block_iterator_next, block_iter_name_first)
1756 (block_iter_name_next, block_iter_match_first)
1757 (block_iter_match_next): Declare.
1758 (ALL_BLOCK_SYMBOLS): Redefine.
1759 * block.c (block_iterator_first, block_iterator_next)
1760 (block_iter_name_first, block_iter_name_next)
1761 (block_iter_match_first, block_iter_match_next): New functions.
1762 * ada-lang.c (ada_add_block_symbols)
1763 (ada_make_symbol_completion_list): Use block iterator.
1765 2012-05-10 Tom Tromey <tromey@redhat.com>
1767 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
1768 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
1769 (lookup_partial_symbol, find_last_source_symtab_from_partial)
1770 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
1771 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
1774 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1776 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
1777 print-file-var-lib2.c, print-file-var-main.c and
1778 print-file-var.exp (located in gdb/testsuite/gdb.base).
1780 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1782 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1783 try locating the symbol in the symbol's own objfile first, before
1784 extending the search to all objfiles.
1785 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1786 out of lookup_symbol_aux_symtabs.
1787 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
1788 Replace extracted-out code by call to lookup_symbol_aux_objfile.
1789 Do not search EXCLUDE_OBJFILE.
1790 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
1791 (lookup_symbol_global): Search for matches in the block's objfile
1792 first, before searching all other objfiles.
1794 2012-05-10 Tristan Gingold <gingold@adacore.com>
1796 * printcmd.c (set_command): Add pre/post inc/dec.
1798 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
1800 * gdb.1: Document -ex option.
1802 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1804 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
1805 * inferior.h (AT_SYMBOL): Delete.
1807 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1809 * mips-tdep.c (mips_push_dummy_code): New function.
1810 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
1811 ON_STACK and install mips_push_dummy_code as our gdbarch
1812 push_dummy_code routine.
1814 2012-05-09 Pedro Alves <palves@redhat.com>
1816 * target.c (set_maintenance_target_async_permitted): Rename to ...
1817 (set_target_async_command): ... this.
1818 (show_maintenance_target_async_permitted): Rename to ...
1819 (show_target_async_command): ... this.
1820 (initialize_targets): Adjust.
1822 2012-05-08 Doug Evans <dje@google.com>
1824 * go-exp.y (classify_name): Add missing assignment of fields of
1827 2012-05-08 Eli Zaretskii <eliz@gnu.org>
1829 Display the ">" prompt in interactive mode while reading canned
1830 commands, even when the current interpreter is MI.
1832 * interps.c (interp_set_temp): New function.
1834 * interps.h (interp_set_temp): Add prototype.
1836 * cli/cli-script.c (restore_interp): New cleanup function.
1837 (read_command_lines): Temporarily override the current interpreter
1838 with CLI and arrange for restoring the original one.
1840 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
1842 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
1844 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
1846 * probe.c (parse_probes): Move conditional to check for
1847 debuginfo files from here...
1848 * stap-probe.c (stap_get_probes): ... to here.
1850 2012-05-07 Mark Kettenis <kettenis@gnu.org>
1851 H.J. Lu <hongjiu.lu@intel.com>
1853 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
1854 `movl %esp, %ebp' for the X32 ABI.
1856 2012-05-07 Tom Tromey <tromey@redhat.com>
1858 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
1860 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
1861 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
1862 (dwarf_stack_op_name): Remove.
1863 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
1864 (decode_locdesc): Use get_DW_OP_name.
1865 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
1866 (dwarf2_compile_expr_to_ax): Likewise.
1867 (disassemble_dwarf_expression): Likewise.
1868 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
1870 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
1872 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
1873 (sh_linux_sigtramp_cache): New function.
1874 (sh_linux_sigreturn_init): New function.
1875 (sh_linux_rt_sigreturn_init): New function.
1876 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
1878 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
1880 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
1881 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
1882 (sh_linux_init_abi): Add init calls to register new tramp_frame
1883 definitions under 32-bit SH, update comments.
1885 2012-05-07 Pedro Alves <palves@redhat.com>
1889 * amd64-linux-tdep.c: Include glibc-tdep.h.
1890 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
1891 gdbarch_skip_solib_resolver callback.
1893 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1895 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
1896 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
1897 (show_auto_load_safe_path): Check any-directory by comparison with "/".
1898 (add_auto_load_safe_path): Change the error message.
1899 (_initialize_auto_load): Change the "safe-path" help text.
1900 * configure: Regenerate
1901 * configure.ac (--without-auto-load-safe-path): Set
1902 WITH_AUTO_LOAD_SAFE_PATH to /.
1904 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
1906 * stap-probe.h: Do not include unecessary `probe.h'.
1908 2012-05-05 Alan Modra <amodra@gmail.com>
1910 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
1911 bfd_und_section_ptr.
1912 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
1913 and bfd_com_section_ptr.
1915 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1917 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
1919 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1921 * windows-nat.h (segment_register_p_ftype): New typedef.
1922 (windows_set_segment_register_p): Add declaration.
1923 * windows-nat.c (segment_register_p): New static global.
1924 (windows_set_segment_register_p): New function.
1925 (do_windows_fetch_inferior_registers): Add special handling
1926 for segment registers.
1927 * amd64-windows-nat.c: #include "amd64-tdep.h".
1928 (amd64_windows_segment_register_p): New function.
1929 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
1930 * i386-windows-nat.c: #include "i386-tdep.h".
1931 (i386_windows_segment_register_p): New function.
1932 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
1934 2012-05-04 Tristan Gingold <gingold@adacore.com>
1936 * printcmd.c (set_command): Emit a warning if the expression is not
1939 2012-05-03 Joel Brobecker <brobecker@adacore.com>
1941 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
1944 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
1946 * stap-probe.c (stap_is_operator): Change declaration.
1947 (stap_get_opcode): Change return value.
1948 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
1949 `stap_parse_argument_1'.
1951 2012-05-03 Pedro Alves <pedro@codesourcery.com>
1953 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
1956 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
1958 Add two new methods global_block and static_block to gdb.Symtab
1960 * NEWS (Python scripting): Add entry about the new methods.
1961 * python/py-symtab.c (stpy_global_block): New function which
1962 implements the gdb.Symtab.global_block() method.
1963 (stpy_static_block): New function which implements the
1964 gdb.Symtab.static_block() method.
1965 (symtab_object_methods): Add entries for the two new methods.
1967 2012-05-03 Doug Evans <dje@google.com>
1969 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
1972 2012-05-03 Yao Qi <yao@codesourcery.com>
1974 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
1976 (i386_process_record): Ditto.
1978 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1980 * infcall.c (unwind_on_signal_p): Make static.
1982 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1984 * sol-thread.c (solaris_pid_to_str): Make static.
1985 (_initialize_sol_thread): Add prototype.
1987 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1989 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
1991 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
1993 * MAINTAINERS: Remove myself.
1995 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1997 Fix --without-auto-load-safe-path for MS-Windows host platform.
1998 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
2000 2012-05-02 Eli Zaretskii <eliz@gnu.org>
2002 * gdb_curses.h: Undefine KEY_EVENT before including curses
2003 headers. Move "#undef MOUSE_MOVED" before any curses header
2006 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2008 * features/i386/i386-mmx-linux.c: Regenerate.
2009 * features/rs6000/powerpc-32.c: Likewise.
2010 * features/rs6000/powerpc-32l.c: Likewise.
2011 * features/rs6000/powerpc-403.c: Likewise.
2012 * features/rs6000/powerpc-403gc.c: Likewise.
2013 * features/rs6000/powerpc-405.c: Likewise.
2014 * features/rs6000/powerpc-505.c: Likewise.
2015 * features/rs6000/powerpc-601.c: Likewise.
2016 * features/rs6000/powerpc-602.c: Likewise.
2017 * features/rs6000/powerpc-603.c: Likewise.
2018 * features/rs6000/powerpc-604.c: Likewise.
2019 * features/rs6000/powerpc-64.c: Likewise.
2020 * features/rs6000/powerpc-64l.c: Likewise.
2021 * features/rs6000/powerpc-750.c: Likewise.
2022 * features/rs6000/powerpc-860.c: Likewise.
2023 * features/rs6000/powerpc-e500.c: Likewise.
2024 * features/rs6000/powerpc-e500l.c: Likewise.
2025 * features/rs6000/powerpc-isa205-32l.c: Likewise.
2026 * features/rs6000/powerpc-isa205-64l.c: Likewise.
2027 * features/rs6000/rs6000.c: Likewise.
2029 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2031 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
2033 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
2034 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
2035 (stap_parse_argument) <e>: Likewise.
2036 (handle_stap_probe) <byte_order>: Likewise.
2038 2012-04-30 Doug Evans <dje@google.com>
2040 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
2041 init_and_read_dies_worker. All callers updated.
2042 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
2043 replaced with init_cutu_and_read_dies.
2044 (load_partial_comp_unit): Pass 1 for use_existing_cu.
2045 (find_partial_die): Remove FIXME. Don't free current CU.
2047 2012-04-30 Sterling Augustine <saugustine@google.com>
2049 * contrib: New directory.
2050 * contrib/test_pubnames_and_indexes.py: New file.
2052 2012-04-30 Doug Evans <dje@google.com>
2054 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2055 All callers updated.
2056 (init_cu_die_reader): Verify the section is non-empty.
2057 (dwarf_decode_line_header): Don't dereference section->asection
2058 until we know the section is present.
2060 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
2062 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2065 2012-04-29 Yao Qi <yao@codesourcery.com>
2067 * gdb-code-style.el: New hook gdb-markup-hook
2068 and gdb-comment-hook.
2070 2012-04-28 Doug Evans <dje@google.com>
2072 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
2073 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2075 * symfile.h (dwarf2_debug_sections): New member addr.
2076 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2077 (ctx_no_get_addr_index): New function.
2078 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2079 (ctx_no_get_addr_index): Declare.
2080 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2081 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2082 (dwarf_expr_ctx_funcs): Update.
2083 (needs_get_addr_index): New function.
2084 (needs_frame_ctx_funcs): Update.
2085 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2086 * dwarf2read.c: #include "gdbcore.h".
2087 (dwarf2_per_objfile): New members addr, dwo_files.
2088 (dwarf2_elf_names): Add entry for addr.
2089 (struct dwo_section_names): New type.
2090 (dwo_section_names): New static global.
2091 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2092 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2093 old debug_types_section member updated to use this.
2094 Rename member debug_types_section to info_or_types_section,
2096 (signatured_type): Rename member type_offset to type_offset_in_tu,
2097 all uses updated. New member type_offset_in_section.
2098 (struct dwo_sections): New type.
2099 (struct dwo_unit): New type.
2100 (struct dwo_file): New type.
2101 (die_reader_specs): New member dwo_file.
2102 (dwarf2_locate_sections): Watch for .debug_addr.
2103 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2104 (dwarf2_read_section): Get bfd of section from bfd's asection,
2106 (create_cus_from_index): Initialize the_cu->info_or_types_section.
2107 (create_signatured_type_table_from_index): Initialize
2108 sig_type->info_or_types_section.
2109 (dw2_get_file_names): Statement lists for type units with DWO files
2110 live in the DWO file.
2111 (create_debug_types_hash_table): New function.
2112 (create_all_type_units): Rewrite.
2113 (init_cu_die_reader): New arg dwo_file, all callers updated.
2114 (init_and_read_dies_worker): Get section from
2115 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
2116 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2117 continue reading the CU/TU from there.
2118 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2119 updated. Get section from this_cu->info_or_types_section.
2120 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2121 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2122 DW_FORM_GNU_str_index.
2123 (hash_dwo_file, eq_dwo_file): New functions.
2124 (allocate_dwo_file_hash_table): New function.
2125 (hash_dwo_unit, eq_dwo_unit): New functions.
2126 (allocate_dwo_unit_table): New function.
2127 (dwarf2_locate_dwo_sections): New function.
2128 (struct create_dwo_info_table_data): New type.
2129 (create_debug_info_hash_table_reader): New function.
2130 (create_debug_info_hash_table): New function.
2131 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2132 (lookup_dwo_file): New function.
2133 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2134 (free_dwo_file, free_dwo_file_cleanup): New functions.
2135 (free_dwo_file_from_slot, free_dwo_files): New functions.
2136 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2137 (dwarf2_record_block_ranges): Ditto.
2138 (read_partial_die): Ditto.
2139 (process_enumeration_scope): Update to use type_offset_in_section.
2140 (read_full_die_1): New function.
2141 (read_full_die): Rewrite.
2142 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2143 DW_FORM_GNU_str_index.
2144 (read_addr_index_1, read_addr_index): New functions.
2145 (read_addr_index_from_leb128): New function.
2146 (struct dwarf2_read_addr_index_data): New type.
2147 (dwarf2_read_addr_index_reader): New function.
2148 (dwarf2_read_addr_index): New function.
2149 (read_str_index): New function.
2150 (leb128_size): New function.
2151 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2152 If processing a type unit from a DWO file, get the line section
2154 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2155 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2156 DW_FORM_GNU_str_index.
2157 (lookup_die_type): Check whether section offset of type's die is
2158 known before looking it up. Remove assert. Condition can
2159 legimately happen for inter-cu type references.
2160 (dwarf_attr_name): Handle Fission attributes.
2161 (dwarf_form_name): Handle Fission forms.
2162 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2163 DW_FORM_GNU_str_index.
2164 (follow_die_sig): Update to use type_offset_in_section.
2165 (decode_locdesc): New case DW_OP_GNU_addr_index.
2166 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2167 DW_FORM_GNU_str_index.
2168 (cu_debug_loc_section): New function.
2169 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2170 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2171 Free DWO files if present.
2172 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2174 Refactor DIE reading.
2175 * dwarf2read.c (dwarf2_per_objfile): Replace members
2176 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2177 (die_reader_specs): New member "die_section". Temporarily make
2178 member "buffer" non-const, pending constifying all info_ptr uses.
2179 (die_reader_func_ftype): New typedef.
2180 (dw2_get_file_names_reader): New function.
2181 (dw2_get_file_names): Rewrite.
2182 (read_and_check_type_unit_head): Rename arg type_offset to
2184 (create_all_type_units): Improve debugging message.
2185 Improve dummy type unit check.
2186 (init_cu_die_reader): New arg "section". All callers updated.
2187 (init_and_read_dies_worker): New function.
2188 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2189 (init_cutu_and_read_dies_no_follow): New function.
2190 (init_cutu_and_read_dies_simple): New function.
2191 (process_psymtab_comp_unit_reader): New function.
2192 (process_psymtab_comp_unit): Delete args section,
2193 is_debug_types_section. Rewrite. All callers updated.
2194 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2195 All callers updated. Rewrite.
2196 (load_partial_comp_unit_reader): New function.
2197 (load_partial_comp_unit): Rewrite.
2198 (skip_children): New arg reader. Delete args buffer, cu.
2199 All callers updated.
2200 (skip_one_die): New arg reader. Delete args buffer, cu.
2201 All callers updated.
2202 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2203 All callers updated.
2204 (load_full_comp_unit_reader): New function.
2205 (load_full_comp_unit): Rewrite.
2206 (read_comp_unit): Delete.
2207 (read_die_and_children_1): Delete, contents moved ...
2208 (read_die_and_children): ... here.
2209 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2210 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2211 All callers updated.
2212 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2213 All callers updated.
2214 (find_partial_die): Rewrite load_all_dies support.
2215 (read_attribute_value): New arg reader. Delete args abfd, cu.
2216 All callers updated.
2217 (read_attribute): New arg reader. Delete args abfd, cu.
2218 All callers updated.
2219 (load_full_type_unit): Add assert.
2220 (read_signatured_type_reader): New function.
2221 (read_signatured_type): Rewrite.
2222 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2223 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2224 All callers updated. Set per_cu->cu = NULL after freeing it.
2225 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2226 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2227 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2228 (set_die_type): Update.
2229 (get_die_type_at_offset): Update.
2230 (read_file_scope): Call prepare_one_comp_unit.
2231 (read_type_unit_scope): Ditto.
2232 (prepare_one_comp_unit): Set producer if present.
2234 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2236 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2237 gettext function on `error'.
2239 2012-04-27 Doug Evans <dje@google.com>
2241 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2244 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2245 Tom Tromey <tromey@redhat.com>
2247 * breakpoint.c (struct breakpoint_objfile_data)
2248 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2249 <exception_probes>: New fields.
2250 (free_breakpoint_probes): New function.
2251 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2252 `_Unwind_DebugHook'.
2253 (create_exception_master_breakpoint): Likewise.
2254 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2255 * infrun.c: Including necessary header files for handling SystemTap
2257 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2258 via SystemTap probes.
2259 (check_exception_resume): Remove `func' argument. Handle exception
2260 unwinding breakpoint set via a SystemTap probe.
2261 (insert_exception_resume_from_probe): New function.
2263 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2264 Tom Tromey <tromey@redhat.com>
2265 Jan Kratochvil <jan.kratochvil@redhat.com>
2267 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2268 (COMMON_OBS): Likewise.
2269 (HFILES_NO_SRCDIR): Add `probe'.
2270 * NEWS: Mention support for static and SystemTap probes.
2271 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2272 SystemTap probes' arguments parser.
2273 * arm-linux-tdep.c: Including headers needed to perform the parsing
2274 of SystemTap probes' arguments.
2275 (arm_stap_is_single_operand): New function.
2276 (arm_stap_parse_special_token): Likewise.
2277 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2278 probes' arguments parser.
2279 * ax-gdb.c (require_rvalue): Removing static declaration.
2280 (gen_expr): Likewise.
2281 * ax-gdb.h (gen_expr): Declaring function.
2282 (require_rvalue): Likewise.
2283 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2284 (bkpt_probe_breakpoint_ops): New variable.
2285 (momentary_breakpoint_from_master): Set the `probe' value.
2286 (add_location_to_breakpoint): Likewise.
2287 (break_command_1): Using proper breakpoint_ops according to the
2288 argument passed by the user in the command line.
2289 (bkpt_probe_insert_location): New function.
2290 (bkpt_probe_remove_location): Likewise.
2291 (bkpt_probe_create_sals_from_address): Likewise.
2292 (bkpt_probe_decode_linespec): Likewise.
2293 (tracepoint_probe_create_sals_from_address): Likewise.
2294 (tracepoint_probe_decode_linespec): Likewise.
2295 (tracepoint_probe_breakpoint_ops): New variable.
2296 (trace_command): Using proper breakpoint_ops according to the
2297 argument passed by the user in the command line.
2298 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2299 static probes on breakpoints and tracepoints.
2300 * breakpoint.h (struct bp_location) <probe>: New field.
2301 * cli-utils.c (skip_spaces_const): New function.
2302 (extract_arg): Likewise.
2303 * cli-utils.h (skip_spaces_const): Likewise.
2304 (extract_arg): Likewise.
2305 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2306 * configure.ac: Append `stap-probe.o' to be generated when ELF
2308 * configure: Regenerate.
2309 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2310 * elfread.c: Include `probe.h' and `arch-utils.h'.
2311 (probe_key): New variable.
2312 (elf_get_probes): New function.
2313 (elf_get_probe_argument_count): Likewise.
2314 (elf_evaluate_probe_argument): Likewise.
2315 (elf_compile_to_ax): Likewise.
2316 (elf_symfile_relocate_probe): Likewise.
2317 (stap_probe_key_free): Likewise.
2318 (elf_probe_fns): New variable.
2319 (elf_sym_fns): Add `sym_probe_fns' value.
2320 (elf_sym_fns_lazy_psyms): Likewise.
2321 (elf_sym_fns_gdb_index): Likewise.
2322 (_initialize_elfread): Initialize objfile cache for static
2324 * gdb_vecs.h (struct probe): New forward declaration.
2325 (probe_p): New VEC declaration.
2326 * gdbarch.c: Regenerate.
2327 * gdbarch.h: Regenerate.
2328 * gdbarch.sh (stap_integer_prefix): New variable.
2329 (stap_integer_suffix): Likewise.
2330 (stap_register_prefix): Likewise.
2331 (stap_register_suffix): Likewise.
2332 (stap_register_indirection_prefix): Likewise.
2333 (stap_register_indirection_suffix): Likewise.
2334 (stap_gdb_register_prefix): Likewise.
2335 (stap_gdb_register_suffix): Likewise.
2336 (stap_is_single_operand): New function.
2337 (stap_parse_special_token): Likewise.
2338 (struct stap_parse_info): Forward declaration.
2339 * i386-tdep.c: Including headers needed to perform the parsing
2340 of SystemTap probes' arguments.
2341 (i386_stap_is_single_operand): New function.
2342 (i386_stap_parse_special_token): Likewise.
2343 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2344 probes' arguments parser.
2345 * i386-tdep.h (i386_stap_is_single_operand): New function.
2346 (i386_stap_parse_special_token): Likewise.
2347 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2348 * mipsread.c (ecoff_sym_fns): Likewise.
2349 * objfiles.c (objfile_relocate1): Support relocation for static
2351 * parse.c (prefixify_expression): Remove static declaration.
2352 (initialize_expout): Likewise.
2353 (reallocate_expout): Likewise.
2354 * parser-defs.h (initialize_expout): Declare function.
2355 (reallocate_expout): Likewise.
2356 (prefixify_expression): Likewise.
2357 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2358 of SystemTap probes' arguments.
2359 (ppc_stap_is_single_operand): New function.
2360 (ppc_stap_parse_special_token): Likewise.
2361 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2362 probes' arguments parser.
2363 * probe.c: New file, for generic statically defined probe support.
2364 * probe.h: Likewise.
2365 * s390-tdep.c: Including headers needed to perform the parsing of
2366 SystemTap probes' arguments.
2367 (s390_stap_is_single_operand): New function.
2368 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2369 probes' arguments parser.
2370 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2371 * stap-probe.c: New file, for SystemTap probe support.
2372 * stap-probe.h: Likewise.
2373 * symfile.h: Include `gdb_vecs.h'.
2374 (struct sym_probe_fns): New struct.
2375 (struct sym_fns) <sym_probe_fns>: New field.
2376 * symtab.c (init_sal): Initialize `probe' field.
2377 * symtab.h (struct probe): Forward declaration.
2378 (struct symtab_and_line) <probe>: New field.
2379 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2381 (stop_tracing): Likewise.
2382 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2384 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2385 Tom Tromey <tromey@redhat.com>
2387 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2388 and to compile agent expressions.
2389 * infrun.c (siginfo_make_value): New argument `ignore'.
2390 (siginfo_funcs): New struct.
2391 (_initialize_infrun): New argument when calling
2392 `create_internalvar_type_lazy'.
2393 * thread.c (thread_id_make_value): New argument `ignore'.
2394 (thread_funcs): New struct.
2395 (_initialize_thread): New argument when calling
2396 `create_internalvar_type_lazy'.
2397 * tracepoint.c (sdata_make_value): New argument `ignore'.
2398 (sdata_funcs): New struct.
2399 (_initialize_tracepoint): New argument when calling
2400 `create_internalvar_type_lazy'.
2401 * value.c (make_value): New struct.
2402 (create_internalvar_type_lazy): New argument `data'.
2403 (compile_internalvar_to_ax): New function.
2404 (value_of_internalvar): Properly handling `make_value' case.
2405 (clear_internalvar): Likewise.
2406 (show_convenience): Adding `TRY_CATCH' block.
2407 * value.h (internalvar_make_value): Delete, replace by...
2408 (struct internalvar_funcs): ... this.
2409 (create_internalvar_type_lazy) <fun>: Delete argument.
2410 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2411 (compile_internalvar_to_ax): New function.
2412 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2413 (tlb_funcs): New struct.
2414 (_initialize_windows_tdep): New argument when calling
2415 `create_internalvar_type_lazy'.
2417 2012-04-27 Mark Wielaard <mjw@redhat.com>
2419 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2420 see whether it is an address or a constant offset from DW_AT_low_pc.
2421 (dwarf2_record_block_ranges): Likewise.
2422 (read_partial_die): Likewise.
2424 2012-04-26 Mark Wielaard <mjw@redhat.com>
2426 * MAINTAINERS (Write After Approval): Add myself to the list.
2428 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2430 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2431 (proc_prettyprint_signal): Likewise.
2432 (proc_prettyprint_faultset): Likewise.
2433 (proc_prettyprint_fault): Likewise.
2434 (proc_prettyprint_actionset): Likewise.
2435 (proc_prettyprint_flags): Move to new proc-flags.c section.
2436 (proc_prettyfprint_flags): New prototype.
2437 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2438 (proc_syscall, proc_cursig): Likewise.
2439 (proc_set_kill_on_last_close): Likewise.
2440 (proc_unset_kill_on_last_close): Likewise.
2441 (proc_set_watchpoint): Make static.
2442 (proc_delete_dead_threads): Likewise.
2443 (procfs_set_watchpoint): Likewise.
2444 (_initialize_procfs): Add prototype.
2445 * proc-events.c: Include proc-utils.h.
2446 (init_syscall_table): Make static.
2447 * proc-api.c (_initialize_proc_api): Add prototype.
2448 * proc-flags.c: Include proc-utils.h.
2450 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2452 * configure.ac: Add AC_ARG_PROGRAM.
2453 * configure: Regenerate.
2455 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2457 Fix DW_AT_lower_bound defaults for DWARF-4+.
2458 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2459 high. New variable low_default_is_valid. Implement DWARF-4+
2460 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2461 no default by the DWARF standard.
2463 2012-04-26 Maciej W. Rozycki <macro@mips.com>
2464 Maciej W. Rozycki <macro@codesourcery.com>
2466 * infrun.c (handle_inferior_event): Move the check for return
2467 trampolines ahead of the check for function trampolines.
2468 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2469 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2470 (mips_str_mips16_ret_stub): Likewise.
2471 (mips_str_call_fp_stub): Likewise.
2472 (mips_str_call_stub): Likewise.
2473 (mips_str_fn_stub): Likewise.
2474 (mips_str_pic): Likewise.
2475 (mips_in_frame_stub): New function.
2476 (mips_unwind_pc): Return the return address rather than the PC
2477 if the PC of an intermediate frame is inside a call thunk.
2478 (mips_is_stub_suffix): New function.
2479 (mips_is_stub_mode): Likewise.
2480 (mips_get_mips16_fn_stub_pc): Likewise.
2481 (mips_skip_mips16_trampoline_code): Update to handle all the
2482 currently generated stub types. Don't recurse into __fn_stub
2483 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2484 Use cooked register accesses.
2485 (mips_in_return_stub): Reintroduce function.
2486 (mips_skip_trampoline_code): Traverse trampolines recursively.
2487 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2489 2012-04-26 Joel Brobecker <brobecker@adacore.com>
2493 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2495 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2496 * features/arm-with-m-vfp-d16.xml: New file. Describes
2497 Cortex-M with VFPv4-sp-d16 FPU register layout.
2498 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2499 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2500 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2501 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2502 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2504 2012-04-25 Doug Evans <dje@google.com>
2506 * cli/cli-decode.c (print_doc_line): Use stream instead of
2509 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2511 * features/arm-with-iwmmxt.c: Regenerate.
2512 * features/arm-with-m-fpa-layout.c: Likewise.
2513 * features/arm-with-m.c: Likewise.
2514 * features/arm-with-neon.c: Likewise.
2515 * features/arm-with-vfpv2.c: Likewise.
2516 * features/arm-with-vfpv3.c: Likewise.
2517 * features/mips-dsp-linux.c: Likewise.
2518 * features/mips-linux.c: Likewise.
2519 * features/mips64-dsp-linux.c: Likewise.
2520 * features/mips64-linux.c: Likewise.
2521 * features/s390-linux32.c: Likewise.
2522 * features/s390-linux32v1.c: Likewise.
2523 * features/s390-linux32v2.c: Likewise.
2524 * features/s390-linux64.c: Likewise.
2525 * features/s390-linux64v1.c: Likewise.
2526 * features/s390-linux64v2.c: Likewise.
2527 * features/s390x-linux64.c: Likewise.
2528 * features/s390x-linux64v1.c: Likewise.
2529 * features/s390x-linux64v2.c: Likewise.
2530 * features/tic6x-c62x-linux.c: Likewise.
2531 * features/tic6x-c62x.c: Likewise.
2532 * features/tic6x-c64x-linux.c: Likewise.
2533 * features/tic6x-c64x.c: Likewise.
2534 * features/tic6x-c64xp-linux.c: Likewise.
2535 * features/tic6x-c64xp.c: Likewise.
2536 * target-descriptions.c: Only generate `field_type' and `type'
2537 variables when needed.
2539 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2541 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2543 2012-04-25 Doug Evans <dje@google.com>
2545 Initial pass at Go language support.
2547 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2549 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2550 (YYFILES): Add go-exp.c.
2551 (YYOBJ): Add go-exp.o.
2552 (local-maintainer-clean): Delete go-exp.c.
2553 * defs.h (enum language): Add language_go.
2554 * dwarf2read.c: #include "go-lang.h".
2555 (fixup_go_packaging): New function.
2556 (process_full_comp_unit): Call it when processing Go CUs.
2557 (dwarf2_physname): Add Go support.
2558 (read_file_scope): Handle missing language spec for GNU Go.
2559 (set_cu_language): Handle DW_LANG_Go.
2560 * go-exp.y: New file.
2561 * go-lang.h: New file.
2562 * go-lang.c: New file.
2563 * go-typeprint.c: New file.
2564 * go-valprint.c: New file.
2565 * symtab.c: #include "go-lang.h".
2566 (symbol_set_language): Handle language_go.
2567 (symbol_find_demangled_name, symbol_set_names): Ditto.
2568 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2570 2012-04-24 Jim Meyering <meyering@redhat.com>
2572 avoid a few strncpy-induced buffer overruns
2573 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2574 fname and psargs before trying to concatenate.
2575 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2576 "name" before applying strchr.
2578 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2580 * CONTRIBUTE: Use unified diff instead of context diff when
2583 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2585 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2586 code. Handle JR.HB correctly.
2588 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2591 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2592 with the other MIPS16 helpers.
2594 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2596 * observer.sh: Conditionally declare `args', thus cleaning up
2597 unused instances of this variable.
2599 2012-04-24 Yao Qi <yao@codesourcery.com>
2601 Revert this patch to allow breakpoint always-inserted
2603 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2604 * breakpoint.c: Include record.h.
2605 (breakpoints_always_inserted_mode): Return false when the record
2608 * breakpoint.c (iterate_over_bp_locations): New.
2609 * breakpoint.h: Declare.
2610 New typedef walk_bp_location_callback.
2611 * record.c (record_open): Call record_init_record_breakpoints.
2612 (record_sync_record_breakpoints): New.
2613 (record_init_record_breakpoints): New.
2614 * NEWS: Mention supporting breakpoint always-inserted mode in
2617 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2619 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2622 2012-04-24 Yao Qi <yao@codesourcery.com>
2624 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2625 (is_catchpoint): ... it.
2626 (print_one_breakpoint_location): Caller update.
2627 * breakpoint.h: Update declaration.
2629 2012-04-23 David S. Miller <davem@davemloft.net>
2631 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2633 2012-04-23 Tom Tromey <tromey@redhat.com>
2635 * buildsym.c (add_free_pendings): Remove.
2636 * buildsym.h (add_free_pendings): Remove.
2638 2012-04-23 Doug Evans <dje@google.com>
2640 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2641 attr.u.unsnd instead of attr.u.addr.
2642 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2643 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2645 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2646 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2648 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2650 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
2652 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2653 (mips_o32_return_value): Likewise.
2654 (mips_o64_return_value): Likewise.
2656 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
2658 * ada-lang.c (ada_evaluate_subexp): Add cases for
2659 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2660 their treatment in eval.c.
2662 2012-04-21 David S. Miller <davem@davemloft.net>
2664 * sparc-tdep.c (X_DISP10): Define.
2665 (sparc_analyze_control_transfer): Handle compare-and-branch.
2667 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
2669 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2670 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2672 2012-04-20 Nigel Stephens <nigel@mips.com>
2673 Maciej W. Rozycki <macro@codesourcery.com>
2675 * mips-tdep.c (mips_float_register_p): New function.
2676 (mips_convert_register_float_case_p): Use mips_float_register_p.
2677 (mips_register_type): Likewise.
2678 (mips_print_register): Likewise.
2679 (print_gp_register_row): Likewise.
2680 (mips_print_registers_info): Likewise.
2682 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
2684 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2687 2012-04-20 Andrew Pinski <apinski@cavium.com>
2689 * MAINTAINERS (Write After Approval): Add myself to the list.
2691 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2693 * MAINTAINERS: Update my e-mail address.
2695 2012-04-20 Pedro Alves <palves@redhat.com>
2697 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
2699 * configure: Regenerate.
2701 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2703 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
2705 * gdb_vecs.h: Declare `const_char_ptr' VEC.
2707 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2709 Fix compilation compatibility with python-2.4
2710 * python/py-type.c (convert_field): Cast ADDRSTRING for
2711 PyObject_SetAttrString as non-const. New comment.
2713 2012-04-19 Tom Tromey <tromey@redhat.com>
2715 * top.c (quit_target): Use all_cleanups.
2716 * main.c (captured_command_loop): Use all_cleanups.
2717 * exceptions.c (throw_exception): Use all_cleanups.
2719 2012-04-19 Pedro Alves <palves@redhat.com>
2721 * Makefile.in (GNULIB_BUILDDIR): New.
2722 (LIBGNU, INCGNU, GNULIB_H): Adjust.
2723 (SUBDIRS): Add $(GNULIB_BUILDDIR).
2724 (CLEANDIRS). Remove gnulib/import.
2725 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
2727 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
2728 (gnulib/import/Makefile): Replace gnulib/import with
2729 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
2730 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
2731 (aclocal_m4_deps): Remove the gnulib dependencies. Add
2732 acx_configure_dir.m4.
2733 * acinclude.m4: Include acx_configure_dir.m4.
2734 * acx_configure_dir.m4: New file.
2735 * aclocal.m4: Regenerate.
2736 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
2737 calls. Configure gnulib using ACX_CONFIGURE_DIR.
2738 (GNULIB): New variable.
2739 (GNULIB_STDINT_H): Adjust.
2740 (AC_OUTPUT): Don't output gnulib/Makefile.
2741 * gdb/defs.h: Include build-gnulib/config.h.
2742 * aclocal.m4: Regenerate.
2743 * config.in: Regenerate.
2744 * configure: Regenerate.
2746 * gnulib/Makefile.in: New file.
2747 * gnulib/configure.ac: New file.
2748 * gnulib/aclocal.m4: New file.
2749 * gnulib/config.in: New file.
2750 * gnulib/configure: New file.
2751 * gnulib/: Re-run gnulib-tool to adjust.
2753 2012-04-19 Doug Evans <dje@google.com>
2755 * cleanups.h (struct cleanup): Move to cleanups.c.
2756 (make_cleanup_dtor_ftype): New typedef.
2757 (make_cleanup_dtor): Use it.
2758 (ALL_CLEANUPS): Replace with ...
2759 (all_cleanups): ... this. Declare. All uses updated.
2760 * cleanups.c: #include "gdb_assert.h".
2761 (sentinel_cleanup): New static global.
2762 (SENTINEL_CLEANUP): Define.
2763 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
2764 (make_my_cleanup2): Assert result is non-NULL.
2765 (all_cleanups): New function.
2766 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
2769 2012-04-19 Pedro Alves <palves@redhat.com>
2771 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
2772 Adjust paths to gnulib imported files.
2774 2012-04-19 Pedro Alves <palves@redhat.com>
2776 * gnulib/: Move whole directory ...
2777 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
2778 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
2779 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
2780 (aclocal_m4_deps): Adjust.
2781 * aclocal.m4: Regenerate.
2782 * configure: Regenerate.
2783 * configure.ac: Adjust AC_OUTPUT output.
2785 2012-04-19 Yao Qi <yao@codesourcery.com>
2787 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
2789 * vec.c: Move it ...
2790 * common/vec.c: ... here.
2791 * vec.h: Move it ...
2792 * common/vec.h: ... here.
2794 2012-04-19 Yao Qi <yao@codesourcery.com>
2796 * gdb-code-style.el: New.
2798 2012-04-18 Pedro Alves <palves@redhat.com>
2800 Update gnulib from latest git.
2801 (639ea5ae15e39fe48d43e04864b2997301e4b969)
2803 * gnulib/Makefile.am: Update.
2804 * gnulib/dummy.c: Update.
2805 * gnulib/extra/arg-nonnull.h: Update.
2806 * gnulib/extra/c++defs.h: Update.
2807 * gnulib/extra/update-copyright: Update.
2808 * gnulib/extra/warn-on-use.h: Update.
2809 * gnulib/inttypes.in.h: Update.
2810 * gnulib/m4/00gnulib.m4: Update.
2811 * gnulib/m4/extensions.m4: Update.
2812 * gnulib/m4/gnulib-cache.m4: Update.
2813 * gnulib/m4/gnulib-common.m4: Update.
2814 * gnulib/m4/gnulib-comp.m4: Update.
2815 * gnulib/m4/gnulib-tool.m4: Update.
2816 * gnulib/m4/include_next.m4: Update.
2817 * gnulib/m4/inttypes-pri.m4: Update.
2818 * gnulib/m4/inttypes.m4: Update.
2819 * gnulib/m4/longlong.m4: Update.
2820 * gnulib/m4/memchr.m4: Update.
2821 * gnulib/m4/memmem.m4: Update.
2822 * gnulib/m4/mmap-anon.m4: Update.
2823 * gnulib/m4/multiarch.m4: Update.
2824 * gnulib/m4/onceonly.m4: Update.
2825 * gnulib/m4/stddef_h.m4: Update.
2826 * gnulib/m4/stdint.m4: Update.
2827 * gnulib/m4/string_h.m4: Update.
2828 * gnulib/m4/warn-on-use.m4: Update.
2829 * gnulib/m4/wchar_h.m4: Update.
2830 * gnulib/m4/wchar_t.m4: Update.
2831 * gnulib/m4/wint_t.m4: Update.
2832 * gnulib/memchr.c: Update.
2833 * gnulib/memmem.c: Update.
2834 * gnulib/stddef.in.h: Update.
2835 * gnulib/stdint.in.h: Update.
2836 * gnulib/str-two-way.h: Update.
2837 * gnulib/string.in.h: Update.
2838 * gnulib/wchar.in.h: Update.
2840 * gnulib/extra/arg-nonnull.h: Delete.
2841 * gnulib/extra/c++defs.h: Delete.
2842 * gnulib/extra/warn-on-use.h: Delete.
2843 * gnulib/m4/wchar_h.m4: Delete.
2844 * gnulib/m4/wint_t.m4: Delete.
2845 * gnulib/wchar.in.h: Delete.
2847 * gnulib/extra/snippets/arg-nonnull.h: New.
2848 * gnulib/extra/snippets/c++defs.h: New.
2849 * gnulib/extra/snippets/warn-on-use.h: New.
2851 * aclocal.m4: Regenerate.
2852 * config.in: Regenerate.
2853 * configure: Regenerate.
2854 * gnulib/Makefile.in: Regenerate.
2856 2012-04-18 Pedro Alves <palves@redhat.com>
2858 Reimport the update-copyright module from gnulib
2859 (250b80067c1e1d8faa0c42fb572f721975b929c5).
2861 * configure: Regenerate.
2862 * gnulib/Makefile.am: Update.
2863 * gnulib/Makefile.in: Regenerate.
2864 * gnulib/extra/update-copyright: Update.
2865 * gnulib/m4/gnulib-cache.m4: Update.
2866 * gnulib/m4/gnulib-comp.m4: Update.
2868 2012-04-18 Tristan Gingold <gingold@adacore.com>
2870 * configure.ac (aix): Put -lpthread into libs.
2871 * configure: Regenerate.
2873 2012-04-18 Tom Tromey <tromey@redhat.com>
2875 * linespec.c (convert_linespec_to_sals): Don't use
2877 (compare_msymbols): Arguments are minsym_and_objfile, not
2878 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
2880 2012-04-18 Pedro Alves <palves@redhat.com>
2882 Revert gnulib/ part of:
2883 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2884 Copyright year update in most files (performed by copyright.sh).
2886 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2888 Fix 64-bit constants on 32-bit hosts.
2889 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
2890 from unsigned long to ULONGEST.
2891 (read_signed_leb128): Change declaration return type from long to
2893 (dwarf2_const_value_attr): Change declaration parameter value from long
2895 (dwarf2_compute_name): Change variable value from long to LONGEST.
2896 (read_unsigned_leb128): Change return type, variable result and some
2897 casts from unsigned long to ULONGEST.
2898 (read_signed_leb128): Change return type, variable result and some
2899 casts from long to LONGEST.
2900 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
2901 value from long to LONGEST.
2902 (dwarf2_const_value): Change variable value from long to LONGEST.
2903 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
2904 plongest and hex_string.
2905 * symtab.h (struct general_symbol_info): Change ivalue from long to
2906 LONGEST, remove the comment.
2907 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
2908 Change SYMBOL_VALUE format strings to use plongest and hex_string.
2910 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
2913 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
2914 * ada-lang.c (ada_discrete_type_high_bound)
2915 (ada_discrete_type_low_bound): Fix function comment. Use
2916 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2917 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
2918 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2919 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
2920 Use TYPE_FIELD_ENUMVAL.
2921 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
2922 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2923 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
2924 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
2926 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
2927 * dwarf2read.c (process_enumeration_scope): Likewise.
2928 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
2930 (class StructMainTypePrettyPrinter): Support also
2931 FIELD_LOC_KIND_ENUMVAL.
2932 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
2934 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2935 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
2936 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
2937 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
2939 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
2940 accommodate enumval.
2941 (struct call_site): Adjust loc_kind to accommodate enumval.
2942 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
2943 (TYPE_FIELD_ENUMVAL): New macros.
2944 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
2945 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
2947 * p-typeprint.c (pascal_type_print_base): Likewise.
2948 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
2950 * python/lib/gdb/types.py (make_enum_dict): Likewise.
2951 * python/py-type.c (convert_field): New variable addrstring. Use
2952 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2953 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
2954 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
2955 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
2957 * valprint.c (generic_val_print): Likewise.
2959 2012-04-17 Doug Evans <dje@google.com>
2961 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
2963 * dwarf2read.c: Whitespace fixes.
2964 (lookup_signatured_type): Tweak comment.
2965 (get_die_type_at_offset): Fix comment.
2967 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2969 * xcoffread.c (xcoff_secnum_to_sections): New function.
2970 (secnum_to_section, secnum_to_bfd_section): Reimplement
2971 using xcoff_secnum_to_sections. Rename "secnum" parameter
2973 (RECORD_MINIMAL_SYMBOL): Delete.
2974 (record_minimal_symbol): New function.
2975 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
2976 by call to record_minimal_symbol and set misc_func_recorded
2977 to 1. Set last_csect_sec to the XCOFF section index instead
2978 of GDB's section_offset index. Update calls to
2979 prim_record_minimal_symbol_and_info to pass the BFD section
2982 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2984 * xcoffread.c (read_xcoff_symtab): Delete variables
2985 last_csect_val and last_csect_sec and associated code.
2987 2012-04-17 Doug Evans <dje@google.com>
2989 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
2990 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2991 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
2992 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
2994 * cleanups.h: New file.
2995 * cleanups.c: New file.
2996 * Makefile.in (SFILES): Add cleanups.c.
2997 (HFILES_NO_SRCDIR): Add cleanups.h.
2998 (COMMON_OBS): Add cleanups.o.
2999 * defs.h (struct cleanup): Moved to cleanups.h.
3000 (do_cleanups,do_final_cleanups): Ditto.
3001 (discard_cleanups,discard_final_cleanups): Ditto
3002 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3003 (save_cleanups,save_final_cleanups): Ditto.
3004 (restore_cleanups,restore_final_cleanups): Ditto.
3005 (null_cleanup): Ditto.
3006 (make_my_cleanup,make_my_cleanup2): Ditto.
3007 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3008 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
3009 (do_cleanups,do_final_cleanups): Ditto.
3010 (discard_cleanups,discard_final_cleanups): Ditto
3011 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3012 (save_cleanups,save_final_cleanups): Ditto.
3013 (restore_cleanups,restore_final_cleanups): Ditto.
3014 (null_cleanup): Ditto.
3015 (make_my_cleanup,make_my_cleanup2): Ditto.
3016 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3018 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
3020 (make_cleanup_dyn_string_delete): Ditto.
3021 (make_cleanup_ui_file_delete): Ditto.
3022 (make_cleanup_ui_out_redirect_pop): Ditto.
3023 (make_cleanup_free_section_addr_info): Ditto.
3024 (make_cleanup_restore_integer): Ditto.
3025 (make_cleanup_unpush_target): Ditto.
3026 (make_cleanup_value_free_to_mark): Ditto.
3027 (make_cleanup_value_free): Ditto.
3028 (make_cleanup_free_so): Ditto.
3030 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3032 New option "set debug auto-load".
3033 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
3034 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
3035 (auto_load_safe_path_vec_update)
3036 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
3038 (file_is_auto_load_safe): New parameters debug_fmt and ....
3039 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
3040 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
3041 caller by explanatory string.
3042 (_initialize_auto_load): Register "set debug auto-load".
3043 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
3045 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3046 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3047 by explanatory string.
3048 * main.c (captured_main): Likewise.
3049 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3050 (source_section_scripts): Likewise.
3052 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3054 New option "set auto-load safe-path".
3055 * NEWS: New commands "set auto-load safe-path"
3056 and "show auto-load safe-path".
3057 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3058 (auto_load_safe_path, auto_load_safe_path_vec)
3059 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3060 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3061 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3062 (source_gdb_script_for_objfile): New variable is_safe. Call
3063 file_is_auto_load_safe. Return if it is not.
3064 (struct loaded_script): New field loaded.
3065 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
3066 (print_script): Use LOADED indicator instead of FULL_PATH. Change
3067 output "Missing" to "No".
3068 (_initialize_auto_load): New variable cmd. Initialize
3069 auto_load_safe_path. Register "set auto-load safe-path",
3070 "show auto-load safe-path" and "add-auto-load-safe-path".
3071 * auto-load.h (maybe_add_script): Add parameter loaded.
3072 (file_is_auto_load_safe): New declaration.
3073 * config.in: Regenerate.
3074 * configure: Regenerate.
3075 * configure.ac: New parameters --with-auto-load-safe-path
3076 and --without-auto-load-safe-path.
3077 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3078 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3079 * main.c (captured_main): Check file_is_auto_load_safe for
3081 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3082 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
3083 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
3086 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3088 auto-load: Implementation.
3089 * NEWS: New descriptions for "info auto-load",
3090 "info auto-load gdb-scripts", "info auto-load python-scripts",
3091 "info auto-load local-gdbinit" and "info auto-load libthread-db".
3092 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3093 and "show auto-load-scripts". New description for "set auto-load",
3094 "show auto-load", "set auto-load gdb-scripts",
3095 "show auto-load gdb-scripts", "set auto-load python-scripts",
3096 "show auto-load python-scripts", "set auto-load local-gdbinit",
3097 "show auto-load local-gdbinit", "set auto-load libthread-db" and
3098 "show auto-load libthread-db".
3099 * auto-load.c: Remove include python/python-internal.h. Add includes
3100 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3102 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3103 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3104 (gdbpy_global_auto_load): Rename to ...
3105 (global_auto_load): ... here.
3106 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3107 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3108 (script_language_gdb, source_gdb_script_for_objfile): New.
3109 (struct loaded_script): New field language.
3110 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3112 (maybe_add_script): Add parameter language. Drop redundant
3113 entry.full_path initialization. Initialize entry.language and
3115 (auto_load_objfile_script): Change parameter suffix to language.
3116 Remove the call of maybe_add_script.
3117 Call language->source_script_for_objfile.
3118 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3120 (collect_matching_scripts): Adjust it for
3121 struct collect_matching_scripts_data.
3122 (auto_load_info_scripts_pattern_nl): New variable.
3123 (info_auto_load_scripts): Rename to ...
3124 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3125 for struct collect_matching_scripts_data.
3126 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3127 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3128 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3129 (auto_load_info_cmdlist_get): New.
3130 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3131 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3132 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3133 "info auto-load local-gdbinit".
3134 * auto-load.h (struct script_language): New.
3135 (gdbpy_global_auto_load): Rename to ...
3136 (global_auto_load): ... here.
3137 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3138 (auto_load_local_gdbinit_loaded): New declarations.
3139 (maybe_add_script): New parameter language.
3140 (auto_load_objfile_script): Change parameter suffix to language.
3141 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3142 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3143 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3145 * linux-thread-db.c: Include auto-load.h and ctype.h.
3146 (auto_load_thread_db, show_auto_load_thread_db): New.
3147 (struct thread_db_info): New field filename.
3148 (delete_thread_db_info): Call xfree for FILENAME.
3149 (try_thread_db_load): Initialize FILENAME.
3150 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3151 if !AUTO_LOAD_THREAD_DB.
3152 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3153 (_initialize_thread_db): Install auto_load_thread_db
3154 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3155 as "info auto-load libthread-db".
3156 * main.c (captured_main): Rename gdbpy_global_auto_load to
3157 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3158 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3159 (print_gdb_help): Extend the help for 'local init file'.
3160 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3161 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3162 (auto_load_scripts): Rename to ...
3163 (auto_load_python_scripts): ... here, update the comment.
3164 (gdbpy_load_auto_script_for_objfile): New declaration.
3165 (show_auto_load_python_scripts, script_language_python)
3166 (gdbpy_load_auto_script_for_objfile): New.
3167 (source_section_scripts): Refactor the code.
3168 (load_auto_scripts_for_objfile): Rename to ...
3169 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3170 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3171 (info_auto_load_python_scripts): New.
3172 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3173 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3174 Register "set auto-load-scripts" as its deprecated alias. Register
3175 "info auto-load python-scripts". Register "info auto-load-scripts" as
3176 its deprecated alias.
3177 (load_auto_scripts_for_objfile): Rename to ...
3178 (gdbpy_load_auto_scripts_for_objfile): ... here.
3179 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3180 (gdbpy_load_auto_scripts_for_objfile): ... here.
3182 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3184 auto-load: Move files.
3185 * Makefile.in (SFILES): Add auto-load.c.
3186 (HFILES_NO_SRCDIR): Add auto-load.h.
3187 (COMMON_OBS): Add auto-load.o.
3188 (distclean): Change .gdbinit for gdb-gdb.gdb.
3189 * auto-load.c: New file, with parts from python/py-auto-load.c.
3190 * auto-load.h: New file, with parts from python/python.h.
3191 * configure: Regenerate.
3192 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3193 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3194 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3195 * main.c: Include auto-load.h.
3196 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3197 command.h, observer.h and progspace.h to auto-load.c. Add include
3199 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3200 (struct loaded_script, auto_load_pspace_data)
3201 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3202 (hash_loaded_script_entry, eq_loaded_script_entry)
3203 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3204 (maybe_add_script): Move to auto-load.c.
3205 (source_section_scripts): Change maybe_add_script parameters passing,
3206 use script_not_found_warning_print.
3207 (clear_section_scripts, auto_load_objfile_script)
3208 (auto_load_new_objfile, loaded_script_ptr)
3209 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3210 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3211 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3212 auto_load_new_objfile and info_auto_load_scripts initizations to
3214 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3216 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3219 * charset.c (find_charset_names): Remove variables ix and elt.
3220 Use free_char_ptr_vec.
3221 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3222 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3223 debugdir_end. New variable debugdir_len.
3224 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3225 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3227 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3228 and elt. Use free_char_ptr_vec.
3229 * source.c (add_path): Remove variables argv, arg and argv_index.
3230 New variables dir_vec, back_to, ix and name.
3231 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3232 make_cleanup_freeargv. Remove variable separator. Simplify the code
3233 no longer expecting DIRNAME_SEPARATOR.
3234 (openp): Remove variable p, p1 and len. New variables dir_vec,
3235 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3236 no longer expecting DIRNAME_SEPARATOR.
3237 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3238 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3240 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3241 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3242 (dirnames_to_char_ptr_vec): New functions.
3244 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3247 * source.c (add_path): Remove always true conditional 'p == 0' and
3248 unindent its code block.
3250 2012-04-17 Pedro Alves <palves@redhat.com>
3252 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3253 (FIELD_BITPOS_LVAL): ... this.
3254 (FIELD_BITPOS): New.
3255 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3256 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3257 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3259 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3261 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3262 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3263 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3266 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3268 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3269 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3270 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3271 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3272 * jv-lang.c (java_link_class_type): Likewise, once.
3273 * stabsread.c (read_enum_type): Likewise.
3275 2012-04-16 Yao Qi <yao@codesourcery.com>
3277 * common/agent.c (agent_run_command): Add one more parameter `len'.
3279 * common/agent.h: Update declaration.
3280 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3282 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3284 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3287 * value.c (value_actual_type): New function.
3288 * value.h (value_actual_type): New declaration.
3289 * varobj.c (update_type_if_necessary): New function.
3290 (varobj_create): Call value_actual_type instead of
3292 (install_dynamic_child): distinct changed and type changed MI variable
3294 (update_dynamic_varobj_children): Updated for install_dynamic_child
3295 change. All callers updated.
3296 (varobj_update): Support for MI variable object type change if
3297 the value changed and RTTI is used to determine the type.
3298 (create_child_with_value): Call value_actual_type instead of
3300 (adjust_value_for_child_access): Extended with a new parameter which
3301 specify whether the given value should be casted to enclosing type.
3302 All callers updated.
3304 2012-04-14 Yao Qi <yao@codesourcery.com>
3306 Import gnulib module inttypes from git
3307 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3308 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3309 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3310 gnulib/m4/inttypes-pri.m4
3311 * aclocal.m4, config.in, configure: Regenerated.
3312 * gnulib/Makefile.am: Update.
3313 * gnulib/Makefile.in: Update.
3314 * gnulib/m4/gnulib-cache.m4: Update.
3315 * gnulib/m4/gnulib-comp.m4: Update.
3316 * gnulib/inttypes.in.h: New.
3317 * gnulib/m4/inttypes-pri.m4: New.
3318 * gnulib/m4/inttypes.m4: New.
3320 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
3322 * infrun.c (resume): Update PC address to the real PC after
3323 preparing to do displaced stepping.
3325 2012-04-12 Doug Evans <dje@google.com>
3327 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3328 All callers updated.
3330 2012-04-12 Mark Kettenis <kettenis@gnu.org>
3332 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3334 2012-04-12 Doug Evans <dje@google.com>
3336 * dwarf2read.c (create_all_type_units): Renamed from
3337 create_debug_types_hash_table. All callers updated.
3339 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3340 local type_sig to sig_type, type_offset to type_offset_in_tu.
3341 (hash_signatured_type): Renamed from hash_type_signature,
3342 all callers updated.
3343 (eq_signatured_type): Renamed from eq_type_signature,
3344 all callers updated.
3345 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3346 (process_enumeration_scope): Ditto.
3347 (lookup_signatured_type_at_offset): Ditto.
3348 (load_full_type_unit, read_signatured_type): Ditto.
3350 2012-04-12 Yao Qi <yao@codesourcery.com>
3352 * remote.c (async_remote_interrupt): Correct function name in
3354 (async_remote_interrupt_twice): Ditto.
3356 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3358 * source.c (find_and_open_source): Consistently pass resulting
3359 full path through xfullpath.
3361 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3363 Provide more specific displaced-stepping memory error message.
3364 * infrun.c (displaced_step_prepare): New variable status. Call
3365 target_read_memory instead of read_memory, provide more specific
3368 2012-04-11 Tristan Gingold <gingold@adacore.com>
3371 * darwin-nat.c (darwin_execvp): Revert previous patch.
3373 2012-04-11 Tristan Gingold <gingold@adacore.com>
3376 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3379 2012-04-11 Tristan Gingold <gingold@adacore.com>
3381 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3384 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3386 New command 'explore' which helps explore values and types in
3388 * NEWS: Add an entry about the new 'explore' command.
3389 * data-directory/Makefile.in: Add gdb/command/explore.py
3390 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3391 command using the GDB Python API.
3393 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3395 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3396 extension in jump target calculation.
3398 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3400 * mips-tdep.c (mips32_next_pc): Handle JALX.
3402 2012-04-10 Yao Qi <yao@codesourcery.com>
3404 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3406 2012-04-10 Yao Qi <yao@codesourcery.com>
3408 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3409 and gnulib/m4/gnulib-tool.m4.
3411 2012-04-10 Doug Evans <dje@google.com>
3413 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3414 (load_partial_dies): Clarify comment.
3415 (find_partial_die): Support rereading type units.
3416 Clarify CU handling, if we know offset is in CU, don't search for the
3417 containing CU. Add comment regarding memory waste.
3419 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3421 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3422 i386/x32-avx and i386/x32-avx-linux.
3423 (i386/x32-expedite): New.
3424 (i386/x32-linux-expedite): Likewise.
3425 (i386/x32-avx-expedite): Likewise.
3426 (i386/x32-avx-linux-expedite): Likewise.
3427 ($(outdir)/i386/x32.dat): Likewise.
3428 ($(outdir)/i386/x32-linux.dat): Likewise.
3429 ($(outdir)/i386/x32-avx.dat): Likewise.
3430 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3432 * features/i386/x32-avx-linux.xml: New file.
3433 * features/i386/x32-avx.xml: Likewise.
3434 * features/i386/x32-core.xml: Likewise.
3435 * features/i386/x32-linux.xml: Likewise.
3436 * features/i386/x32.xml: Likewise.
3438 * features/i386/x32-avx-linux.c: New. Generated.
3439 * features/i386/x32-avx.c: Likewise.
3440 * features/i386/x32-linux.c: Likewise.
3441 * features/i386/x32.c: Likewise.
3442 * regformats/i386/x32-avx-linux.dat: Likewise.
3443 * regformats/i386/x32-avx.dat: Likewise.
3444 * regformats/i386/x32-linux.dat: Likewise.
3445 * regformats/i386/x32.dat: Likewise.
3447 2012-04-10 Tristan Gingold <gingold@adacore.com>
3449 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3450 code to kill the inferior.
3452 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3454 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3456 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3458 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3459 (yyvsp): New defines.
3460 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3462 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3464 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3466 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3468 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3471 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3473 * sparc64-tdep.c (sparc64_store_arguments)
3474 (sparc64_store_arguments): Fix coding style.
3476 2012-04-07 Mark Kettenis <kettenis@gnu.org>
3478 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3479 complex floats, adjust some related comments and tighten a related
3481 (sparc64_extract_return_value): Handle complex floats.
3483 2012-04-07 Doug Evans <dje@google.com>
3485 * dwarf2read.c (load_partial_dies): Change condition to assert.
3487 2012-04-06 Doug Evans <dje@google.com>
3489 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3492 2012-04-05 Kevin Buettner <kevinb@redhat.com>
3494 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3496 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3497 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3500 2012-04-05 Keith Seitz <keiths@redhat.com>
3502 * linespec.c (decode_compound): Remove.
3503 (enum offset_relative_sign): New enum.
3504 (struct line_offset): New struct.
3505 (struct linespec): New struct.
3506 (struct linespec_state): Move file_symtabs,
3507 user_filename, and user_function into struct linespec.
3508 Make result an anonymous struct holding vectors of
3509 symbolp and minsym_and_objfile_d.
3510 Add language member.
3511 (enum ls_token_type): New enum.
3512 (linespec_keywords): New array.
3513 (struct ls_token): New struct.
3514 (struct ls_parser): New struct.
3515 (linespec_lexer_lex_number): New function.
3516 (linespec_lexer_lex_keyword): New function.
3517 (is_ada_operator): New function.
3518 (skip_quote_char): New function.
3519 (copy_token_string): New function.
3520 (is_closing_quote_enclosed): New function.
3521 (find_parameter_list_end): New function.
3522 (linespec_lexer_lex_string): New function.
3523 (linespec_lexer_lex_one): New function.
3524 (linespec_lexer_consume_token): New function.
3525 (linespec_lexer_peek_token): New function.
3526 (cplusplus_error): Remove unused function.
3527 (find_methods): Update comment.
3528 (find_toplevel_char): Return const.
3529 (is_objc_method_format): Remove unused function.
3530 (find_toplevel_string): New function.
3531 (is_linespec_boundary): Remove.
3532 (symbol_not_found_error): New function.
3533 (find_method_overload_end): Remove function.
3534 (unexpected_linespec_error): New function.
3535 (keep_name_info): Remove.
3536 (linespec_parse_line_offset): New function.
3537 (linespec_parse_basic): New function.
3538 (canonicalize_linespec): New function.
3539 (decode_line_internal): Remove.
3540 (create_sals_line_offset): New function adapted from
3542 (convert_linespec_to_sals): New function.
3543 (parse_linespec): New function.
3544 (linespec_parser_new): New function.
3545 (linespec_state_destructor): Change parameter type to
3546 struct linespec_state *.
3547 Add language parameter.
3548 Remove freeing of moved members.
3549 (linespec_parser_delete): New function.
3550 (decode_line_full): Use parse_linespec and linespec_parser_new.
3551 (decode_line_1): Likewise.
3552 (decode_indirect): Rename to ...
3553 (linespec_expression_to_pc): ... this and rewrite
3554 to simply find CORE_ADDR, storing this result for later
3556 (locate_first_half): Remove.
3557 (deocde_objc): Add parameter LS.
3558 Initialize new struct collect_info members.
3559 Handle minimal symbols, too.
3560 (decode_compound): Delete.
3561 (lookup_prefix_sym): Rewrite.
3562 (compare_msymbols): New function.
3563 (find_method): Rewrite.
3564 Do not call cplusplus_error.
3565 (symtabs_from_filename): Rewrite.
3566 (collect_function_symbols): Delete.
3567 (find_function_symbols): Rewrite without ARGPTR-style
3569 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3570 (decode_dollar): Adapted and renamed to ...
3571 (linespec_parse_variable): ... this.
3572 (find_linespec_symbols): New function.
3573 (decode_label): Adapted and renamed to ...
3574 (find_label_symbols): ... this.
3575 (decode_digits_list_mode): Add and use LS argument.
3576 (decode_digits_ordinary): Likewise.
3577 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3578 If in list mode, allow any symbol class. Otherwise, only
3579 permit LOC_BLOCK symbols.
3580 (minsym_found): Update comments.
3581 (search_minsyms_for_name): Do not convert the matching symbol
3582 into a SAL. Simply push the symbol and objfile into the
3584 (decode_variable): Delete. Contents adapted into
3585 find_linespec_symbols.
3587 * cp-support.c (SKIP_SPACE): Remove.
3588 (operator_tokens): Remove unused global.
3589 (cp_validate_operator): Remove.
3590 * cp-support.h (cp_validate_operator): Remove declaration.
3592 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3594 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3595 for TYPE_VPTR_FIELDNO.
3596 * valprint.c (valprint_check_validity): Make it global, move the
3597 function comment ...
3598 * value.h (valprint_check_validity): ... to this new declaration.
3600 2012-04-02 Tristan Gingold <gingold@adacore.com>
3602 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3603 the STATE32 api for i386 state.
3604 (i386_darwin_store_inferior_registers): Likewise.
3606 2012-04-02 Tristan Gingold <gingold@adacore.com>
3608 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3610 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3613 2012-04-02 Tristan Gingold <gingold@adacore.com>
3616 * darwin-nat.c (darwin_execvp): Set binary preference.
3618 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3620 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3622 2012-03-30 Tom Tromey <tromey@redhat.com>
3624 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3625 of TRY_CATCH. Fix error handling.
3626 * python/py-value.c (convert_value_from_python): Move 'old'
3627 declaration to innermost scope.
3629 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3630 Andrey Smirnov <andrew.smirnov@gmail.com>
3632 -Wshadow warning fix.
3633 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3634 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3635 Adjust code accordingly.
3637 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3639 * ada-lang.c (symbol_completion_add): Rename parameter
3640 "encoded" into "encoded_p". Ajust code and documentation
3643 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3644 Andrey Smirnov <andrew.smirnov@gmail.com>
3646 -Wshadow warning fix.
3647 * ada-lang.c (symbol_completion_add): Rename parameter
3648 "wild_match" into wild_match_p. Update code and documentation
3651 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3653 * ada-lang.c (symbol_completion_match): Rename parameter
3654 "encoded" into "encoded_p". Ajust code and documentation
3657 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3658 Andrey Smirnov <andrew.smirnov@gmail.com>
3660 -Wshadow warning fix.
3661 * ada-lang.c (symbol_completion_match): Rename parameter
3662 "wild_match" into "wild_match_p". Adjust code and function
3663 documentation accordingly.
3665 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3666 Andrey Smirnov <andrew.smirnov@gmail.com>
3668 -Wshadow warning fix.
3669 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3670 "symbol_info" into "info". Adjust code accordingly.
3671 (ada_lookup_symbol): Likewise.
3673 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3675 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3676 of this function's documentation.
3678 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3679 Andrey Smirnov <andrew.smirnov@gmail.com>
3681 -Wshadow warning fix.
3682 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3683 variable into "wild_match_p". Adjust code accordingly.
3685 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3686 Andrey Smirnov <andrew.smirnov@gmail.com>
3688 -Wshadow warning fix.
3689 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3690 parameter into "wild_match_p". Adjust code accordingly.
3691 Document this parameter in the function description.
3693 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3694 Andrey Smirnov <andrew.smirnov@gmail.com>
3696 -Wshadow warning fix.
3697 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
3698 "wild_match" parameter to "wild_match_p" (-Wshadow).
3700 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3702 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
3703 in function documentation.
3705 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3706 Andrey Smirnov <andrew.smirnov@gmail.com>
3708 -Wshadow warning fix.
3709 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
3710 variable into wild_match_p. Adjust code accordingly.
3712 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3713 Andrey Smirnov <andrew.smirnov@gmail.com>
3715 * ada-valprint.c (ada_val_print_1): Move the code handling
3716 TYPE_CODE_ENUM inside its own lexical block. Declare
3717 variables len and val there, instead of in the function's
3718 top level block. Avoid declaring deref_val again in a way
3719 that shadows another variable of the same name declared
3720 in one of the up-level blocks. Just re-use the up-level
3723 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3725 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
3726 Replace block_found argument by symbol_info. Adjust
3727 implementation accordingly. Add function documentation.
3728 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
3730 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
3731 * ada-exp.y (write_object_renaming): Adjust to new
3732 ada_lookup_encoded_symbol API.
3734 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3736 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
3739 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
3741 * v850-tdep.c: Add the enum values for mpu and fpu registers.
3742 (v850_register_name): Add the mpu and fpu register names.
3743 (v850e_register_name): Add the mpu and fpu register names.
3744 (v850e2_register_name): New function.
3745 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
3748 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3750 * NEWS: Add entry for Ada varobj support.
3752 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3754 * varobj.c (default_value_is_changeable_p): New function,
3755 extracted from varobj_value_is_changeable_p. Add declaration.
3756 (ada_value_is_changeable_p): New function, extracted from
3757 varobj_value_is_changeable_p. Add declaration.
3758 (struct language_specific): New field "value_is_changeable_p".
3759 (languages): Add entries for new field.
3760 (varobj_create): Set language before calling install_new_value.
3761 (varobj_value_is_changeable_p): Reimplement to call the varobj's
3762 "value_is_changeable_p" language callback.
3764 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3766 * ada-varobj.h, ada-varobj.c: New files.
3767 * Makefile.in (SFILES): Add ada-varobj.c.
3768 (HFILES_NO_SRCDIR): Add ada-varobj.h.
3769 (COMMON_OBS): Add ada-varobj.o.
3771 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3773 * varobj.c (ada_value_has_mutated): Add declaration. New function.
3774 (struct language_specific): New field "value_has_mutated".
3775 (languages): Set field "value_has_mutated" in each entry of array.
3776 (varobj_value_has_mutated): New function.
3777 (varobj_udpdate): Add handling of type mutation.
3778 (value_of_root): Add handling of type mutation.
3779 (ada_value_has_mutated): New function.
3781 2012-03-28 Pedro Alves <palves@redhat.com>
3783 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
3784 Always supply $fr0 as 0.0 and $fr1 as 1.0.
3786 2012-03-28 Tom Tromey <tromey@redhat.com>
3788 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
3789 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
3792 2012-03-28 Tom Tromey <tromey@redhat.com>
3794 * .dir-locals.el: New file.
3796 2012-03-28 Pedro Alves <palves@redhat.com>
3798 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
3800 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3802 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
3805 2012-03-27 Pedro Alves <palves@redhat.com>
3807 Eliminate struct ui_stream.
3809 * ui-out.h (struct ui_stream): Delete.
3810 (ui_out_field_stream): Adjust prototype.
3811 (ui_out_stream_new, ui_out_stream_delete)
3812 (make_cleanup_ui_out_stream_delete): Delete declarations.
3813 * ui-out.c (ui_out_field_stream): Change prototype to take a
3814 ui_file instead of a ui_stream. Adjust.
3815 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
3816 (make_cleanup_ui_out_stream_delete): Delete.
3817 * breakpoint.c (print_breakpoint_location)
3818 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
3819 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3820 * disasm.c (dump_insns): Ditto.
3821 (do_mixed_source_and_assembly, do_assembly_only): Adjust
3823 (gdb_disassembly): Use ui_file/mem_fileopen instead of
3824 ui_stream/ui_out_stream_new.
3825 * infcmd.c (print_return_value): Ditto.
3826 * osdata.c (info_osdata_command): Don't allocate a local
3828 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
3829 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3830 * tracepoint.c (print_one_static_tracepoint_marker): Don't
3831 allocate a local ui_stream.
3832 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
3833 instead of ui_stream/ui_out_stream_new.
3834 (list_args_or_locals): Don't allocate a local ui_stream.
3835 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
3836 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
3837 ui_stream/ui_out_stream_new.
3838 * cli/cli-setshow.c (do_setshow_command): Ditto.
3840 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
3842 * arm-linux-tdep.c (arm_linux_init_abi): Call
3843 set_gdbarch_process_record. Initialize `arm_swi_record' field.
3844 * arm-tdep.c (arm_process_record): New function.
3845 (deallocate_reg_mem): New function.
3846 (decode_insn): New function.
3847 (thumb_record_branch): New function.
3848 (thumb_record_ldm_stm_swi(): New function.
3849 (thumb_record_misc): New function.
3850 (thumb_record_ld_st_stack): New function.
3851 (thumb_record_ld_st_imm_offset): New function.
3852 (thumb_record_ld_st_reg_offset(): New function.
3853 (thumb_record_add_sub_cmp_mov): New function.
3854 (thumb_record_shift_add_sub): New function.
3855 (arm_record_coproc_data_proc): New function.
3856 (arm_record_coproc): New function.
3857 (arm_record_b_bl): New function.
3858 (arm_record_ld_st_multiple): New function.
3859 (arm_record_ld_st_reg_offset): New function.
3860 (arm_record_ld_st_imm_offset): New function.
3861 (arm_record_data_proc_imm): New function.
3862 (arm_record_data_proc_misc_ld_str): New function.
3863 (arm_record_extension_space): New function.
3864 (arm_record_strx): New function.
3865 (sbo_sbz): New function.
3866 (struct insn_decode_record): New structure for arm insn record.
3867 (REG_ALLOC): New macro for reg allocations.
3868 (MEM_ALLOC): New macro for memory allocations.
3869 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
3871 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
3873 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
3874 (store_register): Likewise.
3876 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3878 * MAINTAINERS (Write After Approval): Add myself to the list.
3880 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3882 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
3883 Describe also the option "auto".
3885 2012-03-22 Richard Henderson <rth@redhat.com>
3887 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
3888 * sparc-nat.c (sparc_xfer_wcookie): Make static.
3890 2012-03-22 Richard Henderson <rth@redhat.com>
3892 * jit.c (jit_read_code_entry): Compute alignment and offset of
3893 int64_t member before computing entry_size.
3895 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3897 Python scripting: Add new method Value.referenced_value to
3898 gdb.Value which can dereference pointer as well as reference
3900 * NEWS: Add entry under 'Python scripting' about the new method
3901 Value.referenced_value on gdb.Value objects.
3902 * python/py-value.c (valpy_referenced_value): New function
3903 defining a new method on gdb.Value objects which can dereference
3904 pointer and reference values.
3906 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3908 * MAINTAINERS (Write After Approval): Add myself to the list.
3910 2012-03-21 Kevin Buettner <kevinb@redhat.com>
3912 * symtab.c (skip_prologue_sal): Change test to check for "main()"
3913 in addition to "main".
3915 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3917 * expression.h (op_name): Add declaration.
3918 * expprint.c (op_name): Remove declaration. Make non-static.
3919 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
3921 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
3923 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
3925 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
3926 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3927 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
3928 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
3929 (linux_nat_get_siginfo): Likewise.
3930 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
3931 (linux_nat_get_siginfo): Likewise.
3932 * linux-tdep.c (linux_get_siginfo_type): Likewise.
3933 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
3934 * procfs.c (gdb_siginfo_t): Likewise.
3936 2012-03-21 Mike Frysinger <vapier@gentoo.org>
3938 * .gitignore: Ignore more files.
3940 2012-03-20 Pedro Alves <palves@redhat.com>
3942 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
3945 2012-03-20 Yao Qi <yao@codesourcery.com>
3947 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
3950 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3952 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
3953 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
3954 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
3956 * dwarf2expr.h (cu_offset, sect_offset): New types.
3957 (struct dwarf_expr_context_funcs) <dwarf_call>
3958 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
3960 (struct dwarf_expr_context) <len>: Improve the comment.
3961 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
3962 cu_offset and sect_offset.
3963 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
3964 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
3965 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
3966 * dwarf2loc.h: Include dwarf2expr.h.
3967 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
3969 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
3970 Improve the comment.
3971 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
3972 (struct signatured_type, struct line_header, struct partial_die_info)
3973 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
3974 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
3975 (get_die_type_at_offset, create_cus_from_index)
3976 (create_signatured_type_table_from_index, dw2_get_file_names)
3977 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
3978 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
3979 (create_debug_types_hash_table, process_psymtab_comp_unit)
3980 (load_partial_comp_unit, create_all_comp_units)
3981 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
3982 (load_full_comp_unit, dwarf2_physname, read_import_statement)
3983 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
3984 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
3985 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
3986 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
3987 (find_partial_die, read_attribute_value, lookup_die_type)
3988 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
3989 (is_ref_attr): New function comment.
3990 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
3991 Use cu_offset and sect_offset.
3992 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
3993 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
3994 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
3995 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
3996 (offset_and_type_hash, offset_and_type_eq, set_die_type)
3997 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
3998 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
4001 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4004 * python/py-auto-load.c (source_section_scripts): New variable back_to.
4005 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
4007 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
4009 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4011 * NEWS: Describe new options --init-command=FILE, -ix and
4012 --init-eval-command=COMMAND, -iex.
4013 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
4014 CMDARG_INIT_COMMAND.
4015 (captured_main): New enum items OPT_IX and OPT_IEX. Add
4016 "init-command", "init-eval-command", "ix" and "iex" to the variable
4017 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
4018 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
4019 (print_gdb_help): Describe --init-command=FILE, -ix and
4020 --init-eval-command=COMMAND, -iex.
4022 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4025 * main.c (struct cmdarg): Move it here from main. Add more comments.
4026 (cmdarg_s, VEC (cmdarg_s)): New.
4027 (main): Move struct cmdarg from here. New variables cmdarg_vec and
4028 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
4029 Install cleanup for cmdarg_vec. Update filling for options 'x' and
4030 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
4033 2012-03-19 Tom Tromey <tromey@redhat.com>
4035 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
4037 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4040 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
4043 2012-03-16 Chris January <chris.january@allinea.com>
4045 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4048 2012-03-16 Chris January <chris.january@allinea.com>
4050 * source.c (add_path): Use memmove instead of strcpy because the
4053 2012-03-16 Joel Brobecker <brobecker@adacore.com>
4055 * value.h (set_value_parent): Add declaration.
4056 * value.c (set_value_parent): New function.
4057 (value_address): If VALUE->PARENT is not NULL, then use it as
4058 the base address instead of VALUE->LOCATION.address.
4059 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4060 the same as OBJ's address. Adjust V's offset accordingly.
4063 2012-03-16 Gary Benson <gbenson@redhat.com>
4065 PR breakpoints/10738
4066 * dwarf2read.c (use_deprecated_index_sections): New global.
4067 (struct partial_die_info): New member may_be_inlined.
4068 (read_partial_die): Set may_be_inlined where appropriate.
4069 (add_partial_subprogram): Add partial symbols for partial
4070 DIEs that may be inlined.
4071 (new_symbol_full): Add inlined subroutines to the current
4073 (write_psymtabs_to_index): Bump version number.
4074 (dwarf2_read_index): Read only version 6 indices unless
4075 use_deprecated_index_sections is set.
4076 * linespec.c (symbol_and_data_callback): New structure.
4077 (iterate_inline_only): New function.
4078 (iterate_over_all_matching_symtabs): New argument
4079 "include_inline". If nonzero, also call the callback for
4080 symbols representing inlined subroutines.
4081 (lookup_prefix_sym): Pass extra argument to the above.
4082 (find_function_symbols): Likewise.
4083 (add_matching_symbols_to_info): Likewise.
4084 * NEWS: Mention that GDB can now set breakpoints on inlined
4087 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4089 * p-typeprint.c (pascal_type_print_method_args):
4090 Fix display of parameter of methods.
4092 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4094 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4095 Add missing prototype.
4097 2012-03-16 Yao Qi <yao@codesourcery.com>
4098 Jan Kratochvil <jan.kratochvil@redhat.com>
4100 Fix false compilation warning.
4101 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4103 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
4104 Pedro Alves <pedro@codesourcery.com>
4106 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4107 (arm_register_g_packet_guesses): New function.
4108 (arm_gdbarch_init): Don't force a target description with
4109 registers when the executable is detected as M-profile. Instead
4110 set gdbarch->tdep->is_m. Register `g' packet guesses.
4111 (_initialize_arm_tdep): Initialize the new target description.
4112 * features/arm-with-m-fpa-layout.xml: New description.
4113 * features/arm-with-m-fpa-layout.c: New, generated.
4115 2012-03-15 Joel Brobecker <brobecker@adacore.com>
4117 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4118 Update function description.
4119 (insert_bp_location): Do not wipe bl->target_info out.
4120 * mem-break.c: #include "gdb_string.h".
4121 (default_memory_insert_breakpoint): Do not call target_read_memory
4122 with a pointer to the breakpoint's shadow_contents buffer. Use
4123 a local buffer instead.
4124 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4126 2012-03-15 Tom Tromey <tromey@redhat.com>
4128 * NEWS: Mention "info vtbl", not "info vtable".
4129 * cp-support.c (info_vtbl_command): Fix comment.
4130 (_initialize_cp_support): Fix text.
4132 2012-03-15 Tom Tromey <tromey@redhat.com>
4134 * cp-valprint.c (cp_print_value_fields): Use
4135 print_function_pointer_address for vtable slot.
4137 2012-03-15 Tom Tromey <tromey@redhat.com>
4139 * gnu-v3-abi.c (struct value_and_voffset): New.
4140 (hash_value_and_voffset, eq_value_and_voffset)
4141 (compare_value_and_voffset, compute_vtable_size)
4142 (print_one_vtable, gnuv3_print_vtable): New functions.
4143 (init_gnuv3_ops): Initialize 'print_vtable' field.
4144 * cp-support.c (info_vtbl_command): New function.
4145 (_initialize_cp_support): Add "info vtbl".
4146 * cp-abi.h (cplus_print_vtable): Declare.
4147 (struct cp_abi_ops) <print_vtable>: New field.
4148 * cp-abi.c (cplus_print_vtable): New function.
4151 2012-03-15 Tom Tromey <tromey@redhat.com>
4153 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4154 iterate_over_symbols.
4156 2012-03-14 Doug Evans <dje@google.com>
4158 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4159 DW_OP_GNU_parameter_ref.
4161 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4163 Fix double prompt of 'interpreter-exec mi'.
4164 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4165 (mi_interpreter_resume): use it.
4166 (mi_execute_command_input_handler): New function.
4167 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4168 mi_execute_command_input_handler.
4170 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
4172 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4174 (darwin_debug_port_info): Make static.
4175 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4176 * machoread.c (_initialize_machoread): Add prototype.
4177 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4178 (i386_darwin_set_control, i386_darwin_get_control)
4179 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4180 i386_darwin_get_status, i386_darwin_get_control):
4181 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4183 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4185 * ax-gdb.c (gen_usual_unary): Remove special handling of
4186 enum and bool types.
4188 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4190 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4192 2012-03-13 Joel Brobecker <brobecker@adacore.com>
4194 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4196 2012-03-13 Chris January <chris.january@allinea.com>
4198 * aix-thread.c (fill_sprs): Store the floating point registers
4199 at the correct offsets into vals.
4201 2012-03-13 Doug Evans <dje@google.com>
4203 * NEWS: Mention symbol-reloading has been deleted.
4204 * symfile.c (symbol_reloading): Delete.
4205 (show_symbol_reloading): Delete.
4206 (_initialize_symfile): Delete set/show symbol-reloading.
4208 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4209 read_in_chain until we have successfully read it in.
4210 (load_full_comp_unit): Ditto.
4211 (read_signatured_type): Add comment.
4213 2012-03-13 Chris January <chris.january@allinea.com>
4215 * stabsread.c (fix_common_block): Change type of valu argument
4218 2012-03-13 Chris January <chris.january@allinea.com>
4220 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4223 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4225 * common/linux-procfs.c (linux_proc_get_int): New, from
4226 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4228 (linux_proc_get_tgid): Only call linux_proc_get_int.
4229 (linux_proc_get_tracerpid): New.
4230 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4231 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4232 linux_proc_pid_has_state.
4233 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4234 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4235 (linux_ptrace_attach_warnings): New.
4236 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4238 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4239 (linux_nat_attach): New variables ex, buffer, message and message_s.
4240 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4242 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4244 * Makefile.in (linux-ptrace.o): New.
4245 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4247 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4248 * common/linux-ptrace.c: New file.
4249 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4250 * config/arm/linux.mh: Likewise.
4251 * config/i386/linux.mh: Likewise.
4252 * config/i386/linux64.mh: Likewise.
4253 * config/ia64/linux.mh: Likewise.
4254 * config/m32r/linux.mh: Likewise.
4255 * config/m68k/linux.mh: Likewise.
4256 * config/mips/linux.mh: Likewise.
4257 * config/pa/linux.mh: Likewise.
4258 * config/powerpc/linux.mh: Likewise.
4259 * config/powerpc/ppc64-linux.mh: Likewise.
4260 * config/powerpc/spu-linux.mh: Likewise.
4261 * config/s390/s390.mh: Likewise.
4262 * config/sparc/linux.mh: Likewise.
4263 * config/sparc/linux64.mh: Likewise.
4264 * config/xtensa/linux.mh: Likewise.
4265 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4266 common/linux-procfs.c.
4267 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4269 2012-03-13 Hui Zhu <teawater@gmail.com>
4270 Pedro Alves <palves@redhat.com>
4272 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4273 CREATE_BREAKPOINT_FLAGS_INSERTED.
4274 (create_breakpoint_sal, create_breakpoints_sal)
4275 (base_breakpoint_create_breakpoints_sal)
4276 (tracepoint_create_breakpoints_sal)
4277 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4279 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4280 (ftrace_command, strace_command): Adjust.
4281 (create_tracepoint_from_upload): Pass
4282 CREATE_BREAKPOINT_FLAGS_INSERTED.
4283 * breakpoint.h (enum breakpoint_create_flags): New.
4284 (create_breakpoint): New flags parameter.
4285 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4286 * python/py-breakpoint.c (bppy_init): Adjust.
4287 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4288 * spu-tdep.c (spu_catch_start): Adjust.
4290 2012-03-13 Pedro Alves <palves@redhat.com>
4291 Hui Zhu <teawater@gmail.com>
4292 Yao Qi <yao@codesourcery.com>
4294 * remote.c (struct remote_state): New field `starting_up'.
4295 (remote_start_remote): Set and clear it.
4296 (remote_can_download_tracepoint): If starting up, return false.
4298 2012-03-13 Yao Qi <yao@codesourcery.com>
4300 * inferior.h (struct inferior): Remove fields any_syscall_count,
4301 syscalls_counts and total_syscalls_count. Move them to new
4302 struct catch_syscall_inferior_data in breakpoint.c.
4303 * breakpoint.c: Call DEF_VEC_I(int).
4304 (struct catch_syscall_inferior_data): New.
4305 (get_catch_syscall_inferior_data): New.
4306 (catch_syscall_inferior_data_cleanup): New.
4307 (insert_catch_syscall): Update to access data in
4308 struct catch_syscall_inferior_data.
4309 (insert_catch_syscall): Likewise.
4310 (remove_catch_syscall): Likewise.
4311 (remove_catch_syscall): Likewise.
4312 (is_syscall_catchpoint_enabled): Likewise.
4313 (add_catch_command): Likewise.
4314 (_initialize_breakpoint): Register cleanup.
4315 * breakpoint.h: Removed DEF_VEC_I(int).
4316 * dwarf2loc.c: Call DEF_VEC_I(int).
4317 * mi/mi-main.c: Likewise.
4319 2012-03-12 Mark Kettenis <kettenis@gnu.org>
4321 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4323 2012-03-12 Chris January <chris.january@allinea.com>
4325 * aix-thread.c (_initialize_aix_thread): Add prototype.
4326 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4327 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4329 2012-03-12 Joel Brobecker <brobecker@adacore.com>
4331 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4332 include of "amd64-nat.h".
4334 2012-03-12 Tom Tromey <tromey@redhat.com>
4336 * buildsym.c (record_pending_block): Now static.
4337 * buildsym.h: (record_pending_block): Remove.
4339 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
4341 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4343 2012-03-09 Tom Tromey <tromey@redhat.com>
4345 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4346 producer_is_gxx_lt_4_6>: New fields.
4347 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4349 2012-03-09 Tom Tromey <tromey@redhat.com>
4351 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4353 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4355 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4358 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4360 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4362 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4364 Fix -Wmissing-prototypes build.
4365 * arm-linux-nat.c (get_thread_id): Make it static.
4366 * xtensa-linux-nat.c (get_thread_id): Likewise.
4368 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4370 * server.c (process_point_options): If a conditional expression
4371 is found, only print a message if remote_debug is nonzero.
4373 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
4375 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4376 of internal error for unknown/unsupported types.
4378 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4380 Fix CU relative vs. absolute DIE offsets.
4381 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4382 offset to offset_in_cu.
4383 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4385 (dwarf2_fetch_die_location_block): Rename parameter offset to
4386 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4388 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4390 * libunwind-frame.c: Rename to ...
4391 * ia64-libunwind-tdep.c: ... here.
4392 * libunwind-frame.h: Rename to ...
4393 * ia64-libunwind-tdep.h: ... here.
4394 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4395 ia64-libunwind-tdep.h.
4396 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4397 * README (--with-libunwind): Rename to ...
4398 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4399 * config.in: Regenerate.
4400 * configure: Regenerate.
4401 * configure.ac: New option --with-libunwind-ia64, make the
4402 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4403 Remove AC_DEFINE for HAVE_LIBUNWIND.
4404 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4405 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4406 Rename libunwind-frame in the general comment.
4407 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4408 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4409 Move forward declarations inside #ifndef. Rename libunwind-frame in
4410 the general comment.
4411 * ia64-tdep.c: Rename libunwind-frame.h #include to
4412 ia64-libunwind-tdep.h.
4413 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4414 (ia64_libunwind_descr): Rename libunwind-frame to
4415 ia64-libunwind-tdep in these function comments.
4416 * ia64-tdep.h: Rename libunwind-frame.h #include to
4417 ia64-libunwind-tdep.h.
4418 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4419 ia64-libunwind-tdep in that data comment.
4421 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4423 * libunwind-frame.h (struct frame_unwind): New declaration.
4425 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4427 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4428 "set breakpoint condition-evaluation" command.
4430 2012-03-08 Tristan Gingold <gingold@adacore.com>
4432 * sparc-stub.c: Move to stubs/
4433 * sh-stub.c: Likewise.
4434 * m68k-stub.c: Likewise.
4435 * m32r-stub.c: Likewise.
4436 * i386-stub.c: Likewise.
4438 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4440 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4441 linux_get_siginfo_type.
4443 * m68klinux-nat.c: Include "gdb_proc_service.h".
4444 (PTRACE_GET_THREAD_AREA): Define.
4445 (ps_get_thread_area): New function.
4447 2012-03-08 Yao Qi <yao@codesourcery.com>
4449 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4451 (remote_query_attached): Likewise.
4452 (remote_static_tracepoint_marker_at): Likewise.
4453 (remote_set_permissions): Likewise.
4454 (remote_detach_1, extended_remote_attach_1): Likewise.
4455 (send_g_packet, remote_vkill): Likewise.
4456 (extended_remote_disable_randomization): Likewise.
4457 (remote_add_target_side_condition): Likewise.
4458 (remote_insert_breakpoint): Likewise.
4459 (remote_remove_breakpoint): Likewise.
4460 (remote_insert_watchpoint): Likewise.
4461 (remote_remove_watchpoint): Likewise.
4462 (remote_insert_hw_breakpoint): Likewise.
4463 (remote_insert_hw_breakpoint): Likewise.
4464 (remote_remove_hw_breakpoint): Likewise.
4465 (remote_download_command_source): Likewise.
4466 (remote_download_tracepoint): Likewise.
4467 (remote_download_trace_state_variable): Likewise.
4468 (remote_disable_tracepoint): Likewise.
4469 (remote_trace_set_readonly_regions): Likewise.
4470 (remote_get_tracepoint_status): Likewise.
4471 (remote_trace_find): Likewise.
4472 (remote_get_trace_state_variable_value): Likewise.
4473 (remote_set_disconnected_tracing): Likewise.
4474 (remote_set_circular_trace_buffer): Likewise.
4475 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4476 (remote_use_agent): Likewise.
4477 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4480 2012-03-07 Pedro Alves <palves@redhat.com>
4482 * NEWS: Mention QProgramSignals.
4483 * inferior.h (update_signals_program_target): Declare.
4484 * infrun.c: (update_signals_program_target): New.
4485 (handle_command): Update the target of the new program signals
4487 * remote.c (PACKET_QProgramSignals): New enum.
4488 (last_program_signals_packet): New global.
4489 (remote_program_signals): New.
4490 (remote_start_remote): Update the target with the program signals
4492 (remote_protocol_features): Add entry for QPassSignals.
4493 (remote_open_1): Free anc clear last_program_signals_packet.
4494 (init_remote_ops): Install remote_program_signals.
4495 * target.c (update_current_target): Adjust.
4496 (target_program_signals): New.
4497 * target.h (struct target_ops) <to_program_signals>: New field.
4498 (target_program_signals): Declare.
4500 2012-03-07 Pedro Alves <palves@redhat.com>
4502 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4505 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4507 * m68klinux-nat.c (getregs_supplies): Make static.
4508 (getfpregs_supplies): Likewise.
4509 (have_ptrace_getregs): Likewise.
4511 2012-03-06 Joel Brobecker <brobecker@adacore.com>
4513 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4514 in call to get_die_type_at_offset.
4516 2012-03-06 Stan Shebs <stan@codesourcery.com>
4518 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4519 * mi/mi-cmd-disas.c: Ditto.
4520 * mi/mi-cmd-env.c: Ditto.
4521 * mi/mi-cmd-file.c: Ditto.
4522 * mi/mi-cmd-stack.c: Ditto.
4523 * mi/mi-cmd-target.c: Ditto.
4524 * mi/mi-cmd-var.c: Ditto.
4525 * mi/mi-cmds.c: Ditto.
4526 * mi/mi-cmds.h: Ditto.
4527 * mi/mi-console.c: Ditto.
4528 * mi/mi-getopt.c: Ditto.
4529 * mi/mi-getopt.h: Ditto.
4530 * mi/mi-interp.c: Ditto.
4531 * mi/mi-main.c: Ditto.
4532 * mi/mi-out.c: Ditto.
4533 * mi/mi-parse.c: Ditto.
4534 * mi/mi-parse.h: Ditto.
4535 * mi/mi-symbol-cmds.c: Ditto.
4537 * mi/mi-getopt.h: Move mi_opt struct up.
4538 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4540 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4542 2012-03-06 Tom Tromey <tromey@redhat.com>
4544 * proc-service.c (ps_pglobal_lookup): Set the current program
4547 2012-03-06 Pedro Alves <palves@redhat.com>
4549 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4551 2012-03-05 Joel Brobecker <brobecker@adacore.com>
4553 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4555 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4558 * common/linux-osdata.c (linux_common_core_of_thread): New function
4560 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4561 call by linux_common_core_of_thread.
4562 (linux_nat_core_of_thread_1): Remove.
4563 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4564 * linux-thread-db.c: Include linux-osdata.h.
4565 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4566 linux_common_core_of_thread.
4568 2012-03-05 Tom Tromey <tromey@redhat.com>
4570 * value.c (value_primitive_field): Don't fetch contents for
4573 2012-03-05 Tom Tromey <tromey@redhat.com>
4575 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4577 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
4579 * s390-nat.c: Include "gregset.h".
4581 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4583 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4584 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4585 (libunwind_load): New variable so_error, use it for dlerror. Try to
4586 load also LIBUNWIND_SO_7.
4588 2012-03-05 Pedro Alves <palves@redhat.com>
4590 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4591 is not NULL, and remove resulting dead code.
4593 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4595 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4596 prologue to sh_analyze_prologue.
4597 (sh_analyze_prologue): Make better use of such an upper limit, and
4598 generally be more cautious about accessing memory.
4600 2012-03-05 Tom Tromey <tromey@redhat.com>
4602 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4603 _initialize_ia64_hpux_tdep.
4605 2012-03-05 Pedro Alves <palves@redhat.com>
4609 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4610 the register state is clear, supply explicit zero, instead of
4611 marking the register unavailable.
4613 2012-03-05 Tristan Gingold <gingold@adacore.com>
4615 * NEWS: Mention OpenVMS ia64 new target.
4617 2012-03-05 Tristan Gingold <gingold@adacore.com>
4619 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4620 (ia64_unw_accessors, ia64_unw_rse_accessors)
4621 (ia64_libunwind_descr): Declare.
4622 * ia64-vms-tdep.c: New file.
4623 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4624 (ia64_libunwind_descr): Make them public.
4625 * configure.tgt: Add ia64-*-*vms*.
4626 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4627 (ALLDEPFILES): Add ia64-vms-tdep.c
4629 2012-03-05 Tristan Gingold <gingold@adacore.com>
4631 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4632 * remote.c (PACKET_qXfer_uib): New enum value.
4633 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4634 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4635 (_initialize_remote): Call add_packet_config_cmd for
4638 2012-03-05 Tristan Gingold <gingold@adacore.com>
4640 * osabi.c (gdb_osabi_names): Add OpenVMS.
4641 (generic_elf_osabi_sniffer): Likewise.
4642 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4644 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4646 Removed unused code.
4647 * libunwind-frame.c (libunwind_frame_unwind)
4648 (libunwind_frame_base_address): Remove.
4649 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4651 2012-03-04 Yao Qi <yao@codesourcery.com>
4653 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4654 remove trailing new line.
4655 (agent_run_command, agent_run_command): Add _ markup.
4656 (agent_capability_check): Likewise.
4658 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4660 * breakpoint.c (set_condition_evaluation_mode): Set
4661 CONDITION_EVALUATION_MODE unconditionally.
4663 2012-03-03 Yao Qi <yao@codesourcery.com>
4665 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4666 * common/agent.h: Update declaration.
4667 * inf-child.c (inf_child_use_agent): New.
4668 (inf_child_can_use_agent): New.
4669 (inf_child_target): Initialize fields `to_use_agent'
4670 and `to_can_use_agent'.
4671 * agent.c (agent_new_objfile): New.
4672 (_initialize_agent): Add agent_new_objfile to new_objfile
4675 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4677 (linux_target_install_ops): Initialize field
4678 `to_static_tracepoint_markers_by_strid'.
4679 * remote.c (free_current_marker): Move it to ...
4680 * tracepoint.c (free_current_marker): ... here. New.
4681 (cleanup_target_stop): New.
4682 * tracepoint.h: Declare free_current_marker.
4683 * NEWS: Add one entry about `info static-tracepoint-marker'.
4685 2012-03-03 Yao Qi <yao@codesourcery.com>
4687 * common/agent.c (agent_loaded_p): New.
4688 (agent_look_up_symbols): New global.
4689 * common/agent.h: Declare agent_loaded_p.
4691 2012-03-03 Yao Qi <yao@codesourcery.com>
4693 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
4694 (agent_capability_check, agent_capability_invalidate): New.
4695 (symbol_list): New array element.
4696 * common/agent.h (enum agent_capa): New.
4697 * target.c (target_pre_inferior): Call agent_capability_invalidate.
4699 2012-03-03 Yao Qi <yao@codesourcery.com>
4701 * target.h (struct target_ops) <to_use_agent>: New field.
4702 (struct target_ops) <to_can_use_agent>: New field.
4703 (target_use_agent, target_can_use_agent): New macro.
4704 * target.c (update_current_target): Update.
4705 * remote.c: New enum `PACKET_QAgent'.
4706 (remote_protocol_features): Add a new element.
4707 (remote_use_agent, remote_can_use_agent): New.
4708 (init_remote_ops): Initialize field `can_use_agent' with
4709 remote_can_use_agent. Intiailize field `use_agent' with
4711 * common/agent.c (use_agent): New global.
4712 * common/agent.h: Declare it.
4713 * tracepoint.c (info_static_tracepoint_markers_command): Add
4715 * Makefile.in (SFILES): Add common/agent.c and agent.c.
4716 (COMMON_OBS): Add common/agent.o and agent.o
4717 (common-agent.o): New rule.
4720 2012-03-03 Yao Qi <yao@codesourcery.com>
4722 * common/agent.c: New.
4723 * common/agent.h: New.
4724 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
4726 * configure, configh.in: Regenerated.
4728 2012-03-02 Kevin Buettner <kevinb@redhat.com>
4730 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
4731 unless it exists for this architecture.
4733 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4735 * language.h (struct language_defn): New "method" la_read_var_value.
4736 * findvar.c: #include "language.h".
4737 (default_read_var_value): Renames read_var_value. Rewrite
4738 function description.
4739 (read_var_value): New function.
4740 * value.h (default_read_var_value): Add prototype.
4741 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
4743 (ada_language_defn): Add entry for la_read_var_value.
4744 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
4745 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
4746 language_defn structures to add entry for new la_read_var_value
4749 2012-03-02 Tom Tromey <tromey@redhat.com>
4750 Pedro Alves <palves@redhat.com>
4752 PR breakpoints/13776:
4753 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
4755 (delete_longjmp_breakpoint_at_next_stop): New.
4756 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
4757 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
4758 before deleting the inferior. Add comments.
4759 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
4760 breakpoints immediately, but only on next stop. Move that code
4761 next to where we mark other breakpoints for deletion.
4763 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4765 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
4767 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
4770 2012-03-02 Pedro Alves <palves@redhat.com>
4772 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
4774 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4776 Fix -Wmissing-prototypes build.
4777 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
4778 * remote-sim.c (gdbsim_has_all_memory): Likewise.
4779 (gdbsim_has_memory): Likewise.
4781 2012-03-02 Yao Qi <yao@codesourcery.com>
4783 Fix -Wmissing-prototypes build.
4784 * charset.c (phony_iconv_open): Make static.
4785 (phony_iconv_close, phony_iconv): Likewise.
4786 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
4787 * i386-windows-nat.c (_initialize_i386_windows_nat): New
4789 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
4790 * ser-mingw.c (create_select_thread): Make static.
4791 * windows-termcap.c (tgetent): New prototype.
4792 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
4794 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
4796 Fix -Wmissing-prototypes build.
4797 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
4798 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
4799 (_initialize_loadable): New prototypes.
4801 2012-03-02 Doug Evans <dje@google.com>
4803 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
4804 abbrev table, read_comp_unit will do it.
4806 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4808 Fix -Wmissing-prototypes build.
4809 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
4810 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
4811 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
4812 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
4813 (_initialize_arm_symbian_tdep): New prototype.
4814 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
4815 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
4816 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
4818 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
4819 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
4821 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
4822 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
4823 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
4825 * moxie-tdep.c (moxie_process_record): Likewise.
4826 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
4827 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
4828 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
4829 (_initialize_rl78_tdep): New prototype.
4830 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
4831 (_initialize_rx_tdep): New prototype.
4832 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
4833 (_initialize_darwin_solib): New prototype.
4834 * solib-spu.c: Include solib-spu.h.
4835 (_initialize_spu_solib): New prototype.
4836 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
4837 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
4838 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
4839 (tic6x_software_single_step): Make it static.
4840 (_initialize_tic6x_tdep): New prototype.
4842 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4844 Fix -Wmissing-prototypes build.
4845 * cris-tdep.c (cris_can_use_hardware_watchpoint)
4846 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
4848 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4850 Fix -Wmissing-prototypes build.
4851 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
4852 (frv_have_stopped_data_address): Remove.
4854 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4856 Fix -Wmissing-prototypes build.
4857 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
4858 * sh-tdep.c: Include sh64-tdep.h.
4859 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
4860 * sh64-tdep.c: Include sh64-tdep.h.
4861 * sh64-tdep.h: New file.
4863 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4865 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
4867 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4869 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
4870 sp_regnum once the gdbarch_init_osabi hook has been called.
4872 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4874 * mips-tdep.c (mips32_bc1_pc): New function.
4875 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
4876 BPOSGE32 and BPOSGE64 instructions.
4877 (deal_with_atomic_sequence): Likewise.
4878 (mips32_instruction_has_delay_slot): Likewise.
4880 2012-03-01 Maciej W. Rozycki <macro@mips.com>
4881 Chris Dearman <chris@mips.com>
4882 Maciej W. Rozycki <macro@codesourcery.com>
4883 Joseph Myers <joseph@codesourcery.com>
4885 * features/mips-dsp.xml: New file.
4886 * features/mips64-dsp.xml: New file.
4887 * features/mips-dsp-linux.xml: New file.
4888 * features/mips64-dsp-linux.xml: New file.
4889 * features/Makefile (WHICH): Add mips-dsp-linux and
4891 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
4892 * features/mips-dsp-linux.c: New file.
4893 * features/mips64-dsp-linux.c: New file.
4894 * regformats/mips-dsp-linux.dat: New file.
4895 * regformats/mips64-dsp-linux.dat: New file.
4896 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
4898 (mips64_linux_register_addr): Likewise.
4899 (mips64_linux_regsets_fetch_registers): Likewise.
4900 (mips64_linux_regsets_store_registers): Likewise.
4901 (mips64_linux_fetch_registers): Update call to
4902 mips64_linux_regsets_fetch_registers.
4903 (mips64_linux_store_registers): Update call to
4904 mips64_linux_regsets_store_registers.
4905 (mips_linux_read_description): Probe for DSP registers.
4906 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
4907 and initialize_tdesc_mips64_dsp_linux.
4908 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
4909 Remove padding of no longer used embedded register slots.
4910 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
4911 (MIPS_RESTART_REGNUM): Redefine enum value.
4912 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
4914 (mips_tx39_reg_names): Likewise.
4915 (mips_linux_reg_names): New array of register names for Linux
4917 (mips_register_name): Check for a null pointer in
4918 mips_processor_reg_names and return an empty string.
4919 (mips_register_type): Exclude embedded registers for the IRIX
4921 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
4922 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
4924 (mips_stab_reg_to_regnum): Handle DSP accumulators.
4925 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
4926 (mips_gdbarch_init): Likewise. Initialize internal register
4927 indices for the Linux ABI. Use dynamic numbers to refer to
4928 registers, as applicable, while parsing the target description.
4929 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
4931 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4933 * frame.h (read_frame_register_unsigned): Fix typo in function
4936 2012-03-01 Pedro Alves <palves@redhat.com>
4938 * jit-reader.in [!__cplusplus]
4939 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
4941 2012-03-01 Pedro Alves <palves@redhat.com>
4943 * configure.ac (build_warnings): Add -Wmissing-prototypes.
4944 * configure: Regenerate.
4946 2012-03-01 Pedro Alves <palves@redhat.com>
4948 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
4949 * breakpoint.c (create_exception_master_breakpoint, trace_command)
4950 (ftrace_command, strace_command): Make static.
4951 * d-lang.c (_initialize_d_language): Declare.
4952 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
4953 * dwarf2loc.c (_initialize_dwarf2loc):
4954 * dwarf2read.c (process_psymtab_comp_unit): Make static.
4955 * exec.c (exec_get_section_table): Make static.
4956 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
4957 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
4958 * inferior.c (remove_inferior_command, add_inferior_command)
4959 (clone_inferior_command): Make static.
4960 * linux-nat.c (linux_nat_thread_address_space)
4961 (linux_nat_core_of_thread): Make static.
4962 * linux-tdep.c (_initialize_linux_tdep): Declare.
4963 * objc-lang.c (_initialize_objc_lang): Declare.
4964 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
4966 (_initialize_opencl_language): Declare.
4967 * record.c (_initialize_record): Declare.
4968 * remote.c (demand_private_info, remote_get_tib_address)
4969 (remote_supports_cond_tracepoints)
4970 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
4972 * skip.c (_initialize_step_skip): Declare.
4973 * symtab.c (skip_prologue_using_lineinfo): Make static.
4974 * tracepoint.c (delete_trace_state_variable)
4975 (trace_variable_command, delete_trace_variable_command)
4976 (get_uploaded_tsv, find_matching_tracepoint_location)
4977 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
4979 * value.c (pack_unsigned_long): Make static.
4980 * varobj.c (varobj_ensure_python_env): Make static.
4981 * windows-tdep.c (_initialize_windows_tdep): Declare.
4982 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
4984 2012-03-01 Pedro Alves <palves@redhat.com>
4986 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
4988 (linux_init_abi): Install it as has_shared_address_space gdbarch
4991 2012-03-01 Pedro Alves <palves@redhat.com>
4993 * observer.c (observer_test_first_notification_function)
4994 (observer_test_second_notification_function)
4995 (observer_test_third_notification_function): Add declarations.
4997 2012-03-01 Pedro Alves <palves@redhat.com>
4999 * common/signals.c (default_target_signal_to_host)
5000 (default_target_signal_from_host): Move ...
5001 * arch-utils.c: ... here.
5002 * arch-utils.h (default_target_signal_to_host)
5003 (default_target_signal_from_host): Declare.
5005 * common/signals.c (target_signal_from_command): Move ...
5006 * infrun.c: ... here.
5007 * inferior.h (target_signal_from_command): Declare.
5008 * target.h (target_signal_from_command)
5009 (default_target_signal_from_host, default_target_signal_to_host):
5010 Delete declarations.
5012 * common/signals.c (_initialize_signals): Delete.
5014 2012-03-01 Pedro Alves <palves@redhat.com>
5016 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
5017 both __cplusplus and !__cplusplus.
5019 2012-03-01 Pedro Alves <palves@redhat.com>
5021 * psymtab.c (find_and_open_source): Delete declaration.
5022 * source.c (find_and_open_source): Move comment ...
5023 * source.h (find_and_open_source): ... to this new declaration.
5025 2012-03-01 Pedro Alves <palves@redhat.com>
5027 * inline-frame.c: Include inline-frame.h.
5029 2012-03-01 Pedro Alves <palves@redhat.com>
5031 * tui/tui-data.c (set_gen_win_origin): Delete.
5032 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
5033 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
5035 2012-03-01 Pedro Alves <palves@redhat.com>
5037 * remote.c (encode_actions): Delete declaration.
5038 * tracepoint.c (encode_actions): Make extern.
5039 * tracepoint.h (encode_actions): Declare.
5041 2012-03-01 Pedro Alves <palves@redhat.com>
5043 * python/py-breakpoint.c: Include python.h.
5044 * python/py-continueevent.c (create_continue_event_object): Make
5046 * python/py-lazy-string.c (stpy_get_type): Make static.
5047 * python/py-newobjfileevent.c (create_new_objfile_event_object):
5049 * python/py-utils.c (unicode_to_target_python_string): Make
5051 * python/py-value.c: Include python.h.
5053 2012-03-01 Pedro Alves <palves@redhat.com>
5055 * inferior.c (delete_threads_of_inferior): Delete.
5057 2012-03-01 Pedro Alves <palves@redhat.com>
5059 Import fallback definitions from glibc.
5061 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5062 ps_prochandle): Forward declare.
5063 (ps_err_e): Use glibc's comments.
5064 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5065 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5066 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5067 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5068 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5069 (struct ps_prochandle): Adjust comment.
5071 2012-03-01 Pedro Alves <palves@redhat.com>
5073 * ada-lang.c (ada_modulus_from_name): Delete.
5074 * ada-lex.l (lexer_init): Make static.
5076 2012-03-01 Pedro Alves <palves@redhat.com>
5080 * frame.c (read_frame_register_unsigned): New.
5081 * frame.h (read_frame_register_unsigned): Declare.
5082 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5084 (print_i387_control_word): New parameter `control_p'. Handle it.
5085 (i387_print_float_info): Handle unavailable float registers.
5087 2012-03-01 Keith Seitz <keiths@redhat.com>
5089 * linespec.c (decode_line_2): Sort the list of methods
5090 alphabetically before presenting the user with a selection
5093 2012-03-01 Doug Evans <dje@google.com>
5095 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5097 (dwarf2_read_abbrevs): Remove corresponding initialization.
5099 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
5101 * NEWS: Mention new python command class gdb.COMMAND_USER.
5102 * cli/cli-cmds.c (show_user): Print error when used on a python
5104 (init_cli_cmds): Update documentation strings for "show user" and
5105 "set/show max-user-call-depth" to clarify that it does not apply to
5107 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5109 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5111 * top.c (execute_command): Only execute a user-defined command as a
5112 legacy macro if c->user_commands is set.
5114 2012-03-01 Tom Tromey <tromey@redhat.com>
5116 * valprint.h (struct generic_val_print_decorations): New.
5117 (generic_val_print): Declare.
5118 * valprint.c (generic_val_print): New function.
5119 * p-valprint.c (p_decorations): New global.
5120 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5121 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5122 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5123 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5124 * m2-valprint.c (m2_decorations): New global.
5125 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5126 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5127 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5128 TYPE_CODE_ERROR>: Call generic_val_print.
5129 * f-valprint.c (f_decorations): New global.
5130 (f_val_print): Use print_function_pointer_address.
5131 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5132 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5133 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5135 * c-valprint.c (c_decorations): New global.
5136 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5137 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5138 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5139 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5140 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5141 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5144 2012-03-01 Tom Tromey <tromey@redhat.com>
5146 * valprint.c (val_print): Update.
5147 * p-valprint (pascal_val_print): Return void.
5148 * p-lang.h (pascal_val_print): Return void.
5149 * m2-valprint.c (m2_val_print): Return void.
5150 * m2-lang.h (m2_val_print): Return void.
5151 * language.h (struct language_defn) <la_val_print>: Return void.
5152 * language.c (unk_lang_val_print): Return void.
5153 * jv-valprint.c (java_val_print): Return void.
5154 * jv-lang.h (java_val_print): Return void.
5155 * f-valprint.c (f_val_print): Return void.
5156 * f-lang.h (f_val_print): Return void.
5157 * d-valprint.c (d_val_print): Return void.
5158 (dynamic_array_type): Update.
5159 * d-lang.h (d_val_print): Return void.
5160 * c-valprint.c (c_val_print): Return void.
5161 * c-lang.h (c_val_print): Return void.
5162 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5164 * ada-lang.h (ada_val_print): Return void.
5166 2012-03-01 Tom Tromey <tromey@redhat.com>
5168 * value.h (val_print): Return void.
5169 * valprint.c (val_print): Return void.
5171 2012-03-01 Tom Tromey <tromey@redhat.com>
5173 * value.h (common_val_print): Return void.
5174 * valprint.c (common_val_print): Return void.
5176 2012-03-01 Tom Tromey <tromey@redhat.com>
5178 * value.h (value_print): Return void.
5179 * valprint.c (value_print): Return void.
5180 * p-valprint.c (pascal_value_print): Return void.
5181 * p-lang.h (pascal_value_print): Return void.
5182 * language.h (struct language_defn) <la_value_print>: Return
5184 * language.c (unk_lang_value_print): Return void.
5185 * jv-valprint.c (java_value_print): Return void.
5186 * jv-lang.h (java_value_print): Return void.
5187 * f-valprint.c (c_value_print): Don't declare.
5189 * c-valprint.c (c_value_print): Return void.
5190 * c-lang.h (c_value_print): Return void.
5191 * ada-valprint.c (ada_value_print): Return void.
5192 * ada-lang.h (ada_value_print): Return void.
5194 2012-03-01 Tom Tromey <tromey@redhat.com>
5196 * value.c (value_primitive_field): Handle virtual base classes.
5198 2012-03-01 Tom Tromey <tromey@redhat.com>
5200 * gdbtypes.h (struct vbase): Remove.
5202 2012-03-01 Tom Tromey <tromey@redhat.com>
5204 * c-valprint.c (print_function_pointer_address): Move...
5205 * valprint.c: ... here. Make non-static.
5206 * m2-valprint.c (print_function_pointer_address): Remove.
5207 * valprint.h (print_function_pointer_address): Declare.
5209 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5211 * NEWS: Document the fact that one can provide a condition when
5212 creating an Ada exception catchpoint.
5214 2012-03-01 Tom Tromey <tromey@redhat.com>
5216 * valprint.c (val_print_type_code_flags): Fix placement of
5219 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5221 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5222 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5223 environment variable before calling update-copyright.
5225 2012-03-01 Joel Brobecker <brobecker@adacore.com>
5227 * gnulib/extra/update-copyright: Update to the latest from
5228 gnulib's git repository.
5229 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5230 variable to 2 instead of 1.
5232 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5234 * varobj.c (c_value_of_variable): Remove dead code.
5236 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5238 * ada-lex.p (processId): Do not modify already encoded IDs.
5239 Update function documentation.
5241 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5243 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5244 "name" with "struct symbol *name_sym".
5245 * ada-exp.y (write_var_or_type): Update call to
5246 ada_find_renaming_symbol.
5247 "name" with "struct symbol *name_sym". Adjust Implementation
5248 accordingly. Adjust the function documentation.
5250 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5252 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5253 * ada-lang.c (ada_find_any_type): Add advance declaration.
5254 Make static. Replace ada_find_any_symbol by
5255 ada_find_any_type_symbol.
5256 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5257 Improve function description. Make static.
5258 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5259 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5261 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5263 * ada-lang.c (struct tag_args): Delete.
5264 (ada_get_tsd_type): Function body moved up in source file.
5265 (ada_tag_name_1, ada_tag_name_2): Delete.
5266 (ada_get_tsd_from_tag): New function.
5267 (ada_tag_name_from_tsd): New function.
5268 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5269 to determine the tag name.
5271 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5273 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5275 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5278 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5280 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5282 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5284 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5287 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5289 * ada-lang.c (constrained_packed_array_type): If there is a
5290 parallel XA type, use it to determine the array index type.
5292 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5294 * ada-valprint.c (ada_val_print_1): If our value is a reference
5295 to an array descriptor, dereference it before converting it
5298 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5300 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5301 creating fixed value.
5302 (ada_value_ind, ada_coerce_ref, assign_component)
5303 (ada_evaluate_subexp): Remove call to unwrap_value before
5304 call to ada_to_fixed_value.
5306 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5308 * ada-lang.c (to_fixed_array_type): Set result's type name.
5310 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5312 * ada-lang.c (catch_ada_exception_command_split): Add new
5313 argument cond_string. Add support for condition at end of
5314 "catch exception" commands.
5315 (ada_decode_exception_location): Add new argument cond_string.
5316 Update call to catch_ada_exception_command_split.
5317 (create_ada_exception_catchpoint): Add new argument cond_string.
5318 Set the breakpoint condition if needed.
5319 (catch_ada_exception_command): Update call to
5320 ada_decode_exception_location.
5321 (ada_decode_assert_location): Add function documentation.
5322 Add support for condition at end of "catch assert" command.
5323 (catch_assert_command): Update calls to ada_decode_assert_location
5324 and create_ada_exception_catchpoint.
5326 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5328 Fix disp-step-syscall.exp: fork: single step over fork.
5329 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5330 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5331 comment, change parameters gdbarch and ptid to regcache. Remove
5332 parameter regcache, initialize gdbarch from regcache here.
5333 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5335 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5337 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5338 'syscall'. Make the 'int' check more strict.
5340 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5342 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5343 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5344 (i386_linux_intx80_sysenter_syscall_record): ... here.
5345 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5346 Use the renamed function name.
5348 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5350 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5351 * breakpoint.c (until_break_command): Likewise.
5352 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5353 * infcall.c (call_function_by_hand): Likewise.
5354 * infcmd.c (finish_forward): Likewise.
5355 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5357 2012-02-28 Tristan Gingold <gingold@adacore.com>
5359 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5360 avoid variable assignments inside condition.
5362 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5364 Fix static analysis issue found by cppcheck.
5365 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5366 uninitialized BUF for size 2.
5368 2012-02-27 Chris Dearman <chris@mips.com>
5369 Nathan Froyd <froydnj@codesourcery.com>
5370 Maciej W. Rozycki <macro@codesourcery.com>
5372 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5373 (mips16_instruction_has_delay_slot): Likewise.
5374 (mips_segment_boundary): Likewise.
5375 (mips_adjust_breakpoint_address): Likewise.
5376 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5378 2012-02-27 Maciej W. Rozycki <macro@mips.com>
5379 Maciej W. Rozycki <macro@codesourcery.com>
5381 * infrun.c (handle_inferior_event): Don't proceed through
5382 shared library trampolines if stepping at the machine
5385 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5387 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5390 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5392 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5393 (sh_stub_unwind_sniffer): New functions.
5394 (sh_stub_unwind): New variable.
5395 (sh_gdbarch_init): Wire everything.
5397 2012-02-27 Pedro Alves <palves@redhat.com>
5399 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5400 (linux_nat_post_attach_wait): Adjust to use
5401 linux_proc_pid_is_stopped.
5402 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5403 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5404 based on pid_is_stopped from both linux-nat.c and
5405 gdbserver/linux-low.c, and renamed.
5407 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5409 * remote.c (remote_watchpoint_addr_within_range): New function.
5410 (init_remote_ops): Use it.
5412 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5414 * target.h (target_watchpoint_addr_within_range): Document macro.
5416 2012-02-24 Pedro Alves <palves@redhat.com>
5418 * stack.c (set_last_displayed_sal): Issue internal_error instead
5419 of warning, and issue it after clearing the last displayed sal.
5421 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5422 Pedro Alves <palves@redhat.com>
5424 * breakpoint.c (until_break_command): Install breakpoints after
5425 all frame manipulations.
5427 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5429 * remote.c (remote_supports_cond_breakpoints): New forward
5431 (remote_add_target_side_condition): New function.
5432 (remote_insert_breakpoint): Add target-side breakpoint
5433 conditional if supported.
5434 (remote_insert_hw_breakpoint): Likewise.
5435 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5438 * target.c (update_current_target): Inherit
5439 to_supports_evaluation_of_breakpoint_conditions.
5440 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5442 * target.h (struct target_ops)
5443 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5444 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5446 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5447 (condition_evaluation_both, condition_evaluation_auto,
5448 condition_evaluation_host, condition_evaluation_target,
5449 condition_evaluation_enums, condition_evaluation_mode_1,
5450 condition_evaluation_mode): New static globals.
5451 (translate_condition_evaluation_mode): New function.
5452 (breakpoint_condition_evaluation_mode): New function.
5453 (gdb_evaluates_breakpoint_condition_p): New function.
5454 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5455 (mark_breakpoint_modified): New function.
5456 (mark_breakpoint_location_modified): New function.
5457 (set_condition_evaluation_mode): New function.
5458 (show_condition_evaluation_mode): New function.
5459 (bp_location_compare_addrs): New function.
5460 (get_first_location_gte_addr): New helper function.
5461 (set_breakpoint_condition): Free condition bytecode if locations
5462 has become unconditional. Call mark_breakpoint_modified (...).
5463 (condition_command): Call update_global_location_list (1) for
5465 (breakpoint_xfer_memory): Use is_breakpoint (...).
5466 (is_breakpoint): New function.
5467 (parse_cond_to_aexpr): New function.
5468 (build_target_condition_list): New function.
5469 (insert_bp_location): Handle target-side conditional
5470 breakpoints and call build_target_condition_list (...).
5471 (update_inserted_breakpoint_locations): New function.
5472 (insert_breakpoint_locations): Handle target-side conditional
5474 (bpstat_check_breakpoint_conditions): Add comment.
5475 (bp_condition_evaluator): New function.
5476 (bp_location_condition_evaluator): New function.
5477 (print_breakpoint_location): Print information on where the condition
5479 (print_one_breakpoint_location): Likewise.
5480 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5481 breakpoint location.
5482 (force_breakpoint_reinsertion): New functions.
5483 (update_global_location_list): Handle target-side breakpoint
5485 Reinsert locations that are already inserted if conditions have
5487 (bp_location_dtor): Free agent expression bytecode.
5488 (disable_breakpoint): Call mark_breakpoint_modified (...).
5489 Call update_global_location_list (...) with parameter 1 for breakpoints.
5490 (disable_command): Call mark_breakpoint_location_modified (...).
5491 Call update_global_location_list (...) with parameter 1 for breakpoints.
5492 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5493 (enable_command): mark_breakpoint_location_modified (...).
5494 (_initialize_breakpoint): Update documentation and add
5495 condition-evaluation breakpoint subcommand.
5497 * breakpoint.h: Include ax.h.
5498 (condition_list): New data structure.
5499 (condition_status): New enum.
5500 (bp_target_info) <cond_list>: New field.
5501 (bp_location) <condition_changed, cond_bytecode>: New fields.
5502 (is_breakpoint): New prototype.
5504 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5506 * remote.c (remote_state) <cond_breakpoints>: New field.
5507 (PACKET_ConditionalBreakpoints): New enum.
5508 (remote_cond_breakpoint_feature): New function.
5509 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5510 (remote_supports_cond_breakpoints): New function.
5511 (_initialize_remote): Add new packet configuration for
5512 target-side conditional breakpoints.
5514 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5516 * NEWS: Mention target-side conditional breakpoint support,
5517 new condition-evaluation breakpoint subcommand and remote
5520 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5522 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5525 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5527 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5528 (after_prologue): Remove.
5530 2012-02-23 Tom Tromey <tromey@redhat.com>
5532 * jv-valprint.c (java_val_print): Remove dead code.
5534 2012-02-23 Tristan Gingold <gingold@adacore.com>
5536 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5537 known_tasks_element and known_tasks_length fields.
5538 (read_known_tasks_array): Change argument type. Use pointer type
5539 and number of elements from DATA. Adjust.
5540 (read_known_tasks_list): Likewise.
5541 (get_known_tasks_addr): Remove.
5542 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5543 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5544 type and array length. Merge former get_known_tasks_addr code.
5546 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5549 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5550 it after set_momentary_breakpoint.
5552 2012-02-22 Sterling Augustine <saugustine@google.com>
5555 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5557 2012-02-22 Gary Benson <gbenson@redhat.com>
5559 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5560 (find_slot_in_mapped_hash): Likewise.
5562 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5565 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5566 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5567 * configure: Regenerate.
5569 2012-02-21 Tristan Gingold <gingold@adacore.com>
5570 Pedro Alves <palves@redhat.com>
5572 * ia64-tdep.c: Do not include libunwind-ia64.h.
5573 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5574 Include libunwind-ia64.h instead of libunwind.h.
5575 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5576 for libunwind.h existence.
5577 * configure, config.in: Regenerate.
5579 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5581 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5582 instead of value_rtti_target_type.
5583 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5584 instead of value_rtti_target_type.
5585 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5586 value_rtti_target_type.
5587 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5588 (value_rtti_target_type): Rename to ...
5589 (value_rtti_indirect_type): ... here and make it indirect. Update
5591 * value.c (readjust_indirect_value_type): New function.
5592 (coerce_ref): Support for enclosing type setting for references
5593 with readjust_indirect_value_type.
5594 * value.h (readjust_value_type): New declaration.
5595 (value_rtti_target_type): Rename to ...
5596 (value_rtti_indirect_type): ... here.
5598 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5600 * MAINTAINERS (Write After Approval): Add myself to the list.
5602 2012-02-20 Doug Evans <dje@google.com>
5604 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5605 Rename objfile_p_char parameter to objfilep.
5606 (build_objfile_section_table): Result is now void. All callers
5608 * objfiles.h (struct objfile): Tweak comments, whitespace.
5609 (build_objfile_section_table): Update.
5611 * elfread.c (elf_symfile_segments): Fix warning text.
5613 2012-02-20 Tom Tromey <tromey@redhat.com>
5616 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5617 particular set of file names once.
5618 (dw2_map_symbol_filenames): Likewise.
5620 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5623 * main.c (write_files): Remove the declaration.
5624 (external_editor_command): Move the declaration ...
5625 [GDBTK] (external_editor_command): ... here. Fix the comment.
5627 2012-02-20 Tom Tromey <tromey@redhat.com>
5629 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5632 2012-02-20 Tristan Gingold <gingold@adacore.com>
5634 * darwin-nat.h (enum darwin_msg_state): Add comments.
5636 2012-02-20 Tristan Gingold <gingold@adacore.com>
5638 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5641 2012-20-18 Joel Brobecker <brobecker@adacore.com>
5643 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5644 between function description and implementation.
5646 2012-02-17 Tom Tromey <tromey@redhat.com>
5649 * python/py-event.c (event_object_getset): New global.
5650 (event_object_type): Reference it.
5651 * python/py-type.c (field_object_getset): New global.
5652 (field_object_type): Reference it.
5653 * python/python-internal.h (gdb_py_generic_dict): Declare.
5654 * python/py-utils.c (gdb_py_generic_dict): New function.
5656 2012-02-17 Tristan Gingold <gingold@adacore.com>
5658 * solib-darwin.c (darwin_current_sos): Check magic and filetype
5660 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
5662 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5663 TYPE_CALLING_CONVENTION annotation.
5665 2012-02-16 Kevin Buettner <kevinb@redhat.com>
5667 * MAINTAINERS: Add rx to target ISA section.
5668 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5669 (ALLDEPFILES): Add rx-tdep.c.
5671 2012-02-16 Tom Tromey <tromey@redhat.com>
5673 * symfile.c (symbol_file_add_main_1): Use inferior's
5675 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5676 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5678 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5680 (follow_exec): Use inferior's symfile_flags.
5681 * inferior.h (struct inferior) <symfile_flags>: New field.
5683 2012-02-16 Mike Frysinger <vapier@gentoo.org>
5686 * remote-sim.c (gdbsim_create_inferior): Call error() when
5687 sim_create_inferior() fails.
5689 2012-02-16 Josh Matthews <josh@joshmatthews.net>
5691 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5693 2012-02-16 Tom Tromey <tromey@redhat.com>
5696 * thread.c (struct current_thread_cleanup) <was_removable>: New
5698 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
5699 (make_cleanup_restore_current_thread): Initialize new field.
5701 2012-02-15 Kevin Buettner <kevinb@redhat.com>
5703 * MAINTAINERS: Add rl78 to target ISA section.
5704 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
5705 (ALLDEPFILES): Add rl78-tdep.c.
5706 * NEWS: Mention rl78 as a new target.
5708 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
5710 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
5712 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
5714 2012-02-15 Tom Tromey <tromey@redhat.com>
5717 * infcmd.c (registers_info): Print just the current register's
5720 2012-02-15 Tom Tromey <tromey@redhat.com>
5722 * python/py-symbol.c (sympy_value): Use _().
5724 2012-02-15 Pedro Alves <palves@redhat.com>
5726 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
5727 output to be like native targets'.
5728 (remote_pid_to_str): Special case the null ptid.
5730 2012-02-14 Stan Shebs <stan@codesourcery.com>
5732 * NEWS: Mention enable count command.
5733 * breakpoint.h (struct breakpoint): New field enable_count.
5734 * breakpoint.c (enable_breakpoint_disp): Add count argument.
5735 (enable_breakpoint): Add arg to call.
5736 (struct disp_data): New struct.
5737 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
5738 (do_map_enable_once_breakpoint): Create a struct and pass it.
5739 (do_map_enable_delete_breakpoint): Ditto.
5740 (do_map_enable_count_breakpoint): New function.
5741 (enable_count_command): New function.
5742 (bpstat_stop_status): Decrement enable_count.
5743 (print_one_breakpoint_location): Report enable count.
5744 (_initialize_breakpoint): Add enable count command.
5746 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5748 * rl78-tdep.c (reggroups.h): Include.
5749 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
5750 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
5751 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
5752 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
5753 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
5754 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
5755 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
5756 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
5757 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
5758 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
5759 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
5760 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
5761 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
5762 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
5763 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
5764 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
5765 beginning of register list.
5766 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
5767 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
5768 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
5769 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
5770 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
5771 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
5772 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
5773 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
5774 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
5775 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
5776 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
5777 the pseudo registers. Rearrange other pseudo registers too so
5778 that the bank registers appear at the end.
5779 (rl78_register_type): Account for the fact that the byte sized
5780 bank registers are now pseudo-registers.
5781 (rl78_register_name): Rearrange the register name array. Make
5782 initial set of raw banked registers inaccessible.
5783 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
5784 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
5785 case for copying bytes back and forth between raw and pseudo
5786 versions of the banked registers. Update other cases to reflect
5788 (rl78_return_value): Update to account for changed names of
5790 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
5791 rl78_register_sim_regno().
5793 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5795 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
5796 the name parameter being passed to find_pc_partial_function().
5798 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5800 * MAINTAINERS: Step down from being ia64 target maintainer.
5802 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5804 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
5805 compilation warning.
5807 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5809 Fix crash on loaded shlibs without loaded exec_bfd.
5810 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
5811 (set_section_command): Replace exec_bfd by p->bfd.
5813 2012-02-10 Tom Tromey <tromey@redhat.com>
5815 * linespec.c (decode_line_internal): Skip symtabs_from_filename
5816 when we have a C++ qualified name.
5818 2012-02-10 Pedro Alves <palves@redhat.com>
5820 * inferior.c (inferior_pid_to_str): New.
5821 (print_inferior, inferior_command): Use it.
5823 2012-02-10 Pedro Alves <palves@redhat.com>
5825 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
5827 * configure: Regenerate.
5829 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5831 * linespec.c (decode_line_internal): Fix comment correctness.
5833 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
5836 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
5837 * amd64bsd-nat.c: Add support for debug registers (adapted from
5839 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
5840 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
5841 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
5842 (amd64bsd_dr_get_control): New functions.
5843 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
5844 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
5845 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
5846 watchpoints initialization.
5847 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
5849 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5851 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
5853 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
5855 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5857 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
5859 2012-02-08 Joel Brobecker <brobecker@adacore.com>
5861 * language.h (symbol_name_cmp_ftype): Renames
5862 symbol_name_match_p_ftype.
5863 (struct language_defn)[la_get_symbol_name_cmp]: Renames
5864 la_get_symbol_name_match_p.
5865 * ada-lang.c (ada_get_symbol_name_cmp): Renames
5866 ada_get_symbol_name_match_p. Update comment.
5867 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
5868 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
5869 Renames symbol_name_match_p. Update field type.
5870 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
5871 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5872 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
5873 "la_get_symbol_name_cmp" in comments.
5874 * language.c: Likewise.
5876 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5878 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
5880 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
5881 (amd64_sol2_gregset32_reg_offs): Likewise.
5883 2012-02-08 Joel Brobecker <brobecker@adacore.com>
5885 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
5886 of the returned BFD is allocated by GDB.
5888 2012-02-07 Tom Tromey <tromey@redhat.com>
5891 * python/python-internal.h (frame_object_type): Declare.
5892 * python/py-symbol.c (sympy_needs_frame): New function.
5893 (sympy_value): New function.
5894 (symbol_object_getset): Add "needs_frame".
5895 (symbol_object_methods): Add "value".
5896 * python/py-frame.c (frame_object_type): No longer static.
5898 2012-02-07 Tom Tromey <tromey@redhat.com>
5901 * python/py-symbol.c (sympy_line): New function.
5902 (symbol_object_getset): Add "line".
5904 2012-02-07 Tom Tromey <tromey@redhat.com>
5906 * charset.c (find_charset_names): Check 'in' against NULL.
5908 2012-02-06 Doug Evans <dje@google.com>
5910 * gdbtypes.h (struct main_type): Change type of name,tag_name,
5911 and fields.name members from char * to const char *. All uses updated.
5912 (struct cplus_struct_type): Change type of fn_fieldlists.name member
5913 from char * to const char *. All uses updated.
5914 (type_name_no_tag): Update.
5915 (lookup_unsigned_typename, lookup_signed_typename): Update.
5916 * gdbtypes.c (type_name_no_tag): Change result type
5917 from char * to const char *. All callers updated.
5918 (lookup_unsigned_typename, lookup_signed_typename): Change type of
5919 name parameter from char * to const char *.
5920 * symtab.h (struct cplus_specific): Change type of demangled_name
5921 member from char * to const char *. All uses updated.
5922 (struct general_symbol_info): Change type of name and
5923 mangled_lang.demangled_name members from char * to const char *.
5925 (symbol_get_demangled_name, symbol_natural_name): Update.
5926 (symbol_demangled_name, symbol_search_name): Update.
5927 * symtab.c (symbol_get_demangled_name): Change result type
5928 from char * to const char *. All callers updated.
5929 (symbol_natural_name, symbol_demangled_name): Ditto.
5930 (symbol_search_name): Ditto.
5931 (completion_list_add_name): Change type of symname,sym_text,
5932 text,word parameters from char * to const char *.
5933 (completion_list_objc_symbol): Change type of sym_text,
5934 text,word parameters from char * to const char *.
5935 * ada-lang.c (find_struct_field): Change type of name parameter
5936 from char * to const char *.
5937 (encoded_ordered_before): Similarly for N0,N1 parameters.
5938 (old_renaming_is_invisible): Similarly for function_name parameter.
5939 (ada_type_name): Change result type from char * to const char *.
5940 All callers updated.
5941 * ada-lang.h (ada_type_name): Update.
5942 * buildsym.c (hashname): Change type of name parameter
5943 from char * to const char *.
5944 * buildsym.h (hashname): Update.
5945 * dbxread.c (end_psymtab): Change type of include_list parameter
5946 from char ** to const char **.
5947 * dwarf2read.c (determine_prefix): Change result type
5948 from char * to const char *. All callers updated.
5949 * f-lang.c (find_common_for_function): Change type of name, funcname
5950 parameters from char * to const char *.
5951 * f-lang.c (find_common_for_function): Update.
5952 * f-valprint.c (list_all_visible_commons): Change type of funcname
5953 parameters from char * to const char *.
5954 * gdbarch.sh (static_transform_name): Change type of name parameter
5955 and result from char * to const char *.
5956 * gdbarch.c: Regenerate.
5957 * gdbarch.h: Regenerate.
5958 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
5959 of name parameter from char * to const char *.
5960 * jv-lang.c (java_primitive_type_from_name): Ditto.
5961 (java_demangled_signature_length): Similarly for signature parameter.
5962 (java_demangled_signature_copy): Ditto.
5963 (java_demangle_type_signature): Ditto.
5964 * jv-lang.h (java_primitive_type_from_name): Update.
5965 (java_demangle_type_signature): Update.
5966 * objc-lang.c (specialcmp): Change type of a,b parameters
5967 from char * to const char *.
5968 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
5969 from char * to const char *. All callers updated.
5970 * p-lang.h (is_pascal_string_type): Update.
5971 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
5972 of name parameter from char * to const char *.
5973 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
5974 * utils.c (fprintf_symbol_filtered): Ditto.
5975 * defs.h (fprintf_symbol_filtered): Update.
5976 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
5977 * stabsread.h (end_psymtab): Update.
5978 * stack.c (find_frame_funname): Change type of funname parameter
5979 from char ** to const char **.
5980 * stack.h (find_frame_funname): Update.
5981 * typeprint.c (type_print): Change type of varstring parameter
5982 from char * to const char *.
5983 * value.h (type_print): Update.
5984 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
5985 from char * to const char *. All callers updated.
5986 (xcoff_end_psymtab): Change type of include_list parameter
5987 from char ** to const char **. All callers updated.
5988 (swap_sym): Similarly for name parameter. All callers updated.
5989 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
5991 (process_coff_symbol): Use xstrdup.
5992 * stabsread.c (stabs_method_name_from_physname): Renamed from
5993 update_method_name_from_physname. Change result type from void
5994 to char *. All callers updated.
5995 (read_member_functions): In has_destructor case, store name in objfile
5996 obstack instead of malloc space. In !has_stub case, fix mem leak.
5998 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
6000 * configure: Rebuild.
6001 * configure.ac: Put -L../bfd and -L../libiberty at the front of
6004 2012-02-03 Kevin Buettner <kevinb@redhat.com>
6006 * configure.tgt (rl78-*-elf): New target.
6007 * rl78-tdep.c: New file.
6009 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6011 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
6012 and continue the loop. Add QUIT statement.
6014 2012-02-03 Tom Tromey <tromey@redhat.com>
6017 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
6018 bfd_lookup_symbol_from_symtab.
6019 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
6020 gdb_bfd_lookup_symbol_from_symtab.
6022 2012-02-03 Joel Brobecker <brobecker@adacore.com>
6024 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
6025 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
6026 symbol. Add assertion that sym2 is never NULL.
6028 2012-02-02 Doug Evans <dje@google.com>
6030 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
6031 "name" parameter to const char ** from char **. All callers updated.
6032 (find_pc_partial_function): Ditto.
6033 (cache_pc_function_name): Change type to const char * from char *.
6034 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
6035 (find_pc_partial_function): Update.
6036 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
6037 type of "name" parameter to const char * from char *.
6039 * arch-utils.c (generic_in_solib_return_trampoline): Change
6040 type of "name" parameter to const char * from char *.
6041 * arch-utils.h (generic_in_solib_return_trampoline): Update.
6042 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
6043 type of "name" parameter to const char * from char *.
6044 * gdbarch.sh (in_solib_return_trampoline): Ditto.
6045 * gdbarch.c: Regenerate.
6046 * gdbarch.h: Regenerate.
6047 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6048 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6049 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6050 type of "name" parameter to const char * from char *.
6051 * skip.c (skip_function_pc): Ditto.
6052 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6053 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6054 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6055 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6056 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6057 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6058 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6059 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6060 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6062 2012-02-02 Pedro Alves <palves@redhat.com>
6064 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6065 the current inferior has no execution. Make sure the current
6066 remote process matches gdb's current inferior.
6068 2012-02-02 Tom Tromey <tromey@redhat.com>
6071 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6074 2012-02-02 Tom Tromey <tromey@redhat.com>
6077 * symtab.c (lookup_language_this): Set block_found.
6079 2012-02-01 Tom Tromey <tromey@redhat.com>
6082 * jit.c (struct jit_inferior_data): Rewrite.
6083 (struct jit_objfile_data): New.
6084 (get_jit_objfile_data): New function.
6085 (add_objfile_entry): Update.
6086 (jit_read_descriptor): Return int. Replace descriptor_addr
6087 argument with inf_data. Update. Don't call error.
6088 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
6090 (jit_inferior_init): Don't look up descriptor. Don't call error.
6091 (jit_reset_inferior_data_and_breakpoints)
6092 (jit_inferior_created_observer): Remove.
6093 (jit_inferior_exit_hook): Update.
6094 (jit_executable_changed_observer): Remove.
6095 (jit_event_handler): Update.
6096 (free_objfile_data): Reset inferior data if needed.
6097 (_initialize_jit): Update.
6099 2012-02-01 Tom Tromey <tromey@redhat.com>
6101 * jit.c (bfd_open_from_target_memory): Move higher in file.
6103 2012-02-01 Tristan Gingold <gingold@adacore.com>
6105 * libunwind-frame.c (libunwind_load): Display message if dlopen
6108 2012-02-01 Gary Benson <gbenson@redhat.com>
6110 * symtab.h (symbol_found_callback_ftype): New typedef.
6111 (iterate_over_symbols): Use the above.
6112 * symtab.c (iterate_over_symbols): Likewise.
6113 * language.h (language_defn->la_iterate_over_symbols): Likewise.
6114 * ada-lang.c (ada_iterate_over_symbols): Likewise.
6115 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6116 (iterate_name_matcher): Document return values.
6117 (collect_one_symbol): Likewise.
6118 (collect_function_symbols): Likewise.
6119 (collect_symbols): Likewise.
6121 2012-02-01 Tom Tromey <tromey@redhat.com>
6123 * ada-lang.c (resolve_subexp): Update.
6124 (ada_lookup_symbol_list): Add 'full_search' argument.
6125 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6126 ada_lookup_symbol_list.
6127 (ada_lookup_encoded_symbol): Update.
6128 (get_var_value): Update.
6129 * ada-exp.y (block_lookup): Update.
6130 (write_var_or_type): Update.
6131 (write_name_assoc): Update.
6132 * ada-lang.h (ada_lookup_symbol_list): Update.
6134 2012-01-31 Tom Tromey <tromey@redhat.com>
6136 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6139 2012-01-31 Doug Evans <dje@google.com>
6141 * symtab.h: Remove outdated comment.
6142 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
6144 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6146 Fix build error in Darwin port.
6147 * i386-darwin-nat.c: Include i386-nat.h.
6149 2012-01-30 Tom Tromey <tromey@redhat.com>
6151 PR breakpoints/13568:
6152 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6153 argument. Check for recursive includes.
6154 (dwarf_decode_macros): Create an include hash.
6156 2012-01-30 Michael Eager <eager@eagercon.com>
6158 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6159 * ppc-linux-tdep.c: Include glibc-tdep.h.
6160 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
6161 (powerpc_linux_in_plt_stub): New function.
6162 (powerpc_linux_in_dynsym_resolve_code): New function.
6163 (ppc_skip_trampoline_code): New function.
6164 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6165 Use glibc_skip_solib_resolver.
6167 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6169 Code cleanup: Make 1440 bytes of data segment read-only.
6170 * arch-utils.c (endian_enum): Make it const char *const [].
6171 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6173 * breakpoint.c (always_inserted_enums): Likewise.
6174 * cli/cli-cmds.c (script_ext_enums): Likewise.
6175 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6176 enumlist parameter const char *const *.
6177 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6178 const char *const *.
6179 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6180 parameter const char *const *.
6181 * cris-tdep.c (cris_modes): Make it const char *const [].
6182 * filesystem.c (target_file_system_kinds): Likewise.
6183 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6184 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6185 (can_use_displaced_stepping_enum, scheduler_enums)
6186 (exec_direction_names): Likewise.
6187 * language.c (_initialize_language): Make the type_or_range_names and
6188 case_sensitive_names variables const char *const [].
6189 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6190 * python/python.c (python_excp_enums): Likewise.
6191 * remote.c (interrupt_sequence_modes): Likewise.
6192 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6193 * serial.c (logbase_enums): Likewise.
6194 * sh-tdep.c (sh_cc_enum): Likewise.
6195 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6197 * symtab.c (multiple_symbols_modes): Likewise.
6198 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6200 * utils.c (internal_problem_modes): Likewise.
6202 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6204 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6205 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6208 2012-01-27 Doug Evans <dje@google.com>
6210 * configure.ac (with_python): Fix absolute path handling for win32.
6211 * configure: Regenerate.
6213 2012-01-26 Doug Evans <dje@google.com>
6215 * symtab.c: Whitespace cleanup, no code changes.
6217 * symtab.c (lookup_symbol_in_language): Improve comment.
6218 (lookup_symbol_aux): Fix comment.
6220 * psymtab.c (add_psymbol_to_list): Result is now "void".
6221 * psympriv.h (add_psymbol_to_list): Update.
6223 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6225 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6227 Do not open script filenames twice.
6228 * cli/cli-cmds.c (source_script_from_stream): Pass to
6229 source_python_script also STREAM.
6230 * python/py-auto-load.c (source_section_scripts): Pass to
6231 source_python_script_for_objfile also STREAM.
6232 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6234 * python/python-internal.h (source_python_script_for_objfile): New
6235 parameter file, rename parameter file to filename.
6236 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6237 instead if !_WIN32. Update the function comment.
6238 (source_python_script, source_python_script_for_objfile)
6239 (source_python_script): New parameter file, rename parameter file to
6240 filename. Pass FILENAME to python_run_simple_file.
6241 * python/python.h (source_python_script): New parameter file, rename
6242 parameter file to filename.
6244 2012-01-26 Pedro Alves <palves@redhat.com>
6246 * corelow.c (core_has_fake_pid): Delete.
6247 (core_close): Delete references to `core_has_fake_pid'.
6248 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6249 (core_open): Delete references to `core_has_fake_pid'.
6250 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6253 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6255 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6256 Remove language parameter from name_matcher. Adjust the comment.
6257 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6258 Remove language parameter.
6259 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6260 * linespec.c (iterate_name_matcher): Likewise.
6261 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6262 name_matcher. Adjust call accordingly.
6263 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6264 (maintenance_check_symtabs): Adjust type of parameter "fun".
6265 * psymtab.h (maintenance_check_symtabs): Likewise.
6267 2012-01-26 Joel Brobecker <brobecker@adacore.com>
6269 * language.h (symbol_name_match_p_ftype): New typedef.
6270 (struct language_defn): Replace field la_symbol_name_compare
6271 by la_get_symbol_name_match_p.
6272 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6273 (ada_language_defn): Use it.
6274 * linespec.c (struct symbol_matcher_data): New type.
6275 (iterate_name_matcher): Rewrite.
6276 (iterate_over_all_matching_symtabs): Pass a pointer to
6277 a symbol_matcher_data struct to expand_symtabs_matching
6278 instead of just the lookup name.
6279 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6280 opencl-lang.c, p-lang.c, language.c: Delete field
6281 la_symbol_name_compare, and replace by NULL for new field
6282 la_get_symbol_name_match_p.
6283 * symfile.h (struct quick_symbol_functions): Update comment.
6285 2012-01-25 Tom Tromey <tromey@redhat.com>
6287 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6290 2012-01-24 Tom Tromey <tromey@redhat.com>
6293 * solib.c (update_solib_list): Update the program space's
6294 added_solibs and deleted_solibs fields.
6295 * progspace.h (struct program_space) <added_solibs,
6296 deleted_solibs>: New fields.
6297 (clear_program_space_solib_cache): Declare.
6298 * progspace.c (release_program_space): Call
6299 clear_program_space_solib_cache.
6300 (clear_program_space_solib_cache): New function.
6301 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6302 bpstat_stop_status. Use handle_solib_event.
6303 * breakpoint.c: Include gdb_regex.h.
6304 (print_solib_event): New function.
6305 (bpstat_print): Use print_solib_event.
6306 (bpstat_stop_status): Add special case for bp_shlib_event.
6307 (handle_solib_event): New function.
6308 (bpstat_what): Use handle_solib_event.
6309 (struct solib_catchpoint): New.
6310 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6311 (breakpoint_hit_catch_solib, check_status_catch_solib)
6312 (print_it_catch_solib, print_one_catch_solib)
6313 (print_mention_catch_solib, print_recreate_catch_solib): New
6315 (catch_solib_breakpoint_ops): New global.
6316 (catch_load_or_unload, catch_load_command_1)
6317 (catch_unload_command_1): New functions.
6318 (internal_bkpt_check_status): Add special case for
6320 (internal_bkpt_print_it): Use print_solib_event.
6321 (initialize_breakpoint_ops): Initialize
6322 catch_solib_breakpoint_ops.
6323 (_initialize_breakpoint): Register "catch load" and "catch
6325 * breakpoint.h (handle_solib_event): Declare.
6326 * NEWS: Add entry for "catch load" and "catch unload".
6328 2012-01-24 Tom Tromey <tromey@redhat.com>
6330 * ada-lang.c: Include gdb_vecs.h.
6331 * charset.c: Include gdb_vecs.h.
6332 * tracepoint.h: Include gdb_vecs.h.
6333 * gdb_vecs.h: New file.
6335 2012-01-24 Pedro Alves <pedro@codesourcery.com>
6337 * breakpoint.c (breakpoint_hit_catch_fork)
6338 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6339 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6340 * infrun.c (inferior_has_forked, inferior_has_vforked)
6341 (inferior_has_execd, inferior_has_called_syscall): Delete.
6342 (handle_syscall_event): Get syscall_number from the execution
6343 control state's wait status.
6344 (wait_for_inferior): Don't clear syscall_number.
6346 2012-01-24 Pedro Alves <palves@redhat.com>
6348 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6349 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6350 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6351 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6353 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6354 false for events other than TARGET_SIGNAL_TRAP.
6355 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6357 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6358 events other than TARGET_SIGNAL_TRAP.
6359 (tracepoint_breakpoint_hit): Add `ws' parameter.
6360 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6362 (bpstat_stop_status): Same.
6363 (pc_at_non_inline_function): Same.
6364 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6365 to pass the current event's waitstatus to bpstat_stop_status
6366 and pc_at_non_inline_function.
6368 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6371 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6372 Update the function comment for it.
6373 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6374 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6377 2012-01-24 Pedro Alves <palves@redhat.com>
6379 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6380 outside `bs->stop' block.
6381 (bpstat_what): Rework bp_shlib_event handling.
6382 (internal_bkpt_check_status): If the breakpoint is a
6383 bp_shlib_event, then set bs->stop and bs->print if
6384 stop_on_solib_events is set.
6386 2012-01-24 Gary Benson <gbenson@redhat.com>
6388 Delete #if 0'd out code.
6389 * stack.c (print_frame_label_vars): Remove.
6390 (catch_info): Likewise.
6391 (_initialize_stack): Remove "info catch" command.
6392 * NEWS: Mention the above.
6394 2012-01-24 Pedro Alves <palves@redhat.com>
6396 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6398 (remote_notice_new_inferior): If the remote end doesn't support
6399 the multiprocess extensions, then the PID is fake.
6400 (add_current_inferior_and_thread): New.
6401 (remote_start_remote): Use it.
6402 (extended_remote_attach_1): Adjust.
6403 (extended_remote_create_inferior_1): Use
6404 add_current_inferior_and_thread.
6406 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6408 Fix watchpoints to be specific for each inferior.
6409 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6410 current_program_space.
6411 * i386-nat.c (i386_inferior_data_cleanup): New.
6412 (i386_inferior_data_get): Replace variable inf_data_local by an
6414 (i386_use_watchpoints): Initialize i386_inferior_data.
6415 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6416 specific iterate_over_lwps.
6418 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6420 Fix watchpoints across inferior fork.
6421 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6422 comment for linux_nat_iterate_watchpoint_lwps.
6423 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6424 linux_nat_iterate_watchpoint_lwps.
6425 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6426 * i386-linux-nat.c (update_debug_registers_callback): Update the
6427 comment for linux_nat_iterate_watchpoint_lwps.
6428 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6429 linux_nat_iterate_watchpoint_lwps.
6430 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6431 * i386-nat.c: Include inferior.h.
6432 (dr_mirror): Remove.
6433 (i386_inferior_data, struct i386_inferior_data)
6434 (i386_inferior_data_get): New.
6435 (i386_debug_reg_state): Use i386_inferior_data_get.
6436 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6437 (i386_insert_watchpoint, i386_remove_watchpoint)
6438 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6439 (i386_remove_hw_breakpoint): New variable state, use
6440 i386_debug_reg_state instead of DR_MIRROR.
6441 * linux-nat.c (delete_lwp): New declaration.
6442 (num_lwps): Move here from downwards.
6443 (delete_lwp_cleanup): New.
6444 (linux_child_follow_fork): Create new child_lp, call
6445 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6447 (num_lwps): Move upwards.
6448 (linux_nat_iterate_watchpoint_lwps): New.
6449 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6450 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6452 2012-01-24 Joel Brobecker <brobecker@adacore.com>
6456 2012-01-23 Pedro Alves <palves@redhat.com>
6458 * top.c (caution): Rename to ...
6459 (confirm): ... this.
6460 (show_caution): Rename to ...
6461 (show_confirm): ... this.
6462 (quit_cover): Adjust.
6463 (init_main): Adjust.
6464 * top.h (caution): Rename to ...
6465 (confirm): ... this.
6466 * utils.c (internal_vproblem, defaulted_query): Adjust.
6468 2012-01-23 Pedro Alves <palves@redhat.com>
6470 * top.c (caution): Update comment.
6471 (execute_command): Don't consider the current value of `caution'.
6473 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6475 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6477 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6479 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6480 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6481 * target.c (target_fileio_pwrite): Remove buffer address from
6483 (target_fileio_pread): Likewise.
6485 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6487 * NEWS: Document remote "info proc" and "generate-core-file".
6489 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6491 * gdbarch.sh (find_memory_regions): New callback.
6492 * gdbarch.c, gdbarch.h: Regenerate.
6494 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6495 callback before falling back to target method.
6497 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6498 (linux_target_install_ops): No longer install it.
6500 * linux-tdep.c (linux_find_memory_regions): New function.
6501 (linux_init_abi): Install it.
6503 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6505 * gdbarch.sh (make_corefile_notes): New architecture callback.
6506 * gdbarch.c: Regenerate.
6507 * gdbarch.h: Likewise.
6509 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6510 before target_make_corefile_notes. If NULL is returned, the
6511 target does not support core file generation.
6513 * linux-nat.c: Include "linux-tdep.h".
6514 (find_signalled_thread, find_stop_signal): Remove.
6515 (linux_nat_do_thread_registers): Likewise.
6516 (struct linux_nat_corefile_thread_data): Likewise.
6517 (linux_nat_corefile_thread_callback): Likewise.
6518 (iterate_over_spus): Likewise.
6519 (struct linux_spu_corefile_data): Likewise.
6520 (linux_spu_corefile_callback): Likewise.
6521 (linux_spu_make_corefile_notes): Likewise.
6522 (linux_nat_collect_thread_registers): New function.
6523 (linux_nat_make_corefile_notes): Replace contents by call to
6524 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6525 as native-only callback.
6527 * linux-tdep.h: Include "bfd.h".
6528 (struct regcache): Add forward declaration.
6529 (linux_collect_thread_registers_ftype): New typedef.
6530 (linux_make_corefile_notes): Add prototype.
6531 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6532 "regset.h", and "elf-bfd.h".
6533 (find_signalled_thread, find_stop_signal): New functions.
6534 (linux_spu_make_corefile_notes): Likewise.
6535 (linux_collect_thread_registers): Likewise.
6536 (struct linux_corefile_thread_data): New data structure.
6537 (linux_corefile_thread_callback): New funcion.
6538 (linux_make_corefile_notes): Likewise.
6539 (linux_make_corefile_notes_1): Likewise.
6540 (linux_init_abi): Install it.
6542 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6544 * gdbarch.sh (info_proc): New callback.
6545 * gdbarch.c, gdbarch.h: Regenerate.
6547 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6548 before falling back to the target info_proc callback.
6550 * linux-nat.c: Do not include "cli/cli-utils.h".
6551 (linux_nat_info_proc): Remove.
6552 (linux_target_install_ops): No longer install it.
6554 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6555 (read_mapping): New function.
6556 (linux_info_proc): Likewise.
6557 (linux_init_abi): Install it.
6559 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6561 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6562 * infcmd.c: (info_proc_cmd_1): New function.
6563 (info_proc_cmd): New function, moved here from equivalent routine
6564 orignally in linux-nat.c.
6565 (info_proc_cmd_mappings): Likewise.
6566 (info_proc_cmd_stat): Likewise.
6567 (info_proc_cmd_status): Likewise.
6568 (info_proc_cmd_cwd): Likewise.
6569 (info_proc_cmd_cmdline): Likewise.
6570 (info_proc_cmd_exe): Likewise.
6571 (info_proc_cmd_all): Likewise.
6572 (_initialize_infcmd): Install "info proc" command and subcommands.
6574 * target.h (struct target_ops): Add to_info_proc.
6575 (target_info_proc): Add prototype.
6576 * target.c (target_info_proc): New function.
6578 * procfs.c (procfs_info_proc): Add prototype.
6579 (info_proc_cmd): Rename into ...
6580 (procfs_info_proc): ... this. Update argument types as appropriate
6581 for a to_info_proc implementation. Handle "what" argument.
6582 (procfs_target): Install procfs_info_proc.
6583 (_initialize_procfs): No longer install "info proc" command.
6585 * linux-nat.c: (enum info_proc_what): Remove.
6586 (linux_nat_info_proc_cmd_1): Rename into ...
6587 (linux_nat_info_proc): ... this. Update argument types as appropriate
6588 for a to_info_proc implementation.
6589 (linux_nat_info_proc_cmd): Remove.
6590 (linux_nat_info_proc_cmd_mappings): Likewise.
6591 (linux_nat_info_proc_cmd_stat): Likewise.
6592 (linux_nat_info_proc_cmd_status): Likewise.
6593 (linux_nat_info_proc_cmd_cwd): Likewise.
6594 (linux_nat_info_proc_cmd_cmdline): Likewise.
6595 (linux_nat_info_proc_cmd_exe): Likewise.
6596 (linux_nat_info_proc_cmd_all): Likewise.
6597 (linux_target_install_ops): Install linux_nat_info_proc.
6598 (_initialize_linux_nat): No longer install "info proc" command
6601 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6603 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6604 * config.in, configure: Regenerate.
6606 * target.h (struct target_ops): Add to_fileio_readlink.
6607 (target_fileio_readlink): Add prototype.
6608 * target.c (target_fileio_readlink): New function.
6610 * inf-child.c: Conditionally include <sys/param.h>.
6611 (inf_child_fileio_readlink): New function.
6612 (inf_child_target): Install it.
6614 * remote.c (PACKET_vFile_readlink): New enum value.
6615 (remote_hostio_readlink): New function.
6616 (init_remote_ops): Install it.
6617 (_initialize_remote): Handle vFile:readlink packet type.
6619 2012-01-20 Pedro Alves <palves@redhat.com>
6620 Ulrich Weigand <ulrich.weigand@linaro.org>
6622 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6623 * config.in, configure: Regenerate.
6625 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6626 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6627 (target_fileio_open): Add prototype.
6628 (target_fileio_pwrite): Likewise.
6629 (target_fileio_pread): Likewise.
6630 (target_fileio_close): Likewise.
6631 (target_fileio_unlink): Likewise.
6632 (target_fileio_read_alloc): Likewise.
6633 (target_fileio_read_stralloc): Likewise.
6635 * target.c: Include "gdb/fileio.h".
6636 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6637 (default_fileio_target): New function.
6638 (target_fileio_open): Likewise.
6639 (target_fileio_pwrite): Likewise.
6640 (target_fileio_pread): Likewise.
6641 (target_fileio_close): Likewise.
6642 (target_fileio_unlink): Likewise.
6643 (target_fileio_close_cleanup): Likewise.
6644 (target_fileio_read_alloc_1): Likewise.
6645 (target_fileio_read_alloc): Likewise.
6646 (target_fileio_read_stralloc): Likewise.
6648 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6649 <fcntl.h>, and <unistd.h>.
6650 (inf_child_fileio_open_flags_to_host): New function.
6651 (inf_child_errno_to_fileio_error): Likewise.
6652 (inf_child_fileio_open): Likewise.
6653 (inf_child_fileio_pwrite): Likewise.
6654 (inf_child_fileio_pread): Likewise.
6655 (inf_child_fileio_close): Likewise.
6656 (inf_child_fileio_unlink): Likewise.
6657 (inf_child_target): Install to_fileio routines.
6659 * remote.c (init_remote_ops): Install to_fileio routines.
6661 2012-01-20 Pedro Alves <palves@redhat.com>
6662 Ulrich Weigand <ulrich.weigand@linaro.org>
6664 * remote.c (remote_multi_process_p): Only check for multi-process
6665 protocol feature, do not check for extended protocol.
6666 (remote_supports_multi_process): Check for extended protocol here.
6667 (set_general_process): Likewise.
6668 (extended_remote_kill): Likewise.
6669 (remote_pid_to_str): Likewise.
6670 (remote_query_supported): Always query multiprocess mode.
6672 2012-01-20 Pedro Alves <palves@redhat.com>
6673 Ulrich Weigand <ulrich.weigand@linaro.org>
6675 * inferior.h (struct inferior): Add fake_pid_p.
6676 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6677 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6678 magic_null_ptid since the remote side doesn't provide a real PID.
6680 2012-01-19 Tom Tromey <tromey@redhat.com>
6682 * NEWS: Combine the two Python sections.
6684 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6686 * target.h (target_close): Update comment on the target's unpush state.
6688 2012-01-19 Pedro Alves <palves@redhat.com>
6690 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6691 linux_nat_async directly instead of going through the target
6693 * target.c (unpush_target): Close target after unpushing it, not
6696 2012-01-19 Gary Benson <gbenson@redhat.com>
6698 * mdebugread.c (sort_blocks): Replace integer constants with ones
6699 derived from FIRST_LOCAL_BLOCK.
6701 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
6702 Jan Kratochvil <jan.kratochvil@redhat.com>
6705 * symfile.c (find_separate_debug_file): New function.
6706 (terminate_after_last_dir_separator): Likewise.
6707 (find_separate_debug_file_by_debuglink): Also try realpath.
6708 * configure.ac (AC_CHECK_FUNCS): Add lstat.
6709 * configure: Regenerate.
6710 * config.in: Regenerate.
6712 2012-01-18 Doug Evans <dje@google.com>
6714 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
6715 (main.o): Remove rule.
6716 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
6717 (--with-sysroot): Rewrite.
6718 * configure: Regenerate.
6719 * config.in: Regenerate.
6721 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
6723 * parse.c (initialize_expout): New function.
6724 (reallocate_expout): Likewise.
6725 (parse_exp_in_context): Use `initialize_expout' and
6726 `reallocate_expout' when appropriate.
6728 2012-01-18 Pedro Alves <palves@redhat.com>
6730 * record.c (struct record_breakpoint, record_breakpoint_p)
6731 (record_breakpoints): New.
6732 (record_insert_breakpoint, record_remove_breakpoint): Manage
6733 record breakpoints list. Only remove breakpoints from the
6734 inferior if they had been inserted there in the first place.
6736 2012-01-17 Doug Evans <dje@google.com>
6738 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
6739 if we know we don't have a file name to look for.
6741 2012-01-17 Pedro Alves <palves@redhat.com>
6743 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
6744 the frame's stop reason is UNWIND_UNAVAILABLE.
6746 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6748 Fix compilation error.
6749 * m2-exp.y (yyerror): Use ANSI C prototype.
6751 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6753 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
6754 (growbuf_by_size): Likewise.
6755 (yyerror): Likewise.
6756 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
6757 (modblock): Remove variable (was #if 0'ed).
6758 (parse_number): Convert prototype from K&R to ANSI C.
6759 (yyerror): Likewise.
6760 * objc-exp.y (parse_number): Likewise.
6761 (yyerror): Likewise.
6762 (yylex): Remove #if 0'ed code.
6763 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
6764 (yyerror): Likewise.
6766 2012-01-16 Tom Tromey <tromey@redhat.com>
6769 * symtab.h (compare_filenames_for_search): Declare.
6770 * symtab.c (compare_filenames_for_search): New function.
6771 (iterate_over_some_symtabs): Use it.
6772 * symfile.h (struct quick_symbol_functions)
6773 <map_symtabs_matching_filename>: Change spec.
6774 * psymtab.c (partial_map_symtabs_matching_filename): Use
6775 compare_filenames_for_search. Update for new spec.
6776 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
6777 compare_filenames_for_search. Update for new spec.
6778 * breakpoint.c (clear_command): Use compare_filenames_for_search.
6780 2012-01-16 Tom Tromey <tromey@redhat.com>
6783 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
6784 (struct main_type) <flag_flag_enum>: New field.
6785 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
6786 * NEWS: Add entries.
6787 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
6789 * python/lib/gdb/printing.py (_EnumInstance): New class.
6790 (FlagEnumerationPrinter): Likewise.
6792 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6794 * breakpoint.c (create_sals_from_address_default): New function.
6795 (create_breakpoints_sal_default): Likewise.
6796 (decode_linespec_default): Likewise.
6797 (is_marker_spec): Removed.
6798 (strace_marker_p): New function.
6799 (init_breakpoint_sal): Using `strace_marker_p' instead of
6801 (create_breakpoint): Call method `create_sals_from_address' from
6802 breakpoint_ops, replacing code that created SALs conditionally
6803 on the type of the breakpoint. Call method `create_breakpoints_sal',
6804 replacing code that created breakpoints conditionally on the type
6806 (base_breakpoint_create_sals_from_address): New function.
6807 (base_breakpoint_create_breakpoints_sal): Likewise.
6808 (base_breakpoint_decode_linespec): Likewise.
6809 (base_breakpoint_ops): Add methods
6810 `base_breakpoint_create_sals_from_address',
6811 `base_breakpoint_create_breakpoints_sal' and
6812 `base_breakpoint_decode_linespec'.
6813 (bkpt_create_sals_from_address): New function.
6814 (bkpt_create_breakpoints_sal): Likewise.
6815 (bkpt_decode_linespec): Likewise.
6816 (tracepoint_create_sals_from_address): Likewise.
6817 (tracepoint_create_breakpoints_sal): Likewise.
6818 (tracepoint_decode_linespec): Likewise.
6819 (strace_marker_create_sals_from_address): Likewise.
6820 (strace_marker_create_breakpoints_sal): Likewise.
6821 (strace_marker_decode_linespec): Likewise.
6822 (strace_marker_breakpoint_ops): New variable.
6823 (addr_string_to_sals): Remove `marker_spec'. Call method
6824 `decode_linespec' from breakpoint_ops, replacing code that decoded
6825 an address string into a SAL. Use `strace_marker_p' instead of
6827 (strace_command): Decide whether we are dealing with a static
6828 tracepoint with marker or not. Use the appropriate breakpoint_ops.
6829 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
6830 * breakpoint.h (linespec_result, linespec_sals): New forward
6832 (breakpoint_ops) <create_sals_from_address>,
6833 <create_breakpoints_sal>, <decode_linespec>: New methods.
6835 2012-01-14 Doug Evans <dje@google.com>
6837 * NEWS: Update text for "maint set python print-stack".
6838 It is deprecated in gdb 7.4 and deleted in 7.5.
6840 2012-01-13 Eli Zaretskii <eliz@gnu.org>
6842 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
6845 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6847 * configure: Regenerate.
6848 * config.in: Regenerate.
6850 2012-01-12 Keith Seitz <keiths@redhat.com>
6853 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
6854 (ANONYMOUS_UNION_NAME): Define.
6855 (is_path_expr_parent): New function.
6856 (get_path_expr_parent): New function.
6857 (is_anonymous_child): New function.
6858 (create_child_with_value): If the child is anonymous and without
6859 a name, assign an object name to it.
6860 (c_describe_child): Use get_path_expr_parent to determine
6861 the parent expression.
6862 If there field represents an anonymous struct or union and
6863 has no name, set an appropriate display name and expression.
6864 (cplus_describe_child): Likewise.
6866 2012-01-12 Pedro Alves <palves@redhat.com>
6868 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
6869 available when %ebp is found to be zero (outermost).
6871 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
6873 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
6874 an internal gdb_static_assert.
6875 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
6877 2012-01-11 Tom Tromey <tromey@redhat.com>
6880 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
6881 catch" and "catch throw".
6883 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
6885 * blockframe.c (block_innermost_frame): Start search from selected
6886 frame, if present, or otherwise the current frame.
6888 * c-exp.y (variable): Update innermost_block for
6889 'block COLONCOLON NAME' clause.
6890 * m2-exp.y (variable): Ditto.
6891 * objc-exp.y (variable): Ditto.
6893 2012-01-10 Tom Tromey <tromey@redhat.com>
6896 * python/python.c (finish_python_initialization): Set sys.argv.
6898 2012-01-10 Doug Evans <dje@google.com>
6900 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
6901 "want_line_info". All callers updated.
6902 (dwarf_decode_lines_1): New function.
6903 (handle_DW_AT_stmt_list): Add function comment.
6904 New arg "want_line_info". All callers updated.
6905 (read_file_scope,read_type_unit_scope): Move comment from
6906 handle_DW_AT_stmt_list to here.
6908 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6910 Fix regression after libiberty/ update for GCC PR 6057 and others.
6911 * c-exp.y (operator) <OPERATOR DELETE>
6912 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6913 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
6914 (make_builtin_type, make_name): New variable i, add gdb_assert.
6915 (operator) <OPERATOR NEW>: Update ARGS to 3.
6916 (operator) <OPERATOR DELETE>: Add trailing space.
6917 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
6918 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6919 * cp-support.c (cp_canonicalize_string): Check NULL from
6920 cp_comp_to_string, call warning and return.
6922 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6924 Fix duplicate .o files after omitting libbfd.a.
6925 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
6926 (SFILES): Add corelow.c.
6927 (COMMON_OBS): Add corelow.o.
6928 (ALLDEPFILES): Remove corelow.c.
6929 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
6930 * config/alpha/alpha-osf3.mh: Likewise.
6931 * config/alpha/fbsd.mh: Likewise.
6932 * config/arm/nbsdaout.mh: Likewise.
6933 * config/arm/nbsdelf.mh: Likewise.
6934 * config/i386/i386gnu.mh: Likewise.
6935 * config/ia64/hpux.mh: Likewise.
6936 * config/ia64/linux.mh: Likewise.
6937 * config/m32r/linux.mh: Likewise.
6938 * config/m68k/linux.mh: Likewise.
6939 * config/mips/irix5.mh: Likewise.
6940 * config/mips/irix6.mh: Likewise.
6941 * config/pa/hpux.mh: Likewise.
6942 * config/pa/linux.mh: Likewise.
6943 * config/powerpc/aix.mh: Likewise.
6944 * config/sparc/linux.mh: Likewise.
6945 * config/sparc/linux64.mh: Likewise.
6946 * config/sparc/sol2.mh: Likewise.
6947 * config/vax/vax.mh: Likewise.
6948 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
6949 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
6950 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
6951 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
6952 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
6953 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
6954 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
6955 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
6956 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
6957 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
6958 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
6959 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
6960 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6961 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
6962 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
6963 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6964 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
6965 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
6966 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
6967 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
6968 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
6969 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
6970 corelow.o from gdb_target_obs.
6971 * corefile.c (core_target): Update the comment on NULL value.
6972 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
6973 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
6974 MATCHES. Drop YUMMY set on NULL.
6975 (core_close): Do not call exit_inferior_silent on zero PID. Do not
6976 reclaim CORE_DATA if it is already NULL.
6978 2012-01-09 Doug Evans <dje@google.com>
6980 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
6981 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
6983 2012-01-09 Keith Seitz <keiths@redhat.com>
6985 * breakpoint.c (wrapper.h): Don't include.
6987 2012-01-09 Keith Seitz <keiths@redhat.com>
6989 * Makefile.in (SFILES): Remove wrapper.c.
6990 (HFILES_NO_SRCDIR): Remove wrapper.h.
6991 (COMMON_OBS): Remove wrapper.o.
6992 * cli/cli-interp.c: Don't inlude wrapper.h.
6993 * corelow.c: Likewise.
6994 (core_open): Replace gdb_target_find_new_threads with
6995 TRY_CATCH around target_find_new_threads.
6996 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
6997 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
6998 * varobj.c (varobj_create): Likewise for parse_exp_1 and
6999 evaluate_expression.
7000 (varobj_set_value): Likewise for evaluate_expression and
7002 (install_new_variable): Likewise for value_fetch_lazy.
7003 (adjust_value_for_child_access): Likewise for value_ind.
7004 (c_describe_child): Likewise for value_subscript and
7006 (c_value_of_root): Likewise for evaluate_expression.
7007 * wrapper.c: Remove.
7008 * wrapper.h: Remove.
7010 2012-01-09 Doug Evans <dje@google.com>
7012 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
7013 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
7014 "abfd" args with "section". All callers updated.
7015 Error checking code moved ...
7016 (error_check_comp_unit_head): ... here. New function.
7017 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
7018 Delete arg "abfd". New arg "type_offset". All callers updated.
7019 (create_debug_types_hash_table): Simplify by using
7020 read_and_check_type_unit_head.
7022 * parser-defs.h (namecopy): Delete.
7023 * parse.c (namecopy, namecopy_size): Move into copy_name.
7025 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7027 Partially fix duplicate .o files after omitting libbfd.a.
7028 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
7029 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7030 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
7031 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7032 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
7033 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
7034 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7036 2012-01-09 Pedro Alves <palves@redhat.com>
7038 * MAINTAINERS: Update my email address.
7040 2012-01-08 Doug Evans <dje@google.com>
7042 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
7043 n_type_units. Rename type_comp_units to all_type_units.
7045 (add_signatured_type_cu_to_table): Renamed from
7046 add_signatured_type_cu_to_list. All callers updated.
7048 * gdbtypes.h (struct cplus_struct_type): Delete member
7049 nfn_fields_total. All uses removed.
7051 2012-01-06 Doug Evans <dje@google.com>
7053 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7055 (dwarf2_find_comp_unit): Delete.
7056 (process_psymtab_comp_unit): Make result "void".
7057 Delete args buffer, info_ptr, buffer_size, and replace with
7058 "section". All callers updated.
7059 (dwarf2_build_psymtabs_hard): Simplify.
7061 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
7062 Thiago Jung Bauermann <bauerman@br.ibm.com>
7064 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7065 before `struct gdb_exception'.
7066 * breakpoint.c (update_global_location_list_nothrow)
7067 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7068 * cp-abi.c (value_rtti_type): Likewise.
7069 * cp-support.c (cp_validate_operator): Likewise.
7070 * infrun.c (insert_exception_resume_breakpoint)
7071 (check_exception_resume, keep_going): Likewise.
7072 * mi-interp.c (mi_breakpoint_created)
7073 (mi_breakpoint_modified): Likewise.
7074 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7075 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7076 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7078 2012-01-05 Doug Evans <dje@google.com>
7080 * dwarf2read.c (statement_prologue): Delete, unused.
7082 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7083 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7085 * dwarf2read.c (comp_unit_header): Delete, unused.
7087 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
7089 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7090 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7092 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
7094 * infrun.c (normal_stop): Don't skip calling the normal_stop
7095 observers if the thread was doing a multi-step, but stopped for
7096 some reason other than stepping.
7098 2012-01-05 Pedro Alves <alves.ped@gmail.com>
7100 * cli/cli-decode.h: Add comments.
7101 (CMD_LIST_AMBIGUOUS): Moved to command.h
7102 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7103 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7104 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7105 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7106 (add_com, add_com_alias, add_info, add_info_alias)
7107 (complete_on_cmdlist, complete_on_enum, help_list): Remove
7109 * command.h: Add and adjust comments.
7110 (CMD_LIST_AMBIGUOUS): Moved here.
7111 (help_cmd, help_cmd_list): Delete declarations.
7113 2012-01-04 Doug Evans <dje@google.com>
7115 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7116 All callers updated.
7117 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7118 Replace all arguments with "per_cu". All callers updated.
7120 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7122 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7123 New arg "per_cu". All callers updated.
7125 Delete #if 0'd out code.
7126 * language.c (binop_result_type): Delete.
7127 (simple_type, ordered_type, same_type, integral_type): Delete.
7128 (numeric_type, character_type, string_type, boolean_type): Delete.
7129 (float_type, structured_type): Delete.
7130 * language.h: Update.
7132 2012-01-04 Tom Tromey <tromey@redhat.com>
7134 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7136 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7138 * corefile.c (close_exec_file): Delete.
7139 (reopen_exec_file): Remove commented out code that seems related
7140 to close_exec_file, which is being deleted here.
7141 * inferior.h (close_exec_file): Delete.
7142 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7144 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7146 * ada-lang.c: #include "cli/cli-utils.h".
7147 (get_selections): Use skip_spaces.
7148 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7149 (catch_ada_exception_command_split): Use skip_spaces.
7150 (ada_decode_assert_location): Likewise.
7152 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7154 * linespec.c (decode_line_internal): Check for C++ or Java
7155 compound constructs only if the current language is C, C++
7158 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7161 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7162 Joel Brobecker <brobecker@adacore.com>
7163 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7164 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7166 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7167 fall through into AT_ENTRY_POINT.
7168 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7170 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7171 PPC_INSN_SIZE skip to 3 times.
7173 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7175 * linespec.c (add_minsym): Preserve function descriptors.
7177 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7179 * breakpoint.c (all_locations_are_pending): Consider locations
7180 in program spaces executing during startup pending as well.
7182 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7184 Copyright year update in most files of the GDB Project.
7186 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7188 * copyright.sh: Delete.
7189 * copyright.py: Rewrite.
7191 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7193 * gnulib/extra/update-copyright: New file, imported from gnulib.
7195 2012-01-04 Joel Brobecker <brobecker@adacore.com>
7197 * README (Copyright and License Notices): New section.
7199 2012-01-03 Tom Tromey <tromey@redhat.com>
7202 * python/py-value.c (valpy_dereference, valpy_get_address
7203 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7204 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7205 (valpy_absolute, valpy_richcompare): Free intermediate values.
7207 2011-01-03 Joel Brobecker <brobecker@adacore.com>
7209 * ada-lang.c: Reformat the copyright notice.
7211 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7213 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7214 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7215 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7216 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7217 Revert this part of:
7218 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7219 Build gdb directly from *.o files not using libgdb.a.
7220 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7222 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7224 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7225 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7226 Reformat the copyright header.
7228 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7230 Revert this part of:
7231 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7232 Remove the gdbtui binary.
7233 * gdb.c (main): Remove args.interpreter_p initialization.
7234 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7235 * main.h (struct captured_main_args): Remove interpreter_p.
7237 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7239 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7241 2012-01-02 Joel Brobecker <brobecker@adacore.com>
7243 * top.c (print_gdb_version): Update copyright year.
7245 2012-01-02 Yao Qi <yao@codesourcery.com>
7247 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7249 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7250 Joel Brobecker <brobecker@adacore.com>
7252 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7253 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7255 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7256 fall through into AT_ENTRY_POINT.
7257 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7259 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7260 PPC_INSN_SIZE skip to 3 times.
7262 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7264 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7266 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7268 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7270 Build gdb directly from *.o files not using libgdb.a.
7271 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7272 (COMMON_OBS): Remove solib-target.o.
7273 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7274 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7275 (LIBGDB_OBS, libgdb.a): Move it above.
7276 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7277 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7278 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7279 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7280 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7281 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7282 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7283 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7284 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7285 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7286 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7287 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7288 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7289 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7290 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7291 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7292 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7293 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7294 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7295 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7296 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7297 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7298 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7299 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7300 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7301 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7302 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7304 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7306 Remove the gdbtui binary.
7307 * .gitignore (/gdbtui): Remove.
7308 * Makefile.in (TUI): Remove.
7309 (SUBDIR_TUI_OBS): Remove tui-main.o.
7310 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7311 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7312 (tui-main.o): Remove.
7313 (all_object_files): Remove tui-main.o.
7314 * NEWS: New note for the gdbtui removal.
7315 * configure: Rebuilt.
7316 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7317 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7318 CONFIG_UNINSTALL respectively.
7319 * gdb.c (main): Remove args.interpreter_p initialization.
7320 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7321 * main.h (struct captured_main_args): Remove interpreter_p.
7322 * tui/tui-main.c: Remove.
7324 2012-01-01 Doug Evans <dje@google.com>
7326 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7327 (dwarf2_physname, read_import_statement): Ditto.
7328 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7329 (process_structure_scope read_subroutine_type): Ditto.
7330 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7331 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7332 (dwarf2_fetch_die_location_block): Ditto.
7333 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7335 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7336 All callers updated.
7337 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7338 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7339 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7341 * dwarf2read.c (load_cu): Move assert to more useful location.
7343 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7344 All callers updated.
7346 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7347 (dwarf2_elf_names): Minor reformat.
7348 (dwarf2_per_cu_data): Tweak comment.
7349 (dwarf2_read_section): Fix comment.
7350 (create_all_comp_units): Fix comment.
7351 (load_full_comp_unit): Fix comment.
7352 (process_full_comp_unit): Fix comment.
7353 (read_signatured_type): Fix comment.
7355 For older changes see ChangeLog-2011.
7361 version-control: never