1 2012-06-11 Pedro Alves <palves@redhat.com>
3 * serial.c (do_serial_close): Remove early return when SCB is
6 2012-06-11 Tom Tromey <tromey@redhat.com>
8 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
10 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
12 Fix regression by the "ambiguous linespec" series.
13 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
14 get_last_displayed_symtab and get_last_displayed_line and depending
17 2012-06-11 Tom Tromey <tromey@redhat.com>
19 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
20 (dw2_find_symbol_file): Use it.
22 2012-06-11 Michael Eager <eager@eagercon.com>
24 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
25 * mips-linux-tdep.h (mips_signals): New
27 2012-06-11 Tom Tromey <tromey@redhat.com>
29 * infrun.c (handle_inferior_event)
30 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
32 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
33 exception logic in all cases. Update comments.
34 (insert_longjmp_resume_breakpoint): Set the exception resume
37 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
39 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
41 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
43 * valarith.c (binop_types_user_defined_p): Fix a typo.
45 2012-06-08 Yao Qi <yao@codesourcery.com>
46 Chung-Lin Tang <cltang@codesourcery.com>
48 * arch-utils.c (default_return_in_first_hidden_param_p): New.
49 * arch-utils.h: Declare.
50 * gdbarch.sh: Add return_in_first_hidden_param_p.
51 * gdbarch.c, gdbarch.h: Regenerated.
52 * infcall.c (call_function_by_hand): Call
53 gdbarch_return_in_first_hidden_param_p instead of
54 language_pass_by_reference.
56 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
57 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
58 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
59 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
60 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
61 `cplus_return_struct_by_reference'.
62 (tic6x_return_value): Handle language cplusplus.
63 (tic6x_return_in_first_hidden_param_p): New.
64 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
66 2012-06-07 Doug Evans <dje@google.com>
68 * dwarf2read.c (dwarf2_cu): Add comment.
70 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
72 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
74 (mips_eabi_push_dummy_call): Likewise.
75 (mips_n32n64_push_dummy_call): Likewise.
76 (mips_o32_push_dummy_call): Likewise.
77 (mips_o64_push_dummy_call): Likewise.
79 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
81 * mips-tdep.c (mips_convert_register_p): Correct coding style.
83 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
85 * mips-tdep.c (mips_pseudo_register_type): Use
86 mips_float_register_p.
88 2012-06-06 Pedro Alves <palves@redhat.com>
90 * infrun.c (handle_inferior_event): Remove calls to
91 reinit_frame_cache that follow a context_switch call.
93 2012-06-06 Pedro Alves <palves@redhat.com>
95 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
96 context_switch and remove stale comment.
98 2012-06-06 Pedro Alves <palves@redhat.com>
100 * infrun.c (struct execution_control_state): Remove
101 `new_thread_event' field.
102 (handle_inferior_event): Simplify new threads handling; don't
103 resume the inferior if we find a new thread.
105 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
107 * NEWS: Document the deprecation of SH's 'regs' command.
108 * inferior.h (all_registers_info): Add function declaration.
109 * sh-tdep.c (sh_show_regs): Remove variable.
110 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
111 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
112 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
113 (sh_show_regs_command): Remove functions.
114 (sh_gdbarch_init): Don't set sh_show_regs.
115 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
116 'info all-registers'.
117 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
118 (sh64_show_regs): Remove functions.
119 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
121 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
123 * configure.ac: Move development=true below AC_INIT.
124 * configure: Regenerate.
126 2012-06-05 Stan Shebs <stan@codesourcery.com>
128 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
131 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
133 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
135 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
136 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
137 * target.c (target_read_stack, target_write_memory)
138 (target_write_raw_memory): Likewise.
139 * target.h (target_read_stack, target_write_memory)
140 (target_write_raw_memory): Likewise.
142 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
144 * symfile-mem.c: Change gdb_static_assert to ssize_t.
145 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
146 * target.c (target_read_memory): Change LEN to ssize_t.
147 * target.h (target_read_memory): Change LEN to ssize_t.
149 2012-06-05 Pedro Alves <palves@redhat.com>
153 * breakpoint.c (until_break_command): Only fetch the selected
154 frame after decode_line_1.
156 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
158 * solib-svr4.c (enable_break): Don't fallback to setting the solib
159 event breakpoint at _start, __start or main if a program
160 interpreter is not found.
162 2012-06-05 Joel Brobecker <brobecker@adacore.com>
164 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
166 * windows-tdep.c: #include "objfiles.h".
167 (windows_iterate_over_objfiles_in_search_order): New function.
168 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
169 iterate_over_objfiles_in_search_order gdbarch method to
170 windows_iterate_over_objfiles_in_search_order.
171 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
173 2012-06-05 Joel Brobecker <brobecker@adacore.com>
175 * gdbarch.sh: Add generation of
176 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
177 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
178 (iterate_over_objfiles_in_search_order): New gdbarch method.
179 * gdbarch.h, gdbarch.c: Regenerate.
180 * objfiles.h (default_iterate_over_objfiles_in_search_order):
182 * objfiles.c (default_iterate_over_objfiles_in_search_order):
184 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
185 out of lookup_symbol_aux_symtabs.
186 (lookup_symbol_aux_symtabs): Replace extracted-out code by
187 call to lookup_symbol_aux_objfile.
188 (struct global_sym_lookup_data): New type.
189 (lookup_symbol_global_iterator_cb): New function.
190 (lookup_symbol_global): Search for symbol using
191 gdbarch_iterate_over_objfiles_in_search_order and
192 lookup_symbol_global_iterator_cb.
193 * findvar.c (struct minsym_lookup_data): New type.
194 (minsym_lookup_iterator_cb): New function.
195 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
196 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
197 and minsym_lookup_iterator_cb.
199 2012-06-05 Joel Brobecker <brobecker@adacore.com>
201 Revert the following patch:
202 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
203 try locating the symbol in the symbol's own objfile first, before
204 extending the search to all objfiles.
205 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
206 out of lookup_symbol_aux_symtabs.
207 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
208 Replace extracted-out code by call to lookup_symbol_aux_objfile.
209 Do not search EXCLUDE_OBJFILE.
210 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
211 (lookup_symbol_global): Search for matches in the block's objfile
212 first, before searching all other objfiles.
214 2012-06-05 Joel Brobecker <brobecker@adacore.com>
216 * breakpoint.c (find_condition_and_thread): Stop parsing
217 as soon as the first invalid keyword is found.
219 2012-06-05 Joel Brobecker <brobecker@adacore.com>
221 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
223 2012-06-05 Joel Brobecker <brobecker@adacore.com>
225 * config/djgpp/djcheck.sh: Add copyright header.
227 2012-06-05 Joel Brobecker <brobecker@adacore.com>
229 * copyright.py (update_files, main): Fix path to update-copyright
232 2012-06-05 Joel Brobecker <brobecker@adacore.com>
234 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
235 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
236 for which a reminder to update by hand is printed.
238 2012-06-04 Doug Evans <dje@google.com>
240 * buildsym.c (make_blockvector): Add comment.
242 2012-06-04 Pedro Alves <palves@redhat.com>
244 * arch-utils.c (default_gdb_signal_from_target): Delete.
245 * arch-utils.h (default_gdb_signal_from_target): Delete.
246 * corelow.c (core_open) <signal mapping>: Extended comment. Check
247 gdbarch_gdb_signal_from_target_p.
248 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
250 * gdbarch.h: Regenerate.
251 * gdbarch.c: Regenerate.
253 2012-06-04 Pedro Alves <palves@redhat.com>
255 * gdbarch.sh (gdb_signal_from_target): Mention that the
256 implementation of the method must be host independent.
257 * gdbarch.h: Regenerate.
259 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
261 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
263 (target_read_memory_bfd): New function.
264 (symbol_file_add_from_memory): Use it.
266 2012-06-03 Doug Evans <dje@google.com>
268 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
270 (basic_lookup_transparent_type): Ditto.
272 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
273 (ALL_PRIMARY_SYMTABS): Use it.
274 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
275 * dwarf2read.c (dw2_find_symbol_file): Ditto.
276 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
277 * symtab.c (lookup_symbol_aux_objfile): Ditto.
278 (basic_lookup_transparent_type): Ditto.
280 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
282 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
283 it to optimize resolution of demangled name.
285 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
287 * configure.ac (development): Define new variable.
288 Call AC_CHECK_LIB for mcheck if $development.
289 (ERROR_ON_WARNING): Enable it by default only if $development.
290 * config.in: Regenerate.
291 * configure: Regenerate.
293 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
295 * target.c (target_read_memory): Make LEN argument as size_t.
296 * target.h (target_read_memory): Likewise.
298 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
300 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
302 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
304 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
305 BookE interface for PowerPC server processors if not available
308 2012-05-31 Keith Seitz <keiths@redhat.com>
310 * linespec.c (decode_objc): Add cleanup to free
312 (find_linespec_symbols): Add cleanup to free CLASSES.
313 * symfile.c (find_separate_debug_file_by_debuglink): Add
314 cleanup to free DEBUGLINK.
315 * ui-out.c (clear_header_list): No need to check if
316 HEADER_NEXT.COLHDR is NULL.
317 Free HEADER_NEXT.COL_NAME.
319 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
321 * ada-lang.c (standard_lookup): Prevent uninitialized variable
324 2012-05-30 Jeff Kenton <jkenton@tilera.com>
326 * configure.host (gdb_host_cpu): Handle tilegx*.
327 (gdb_host): Handle tilegx-*-linux*.
328 * tilegx-linux-nat.c: New file.
329 * config/tilegx/linux.mh: New file.
331 2012-05-30 Jeff Kenton <jkenton@tilera.com>
333 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
335 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
337 * configure.tgt: Handle tilegx-*-linux*.
338 * tilegx-tdep.h: New file.
339 * tilegx-tdep.c: New file.
340 * tilegx-linux-tdep.c: New file.
341 * regformats/reg-tilegx.dat: New file.
343 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
345 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
346 accounting of hw watchpoints on ppc.
348 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
350 * source.c (openp): Expand tilde in path entries.
352 2012-05-29 Doug Evans <dje@google.com>
354 * buildsym.c (block_compar): Fix comment.
355 (end_symtab): Fix and clarify some comments.
357 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
358 cleanup_undefined_types.
359 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
362 2012-05-29 Tom Tromey <tromey@redhat.com>
364 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
366 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
367 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
369 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
372 2012-05-29 Tristan Gingold <gingold@adacore.com>
374 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
375 (struct darwin_info): ... New struct.
376 (solib_darwin_pspace_data): New variable.
377 (darwin_pspace_data_cleanup): New function.
378 (get_darwin_info): Likewise.
379 (darwin_dyld_version_ok, darwin_load_image_infos)
380 (darwin_solib_get_all_image_info_addr_at_init)
381 (darwin_solib_read_all_image_info_addr): Add info argument.
383 (darwin_current_sos): Use per pspace structure.
384 (darwin_solib_create_inferior_hook): Likewise.
385 (darwin_clear_solib): Likewise.
386 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
388 2012-05-28 Pedro Alves <palves@redhat.com>
390 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
391 block that uses them. Clear ecss before handling each event.
393 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
395 * solib-svr4.c (svr4_current_sos): New comment on
396 svr4_current_sos_via_xfer_libraries fall back.
398 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
400 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
401 it as a fallback for TYPE_IS_OPAQUE.
402 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
403 symbols for lookup_symbol.
405 2012-05-24 John Steele Scott <toojays@toojays.net>
407 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
408 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
409 (producer_is_gxx_lt_4_6): Move the checking and caching to...
410 (check_producer): ... this new function, which also checks for ICC
411 and caches the result.
412 (producer_is_icc): New function.
413 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
416 2012-05-24 Pedro Alves <palves@redhat.com>
420 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
421 (default_gdb_signal_to_target): ... this. Add comment.
422 (default_gdb_signal_from_host): Rename to ...
423 (default_gdb_signal_from_target): ... this. Add comment.
424 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
425 (default_gdb_signal_to_target): ... this.
426 (default_gdb_signal_from_host): Rename to ...
427 (default_gdb_signal_from_target): ... this.
428 * corelow.c (core_open): Adjust to naming change. Replace comment.
429 * gdbarch.sh (gdb_signal_from_host): Rename to ...
430 (gdb_signal_from_target): ... this. Adjust to
431 default_gdb_signal_from_host naming change. Extend comment.
432 (gdb_signal_to_host): Rename to ...
433 (gdb_signal_to_target): ... this. Adjust to
434 default_gdb_signal_to_host naming change.
435 * gdbarch.h, gdbarch.c: Renegerate.
437 2012-05-24 Pedro Alves <palves@redhat.com>
441 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
443 2012-05-24 Pedro Alves <palves@redhat.com>
447 Replace target_signal with gdb_signal throughout.
449 2012-05-24 Pedro Alves <palves@redhat.com>
453 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
454 string, instead of reusing the va_list argument.
456 2012-05-24 Tom Tromey <tromey@redhat.com>
458 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
461 2012-05-23 Doug Evans <dje@google.com>
463 * symtab.c (search_symbols): Formatting fixes.
464 (print_symbol_info): Formatting fixes.
466 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
467 int64_t change to leb128 API.
468 (read_encoded_value, decode_frame_entry_1): Ditto.
469 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
470 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
471 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
472 (execute_stack_op): Ditto.
473 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
474 (safe_read_uleb128, safe_read_sleb128): Ditto.
475 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
476 (dwarf2_compile_expr_to_ax): Ditto.
477 (locexpr_describe_location_piece): Ditto.
478 (disassemble_dwarf_expression): Ditto.
479 (locexpr_describe_location_1): Ditto.
481 2012-05-23 Stan Shebs <stan@codesourcery.com>
482 Kwok Cheung Yeung <kcy@codesourcery.com>
484 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
485 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
486 (mi-cmd-info.o): New rule.
487 * osdata.h (info_osdata_command): New declaration.
488 * osdata.c (info_osdata_command): Change to non-static.
489 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
490 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
491 * mi/mi-cmd-info.c: New file.
493 2012-05-23 Doug Evans <dje@google.com>
495 * symtab.c (search_symbols): Pass NULL for file_matcher to
496 expand_symtabs_matching if there are no files to match.
498 * gdbtypes.c (lookup_typename): Simplify.
500 2012-05-23 Pedro Alves <palves@redhat.com>
502 * arch-utils.h (default_target_signal_to_host): Delete.
503 * arch-utils.c (default_target_signal_to_host): Delete.
504 * gdbarch.sh (target_signal_to_host): Remove.
505 * gdbarch.h, gdbarch.c: Regenerate.
507 2012-05-22 Doug Evans <dje@google.com>
509 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
511 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
512 (execute_cfa_program): Update to match API of leb128 functions.
513 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
515 (read_unsigned_leb128, read_signed_leb128): Delete.
516 (read_initial_length): Change type of buf argument to
518 (read_encoded_value): Update to match API of leb128 functions.
519 (decode_frame_entry): Change result to "const gdb_byte *", and
520 similarly for "start" parameter.
521 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
522 (dwarf2_build_frame_info): Change local frame_ptr to
524 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
525 read_uleb128, read_sleb128. All callers updated.
526 (safe_skip_leb128): New function.
527 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
528 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
529 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
530 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
531 read_uleb128, read_sleb128.
532 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
533 (execute_stack_op): Update to match API of leb128 functions.
534 * dwarf2expr.h: #include "leb128.h".
535 (read_uleb128, read_sleb128): Delete.
536 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
537 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
538 * dwarf2loc.c (debug_loc_kind): New enum.
539 (decode_debug_loc_addresses): New function.
540 (decode_debug_loc_dwo_addresses): New function.
541 (dwarf2_find_location_expression): Rewrite.
542 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
543 (locexpr_describe_location_piece): Ditto.
544 (disassemble_dwarf_expression): Ditto.
545 (locexpr_describe_location_1): Ditto.
546 (loclist_describe_location): Rewrite.
547 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
548 * dwarf2read.c (die_reader_specs): New member "buffer_end".
549 (dwarf2_section_buffer_overflow_complaint): Renamed from
550 dwarf2_macros_too_long_complaint. All callers updated.
551 (skip_leb128): Delete.
552 (init_cu_die_reader): Initialize reader->buffer_end.
553 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
554 (skip_form_bytes): New arg buffer_end. All callers updated.
555 Replace call to skip_leb128 with gdb_skip_leb128.
556 (skip_unknown_opcode): New arg mac_end. All callers updated.
557 (fill_in_loclist_baton): Initialize baton->from_dwo.
559 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
561 * mips-linux-nat.c (mips_linux_read_description): Use a more
562 verbose error message.
564 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
566 * NEWS: Add MIPS/Linux DSP support.
567 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
568 (SIGCONTEXT_DSPCTL): New macro.
569 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
570 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
571 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
572 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
573 (N64_SIGCONTEXT_HI3): Likewise.
574 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
575 (N64_SIGCONTEXT_LO3): Likewise.
576 (N64_SIGCONTEXT_DSPCTL): Likewise.
577 (N64_SIGCONTEXT_FPCSR): Clarify definition.
578 (mips_linux_o32_sigframe_init): Handle DSP registers.
579 (mips_linux_n32n64_sigframe_init): Likewise.
581 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
583 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
586 2012-05-22 Pedro Alves <palves@redhat.com>
588 * target.h (store_waitstatus): Move declaration ...
589 * inf-child.h (store_waitstatus): ... here.
590 * target.c: Move inclusion of gdb_wait.h, and ...
591 (store_waitstatus): ... this ...
592 * inf-child.c: ... here.
593 * linux-nat.c: Include inf-child.h.
594 * rs6000-nat.c: Include inf-child.h.
595 * spu-linux-nat.c: Include inf-child.h.
597 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
599 * tracepoint.c (start_tracing): Add missing i18n markup.
600 (stop_tracing, set_trace_user): Ditto.
601 (set_trace_notes, set_trace_stop_notes): Ditto.
603 2012-05-21 Tom Tromey <tromey@redhat.com>
606 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
608 * value.h (value_cast_pointers): Update.
609 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
610 (value_cast): Update.
611 (update_search_result): New function.
612 (do_search_struct_field): New, from search_struct_field. Check
613 for ambiguous results.
614 (search_struct_field): Rewrite.
615 * infcall.c (value_arg_coerce): Update.
616 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
618 * ada-lang.c (ada_convert_actual): Update.
620 2012-05-21 Tom Tromey <tromey@redhat.com>
622 * macroexp.c (macro_stringify): Terminate the string.
624 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
626 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
628 * auto-load.c (auto_load_expand_dir_vars): New function.
629 (auto_load_safe_path_vec_update): Use it, remove the
630 substitute_path_component call thanks to it.
631 (auto_load_objfile_script): Remove the debug_file_directory processing.
632 Use auto_load_expand_dir_vars, remove the substitute_path_component
634 * configure: Regenerate.
635 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
636 path. Escape $ also for $debugdir.
637 (--with_auto_load_safe_path): Escape $ also for $debugdir.
638 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
640 2012-05-20 Doug Evans <dje@google.com>
642 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
643 before use. Check for symtab->includes == NULL before scanning it.
645 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
647 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
649 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
651 * NEWS: Add microMIPS support and "set mips compression",
652 "show mips compression" commands.
653 * mips-tdep.h (mips_isa): New enum.
654 (gdbarch_tdep): Add mips_isa.
655 (mips_pc_is_mips16): Update prototype.
656 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
657 * mips-tdep.c (mips_compression_mips16): New variable.
658 (mips_compression_micromips): Likewise.
659 (mips_compression_strings): Likewise.
660 (mips_compression_string): Likewise.
661 (is_mips16_isa, is_micromips_isa): New functions.
662 (is_mips16_addr): Rename to...
663 (is_compact_addr): ... this.
664 (unmake_mips16_addr): Likewise to...
665 (unmake_compact_addr): ... this.
666 (make_mips16_addr): Likewise to...
667 (make_compact_addr): ... this.
668 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
670 (mips_elf_make_msymbol_special): Handle microMIPS code.
671 (msymbol_is_special): Rename to...
672 (msymbol_is_mips16): ... this.
673 (mips_make_symbol_special, mips_pc_is_mips16): Update
675 (msymbol_is_mips, msymbol_is_micromips): New functions.
676 (mips16_to_32_reg): Rename to...
677 (mips_reg3_to_reg): ... this.
678 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
679 (mips_pc_isa): Likewise.
680 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
682 (mips_fetch_instruction): Pass return status instead of printing
683 an error message if requested. Handle microMIPS code. Bail out
685 (micromips_op): New macro.
686 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
687 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
688 (b6s4_op, b7s3_reg): Likewise.
689 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
690 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
691 (mips_insn_size): New function.
692 (mips32_next_pc): Update mips_fetch_instruction call.
693 (micromips_relative_offset7): New function.
694 (micromips_relative_offset10): Likewise.
695 (micromips_relative_offset16): Likewise.
696 (micromips_pc_insn_size): Likewise.
697 (micromips_bc1_pc): Likewise.
698 (micromips_next_pc): Likewise.
699 (unpack_mips16): Update mips_fetch_instruction call.
700 (extended_mips16_next_pc): Update according to change to
702 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
704 (mips16_scan_prologue): Update mips_fetch_instruction call.
705 Update according to change to mips16_to_32_reg.
706 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
707 (mips_insn16_frame_base_sniffer): Likewise.
708 (micromips_decode_imm9): New function.
709 (micromips_scan_prologue): Likewise.
710 (mips_micro_frame_cache): Likewise.
711 (mips_micro_frame_this_id): Likewise.
712 (mips_micro_frame_prev_register): Likewise.
713 (mips_micro_frame_sniffer): Likewise.
714 (mips_micro_frame_unwind): New variable.
715 (mips_micro_frame_base_address): New function.
716 (mips_micro_frame_base): New variable.
717 (mips_micro_frame_base_sniffer): New function.
718 (mips32_scan_prologue): Update mips_fetch_instruction call.
719 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
720 rather than for MIPS16.
721 (mips_insn32_frame_base_sniffer): Likewise.
722 (mips_addr_bits_remove): Handle microMIPS code.
723 (deal_with_atomic_sequence): Rename to...
724 (mips_deal_with_atomic_sequence): ... this. Update the type
725 of the variable used to hold an instruction. Remove the ISA bit
726 check. Update mips_fetch_instruction call.
727 (micromips_deal_with_atomic_sequence): New function.
728 (deal_with_atomic_sequence): Likewise.
729 (mips_about_to_return): Handle microMIPS code. Update
730 mips_fetch_instruction call.
731 (heuristic_proc_start): Check for the standard MIPS ISA rather
732 than for MIPS16. Update mips_pc_is_mips16 and
733 mips_fetch_instruction calls. Handle microMIPS code.
734 (mips_push_dummy_code): Handle microMIPS code.
735 (mips_eabi_push_dummy_call): Likewise.
736 (mips_o32_return_value): Update mips_pc_is_mips16 call.
737 (mips_o64_push_dummy_call): Handle microMIPS code.
738 (mips_o64_return_value): Update mips_pc_is_mips16 call.
739 (is_delayed): Remove function.
740 (mips_single_step_through_delay): Replace the call to is_delayed
741 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
742 Handle microMIPS code.
743 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
745 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
747 (micromips_in_function_epilogue_p): New function.
748 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
750 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
752 (gdb_print_insn_mips): Likewise.
753 (mips_breakpoint_from_pc): Likewise.
754 (mips_remote_breakpoint_from_pc): New function.
755 (mips32_instruction_has_delay_slot): Simplify making use of the
756 updated mips_fetch_instruction interface.
757 (micromips_instruction_has_delay_slot): New function.
758 (mips16_instruction_has_delay_slot): Simplify making use of the
759 updated mips_fetch_instruction interface.
760 (mips_adjust_breakpoint_address): Check for the standard MIPS
761 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
762 calls. Handle microMIPS code.
763 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
764 (mips_skip_trampoline_code): Handle microMIPS code.
765 (global_mips_compression): New function.
766 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
767 file flags. Register the microMIPS remote breakpoint handler
768 and heuristic frame unwinder.
769 (show_mips_compression): New function.
770 (_initialize_mips_tdep): Add the "set mips compression" and
771 "show mips compression" commands.
773 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
778 * amd64-darwin-tdep.c:
779 * arm-symbian-tdep.c:
790 * dwarf2-frame-tailcall.c:
828 * python/py-finishbreakpoint.c:
829 * python/py-inferior.c:
830 * python/py-infthread.c:
864 * amd64-darwin-tdep.c:
865 * arm-symbian-tdep.c:
866 * arm-tdep.c: Delete unused variables.
868 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
870 Rename $ddir to $datadir.
871 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
872 * auto-load.c (auto_load_safe_path_vec_update)
873 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
874 * configure: Regenerate.
875 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
876 Likewise. Remove the 'use $ddir' help string.
878 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
880 * auto-load.c (show_auto_load_safe_path): Accept any combination of
881 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
883 2012-05-18 Tom Tromey <tromey@redhat.com>
886 * valprint.h (struct value_print_options) <symbol_print>: New
888 * valprint.c (user_print_options): Add default for symbol_print.
889 (show_symbol_print): New function.
890 (generic_val_print): Respect symbol_print.
891 (_initialize_valprint): Add "print symbol" setting.
892 * f-valprint.c (f_val_print): Respect symbol_print.
893 * c-valprint.c (c_val_print): Respect symbol_print.
895 * printcmd.c (print_address_symbolic): Return int. Ignore some
897 (print_address_demangle): Return int.
898 * defs.h: (print_address_symbolic): Return int.
899 * value.h (print_address_demangle): Return int.
901 2012-05-18 Tom Tromey <tromey@redhat.com>
903 * valprint.c (val_print_string): Don't print leading space.
904 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
905 print space before string or vtbl.
906 * m2-valprint.c (print_unpacked_pointer): Optionally print space
908 * jv-valprint.c (java_value_print): Print space before string.
909 * go-valprint.c (print_go_string): Print space before string.
910 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
912 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
913 space before string or vtbl.
914 * auxv.c (fprint_target_auxv): Print space after address.
916 2012-05-18 Tom Tromey <tromey@redhat.com>
918 * printcmd.c (print_address_demangle): Remove special case for 0.
920 2012-05-18 Tom Tromey <tromey@redhat.com>
922 * printcmd.c (print_address_demangle): Add 'opts' argument.
923 * p-valprint.c (pascal_val_print): Update.
924 * jv-valprint.c (java_val_print): Update.
926 * valprint.c (generic_val_print): Update.
927 (print_function_pointer_address): Add 'options' argument. Remove
928 'addressprint' argument. Update.
929 * m2-valprint.c (print_unpacked_pointer): Update.
930 * gnu-v3-abi.c (print_one_vtable): Update.
931 (gnuv3_print_method_ptr): Update.
932 * f-valprint.c (f_val_print): Update.
933 * cp-valprint.c (cp_print_value_fields): Update.
934 * valprint.h (print_function_pointer_address): Update.
935 * c-valprint.c (c_val_print): Update.
937 2012-05-18 Tom Tromey <tromey@redhat.com>
939 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
940 directly corresponding to the found psymtab.
941 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
942 (dw2_find_pc_sect_symtab): Use it.
943 * block.h (blockvector_contains_pc): Declare.
944 * block.c (find_block_in_blockvector): New function.
945 (blockvector_for_pc_sect): Use it.
946 (blockvector_contains_pc): New function.
948 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
950 * mips-tdep.h (mips_write_pc): New prototype.
951 * mips-tdep.c (mips_write_pc): Make external, add description.
952 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
955 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
957 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
959 (mips_unwind_pc, mips_write_pc): Likewise.
960 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
963 2012-05-17 Joel Brobecker <brobecker@adacore.com>
965 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
966 proc_warn, proc_error, proc_get_status, proc_flags,
967 proc_why, proc_what, proc_nsysarg, proc_sysargs,
968 proc_set_run_on_last_close, proc_unset_run_on_last_close,
969 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
970 proc_stop_process, proc_wait_for_stop, proc_run_process,
971 proc_set_traced_signals, proc_set_traced_faults,
972 proc_set_traced_sysentry, proc_set_traced_sysexit,
973 proc_set_held_signals, proc_get_held_signals,
974 proc_get_traced_signals, proc_get_traced_faults,
975 proc_get_traced_sysentry, proc_get_traced_sysexit,
976 proc_clear_current_fault, proc_set_current_signal,
977 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
978 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
979 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
980 proc_get_current_thread, proc_get_current_thread,
981 proc_get_current_thread, proc_update_threads,
982 proc_update_threads, proc_update_threads, proc_update_threads,
983 proc_iterate_over_threads, procfs_find_new_threads,
984 procfs_pid_to_str): Make static. Remove advance declaration.
985 (proc_cursig): Make static. Conditionalized defintion on
986 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
987 (proc_syscall, proc_set_kill_on_last_close,
988 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
989 proc_get_pending_signals, proc_get_signal_actions,
990 proc_trace_signal, proc_ignore_signal): Delete.
992 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
994 * coffread.c (cs_section_address): Passing proper argument for
995 `bfd_get_section_vma'.
996 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
997 `bfd_get_section_flags'.
998 * remote.c (remote_trace_set_readonly_regions): Likewise, for
999 `bfd_get_section_vma'.
1001 2012-05-16 Tom Tromey <tromey@redhat.com>
1004 * macrotab.h: (macro_define_special): Declare.
1005 (enum macro_special_kind): New.
1006 (struct macro_definition) <argc, replacement>: Update comments.
1007 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1008 (macro_define_object_internal): New function.
1009 (macro_define_object): Use it.
1010 (macro_define_special): New function.
1011 (fixup_definition): New function.
1012 (macro_lookup_definition, foreach_macro_in_scope)
1013 (foreach_macro): Use fixup_definition.
1014 * macroexp.h (macro_stringify): Declare.
1015 * macroexp.c (free_buffer_return_text): New function.
1016 (stringify): Constify "arg".
1017 (macro_stringify): New function.
1018 * dwarf2read.c (macro_start_file): Call macro_define_special.
1020 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1021 Maciej W. Rozycki <macro@mips.com>
1023 * breakpoint.h (bp_location): Add related_address member.
1024 * inferior.h (get_return_value): Take a pointer to struct value
1025 instead of struct type for the function requested.
1026 * value.h (using_struct_return): Likewise.
1027 * gdbarch.sh (return_value): Take a pointer to struct value
1028 instead of struct type for the function requested.
1029 * breakpoint.c (set_breakpoint_location_function): Initialize
1030 related_address for bp_gnu_ifunc_resolver breakpoints.
1031 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1032 requested function's address to gdbarch_return_value.
1033 * eval.c (evaluate_subexp_standard): Pass the requested
1034 function's address to using_struct_return.
1035 * infcall.c (call_function_by_hand): Pass the requested
1036 function's address to using_struct_return and
1037 gdbarch_return_value.
1038 * infcmd.c (get_return_value): Take a pointer to struct value
1039 instead of struct type for the function requested.
1040 (print_return_value): Update accordingly.
1041 (finish_command_continuation): Likewise.
1042 * stack.c (return_command): Pass the requested function's
1043 address to using_struct_return and gdbarch_return_value.
1044 * value.c (using_struct_return): Take a pointer to struct value
1045 instead of struct type for the function requested. Pass the
1046 requested function's address to gdbarch_return_value.
1047 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1048 New function_value member, replacing function_type.
1049 (bpfinishpy_dealloc): Update accordingly.
1050 (bpfinishpy_pre_stop_hook): Likewise.
1051 (bpfinishpy_init): Likewise. Record the requested function's
1053 * mips-tdep.c (mips_fval_reg): New enum.
1054 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1055 words put in GP registers.
1056 (mips_o64_push_dummy_call): Update a comment.
1057 (mips_o32_return_value): Take a pointer to struct value instead
1058 of struct type for the function requested and use it to check if
1059 using the MIPS16 calling convention. Return the designated
1060 general purpose registers for floating-point values returned in
1062 (mips_o64_return_value): Likewise.
1063 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1064 (ppc_sysv_abi_broken_return_value): Likewise.
1065 (ppc64_sysv_abi_return_value): Likewise.
1066 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1067 value instead of struct type for the function requested.
1068 * amd64-tdep.c (amd64_return_value): Likewise.
1069 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1070 * arm-tdep.c (arm_return_value): Likewise.
1071 * avr-tdep.c (avr_return_value): Likewise.
1072 * bfin-tdep.c (bfin_return_value): Likewise.
1073 * cris-tdep.c (cris_return_value): Likewise.
1074 * frv-tdep.c (frv_return_value): Likewise.
1075 * h8300-tdep.c (h8300_return_value): Likewise.
1076 (h8300h_return_value): Likewise.
1077 * hppa-tdep.c (hppa32_return_value): Likewise.
1078 (hppa64_return_value): Likewise.
1079 * i386-tdep.c (i386_return_value): Likewise.
1080 * ia64-tdep.c (ia64_return_value): Likewise.
1081 * iq2000-tdep.c (iq2000_return_value): Likewise.
1082 * lm32-tdep.c (lm32_return_value): Likewise.
1083 * m32c-tdep.c (m32c_return_value): Likewise.
1084 * m32r-tdep.c (m32r_return_value): Likewise.
1085 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1086 * m68k-tdep.c (m68k_return_value): Likewise.
1087 (m68k_svr4_return_value): Likewise.
1088 * m88k-tdep.c (m88k_return_value): Likewise.
1089 * mep-tdep.c (mep_return_value): Likewise.
1090 * microblaze-tdep.c (microblaze_return_value): Likewise.
1091 * mn10300-tdep.c (mn10300_return_value): Likewise.
1092 * moxie-tdep.c (moxie_return_value): Likewise.
1093 * mt-tdep.c (mt_return_value): Likewise.
1094 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1095 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1096 (ppc_sysv_abi_broken_return_value): Likewise.
1097 (ppc64_sysv_abi_return_value): Likewise.
1098 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1099 * rl78-tdep.c (rl78_return_value): Likewise.
1100 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1101 * rx-tdep.c (rx_return_value): Likewise.
1102 * s390-tdep.c (s390_return_value): Likewise.
1103 * score-tdep.c (score_return_value): Likewise.
1104 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1105 (sh_return_value_fpu): Likewise.
1106 * sh64-tdep.c (sh64_return_value): Likewise.
1107 * sparc-tdep.c (sparc32_return_value): Likewise.
1108 * sparc64-tdep.c (sparc64_return_value): Likewise.
1109 * spu-tdep.c (spu_return_value): Likewise.
1110 * tic6x-tdep.c (tic6x_return_value): Likewise.
1111 * v850-tdep.c (v850_return_value): Likewise.
1112 * vax-tdep.c (vax_return_value): Likewise.
1113 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1114 * xtensa-tdep.c (xtensa_return_value): Likewise.
1115 * gdbarch.c: Regenerate.
1116 * gdbarch.h: Regenerate.
1118 2012-05-15 Tom Tromey <tromey@redhat.com>
1120 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1122 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1124 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1125 of command in two error message.
1127 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1129 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1131 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1133 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1135 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1137 * NEWS (show auto-load scripts-directory): Add forgotten command.
1139 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1141 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1144 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1146 * amd64-tdep.c: Include features/i386/x32.c and
1147 features/i386/x32-avx.c.
1148 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1149 initialize_tdesc_x32_avx.
1151 2012-05-14 Stan Shebs <stan@codesourcery.com>
1154 * breakpoint.h (enum bptype): New type bp_dprintf.
1155 (struct breakpoint): New field extra_string.
1156 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1157 (create_breakpoint): Add extra_string arg.
1158 * breakpoint.c (dprintf_breakpoint_ops): New.
1159 (is_breakpoint): Add bp_dprintf.
1160 (bpstat_what): Add dprintf case.
1161 (bptype_string): Ditto.
1162 (print_one_breakpoint_location): Ditto.
1163 (init_bp_location): Ditto.
1164 (bkpt_print_mention): Ditto.
1165 (dprintf_style_enums): New array.
1166 (dprintf_style): New global.
1167 (dprintf_function): New global.
1168 (dprintf_channel): New global.
1169 (update_dprintf_command_list): New function.
1170 (update_dprintf_commands): New function.
1171 (init_breakpoint_sal): Add extra_string argument, handle it.
1172 (create_breakpoint_sal): Add extra_string argument.
1173 (create_breakpoints_sal): Add extra_string argument, update callers.
1174 (find_condition_and_thread): Add extra argument.
1175 (create_breakpoint): Add extra_string argument, record it.
1176 (dprintf_command): New function.
1177 (break_command_1): Add arg to create_breakpoint call.
1178 (handle_gnu_v3_exceptions): Ditto.
1179 (trace_command): Ditto.
1180 (ftrace_command): Ditto.
1181 (strace_command): Ditto.
1182 (bkpt_print_mention): Add dprintf case.
1183 (create_breakpoint_sal_default): Add extra_string argument.
1184 (_initialize_breakpoint): Add new commands.
1185 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1186 * python/py-breakpoint.c (bppy_init): Ditto.
1187 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1189 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1191 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1193 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1195 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1198 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1200 Add a new function gdb.find_pc_line to the Python API.
1201 * NEWS (Python Scripting): Add entry about the new function.
1202 * python/python.c (gdbpy_find_pc_line): New function which
1203 implements gdb.find_pc_line.
1204 (GdbMethods): Add entry for the new function.
1206 2012-05-12 Pedro Alves <palves@redhat.com>
1208 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1209 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1211 2012-05-12 Eli Zaretskii <eliz@gnu.org>
1213 * inferior.c: Include completer.h
1214 (initialize_inferiors): Set completer of add-inferior to
1217 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1219 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1220 gdbarch_ptr_bit for x32 core dump.
1222 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1224 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1225 and features/i386/x32-avx-linux.c.
1227 2012-05-11 Stan Shebs <stan@codesourcery.com>
1228 Kwok Cheung Yeung <kcy@codesourcery.com>
1230 * NEWS: Describe new info os commands.
1231 * common/linux-osdata.c (PID_T, TIME_T): Define.
1232 (MAX_PID_T_STRLEN): New.
1233 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1235 (command_from_pid): Add comment. Change to use PID_T.
1236 (commandline_from_pid): Change to use PID_T.
1237 (user_from_pid): Add comment.
1238 (get_process_owner): Add comment. Change to use PID_T and
1240 (get_number_of_cpu_cores): Add comment.
1241 (get_cores_used_by_process): Add comment. Change to use PID_T and
1243 (linux_xfer_osdata_processes): Change to use PID_T and
1245 (compare_processes): New function.
1246 (linux_xfer_osdata_processgroups): New function.
1247 (linux_xfer_osdata_threads): Change to use PID_T.
1248 (linux_xfer_osdata_fds): New function.
1249 (format_socket_state, print_sockets): New functions.
1250 (union socket_addr): New union.
1251 (linux_xfer_osdata_isockets): New function.
1252 (time_from_time_t, group_from_gid): New functions.
1253 (linux_xfer_osdata_shm): New function.
1254 (linux_xfer_osdata_sem): New function.
1255 (linux_xfer_osdata_msg): New function.
1256 (linux_xfer_osdata_modules): New function.
1257 (osdata_table): Add new entries.
1258 * common/buffer.c (buffer_xml_printf): Add support for long and
1259 long long format specifiers.
1261 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1263 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1264 (tdesc_x32_avx_linux): Likewise.
1266 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1268 Implement multi-component --with-auto-load-dir.
1269 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1271 (--with-auto-load-safe-path): Update the default value description.
1272 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1274 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1275 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1276 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1277 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1278 "set auto-load scripts-directory".
1279 * config.in: Regenerate.
1280 * configure: Regenerate.
1281 * configure.ac (--with-auto-load-dir): New configure option.
1282 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1284 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1286 Provide $ddir substitution for --with-auto-load-safe-path.
1287 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1289 * auto-load.c: Include observer.h.
1290 (auto_load_safe_path_vec_update): Call substitute_path_component for
1291 each component. New variable ddir_subst.
1292 (auto_load_gdb_datadir_changed): New function.
1293 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1294 AUTO_LOAD_SAFE_PATH. New comment.
1295 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1296 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1297 * config.in: Regenerate.
1298 * configure: Regenerate.
1299 * configure.ac (--auto-load-safe-path): Rename
1300 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1301 GDB_DATADIR/auto-load.
1302 * defs.h (substitute_path_component): New declaration.
1303 * top.c: Include observer.h.
1304 (set_gdb_datadir): New function.
1305 (init_main): Install it for "set data-directory".
1306 * utils.c (substitute_path_component): New function.
1308 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1310 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1311 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1312 DEBUG_FILE_DIRECTORY. Handle multiple components of
1313 DEBUG_FILE_DIRECTORY.
1315 2012-05-10 Tom Tromey <tromey@redhat.com>
1317 * dwarf2read.c (recursively_write_psymbols): New function.
1318 (write_psymtabs_to_index): Use it.
1320 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1322 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1323 (load_partial_comp_unit): Update.
1324 (queue_comp_unit): Add argument 'pretend_language'.
1325 (process_queue): Update.
1326 (psymtab_to_symtab_1): Skip dependencies that have a user.
1327 (load_partial_comp_unit_reader): Give meaning to the 'data'
1329 (load_full_comp_unit): Add 'pretend_language' argument.
1330 (process_full_comp_unit): Add 'pretend_language' argument. Set
1332 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1334 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1335 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1337 (prepare_one_comp_unit): Add 'pretend_language' argument.
1339 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1340 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1341 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1342 (dw2_do_instantiate_symtab): Check whether symtab was read in
1344 (dw2_instantiate_symtab): Add assertion. Call
1345 process_cu_includes.
1346 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1347 (partial_symtab_p): New typedef.
1348 (set_partial_user): New function.
1349 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1350 (scan_partial_symbols): Add imported CU to imported_symtabs.
1351 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1352 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1353 (get_symtab, recursively_compute_inclusions)
1354 (compute_symtab_includes, process_cu_includes)
1355 (process_imported_unit_die): New functions.
1356 (process_die) <DW_TAG_imported_unit>: New case.
1357 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1359 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1361 (struct partial_die_info) <locdesc>: Remove.
1363 (process_psymtab_comp_unit): Add 'read_partial' argument.
1365 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1366 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1367 (add_partial_symbol): Update.
1368 (process_die): Handle DW_TAG_partial_unit.
1369 (read_file_scope): Update comment.
1370 (load_partial_dies): Handle DW_TAG_imported_unit.
1371 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1372 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1374 2012-05-10 Tom Tromey <tromey@redhat.com>
1376 * cc-with-dwz.sh: New file.
1378 2012-05-10 Tom Tromey <tromey@redhat.com>
1380 * symtab.h (struct symtab) <includes, user>: New fields.
1381 * block.h (struct block_iterator) <d, idx, which>: New fields.
1382 * block.c (initialize_block_iterator, find_iterator_symtab)
1383 (block_iterator_step, block_iter_name_step)
1384 (block_iter_match_step): New functions.
1385 (block_iterator_first, block_iterator_next)
1386 (block_iter_name_first, block_iter_name_next)
1387 (block_iter_match_first, block_iter_match_next): Rewrite.
1388 (get_block_symtab): New function.
1390 2012-05-10 Tom Tromey <tromey@redhat.com>
1392 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
1394 * jit.c (finalize_symtab): Use allocate_global_block,
1396 * buildsym.c (finish_block_internal): New function, from old
1398 (finish_block): Rewrite.
1399 (end_symtab): Use finish_block_internal, set_block_symtab.
1400 * block.h (struct global_block): New.
1401 (allocate_global_block, set_block_symtab): Declare.
1402 * block.c (allocate_global_block, set_block_symtab): New
1405 2012-05-10 Tom Tromey <tromey@redhat.com>
1407 * psymtab.c (partial_map_expand_apply): Add assertion.
1408 (partial_map_symtabs_matching_filename): Skip included psymtabs.
1409 (psymtab_to_symtab): Find unshared psymtab.
1410 (dump_psymtab): Print including psymtabs.
1411 (recursively_search_psymtabs): New function.
1412 (expand_symtabs_matching_via_partial): Use it.
1413 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
1415 (enum psymtab_search_status): New.
1417 2012-05-10 Tom Tromey <tromey@redhat.com>
1419 * tracepoint.c (scope_info): Update.
1420 * symtab.c (lookup_block_symbol, iterate_over_symbols)
1421 (find_pc_sect_symtab, search_symbols)
1422 (default_make_symbol_completion_list_break_on)
1423 (make_file_symbol_completion_list): Update.
1424 * symmisc.c (dump_symtab_1): Update.
1425 * stack.c (print_frame_args, iterate_over_block_locals)
1426 (print_frame_labels, iterate_over_block_arg_vars): Update.
1427 * python/py-block.c (block_object) <dict>: Remove.
1429 <iter>: Change type.
1430 (blpy_iter): Update.
1431 (blpy_block_syms_iternext): Update.
1432 * psymtab.c (map_block): Use block iterators.
1433 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
1434 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1435 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
1436 * infrun.c (check_exception_resume): Update.
1437 * cp-support.c (make_symbol_overload_list_block): Update.
1438 * coffread.c (patch_opaque_types): Update.
1439 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
1440 * block.h (struct block_iterator): New.
1441 (block_iterator_first, block_iterator_next, block_iter_name_first)
1442 (block_iter_name_next, block_iter_match_first)
1443 (block_iter_match_next): Declare.
1444 (ALL_BLOCK_SYMBOLS): Redefine.
1445 * block.c (block_iterator_first, block_iterator_next)
1446 (block_iter_name_first, block_iter_name_next)
1447 (block_iter_match_first, block_iter_match_next): New functions.
1448 * ada-lang.c (ada_add_block_symbols)
1449 (ada_make_symbol_completion_list): Use block iterator.
1451 2012-05-10 Tom Tromey <tromey@redhat.com>
1453 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
1454 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
1455 (lookup_partial_symbol, find_last_source_symtab_from_partial)
1456 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
1457 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
1460 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1462 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
1463 print-file-var-lib2.c, print-file-var-main.c and
1464 print-file-var.exp (located in gdb/testsuite/gdb.base).
1466 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1468 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1469 try locating the symbol in the symbol's own objfile first, before
1470 extending the search to all objfiles.
1471 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1472 out of lookup_symbol_aux_symtabs.
1473 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
1474 Replace extracted-out code by call to lookup_symbol_aux_objfile.
1475 Do not search EXCLUDE_OBJFILE.
1476 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
1477 (lookup_symbol_global): Search for matches in the block's objfile
1478 first, before searching all other objfiles.
1480 2012-05-10 Tristan Gingold <gingold@adacore.com>
1482 * printcmd.c (set_command): Add pre/post inc/dec.
1484 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
1486 * gdb.1: Document -ex option.
1488 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1490 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
1491 * inferior.h (AT_SYMBOL): Delete.
1493 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1495 * mips-tdep.c (mips_push_dummy_code): New function.
1496 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
1497 ON_STACK and install mips_push_dummy_code as our gdbarch
1498 push_dummy_code routine.
1500 2012-05-09 Pedro Alves <palves@redhat.com>
1502 * target.c (set_maintenance_target_async_permitted): Rename to ...
1503 (set_target_async_command): ... this.
1504 (show_maintenance_target_async_permitted): Rename to ...
1505 (show_target_async_command): ... this.
1506 (initialize_targets): Adjust.
1508 2012-05-08 Doug Evans <dje@google.com>
1510 * go-exp.y (classify_name): Add missing assignment of fields of
1513 2012-05-08 Eli Zaretskii <eliz@gnu.org>
1515 Display the ">" prompt in interactive mode while reading canned
1516 commands, even when the current interpreter is MI.
1518 * interps.c (interp_set_temp): New function.
1520 * interps.h (interp_set_temp): Add prototype.
1522 * cli/cli-script.c (restore_interp): New cleanup function.
1523 (read_command_lines): Temporarily override the current interpreter
1524 with CLI and arrange for restoring the original one.
1526 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
1528 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
1530 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
1532 * probe.c (parse_probes): Move conditional to check for
1533 debuginfo files from here...
1534 * stap-probe.c (stap_get_probes): ... to here.
1536 2012-05-07 Mark Kettenis <kettenis@gnu.org>
1537 H.J. Lu <hongjiu.lu@intel.com>
1539 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
1540 `movl %esp, %ebp' for the X32 ABI.
1542 2012-05-07 Tom Tromey <tromey@redhat.com>
1544 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
1546 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
1547 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
1548 (dwarf_stack_op_name): Remove.
1549 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
1550 (decode_locdesc): Use get_DW_OP_name.
1551 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
1552 (dwarf2_compile_expr_to_ax): Likewise.
1553 (disassemble_dwarf_expression): Likewise.
1554 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
1556 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
1558 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
1559 (sh_linux_sigtramp_cache): New function.
1560 (sh_linux_sigreturn_init): New function.
1561 (sh_linux_rt_sigreturn_init): New function.
1562 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
1564 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
1566 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
1567 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
1568 (sh_linux_init_abi): Add init calls to register new tramp_frame
1569 definitions under 32-bit SH, update comments.
1571 2012-05-07 Pedro Alves <palves@redhat.com>
1575 * amd64-linux-tdep.c: Include glibc-tdep.h.
1576 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
1577 gdbarch_skip_solib_resolver callback.
1579 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1581 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
1582 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
1583 (show_auto_load_safe_path): Check any-directory by comparison with "/".
1584 (add_auto_load_safe_path): Change the error message.
1585 (_initialize_auto_load): Change the "safe-path" help text.
1586 * configure: Regenerate
1587 * configure.ac (--without-auto-load-safe-path): Set
1588 WITH_AUTO_LOAD_SAFE_PATH to /.
1590 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
1592 * stap-probe.h: Do not include unecessary `probe.h'.
1594 2012-05-05 Alan Modra <amodra@gmail.com>
1596 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
1597 bfd_und_section_ptr.
1598 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
1599 and bfd_com_section_ptr.
1601 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1603 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
1605 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1607 * windows-nat.h (segment_register_p_ftype): New typedef.
1608 (windows_set_segment_register_p): Add declaration.
1609 * windows-nat.c (segment_register_p): New static global.
1610 (windows_set_segment_register_p): New function.
1611 (do_windows_fetch_inferior_registers): Add special handling
1612 for segment registers.
1613 * amd64-windows-nat.c: #include "amd64-tdep.h".
1614 (amd64_windows_segment_register_p): New function.
1615 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
1616 * i386-windows-nat.c: #include "i386-tdep.h".
1617 (i386_windows_segment_register_p): New function.
1618 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
1620 2012-05-04 Tristan Gingold <gingold@adacore.com>
1622 * printcmd.c (set_command): Emit a warning if the expression is not
1625 2012-05-03 Joel Brobecker <brobecker@adacore.com>
1627 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
1630 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
1632 * stap-probe.c (stap_is_operator): Change declaration.
1633 (stap_get_opcode): Change return value.
1634 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
1635 `stap_parse_argument_1'.
1637 2012-05-03 Pedro Alves <pedro@codesourcery.com>
1639 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
1642 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
1644 Add two new methods global_block and static_block to gdb.Symtab
1646 * NEWS (Python scripting): Add entry about the new methods.
1647 * python/py-symtab.c (stpy_global_block): New function which
1648 implements the gdb.Symtab.global_block() method.
1649 (stpy_static_block): New function which implements the
1650 gdb.Symtab.static_block() method.
1651 (symtab_object_methods): Add entries for the two new methods.
1653 2012-05-03 Doug Evans <dje@google.com>
1655 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
1658 2012-05-03 Yao Qi <yao@codesourcery.com>
1660 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
1662 (i386_process_record): Ditto.
1664 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1666 * infcall.c (unwind_on_signal_p): Make static.
1668 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1670 * sol-thread.c (solaris_pid_to_str): Make static.
1671 (_initialize_sol_thread): Add prototype.
1673 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1675 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
1677 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
1679 * MAINTAINERS: Remove myself.
1681 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1683 Fix --without-auto-load-safe-path for MS-Windows host platform.
1684 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
1686 2012-05-02 Eli Zaretskii <eliz@gnu.org>
1688 * gdb_curses.h: Undefine KEY_EVENT before including curses
1689 headers. Move "#undef MOUSE_MOVED" before any curses header
1692 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1694 * features/i386/i386-mmx-linux.c: Regenerate.
1695 * features/rs6000/powerpc-32.c: Likewise.
1696 * features/rs6000/powerpc-32l.c: Likewise.
1697 * features/rs6000/powerpc-403.c: Likewise.
1698 * features/rs6000/powerpc-403gc.c: Likewise.
1699 * features/rs6000/powerpc-405.c: Likewise.
1700 * features/rs6000/powerpc-505.c: Likewise.
1701 * features/rs6000/powerpc-601.c: Likewise.
1702 * features/rs6000/powerpc-602.c: Likewise.
1703 * features/rs6000/powerpc-603.c: Likewise.
1704 * features/rs6000/powerpc-604.c: Likewise.
1705 * features/rs6000/powerpc-64.c: Likewise.
1706 * features/rs6000/powerpc-64l.c: Likewise.
1707 * features/rs6000/powerpc-750.c: Likewise.
1708 * features/rs6000/powerpc-860.c: Likewise.
1709 * features/rs6000/powerpc-e500.c: Likewise.
1710 * features/rs6000/powerpc-e500l.c: Likewise.
1711 * features/rs6000/powerpc-isa205-32l.c: Likewise.
1712 * features/rs6000/powerpc-isa205-64l.c: Likewise.
1713 * features/rs6000/rs6000.c: Likewise.
1715 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1717 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
1719 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
1720 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
1721 (stap_parse_argument) <e>: Likewise.
1722 (handle_stap_probe) <byte_order>: Likewise.
1724 2012-04-30 Doug Evans <dje@google.com>
1726 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
1727 init_and_read_dies_worker. All callers updated.
1728 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
1729 replaced with init_cutu_and_read_dies.
1730 (load_partial_comp_unit): Pass 1 for use_existing_cu.
1731 (find_partial_die): Remove FIXME. Don't free current CU.
1733 2012-04-30 Sterling Augustine <saugustine@google.com>
1735 * contrib: New directory.
1736 * contrib/test_pubnames_and_indexes.py: New file.
1738 2012-04-30 Doug Evans <dje@google.com>
1740 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
1741 All callers updated.
1742 (init_cu_die_reader): Verify the section is non-empty.
1743 (dwarf_decode_line_header): Don't dereference section->asection
1744 until we know the section is present.
1746 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
1748 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
1751 2012-04-29 Yao Qi <yao@codesourcery.com>
1753 * gdb-code-style.el: New hook gdb-markup-hook
1754 and gdb-comment-hook.
1756 2012-04-28 Doug Evans <dje@google.com>
1758 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
1759 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
1761 * symfile.h (dwarf2_debug_sections): New member addr.
1762 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
1763 (ctx_no_get_addr_index): New function.
1764 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
1765 (ctx_no_get_addr_index): Declare.
1766 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
1767 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
1768 (dwarf_expr_ctx_funcs): Update.
1769 (needs_get_addr_index): New function.
1770 (needs_frame_ctx_funcs): Update.
1771 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
1772 * dwarf2read.c: #include "gdbcore.h".
1773 (dwarf2_per_objfile): New members addr, dwo_files.
1774 (dwarf2_elf_names): Add entry for addr.
1775 (struct dwo_section_names): New type.
1776 (dwo_section_names): New static global.
1777 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
1778 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
1779 old debug_types_section member updated to use this.
1780 Rename member debug_types_section to info_or_types_section,
1782 (signatured_type): Rename member type_offset to type_offset_in_tu,
1783 all uses updated. New member type_offset_in_section.
1784 (struct dwo_sections): New type.
1785 (struct dwo_unit): New type.
1786 (struct dwo_file): New type.
1787 (die_reader_specs): New member dwo_file.
1788 (dwarf2_locate_sections): Watch for .debug_addr.
1789 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
1790 (dwarf2_read_section): Get bfd of section from bfd's asection,
1792 (create_cus_from_index): Initialize the_cu->info_or_types_section.
1793 (create_signatured_type_table_from_index): Initialize
1794 sig_type->info_or_types_section.
1795 (dw2_get_file_names): Statement lists for type units with DWO files
1796 live in the DWO file.
1797 (create_debug_types_hash_table): New function.
1798 (create_all_type_units): Rewrite.
1799 (init_cu_die_reader): New arg dwo_file, all callers updated.
1800 (init_and_read_dies_worker): Get section from
1801 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
1802 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
1803 continue reading the CU/TU from there.
1804 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
1805 updated. Get section from this_cu->info_or_types_section.
1806 (create_all_comp_units): Initialize this_cu->info_or_types_section.
1807 (skip_one_die): New cases DW_FORM_GNU_addr_index,
1808 DW_FORM_GNU_str_index.
1809 (hash_dwo_file, eq_dwo_file): New functions.
1810 (allocate_dwo_file_hash_table): New function.
1811 (hash_dwo_unit, eq_dwo_unit): New functions.
1812 (allocate_dwo_unit_table): New function.
1813 (dwarf2_locate_dwo_sections): New function.
1814 (struct create_dwo_info_table_data): New type.
1815 (create_debug_info_hash_table_reader): New function.
1816 (create_debug_info_hash_table): New function.
1817 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
1818 (lookup_dwo_file): New function.
1819 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
1820 (free_dwo_file, free_dwo_file_cleanup): New functions.
1821 (free_dwo_file_from_slot, free_dwo_files): New functions.
1822 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
1823 (dwarf2_record_block_ranges): Ditto.
1824 (read_partial_die): Ditto.
1825 (process_enumeration_scope): Update to use type_offset_in_section.
1826 (read_full_die_1): New function.
1827 (read_full_die): Rewrite.
1828 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
1829 DW_FORM_GNU_str_index.
1830 (read_addr_index_1, read_addr_index): New functions.
1831 (read_addr_index_from_leb128): New function.
1832 (struct dwarf2_read_addr_index_data): New type.
1833 (dwarf2_read_addr_index_reader): New function.
1834 (dwarf2_read_addr_index): New function.
1835 (read_str_index): New function.
1836 (leb128_size): New function.
1837 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
1838 If processing a type unit from a DWO file, get the line section
1840 (var_decode_location): Watch for DW_OP_GNU_addr_index.
1841 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
1842 DW_FORM_GNU_str_index.
1843 (lookup_die_type): Check whether section offset of type's die is
1844 known before looking it up. Remove assert. Condition can
1845 legimately happen for inter-cu type references.
1846 (dwarf_attr_name): Handle Fission attributes.
1847 (dwarf_form_name): Handle Fission forms.
1848 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
1849 DW_FORM_GNU_str_index.
1850 (follow_die_sig): Update to use type_offset_in_section.
1851 (decode_locdesc): New case DW_OP_GNU_addr_index.
1852 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
1853 DW_FORM_GNU_str_index.
1854 (cu_debug_loc_section): New function.
1855 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
1856 (dwarf2_per_objfile_free): Unmap .debug_addr section.
1857 Free DWO files if present.
1858 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
1860 Refactor DIE reading.
1861 * dwarf2read.c (dwarf2_per_objfile): Replace members
1862 debug_info_type_hash and debug_types_type_hash with die_type_hash.
1863 (die_reader_specs): New member "die_section". Temporarily make
1864 member "buffer" non-const, pending constifying all info_ptr uses.
1865 (die_reader_func_ftype): New typedef.
1866 (dw2_get_file_names_reader): New function.
1867 (dw2_get_file_names): Rewrite.
1868 (read_and_check_type_unit_head): Rename arg type_offset to
1870 (create_all_type_units): Improve debugging message.
1871 Improve dummy type unit check.
1872 (init_cu_die_reader): New arg "section". All callers updated.
1873 (init_and_read_dies_worker): New function.
1874 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
1875 (init_cutu_and_read_dies_no_follow): New function.
1876 (init_cutu_and_read_dies_simple): New function.
1877 (process_psymtab_comp_unit_reader): New function.
1878 (process_psymtab_comp_unit): Delete args section,
1879 is_debug_types_section. Rewrite. All callers updated.
1880 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
1881 All callers updated. Rewrite.
1882 (load_partial_comp_unit_reader): New function.
1883 (load_partial_comp_unit): Rewrite.
1884 (skip_children): New arg reader. Delete args buffer, cu.
1885 All callers updated.
1886 (skip_one_die): New arg reader. Delete args buffer, cu.
1887 All callers updated.
1888 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
1889 All callers updated.
1890 (load_full_comp_unit_reader): New function.
1891 (load_full_comp_unit): Rewrite.
1892 (read_comp_unit): Delete.
1893 (read_die_and_children_1): Delete, contents moved ...
1894 (read_die_and_children): ... here.
1895 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
1896 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
1897 All callers updated.
1898 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
1899 All callers updated.
1900 (find_partial_die): Rewrite load_all_dies support.
1901 (read_attribute_value): New arg reader. Delete args abfd, cu.
1902 All callers updated.
1903 (read_attribute): New arg reader. Delete args abfd, cu.
1904 All callers updated.
1905 (load_full_type_unit): Add assert.
1906 (read_signatured_type_reader): New function.
1907 (read_signatured_type): Rewrite.
1908 (free_stack_comp_unit): Remove call to age_cached_comp_units.
1909 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
1910 All callers updated. Set per_cu->cu = NULL after freeing it.
1911 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
1912 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
1913 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
1914 (set_die_type): Update.
1915 (get_die_type_at_offset): Update.
1916 (read_file_scope): Call prepare_one_comp_unit.
1917 (read_type_unit_scope): Ditto.
1918 (prepare_one_comp_unit): Set producer if present.
1920 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
1922 * probe.c (compile_rx_or_error): Silence ARI warning about missing
1923 gettext function on `error'.
1925 2012-04-27 Doug Evans <dje@google.com>
1927 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
1930 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1931 Tom Tromey <tromey@redhat.com>
1933 * breakpoint.c (struct breakpoint_objfile_data)
1934 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
1935 <exception_probes>: New fields.
1936 (free_breakpoint_probes): New function.
1937 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
1938 `_Unwind_DebugHook'.
1939 (create_exception_master_breakpoint): Likewise.
1940 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
1941 * infrun.c: Including necessary header files for handling SystemTap
1943 (handle_inferior_event): Handling longjmp breakpoint and exceptions
1944 via SystemTap probes.
1945 (check_exception_resume): Remove `func' argument. Handle exception
1946 unwinding breakpoint set via a SystemTap probe.
1947 (insert_exception_resume_from_probe): New function.
1949 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1950 Tom Tromey <tromey@redhat.com>
1951 Jan Kratochvil <jan.kratochvil@redhat.com>
1953 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
1954 (COMMON_OBS): Likewise.
1955 (HFILES_NO_SRCDIR): Add `probe'.
1956 * NEWS: Mention support for static and SystemTap probes.
1957 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
1958 SystemTap probes' arguments parser.
1959 * arm-linux-tdep.c: Including headers needed to perform the parsing
1960 of SystemTap probes' arguments.
1961 (arm_stap_is_single_operand): New function.
1962 (arm_stap_parse_special_token): Likewise.
1963 (arm_linux_init_abi): Initializing proper fields used by SystemTap
1964 probes' arguments parser.
1965 * ax-gdb.c (require_rvalue): Removing static declaration.
1966 (gen_expr): Likewise.
1967 * ax-gdb.h (gen_expr): Declaring function.
1968 (require_rvalue): Likewise.
1969 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
1970 (bkpt_probe_breakpoint_ops): New variable.
1971 (momentary_breakpoint_from_master): Set the `probe' value.
1972 (add_location_to_breakpoint): Likewise.
1973 (break_command_1): Using proper breakpoint_ops according to the
1974 argument passed by the user in the command line.
1975 (bkpt_probe_insert_location): New function.
1976 (bkpt_probe_remove_location): Likewise.
1977 (bkpt_probe_create_sals_from_address): Likewise.
1978 (bkpt_probe_decode_linespec): Likewise.
1979 (tracepoint_probe_create_sals_from_address): Likewise.
1980 (tracepoint_probe_decode_linespec): Likewise.
1981 (tracepoint_probe_breakpoint_ops): New variable.
1982 (trace_command): Using proper breakpoint_ops according to the
1983 argument passed by the user in the command line.
1984 (initialize_breakpoint_ops): Initializing breakpoint_ops for
1985 static probes on breakpoints and tracepoints.
1986 * breakpoint.h (struct bp_location) <probe>: New field.
1987 * cli-utils.c (skip_spaces_const): New function.
1988 (extract_arg): Likewise.
1989 * cli-utils.h (skip_spaces_const): Likewise.
1990 (extract_arg): Likewise.
1991 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
1992 * configure.ac: Append `stap-probe.o' to be generated when ELF
1994 * configure: Regenerate.
1995 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
1996 * elfread.c: Include `probe.h' and `arch-utils.h'.
1997 (probe_key): New variable.
1998 (elf_get_probes): New function.
1999 (elf_get_probe_argument_count): Likewise.
2000 (elf_evaluate_probe_argument): Likewise.
2001 (elf_compile_to_ax): Likewise.
2002 (elf_symfile_relocate_probe): Likewise.
2003 (stap_probe_key_free): Likewise.
2004 (elf_probe_fns): New variable.
2005 (elf_sym_fns): Add `sym_probe_fns' value.
2006 (elf_sym_fns_lazy_psyms): Likewise.
2007 (elf_sym_fns_gdb_index): Likewise.
2008 (_initialize_elfread): Initialize objfile cache for static
2010 * gdb_vecs.h (struct probe): New forward declaration.
2011 (probe_p): New VEC declaration.
2012 * gdbarch.c: Regenerate.
2013 * gdbarch.h: Regenerate.
2014 * gdbarch.sh (stap_integer_prefix): New variable.
2015 (stap_integer_suffix): Likewise.
2016 (stap_register_prefix): Likewise.
2017 (stap_register_suffix): Likewise.
2018 (stap_register_indirection_prefix): Likewise.
2019 (stap_register_indirection_suffix): Likewise.
2020 (stap_gdb_register_prefix): Likewise.
2021 (stap_gdb_register_suffix): Likewise.
2022 (stap_is_single_operand): New function.
2023 (stap_parse_special_token): Likewise.
2024 (struct stap_parse_info): Forward declaration.
2025 * i386-tdep.c: Including headers needed to perform the parsing
2026 of SystemTap probes' arguments.
2027 (i386_stap_is_single_operand): New function.
2028 (i386_stap_parse_special_token): Likewise.
2029 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2030 probes' arguments parser.
2031 * i386-tdep.h (i386_stap_is_single_operand): New function.
2032 (i386_stap_parse_special_token): Likewise.
2033 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2034 * mipsread.c (ecoff_sym_fns): Likewise.
2035 * objfiles.c (objfile_relocate1): Support relocation for static
2037 * parse.c (prefixify_expression): Remove static declaration.
2038 (initialize_expout): Likewise.
2039 (reallocate_expout): Likewise.
2040 * parser-defs.h (initialize_expout): Declare function.
2041 (reallocate_expout): Likewise.
2042 (prefixify_expression): Likewise.
2043 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2044 of SystemTap probes' arguments.
2045 (ppc_stap_is_single_operand): New function.
2046 (ppc_stap_parse_special_token): Likewise.
2047 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2048 probes' arguments parser.
2049 * probe.c: New file, for generic statically defined probe support.
2050 * probe.h: Likewise.
2051 * s390-tdep.c: Including headers needed to perform the parsing of
2052 SystemTap probes' arguments.
2053 (s390_stap_is_single_operand): New function.
2054 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2055 probes' arguments parser.
2056 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2057 * stap-probe.c: New file, for SystemTap probe support.
2058 * stap-probe.h: Likewise.
2059 * symfile.h: Include `gdb_vecs.h'.
2060 (struct sym_probe_fns): New struct.
2061 (struct sym_fns) <sym_probe_fns>: New field.
2062 * symtab.c (init_sal): Initialize `probe' field.
2063 * symtab.h (struct probe): Forward declaration.
2064 (struct symtab_and_line) <probe>: New field.
2065 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2067 (stop_tracing): Likewise.
2068 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2070 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2071 Tom Tromey <tromey@redhat.com>
2073 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2074 and to compile agent expressions.
2075 * infrun.c (siginfo_make_value): New argument `ignore'.
2076 (siginfo_funcs): New struct.
2077 (_initialize_infrun): New argument when calling
2078 `create_internalvar_type_lazy'.
2079 * thread.c (thread_id_make_value): New argument `ignore'.
2080 (thread_funcs): New struct.
2081 (_initialize_thread): New argument when calling
2082 `create_internalvar_type_lazy'.
2083 * tracepoint.c (sdata_make_value): New argument `ignore'.
2084 (sdata_funcs): New struct.
2085 (_initialize_tracepoint): New argument when calling
2086 `create_internalvar_type_lazy'.
2087 * value.c (make_value): New struct.
2088 (create_internalvar_type_lazy): New argument `data'.
2089 (compile_internalvar_to_ax): New function.
2090 (value_of_internalvar): Properly handling `make_value' case.
2091 (clear_internalvar): Likewise.
2092 (show_convenience): Adding `TRY_CATCH' block.
2093 * value.h (internalvar_make_value): Delete, replace by...
2094 (struct internalvar_funcs): ... this.
2095 (create_internalvar_type_lazy) <fun>: Delete argument.
2096 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2097 (compile_internalvar_to_ax): New function.
2098 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2099 (tlb_funcs): New struct.
2100 (_initialize_windows_tdep): New argument when calling
2101 `create_internalvar_type_lazy'.
2103 2012-04-27 Mark Wielaard <mjw@redhat.com>
2105 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2106 see whether it is an address or a constant offset from DW_AT_low_pc.
2107 (dwarf2_record_block_ranges): Likewise.
2108 (read_partial_die): Likewise.
2110 2012-04-26 Mark Wielaard <mjw@redhat.com>
2112 * MAINTAINERS (Write After Approval): Add myself to the list.
2114 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2116 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2117 (proc_prettyprint_signal): Likewise.
2118 (proc_prettyprint_faultset): Likewise.
2119 (proc_prettyprint_fault): Likewise.
2120 (proc_prettyprint_actionset): Likewise.
2121 (proc_prettyprint_flags): Move to new proc-flags.c section.
2122 (proc_prettyfprint_flags): New prototype.
2123 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2124 (proc_syscall, proc_cursig): Likewise.
2125 (proc_set_kill_on_last_close): Likewise.
2126 (proc_unset_kill_on_last_close): Likewise.
2127 (proc_set_watchpoint): Make static.
2128 (proc_delete_dead_threads): Likewise.
2129 (procfs_set_watchpoint): Likewise.
2130 (_initialize_procfs): Add prototype.
2131 * proc-events.c: Include proc-utils.h.
2132 (init_syscall_table): Make static.
2133 * proc-api.c (_initialize_proc_api): Add prototype.
2134 * proc-flags.c: Include proc-utils.h.
2136 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2138 * configure.ac: Add AC_ARG_PROGRAM.
2139 * configure: Regenerate.
2141 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2143 Fix DW_AT_lower_bound defaults for DWARF-4+.
2144 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2145 high. New variable low_default_is_valid. Implement DWARF-4+
2146 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2147 no default by the DWARF standard.
2149 2012-04-26 Maciej W. Rozycki <macro@mips.com>
2150 Maciej W. Rozycki <macro@codesourcery.com>
2152 * infrun.c (handle_inferior_event): Move the check for return
2153 trampolines ahead of the check for function trampolines.
2154 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2155 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2156 (mips_str_mips16_ret_stub): Likewise.
2157 (mips_str_call_fp_stub): Likewise.
2158 (mips_str_call_stub): Likewise.
2159 (mips_str_fn_stub): Likewise.
2160 (mips_str_pic): Likewise.
2161 (mips_in_frame_stub): New function.
2162 (mips_unwind_pc): Return the return address rather than the PC
2163 if the PC of an intermediate frame is inside a call thunk.
2164 (mips_is_stub_suffix): New function.
2165 (mips_is_stub_mode): Likewise.
2166 (mips_get_mips16_fn_stub_pc): Likewise.
2167 (mips_skip_mips16_trampoline_code): Update to handle all the
2168 currently generated stub types. Don't recurse into __fn_stub
2169 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2170 Use cooked register accesses.
2171 (mips_in_return_stub): Reintroduce function.
2172 (mips_skip_trampoline_code): Traverse trampolines recursively.
2173 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2175 2012-04-26 Joel Brobecker <brobecker@adacore.com>
2179 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2181 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2182 * features/arm-with-m-vfp-d16.xml: New file. Describes
2183 Cortex-M with VFPv4-sp-d16 FPU register layout.
2184 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2185 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2186 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2187 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2188 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2190 2012-04-25 Doug Evans <dje@google.com>
2192 * cli/cli-decode.c (print_doc_line): Use stream instead of
2195 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2197 * features/arm-with-iwmmxt.c: Regenerate.
2198 * features/arm-with-m-fpa-layout.c: Likewise.
2199 * features/arm-with-m.c: Likewise.
2200 * features/arm-with-neon.c: Likewise.
2201 * features/arm-with-vfpv2.c: Likewise.
2202 * features/arm-with-vfpv3.c: Likewise.
2203 * features/mips-dsp-linux.c: Likewise.
2204 * features/mips-linux.c: Likewise.
2205 * features/mips64-dsp-linux.c: Likewise.
2206 * features/mips64-linux.c: Likewise.
2207 * features/s390-linux32.c: Likewise.
2208 * features/s390-linux32v1.c: Likewise.
2209 * features/s390-linux32v2.c: Likewise.
2210 * features/s390-linux64.c: Likewise.
2211 * features/s390-linux64v1.c: Likewise.
2212 * features/s390-linux64v2.c: Likewise.
2213 * features/s390x-linux64.c: Likewise.
2214 * features/s390x-linux64v1.c: Likewise.
2215 * features/s390x-linux64v2.c: Likewise.
2216 * features/tic6x-c62x-linux.c: Likewise.
2217 * features/tic6x-c62x.c: Likewise.
2218 * features/tic6x-c64x-linux.c: Likewise.
2219 * features/tic6x-c64x.c: Likewise.
2220 * features/tic6x-c64xp-linux.c: Likewise.
2221 * features/tic6x-c64xp.c: Likewise.
2222 * target-descriptions.c: Only generate `field_type' and `type'
2223 variables when needed.
2225 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2227 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2229 2012-04-25 Doug Evans <dje@google.com>
2231 Initial pass at Go language support.
2233 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2235 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2236 (YYFILES): Add go-exp.c.
2237 (YYOBJ): Add go-exp.o.
2238 (local-maintainer-clean): Delete go-exp.c.
2239 * defs.h (enum language): Add language_go.
2240 * dwarf2read.c: #include "go-lang.h".
2241 (fixup_go_packaging): New function.
2242 (process_full_comp_unit): Call it when processing Go CUs.
2243 (dwarf2_physname): Add Go support.
2244 (read_file_scope): Handle missing language spec for GNU Go.
2245 (set_cu_language): Handle DW_LANG_Go.
2246 * go-exp.y: New file.
2247 * go-lang.h: New file.
2248 * go-lang.c: New file.
2249 * go-typeprint.c: New file.
2250 * go-valprint.c: New file.
2251 * symtab.c: #include "go-lang.h".
2252 (symbol_set_language): Handle language_go.
2253 (symbol_find_demangled_name, symbol_set_names): Ditto.
2254 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2256 2012-04-24 Jim Meyering <meyering@redhat.com>
2258 avoid a few strncpy-induced buffer overruns
2259 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2260 fname and psargs before trying to concatenate.
2261 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2262 "name" before applying strchr.
2264 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2266 * CONTRIBUTE: Use unified diff instead of context diff when
2269 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2271 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2272 code. Handle JR.HB correctly.
2274 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2277 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2278 with the other MIPS16 helpers.
2280 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2282 * observer.sh: Conditionally declare `args', thus cleaning up
2283 unused instances of this variable.
2285 2012-04-24 Yao Qi <yao@codesourcery.com>
2287 Revert this patch to allow breakpoint always-inserted
2289 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2290 * breakpoint.c: Include record.h.
2291 (breakpoints_always_inserted_mode): Return false when the record
2294 * breakpoint.c (iterate_over_bp_locations): New.
2295 * breakpoint.h: Declare.
2296 New typedef walk_bp_location_callback.
2297 * record.c (record_open): Call record_init_record_breakpoints.
2298 (record_sync_record_breakpoints): New.
2299 (record_init_record_breakpoints): New.
2300 * NEWS: Mention supporting breakpoint always-inserted mode in
2303 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2305 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2308 2012-04-24 Yao Qi <yao@codesourcery.com>
2310 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2311 (is_catchpoint): ... it.
2312 (print_one_breakpoint_location): Caller update.
2313 * breakpoint.h: Update declaration.
2315 2012-04-23 David S. Miller <davem@davemloft.net>
2317 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2319 2012-04-23 Tom Tromey <tromey@redhat.com>
2321 * buildsym.c (add_free_pendings): Remove.
2322 * buildsym.h (add_free_pendings): Remove.
2324 2012-04-23 Doug Evans <dje@google.com>
2326 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2327 attr.u.unsnd instead of attr.u.addr.
2328 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2329 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2331 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2332 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2334 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2336 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
2338 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2339 (mips_o32_return_value): Likewise.
2340 (mips_o64_return_value): Likewise.
2342 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
2344 * ada-lang.c (ada_evaluate_subexp): Add cases for
2345 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2346 their treatment in eval.c.
2348 2012-04-21 David S. Miller <davem@davemloft.net>
2350 * sparc-tdep.c (X_DISP10): Define.
2351 (sparc_analyze_control_transfer): Handle compare-and-branch.
2353 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
2355 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2356 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2358 2012-04-20 Nigel Stephens <nigel@mips.com>
2359 Maciej W. Rozycki <macro@codesourcery.com>
2361 * mips-tdep.c (mips_float_register_p): New function.
2362 (mips_convert_register_float_case_p): Use mips_float_register_p.
2363 (mips_register_type): Likewise.
2364 (mips_print_register): Likewise.
2365 (print_gp_register_row): Likewise.
2366 (mips_print_registers_info): Likewise.
2368 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
2370 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2373 2012-04-20 Andrew Pinski <apinski@cavium.com>
2375 * MAINTAINERS (Write After Approval): Add myself to the list.
2377 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2379 * MAINTAINERS: Update my e-mail address.
2381 2012-04-20 Pedro Alves <palves@redhat.com>
2383 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
2385 * configure: Regenerate.
2387 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2389 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
2391 * gdb_vecs.h: Declare `const_char_ptr' VEC.
2393 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2395 Fix compilation compatibility with python-2.4
2396 * python/py-type.c (convert_field): Cast ADDRSTRING for
2397 PyObject_SetAttrString as non-const. New comment.
2399 2012-04-19 Tom Tromey <tromey@redhat.com>
2401 * top.c (quit_target): Use all_cleanups.
2402 * main.c (captured_command_loop): Use all_cleanups.
2403 * exceptions.c (throw_exception): Use all_cleanups.
2405 2012-04-19 Pedro Alves <palves@redhat.com>
2407 * Makefile.in (GNULIB_BUILDDIR): New.
2408 (LIBGNU, INCGNU, GNULIB_H): Adjust.
2409 (SUBDIRS): Add $(GNULIB_BUILDDIR).
2410 (CLEANDIRS). Remove gnulib/import.
2411 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
2413 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
2414 (gnulib/import/Makefile): Replace gnulib/import with
2415 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
2416 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
2417 (aclocal_m4_deps): Remove the gnulib dependencies. Add
2418 acx_configure_dir.m4.
2419 * acinclude.m4: Include acx_configure_dir.m4.
2420 * acx_configure_dir.m4: New file.
2421 * aclocal.m4: Regenerate.
2422 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
2423 calls. Configure gnulib using ACX_CONFIGURE_DIR.
2424 (GNULIB): New variable.
2425 (GNULIB_STDINT_H): Adjust.
2426 (AC_OUTPUT): Don't output gnulib/Makefile.
2427 * gdb/defs.h: Include build-gnulib/config.h.
2428 * aclocal.m4: Regenerate.
2429 * config.in: Regenerate.
2430 * configure: Regenerate.
2432 * gnulib/Makefile.in: New file.
2433 * gnulib/configure.ac: New file.
2434 * gnulib/aclocal.m4: New file.
2435 * gnulib/config.in: New file.
2436 * gnulib/configure: New file.
2437 * gnulib/: Re-run gnulib-tool to adjust.
2439 2012-04-19 Doug Evans <dje@google.com>
2441 * cleanups.h (struct cleanup): Move to cleanups.c.
2442 (make_cleanup_dtor_ftype): New typedef.
2443 (make_cleanup_dtor): Use it.
2444 (ALL_CLEANUPS): Replace with ...
2445 (all_cleanups): ... this. Declare. All uses updated.
2446 * cleanups.c: #include "gdb_assert.h".
2447 (sentinel_cleanup): New static global.
2448 (SENTINEL_CLEANUP): Define.
2449 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
2450 (make_my_cleanup2): Assert result is non-NULL.
2451 (all_cleanups): New function.
2452 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
2455 2012-04-19 Pedro Alves <palves@redhat.com>
2457 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
2458 Adjust paths to gnulib imported files.
2460 2012-04-19 Pedro Alves <palves@redhat.com>
2462 * gnulib/: Move whole directory ...
2463 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
2464 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
2465 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
2466 (aclocal_m4_deps): Adjust.
2467 * aclocal.m4: Regenerate.
2468 * configure: Regenerate.
2469 * configure.ac: Adjust AC_OUTPUT output.
2471 2012-04-19 Yao Qi <yao@codesourcery.com>
2473 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
2475 * vec.c: Move it ...
2476 * common/vec.c: ... here.
2477 * vec.h: Move it ...
2478 * common/vec.h: ... here.
2480 2012-04-19 Yao Qi <yao@codesourcery.com>
2482 * gdb-code-style.el: New.
2484 2012-04-18 Pedro Alves <palves@redhat.com>
2486 Update gnulib from latest git.
2487 (639ea5ae15e39fe48d43e04864b2997301e4b969)
2489 * gnulib/Makefile.am: Update.
2490 * gnulib/dummy.c: Update.
2491 * gnulib/extra/arg-nonnull.h: Update.
2492 * gnulib/extra/c++defs.h: Update.
2493 * gnulib/extra/update-copyright: Update.
2494 * gnulib/extra/warn-on-use.h: Update.
2495 * gnulib/inttypes.in.h: Update.
2496 * gnulib/m4/00gnulib.m4: Update.
2497 * gnulib/m4/extensions.m4: Update.
2498 * gnulib/m4/gnulib-cache.m4: Update.
2499 * gnulib/m4/gnulib-common.m4: Update.
2500 * gnulib/m4/gnulib-comp.m4: Update.
2501 * gnulib/m4/gnulib-tool.m4: Update.
2502 * gnulib/m4/include_next.m4: Update.
2503 * gnulib/m4/inttypes-pri.m4: Update.
2504 * gnulib/m4/inttypes.m4: Update.
2505 * gnulib/m4/longlong.m4: Update.
2506 * gnulib/m4/memchr.m4: Update.
2507 * gnulib/m4/memmem.m4: Update.
2508 * gnulib/m4/mmap-anon.m4: Update.
2509 * gnulib/m4/multiarch.m4: Update.
2510 * gnulib/m4/onceonly.m4: Update.
2511 * gnulib/m4/stddef_h.m4: Update.
2512 * gnulib/m4/stdint.m4: Update.
2513 * gnulib/m4/string_h.m4: Update.
2514 * gnulib/m4/warn-on-use.m4: Update.
2515 * gnulib/m4/wchar_h.m4: Update.
2516 * gnulib/m4/wchar_t.m4: Update.
2517 * gnulib/m4/wint_t.m4: Update.
2518 * gnulib/memchr.c: Update.
2519 * gnulib/memmem.c: Update.
2520 * gnulib/stddef.in.h: Update.
2521 * gnulib/stdint.in.h: Update.
2522 * gnulib/str-two-way.h: Update.
2523 * gnulib/string.in.h: Update.
2524 * gnulib/wchar.in.h: Update.
2526 * gnulib/extra/arg-nonnull.h: Delete.
2527 * gnulib/extra/c++defs.h: Delete.
2528 * gnulib/extra/warn-on-use.h: Delete.
2529 * gnulib/m4/wchar_h.m4: Delete.
2530 * gnulib/m4/wint_t.m4: Delete.
2531 * gnulib/wchar.in.h: Delete.
2533 * gnulib/extra/snippets/arg-nonnull.h: New.
2534 * gnulib/extra/snippets/c++defs.h: New.
2535 * gnulib/extra/snippets/warn-on-use.h: New.
2537 * aclocal.m4: Regenerate.
2538 * config.in: Regenerate.
2539 * configure: Regenerate.
2540 * gnulib/Makefile.in: Regenerate.
2542 2012-04-18 Pedro Alves <palves@redhat.com>
2544 Reimport the update-copyright module from gnulib
2545 (250b80067c1e1d8faa0c42fb572f721975b929c5).
2547 * configure: Regenerate.
2548 * gnulib/Makefile.am: Update.
2549 * gnulib/Makefile.in: Regenerate.
2550 * gnulib/extra/update-copyright: Update.
2551 * gnulib/m4/gnulib-cache.m4: Update.
2552 * gnulib/m4/gnulib-comp.m4: Update.
2554 2012-04-18 Tristan Gingold <gingold@adacore.com>
2556 * configure.ac (aix): Put -lpthread into libs.
2557 * configure: Regenerate.
2559 2012-04-18 Tom Tromey <tromey@redhat.com>
2561 * linespec.c (convert_linespec_to_sals): Don't use
2563 (compare_msymbols): Arguments are minsym_and_objfile, not
2564 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
2566 2012-04-18 Pedro Alves <palves@redhat.com>
2568 Revert gnulib/ part of:
2569 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2570 Copyright year update in most files (performed by copyright.sh).
2572 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2574 Fix 64-bit constants on 32-bit hosts.
2575 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
2576 from unsigned long to ULONGEST.
2577 (read_signed_leb128): Change declaration return type from long to
2579 (dwarf2_const_value_attr): Change declaration parameter value from long
2581 (dwarf2_compute_name): Change variable value from long to LONGEST.
2582 (read_unsigned_leb128): Change return type, variable result and some
2583 casts from unsigned long to ULONGEST.
2584 (read_signed_leb128): Change return type, variable result and some
2585 casts from long to LONGEST.
2586 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
2587 value from long to LONGEST.
2588 (dwarf2_const_value): Change variable value from long to LONGEST.
2589 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
2590 plongest and hex_string.
2591 * symtab.h (struct general_symbol_info): Change ivalue from long to
2592 LONGEST, remove the comment.
2593 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
2594 Change SYMBOL_VALUE format strings to use plongest and hex_string.
2596 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
2599 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
2600 * ada-lang.c (ada_discrete_type_high_bound)
2601 (ada_discrete_type_low_bound): Fix function comment. Use
2602 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2603 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
2604 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2605 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
2606 Use TYPE_FIELD_ENUMVAL.
2607 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
2608 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2609 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
2610 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
2612 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
2613 * dwarf2read.c (process_enumeration_scope): Likewise.
2614 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
2616 (class StructMainTypePrettyPrinter): Support also
2617 FIELD_LOC_KIND_ENUMVAL.
2618 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
2620 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2621 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
2622 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
2623 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
2625 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
2626 accommodate enumval.
2627 (struct call_site): Adjust loc_kind to accommodate enumval.
2628 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
2629 (TYPE_FIELD_ENUMVAL): New macros.
2630 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
2631 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
2633 * p-typeprint.c (pascal_type_print_base): Likewise.
2634 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
2636 * python/lib/gdb/types.py (make_enum_dict): Likewise.
2637 * python/py-type.c (convert_field): New variable addrstring. Use
2638 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2639 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
2640 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
2641 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
2643 * valprint.c (generic_val_print): Likewise.
2645 2012-04-17 Doug Evans <dje@google.com>
2647 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
2649 * dwarf2read.c: Whitespace fixes.
2650 (lookup_signatured_type): Tweak comment.
2651 (get_die_type_at_offset): Fix comment.
2653 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2655 * xcoffread.c (xcoff_secnum_to_sections): New function.
2656 (secnum_to_section, secnum_to_bfd_section): Reimplement
2657 using xcoff_secnum_to_sections. Rename "secnum" parameter
2659 (RECORD_MINIMAL_SYMBOL): Delete.
2660 (record_minimal_symbol): New function.
2661 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
2662 by call to record_minimal_symbol and set misc_func_recorded
2663 to 1. Set last_csect_sec to the XCOFF section index instead
2664 of GDB's section_offset index. Update calls to
2665 prim_record_minimal_symbol_and_info to pass the BFD section
2668 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2670 * xcoffread.c (read_xcoff_symtab): Delete variables
2671 last_csect_val and last_csect_sec and associated code.
2673 2012-04-17 Doug Evans <dje@google.com>
2675 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
2676 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2677 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
2678 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
2680 * cleanups.h: New file.
2681 * cleanups.c: New file.
2682 * Makefile.in (SFILES): Add cleanups.c.
2683 (HFILES_NO_SRCDIR): Add cleanups.h.
2684 (COMMON_OBS): Add cleanups.o.
2685 * defs.h (struct cleanup): Moved to cleanups.h.
2686 (do_cleanups,do_final_cleanups): Ditto.
2687 (discard_cleanups,discard_final_cleanups): Ditto
2688 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2689 (save_cleanups,save_final_cleanups): Ditto.
2690 (restore_cleanups,restore_final_cleanups): Ditto.
2691 (null_cleanup): Ditto.
2692 (make_my_cleanup,make_my_cleanup2): Ditto.
2693 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2694 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
2695 (do_cleanups,do_final_cleanups): Ditto.
2696 (discard_cleanups,discard_final_cleanups): Ditto
2697 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2698 (save_cleanups,save_final_cleanups): Ditto.
2699 (restore_cleanups,restore_final_cleanups): Ditto.
2700 (null_cleanup): Ditto.
2701 (make_my_cleanup,make_my_cleanup2): Ditto.
2702 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2704 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
2706 (make_cleanup_dyn_string_delete): Ditto.
2707 (make_cleanup_ui_file_delete): Ditto.
2708 (make_cleanup_ui_out_redirect_pop): Ditto.
2709 (make_cleanup_free_section_addr_info): Ditto.
2710 (make_cleanup_restore_integer): Ditto.
2711 (make_cleanup_unpush_target): Ditto.
2712 (make_cleanup_value_free_to_mark): Ditto.
2713 (make_cleanup_value_free): Ditto.
2714 (make_cleanup_free_so): Ditto.
2716 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2718 New option "set debug auto-load".
2719 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
2720 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
2721 (auto_load_safe_path_vec_update)
2722 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
2724 (file_is_auto_load_safe): New parameters debug_fmt and ....
2725 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
2726 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
2727 caller by explanatory string.
2728 (_initialize_auto_load): Register "set debug auto-load".
2729 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
2731 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2732 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
2733 by explanatory string.
2734 * main.c (captured_main): Likewise.
2735 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2736 (source_section_scripts): Likewise.
2738 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2740 New option "set auto-load safe-path".
2741 * NEWS: New commands "set auto-load safe-path"
2742 and "show auto-load safe-path".
2743 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
2744 (auto_load_safe_path, auto_load_safe_path_vec)
2745 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
2746 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
2747 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
2748 (source_gdb_script_for_objfile): New variable is_safe. Call
2749 file_is_auto_load_safe. Return if it is not.
2750 (struct loaded_script): New field loaded.
2751 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
2752 (print_script): Use LOADED indicator instead of FULL_PATH. Change
2753 output "Missing" to "No".
2754 (_initialize_auto_load): New variable cmd. Initialize
2755 auto_load_safe_path. Register "set auto-load safe-path",
2756 "show auto-load safe-path" and "add-auto-load-safe-path".
2757 * auto-load.h (maybe_add_script): Add parameter loaded.
2758 (file_is_auto_load_safe): New declaration.
2759 * config.in: Regenerate.
2760 * configure: Regenerate.
2761 * configure.ac: New parameters --with-auto-load-safe-path
2762 and --without-auto-load-safe-path.
2763 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2764 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
2765 * main.c (captured_main): Check file_is_auto_load_safe for
2767 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
2768 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
2769 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
2772 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2774 auto-load: Implementation.
2775 * NEWS: New descriptions for "info auto-load",
2776 "info auto-load gdb-scripts", "info auto-load python-scripts",
2777 "info auto-load local-gdbinit" and "info auto-load libthread-db".
2778 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
2779 and "show auto-load-scripts". New description for "set auto-load",
2780 "show auto-load", "set auto-load gdb-scripts",
2781 "show auto-load gdb-scripts", "set auto-load python-scripts",
2782 "show auto-load python-scripts", "set auto-load local-gdbinit",
2783 "show auto-load local-gdbinit", "set auto-load libthread-db" and
2784 "show auto-load libthread-db".
2785 * auto-load.c: Remove include python/python-internal.h. Add includes
2786 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
2788 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
2789 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
2790 (gdbpy_global_auto_load): Rename to ...
2791 (global_auto_load): ... here.
2792 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2793 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
2794 (script_language_gdb, source_gdb_script_for_objfile): New.
2795 (struct loaded_script): New field language.
2796 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
2798 (maybe_add_script): Add parameter language. Drop redundant
2799 entry.full_path initialization. Initialize entry.language and
2801 (auto_load_objfile_script): Change parameter suffix to language.
2802 Remove the call of maybe_add_script.
2803 Call language->source_script_for_objfile.
2804 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
2806 (collect_matching_scripts): Adjust it for
2807 struct collect_matching_scripts_data.
2808 (auto_load_info_scripts_pattern_nl): New variable.
2809 (info_auto_load_scripts): Rename to ...
2810 (auto_load_info_scripts): ... here, add parameter language. Adjust it
2811 for struct collect_matching_scripts_data.
2812 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
2813 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
2814 (auto_load_show_cmdlist_get, info_auto_load_cmd)
2815 (auto_load_info_cmdlist_get): New.
2816 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
2817 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
2818 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
2819 "info auto-load local-gdbinit".
2820 * auto-load.h (struct script_language): New.
2821 (gdbpy_global_auto_load): Rename to ...
2822 (global_auto_load): ... here.
2823 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2824 (auto_load_local_gdbinit_loaded): New declarations.
2825 (maybe_add_script): New parameter language.
2826 (auto_load_objfile_script): Change parameter suffix to language.
2827 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
2828 (auto_load_info_scripts, auto_load_set_cmdlist_get)
2829 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
2831 * linux-thread-db.c: Include auto-load.h and ctype.h.
2832 (auto_load_thread_db, show_auto_load_thread_db): New.
2833 (struct thread_db_info): New field filename.
2834 (delete_thread_db_info): Call xfree for FILENAME.
2835 (try_thread_db_load): Initialize FILENAME.
2836 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
2837 if !AUTO_LOAD_THREAD_DB.
2838 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
2839 (_initialize_thread_db): Install auto_load_thread_db
2840 as "set auto-load libthread-db" and install info_auto_load_libthread_db
2841 as "info auto-load libthread-db".
2842 * main.c (captured_main): Rename gdbpy_global_auto_load to
2843 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
2844 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
2845 (print_gdb_help): Extend the help for 'local init file'.
2846 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
2847 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
2848 (auto_load_scripts): Rename to ...
2849 (auto_load_python_scripts): ... here, update the comment.
2850 (gdbpy_load_auto_script_for_objfile): New declaration.
2851 (show_auto_load_python_scripts, script_language_python)
2852 (gdbpy_load_auto_script_for_objfile): New.
2853 (source_section_scripts): Refactor the code.
2854 (load_auto_scripts_for_objfile): Rename to ...
2855 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
2856 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
2857 (info_auto_load_python_scripts): New.
2858 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
2859 Rename "set auto-load-scripts" to "set auto-load python-scripts".
2860 Register "set auto-load-scripts" as its deprecated alias. Register
2861 "info auto-load python-scripts". Register "info auto-load-scripts" as
2862 its deprecated alias.
2863 (load_auto_scripts_for_objfile): Rename to ...
2864 (gdbpy_load_auto_scripts_for_objfile): ... here.
2865 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
2866 (gdbpy_load_auto_scripts_for_objfile): ... here.
2868 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2870 auto-load: Move files.
2871 * Makefile.in (SFILES): Add auto-load.c.
2872 (HFILES_NO_SRCDIR): Add auto-load.h.
2873 (COMMON_OBS): Add auto-load.o.
2874 (distclean): Change .gdbinit for gdb-gdb.gdb.
2875 * auto-load.c: New file, with parts from python/py-auto-load.c.
2876 * auto-load.h: New file, with parts from python/python.h.
2877 * configure: Regenerate.
2878 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
2879 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
2880 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
2881 * main.c: Include auto-load.h.
2882 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
2883 command.h, observer.h and progspace.h to auto-load.c. Add include
2885 (gdbpy_global_auto_load, struct auto_load_pspace_info)
2886 (struct loaded_script, auto_load_pspace_data)
2887 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
2888 (hash_loaded_script_entry, eq_loaded_script_entry)
2889 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
2890 (maybe_add_script): Move to auto-load.c.
2891 (source_section_scripts): Change maybe_add_script parameters passing,
2892 use script_not_found_warning_print.
2893 (clear_section_scripts, auto_load_objfile_script)
2894 (auto_load_new_objfile, loaded_script_ptr)
2895 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
2896 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
2897 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
2898 auto_load_new_objfile and info_auto_load_scripts initizations to
2900 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
2902 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2905 * charset.c (find_charset_names): Remove variables ix and elt.
2906 Use free_char_ptr_vec.
2907 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
2908 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
2909 debugdir_end. New variable debugdir_len.
2910 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
2911 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
2913 * progspace.c (clear_program_space_solib_cache): Remove variables ix
2914 and elt. Use free_char_ptr_vec.
2915 * source.c (add_path): Remove variables argv, arg and argv_index.
2916 New variables dir_vec, back_to, ix and name.
2917 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
2918 make_cleanup_freeargv. Remove variable separator. Simplify the code
2919 no longer expecting DIRNAME_SEPARATOR.
2920 (openp): Remove variable p, p1 and len. New variables dir_vec,
2921 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
2922 no longer expecting DIRNAME_SEPARATOR.
2923 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
2924 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
2926 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
2927 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
2928 (dirnames_to_char_ptr_vec): New functions.
2930 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2933 * source.c (add_path): Remove always true conditional 'p == 0' and
2934 unindent its code block.
2936 2012-04-17 Pedro Alves <palves@redhat.com>
2938 * gdbtypes.h (FIELD_BITPOS): Rename to ...
2939 (FIELD_BITPOS_LVAL): ... this.
2940 (FIELD_BITPOS): New.
2941 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
2942 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
2943 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
2945 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
2947 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
2948 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
2949 * target-descriptions.c (tdesc_gdb_type): Adjust to use
2952 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2954 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
2955 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
2956 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
2957 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
2958 * jv-lang.c (java_link_class_type): Likewise, once.
2959 * stabsread.c (read_enum_type): Likewise.
2961 2012-04-16 Yao Qi <yao@codesourcery.com>
2963 * common/agent.c (agent_run_command): Add one more parameter `len'.
2965 * common/agent.h: Update declaration.
2966 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2968 (linux_child_static_tracepoint_markers_by_strid): Ditto.
2970 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
2973 * value.c (value_actual_type): New function.
2974 * value.h (value_actual_type): New declaration.
2975 * varobj.c (update_type_if_necessary): New function.
2976 (varobj_create): Call value_actual_type instead of
2978 (install_dynamic_child): distinct changed and type changed MI variable
2980 (update_dynamic_varobj_children): Updated for install_dynamic_child
2981 change. All callers updated.
2982 (varobj_update): Support for MI variable object type change if
2983 the value changed and RTTI is used to determine the type.
2984 (create_child_with_value): Call value_actual_type instead of
2986 (adjust_value_for_child_access): Extended with a new parameter which
2987 specify whether the given value should be casted to enclosing type.
2988 All callers updated.
2990 2012-04-14 Yao Qi <yao@codesourcery.com>
2992 Import gnulib module inttypes from git
2993 (250b80067c1e1d8faa0c42fb572f721975b929c5)
2994 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
2995 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
2996 gnulib/m4/inttypes-pri.m4
2997 * aclocal.m4, config.in, configure: Regenerated.
2998 * gnulib/Makefile.am: Update.
2999 * gnulib/Makefile.in: Update.
3000 * gnulib/m4/gnulib-cache.m4: Update.
3001 * gnulib/m4/gnulib-comp.m4: Update.
3002 * gnulib/inttypes.in.h: New.
3003 * gnulib/m4/inttypes-pri.m4: New.
3004 * gnulib/m4/inttypes.m4: New.
3006 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
3008 * infrun.c (resume): Update PC address to the real PC after
3009 preparing to do displaced stepping.
3011 2012-04-12 Doug Evans <dje@google.com>
3013 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3014 All callers updated.
3016 2012-04-12 Mark Kettenis <kettenis@gnu.org>
3018 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3020 2012-04-12 Doug Evans <dje@google.com>
3022 * dwarf2read.c (create_all_type_units): Renamed from
3023 create_debug_types_hash_table. All callers updated.
3025 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3026 local type_sig to sig_type, type_offset to type_offset_in_tu.
3027 (hash_signatured_type): Renamed from hash_type_signature,
3028 all callers updated.
3029 (eq_signatured_type): Renamed from eq_type_signature,
3030 all callers updated.
3031 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3032 (process_enumeration_scope): Ditto.
3033 (lookup_signatured_type_at_offset): Ditto.
3034 (load_full_type_unit, read_signatured_type): Ditto.
3036 2012-04-12 Yao Qi <yao@codesourcery.com>
3038 * remote.c (async_remote_interrupt): Correct function name in
3040 (async_remote_interrupt_twice): Ditto.
3042 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3044 * source.c (find_and_open_source): Consistently pass resulting
3045 full path through xfullpath.
3047 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3049 Provide more specific displaced-stepping memory error message.
3050 * infrun.c (displaced_step_prepare): New variable status. Call
3051 target_read_memory instead of read_memory, provide more specific
3054 2012-04-11 Tristan Gingold <gingold@adacore.com>
3057 * darwin-nat.c (darwin_execvp): Revert previous patch.
3059 2012-04-11 Tristan Gingold <gingold@adacore.com>
3062 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3065 2012-04-11 Tristan Gingold <gingold@adacore.com>
3067 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3070 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3072 New command 'explore' which helps explore values and types in
3074 * NEWS: Add an entry about the new 'explore' command.
3075 * data-directory/Makefile.in: Add gdb/command/explore.py
3076 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3077 command using the GDB Python API.
3079 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3081 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3082 extension in jump target calculation.
3084 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3086 * mips-tdep.c (mips32_next_pc): Handle JALX.
3088 2012-04-10 Yao Qi <yao@codesourcery.com>
3090 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3092 2012-04-10 Yao Qi <yao@codesourcery.com>
3094 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3095 and gnulib/m4/gnulib-tool.m4.
3097 2012-04-10 Doug Evans <dje@google.com>
3099 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3100 (load_partial_dies): Clarify comment.
3101 (find_partial_die): Support rereading type units.
3102 Clarify CU handling, if we know offset is in CU, don't search for the
3103 containing CU. Add comment regarding memory waste.
3105 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3107 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3108 i386/x32-avx and i386/x32-avx-linux.
3109 (i386/x32-expedite): New.
3110 (i386/x32-linux-expedite): Likewise.
3111 (i386/x32-avx-expedite): Likewise.
3112 (i386/x32-avx-linux-expedite): Likewise.
3113 ($(outdir)/i386/x32.dat): Likewise.
3114 ($(outdir)/i386/x32-linux.dat): Likewise.
3115 ($(outdir)/i386/x32-avx.dat): Likewise.
3116 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3118 * features/i386/x32-avx-linux.xml: New file.
3119 * features/i386/x32-avx.xml: Likewise.
3120 * features/i386/x32-core.xml: Likewise.
3121 * features/i386/x32-linux.xml: Likewise.
3122 * features/i386/x32.xml: Likewise.
3124 * features/i386/x32-avx-linux.c: New. Generated.
3125 * features/i386/x32-avx.c: Likewise.
3126 * features/i386/x32-linux.c: Likewise.
3127 * features/i386/x32.c: Likewise.
3128 * regformats/i386/x32-avx-linux.dat: Likewise.
3129 * regformats/i386/x32-avx.dat: Likewise.
3130 * regformats/i386/x32-linux.dat: Likewise.
3131 * regformats/i386/x32.dat: Likewise.
3133 2012-04-10 Tristan Gingold <gingold@adacore.com>
3135 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3136 code to kill the inferior.
3138 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3140 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3142 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3144 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3145 (yyvsp): New defines.
3146 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3148 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3150 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3152 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3154 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3157 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3159 * sparc64-tdep.c (sparc64_store_arguments)
3160 (sparc64_store_arguments): Fix coding style.
3162 2012-04-07 Mark Kettenis <kettenis@gnu.org>
3164 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3165 complex floats, adjust some related comments and tighten a related
3167 (sparc64_extract_return_value): Handle complex floats.
3169 2012-04-07 Doug Evans <dje@google.com>
3171 * dwarf2read.c (load_partial_dies): Change condition to assert.
3173 2012-04-06 Doug Evans <dje@google.com>
3175 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3178 2012-04-05 Kevin Buettner <kevinb@redhat.com>
3180 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3182 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3183 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3186 2012-04-05 Keith Seitz <keiths@redhat.com>
3188 * linespec.c (decode_compound): Remove.
3189 (enum offset_relative_sign): New enum.
3190 (struct line_offset): New struct.
3191 (struct linespec): New struct.
3192 (struct linespec_state): Move file_symtabs,
3193 user_filename, and user_function into struct linespec.
3194 Make result an anonymous struct holding vectors of
3195 symbolp and minsym_and_objfile_d.
3196 Add language member.
3197 (enum ls_token_type): New enum.
3198 (linespec_keywords): New array.
3199 (struct ls_token): New struct.
3200 (struct ls_parser): New struct.
3201 (linespec_lexer_lex_number): New function.
3202 (linespec_lexer_lex_keyword): New function.
3203 (is_ada_operator): New function.
3204 (skip_quote_char): New function.
3205 (copy_token_string): New function.
3206 (is_closing_quote_enclosed): New function.
3207 (find_parameter_list_end): New function.
3208 (linespec_lexer_lex_string): New function.
3209 (linespec_lexer_lex_one): New function.
3210 (linespec_lexer_consume_token): New function.
3211 (linespec_lexer_peek_token): New function.
3212 (cplusplus_error): Remove unused function.
3213 (find_methods): Update comment.
3214 (find_toplevel_char): Return const.
3215 (is_objc_method_format): Remove unused function.
3216 (find_toplevel_string): New function.
3217 (is_linespec_boundary): Remove.
3218 (symbol_not_found_error): New function.
3219 (find_method_overload_end): Remove function.
3220 (unexpected_linespec_error): New function.
3221 (keep_name_info): Remove.
3222 (linespec_parse_line_offset): New function.
3223 (linespec_parse_basic): New function.
3224 (canonicalize_linespec): New function.
3225 (decode_line_internal): Remove.
3226 (create_sals_line_offset): New function adapted from
3228 (convert_linespec_to_sals): New function.
3229 (parse_linespec): New function.
3230 (linespec_parser_new): New function.
3231 (linespec_state_destructor): Change parameter type to
3232 struct linespec_state *.
3233 Add language parameter.
3234 Remove freeing of moved members.
3235 (linespec_parser_delete): New function.
3236 (decode_line_full): Use parse_linespec and linespec_parser_new.
3237 (decode_line_1): Likewise.
3238 (decode_indirect): Rename to ...
3239 (linespec_expression_to_pc): ... this and rewrite
3240 to simply find CORE_ADDR, storing this result for later
3242 (locate_first_half): Remove.
3243 (deocde_objc): Add parameter LS.
3244 Initialize new struct collect_info members.
3245 Handle minimal symbols, too.
3246 (decode_compound): Delete.
3247 (lookup_prefix_sym): Rewrite.
3248 (compare_msymbols): New function.
3249 (find_method): Rewrite.
3250 Do not call cplusplus_error.
3251 (symtabs_from_filename): Rewrite.
3252 (collect_function_symbols): Delete.
3253 (find_function_symbols): Rewrite without ARGPTR-style
3255 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3256 (decode_dollar): Adapted and renamed to ...
3257 (linespec_parse_variable): ... this.
3258 (find_linespec_symbols): New function.
3259 (decode_label): Adapted and renamed to ...
3260 (find_label_symbols): ... this.
3261 (decode_digits_list_mode): Add and use LS argument.
3262 (decode_digits_ordinary): Likewise.
3263 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3264 If in list mode, allow any symbol class. Otherwise, only
3265 permit LOC_BLOCK symbols.
3266 (minsym_found): Update comments.
3267 (search_minsyms_for_name): Do not convert the matching symbol
3268 into a SAL. Simply push the symbol and objfile into the
3270 (decode_variable): Delete. Contents adapted into
3271 find_linespec_symbols.
3273 * cp-support.c (SKIP_SPACE): Remove.
3274 (operator_tokens): Remove unused global.
3275 (cp_validate_operator): Remove.
3276 * cp-support.h (cp_validate_operator): Remove declaration.
3278 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3280 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3281 for TYPE_VPTR_FIELDNO.
3282 * valprint.c (valprint_check_validity): Make it global, move the
3283 function comment ...
3284 * value.h (valprint_check_validity): ... to this new declaration.
3286 2012-04-02 Tristan Gingold <gingold@adacore.com>
3288 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3289 the STATE32 api for i386 state.
3290 (i386_darwin_store_inferior_registers): Likewise.
3292 2012-04-02 Tristan Gingold <gingold@adacore.com>
3294 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3296 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3299 2012-04-02 Tristan Gingold <gingold@adacore.com>
3302 * darwin-nat.c (darwin_execvp): Set binary preference.
3304 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3306 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3308 2012-03-30 Tom Tromey <tromey@redhat.com>
3310 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3311 of TRY_CATCH. Fix error handling.
3312 * python/py-value.c (convert_value_from_python): Move 'old'
3313 declaration to innermost scope.
3315 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3316 Andrey Smirnov <andrew.smirnov@gmail.com>
3318 -Wshadow warning fix.
3319 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3320 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3321 Adjust code accordingly.
3323 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3325 * ada-lang.c (symbol_completion_add): Rename parameter
3326 "encoded" into "encoded_p". Ajust code and documentation
3329 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3330 Andrey Smirnov <andrew.smirnov@gmail.com>
3332 -Wshadow warning fix.
3333 * ada-lang.c (symbol_completion_add): Rename parameter
3334 "wild_match" into wild_match_p. Update code and documentation
3337 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3339 * ada-lang.c (symbol_completion_match): Rename parameter
3340 "encoded" into "encoded_p". Ajust code and documentation
3343 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3344 Andrey Smirnov <andrew.smirnov@gmail.com>
3346 -Wshadow warning fix.
3347 * ada-lang.c (symbol_completion_match): Rename parameter
3348 "wild_match" into "wild_match_p". Adjust code and function
3349 documentation accordingly.
3351 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3352 Andrey Smirnov <andrew.smirnov@gmail.com>
3354 -Wshadow warning fix.
3355 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3356 "symbol_info" into "info". Adjust code accordingly.
3357 (ada_lookup_symbol): Likewise.
3359 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3361 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3362 of this function's documentation.
3364 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3365 Andrey Smirnov <andrew.smirnov@gmail.com>
3367 -Wshadow warning fix.
3368 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3369 variable into "wild_match_p". Adjust code accordingly.
3371 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3372 Andrey Smirnov <andrew.smirnov@gmail.com>
3374 -Wshadow warning fix.
3375 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3376 parameter into "wild_match_p". Adjust code accordingly.
3377 Document this parameter in the function description.
3379 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3380 Andrey Smirnov <andrew.smirnov@gmail.com>
3382 -Wshadow warning fix.
3383 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
3384 "wild_match" parameter to "wild_match_p" (-Wshadow).
3386 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3388 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
3389 in function documentation.
3391 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3392 Andrey Smirnov <andrew.smirnov@gmail.com>
3394 -Wshadow warning fix.
3395 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
3396 variable into wild_match_p. Adjust code accordingly.
3398 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3399 Andrey Smirnov <andrew.smirnov@gmail.com>
3401 * ada-valprint.c (ada_val_print_1): Move the code handling
3402 TYPE_CODE_ENUM inside its own lexical block. Declare
3403 variables len and val there, instead of in the function's
3404 top level block. Avoid declaring deref_val again in a way
3405 that shadows another variable of the same name declared
3406 in one of the up-level blocks. Just re-use the up-level
3409 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3411 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
3412 Replace block_found argument by symbol_info. Adjust
3413 implementation accordingly. Add function documentation.
3414 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
3416 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
3417 * ada-exp.y (write_object_renaming): Adjust to new
3418 ada_lookup_encoded_symbol API.
3420 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3422 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
3425 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
3427 * v850-tdep.c: Add the enum values for mpu and fpu registers.
3428 (v850_register_name): Add the mpu and fpu register names.
3429 (v850e_register_name): Add the mpu and fpu register names.
3430 (v850e2_register_name): New function.
3431 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
3434 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3436 * NEWS: Add entry for Ada varobj support.
3438 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3440 * varobj.c (default_value_is_changeable_p): New function,
3441 extracted from varobj_value_is_changeable_p. Add declaration.
3442 (ada_value_is_changeable_p): New function, extracted from
3443 varobj_value_is_changeable_p. Add declaration.
3444 (struct language_specific): New field "value_is_changeable_p".
3445 (languages): Add entries for new field.
3446 (varobj_create): Set language before calling install_new_value.
3447 (varobj_value_is_changeable_p): Reimplement to call the varobj's
3448 "value_is_changeable_p" language callback.
3450 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3452 * ada-varobj.h, ada-varobj.c: New files.
3453 * Makefile.in (SFILES): Add ada-varobj.c.
3454 (HFILES_NO_SRCDIR): Add ada-varobj.h.
3455 (COMMON_OBS): Add ada-varobj.o.
3457 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3459 * varobj.c (ada_value_has_mutated): Add declaration. New function.
3460 (struct language_specific): New field "value_has_mutated".
3461 (languages): Set field "value_has_mutated" in each entry of array.
3462 (varobj_value_has_mutated): New function.
3463 (varobj_udpdate): Add handling of type mutation.
3464 (value_of_root): Add handling of type mutation.
3465 (ada_value_has_mutated): New function.
3467 2012-03-28 Pedro Alves <palves@redhat.com>
3469 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
3470 Always supply $fr0 as 0.0 and $fr1 as 1.0.
3472 2012-03-28 Tom Tromey <tromey@redhat.com>
3474 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
3475 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
3478 2012-03-28 Tom Tromey <tromey@redhat.com>
3480 * .dir-locals.el: New file.
3482 2012-03-28 Pedro Alves <palves@redhat.com>
3484 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
3486 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3488 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
3491 2012-03-27 Pedro Alves <palves@redhat.com>
3493 Eliminate struct ui_stream.
3495 * ui-out.h (struct ui_stream): Delete.
3496 (ui_out_field_stream): Adjust prototype.
3497 (ui_out_stream_new, ui_out_stream_delete)
3498 (make_cleanup_ui_out_stream_delete): Delete declarations.
3499 * ui-out.c (ui_out_field_stream): Change prototype to take a
3500 ui_file instead of a ui_stream. Adjust.
3501 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
3502 (make_cleanup_ui_out_stream_delete): Delete.
3503 * breakpoint.c (print_breakpoint_location)
3504 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
3505 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3506 * disasm.c (dump_insns): Ditto.
3507 (do_mixed_source_and_assembly, do_assembly_only): Adjust
3509 (gdb_disassembly): Use ui_file/mem_fileopen instead of
3510 ui_stream/ui_out_stream_new.
3511 * infcmd.c (print_return_value): Ditto.
3512 * osdata.c (info_osdata_command): Don't allocate a local
3514 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
3515 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3516 * tracepoint.c (print_one_static_tracepoint_marker): Don't
3517 allocate a local ui_stream.
3518 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
3519 instead of ui_stream/ui_out_stream_new.
3520 (list_args_or_locals): Don't allocate a local ui_stream.
3521 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
3522 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
3523 ui_stream/ui_out_stream_new.
3524 * cli/cli-setshow.c (do_setshow_command): Ditto.
3526 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
3528 * arm-linux-tdep.c (arm_linux_init_abi): Call
3529 set_gdbarch_process_record. Initialize `arm_swi_record' field.
3530 * arm-tdep.c (arm_process_record): New function.
3531 (deallocate_reg_mem): New function.
3532 (decode_insn): New function.
3533 (thumb_record_branch): New function.
3534 (thumb_record_ldm_stm_swi(): New function.
3535 (thumb_record_misc): New function.
3536 (thumb_record_ld_st_stack): New function.
3537 (thumb_record_ld_st_imm_offset): New function.
3538 (thumb_record_ld_st_reg_offset(): New function.
3539 (thumb_record_add_sub_cmp_mov): New function.
3540 (thumb_record_shift_add_sub): New function.
3541 (arm_record_coproc_data_proc): New function.
3542 (arm_record_coproc): New function.
3543 (arm_record_b_bl): New function.
3544 (arm_record_ld_st_multiple): New function.
3545 (arm_record_ld_st_reg_offset): New function.
3546 (arm_record_ld_st_imm_offset): New function.
3547 (arm_record_data_proc_imm): New function.
3548 (arm_record_data_proc_misc_ld_str): New function.
3549 (arm_record_extension_space): New function.
3550 (arm_record_strx): New function.
3551 (sbo_sbz): New function.
3552 (struct insn_decode_record): New structure for arm insn record.
3553 (REG_ALLOC): New macro for reg allocations.
3554 (MEM_ALLOC): New macro for memory allocations.
3555 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
3557 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
3559 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
3560 (store_register): Likewise.
3562 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3564 * MAINTAINERS (Write After Approval): Add myself to the list.
3566 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3568 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
3569 Describe also the option "auto".
3571 2012-03-22 Richard Henderson <rth@redhat.com>
3573 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
3574 * sparc-nat.c (sparc_xfer_wcookie): Make static.
3576 2012-03-22 Richard Henderson <rth@redhat.com>
3578 * jit.c (jit_read_code_entry): Compute alignment and offset of
3579 int64_t member before computing entry_size.
3581 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3583 Python scripting: Add new method Value.referenced_value to
3584 gdb.Value which can dereference pointer as well as reference
3586 * NEWS: Add entry under 'Python scripting' about the new method
3587 Value.referenced_value on gdb.Value objects.
3588 * python/py-value.c (valpy_referenced_value): New function
3589 defining a new method on gdb.Value objects which can dereference
3590 pointer and reference values.
3592 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3594 * MAINTAINERS (Write After Approval): Add myself to the list.
3596 2012-03-21 Kevin Buettner <kevinb@redhat.com>
3598 * symtab.c (skip_prologue_sal): Change test to check for "main()"
3599 in addition to "main".
3601 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3603 * expression.h (op_name): Add declaration.
3604 * expprint.c (op_name): Remove declaration. Make non-static.
3605 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
3607 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
3609 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
3611 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
3612 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3613 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
3614 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
3615 (linux_nat_get_siginfo): Likewise.
3616 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
3617 (linux_nat_get_siginfo): Likewise.
3618 * linux-tdep.c (linux_get_siginfo_type): Likewise.
3619 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
3620 * procfs.c (gdb_siginfo_t): Likewise.
3622 2012-03-21 Mike Frysinger <vapier@gentoo.org>
3624 * .gitignore: Ignore more files.
3626 2012-03-20 Pedro Alves <palves@redhat.com>
3628 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
3631 2012-03-20 Yao Qi <yao@codesourcery.com>
3633 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
3636 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3638 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
3639 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
3640 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
3642 * dwarf2expr.h (cu_offset, sect_offset): New types.
3643 (struct dwarf_expr_context_funcs) <dwarf_call>
3644 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
3646 (struct dwarf_expr_context) <len>: Improve the comment.
3647 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
3648 cu_offset and sect_offset.
3649 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
3650 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
3651 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
3652 * dwarf2loc.h: Include dwarf2expr.h.
3653 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
3655 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
3656 Improve the comment.
3657 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
3658 (struct signatured_type, struct line_header, struct partial_die_info)
3659 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
3660 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
3661 (get_die_type_at_offset, create_cus_from_index)
3662 (create_signatured_type_table_from_index, dw2_get_file_names)
3663 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
3664 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
3665 (create_debug_types_hash_table, process_psymtab_comp_unit)
3666 (load_partial_comp_unit, create_all_comp_units)
3667 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
3668 (load_full_comp_unit, dwarf2_physname, read_import_statement)
3669 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
3670 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
3671 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
3672 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
3673 (find_partial_die, read_attribute_value, lookup_die_type)
3674 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
3675 (is_ref_attr): New function comment.
3676 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
3677 Use cu_offset and sect_offset.
3678 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
3679 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
3680 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
3681 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
3682 (offset_and_type_hash, offset_and_type_eq, set_die_type)
3683 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
3684 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
3687 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3690 * python/py-auto-load.c (source_section_scripts): New variable back_to.
3691 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
3693 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
3695 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3697 * NEWS: Describe new options --init-command=FILE, -ix and
3698 --init-eval-command=COMMAND, -iex.
3699 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
3700 CMDARG_INIT_COMMAND.
3701 (captured_main): New enum items OPT_IX and OPT_IEX. Add
3702 "init-command", "init-eval-command", "ix" and "iex" to the variable
3703 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
3704 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
3705 (print_gdb_help): Describe --init-command=FILE, -ix and
3706 --init-eval-command=COMMAND, -iex.
3708 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3711 * main.c (struct cmdarg): Move it here from main. Add more comments.
3712 (cmdarg_s, VEC (cmdarg_s)): New.
3713 (main): Move struct cmdarg from here. New variables cmdarg_vec and
3714 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
3715 Install cleanup for cmdarg_vec. Update filling for options 'x' and
3716 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
3719 2012-03-19 Tom Tromey <tromey@redhat.com>
3721 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
3723 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3726 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
3729 2012-03-16 Chris January <chris.january@allinea.com>
3731 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
3734 2012-03-16 Chris January <chris.january@allinea.com>
3736 * source.c (add_path): Use memmove instead of strcpy because the
3739 2012-03-16 Joel Brobecker <brobecker@adacore.com>
3741 * value.h (set_value_parent): Add declaration.
3742 * value.c (set_value_parent): New function.
3743 (value_address): If VALUE->PARENT is not NULL, then use it as
3744 the base address instead of VALUE->LOCATION.address.
3745 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
3746 the same as OBJ's address. Adjust V's offset accordingly.
3749 2012-03-16 Gary Benson <gbenson@redhat.com>
3751 PR breakpoints/10738
3752 * dwarf2read.c (use_deprecated_index_sections): New global.
3753 (struct partial_die_info): New member may_be_inlined.
3754 (read_partial_die): Set may_be_inlined where appropriate.
3755 (add_partial_subprogram): Add partial symbols for partial
3756 DIEs that may be inlined.
3757 (new_symbol_full): Add inlined subroutines to the current
3759 (write_psymtabs_to_index): Bump version number.
3760 (dwarf2_read_index): Read only version 6 indices unless
3761 use_deprecated_index_sections is set.
3762 * linespec.c (symbol_and_data_callback): New structure.
3763 (iterate_inline_only): New function.
3764 (iterate_over_all_matching_symtabs): New argument
3765 "include_inline". If nonzero, also call the callback for
3766 symbols representing inlined subroutines.
3767 (lookup_prefix_sym): Pass extra argument to the above.
3768 (find_function_symbols): Likewise.
3769 (add_matching_symbols_to_info): Likewise.
3770 * NEWS: Mention that GDB can now set breakpoints on inlined
3773 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3775 * p-typeprint.c (pascal_type_print_method_args):
3776 Fix display of parameter of methods.
3778 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3780 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
3781 Add missing prototype.
3783 2012-03-16 Yao Qi <yao@codesourcery.com>
3784 Jan Kratochvil <jan.kratochvil@redhat.com>
3786 Fix false compilation warning.
3787 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
3789 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
3790 Pedro Alves <pedro@codesourcery.com>
3792 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
3793 (arm_register_g_packet_guesses): New function.
3794 (arm_gdbarch_init): Don't force a target description with
3795 registers when the executable is detected as M-profile. Instead
3796 set gdbarch->tdep->is_m. Register `g' packet guesses.
3797 (_initialize_arm_tdep): Initialize the new target description.
3798 * features/arm-with-m-fpa-layout.xml: New description.
3799 * features/arm-with-m-fpa-layout.c: New, generated.
3801 2012-03-15 Joel Brobecker <brobecker@adacore.com>
3803 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
3804 Update function description.
3805 (insert_bp_location): Do not wipe bl->target_info out.
3806 * mem-break.c: #include "gdb_string.h".
3807 (default_memory_insert_breakpoint): Do not call target_read_memory
3808 with a pointer to the breakpoint's shadow_contents buffer. Use
3809 a local buffer instead.
3810 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
3812 2012-03-15 Tom Tromey <tromey@redhat.com>
3814 * NEWS: Mention "info vtbl", not "info vtable".
3815 * cp-support.c (info_vtbl_command): Fix comment.
3816 (_initialize_cp_support): Fix text.
3818 2012-03-15 Tom Tromey <tromey@redhat.com>
3820 * cp-valprint.c (cp_print_value_fields): Use
3821 print_function_pointer_address for vtable slot.
3823 2012-03-15 Tom Tromey <tromey@redhat.com>
3825 * gnu-v3-abi.c (struct value_and_voffset): New.
3826 (hash_value_and_voffset, eq_value_and_voffset)
3827 (compare_value_and_voffset, compute_vtable_size)
3828 (print_one_vtable, gnuv3_print_vtable): New functions.
3829 (init_gnuv3_ops): Initialize 'print_vtable' field.
3830 * cp-support.c (info_vtbl_command): New function.
3831 (_initialize_cp_support): Add "info vtbl".
3832 * cp-abi.h (cplus_print_vtable): Declare.
3833 (struct cp_abi_ops) <print_vtable>: New field.
3834 * cp-abi.c (cplus_print_vtable): New function.
3837 2012-03-15 Tom Tromey <tromey@redhat.com>
3839 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
3840 iterate_over_symbols.
3842 2012-03-14 Doug Evans <dje@google.com>
3844 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
3845 DW_OP_GNU_parameter_ref.
3847 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3849 Fix double prompt of 'interpreter-exec mi'.
3850 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
3851 (mi_interpreter_resume): use it.
3852 (mi_execute_command_input_handler): New function.
3853 * mi/mi-main.c (mi_execute_command): Move prompt printing to
3854 mi_execute_command_input_handler.
3856 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
3858 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
3860 (darwin_debug_port_info): Make static.
3861 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
3862 * machoread.c (_initialize_machoread): Add prototype.
3863 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
3864 (i386_darwin_set_control, i386_darwin_get_control)
3865 i386_darwin_dr_set_addr, i386_darwin_get_addr)
3866 i386_darwin_get_status, i386_darwin_get_control):
3867 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
3869 2012-03-13 Joel Brobecker <brobecker@adacore.com>
3871 * ax-gdb.c (gen_usual_unary): Remove special handling of
3872 enum and bool types.
3874 2012-03-13 Joel Brobecker <brobecker@adacore.com>
3876 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
3878 2012-03-13 Joel Brobecker <brobecker@adacore.com>
3880 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
3882 2012-03-13 Chris January <chris.january@allinea.com>
3884 * aix-thread.c (fill_sprs): Store the floating point registers
3885 at the correct offsets into vals.
3887 2012-03-13 Doug Evans <dje@google.com>
3889 * NEWS: Mention symbol-reloading has been deleted.
3890 * symfile.c (symbol_reloading): Delete.
3891 (show_symbol_reloading): Delete.
3892 (_initialize_symfile): Delete set/show symbol-reloading.
3894 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
3895 read_in_chain until we have successfully read it in.
3896 (load_full_comp_unit): Ditto.
3897 (read_signatured_type): Add comment.
3899 2012-03-13 Chris January <chris.january@allinea.com>
3901 * stabsread.c (fix_common_block): Change type of valu argument
3904 2012-03-13 Chris January <chris.january@allinea.com>
3906 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
3909 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3911 * common/linux-procfs.c (linux_proc_get_int): New, from
3912 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
3914 (linux_proc_get_tgid): Only call linux_proc_get_int.
3915 (linux_proc_get_tracerpid): New.
3916 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
3917 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
3918 linux_proc_pid_has_state.
3919 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
3920 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
3921 (linux_ptrace_attach_warnings): New.
3922 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
3924 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
3925 (linux_nat_attach): New variables ex, buffer, message and message_s.
3926 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
3928 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3930 * Makefile.in (linux-ptrace.o): New.
3931 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
3933 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
3934 * common/linux-ptrace.c: New file.
3935 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
3936 * config/arm/linux.mh: Likewise.
3937 * config/i386/linux.mh: Likewise.
3938 * config/i386/linux64.mh: Likewise.
3939 * config/ia64/linux.mh: Likewise.
3940 * config/m32r/linux.mh: Likewise.
3941 * config/m68k/linux.mh: Likewise.
3942 * config/mips/linux.mh: Likewise.
3943 * config/pa/linux.mh: Likewise.
3944 * config/powerpc/linux.mh: Likewise.
3945 * config/powerpc/ppc64-linux.mh: Likewise.
3946 * config/powerpc/spu-linux.mh: Likewise.
3947 * config/s390/s390.mh: Likewise.
3948 * config/sparc/linux.mh: Likewise.
3949 * config/sparc/linux64.mh: Likewise.
3950 * config/xtensa/linux.mh: Likewise.
3951 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
3952 common/linux-procfs.c.
3953 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
3955 2012-03-13 Hui Zhu <teawater@gmail.com>
3956 Pedro Alves <palves@redhat.com>
3958 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
3959 CREATE_BREAKPOINT_FLAGS_INSERTED.
3960 (create_breakpoint_sal, create_breakpoints_sal)
3961 (base_breakpoint_create_breakpoints_sal)
3962 (tracepoint_create_breakpoints_sal)
3963 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
3965 (break_command_1, handle_gnu_v3_exceptions, trace_command)
3966 (ftrace_command, strace_command): Adjust.
3967 (create_tracepoint_from_upload): Pass
3968 CREATE_BREAKPOINT_FLAGS_INSERTED.
3969 * breakpoint.h (enum breakpoint_create_flags): New.
3970 (create_breakpoint): New flags parameter.
3971 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3972 * python/py-breakpoint.c (bppy_init): Adjust.
3973 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
3974 * spu-tdep.c (spu_catch_start): Adjust.
3976 2012-03-13 Pedro Alves <palves@redhat.com>
3977 Hui Zhu <teawater@gmail.com>
3978 Yao Qi <yao@codesourcery.com>
3980 * remote.c (struct remote_state): New field `starting_up'.
3981 (remote_start_remote): Set and clear it.
3982 (remote_can_download_tracepoint): If starting up, return false.
3984 2012-03-13 Yao Qi <yao@codesourcery.com>
3986 * inferior.h (struct inferior): Remove fields any_syscall_count,
3987 syscalls_counts and total_syscalls_count. Move them to new
3988 struct catch_syscall_inferior_data in breakpoint.c.
3989 * breakpoint.c: Call DEF_VEC_I(int).
3990 (struct catch_syscall_inferior_data): New.
3991 (get_catch_syscall_inferior_data): New.
3992 (catch_syscall_inferior_data_cleanup): New.
3993 (insert_catch_syscall): Update to access data in
3994 struct catch_syscall_inferior_data.
3995 (insert_catch_syscall): Likewise.
3996 (remove_catch_syscall): Likewise.
3997 (remove_catch_syscall): Likewise.
3998 (is_syscall_catchpoint_enabled): Likewise.
3999 (add_catch_command): Likewise.
4000 (_initialize_breakpoint): Register cleanup.
4001 * breakpoint.h: Removed DEF_VEC_I(int).
4002 * dwarf2loc.c: Call DEF_VEC_I(int).
4003 * mi/mi-main.c: Likewise.
4005 2012-03-12 Mark Kettenis <kettenis@gnu.org>
4007 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4009 2012-03-12 Chris January <chris.january@allinea.com>
4011 * aix-thread.c (_initialize_aix_thread): Add prototype.
4012 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4013 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4015 2012-03-12 Joel Brobecker <brobecker@adacore.com>
4017 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4018 include of "amd64-nat.h".
4020 2012-03-12 Tom Tromey <tromey@redhat.com>
4022 * buildsym.c (record_pending_block): Now static.
4023 * buildsym.h: (record_pending_block): Remove.
4025 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
4027 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4029 2012-03-09 Tom Tromey <tromey@redhat.com>
4031 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4032 producer_is_gxx_lt_4_6>: New fields.
4033 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4035 2012-03-09 Tom Tromey <tromey@redhat.com>
4037 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4039 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4041 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4044 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4046 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4048 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4050 Fix -Wmissing-prototypes build.
4051 * arm-linux-nat.c (get_thread_id): Make it static.
4052 * xtensa-linux-nat.c (get_thread_id): Likewise.
4054 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4056 * server.c (process_point_options): If a conditional expression
4057 is found, only print a message if remote_debug is nonzero.
4059 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
4061 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4062 of internal error for unknown/unsupported types.
4064 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4066 Fix CU relative vs. absolute DIE offsets.
4067 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4068 offset to offset_in_cu.
4069 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4071 (dwarf2_fetch_die_location_block): Rename parameter offset to
4072 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4074 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4076 * libunwind-frame.c: Rename to ...
4077 * ia64-libunwind-tdep.c: ... here.
4078 * libunwind-frame.h: Rename to ...
4079 * ia64-libunwind-tdep.h: ... here.
4080 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4081 ia64-libunwind-tdep.h.
4082 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4083 * README (--with-libunwind): Rename to ...
4084 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4085 * config.in: Regenerate.
4086 * configure: Regenerate.
4087 * configure.ac: New option --with-libunwind-ia64, make the
4088 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4089 Remove AC_DEFINE for HAVE_LIBUNWIND.
4090 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4091 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4092 Rename libunwind-frame in the general comment.
4093 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4094 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4095 Move forward declarations inside #ifndef. Rename libunwind-frame in
4096 the general comment.
4097 * ia64-tdep.c: Rename libunwind-frame.h #include to
4098 ia64-libunwind-tdep.h.
4099 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4100 (ia64_libunwind_descr): Rename libunwind-frame to
4101 ia64-libunwind-tdep in these function comments.
4102 * ia64-tdep.h: Rename libunwind-frame.h #include to
4103 ia64-libunwind-tdep.h.
4104 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4105 ia64-libunwind-tdep in that data comment.
4107 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4109 * libunwind-frame.h (struct frame_unwind): New declaration.
4111 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4113 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4114 "set breakpoint condition-evaluation" command.
4116 2012-03-08 Tristan Gingold <gingold@adacore.com>
4118 * sparc-stub.c: Move to stubs/
4119 * sh-stub.c: Likewise.
4120 * m68k-stub.c: Likewise.
4121 * m32r-stub.c: Likewise.
4122 * i386-stub.c: Likewise.
4124 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4126 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4127 linux_get_siginfo_type.
4129 * m68klinux-nat.c: Include "gdb_proc_service.h".
4130 (PTRACE_GET_THREAD_AREA): Define.
4131 (ps_get_thread_area): New function.
4133 2012-03-08 Yao Qi <yao@codesourcery.com>
4135 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4137 (remote_query_attached): Likewise.
4138 (remote_static_tracepoint_marker_at): Likewise.
4139 (remote_set_permissions): Likewise.
4140 (remote_detach_1, extended_remote_attach_1): Likewise.
4141 (send_g_packet, remote_vkill): Likewise.
4142 (extended_remote_disable_randomization): Likewise.
4143 (remote_add_target_side_condition): Likewise.
4144 (remote_insert_breakpoint): Likewise.
4145 (remote_remove_breakpoint): Likewise.
4146 (remote_insert_watchpoint): Likewise.
4147 (remote_remove_watchpoint): Likewise.
4148 (remote_insert_hw_breakpoint): Likewise.
4149 (remote_insert_hw_breakpoint): Likewise.
4150 (remote_remove_hw_breakpoint): Likewise.
4151 (remote_download_command_source): Likewise.
4152 (remote_download_tracepoint): Likewise.
4153 (remote_download_trace_state_variable): Likewise.
4154 (remote_disable_tracepoint): Likewise.
4155 (remote_trace_set_readonly_regions): Likewise.
4156 (remote_get_tracepoint_status): Likewise.
4157 (remote_trace_find): Likewise.
4158 (remote_get_trace_state_variable_value): Likewise.
4159 (remote_set_disconnected_tracing): Likewise.
4160 (remote_set_circular_trace_buffer): Likewise.
4161 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4162 (remote_use_agent): Likewise.
4163 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4166 2012-03-07 Pedro Alves <palves@redhat.com>
4168 * NEWS: Mention QProgramSignals.
4169 * inferior.h (update_signals_program_target): Declare.
4170 * infrun.c: (update_signals_program_target): New.
4171 (handle_command): Update the target of the new program signals
4173 * remote.c (PACKET_QProgramSignals): New enum.
4174 (last_program_signals_packet): New global.
4175 (remote_program_signals): New.
4176 (remote_start_remote): Update the target with the program signals
4178 (remote_protocol_features): Add entry for QPassSignals.
4179 (remote_open_1): Free anc clear last_program_signals_packet.
4180 (init_remote_ops): Install remote_program_signals.
4181 * target.c (update_current_target): Adjust.
4182 (target_program_signals): New.
4183 * target.h (struct target_ops) <to_program_signals>: New field.
4184 (target_program_signals): Declare.
4186 2012-03-07 Pedro Alves <palves@redhat.com>
4188 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4191 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4193 * m68klinux-nat.c (getregs_supplies): Make static.
4194 (getfpregs_supplies): Likewise.
4195 (have_ptrace_getregs): Likewise.
4197 2012-03-06 Joel Brobecker <brobecker@adacore.com>
4199 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4200 in call to get_die_type_at_offset.
4202 2012-03-06 Stan Shebs <stan@codesourcery.com>
4204 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4205 * mi/mi-cmd-disas.c: Ditto.
4206 * mi/mi-cmd-env.c: Ditto.
4207 * mi/mi-cmd-file.c: Ditto.
4208 * mi/mi-cmd-stack.c: Ditto.
4209 * mi/mi-cmd-target.c: Ditto.
4210 * mi/mi-cmd-var.c: Ditto.
4211 * mi/mi-cmds.c: Ditto.
4212 * mi/mi-cmds.h: Ditto.
4213 * mi/mi-console.c: Ditto.
4214 * mi/mi-getopt.c: Ditto.
4215 * mi/mi-getopt.h: Ditto.
4216 * mi/mi-interp.c: Ditto.
4217 * mi/mi-main.c: Ditto.
4218 * mi/mi-out.c: Ditto.
4219 * mi/mi-parse.c: Ditto.
4220 * mi/mi-parse.h: Ditto.
4221 * mi/mi-symbol-cmds.c: Ditto.
4223 * mi/mi-getopt.h: Move mi_opt struct up.
4224 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4226 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4228 2012-03-06 Tom Tromey <tromey@redhat.com>
4230 * proc-service.c (ps_pglobal_lookup): Set the current program
4233 2012-03-06 Pedro Alves <palves@redhat.com>
4235 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4237 2012-03-05 Joel Brobecker <brobecker@adacore.com>
4239 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4241 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4244 * common/linux-osdata.c (linux_common_core_of_thread): New function
4246 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4247 call by linux_common_core_of_thread.
4248 (linux_nat_core_of_thread_1): Remove.
4249 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4250 * linux-thread-db.c: Include linux-osdata.h.
4251 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4252 linux_common_core_of_thread.
4254 2012-03-05 Tom Tromey <tromey@redhat.com>
4256 * value.c (value_primitive_field): Don't fetch contents for
4259 2012-03-05 Tom Tromey <tromey@redhat.com>
4261 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4263 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
4265 * s390-nat.c: Include "gregset.h".
4267 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4269 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4270 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4271 (libunwind_load): New variable so_error, use it for dlerror. Try to
4272 load also LIBUNWIND_SO_7.
4274 2012-03-05 Pedro Alves <palves@redhat.com>
4276 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4277 is not NULL, and remove resulting dead code.
4279 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4281 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4282 prologue to sh_analyze_prologue.
4283 (sh_analyze_prologue): Make better use of such an upper limit, and
4284 generally be more cautious about accessing memory.
4286 2012-03-05 Tom Tromey <tromey@redhat.com>
4288 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4289 _initialize_ia64_hpux_tdep.
4291 2012-03-05 Pedro Alves <palves@redhat.com>
4295 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4296 the register state is clear, supply explicit zero, instead of
4297 marking the register unavailable.
4299 2012-03-05 Tristan Gingold <gingold@adacore.com>
4301 * NEWS: Mention OpenVMS ia64 new target.
4303 2012-03-05 Tristan Gingold <gingold@adacore.com>
4305 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4306 (ia64_unw_accessors, ia64_unw_rse_accessors)
4307 (ia64_libunwind_descr): Declare.
4308 * ia64-vms-tdep.c: New file.
4309 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4310 (ia64_libunwind_descr): Make them public.
4311 * configure.tgt: Add ia64-*-*vms*.
4312 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4313 (ALLDEPFILES): Add ia64-vms-tdep.c
4315 2012-03-05 Tristan Gingold <gingold@adacore.com>
4317 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4318 * remote.c (PACKET_qXfer_uib): New enum value.
4319 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4320 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4321 (_initialize_remote): Call add_packet_config_cmd for
4324 2012-03-05 Tristan Gingold <gingold@adacore.com>
4326 * osabi.c (gdb_osabi_names): Add OpenVMS.
4327 (generic_elf_osabi_sniffer): Likewise.
4328 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4330 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4332 Removed unused code.
4333 * libunwind-frame.c (libunwind_frame_unwind)
4334 (libunwind_frame_base_address): Remove.
4335 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4337 2012-03-04 Yao Qi <yao@codesourcery.com>
4339 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4340 remove trailing new line.
4341 (agent_run_command, agent_run_command): Add _ markup.
4342 (agent_capability_check): Likewise.
4344 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4346 * breakpoint.c (set_condition_evaluation_mode): Set
4347 CONDITION_EVALUATION_MODE unconditionally.
4349 2012-03-03 Yao Qi <yao@codesourcery.com>
4351 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4352 * common/agent.h: Update declaration.
4353 * inf-child.c (inf_child_use_agent): New.
4354 (inf_child_can_use_agent): New.
4355 (inf_child_target): Initialize fields `to_use_agent'
4356 and `to_can_use_agent'.
4357 * agent.c (agent_new_objfile): New.
4358 (_initialize_agent): Add agent_new_objfile to new_objfile
4361 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4363 (linux_target_install_ops): Initialize field
4364 `to_static_tracepoint_markers_by_strid'.
4365 * remote.c (free_current_marker): Move it to ...
4366 * tracepoint.c (free_current_marker): ... here. New.
4367 (cleanup_target_stop): New.
4368 * tracepoint.h: Declare free_current_marker.
4369 * NEWS: Add one entry about `info static-tracepoint-marker'.
4371 2012-03-03 Yao Qi <yao@codesourcery.com>
4373 * common/agent.c (agent_loaded_p): New.
4374 (agent_look_up_symbols): New global.
4375 * common/agent.h: Declare agent_loaded_p.
4377 2012-03-03 Yao Qi <yao@codesourcery.com>
4379 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
4380 (agent_capability_check, agent_capability_invalidate): New.
4381 (symbol_list): New array element.
4382 * common/agent.h (enum agent_capa): New.
4383 * target.c (target_pre_inferior): Call agent_capability_invalidate.
4385 2012-03-03 Yao Qi <yao@codesourcery.com>
4387 * target.h (struct target_ops) <to_use_agent>: New field.
4388 (struct target_ops) <to_can_use_agent>: New field.
4389 (target_use_agent, target_can_use_agent): New macro.
4390 * target.c (update_current_target): Update.
4391 * remote.c: New enum `PACKET_QAgent'.
4392 (remote_protocol_features): Add a new element.
4393 (remote_use_agent, remote_can_use_agent): New.
4394 (init_remote_ops): Initialize field `can_use_agent' with
4395 remote_can_use_agent. Intiailize field `use_agent' with
4397 * common/agent.c (use_agent): New global.
4398 * common/agent.h: Declare it.
4399 * tracepoint.c (info_static_tracepoint_markers_command): Add
4401 * Makefile.in (SFILES): Add common/agent.c and agent.c.
4402 (COMMON_OBS): Add common/agent.o and agent.o
4403 (common-agent.o): New rule.
4406 2012-03-03 Yao Qi <yao@codesourcery.com>
4408 * common/agent.c: New.
4409 * common/agent.h: New.
4410 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
4412 * configure, configh.in: Regenerated.
4414 2012-03-02 Kevin Buettner <kevinb@redhat.com>
4416 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
4417 unless it exists for this architecture.
4419 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4421 * language.h (struct language_defn): New "method" la_read_var_value.
4422 * findvar.c: #include "language.h".
4423 (default_read_var_value): Renames read_var_value. Rewrite
4424 function description.
4425 (read_var_value): New function.
4426 * value.h (default_read_var_value): Add prototype.
4427 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
4429 (ada_language_defn): Add entry for la_read_var_value.
4430 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
4431 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
4432 language_defn structures to add entry for new la_read_var_value
4435 2012-03-02 Tom Tromey <tromey@redhat.com>
4436 Pedro Alves <palves@redhat.com>
4438 PR breakpoints/13776:
4439 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
4441 (delete_longjmp_breakpoint_at_next_stop): New.
4442 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
4443 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
4444 before deleting the inferior. Add comments.
4445 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
4446 breakpoints immediately, but only on next stop. Move that code
4447 next to where we mark other breakpoints for deletion.
4449 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4451 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
4453 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
4456 2012-03-02 Pedro Alves <palves@redhat.com>
4458 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
4460 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4462 Fix -Wmissing-prototypes build.
4463 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
4464 * remote-sim.c (gdbsim_has_all_memory): Likewise.
4465 (gdbsim_has_memory): Likewise.
4467 2012-03-02 Yao Qi <yao@codesourcery.com>
4469 Fix -Wmissing-prototypes build.
4470 * charset.c (phony_iconv_open): Make static.
4471 (phony_iconv_close, phony_iconv): Likewise.
4472 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
4473 * i386-windows-nat.c (_initialize_i386_windows_nat): New
4475 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
4476 * ser-mingw.c (create_select_thread): Make static.
4477 * windows-termcap.c (tgetent): New prototype.
4478 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
4480 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
4482 Fix -Wmissing-prototypes build.
4483 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
4484 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
4485 (_initialize_loadable): New prototypes.
4487 2012-03-02 Doug Evans <dje@google.com>
4489 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
4490 abbrev table, read_comp_unit will do it.
4492 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4494 Fix -Wmissing-prototypes build.
4495 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
4496 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
4497 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
4498 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
4499 (_initialize_arm_symbian_tdep): New prototype.
4500 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
4501 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
4502 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
4504 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
4505 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
4507 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
4508 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
4509 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
4511 * moxie-tdep.c (moxie_process_record): Likewise.
4512 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
4513 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
4514 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
4515 (_initialize_rl78_tdep): New prototype.
4516 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
4517 (_initialize_rx_tdep): New prototype.
4518 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
4519 (_initialize_darwin_solib): New prototype.
4520 * solib-spu.c: Include solib-spu.h.
4521 (_initialize_spu_solib): New prototype.
4522 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
4523 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
4524 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
4525 (tic6x_software_single_step): Make it static.
4526 (_initialize_tic6x_tdep): New prototype.
4528 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4530 Fix -Wmissing-prototypes build.
4531 * cris-tdep.c (cris_can_use_hardware_watchpoint)
4532 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
4534 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4536 Fix -Wmissing-prototypes build.
4537 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
4538 (frv_have_stopped_data_address): Remove.
4540 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4542 Fix -Wmissing-prototypes build.
4543 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
4544 * sh-tdep.c: Include sh64-tdep.h.
4545 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
4546 * sh64-tdep.c: Include sh64-tdep.h.
4547 * sh64-tdep.h: New file.
4549 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4551 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
4553 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4555 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
4556 sp_regnum once the gdbarch_init_osabi hook has been called.
4558 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4560 * mips-tdep.c (mips32_bc1_pc): New function.
4561 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
4562 BPOSGE32 and BPOSGE64 instructions.
4563 (deal_with_atomic_sequence): Likewise.
4564 (mips32_instruction_has_delay_slot): Likewise.
4566 2012-03-01 Maciej W. Rozycki <macro@mips.com>
4567 Chris Dearman <chris@mips.com>
4568 Maciej W. Rozycki <macro@codesourcery.com>
4569 Joseph Myers <joseph@codesourcery.com>
4571 * features/mips-dsp.xml: New file.
4572 * features/mips64-dsp.xml: New file.
4573 * features/mips-dsp-linux.xml: New file.
4574 * features/mips64-dsp-linux.xml: New file.
4575 * features/Makefile (WHICH): Add mips-dsp-linux and
4577 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
4578 * features/mips-dsp-linux.c: New file.
4579 * features/mips64-dsp-linux.c: New file.
4580 * regformats/mips-dsp-linux.dat: New file.
4581 * regformats/mips64-dsp-linux.dat: New file.
4582 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
4584 (mips64_linux_register_addr): Likewise.
4585 (mips64_linux_regsets_fetch_registers): Likewise.
4586 (mips64_linux_regsets_store_registers): Likewise.
4587 (mips64_linux_fetch_registers): Update call to
4588 mips64_linux_regsets_fetch_registers.
4589 (mips64_linux_store_registers): Update call to
4590 mips64_linux_regsets_store_registers.
4591 (mips_linux_read_description): Probe for DSP registers.
4592 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
4593 and initialize_tdesc_mips64_dsp_linux.
4594 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
4595 Remove padding of no longer used embedded register slots.
4596 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
4597 (MIPS_RESTART_REGNUM): Redefine enum value.
4598 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
4600 (mips_tx39_reg_names): Likewise.
4601 (mips_linux_reg_names): New array of register names for Linux
4603 (mips_register_name): Check for a null pointer in
4604 mips_processor_reg_names and return an empty string.
4605 (mips_register_type): Exclude embedded registers for the IRIX
4607 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
4608 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
4610 (mips_stab_reg_to_regnum): Handle DSP accumulators.
4611 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
4612 (mips_gdbarch_init): Likewise. Initialize internal register
4613 indices for the Linux ABI. Use dynamic numbers to refer to
4614 registers, as applicable, while parsing the target description.
4615 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
4617 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4619 * frame.h (read_frame_register_unsigned): Fix typo in function
4622 2012-03-01 Pedro Alves <palves@redhat.com>
4624 * jit-reader.in [!__cplusplus]
4625 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
4627 2012-03-01 Pedro Alves <palves@redhat.com>
4629 * configure.ac (build_warnings): Add -Wmissing-prototypes.
4630 * configure: Regenerate.
4632 2012-03-01 Pedro Alves <palves@redhat.com>
4634 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
4635 * breakpoint.c (create_exception_master_breakpoint, trace_command)
4636 (ftrace_command, strace_command): Make static.
4637 * d-lang.c (_initialize_d_language): Declare.
4638 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
4639 * dwarf2loc.c (_initialize_dwarf2loc):
4640 * dwarf2read.c (process_psymtab_comp_unit): Make static.
4641 * exec.c (exec_get_section_table): Make static.
4642 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
4643 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
4644 * inferior.c (remove_inferior_command, add_inferior_command)
4645 (clone_inferior_command): Make static.
4646 * linux-nat.c (linux_nat_thread_address_space)
4647 (linux_nat_core_of_thread): Make static.
4648 * linux-tdep.c (_initialize_linux_tdep): Declare.
4649 * objc-lang.c (_initialize_objc_lang): Declare.
4650 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
4652 (_initialize_opencl_language): Declare.
4653 * record.c (_initialize_record): Declare.
4654 * remote.c (demand_private_info, remote_get_tib_address)
4655 (remote_supports_cond_tracepoints)
4656 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
4658 * skip.c (_initialize_step_skip): Declare.
4659 * symtab.c (skip_prologue_using_lineinfo): Make static.
4660 * tracepoint.c (delete_trace_state_variable)
4661 (trace_variable_command, delete_trace_variable_command)
4662 (get_uploaded_tsv, find_matching_tracepoint_location)
4663 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
4665 * value.c (pack_unsigned_long): Make static.
4666 * varobj.c (varobj_ensure_python_env): Make static.
4667 * windows-tdep.c (_initialize_windows_tdep): Declare.
4668 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
4670 2012-03-01 Pedro Alves <palves@redhat.com>
4672 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
4674 (linux_init_abi): Install it as has_shared_address_space gdbarch
4677 2012-03-01 Pedro Alves <palves@redhat.com>
4679 * observer.c (observer_test_first_notification_function)
4680 (observer_test_second_notification_function)
4681 (observer_test_third_notification_function): Add declarations.
4683 2012-03-01 Pedro Alves <palves@redhat.com>
4685 * common/signals.c (default_target_signal_to_host)
4686 (default_target_signal_from_host): Move ...
4687 * arch-utils.c: ... here.
4688 * arch-utils.h (default_target_signal_to_host)
4689 (default_target_signal_from_host): Declare.
4691 * common/signals.c (target_signal_from_command): Move ...
4692 * infrun.c: ... here.
4693 * inferior.h (target_signal_from_command): Declare.
4694 * target.h (target_signal_from_command)
4695 (default_target_signal_from_host, default_target_signal_to_host):
4696 Delete declarations.
4698 * common/signals.c (_initialize_signals): Delete.
4700 2012-03-01 Pedro Alves <palves@redhat.com>
4702 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
4703 both __cplusplus and !__cplusplus.
4705 2012-03-01 Pedro Alves <palves@redhat.com>
4707 * psymtab.c (find_and_open_source): Delete declaration.
4708 * source.c (find_and_open_source): Move comment ...
4709 * source.h (find_and_open_source): ... to this new declaration.
4711 2012-03-01 Pedro Alves <palves@redhat.com>
4713 * inline-frame.c: Include inline-frame.h.
4715 2012-03-01 Pedro Alves <palves@redhat.com>
4717 * tui/tui-data.c (set_gen_win_origin): Delete.
4718 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
4719 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
4721 2012-03-01 Pedro Alves <palves@redhat.com>
4723 * remote.c (encode_actions): Delete declaration.
4724 * tracepoint.c (encode_actions): Make extern.
4725 * tracepoint.h (encode_actions): Declare.
4727 2012-03-01 Pedro Alves <palves@redhat.com>
4729 * python/py-breakpoint.c: Include python.h.
4730 * python/py-continueevent.c (create_continue_event_object): Make
4732 * python/py-lazy-string.c (stpy_get_type): Make static.
4733 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4735 * python/py-utils.c (unicode_to_target_python_string): Make
4737 * python/py-value.c: Include python.h.
4739 2012-03-01 Pedro Alves <palves@redhat.com>
4741 * inferior.c (delete_threads_of_inferior): Delete.
4743 2012-03-01 Pedro Alves <palves@redhat.com>
4745 Import fallback definitions from glibc.
4747 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
4748 ps_prochandle): Forward declare.
4749 (ps_err_e): Use glibc's comments.
4750 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
4751 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4752 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
4753 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
4754 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
4755 (struct ps_prochandle): Adjust comment.
4757 2012-03-01 Pedro Alves <palves@redhat.com>
4759 * ada-lang.c (ada_modulus_from_name): Delete.
4760 * ada-lex.l (lexer_init): Make static.
4762 2012-03-01 Pedro Alves <palves@redhat.com>
4766 * frame.c (read_frame_register_unsigned): New.
4767 * frame.h (read_frame_register_unsigned): Declare.
4768 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
4770 (print_i387_control_word): New parameter `control_p'. Handle it.
4771 (i387_print_float_info): Handle unavailable float registers.
4773 2012-03-01 Keith Seitz <keiths@redhat.com>
4775 * linespec.c (decode_line_2): Sort the list of methods
4776 alphabetically before presenting the user with a selection
4779 2012-03-01 Doug Evans <dje@google.com>
4781 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
4783 (dwarf2_read_abbrevs): Remove corresponding initialization.
4785 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
4787 * NEWS: Mention new python command class gdb.COMMAND_USER.
4788 * cli/cli-cmds.c (show_user): Print error when used on a python
4790 (init_cli_cmds): Update documentation strings for "show user" and
4791 "set/show max-user-call-depth" to clarify that it does not apply to
4793 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
4795 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
4797 * top.c (execute_command): Only execute a user-defined command as a
4798 legacy macro if c->user_commands is set.
4800 2012-03-01 Tom Tromey <tromey@redhat.com>
4802 * valprint.h (struct generic_val_print_decorations): New.
4803 (generic_val_print): Declare.
4804 * valprint.c (generic_val_print): New function.
4805 * p-valprint.c (p_decorations): New global.
4806 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
4807 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
4808 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
4809 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
4810 * m2-valprint.c (m2_decorations): New global.
4811 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
4812 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
4813 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
4814 TYPE_CODE_ERROR>: Call generic_val_print.
4815 * f-valprint.c (f_decorations): New global.
4816 (f_val_print): Use print_function_pointer_address.
4817 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
4818 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
4819 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
4821 * c-valprint.c (c_decorations): New global.
4822 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
4823 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
4824 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
4825 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
4826 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
4827 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
4830 2012-03-01 Tom Tromey <tromey@redhat.com>
4832 * valprint.c (val_print): Update.
4833 * p-valprint (pascal_val_print): Return void.
4834 * p-lang.h (pascal_val_print): Return void.
4835 * m2-valprint.c (m2_val_print): Return void.
4836 * m2-lang.h (m2_val_print): Return void.
4837 * language.h (struct language_defn) <la_val_print>: Return void.
4838 * language.c (unk_lang_val_print): Return void.
4839 * jv-valprint.c (java_val_print): Return void.
4840 * jv-lang.h (java_val_print): Return void.
4841 * f-valprint.c (f_val_print): Return void.
4842 * f-lang.h (f_val_print): Return void.
4843 * d-valprint.c (d_val_print): Return void.
4844 (dynamic_array_type): Update.
4845 * d-lang.h (d_val_print): Return void.
4846 * c-valprint.c (c_val_print): Return void.
4847 * c-lang.h (c_val_print): Return void.
4848 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
4850 * ada-lang.h (ada_val_print): Return void.
4852 2012-03-01 Tom Tromey <tromey@redhat.com>
4854 * value.h (val_print): Return void.
4855 * valprint.c (val_print): Return void.
4857 2012-03-01 Tom Tromey <tromey@redhat.com>
4859 * value.h (common_val_print): Return void.
4860 * valprint.c (common_val_print): Return void.
4862 2012-03-01 Tom Tromey <tromey@redhat.com>
4864 * value.h (value_print): Return void.
4865 * valprint.c (value_print): Return void.
4866 * p-valprint.c (pascal_value_print): Return void.
4867 * p-lang.h (pascal_value_print): Return void.
4868 * language.h (struct language_defn) <la_value_print>: Return
4870 * language.c (unk_lang_value_print): Return void.
4871 * jv-valprint.c (java_value_print): Return void.
4872 * jv-lang.h (java_value_print): Return void.
4873 * f-valprint.c (c_value_print): Don't declare.
4875 * c-valprint.c (c_value_print): Return void.
4876 * c-lang.h (c_value_print): Return void.
4877 * ada-valprint.c (ada_value_print): Return void.
4878 * ada-lang.h (ada_value_print): Return void.
4880 2012-03-01 Tom Tromey <tromey@redhat.com>
4882 * value.c (value_primitive_field): Handle virtual base classes.
4884 2012-03-01 Tom Tromey <tromey@redhat.com>
4886 * gdbtypes.h (struct vbase): Remove.
4888 2012-03-01 Tom Tromey <tromey@redhat.com>
4890 * c-valprint.c (print_function_pointer_address): Move...
4891 * valprint.c: ... here. Make non-static.
4892 * m2-valprint.c (print_function_pointer_address): Remove.
4893 * valprint.h (print_function_pointer_address): Declare.
4895 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4897 * NEWS: Document the fact that one can provide a condition when
4898 creating an Ada exception catchpoint.
4900 2012-03-01 Tom Tromey <tromey@redhat.com>
4902 * valprint.c (val_print_type_code_flags): Fix placement of
4905 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4907 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
4908 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
4909 environment variable before calling update-copyright.
4911 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4913 * gnulib/extra/update-copyright: Update to the latest from
4914 gnulib's git repository.
4915 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
4916 variable to 2 instead of 1.
4918 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4920 * varobj.c (c_value_of_variable): Remove dead code.
4922 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4924 * ada-lex.p (processId): Do not modify already encoded IDs.
4925 Update function documentation.
4927 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4929 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
4930 "name" with "struct symbol *name_sym".
4931 * ada-exp.y (write_var_or_type): Update call to
4932 ada_find_renaming_symbol.
4933 "name" with "struct symbol *name_sym". Adjust Implementation
4934 accordingly. Adjust the function documentation.
4936 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4938 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
4939 * ada-lang.c (ada_find_any_type): Add advance declaration.
4940 Make static. Replace ada_find_any_symbol by
4941 ada_find_any_type_symbol.
4942 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
4943 Improve function description. Make static.
4944 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
4945 Replace ada_find_any_symbol by ada_find_any_type_symbol.
4947 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4949 * ada-lang.c (struct tag_args): Delete.
4950 (ada_get_tsd_type): Function body moved up in source file.
4951 (ada_tag_name_1, ada_tag_name_2): Delete.
4952 (ada_get_tsd_from_tag): New function.
4953 (ada_tag_name_from_tsd): New function.
4954 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
4955 to determine the tag name.
4957 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4959 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
4961 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
4964 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4966 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
4968 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4970 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
4973 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4975 * ada-lang.c (constrained_packed_array_type): If there is a
4976 parallel XA type, use it to determine the array index type.
4978 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4980 * ada-valprint.c (ada_val_print_1): If our value is a reference
4981 to an array descriptor, dereference it before converting it
4984 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4986 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
4987 creating fixed value.
4988 (ada_value_ind, ada_coerce_ref, assign_component)
4989 (ada_evaluate_subexp): Remove call to unwrap_value before
4990 call to ada_to_fixed_value.
4992 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4994 * ada-lang.c (to_fixed_array_type): Set result's type name.
4996 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4998 * ada-lang.c (catch_ada_exception_command_split): Add new
4999 argument cond_string. Add support for condition at end of
5000 "catch exception" commands.
5001 (ada_decode_exception_location): Add new argument cond_string.
5002 Update call to catch_ada_exception_command_split.
5003 (create_ada_exception_catchpoint): Add new argument cond_string.
5004 Set the breakpoint condition if needed.
5005 (catch_ada_exception_command): Update call to
5006 ada_decode_exception_location.
5007 (ada_decode_assert_location): Add function documentation.
5008 Add support for condition at end of "catch assert" command.
5009 (catch_assert_command): Update calls to ada_decode_assert_location
5010 and create_ada_exception_catchpoint.
5012 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5014 Fix disp-step-syscall.exp: fork: single step over fork.
5015 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5016 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5017 comment, change parameters gdbarch and ptid to regcache. Remove
5018 parameter regcache, initialize gdbarch from regcache here.
5019 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5021 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5023 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5024 'syscall'. Make the 'int' check more strict.
5026 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5028 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5029 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5030 (i386_linux_intx80_sysenter_syscall_record): ... here.
5031 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5032 Use the renamed function name.
5034 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5036 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5037 * breakpoint.c (until_break_command): Likewise.
5038 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5039 * infcall.c (call_function_by_hand): Likewise.
5040 * infcmd.c (finish_forward): Likewise.
5041 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5043 2012-02-28 Tristan Gingold <gingold@adacore.com>
5045 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5046 avoid variable assignments inside condition.
5048 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5050 Fix static analysis issue found by cppcheck.
5051 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5052 uninitialized BUF for size 2.
5054 2012-02-27 Chris Dearman <chris@mips.com>
5055 Nathan Froyd <froydnj@codesourcery.com>
5056 Maciej W. Rozycki <macro@codesourcery.com>
5058 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5059 (mips16_instruction_has_delay_slot): Likewise.
5060 (mips_segment_boundary): Likewise.
5061 (mips_adjust_breakpoint_address): Likewise.
5062 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5064 2012-02-27 Maciej W. Rozycki <macro@mips.com>
5065 Maciej W. Rozycki <macro@codesourcery.com>
5067 * infrun.c (handle_inferior_event): Don't proceed through
5068 shared library trampolines if stepping at the machine
5071 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5073 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5076 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5078 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5079 (sh_stub_unwind_sniffer): New functions.
5080 (sh_stub_unwind): New variable.
5081 (sh_gdbarch_init): Wire everything.
5083 2012-02-27 Pedro Alves <palves@redhat.com>
5085 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5086 (linux_nat_post_attach_wait): Adjust to use
5087 linux_proc_pid_is_stopped.
5088 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5089 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5090 based on pid_is_stopped from both linux-nat.c and
5091 gdbserver/linux-low.c, and renamed.
5093 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5095 * remote.c (remote_watchpoint_addr_within_range): New function.
5096 (init_remote_ops): Use it.
5098 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5100 * target.h (target_watchpoint_addr_within_range): Document macro.
5102 2012-02-24 Pedro Alves <palves@redhat.com>
5104 * stack.c (set_last_displayed_sal): Issue internal_error instead
5105 of warning, and issue it after clearing the last displayed sal.
5107 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5108 Pedro Alves <palves@redhat.com>
5110 * breakpoint.c (until_break_command): Install breakpoints after
5111 all frame manipulations.
5113 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5115 * remote.c (remote_supports_cond_breakpoints): New forward
5117 (remote_add_target_side_condition): New function.
5118 (remote_insert_breakpoint): Add target-side breakpoint
5119 conditional if supported.
5120 (remote_insert_hw_breakpoint): Likewise.
5121 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5124 * target.c (update_current_target): Inherit
5125 to_supports_evaluation_of_breakpoint_conditions.
5126 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5128 * target.h (struct target_ops)
5129 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5130 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5132 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5133 (condition_evaluation_both, condition_evaluation_auto,
5134 condition_evaluation_host, condition_evaluation_target,
5135 condition_evaluation_enums, condition_evaluation_mode_1,
5136 condition_evaluation_mode): New static globals.
5137 (translate_condition_evaluation_mode): New function.
5138 (breakpoint_condition_evaluation_mode): New function.
5139 (gdb_evaluates_breakpoint_condition_p): New function.
5140 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5141 (mark_breakpoint_modified): New function.
5142 (mark_breakpoint_location_modified): New function.
5143 (set_condition_evaluation_mode): New function.
5144 (show_condition_evaluation_mode): New function.
5145 (bp_location_compare_addrs): New function.
5146 (get_first_location_gte_addr): New helper function.
5147 (set_breakpoint_condition): Free condition bytecode if locations
5148 has become unconditional. Call mark_breakpoint_modified (...).
5149 (condition_command): Call update_global_location_list (1) for
5151 (breakpoint_xfer_memory): Use is_breakpoint (...).
5152 (is_breakpoint): New function.
5153 (parse_cond_to_aexpr): New function.
5154 (build_target_condition_list): New function.
5155 (insert_bp_location): Handle target-side conditional
5156 breakpoints and call build_target_condition_list (...).
5157 (update_inserted_breakpoint_locations): New function.
5158 (insert_breakpoint_locations): Handle target-side conditional
5160 (bpstat_check_breakpoint_conditions): Add comment.
5161 (bp_condition_evaluator): New function.
5162 (bp_location_condition_evaluator): New function.
5163 (print_breakpoint_location): Print information on where the condition
5165 (print_one_breakpoint_location): Likewise.
5166 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5167 breakpoint location.
5168 (force_breakpoint_reinsertion): New functions.
5169 (update_global_location_list): Handle target-side breakpoint
5171 Reinsert locations that are already inserted if conditions have
5173 (bp_location_dtor): Free agent expression bytecode.
5174 (disable_breakpoint): Call mark_breakpoint_modified (...).
5175 Call update_global_location_list (...) with parameter 1 for breakpoints.
5176 (disable_command): Call mark_breakpoint_location_modified (...).
5177 Call update_global_location_list (...) with parameter 1 for breakpoints.
5178 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5179 (enable_command): mark_breakpoint_location_modified (...).
5180 (_initialize_breakpoint): Update documentation and add
5181 condition-evaluation breakpoint subcommand.
5183 * breakpoint.h: Include ax.h.
5184 (condition_list): New data structure.
5185 (condition_status): New enum.
5186 (bp_target_info) <cond_list>: New field.
5187 (bp_location) <condition_changed, cond_bytecode>: New fields.
5188 (is_breakpoint): New prototype.
5190 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5192 * remote.c (remote_state) <cond_breakpoints>: New field.
5193 (PACKET_ConditionalBreakpoints): New enum.
5194 (remote_cond_breakpoint_feature): New function.
5195 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5196 (remote_supports_cond_breakpoints): New function.
5197 (_initialize_remote): Add new packet configuration for
5198 target-side conditional breakpoints.
5200 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5202 * NEWS: Mention target-side conditional breakpoint support,
5203 new condition-evaluation breakpoint subcommand and remote
5206 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5208 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5211 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5213 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5214 (after_prologue): Remove.
5216 2012-02-23 Tom Tromey <tromey@redhat.com>
5218 * jv-valprint.c (java_val_print): Remove dead code.
5220 2012-02-23 Tristan Gingold <gingold@adacore.com>
5222 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5223 known_tasks_element and known_tasks_length fields.
5224 (read_known_tasks_array): Change argument type. Use pointer type
5225 and number of elements from DATA. Adjust.
5226 (read_known_tasks_list): Likewise.
5227 (get_known_tasks_addr): Remove.
5228 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5229 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5230 type and array length. Merge former get_known_tasks_addr code.
5232 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5235 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5236 it after set_momentary_breakpoint.
5238 2012-02-22 Sterling Augustine <saugustine@google.com>
5241 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5243 2012-02-22 Gary Benson <gbenson@redhat.com>
5245 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5246 (find_slot_in_mapped_hash): Likewise.
5248 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5251 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5252 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5253 * configure: Regenerate.
5255 2012-02-21 Tristan Gingold <gingold@adacore.com>
5256 Pedro Alves <palves@redhat.com>
5258 * ia64-tdep.c: Do not include libunwind-ia64.h.
5259 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5260 Include libunwind-ia64.h instead of libunwind.h.
5261 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5262 for libunwind.h existence.
5263 * configure, config.in: Regenerate.
5265 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5267 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5268 instead of value_rtti_target_type.
5269 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5270 instead of value_rtti_target_type.
5271 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5272 value_rtti_target_type.
5273 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5274 (value_rtti_target_type): Rename to ...
5275 (value_rtti_indirect_type): ... here and make it indirect. Update
5277 * value.c (readjust_indirect_value_type): New function.
5278 (coerce_ref): Support for enclosing type setting for references
5279 with readjust_indirect_value_type.
5280 * value.h (readjust_value_type): New declaration.
5281 (value_rtti_target_type): Rename to ...
5282 (value_rtti_indirect_type): ... here.
5284 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5286 * MAINTAINERS (Write After Approval): Add myself to the list.
5288 2012-02-20 Doug Evans <dje@google.com>
5290 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5291 Rename objfile_p_char parameter to objfilep.
5292 (build_objfile_section_table): Result is now void. All callers
5294 * objfiles.h (struct objfile): Tweak comments, whitespace.
5295 (build_objfile_section_table): Update.
5297 * elfread.c (elf_symfile_segments): Fix warning text.
5299 2012-02-20 Tom Tromey <tromey@redhat.com>
5302 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5303 particular set of file names once.
5304 (dw2_map_symbol_filenames): Likewise.
5306 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5309 * main.c (write_files): Remove the declaration.
5310 (external_editor_command): Move the declaration ...
5311 [GDBTK] (external_editor_command): ... here. Fix the comment.
5313 2012-02-20 Tom Tromey <tromey@redhat.com>
5315 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5318 2012-02-20 Tristan Gingold <gingold@adacore.com>
5320 * darwin-nat.h (enum darwin_msg_state): Add comments.
5322 2012-02-20 Tristan Gingold <gingold@adacore.com>
5324 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5327 2012-20-18 Joel Brobecker <brobecker@adacore.com>
5329 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5330 between function description and implementation.
5332 2012-02-17 Tom Tromey <tromey@redhat.com>
5335 * python/py-event.c (event_object_getset): New global.
5336 (event_object_type): Reference it.
5337 * python/py-type.c (field_object_getset): New global.
5338 (field_object_type): Reference it.
5339 * python/python-internal.h (gdb_py_generic_dict): Declare.
5340 * python/py-utils.c (gdb_py_generic_dict): New function.
5342 2012-02-17 Tristan Gingold <gingold@adacore.com>
5344 * solib-darwin.c (darwin_current_sos): Check magic and filetype
5346 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
5348 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5349 TYPE_CALLING_CONVENTION annotation.
5351 2012-02-16 Kevin Buettner <kevinb@redhat.com>
5353 * MAINTAINERS: Add rx to target ISA section.
5354 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5355 (ALLDEPFILES): Add rx-tdep.c.
5357 2012-02-16 Tom Tromey <tromey@redhat.com>
5359 * symfile.c (symbol_file_add_main_1): Use inferior's
5361 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5362 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5364 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5366 (follow_exec): Use inferior's symfile_flags.
5367 * inferior.h (struct inferior) <symfile_flags>: New field.
5369 2012-02-16 Mike Frysinger <vapier@gentoo.org>
5372 * remote-sim.c (gdbsim_create_inferior): Call error() when
5373 sim_create_inferior() fails.
5375 2012-02-16 Josh Matthews <josh@joshmatthews.net>
5377 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5379 2012-02-16 Tom Tromey <tromey@redhat.com>
5382 * thread.c (struct current_thread_cleanup) <was_removable>: New
5384 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
5385 (make_cleanup_restore_current_thread): Initialize new field.
5387 2012-02-15 Kevin Buettner <kevinb@redhat.com>
5389 * MAINTAINERS: Add rl78 to target ISA section.
5390 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
5391 (ALLDEPFILES): Add rl78-tdep.c.
5392 * NEWS: Mention rl78 as a new target.
5394 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
5396 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
5398 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
5400 2012-02-15 Tom Tromey <tromey@redhat.com>
5403 * infcmd.c (registers_info): Print just the current register's
5406 2012-02-15 Tom Tromey <tromey@redhat.com>
5408 * python/py-symbol.c (sympy_value): Use _().
5410 2012-02-15 Pedro Alves <palves@redhat.com>
5412 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
5413 output to be like native targets'.
5414 (remote_pid_to_str): Special case the null ptid.
5416 2012-02-14 Stan Shebs <stan@codesourcery.com>
5418 * NEWS: Mention enable count command.
5419 * breakpoint.h (struct breakpoint): New field enable_count.
5420 * breakpoint.c (enable_breakpoint_disp): Add count argument.
5421 (enable_breakpoint): Add arg to call.
5422 (struct disp_data): New struct.
5423 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
5424 (do_map_enable_once_breakpoint): Create a struct and pass it.
5425 (do_map_enable_delete_breakpoint): Ditto.
5426 (do_map_enable_count_breakpoint): New function.
5427 (enable_count_command): New function.
5428 (bpstat_stop_status): Decrement enable_count.
5429 (print_one_breakpoint_location): Report enable count.
5430 (_initialize_breakpoint): Add enable count command.
5432 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5434 * rl78-tdep.c (reggroups.h): Include.
5435 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
5436 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
5437 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
5438 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
5439 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
5440 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
5441 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
5442 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
5443 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
5444 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
5445 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
5446 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
5447 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
5448 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
5449 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
5450 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
5451 beginning of register list.
5452 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
5453 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
5454 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
5455 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
5456 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
5457 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
5458 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
5459 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
5460 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
5461 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
5462 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
5463 the pseudo registers. Rearrange other pseudo registers too so
5464 that the bank registers appear at the end.
5465 (rl78_register_type): Account for the fact that the byte sized
5466 bank registers are now pseudo-registers.
5467 (rl78_register_name): Rearrange the register name array. Make
5468 initial set of raw banked registers inaccessible.
5469 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
5470 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
5471 case for copying bytes back and forth between raw and pseudo
5472 versions of the banked registers. Update other cases to reflect
5474 (rl78_return_value): Update to account for changed names of
5476 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
5477 rl78_register_sim_regno().
5479 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5481 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
5482 the name parameter being passed to find_pc_partial_function().
5484 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5486 * MAINTAINERS: Step down from being ia64 target maintainer.
5488 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5490 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
5491 compilation warning.
5493 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5495 Fix crash on loaded shlibs without loaded exec_bfd.
5496 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
5497 (set_section_command): Replace exec_bfd by p->bfd.
5499 2012-02-10 Tom Tromey <tromey@redhat.com>
5501 * linespec.c (decode_line_internal): Skip symtabs_from_filename
5502 when we have a C++ qualified name.
5504 2012-02-10 Pedro Alves <palves@redhat.com>
5506 * inferior.c (inferior_pid_to_str): New.
5507 (print_inferior, inferior_command): Use it.
5509 2012-02-10 Pedro Alves <palves@redhat.com>
5511 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
5513 * configure: Regenerate.
5515 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5517 * linespec.c (decode_line_internal): Fix comment correctness.
5519 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
5522 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
5523 * amd64bsd-nat.c: Add support for debug registers (adapted from
5525 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
5526 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
5527 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
5528 (amd64bsd_dr_get_control): New functions.
5529 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
5530 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
5531 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
5532 watchpoints initialization.
5533 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
5535 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5537 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
5539 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
5541 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5543 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
5545 2012-02-08 Joel Brobecker <brobecker@adacore.com>
5547 * language.h (symbol_name_cmp_ftype): Renames
5548 symbol_name_match_p_ftype.
5549 (struct language_defn)[la_get_symbol_name_cmp]: Renames
5550 la_get_symbol_name_match_p.
5551 * ada-lang.c (ada_get_symbol_name_cmp): Renames
5552 ada_get_symbol_name_match_p. Update comment.
5553 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
5554 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
5555 Renames symbol_name_match_p. Update field type.
5556 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
5557 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5558 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
5559 "la_get_symbol_name_cmp" in comments.
5560 * language.c: Likewise.
5562 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5564 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
5566 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
5567 (amd64_sol2_gregset32_reg_offs): Likewise.
5569 2012-02-08 Joel Brobecker <brobecker@adacore.com>
5571 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
5572 of the returned BFD is allocated by GDB.
5574 2012-02-07 Tom Tromey <tromey@redhat.com>
5577 * python/python-internal.h (frame_object_type): Declare.
5578 * python/py-symbol.c (sympy_needs_frame): New function.
5579 (sympy_value): New function.
5580 (symbol_object_getset): Add "needs_frame".
5581 (symbol_object_methods): Add "value".
5582 * python/py-frame.c (frame_object_type): No longer static.
5584 2012-02-07 Tom Tromey <tromey@redhat.com>
5587 * python/py-symbol.c (sympy_line): New function.
5588 (symbol_object_getset): Add "line".
5590 2012-02-07 Tom Tromey <tromey@redhat.com>
5592 * charset.c (find_charset_names): Check 'in' against NULL.
5594 2012-02-06 Doug Evans <dje@google.com>
5596 * gdbtypes.h (struct main_type): Change type of name,tag_name,
5597 and fields.name members from char * to const char *. All uses updated.
5598 (struct cplus_struct_type): Change type of fn_fieldlists.name member
5599 from char * to const char *. All uses updated.
5600 (type_name_no_tag): Update.
5601 (lookup_unsigned_typename, lookup_signed_typename): Update.
5602 * gdbtypes.c (type_name_no_tag): Change result type
5603 from char * to const char *. All callers updated.
5604 (lookup_unsigned_typename, lookup_signed_typename): Change type of
5605 name parameter from char * to const char *.
5606 * symtab.h (struct cplus_specific): Change type of demangled_name
5607 member from char * to const char *. All uses updated.
5608 (struct general_symbol_info): Change type of name and
5609 mangled_lang.demangled_name members from char * to const char *.
5611 (symbol_get_demangled_name, symbol_natural_name): Update.
5612 (symbol_demangled_name, symbol_search_name): Update.
5613 * symtab.c (symbol_get_demangled_name): Change result type
5614 from char * to const char *. All callers updated.
5615 (symbol_natural_name, symbol_demangled_name): Ditto.
5616 (symbol_search_name): Ditto.
5617 (completion_list_add_name): Change type of symname,sym_text,
5618 text,word parameters from char * to const char *.
5619 (completion_list_objc_symbol): Change type of sym_text,
5620 text,word parameters from char * to const char *.
5621 * ada-lang.c (find_struct_field): Change type of name parameter
5622 from char * to const char *.
5623 (encoded_ordered_before): Similarly for N0,N1 parameters.
5624 (old_renaming_is_invisible): Similarly for function_name parameter.
5625 (ada_type_name): Change result type from char * to const char *.
5626 All callers updated.
5627 * ada-lang.h (ada_type_name): Update.
5628 * buildsym.c (hashname): Change type of name parameter
5629 from char * to const char *.
5630 * buildsym.h (hashname): Update.
5631 * dbxread.c (end_psymtab): Change type of include_list parameter
5632 from char ** to const char **.
5633 * dwarf2read.c (determine_prefix): Change result type
5634 from char * to const char *. All callers updated.
5635 * f-lang.c (find_common_for_function): Change type of name, funcname
5636 parameters from char * to const char *.
5637 * f-lang.c (find_common_for_function): Update.
5638 * f-valprint.c (list_all_visible_commons): Change type of funcname
5639 parameters from char * to const char *.
5640 * gdbarch.sh (static_transform_name): Change type of name parameter
5641 and result from char * to const char *.
5642 * gdbarch.c: Regenerate.
5643 * gdbarch.h: Regenerate.
5644 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
5645 of name parameter from char * to const char *.
5646 * jv-lang.c (java_primitive_type_from_name): Ditto.
5647 (java_demangled_signature_length): Similarly for signature parameter.
5648 (java_demangled_signature_copy): Ditto.
5649 (java_demangle_type_signature): Ditto.
5650 * jv-lang.h (java_primitive_type_from_name): Update.
5651 (java_demangle_type_signature): Update.
5652 * objc-lang.c (specialcmp): Change type of a,b parameters
5653 from char * to const char *.
5654 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
5655 from char * to const char *. All callers updated.
5656 * p-lang.h (is_pascal_string_type): Update.
5657 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
5658 of name parameter from char * to const char *.
5659 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
5660 * utils.c (fprintf_symbol_filtered): Ditto.
5661 * defs.h (fprintf_symbol_filtered): Update.
5662 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
5663 * stabsread.h (end_psymtab): Update.
5664 * stack.c (find_frame_funname): Change type of funname parameter
5665 from char ** to const char **.
5666 * stack.h (find_frame_funname): Update.
5667 * typeprint.c (type_print): Change type of varstring parameter
5668 from char * to const char *.
5669 * value.h (type_print): Update.
5670 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
5671 from char * to const char *. All callers updated.
5672 (xcoff_end_psymtab): Change type of include_list parameter
5673 from char ** to const char **. All callers updated.
5674 (swap_sym): Similarly for name parameter. All callers updated.
5675 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
5677 (process_coff_symbol): Use xstrdup.
5678 * stabsread.c (stabs_method_name_from_physname): Renamed from
5679 update_method_name_from_physname. Change result type from void
5680 to char *. All callers updated.
5681 (read_member_functions): In has_destructor case, store name in objfile
5682 obstack instead of malloc space. In !has_stub case, fix mem leak.
5684 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
5686 * configure: Rebuild.
5687 * configure.ac: Put -L../bfd and -L../libiberty at the front of
5690 2012-02-03 Kevin Buettner <kevinb@redhat.com>
5692 * configure.tgt (rl78-*-elf): New target.
5693 * rl78-tdep.c: New file.
5695 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5697 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
5698 and continue the loop. Add QUIT statement.
5700 2012-02-03 Tom Tromey <tromey@redhat.com>
5703 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
5704 bfd_lookup_symbol_from_symtab.
5705 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
5706 gdb_bfd_lookup_symbol_from_symtab.
5708 2012-02-03 Joel Brobecker <brobecker@adacore.com>
5710 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
5711 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
5712 symbol. Add assertion that sym2 is never NULL.
5714 2012-02-02 Doug Evans <dje@google.com>
5716 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
5717 "name" parameter to const char ** from char **. All callers updated.
5718 (find_pc_partial_function): Ditto.
5719 (cache_pc_function_name): Change type to const char * from char *.
5720 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
5721 (find_pc_partial_function): Update.
5722 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
5723 type of "name" parameter to const char * from char *.
5725 * arch-utils.c (generic_in_solib_return_trampoline): Change
5726 type of "name" parameter to const char * from char *.
5727 * arch-utils.h (generic_in_solib_return_trampoline): Update.
5728 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
5729 type of "name" parameter to const char * from char *.
5730 * gdbarch.sh (in_solib_return_trampoline): Ditto.
5731 * gdbarch.c: Regenerate.
5732 * gdbarch.h: Regenerate.
5733 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
5734 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
5735 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
5736 type of "name" parameter to const char * from char *.
5737 * skip.c (skip_function_pc): Ditto.
5738 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
5739 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
5740 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
5741 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
5742 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
5743 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
5744 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
5745 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
5746 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
5748 2012-02-02 Pedro Alves <palves@redhat.com>
5750 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
5751 the current inferior has no execution. Make sure the current
5752 remote process matches gdb's current inferior.
5754 2012-02-02 Tom Tromey <tromey@redhat.com>
5757 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
5760 2012-02-02 Tom Tromey <tromey@redhat.com>
5763 * symtab.c (lookup_language_this): Set block_found.
5765 2012-02-01 Tom Tromey <tromey@redhat.com>
5768 * jit.c (struct jit_inferior_data): Rewrite.
5769 (struct jit_objfile_data): New.
5770 (get_jit_objfile_data): New function.
5771 (add_objfile_entry): Update.
5772 (jit_read_descriptor): Return int. Replace descriptor_addr
5773 argument with inf_data. Update. Don't call error.
5774 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
5776 (jit_inferior_init): Don't look up descriptor. Don't call error.
5777 (jit_reset_inferior_data_and_breakpoints)
5778 (jit_inferior_created_observer): Remove.
5779 (jit_inferior_exit_hook): Update.
5780 (jit_executable_changed_observer): Remove.
5781 (jit_event_handler): Update.
5782 (free_objfile_data): Reset inferior data if needed.
5783 (_initialize_jit): Update.
5785 2012-02-01 Tom Tromey <tromey@redhat.com>
5787 * jit.c (bfd_open_from_target_memory): Move higher in file.
5789 2012-02-01 Tristan Gingold <gingold@adacore.com>
5791 * libunwind-frame.c (libunwind_load): Display message if dlopen
5794 2012-02-01 Gary Benson <gbenson@redhat.com>
5796 * symtab.h (symbol_found_callback_ftype): New typedef.
5797 (iterate_over_symbols): Use the above.
5798 * symtab.c (iterate_over_symbols): Likewise.
5799 * language.h (language_defn->la_iterate_over_symbols): Likewise.
5800 * ada-lang.c (ada_iterate_over_symbols): Likewise.
5801 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
5802 (iterate_name_matcher): Document return values.
5803 (collect_one_symbol): Likewise.
5804 (collect_function_symbols): Likewise.
5805 (collect_symbols): Likewise.
5807 2012-02-01 Tom Tromey <tromey@redhat.com>
5809 * ada-lang.c (resolve_subexp): Update.
5810 (ada_lookup_symbol_list): Add 'full_search' argument.
5811 (ada_iterate_over_symbols): Pass 0 as full_search argument to
5812 ada_lookup_symbol_list.
5813 (ada_lookup_encoded_symbol): Update.
5814 (get_var_value): Update.
5815 * ada-exp.y (block_lookup): Update.
5816 (write_var_or_type): Update.
5817 (write_name_assoc): Update.
5818 * ada-lang.h (ada_lookup_symbol_list): Update.
5820 2012-01-31 Tom Tromey <tromey@redhat.com>
5822 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
5825 2012-01-31 Doug Evans <dje@google.com>
5827 * symtab.h: Remove outdated comment.
5828 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
5830 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
5832 Fix build error in Darwin port.
5833 * i386-darwin-nat.c: Include i386-nat.h.
5835 2012-01-30 Tom Tromey <tromey@redhat.com>
5837 PR breakpoints/13568:
5838 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
5839 argument. Check for recursive includes.
5840 (dwarf_decode_macros): Create an include hash.
5842 2012-01-30 Michael Eager <eager@eagercon.com>
5844 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
5845 * ppc-linux-tdep.c: Include glibc-tdep.h.
5846 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5847 (powerpc_linux_in_plt_stub): New function.
5848 (powerpc_linux_in_dynsym_resolve_code): New function.
5849 (ppc_skip_trampoline_code): New function.
5850 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
5851 Use glibc_skip_solib_resolver.
5853 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5855 Code cleanup: Make 1440 bytes of data segment read-only.
5856 * arch-utils.c (endian_enum): Make it const char *const [].
5857 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
5859 * breakpoint.c (always_inserted_enums): Likewise.
5860 * cli/cli-cmds.c (script_ext_enums): Likewise.
5861 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
5862 enumlist parameter const char *const *.
5863 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
5864 const char *const *.
5865 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
5866 parameter const char *const *.
5867 * cris-tdep.c (cris_modes): Make it const char *const [].
5868 * filesystem.c (target_file_system_kinds): Likewise.
5869 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
5870 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
5871 (can_use_displaced_stepping_enum, scheduler_enums)
5872 (exec_direction_names): Likewise.
5873 * language.c (_initialize_language): Make the type_or_range_names and
5874 case_sensitive_names variables const char *const [].
5875 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
5876 * python/python.c (python_excp_enums): Likewise.
5877 * remote.c (interrupt_sequence_modes): Likewise.
5878 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
5879 * serial.c (logbase_enums): Likewise.
5880 * sh-tdep.c (sh_cc_enum): Likewise.
5881 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
5883 * symtab.c (multiple_symbols_modes): Likewise.
5884 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
5886 * utils.c (internal_problem_modes): Likewise.
5888 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5890 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
5891 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
5894 2012-01-27 Doug Evans <dje@google.com>
5896 * configure.ac (with_python): Fix absolute path handling for win32.
5897 * configure: Regenerate.
5899 2012-01-26 Doug Evans <dje@google.com>
5901 * symtab.c: Whitespace cleanup, no code changes.
5903 * symtab.c (lookup_symbol_in_language): Improve comment.
5904 (lookup_symbol_aux): Fix comment.
5906 * psymtab.c (add_psymbol_to_list): Result is now "void".
5907 * psympriv.h (add_psymbol_to_list): Update.
5909 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
5911 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5913 Do not open script filenames twice.
5914 * cli/cli-cmds.c (source_script_from_stream): Pass to
5915 source_python_script also STREAM.
5916 * python/py-auto-load.c (source_section_scripts): Pass to
5917 source_python_script_for_objfile also STREAM.
5918 (auto_load_objfile_script): Pass to source_python_script_for_objfile
5920 * python/python-internal.h (source_python_script_for_objfile): New
5921 parameter file, rename parameter file to filename.
5922 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
5923 instead if !_WIN32. Update the function comment.
5924 (source_python_script, source_python_script_for_objfile)
5925 (source_python_script): New parameter file, rename parameter file to
5926 filename. Pass FILENAME to python_run_simple_file.
5927 * python/python.h (source_python_script): New parameter file, rename
5928 parameter file to filename.
5930 2012-01-26 Pedro Alves <palves@redhat.com>
5932 * corelow.c (core_has_fake_pid): Delete.
5933 (core_close): Delete references to `core_has_fake_pid'.
5934 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
5935 (core_open): Delete references to `core_has_fake_pid'.
5936 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
5939 2012-01-26 Joel Brobecker <brobecker@adacore.com>
5941 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
5942 Remove language parameter from name_matcher. Adjust the comment.
5943 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
5944 Remove language parameter.
5945 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
5946 * linespec.c (iterate_name_matcher): Likewise.
5947 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
5948 name_matcher. Adjust call accordingly.
5949 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
5950 (maintenance_check_symtabs): Adjust type of parameter "fun".
5951 * psymtab.h (maintenance_check_symtabs): Likewise.
5953 2012-01-26 Joel Brobecker <brobecker@adacore.com>
5955 * language.h (symbol_name_match_p_ftype): New typedef.
5956 (struct language_defn): Replace field la_symbol_name_compare
5957 by la_get_symbol_name_match_p.
5958 * ada-lang.c (ada_get_symbol_name_match_p): New function.
5959 (ada_language_defn): Use it.
5960 * linespec.c (struct symbol_matcher_data): New type.
5961 (iterate_name_matcher): Rewrite.
5962 (iterate_over_all_matching_symtabs): Pass a pointer to
5963 a symbol_matcher_data struct to expand_symtabs_matching
5964 instead of just the lookup name.
5965 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5966 opencl-lang.c, p-lang.c, language.c: Delete field
5967 la_symbol_name_compare, and replace by NULL for new field
5968 la_get_symbol_name_match_p.
5969 * symfile.h (struct quick_symbol_functions): Update comment.
5971 2012-01-25 Tom Tromey <tromey@redhat.com>
5973 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
5976 2012-01-24 Tom Tromey <tromey@redhat.com>
5979 * solib.c (update_solib_list): Update the program space's
5980 added_solibs and deleted_solibs fields.
5981 * progspace.h (struct program_space) <added_solibs,
5982 deleted_solibs>: New fields.
5983 (clear_program_space_solib_cache): Declare.
5984 * progspace.c (release_program_space): Call
5985 clear_program_space_solib_cache.
5986 (clear_program_space_solib_cache): New function.
5987 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
5988 bpstat_stop_status. Use handle_solib_event.
5989 * breakpoint.c: Include gdb_regex.h.
5990 (print_solib_event): New function.
5991 (bpstat_print): Use print_solib_event.
5992 (bpstat_stop_status): Add special case for bp_shlib_event.
5993 (handle_solib_event): New function.
5994 (bpstat_what): Use handle_solib_event.
5995 (struct solib_catchpoint): New.
5996 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
5997 (breakpoint_hit_catch_solib, check_status_catch_solib)
5998 (print_it_catch_solib, print_one_catch_solib)
5999 (print_mention_catch_solib, print_recreate_catch_solib): New
6001 (catch_solib_breakpoint_ops): New global.
6002 (catch_load_or_unload, catch_load_command_1)
6003 (catch_unload_command_1): New functions.
6004 (internal_bkpt_check_status): Add special case for
6006 (internal_bkpt_print_it): Use print_solib_event.
6007 (initialize_breakpoint_ops): Initialize
6008 catch_solib_breakpoint_ops.
6009 (_initialize_breakpoint): Register "catch load" and "catch
6011 * breakpoint.h (handle_solib_event): Declare.
6012 * NEWS: Add entry for "catch load" and "catch unload".
6014 2012-01-24 Tom Tromey <tromey@redhat.com>
6016 * ada-lang.c: Include gdb_vecs.h.
6017 * charset.c: Include gdb_vecs.h.
6018 * tracepoint.h: Include gdb_vecs.h.
6019 * gdb_vecs.h: New file.
6021 2012-01-24 Pedro Alves <pedro@codesourcery.com>
6023 * breakpoint.c (breakpoint_hit_catch_fork)
6024 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6025 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6026 * infrun.c (inferior_has_forked, inferior_has_vforked)
6027 (inferior_has_execd, inferior_has_called_syscall): Delete.
6028 (handle_syscall_event): Get syscall_number from the execution
6029 control state's wait status.
6030 (wait_for_inferior): Don't clear syscall_number.
6032 2012-01-24 Pedro Alves <palves@redhat.com>
6034 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6035 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6036 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6037 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6039 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6040 false for events other than TARGET_SIGNAL_TRAP.
6041 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6043 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6044 events other than TARGET_SIGNAL_TRAP.
6045 (tracepoint_breakpoint_hit): Add `ws' parameter.
6046 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6048 (bpstat_stop_status): Same.
6049 (pc_at_non_inline_function): Same.
6050 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6051 to pass the current event's waitstatus to bpstat_stop_status
6052 and pc_at_non_inline_function.
6054 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6057 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6058 Update the function comment for it.
6059 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6060 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6063 2012-01-24 Pedro Alves <palves@redhat.com>
6065 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6066 outside `bs->stop' block.
6067 (bpstat_what): Rework bp_shlib_event handling.
6068 (internal_bkpt_check_status): If the breakpoint is a
6069 bp_shlib_event, then set bs->stop and bs->print if
6070 stop_on_solib_events is set.
6072 2012-01-24 Gary Benson <gbenson@redhat.com>
6074 Delete #if 0'd out code.
6075 * stack.c (print_frame_label_vars): Remove.
6076 (catch_info): Likewise.
6077 (_initialize_stack): Remove "info catch" command.
6078 * NEWS: Mention the above.
6080 2012-01-24 Pedro Alves <palves@redhat.com>
6082 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6084 (remote_notice_new_inferior): If the remote end doesn't support
6085 the multiprocess extensions, then the PID is fake.
6086 (add_current_inferior_and_thread): New.
6087 (remote_start_remote): Use it.
6088 (extended_remote_attach_1): Adjust.
6089 (extended_remote_create_inferior_1): Use
6090 add_current_inferior_and_thread.
6092 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6094 Fix watchpoints to be specific for each inferior.
6095 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6096 current_program_space.
6097 * i386-nat.c (i386_inferior_data_cleanup): New.
6098 (i386_inferior_data_get): Replace variable inf_data_local by an
6100 (i386_use_watchpoints): Initialize i386_inferior_data.
6101 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6102 specific iterate_over_lwps.
6104 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6106 Fix watchpoints across inferior fork.
6107 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6108 comment for linux_nat_iterate_watchpoint_lwps.
6109 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6110 linux_nat_iterate_watchpoint_lwps.
6111 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6112 * i386-linux-nat.c (update_debug_registers_callback): Update the
6113 comment for linux_nat_iterate_watchpoint_lwps.
6114 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6115 linux_nat_iterate_watchpoint_lwps.
6116 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6117 * i386-nat.c: Include inferior.h.
6118 (dr_mirror): Remove.
6119 (i386_inferior_data, struct i386_inferior_data)
6120 (i386_inferior_data_get): New.
6121 (i386_debug_reg_state): Use i386_inferior_data_get.
6122 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6123 (i386_insert_watchpoint, i386_remove_watchpoint)
6124 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6125 (i386_remove_hw_breakpoint): New variable state, use
6126 i386_debug_reg_state instead of DR_MIRROR.
6127 * linux-nat.c (delete_lwp): New declaration.
6128 (num_lwps): Move here from downwards.
6129 (delete_lwp_cleanup): New.
6130 (linux_child_follow_fork): Create new child_lp, call
6131 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6133 (num_lwps): Move upwards.
6134 (linux_nat_iterate_watchpoint_lwps): New.
6135 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6136 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6138 2012-01-24 Joel Brobecker <brobecker@adacore.com>
6142 2012-01-23 Pedro Alves <palves@redhat.com>
6144 * top.c (caution): Rename to ...
6145 (confirm): ... this.
6146 (show_caution): Rename to ...
6147 (show_confirm): ... this.
6148 (quit_cover): Adjust.
6149 (init_main): Adjust.
6150 * top.h (caution): Rename to ...
6151 (confirm): ... this.
6152 * utils.c (internal_vproblem, defaulted_query): Adjust.
6154 2012-01-23 Pedro Alves <palves@redhat.com>
6156 * top.c (caution): Update comment.
6157 (execute_command): Don't consider the current value of `caution'.
6159 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6161 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6163 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6165 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6166 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6167 * target.c (target_fileio_pwrite): Remove buffer address from
6169 (target_fileio_pread): Likewise.
6171 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6173 * NEWS: Document remote "info proc" and "generate-core-file".
6175 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6177 * gdbarch.sh (find_memory_regions): New callback.
6178 * gdbarch.c, gdbarch.h: Regenerate.
6180 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6181 callback before falling back to target method.
6183 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6184 (linux_target_install_ops): No longer install it.
6186 * linux-tdep.c (linux_find_memory_regions): New function.
6187 (linux_init_abi): Install it.
6189 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6191 * gdbarch.sh (make_corefile_notes): New architecture callback.
6192 * gdbarch.c: Regenerate.
6193 * gdbarch.h: Likewise.
6195 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6196 before target_make_corefile_notes. If NULL is returned, the
6197 target does not support core file generation.
6199 * linux-nat.c: Include "linux-tdep.h".
6200 (find_signalled_thread, find_stop_signal): Remove.
6201 (linux_nat_do_thread_registers): Likewise.
6202 (struct linux_nat_corefile_thread_data): Likewise.
6203 (linux_nat_corefile_thread_callback): Likewise.
6204 (iterate_over_spus): Likewise.
6205 (struct linux_spu_corefile_data): Likewise.
6206 (linux_spu_corefile_callback): Likewise.
6207 (linux_spu_make_corefile_notes): Likewise.
6208 (linux_nat_collect_thread_registers): New function.
6209 (linux_nat_make_corefile_notes): Replace contents by call to
6210 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6211 as native-only callback.
6213 * linux-tdep.h: Include "bfd.h".
6214 (struct regcache): Add forward declaration.
6215 (linux_collect_thread_registers_ftype): New typedef.
6216 (linux_make_corefile_notes): Add prototype.
6217 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6218 "regset.h", and "elf-bfd.h".
6219 (find_signalled_thread, find_stop_signal): New functions.
6220 (linux_spu_make_corefile_notes): Likewise.
6221 (linux_collect_thread_registers): Likewise.
6222 (struct linux_corefile_thread_data): New data structure.
6223 (linux_corefile_thread_callback): New funcion.
6224 (linux_make_corefile_notes): Likewise.
6225 (linux_make_corefile_notes_1): Likewise.
6226 (linux_init_abi): Install it.
6228 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6230 * gdbarch.sh (info_proc): New callback.
6231 * gdbarch.c, gdbarch.h: Regenerate.
6233 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6234 before falling back to the target info_proc callback.
6236 * linux-nat.c: Do not include "cli/cli-utils.h".
6237 (linux_nat_info_proc): Remove.
6238 (linux_target_install_ops): No longer install it.
6240 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6241 (read_mapping): New function.
6242 (linux_info_proc): Likewise.
6243 (linux_init_abi): Install it.
6245 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6247 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6248 * infcmd.c: (info_proc_cmd_1): New function.
6249 (info_proc_cmd): New function, moved here from equivalent routine
6250 orignally in linux-nat.c.
6251 (info_proc_cmd_mappings): Likewise.
6252 (info_proc_cmd_stat): Likewise.
6253 (info_proc_cmd_status): Likewise.
6254 (info_proc_cmd_cwd): Likewise.
6255 (info_proc_cmd_cmdline): Likewise.
6256 (info_proc_cmd_exe): Likewise.
6257 (info_proc_cmd_all): Likewise.
6258 (_initialize_infcmd): Install "info proc" command and subcommands.
6260 * target.h (struct target_ops): Add to_info_proc.
6261 (target_info_proc): Add prototype.
6262 * target.c (target_info_proc): New function.
6264 * procfs.c (procfs_info_proc): Add prototype.
6265 (info_proc_cmd): Rename into ...
6266 (procfs_info_proc): ... this. Update argument types as appropriate
6267 for a to_info_proc implementation. Handle "what" argument.
6268 (procfs_target): Install procfs_info_proc.
6269 (_initialize_procfs): No longer install "info proc" command.
6271 * linux-nat.c: (enum info_proc_what): Remove.
6272 (linux_nat_info_proc_cmd_1): Rename into ...
6273 (linux_nat_info_proc): ... this. Update argument types as appropriate
6274 for a to_info_proc implementation.
6275 (linux_nat_info_proc_cmd): Remove.
6276 (linux_nat_info_proc_cmd_mappings): Likewise.
6277 (linux_nat_info_proc_cmd_stat): Likewise.
6278 (linux_nat_info_proc_cmd_status): Likewise.
6279 (linux_nat_info_proc_cmd_cwd): Likewise.
6280 (linux_nat_info_proc_cmd_cmdline): Likewise.
6281 (linux_nat_info_proc_cmd_exe): Likewise.
6282 (linux_nat_info_proc_cmd_all): Likewise.
6283 (linux_target_install_ops): Install linux_nat_info_proc.
6284 (_initialize_linux_nat): No longer install "info proc" command
6287 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6289 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6290 * config.in, configure: Regenerate.
6292 * target.h (struct target_ops): Add to_fileio_readlink.
6293 (target_fileio_readlink): Add prototype.
6294 * target.c (target_fileio_readlink): New function.
6296 * inf-child.c: Conditionally include <sys/param.h>.
6297 (inf_child_fileio_readlink): New function.
6298 (inf_child_target): Install it.
6300 * remote.c (PACKET_vFile_readlink): New enum value.
6301 (remote_hostio_readlink): New function.
6302 (init_remote_ops): Install it.
6303 (_initialize_remote): Handle vFile:readlink packet type.
6305 2012-01-20 Pedro Alves <palves@redhat.com>
6306 Ulrich Weigand <ulrich.weigand@linaro.org>
6308 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6309 * config.in, configure: Regenerate.
6311 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6312 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6313 (target_fileio_open): Add prototype.
6314 (target_fileio_pwrite): Likewise.
6315 (target_fileio_pread): Likewise.
6316 (target_fileio_close): Likewise.
6317 (target_fileio_unlink): Likewise.
6318 (target_fileio_read_alloc): Likewise.
6319 (target_fileio_read_stralloc): Likewise.
6321 * target.c: Include "gdb/fileio.h".
6322 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6323 (default_fileio_target): New function.
6324 (target_fileio_open): Likewise.
6325 (target_fileio_pwrite): Likewise.
6326 (target_fileio_pread): Likewise.
6327 (target_fileio_close): Likewise.
6328 (target_fileio_unlink): Likewise.
6329 (target_fileio_close_cleanup): Likewise.
6330 (target_fileio_read_alloc_1): Likewise.
6331 (target_fileio_read_alloc): Likewise.
6332 (target_fileio_read_stralloc): Likewise.
6334 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6335 <fcntl.h>, and <unistd.h>.
6336 (inf_child_fileio_open_flags_to_host): New function.
6337 (inf_child_errno_to_fileio_error): Likewise.
6338 (inf_child_fileio_open): Likewise.
6339 (inf_child_fileio_pwrite): Likewise.
6340 (inf_child_fileio_pread): Likewise.
6341 (inf_child_fileio_close): Likewise.
6342 (inf_child_fileio_unlink): Likewise.
6343 (inf_child_target): Install to_fileio routines.
6345 * remote.c (init_remote_ops): Install to_fileio routines.
6347 2012-01-20 Pedro Alves <palves@redhat.com>
6348 Ulrich Weigand <ulrich.weigand@linaro.org>
6350 * remote.c (remote_multi_process_p): Only check for multi-process
6351 protocol feature, do not check for extended protocol.
6352 (remote_supports_multi_process): Check for extended protocol here.
6353 (set_general_process): Likewise.
6354 (extended_remote_kill): Likewise.
6355 (remote_pid_to_str): Likewise.
6356 (remote_query_supported): Always query multiprocess mode.
6358 2012-01-20 Pedro Alves <palves@redhat.com>
6359 Ulrich Weigand <ulrich.weigand@linaro.org>
6361 * inferior.h (struct inferior): Add fake_pid_p.
6362 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6363 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6364 magic_null_ptid since the remote side doesn't provide a real PID.
6366 2012-01-19 Tom Tromey <tromey@redhat.com>
6368 * NEWS: Combine the two Python sections.
6370 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6372 * target.h (target_close): Update comment on the target's unpush state.
6374 2012-01-19 Pedro Alves <palves@redhat.com>
6376 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6377 linux_nat_async directly instead of going through the target
6379 * target.c (unpush_target): Close target after unpushing it, not
6382 2012-01-19 Gary Benson <gbenson@redhat.com>
6384 * mdebugread.c (sort_blocks): Replace integer constants with ones
6385 derived from FIRST_LOCAL_BLOCK.
6387 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
6388 Jan Kratochvil <jan.kratochvil@redhat.com>
6391 * symfile.c (find_separate_debug_file): New function.
6392 (terminate_after_last_dir_separator): Likewise.
6393 (find_separate_debug_file_by_debuglink): Also try realpath.
6394 * configure.ac (AC_CHECK_FUNCS): Add lstat.
6395 * configure: Regenerate.
6396 * config.in: Regenerate.
6398 2012-01-18 Doug Evans <dje@google.com>
6400 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
6401 (main.o): Remove rule.
6402 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
6403 (--with-sysroot): Rewrite.
6404 * configure: Regenerate.
6405 * config.in: Regenerate.
6407 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
6409 * parse.c (initialize_expout): New function.
6410 (reallocate_expout): Likewise.
6411 (parse_exp_in_context): Use `initialize_expout' and
6412 `reallocate_expout' when appropriate.
6414 2012-01-18 Pedro Alves <palves@redhat.com>
6416 * record.c (struct record_breakpoint, record_breakpoint_p)
6417 (record_breakpoints): New.
6418 (record_insert_breakpoint, record_remove_breakpoint): Manage
6419 record breakpoints list. Only remove breakpoints from the
6420 inferior if they had been inserted there in the first place.
6422 2012-01-17 Doug Evans <dje@google.com>
6424 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
6425 if we know we don't have a file name to look for.
6427 2012-01-17 Pedro Alves <palves@redhat.com>
6429 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
6430 the frame's stop reason is UNWIND_UNAVAILABLE.
6432 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6434 Fix compilation error.
6435 * m2-exp.y (yyerror): Use ANSI C prototype.
6437 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6439 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
6440 (growbuf_by_size): Likewise.
6441 (yyerror): Likewise.
6442 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
6443 (modblock): Remove variable (was #if 0'ed).
6444 (parse_number): Convert prototype from K&R to ANSI C.
6445 (yyerror): Likewise.
6446 * objc-exp.y (parse_number): Likewise.
6447 (yyerror): Likewise.
6448 (yylex): Remove #if 0'ed code.
6449 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
6450 (yyerror): Likewise.
6452 2012-01-16 Tom Tromey <tromey@redhat.com>
6455 * symtab.h (compare_filenames_for_search): Declare.
6456 * symtab.c (compare_filenames_for_search): New function.
6457 (iterate_over_some_symtabs): Use it.
6458 * symfile.h (struct quick_symbol_functions)
6459 <map_symtabs_matching_filename>: Change spec.
6460 * psymtab.c (partial_map_symtabs_matching_filename): Use
6461 compare_filenames_for_search. Update for new spec.
6462 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
6463 compare_filenames_for_search. Update for new spec.
6464 * breakpoint.c (clear_command): Use compare_filenames_for_search.
6466 2012-01-16 Tom Tromey <tromey@redhat.com>
6469 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
6470 (struct main_type) <flag_flag_enum>: New field.
6471 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
6472 * NEWS: Add entries.
6473 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
6475 * python/lib/gdb/printing.py (_EnumInstance): New class.
6476 (FlagEnumerationPrinter): Likewise.
6478 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6480 * breakpoint.c (create_sals_from_address_default): New function.
6481 (create_breakpoints_sal_default): Likewise.
6482 (decode_linespec_default): Likewise.
6483 (is_marker_spec): Removed.
6484 (strace_marker_p): New function.
6485 (init_breakpoint_sal): Using `strace_marker_p' instead of
6487 (create_breakpoint): Call method `create_sals_from_address' from
6488 breakpoint_ops, replacing code that created SALs conditionally
6489 on the type of the breakpoint. Call method `create_breakpoints_sal',
6490 replacing code that created breakpoints conditionally on the type
6492 (base_breakpoint_create_sals_from_address): New function.
6493 (base_breakpoint_create_breakpoints_sal): Likewise.
6494 (base_breakpoint_decode_linespec): Likewise.
6495 (base_breakpoint_ops): Add methods
6496 `base_breakpoint_create_sals_from_address',
6497 `base_breakpoint_create_breakpoints_sal' and
6498 `base_breakpoint_decode_linespec'.
6499 (bkpt_create_sals_from_address): New function.
6500 (bkpt_create_breakpoints_sal): Likewise.
6501 (bkpt_decode_linespec): Likewise.
6502 (tracepoint_create_sals_from_address): Likewise.
6503 (tracepoint_create_breakpoints_sal): Likewise.
6504 (tracepoint_decode_linespec): Likewise.
6505 (strace_marker_create_sals_from_address): Likewise.
6506 (strace_marker_create_breakpoints_sal): Likewise.
6507 (strace_marker_decode_linespec): Likewise.
6508 (strace_marker_breakpoint_ops): New variable.
6509 (addr_string_to_sals): Remove `marker_spec'. Call method
6510 `decode_linespec' from breakpoint_ops, replacing code that decoded
6511 an address string into a SAL. Use `strace_marker_p' instead of
6513 (strace_command): Decide whether we are dealing with a static
6514 tracepoint with marker or not. Use the appropriate breakpoint_ops.
6515 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
6516 * breakpoint.h (linespec_result, linespec_sals): New forward
6518 (breakpoint_ops) <create_sals_from_address>,
6519 <create_breakpoints_sal>, <decode_linespec>: New methods.
6521 2012-01-14 Doug Evans <dje@google.com>
6523 * NEWS: Update text for "maint set python print-stack".
6524 It is deprecated in gdb 7.4 and deleted in 7.5.
6526 2012-01-13 Eli Zaretskii <eliz@gnu.org>
6528 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
6531 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6533 * configure: Regenerate.
6534 * config.in: Regenerate.
6536 2012-01-12 Keith Seitz <keiths@redhat.com>
6539 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
6540 (ANONYMOUS_UNION_NAME): Define.
6541 (is_path_expr_parent): New function.
6542 (get_path_expr_parent): New function.
6543 (is_anonymous_child): New function.
6544 (create_child_with_value): If the child is anonymous and without
6545 a name, assign an object name to it.
6546 (c_describe_child): Use get_path_expr_parent to determine
6547 the parent expression.
6548 If there field represents an anonymous struct or union and
6549 has no name, set an appropriate display name and expression.
6550 (cplus_describe_child): Likewise.
6552 2012-01-12 Pedro Alves <palves@redhat.com>
6554 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
6555 available when %ebp is found to be zero (outermost).
6557 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
6559 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
6560 an internal gdb_static_assert.
6561 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
6563 2012-01-11 Tom Tromey <tromey@redhat.com>
6566 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
6567 catch" and "catch throw".
6569 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
6571 * blockframe.c (block_innermost_frame): Start search from selected
6572 frame, if present, or otherwise the current frame.
6574 * c-exp.y (variable): Update innermost_block for
6575 'block COLONCOLON NAME' clause.
6576 * m2-exp.y (variable): Ditto.
6577 * objc-exp.y (variable): Ditto.
6579 2012-01-10 Tom Tromey <tromey@redhat.com>
6582 * python/python.c (finish_python_initialization): Set sys.argv.
6584 2012-01-10 Doug Evans <dje@google.com>
6586 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
6587 "want_line_info". All callers updated.
6588 (dwarf_decode_lines_1): New function.
6589 (handle_DW_AT_stmt_list): Add function comment.
6590 New arg "want_line_info". All callers updated.
6591 (read_file_scope,read_type_unit_scope): Move comment from
6592 handle_DW_AT_stmt_list to here.
6594 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6596 Fix regression after libiberty/ update for GCC PR 6057 and others.
6597 * c-exp.y (operator) <OPERATOR DELETE>
6598 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6599 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
6600 (make_builtin_type, make_name): New variable i, add gdb_assert.
6601 (operator) <OPERATOR NEW>: Update ARGS to 3.
6602 (operator) <OPERATOR DELETE>: Add trailing space.
6603 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
6604 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6605 * cp-support.c (cp_canonicalize_string): Check NULL from
6606 cp_comp_to_string, call warning and return.
6608 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6610 Fix duplicate .o files after omitting libbfd.a.
6611 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
6612 (SFILES): Add corelow.c.
6613 (COMMON_OBS): Add corelow.o.
6614 (ALLDEPFILES): Remove corelow.c.
6615 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
6616 * config/alpha/alpha-osf3.mh: Likewise.
6617 * config/alpha/fbsd.mh: Likewise.
6618 * config/arm/nbsdaout.mh: Likewise.
6619 * config/arm/nbsdelf.mh: Likewise.
6620 * config/i386/i386gnu.mh: Likewise.
6621 * config/ia64/hpux.mh: Likewise.
6622 * config/ia64/linux.mh: Likewise.
6623 * config/m32r/linux.mh: Likewise.
6624 * config/m68k/linux.mh: Likewise.
6625 * config/mips/irix5.mh: Likewise.
6626 * config/mips/irix6.mh: Likewise.
6627 * config/pa/hpux.mh: Likewise.
6628 * config/pa/linux.mh: Likewise.
6629 * config/powerpc/aix.mh: Likewise.
6630 * config/sparc/linux.mh: Likewise.
6631 * config/sparc/linux64.mh: Likewise.
6632 * config/sparc/sol2.mh: Likewise.
6633 * config/vax/vax.mh: Likewise.
6634 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
6635 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
6636 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
6637 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
6638 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
6639 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
6640 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
6641 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
6642 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
6643 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
6644 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
6645 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
6646 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6647 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
6648 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
6649 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6650 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
6651 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
6652 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
6653 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
6654 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
6655 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
6656 corelow.o from gdb_target_obs.
6657 * corefile.c (core_target): Update the comment on NULL value.
6658 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
6659 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
6660 MATCHES. Drop YUMMY set on NULL.
6661 (core_close): Do not call exit_inferior_silent on zero PID. Do not
6662 reclaim CORE_DATA if it is already NULL.
6664 2012-01-09 Doug Evans <dje@google.com>
6666 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
6667 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
6669 2012-01-09 Keith Seitz <keiths@redhat.com>
6671 * breakpoint.c (wrapper.h): Don't include.
6673 2012-01-09 Keith Seitz <keiths@redhat.com>
6675 * Makefile.in (SFILES): Remove wrapper.c.
6676 (HFILES_NO_SRCDIR): Remove wrapper.h.
6677 (COMMON_OBS): Remove wrapper.o.
6678 * cli/cli-interp.c: Don't inlude wrapper.h.
6679 * corelow.c: Likewise.
6680 (core_open): Replace gdb_target_find_new_threads with
6681 TRY_CATCH around target_find_new_threads.
6682 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
6683 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
6684 * varobj.c (varobj_create): Likewise for parse_exp_1 and
6685 evaluate_expression.
6686 (varobj_set_value): Likewise for evaluate_expression and
6688 (install_new_variable): Likewise for value_fetch_lazy.
6689 (adjust_value_for_child_access): Likewise for value_ind.
6690 (c_describe_child): Likewise for value_subscript and
6692 (c_value_of_root): Likewise for evaluate_expression.
6693 * wrapper.c: Remove.
6694 * wrapper.h: Remove.
6696 2012-01-09 Doug Evans <dje@google.com>
6698 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
6699 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
6700 "abfd" args with "section". All callers updated.
6701 Error checking code moved ...
6702 (error_check_comp_unit_head): ... here. New function.
6703 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
6704 Delete arg "abfd". New arg "type_offset". All callers updated.
6705 (create_debug_types_hash_table): Simplify by using
6706 read_and_check_type_unit_head.
6708 * parser-defs.h (namecopy): Delete.
6709 * parse.c (namecopy, namecopy_size): Move into copy_name.
6711 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6713 Partially fix duplicate .o files after omitting libbfd.a.
6714 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
6715 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6716 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
6717 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6718 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
6719 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
6720 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6722 2012-01-09 Pedro Alves <palves@redhat.com>
6724 * MAINTAINERS: Update my email address.
6726 2012-01-08 Doug Evans <dje@google.com>
6728 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
6729 n_type_units. Rename type_comp_units to all_type_units.
6731 (add_signatured_type_cu_to_table): Renamed from
6732 add_signatured_type_cu_to_list. All callers updated.
6734 * gdbtypes.h (struct cplus_struct_type): Delete member
6735 nfn_fields_total. All uses removed.
6737 2012-01-06 Doug Evans <dje@google.com>
6739 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
6741 (dwarf2_find_comp_unit): Delete.
6742 (process_psymtab_comp_unit): Make result "void".
6743 Delete args buffer, info_ptr, buffer_size, and replace with
6744 "section". All callers updated.
6745 (dwarf2_build_psymtabs_hard): Simplify.
6747 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
6748 Thiago Jung Bauermann <bauerman@br.ibm.com>
6750 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
6751 before `struct gdb_exception'.
6752 * breakpoint.c (update_global_location_list_nothrow)
6753 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
6754 * cp-abi.c (value_rtti_type): Likewise.
6755 * cp-support.c (cp_validate_operator): Likewise.
6756 * infrun.c (insert_exception_resume_breakpoint)
6757 (check_exception_resume, keep_going): Likewise.
6758 * mi-interp.c (mi_breakpoint_created)
6759 (mi_breakpoint_modified): Likewise.
6760 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
6761 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
6762 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
6764 2012-01-05 Doug Evans <dje@google.com>
6766 * dwarf2read.c (statement_prologue): Delete, unused.
6768 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
6769 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
6771 * dwarf2read.c (comp_unit_header): Delete, unused.
6773 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
6775 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
6776 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
6778 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
6780 * infrun.c (normal_stop): Don't skip calling the normal_stop
6781 observers if the thread was doing a multi-step, but stopped for
6782 some reason other than stepping.
6784 2012-01-05 Pedro Alves <alves.ped@gmail.com>
6786 * cli/cli-decode.h: Add comments.
6787 (CMD_LIST_AMBIGUOUS): Moved to command.h
6788 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
6789 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
6790 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
6791 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
6792 (add_com, add_com_alias, add_info, add_info_alias)
6793 (complete_on_cmdlist, complete_on_enum, help_list): Remove
6795 * command.h: Add and adjust comments.
6796 (CMD_LIST_AMBIGUOUS): Moved here.
6797 (help_cmd, help_cmd_list): Delete declarations.
6799 2012-01-04 Doug Evans <dje@google.com>
6801 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
6802 All callers updated.
6803 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
6804 Replace all arguments with "per_cu". All callers updated.
6806 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
6808 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
6809 New arg "per_cu". All callers updated.
6811 Delete #if 0'd out code.
6812 * language.c (binop_result_type): Delete.
6813 (simple_type, ordered_type, same_type, integral_type): Delete.
6814 (numeric_type, character_type, string_type, boolean_type): Delete.
6815 (float_type, structured_type): Delete.
6816 * language.h: Update.
6818 2012-01-04 Tom Tromey <tromey@redhat.com>
6820 * python/py-value.c (valpy_binop): Initialize 'res_val'.
6822 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6824 * corefile.c (close_exec_file): Delete.
6825 (reopen_exec_file): Remove commented out code that seems related
6826 to close_exec_file, which is being deleted here.
6827 * inferior.h (close_exec_file): Delete.
6828 * fork-child.c (fork_inferior): Remove call to fork_inferior.
6830 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6832 * ada-lang.c: #include "cli/cli-utils.h".
6833 (get_selections): Use skip_spaces.
6834 (ada_get_next_arg): Use skip_spaces and skip_to_space.
6835 (catch_ada_exception_command_split): Use skip_spaces.
6836 (ada_decode_assert_location): Likewise.
6838 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6840 * linespec.c (decode_line_internal): Check for C++ or Java
6841 compound constructs only if the current language is C, C++
6844 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6847 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6848 Joel Brobecker <brobecker@adacore.com>
6849 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
6850 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
6852 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
6853 fall through into AT_ENTRY_POINT.
6854 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
6856 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
6857 PPC_INSN_SIZE skip to 3 times.
6859 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6861 * linespec.c (add_minsym): Preserve function descriptors.
6863 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6865 * breakpoint.c (all_locations_are_pending): Consider locations
6866 in program spaces executing during startup pending as well.
6868 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6870 Copyright year update in most files of the GDB Project.
6872 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6874 * copyright.sh: Delete.
6875 * copyright.py: Rewrite.
6877 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6879 * gnulib/extra/update-copyright: New file, imported from gnulib.
6881 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6883 * README (Copyright and License Notices): New section.
6885 2012-01-03 Tom Tromey <tromey@redhat.com>
6888 * python/py-value.c (valpy_dereference, valpy_get_address
6889 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
6890 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
6891 (valpy_absolute, valpy_richcompare): Free intermediate values.
6893 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6895 * ada-lang.c: Reformat the copyright notice.
6897 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6899 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
6900 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
6901 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
6902 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
6903 Revert this part of:
6904 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6905 Build gdb directly from *.o files not using libgdb.a.
6906 * Makefile.in (COMMON_OBS): Remove solib-target.o.
6908 2012-01-02 Joel Brobecker <brobecker@adacore.com>
6910 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
6911 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
6912 Reformat the copyright header.
6914 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6916 Revert this part of:
6917 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6918 Remove the gdbtui binary.
6919 * gdb.c (main): Remove args.interpreter_p initialization.
6920 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
6921 * main.h (struct captured_main_args): Remove interpreter_p.
6923 2012-01-02 Joel Brobecker <brobecker@adacore.com>
6925 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
6927 2012-01-02 Joel Brobecker <brobecker@adacore.com>
6929 * top.c (print_gdb_version): Update copyright year.
6931 2012-01-02 Yao Qi <yao@codesourcery.com>
6933 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
6935 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6936 Joel Brobecker <brobecker@adacore.com>
6938 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
6939 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
6941 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
6942 fall through into AT_ENTRY_POINT.
6943 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
6945 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
6946 PPC_INSN_SIZE skip to 3 times.
6948 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6950 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
6952 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
6954 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6956 Build gdb directly from *.o files not using libgdb.a.
6957 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
6958 (COMMON_OBS): Remove solib-target.o.
6959 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
6960 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
6961 (LIBGDB_OBS, libgdb.a): Move it above.
6962 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
6963 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
6964 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
6965 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
6966 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
6967 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
6968 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
6969 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
6970 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
6971 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
6972 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
6973 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
6974 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
6975 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
6976 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6977 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
6978 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
6979 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6980 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
6981 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
6982 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
6983 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
6984 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
6985 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
6986 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
6987 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
6988 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
6990 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6992 Remove the gdbtui binary.
6993 * .gitignore (/gdbtui): Remove.
6994 * Makefile.in (TUI): Remove.
6995 (SUBDIR_TUI_OBS): Remove tui-main.o.
6996 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
6997 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
6998 (tui-main.o): Remove.
6999 (all_object_files): Remove tui-main.o.
7000 * NEWS: New note for the gdbtui removal.
7001 * configure: Rebuilt.
7002 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7003 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7004 CONFIG_UNINSTALL respectively.
7005 * gdb.c (main): Remove args.interpreter_p initialization.
7006 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7007 * main.h (struct captured_main_args): Remove interpreter_p.
7008 * tui/tui-main.c: Remove.
7010 2012-01-01 Doug Evans <dje@google.com>
7012 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7013 (dwarf2_physname, read_import_statement): Ditto.
7014 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7015 (process_structure_scope read_subroutine_type): Ditto.
7016 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7017 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7018 (dwarf2_fetch_die_location_block): Ditto.
7019 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7021 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7022 All callers updated.
7023 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7024 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7025 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7027 * dwarf2read.c (load_cu): Move assert to more useful location.
7029 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7030 All callers updated.
7032 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7033 (dwarf2_elf_names): Minor reformat.
7034 (dwarf2_per_cu_data): Tweak comment.
7035 (dwarf2_read_section): Fix comment.
7036 (create_all_comp_units): Fix comment.
7037 (load_full_comp_unit): Fix comment.
7038 (process_full_comp_unit): Fix comment.
7039 (read_signatured_type): Fix comment.
7041 For older changes see ChangeLog-2011.
7047 version-control: never