1 2012-06-12 Eli Zaretskii <eliz@gnu.org>
3 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4 special characters correctly for the Windows shells. See
5 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
7 [!__MINGW32__]: Remove extra double quote character from special
10 2012-06-11 Stan Shebs <stan@codesourcery.com>
12 * ui-out.h: Remove #if 0 declarations.
13 * ui-out.c: Remove #if 0 functions.
15 2012-06-11 Pedro Alves <palves@redhat.com>
17 * ser-base.c (run_async_handler_and_reschedule): New.
18 (fd_event, push_event): Use it.
19 * serial.c (serial_open, serial_fdopen_ops): Set the initial
21 (do_serial_close): Set the bufp field to NULL. Use serial_unref
23 (serial_is_open, serial_ref, serial_unref): New.
24 * serial.h (serial_open): Adjust comment.
25 (serial_is_open): Declare.
26 (serial_close): Adjust comment.
27 (serial_ref, serial_unref) Declare.
28 (struct serial): New field 'refcnt'.
30 2012-06-11 Pedro Alves <palves@redhat.com>
32 Remove #if 0'd "connect" command, and unnecessary associated
33 refcounting and serial reuse bits.
35 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
36 * serial.c (last_serial_opened): Delete.
38 (serial_open): Adjust.
39 (serial_for_fd): Delete.
40 (serial_fdopen_ops, do_serial_close): Adjust.
41 (serial_fdopen_ops): Adjust.
43 2012-06-11 Pedro Alves <palves@redhat.com>
45 * serial.c (do_serial_close): Remove early return when SCB is
48 2012-06-11 Tom Tromey <tromey@redhat.com>
50 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
52 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
54 Fix regression by the "ambiguous linespec" series.
55 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
56 get_last_displayed_symtab and get_last_displayed_line and depending
59 2012-06-11 Tom Tromey <tromey@redhat.com>
61 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
62 (dw2_find_symbol_file): Use it.
64 2012-06-11 Michael Eager <eager@eagercon.com>
66 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
67 * mips-linux-tdep.h (mips_signals): New
69 2012-06-11 Tom Tromey <tromey@redhat.com>
71 * infrun.c (handle_inferior_event)
72 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
74 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
75 exception logic in all cases. Update comments.
76 (insert_longjmp_resume_breakpoint): Set the exception resume
79 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
81 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
83 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
85 * valarith.c (binop_types_user_defined_p): Fix a typo.
87 2012-06-08 Yao Qi <yao@codesourcery.com>
88 Chung-Lin Tang <cltang@codesourcery.com>
90 * arch-utils.c (default_return_in_first_hidden_param_p): New.
91 * arch-utils.h: Declare.
92 * gdbarch.sh: Add return_in_first_hidden_param_p.
93 * gdbarch.c, gdbarch.h: Regenerated.
94 * infcall.c (call_function_by_hand): Call
95 gdbarch_return_in_first_hidden_param_p instead of
96 language_pass_by_reference.
98 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
99 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
100 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
101 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
102 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
103 `cplus_return_struct_by_reference'.
104 (tic6x_return_value): Handle language cplusplus.
105 (tic6x_return_in_first_hidden_param_p): New.
106 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
108 2012-06-07 Doug Evans <dje@google.com>
110 * dwarf2read.c (dwarf2_cu): Add comment.
112 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
114 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
116 (mips_eabi_push_dummy_call): Likewise.
117 (mips_n32n64_push_dummy_call): Likewise.
118 (mips_o32_push_dummy_call): Likewise.
119 (mips_o64_push_dummy_call): Likewise.
121 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
123 * mips-tdep.c (mips_convert_register_p): Correct coding style.
125 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
127 * mips-tdep.c (mips_pseudo_register_type): Use
128 mips_float_register_p.
130 2012-06-06 Pedro Alves <palves@redhat.com>
132 * infrun.c (handle_inferior_event): Remove calls to
133 reinit_frame_cache that follow a context_switch call.
135 2012-06-06 Pedro Alves <palves@redhat.com>
137 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
138 context_switch and remove stale comment.
140 2012-06-06 Pedro Alves <palves@redhat.com>
142 * infrun.c (struct execution_control_state): Remove
143 `new_thread_event' field.
144 (handle_inferior_event): Simplify new threads handling; don't
145 resume the inferior if we find a new thread.
147 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
149 * NEWS: Document the deprecation of SH's 'regs' command.
150 * inferior.h (all_registers_info): Add function declaration.
151 * sh-tdep.c (sh_show_regs): Remove variable.
152 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
153 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
154 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
155 (sh_show_regs_command): Remove functions.
156 (sh_gdbarch_init): Don't set sh_show_regs.
157 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
158 'info all-registers'.
159 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
160 (sh64_show_regs): Remove functions.
161 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
163 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
165 * configure.ac: Move development=true below AC_INIT.
166 * configure: Regenerate.
168 2012-06-05 Stan Shebs <stan@codesourcery.com>
170 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
173 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
175 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
177 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
178 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
179 * target.c (target_read_stack, target_write_memory)
180 (target_write_raw_memory): Likewise.
181 * target.h (target_read_stack, target_write_memory)
182 (target_write_raw_memory): Likewise.
184 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
186 * symfile-mem.c: Change gdb_static_assert to ssize_t.
187 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
188 * target.c (target_read_memory): Change LEN to ssize_t.
189 * target.h (target_read_memory): Change LEN to ssize_t.
191 2012-06-05 Pedro Alves <palves@redhat.com>
195 * breakpoint.c (until_break_command): Only fetch the selected
196 frame after decode_line_1.
198 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
200 * solib-svr4.c (enable_break): Don't fallback to setting the solib
201 event breakpoint at _start, __start or main if a program
202 interpreter is not found.
204 2012-06-05 Joel Brobecker <brobecker@adacore.com>
206 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
208 * windows-tdep.c: #include "objfiles.h".
209 (windows_iterate_over_objfiles_in_search_order): New function.
210 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
211 iterate_over_objfiles_in_search_order gdbarch method to
212 windows_iterate_over_objfiles_in_search_order.
213 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
215 2012-06-05 Joel Brobecker <brobecker@adacore.com>
217 * gdbarch.sh: Add generation of
218 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
219 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
220 (iterate_over_objfiles_in_search_order): New gdbarch method.
221 * gdbarch.h, gdbarch.c: Regenerate.
222 * objfiles.h (default_iterate_over_objfiles_in_search_order):
224 * objfiles.c (default_iterate_over_objfiles_in_search_order):
226 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
227 out of lookup_symbol_aux_symtabs.
228 (lookup_symbol_aux_symtabs): Replace extracted-out code by
229 call to lookup_symbol_aux_objfile.
230 (struct global_sym_lookup_data): New type.
231 (lookup_symbol_global_iterator_cb): New function.
232 (lookup_symbol_global): Search for symbol using
233 gdbarch_iterate_over_objfiles_in_search_order and
234 lookup_symbol_global_iterator_cb.
235 * findvar.c (struct minsym_lookup_data): New type.
236 (minsym_lookup_iterator_cb): New function.
237 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
238 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
239 and minsym_lookup_iterator_cb.
241 2012-06-05 Joel Brobecker <brobecker@adacore.com>
243 Revert the following patch:
244 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
245 try locating the symbol in the symbol's own objfile first, before
246 extending the search to all objfiles.
247 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
248 out of lookup_symbol_aux_symtabs.
249 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
250 Replace extracted-out code by call to lookup_symbol_aux_objfile.
251 Do not search EXCLUDE_OBJFILE.
252 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
253 (lookup_symbol_global): Search for matches in the block's objfile
254 first, before searching all other objfiles.
256 2012-06-05 Joel Brobecker <brobecker@adacore.com>
258 * breakpoint.c (find_condition_and_thread): Stop parsing
259 as soon as the first invalid keyword is found.
261 2012-06-05 Joel Brobecker <brobecker@adacore.com>
263 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
265 2012-06-05 Joel Brobecker <brobecker@adacore.com>
267 * config/djgpp/djcheck.sh: Add copyright header.
269 2012-06-05 Joel Brobecker <brobecker@adacore.com>
271 * copyright.py (update_files, main): Fix path to update-copyright
274 2012-06-05 Joel Brobecker <brobecker@adacore.com>
276 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
277 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
278 for which a reminder to update by hand is printed.
280 2012-06-04 Doug Evans <dje@google.com>
282 * buildsym.c (make_blockvector): Add comment.
284 2012-06-04 Pedro Alves <palves@redhat.com>
286 * arch-utils.c (default_gdb_signal_from_target): Delete.
287 * arch-utils.h (default_gdb_signal_from_target): Delete.
288 * corelow.c (core_open) <signal mapping>: Extended comment. Check
289 gdbarch_gdb_signal_from_target_p.
290 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
292 * gdbarch.h: Regenerate.
293 * gdbarch.c: Regenerate.
295 2012-06-04 Pedro Alves <palves@redhat.com>
297 * gdbarch.sh (gdb_signal_from_target): Mention that the
298 implementation of the method must be host independent.
299 * gdbarch.h: Regenerate.
301 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
303 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
305 (target_read_memory_bfd): New function.
306 (symbol_file_add_from_memory): Use it.
308 2012-06-03 Doug Evans <dje@google.com>
310 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
312 (basic_lookup_transparent_type): Ditto.
314 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
315 (ALL_PRIMARY_SYMTABS): Use it.
316 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
317 * dwarf2read.c (dw2_find_symbol_file): Ditto.
318 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
319 * symtab.c (lookup_symbol_aux_objfile): Ditto.
320 (basic_lookup_transparent_type): Ditto.
322 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
324 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
325 it to optimize resolution of demangled name.
327 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
329 * configure.ac (development): Define new variable.
330 Call AC_CHECK_LIB for mcheck if $development.
331 (ERROR_ON_WARNING): Enable it by default only if $development.
332 * config.in: Regenerate.
333 * configure: Regenerate.
335 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
337 * target.c (target_read_memory): Make LEN argument as size_t.
338 * target.h (target_read_memory): Likewise.
340 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
342 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
344 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
346 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
347 BookE interface for PowerPC server processors if not available
350 2012-05-31 Keith Seitz <keiths@redhat.com>
352 * linespec.c (decode_objc): Add cleanup to free
354 (find_linespec_symbols): Add cleanup to free CLASSES.
355 * symfile.c (find_separate_debug_file_by_debuglink): Add
356 cleanup to free DEBUGLINK.
357 * ui-out.c (clear_header_list): No need to check if
358 HEADER_NEXT.COLHDR is NULL.
359 Free HEADER_NEXT.COL_NAME.
361 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
363 * ada-lang.c (standard_lookup): Prevent uninitialized variable
366 2012-05-30 Jeff Kenton <jkenton@tilera.com>
368 * configure.host (gdb_host_cpu): Handle tilegx*.
369 (gdb_host): Handle tilegx-*-linux*.
370 * tilegx-linux-nat.c: New file.
371 * config/tilegx/linux.mh: New file.
373 2012-05-30 Jeff Kenton <jkenton@tilera.com>
375 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
377 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
379 * configure.tgt: Handle tilegx-*-linux*.
380 * tilegx-tdep.h: New file.
381 * tilegx-tdep.c: New file.
382 * tilegx-linux-tdep.c: New file.
383 * regformats/reg-tilegx.dat: New file.
385 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
387 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
388 accounting of hw watchpoints on ppc.
390 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
392 * source.c (openp): Expand tilde in path entries.
394 2012-05-29 Doug Evans <dje@google.com>
396 * buildsym.c (block_compar): Fix comment.
397 (end_symtab): Fix and clarify some comments.
399 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
400 cleanup_undefined_types.
401 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
404 2012-05-29 Tom Tromey <tromey@redhat.com>
406 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
408 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
409 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
411 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
414 2012-05-29 Tristan Gingold <gingold@adacore.com>
416 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
417 (struct darwin_info): ... New struct.
418 (solib_darwin_pspace_data): New variable.
419 (darwin_pspace_data_cleanup): New function.
420 (get_darwin_info): Likewise.
421 (darwin_dyld_version_ok, darwin_load_image_infos)
422 (darwin_solib_get_all_image_info_addr_at_init)
423 (darwin_solib_read_all_image_info_addr): Add info argument.
425 (darwin_current_sos): Use per pspace structure.
426 (darwin_solib_create_inferior_hook): Likewise.
427 (darwin_clear_solib): Likewise.
428 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
430 2012-05-28 Pedro Alves <palves@redhat.com>
432 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
433 block that uses them. Clear ecss before handling each event.
435 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
437 * solib-svr4.c (svr4_current_sos): New comment on
438 svr4_current_sos_via_xfer_libraries fall back.
440 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
442 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
443 it as a fallback for TYPE_IS_OPAQUE.
444 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
445 symbols for lookup_symbol.
447 2012-05-24 John Steele Scott <toojays@toojays.net>
449 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
450 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
451 (producer_is_gxx_lt_4_6): Move the checking and caching to...
452 (check_producer): ... this new function, which also checks for ICC
453 and caches the result.
454 (producer_is_icc): New function.
455 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
458 2012-05-24 Pedro Alves <palves@redhat.com>
462 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
463 (default_gdb_signal_to_target): ... this. Add comment.
464 (default_gdb_signal_from_host): Rename to ...
465 (default_gdb_signal_from_target): ... this. Add comment.
466 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
467 (default_gdb_signal_to_target): ... this.
468 (default_gdb_signal_from_host): Rename to ...
469 (default_gdb_signal_from_target): ... this.
470 * corelow.c (core_open): Adjust to naming change. Replace comment.
471 * gdbarch.sh (gdb_signal_from_host): Rename to ...
472 (gdb_signal_from_target): ... this. Adjust to
473 default_gdb_signal_from_host naming change. Extend comment.
474 (gdb_signal_to_host): Rename to ...
475 (gdb_signal_to_target): ... this. Adjust to
476 default_gdb_signal_to_host naming change.
477 * gdbarch.h, gdbarch.c: Renegerate.
479 2012-05-24 Pedro Alves <palves@redhat.com>
483 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
485 2012-05-24 Pedro Alves <palves@redhat.com>
489 Replace target_signal with gdb_signal throughout.
491 2012-05-24 Pedro Alves <palves@redhat.com>
495 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
496 string, instead of reusing the va_list argument.
498 2012-05-24 Tom Tromey <tromey@redhat.com>
500 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
503 2012-05-23 Doug Evans <dje@google.com>
505 * symtab.c (search_symbols): Formatting fixes.
506 (print_symbol_info): Formatting fixes.
508 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
509 int64_t change to leb128 API.
510 (read_encoded_value, decode_frame_entry_1): Ditto.
511 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
512 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
513 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
514 (execute_stack_op): Ditto.
515 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
516 (safe_read_uleb128, safe_read_sleb128): Ditto.
517 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
518 (dwarf2_compile_expr_to_ax): Ditto.
519 (locexpr_describe_location_piece): Ditto.
520 (disassemble_dwarf_expression): Ditto.
521 (locexpr_describe_location_1): Ditto.
523 2012-05-23 Stan Shebs <stan@codesourcery.com>
524 Kwok Cheung Yeung <kcy@codesourcery.com>
526 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
527 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
528 (mi-cmd-info.o): New rule.
529 * osdata.h (info_osdata_command): New declaration.
530 * osdata.c (info_osdata_command): Change to non-static.
531 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
532 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
533 * mi/mi-cmd-info.c: New file.
535 2012-05-23 Doug Evans <dje@google.com>
537 * symtab.c (search_symbols): Pass NULL for file_matcher to
538 expand_symtabs_matching if there are no files to match.
540 * gdbtypes.c (lookup_typename): Simplify.
542 2012-05-23 Pedro Alves <palves@redhat.com>
544 * arch-utils.h (default_target_signal_to_host): Delete.
545 * arch-utils.c (default_target_signal_to_host): Delete.
546 * gdbarch.sh (target_signal_to_host): Remove.
547 * gdbarch.h, gdbarch.c: Regenerate.
549 2012-05-22 Doug Evans <dje@google.com>
551 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
553 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
554 (execute_cfa_program): Update to match API of leb128 functions.
555 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
557 (read_unsigned_leb128, read_signed_leb128): Delete.
558 (read_initial_length): Change type of buf argument to
560 (read_encoded_value): Update to match API of leb128 functions.
561 (decode_frame_entry): Change result to "const gdb_byte *", and
562 similarly for "start" parameter.
563 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
564 (dwarf2_build_frame_info): Change local frame_ptr to
566 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
567 read_uleb128, read_sleb128. All callers updated.
568 (safe_skip_leb128): New function.
569 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
570 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
571 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
572 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
573 read_uleb128, read_sleb128.
574 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
575 (execute_stack_op): Update to match API of leb128 functions.
576 * dwarf2expr.h: #include "leb128.h".
577 (read_uleb128, read_sleb128): Delete.
578 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
579 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
580 * dwarf2loc.c (debug_loc_kind): New enum.
581 (decode_debug_loc_addresses): New function.
582 (decode_debug_loc_dwo_addresses): New function.
583 (dwarf2_find_location_expression): Rewrite.
584 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
585 (locexpr_describe_location_piece): Ditto.
586 (disassemble_dwarf_expression): Ditto.
587 (locexpr_describe_location_1): Ditto.
588 (loclist_describe_location): Rewrite.
589 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
590 * dwarf2read.c (die_reader_specs): New member "buffer_end".
591 (dwarf2_section_buffer_overflow_complaint): Renamed from
592 dwarf2_macros_too_long_complaint. All callers updated.
593 (skip_leb128): Delete.
594 (init_cu_die_reader): Initialize reader->buffer_end.
595 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
596 (skip_form_bytes): New arg buffer_end. All callers updated.
597 Replace call to skip_leb128 with gdb_skip_leb128.
598 (skip_unknown_opcode): New arg mac_end. All callers updated.
599 (fill_in_loclist_baton): Initialize baton->from_dwo.
601 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
603 * mips-linux-nat.c (mips_linux_read_description): Use a more
604 verbose error message.
606 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
608 * NEWS: Add MIPS/Linux DSP support.
609 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
610 (SIGCONTEXT_DSPCTL): New macro.
611 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
612 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
613 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
614 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
615 (N64_SIGCONTEXT_HI3): Likewise.
616 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
617 (N64_SIGCONTEXT_LO3): Likewise.
618 (N64_SIGCONTEXT_DSPCTL): Likewise.
619 (N64_SIGCONTEXT_FPCSR): Clarify definition.
620 (mips_linux_o32_sigframe_init): Handle DSP registers.
621 (mips_linux_n32n64_sigframe_init): Likewise.
623 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
625 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
628 2012-05-22 Pedro Alves <palves@redhat.com>
630 * target.h (store_waitstatus): Move declaration ...
631 * inf-child.h (store_waitstatus): ... here.
632 * target.c: Move inclusion of gdb_wait.h, and ...
633 (store_waitstatus): ... this ...
634 * inf-child.c: ... here.
635 * linux-nat.c: Include inf-child.h.
636 * rs6000-nat.c: Include inf-child.h.
637 * spu-linux-nat.c: Include inf-child.h.
639 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
641 * tracepoint.c (start_tracing): Add missing i18n markup.
642 (stop_tracing, set_trace_user): Ditto.
643 (set_trace_notes, set_trace_stop_notes): Ditto.
645 2012-05-21 Tom Tromey <tromey@redhat.com>
648 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
650 * value.h (value_cast_pointers): Update.
651 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
652 (value_cast): Update.
653 (update_search_result): New function.
654 (do_search_struct_field): New, from search_struct_field. Check
655 for ambiguous results.
656 (search_struct_field): Rewrite.
657 * infcall.c (value_arg_coerce): Update.
658 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
660 * ada-lang.c (ada_convert_actual): Update.
662 2012-05-21 Tom Tromey <tromey@redhat.com>
664 * macroexp.c (macro_stringify): Terminate the string.
666 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
668 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
670 * auto-load.c (auto_load_expand_dir_vars): New function.
671 (auto_load_safe_path_vec_update): Use it, remove the
672 substitute_path_component call thanks to it.
673 (auto_load_objfile_script): Remove the debug_file_directory processing.
674 Use auto_load_expand_dir_vars, remove the substitute_path_component
676 * configure: Regenerate.
677 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
678 path. Escape $ also for $debugdir.
679 (--with_auto_load_safe_path): Escape $ also for $debugdir.
680 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
682 2012-05-20 Doug Evans <dje@google.com>
684 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
685 before use. Check for symtab->includes == NULL before scanning it.
687 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
689 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
691 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
693 * NEWS: Add microMIPS support and "set mips compression",
694 "show mips compression" commands.
695 * mips-tdep.h (mips_isa): New enum.
696 (gdbarch_tdep): Add mips_isa.
697 (mips_pc_is_mips16): Update prototype.
698 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
699 * mips-tdep.c (mips_compression_mips16): New variable.
700 (mips_compression_micromips): Likewise.
701 (mips_compression_strings): Likewise.
702 (mips_compression_string): Likewise.
703 (is_mips16_isa, is_micromips_isa): New functions.
704 (is_mips16_addr): Rename to...
705 (is_compact_addr): ... this.
706 (unmake_mips16_addr): Likewise to...
707 (unmake_compact_addr): ... this.
708 (make_mips16_addr): Likewise to...
709 (make_compact_addr): ... this.
710 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
712 (mips_elf_make_msymbol_special): Handle microMIPS code.
713 (msymbol_is_special): Rename to...
714 (msymbol_is_mips16): ... this.
715 (mips_make_symbol_special, mips_pc_is_mips16): Update
717 (msymbol_is_mips, msymbol_is_micromips): New functions.
718 (mips16_to_32_reg): Rename to...
719 (mips_reg3_to_reg): ... this.
720 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
721 (mips_pc_isa): Likewise.
722 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
724 (mips_fetch_instruction): Pass return status instead of printing
725 an error message if requested. Handle microMIPS code. Bail out
727 (micromips_op): New macro.
728 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
729 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
730 (b6s4_op, b7s3_reg): Likewise.
731 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
732 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
733 (mips_insn_size): New function.
734 (mips32_next_pc): Update mips_fetch_instruction call.
735 (micromips_relative_offset7): New function.
736 (micromips_relative_offset10): Likewise.
737 (micromips_relative_offset16): Likewise.
738 (micromips_pc_insn_size): Likewise.
739 (micromips_bc1_pc): Likewise.
740 (micromips_next_pc): Likewise.
741 (unpack_mips16): Update mips_fetch_instruction call.
742 (extended_mips16_next_pc): Update according to change to
744 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
746 (mips16_scan_prologue): Update mips_fetch_instruction call.
747 Update according to change to mips16_to_32_reg.
748 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
749 (mips_insn16_frame_base_sniffer): Likewise.
750 (micromips_decode_imm9): New function.
751 (micromips_scan_prologue): Likewise.
752 (mips_micro_frame_cache): Likewise.
753 (mips_micro_frame_this_id): Likewise.
754 (mips_micro_frame_prev_register): Likewise.
755 (mips_micro_frame_sniffer): Likewise.
756 (mips_micro_frame_unwind): New variable.
757 (mips_micro_frame_base_address): New function.
758 (mips_micro_frame_base): New variable.
759 (mips_micro_frame_base_sniffer): New function.
760 (mips32_scan_prologue): Update mips_fetch_instruction call.
761 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
762 rather than for MIPS16.
763 (mips_insn32_frame_base_sniffer): Likewise.
764 (mips_addr_bits_remove): Handle microMIPS code.
765 (deal_with_atomic_sequence): Rename to...
766 (mips_deal_with_atomic_sequence): ... this. Update the type
767 of the variable used to hold an instruction. Remove the ISA bit
768 check. Update mips_fetch_instruction call.
769 (micromips_deal_with_atomic_sequence): New function.
770 (deal_with_atomic_sequence): Likewise.
771 (mips_about_to_return): Handle microMIPS code. Update
772 mips_fetch_instruction call.
773 (heuristic_proc_start): Check for the standard MIPS ISA rather
774 than for MIPS16. Update mips_pc_is_mips16 and
775 mips_fetch_instruction calls. Handle microMIPS code.
776 (mips_push_dummy_code): Handle microMIPS code.
777 (mips_eabi_push_dummy_call): Likewise.
778 (mips_o32_return_value): Update mips_pc_is_mips16 call.
779 (mips_o64_push_dummy_call): Handle microMIPS code.
780 (mips_o64_return_value): Update mips_pc_is_mips16 call.
781 (is_delayed): Remove function.
782 (mips_single_step_through_delay): Replace the call to is_delayed
783 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
784 Handle microMIPS code.
785 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
787 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
789 (micromips_in_function_epilogue_p): New function.
790 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
792 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
794 (gdb_print_insn_mips): Likewise.
795 (mips_breakpoint_from_pc): Likewise.
796 (mips_remote_breakpoint_from_pc): New function.
797 (mips32_instruction_has_delay_slot): Simplify making use of the
798 updated mips_fetch_instruction interface.
799 (micromips_instruction_has_delay_slot): New function.
800 (mips16_instruction_has_delay_slot): Simplify making use of the
801 updated mips_fetch_instruction interface.
802 (mips_adjust_breakpoint_address): Check for the standard MIPS
803 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
804 calls. Handle microMIPS code.
805 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
806 (mips_skip_trampoline_code): Handle microMIPS code.
807 (global_mips_compression): New function.
808 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
809 file flags. Register the microMIPS remote breakpoint handler
810 and heuristic frame unwinder.
811 (show_mips_compression): New function.
812 (_initialize_mips_tdep): Add the "set mips compression" and
813 "show mips compression" commands.
815 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
820 * amd64-darwin-tdep.c:
821 * arm-symbian-tdep.c:
832 * dwarf2-frame-tailcall.c:
870 * python/py-finishbreakpoint.c:
871 * python/py-inferior.c:
872 * python/py-infthread.c:
906 * amd64-darwin-tdep.c:
907 * arm-symbian-tdep.c:
908 * arm-tdep.c: Delete unused variables.
910 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
912 Rename $ddir to $datadir.
913 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
914 * auto-load.c (auto_load_safe_path_vec_update)
915 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
916 * configure: Regenerate.
917 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
918 Likewise. Remove the 'use $ddir' help string.
920 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
922 * auto-load.c (show_auto_load_safe_path): Accept any combination of
923 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
925 2012-05-18 Tom Tromey <tromey@redhat.com>
928 * valprint.h (struct value_print_options) <symbol_print>: New
930 * valprint.c (user_print_options): Add default for symbol_print.
931 (show_symbol_print): New function.
932 (generic_val_print): Respect symbol_print.
933 (_initialize_valprint): Add "print symbol" setting.
934 * f-valprint.c (f_val_print): Respect symbol_print.
935 * c-valprint.c (c_val_print): Respect symbol_print.
937 * printcmd.c (print_address_symbolic): Return int. Ignore some
939 (print_address_demangle): Return int.
940 * defs.h: (print_address_symbolic): Return int.
941 * value.h (print_address_demangle): Return int.
943 2012-05-18 Tom Tromey <tromey@redhat.com>
945 * valprint.c (val_print_string): Don't print leading space.
946 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
947 print space before string or vtbl.
948 * m2-valprint.c (print_unpacked_pointer): Optionally print space
950 * jv-valprint.c (java_value_print): Print space before string.
951 * go-valprint.c (print_go_string): Print space before string.
952 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
954 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
955 space before string or vtbl.
956 * auxv.c (fprint_target_auxv): Print space after address.
958 2012-05-18 Tom Tromey <tromey@redhat.com>
960 * printcmd.c (print_address_demangle): Remove special case for 0.
962 2012-05-18 Tom Tromey <tromey@redhat.com>
964 * printcmd.c (print_address_demangle): Add 'opts' argument.
965 * p-valprint.c (pascal_val_print): Update.
966 * jv-valprint.c (java_val_print): Update.
968 * valprint.c (generic_val_print): Update.
969 (print_function_pointer_address): Add 'options' argument. Remove
970 'addressprint' argument. Update.
971 * m2-valprint.c (print_unpacked_pointer): Update.
972 * gnu-v3-abi.c (print_one_vtable): Update.
973 (gnuv3_print_method_ptr): Update.
974 * f-valprint.c (f_val_print): Update.
975 * cp-valprint.c (cp_print_value_fields): Update.
976 * valprint.h (print_function_pointer_address): Update.
977 * c-valprint.c (c_val_print): Update.
979 2012-05-18 Tom Tromey <tromey@redhat.com>
981 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
982 directly corresponding to the found psymtab.
983 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
984 (dw2_find_pc_sect_symtab): Use it.
985 * block.h (blockvector_contains_pc): Declare.
986 * block.c (find_block_in_blockvector): New function.
987 (blockvector_for_pc_sect): Use it.
988 (blockvector_contains_pc): New function.
990 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
992 * mips-tdep.h (mips_write_pc): New prototype.
993 * mips-tdep.c (mips_write_pc): Make external, add description.
994 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
997 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
999 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1001 (mips_unwind_pc, mips_write_pc): Likewise.
1002 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1005 2012-05-17 Joel Brobecker <brobecker@adacore.com>
1007 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1008 proc_warn, proc_error, proc_get_status, proc_flags,
1009 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1010 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1011 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1012 proc_stop_process, proc_wait_for_stop, proc_run_process,
1013 proc_set_traced_signals, proc_set_traced_faults,
1014 proc_set_traced_sysentry, proc_set_traced_sysexit,
1015 proc_set_held_signals, proc_get_held_signals,
1016 proc_get_traced_signals, proc_get_traced_faults,
1017 proc_get_traced_sysentry, proc_get_traced_sysexit,
1018 proc_clear_current_fault, proc_set_current_signal,
1019 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1020 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1021 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1022 proc_get_current_thread, proc_get_current_thread,
1023 proc_get_current_thread, proc_update_threads,
1024 proc_update_threads, proc_update_threads, proc_update_threads,
1025 proc_iterate_over_threads, procfs_find_new_threads,
1026 procfs_pid_to_str): Make static. Remove advance declaration.
1027 (proc_cursig): Make static. Conditionalized defintion on
1028 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1029 (proc_syscall, proc_set_kill_on_last_close,
1030 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1031 proc_get_pending_signals, proc_get_signal_actions,
1032 proc_trace_signal, proc_ignore_signal): Delete.
1034 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1036 * coffread.c (cs_section_address): Passing proper argument for
1037 `bfd_get_section_vma'.
1038 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1039 `bfd_get_section_flags'.
1040 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1041 `bfd_get_section_vma'.
1043 2012-05-16 Tom Tromey <tromey@redhat.com>
1046 * macrotab.h: (macro_define_special): Declare.
1047 (enum macro_special_kind): New.
1048 (struct macro_definition) <argc, replacement>: Update comments.
1049 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1050 (macro_define_object_internal): New function.
1051 (macro_define_object): Use it.
1052 (macro_define_special): New function.
1053 (fixup_definition): New function.
1054 (macro_lookup_definition, foreach_macro_in_scope)
1055 (foreach_macro): Use fixup_definition.
1056 * macroexp.h (macro_stringify): Declare.
1057 * macroexp.c (free_buffer_return_text): New function.
1058 (stringify): Constify "arg".
1059 (macro_stringify): New function.
1060 * dwarf2read.c (macro_start_file): Call macro_define_special.
1062 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1063 Maciej W. Rozycki <macro@mips.com>
1065 * breakpoint.h (bp_location): Add related_address member.
1066 * inferior.h (get_return_value): Take a pointer to struct value
1067 instead of struct type for the function requested.
1068 * value.h (using_struct_return): Likewise.
1069 * gdbarch.sh (return_value): Take a pointer to struct value
1070 instead of struct type for the function requested.
1071 * breakpoint.c (set_breakpoint_location_function): Initialize
1072 related_address for bp_gnu_ifunc_resolver breakpoints.
1073 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1074 requested function's address to gdbarch_return_value.
1075 * eval.c (evaluate_subexp_standard): Pass the requested
1076 function's address to using_struct_return.
1077 * infcall.c (call_function_by_hand): Pass the requested
1078 function's address to using_struct_return and
1079 gdbarch_return_value.
1080 * infcmd.c (get_return_value): Take a pointer to struct value
1081 instead of struct type for the function requested.
1082 (print_return_value): Update accordingly.
1083 (finish_command_continuation): Likewise.
1084 * stack.c (return_command): Pass the requested function's
1085 address to using_struct_return and gdbarch_return_value.
1086 * value.c (using_struct_return): Take a pointer to struct value
1087 instead of struct type for the function requested. Pass the
1088 requested function's address to gdbarch_return_value.
1089 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1090 New function_value member, replacing function_type.
1091 (bpfinishpy_dealloc): Update accordingly.
1092 (bpfinishpy_pre_stop_hook): Likewise.
1093 (bpfinishpy_init): Likewise. Record the requested function's
1095 * mips-tdep.c (mips_fval_reg): New enum.
1096 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1097 words put in GP registers.
1098 (mips_o64_push_dummy_call): Update a comment.
1099 (mips_o32_return_value): Take a pointer to struct value instead
1100 of struct type for the function requested and use it to check if
1101 using the MIPS16 calling convention. Return the designated
1102 general purpose registers for floating-point values returned in
1104 (mips_o64_return_value): Likewise.
1105 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1106 (ppc_sysv_abi_broken_return_value): Likewise.
1107 (ppc64_sysv_abi_return_value): Likewise.
1108 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1109 value instead of struct type for the function requested.
1110 * amd64-tdep.c (amd64_return_value): Likewise.
1111 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1112 * arm-tdep.c (arm_return_value): Likewise.
1113 * avr-tdep.c (avr_return_value): Likewise.
1114 * bfin-tdep.c (bfin_return_value): Likewise.
1115 * cris-tdep.c (cris_return_value): Likewise.
1116 * frv-tdep.c (frv_return_value): Likewise.
1117 * h8300-tdep.c (h8300_return_value): Likewise.
1118 (h8300h_return_value): Likewise.
1119 * hppa-tdep.c (hppa32_return_value): Likewise.
1120 (hppa64_return_value): Likewise.
1121 * i386-tdep.c (i386_return_value): Likewise.
1122 * ia64-tdep.c (ia64_return_value): Likewise.
1123 * iq2000-tdep.c (iq2000_return_value): Likewise.
1124 * lm32-tdep.c (lm32_return_value): Likewise.
1125 * m32c-tdep.c (m32c_return_value): Likewise.
1126 * m32r-tdep.c (m32r_return_value): Likewise.
1127 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1128 * m68k-tdep.c (m68k_return_value): Likewise.
1129 (m68k_svr4_return_value): Likewise.
1130 * m88k-tdep.c (m88k_return_value): Likewise.
1131 * mep-tdep.c (mep_return_value): Likewise.
1132 * microblaze-tdep.c (microblaze_return_value): Likewise.
1133 * mn10300-tdep.c (mn10300_return_value): Likewise.
1134 * moxie-tdep.c (moxie_return_value): Likewise.
1135 * mt-tdep.c (mt_return_value): Likewise.
1136 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1137 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1138 (ppc_sysv_abi_broken_return_value): Likewise.
1139 (ppc64_sysv_abi_return_value): Likewise.
1140 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1141 * rl78-tdep.c (rl78_return_value): Likewise.
1142 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1143 * rx-tdep.c (rx_return_value): Likewise.
1144 * s390-tdep.c (s390_return_value): Likewise.
1145 * score-tdep.c (score_return_value): Likewise.
1146 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1147 (sh_return_value_fpu): Likewise.
1148 * sh64-tdep.c (sh64_return_value): Likewise.
1149 * sparc-tdep.c (sparc32_return_value): Likewise.
1150 * sparc64-tdep.c (sparc64_return_value): Likewise.
1151 * spu-tdep.c (spu_return_value): Likewise.
1152 * tic6x-tdep.c (tic6x_return_value): Likewise.
1153 * v850-tdep.c (v850_return_value): Likewise.
1154 * vax-tdep.c (vax_return_value): Likewise.
1155 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1156 * xtensa-tdep.c (xtensa_return_value): Likewise.
1157 * gdbarch.c: Regenerate.
1158 * gdbarch.h: Regenerate.
1160 2012-05-15 Tom Tromey <tromey@redhat.com>
1162 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1164 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1166 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1167 of command in two error message.
1169 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1171 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1173 2012-05-15 Joel Brobecker <brobecker@adacore.com>
1175 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1177 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1179 * NEWS (show auto-load scripts-directory): Add forgotten command.
1181 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1183 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1186 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1188 * amd64-tdep.c: Include features/i386/x32.c and
1189 features/i386/x32-avx.c.
1190 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1191 initialize_tdesc_x32_avx.
1193 2012-05-14 Stan Shebs <stan@codesourcery.com>
1196 * breakpoint.h (enum bptype): New type bp_dprintf.
1197 (struct breakpoint): New field extra_string.
1198 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1199 (create_breakpoint): Add extra_string arg.
1200 * breakpoint.c (dprintf_breakpoint_ops): New.
1201 (is_breakpoint): Add bp_dprintf.
1202 (bpstat_what): Add dprintf case.
1203 (bptype_string): Ditto.
1204 (print_one_breakpoint_location): Ditto.
1205 (init_bp_location): Ditto.
1206 (bkpt_print_mention): Ditto.
1207 (dprintf_style_enums): New array.
1208 (dprintf_style): New global.
1209 (dprintf_function): New global.
1210 (dprintf_channel): New global.
1211 (update_dprintf_command_list): New function.
1212 (update_dprintf_commands): New function.
1213 (init_breakpoint_sal): Add extra_string argument, handle it.
1214 (create_breakpoint_sal): Add extra_string argument.
1215 (create_breakpoints_sal): Add extra_string argument, update callers.
1216 (find_condition_and_thread): Add extra argument.
1217 (create_breakpoint): Add extra_string argument, record it.
1218 (dprintf_command): New function.
1219 (break_command_1): Add arg to create_breakpoint call.
1220 (handle_gnu_v3_exceptions): Ditto.
1221 (trace_command): Ditto.
1222 (ftrace_command): Ditto.
1223 (strace_command): Ditto.
1224 (bkpt_print_mention): Add dprintf case.
1225 (create_breakpoint_sal_default): Add extra_string argument.
1226 (_initialize_breakpoint): Add new commands.
1227 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1228 * python/py-breakpoint.c (bppy_init): Ditto.
1229 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1231 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1233 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1235 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1237 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1240 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1242 Add a new function gdb.find_pc_line to the Python API.
1243 * NEWS (Python Scripting): Add entry about the new function.
1244 * python/python.c (gdbpy_find_pc_line): New function which
1245 implements gdb.find_pc_line.
1246 (GdbMethods): Add entry for the new function.
1248 2012-05-12 Pedro Alves <palves@redhat.com>
1250 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1251 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1253 2012-05-12 Eli Zaretskii <eliz@gnu.org>
1255 * inferior.c: Include completer.h
1256 (initialize_inferiors): Set completer of add-inferior to
1259 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1261 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1262 gdbarch_ptr_bit for x32 core dump.
1264 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1266 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1267 and features/i386/x32-avx-linux.c.
1269 2012-05-11 Stan Shebs <stan@codesourcery.com>
1270 Kwok Cheung Yeung <kcy@codesourcery.com>
1272 * NEWS: Describe new info os commands.
1273 * common/linux-osdata.c (PID_T, TIME_T): Define.
1274 (MAX_PID_T_STRLEN): New.
1275 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1277 (command_from_pid): Add comment. Change to use PID_T.
1278 (commandline_from_pid): Change to use PID_T.
1279 (user_from_pid): Add comment.
1280 (get_process_owner): Add comment. Change to use PID_T and
1282 (get_number_of_cpu_cores): Add comment.
1283 (get_cores_used_by_process): Add comment. Change to use PID_T and
1285 (linux_xfer_osdata_processes): Change to use PID_T and
1287 (compare_processes): New function.
1288 (linux_xfer_osdata_processgroups): New function.
1289 (linux_xfer_osdata_threads): Change to use PID_T.
1290 (linux_xfer_osdata_fds): New function.
1291 (format_socket_state, print_sockets): New functions.
1292 (union socket_addr): New union.
1293 (linux_xfer_osdata_isockets): New function.
1294 (time_from_time_t, group_from_gid): New functions.
1295 (linux_xfer_osdata_shm): New function.
1296 (linux_xfer_osdata_sem): New function.
1297 (linux_xfer_osdata_msg): New function.
1298 (linux_xfer_osdata_modules): New function.
1299 (osdata_table): Add new entries.
1300 * common/buffer.c (buffer_xml_printf): Add support for long and
1301 long long format specifiers.
1303 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1305 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1306 (tdesc_x32_avx_linux): Likewise.
1308 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1310 Implement multi-component --with-auto-load-dir.
1311 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1313 (--with-auto-load-safe-path): Update the default value description.
1314 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1316 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1317 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1318 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1319 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1320 "set auto-load scripts-directory".
1321 * config.in: Regenerate.
1322 * configure: Regenerate.
1323 * configure.ac (--with-auto-load-dir): New configure option.
1324 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1326 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1328 Provide $ddir substitution for --with-auto-load-safe-path.
1329 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1331 * auto-load.c: Include observer.h.
1332 (auto_load_safe_path_vec_update): Call substitute_path_component for
1333 each component. New variable ddir_subst.
1334 (auto_load_gdb_datadir_changed): New function.
1335 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1336 AUTO_LOAD_SAFE_PATH. New comment.
1337 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1338 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1339 * config.in: Regenerate.
1340 * configure: Regenerate.
1341 * configure.ac (--auto-load-safe-path): Rename
1342 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1343 GDB_DATADIR/auto-load.
1344 * defs.h (substitute_path_component): New declaration.
1345 * top.c: Include observer.h.
1346 (set_gdb_datadir): New function.
1347 (init_main): Install it for "set data-directory".
1348 * utils.c (substitute_path_component): New function.
1350 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1352 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1353 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1354 DEBUG_FILE_DIRECTORY. Handle multiple components of
1355 DEBUG_FILE_DIRECTORY.
1357 2012-05-10 Tom Tromey <tromey@redhat.com>
1359 * dwarf2read.c (recursively_write_psymbols): New function.
1360 (write_psymtabs_to_index): Use it.
1362 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1364 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1365 (load_partial_comp_unit): Update.
1366 (queue_comp_unit): Add argument 'pretend_language'.
1367 (process_queue): Update.
1368 (psymtab_to_symtab_1): Skip dependencies that have a user.
1369 (load_partial_comp_unit_reader): Give meaning to the 'data'
1371 (load_full_comp_unit): Add 'pretend_language' argument.
1372 (process_full_comp_unit): Add 'pretend_language' argument. Set
1374 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1376 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1377 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1379 (prepare_one_comp_unit): Add 'pretend_language' argument.
1381 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1382 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1383 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1384 (dw2_do_instantiate_symtab): Check whether symtab was read in
1386 (dw2_instantiate_symtab): Add assertion. Call
1387 process_cu_includes.
1388 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1389 (partial_symtab_p): New typedef.
1390 (set_partial_user): New function.
1391 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1392 (scan_partial_symbols): Add imported CU to imported_symtabs.
1393 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1394 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1395 (get_symtab, recursively_compute_inclusions)
1396 (compute_symtab_includes, process_cu_includes)
1397 (process_imported_unit_die): New functions.
1398 (process_die) <DW_TAG_imported_unit>: New case.
1399 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1401 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1403 (struct partial_die_info) <locdesc>: Remove.
1405 (process_psymtab_comp_unit): Add 'read_partial' argument.
1407 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1408 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1409 (add_partial_symbol): Update.
1410 (process_die): Handle DW_TAG_partial_unit.
1411 (read_file_scope): Update comment.
1412 (load_partial_dies): Handle DW_TAG_imported_unit.
1413 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1414 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1416 2012-05-10 Tom Tromey <tromey@redhat.com>
1418 * cc-with-dwz.sh: New file.
1420 2012-05-10 Tom Tromey <tromey@redhat.com>
1422 * symtab.h (struct symtab) <includes, user>: New fields.
1423 * block.h (struct block_iterator) <d, idx, which>: New fields.
1424 * block.c (initialize_block_iterator, find_iterator_symtab)
1425 (block_iterator_step, block_iter_name_step)
1426 (block_iter_match_step): New functions.
1427 (block_iterator_first, block_iterator_next)
1428 (block_iter_name_first, block_iter_name_next)
1429 (block_iter_match_first, block_iter_match_next): Rewrite.
1430 (get_block_symtab): New function.
1432 2012-05-10 Tom Tromey <tromey@redhat.com>
1434 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
1436 * jit.c (finalize_symtab): Use allocate_global_block,
1438 * buildsym.c (finish_block_internal): New function, from old
1440 (finish_block): Rewrite.
1441 (end_symtab): Use finish_block_internal, set_block_symtab.
1442 * block.h (struct global_block): New.
1443 (allocate_global_block, set_block_symtab): Declare.
1444 * block.c (allocate_global_block, set_block_symtab): New
1447 2012-05-10 Tom Tromey <tromey@redhat.com>
1449 * psymtab.c (partial_map_expand_apply): Add assertion.
1450 (partial_map_symtabs_matching_filename): Skip included psymtabs.
1451 (psymtab_to_symtab): Find unshared psymtab.
1452 (dump_psymtab): Print including psymtabs.
1453 (recursively_search_psymtabs): New function.
1454 (expand_symtabs_matching_via_partial): Use it.
1455 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
1457 (enum psymtab_search_status): New.
1459 2012-05-10 Tom Tromey <tromey@redhat.com>
1461 * tracepoint.c (scope_info): Update.
1462 * symtab.c (lookup_block_symbol, iterate_over_symbols)
1463 (find_pc_sect_symtab, search_symbols)
1464 (default_make_symbol_completion_list_break_on)
1465 (make_file_symbol_completion_list): Update.
1466 * symmisc.c (dump_symtab_1): Update.
1467 * stack.c (print_frame_args, iterate_over_block_locals)
1468 (print_frame_labels, iterate_over_block_arg_vars): Update.
1469 * python/py-block.c (block_object) <dict>: Remove.
1471 <iter>: Change type.
1472 (blpy_iter): Update.
1473 (blpy_block_syms_iternext): Update.
1474 * psymtab.c (map_block): Use block iterators.
1475 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
1476 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1477 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
1478 * infrun.c (check_exception_resume): Update.
1479 * cp-support.c (make_symbol_overload_list_block): Update.
1480 * coffread.c (patch_opaque_types): Update.
1481 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
1482 * block.h (struct block_iterator): New.
1483 (block_iterator_first, block_iterator_next, block_iter_name_first)
1484 (block_iter_name_next, block_iter_match_first)
1485 (block_iter_match_next): Declare.
1486 (ALL_BLOCK_SYMBOLS): Redefine.
1487 * block.c (block_iterator_first, block_iterator_next)
1488 (block_iter_name_first, block_iter_name_next)
1489 (block_iter_match_first, block_iter_match_next): New functions.
1490 * ada-lang.c (ada_add_block_symbols)
1491 (ada_make_symbol_completion_list): Use block iterator.
1493 2012-05-10 Tom Tromey <tromey@redhat.com>
1495 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
1496 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
1497 (lookup_partial_symbol, find_last_source_symtab_from_partial)
1498 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
1499 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
1502 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1504 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
1505 print-file-var-lib2.c, print-file-var-main.c and
1506 print-file-var.exp (located in gdb/testsuite/gdb.base).
1508 2012-05-10 Joel Brobecker <brobecker@adacore.com>
1510 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1511 try locating the symbol in the symbol's own objfile first, before
1512 extending the search to all objfiles.
1513 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1514 out of lookup_symbol_aux_symtabs.
1515 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
1516 Replace extracted-out code by call to lookup_symbol_aux_objfile.
1517 Do not search EXCLUDE_OBJFILE.
1518 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
1519 (lookup_symbol_global): Search for matches in the block's objfile
1520 first, before searching all other objfiles.
1522 2012-05-10 Tristan Gingold <gingold@adacore.com>
1524 * printcmd.c (set_command): Add pre/post inc/dec.
1526 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
1528 * gdb.1: Document -ex option.
1530 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1532 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
1533 * inferior.h (AT_SYMBOL): Delete.
1535 2012-05-09 Joel Brobecker <brobecker@adacore.com>
1537 * mips-tdep.c (mips_push_dummy_code): New function.
1538 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
1539 ON_STACK and install mips_push_dummy_code as our gdbarch
1540 push_dummy_code routine.
1542 2012-05-09 Pedro Alves <palves@redhat.com>
1544 * target.c (set_maintenance_target_async_permitted): Rename to ...
1545 (set_target_async_command): ... this.
1546 (show_maintenance_target_async_permitted): Rename to ...
1547 (show_target_async_command): ... this.
1548 (initialize_targets): Adjust.
1550 2012-05-08 Doug Evans <dje@google.com>
1552 * go-exp.y (classify_name): Add missing assignment of fields of
1555 2012-05-08 Eli Zaretskii <eliz@gnu.org>
1557 Display the ">" prompt in interactive mode while reading canned
1558 commands, even when the current interpreter is MI.
1560 * interps.c (interp_set_temp): New function.
1562 * interps.h (interp_set_temp): Add prototype.
1564 * cli/cli-script.c (restore_interp): New cleanup function.
1565 (read_command_lines): Temporarily override the current interpreter
1566 with CLI and arrange for restoring the original one.
1568 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
1570 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
1572 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
1574 * probe.c (parse_probes): Move conditional to check for
1575 debuginfo files from here...
1576 * stap-probe.c (stap_get_probes): ... to here.
1578 2012-05-07 Mark Kettenis <kettenis@gnu.org>
1579 H.J. Lu <hongjiu.lu@intel.com>
1581 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
1582 `movl %esp, %ebp' for the X32 ABI.
1584 2012-05-07 Tom Tromey <tromey@redhat.com>
1586 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
1588 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
1589 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
1590 (dwarf_stack_op_name): Remove.
1591 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
1592 (decode_locdesc): Use get_DW_OP_name.
1593 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
1594 (dwarf2_compile_expr_to_ax): Likewise.
1595 (disassemble_dwarf_expression): Likewise.
1596 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
1598 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
1600 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
1601 (sh_linux_sigtramp_cache): New function.
1602 (sh_linux_sigreturn_init): New function.
1603 (sh_linux_rt_sigreturn_init): New function.
1604 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
1606 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
1608 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
1609 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
1610 (sh_linux_init_abi): Add init calls to register new tramp_frame
1611 definitions under 32-bit SH, update comments.
1613 2012-05-07 Pedro Alves <palves@redhat.com>
1617 * amd64-linux-tdep.c: Include glibc-tdep.h.
1618 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
1619 gdbarch_skip_solib_resolver callback.
1621 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1623 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
1624 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
1625 (show_auto_load_safe_path): Check any-directory by comparison with "/".
1626 (add_auto_load_safe_path): Change the error message.
1627 (_initialize_auto_load): Change the "safe-path" help text.
1628 * configure: Regenerate
1629 * configure.ac (--without-auto-load-safe-path): Set
1630 WITH_AUTO_LOAD_SAFE_PATH to /.
1632 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
1634 * stap-probe.h: Do not include unecessary `probe.h'.
1636 2012-05-05 Alan Modra <amodra@gmail.com>
1638 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
1639 bfd_und_section_ptr.
1640 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
1641 and bfd_com_section_ptr.
1643 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1645 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
1647 2012-05-04 Joel Brobecker <brobecker@adacore.com>
1649 * windows-nat.h (segment_register_p_ftype): New typedef.
1650 (windows_set_segment_register_p): Add declaration.
1651 * windows-nat.c (segment_register_p): New static global.
1652 (windows_set_segment_register_p): New function.
1653 (do_windows_fetch_inferior_registers): Add special handling
1654 for segment registers.
1655 * amd64-windows-nat.c: #include "amd64-tdep.h".
1656 (amd64_windows_segment_register_p): New function.
1657 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
1658 * i386-windows-nat.c: #include "i386-tdep.h".
1659 (i386_windows_segment_register_p): New function.
1660 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
1662 2012-05-04 Tristan Gingold <gingold@adacore.com>
1664 * printcmd.c (set_command): Emit a warning if the expression is not
1667 2012-05-03 Joel Brobecker <brobecker@adacore.com>
1669 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
1672 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
1674 * stap-probe.c (stap_is_operator): Change declaration.
1675 (stap_get_opcode): Change return value.
1676 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
1677 `stap_parse_argument_1'.
1679 2012-05-03 Pedro Alves <pedro@codesourcery.com>
1681 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
1684 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
1686 Add two new methods global_block and static_block to gdb.Symtab
1688 * NEWS (Python scripting): Add entry about the new methods.
1689 * python/py-symtab.c (stpy_global_block): New function which
1690 implements the gdb.Symtab.global_block() method.
1691 (stpy_static_block): New function which implements the
1692 gdb.Symtab.static_block() method.
1693 (symtab_object_methods): Add entries for the two new methods.
1695 2012-05-03 Doug Evans <dje@google.com>
1697 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
1700 2012-05-03 Yao Qi <yao@codesourcery.com>
1702 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
1704 (i386_process_record): Ditto.
1706 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1708 * infcall.c (unwind_on_signal_p): Make static.
1710 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1712 * sol-thread.c (solaris_pid_to_str): Make static.
1713 (_initialize_sol_thread): Add prototype.
1715 2012-05-02 Joel Brobecker <brobecker@adacore.com>
1717 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
1719 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
1721 * MAINTAINERS: Remove myself.
1723 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1725 Fix --without-auto-load-safe-path for MS-Windows host platform.
1726 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
1728 2012-05-02 Eli Zaretskii <eliz@gnu.org>
1730 * gdb_curses.h: Undefine KEY_EVENT before including curses
1731 headers. Move "#undef MOUSE_MOVED" before any curses header
1734 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1736 * features/i386/i386-mmx-linux.c: Regenerate.
1737 * features/rs6000/powerpc-32.c: Likewise.
1738 * features/rs6000/powerpc-32l.c: Likewise.
1739 * features/rs6000/powerpc-403.c: Likewise.
1740 * features/rs6000/powerpc-403gc.c: Likewise.
1741 * features/rs6000/powerpc-405.c: Likewise.
1742 * features/rs6000/powerpc-505.c: Likewise.
1743 * features/rs6000/powerpc-601.c: Likewise.
1744 * features/rs6000/powerpc-602.c: Likewise.
1745 * features/rs6000/powerpc-603.c: Likewise.
1746 * features/rs6000/powerpc-604.c: Likewise.
1747 * features/rs6000/powerpc-64.c: Likewise.
1748 * features/rs6000/powerpc-64l.c: Likewise.
1749 * features/rs6000/powerpc-750.c: Likewise.
1750 * features/rs6000/powerpc-860.c: Likewise.
1751 * features/rs6000/powerpc-e500.c: Likewise.
1752 * features/rs6000/powerpc-e500l.c: Likewise.
1753 * features/rs6000/powerpc-isa205-32l.c: Likewise.
1754 * features/rs6000/powerpc-isa205-64l.c: Likewise.
1755 * features/rs6000/rs6000.c: Likewise.
1757 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1759 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
1761 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
1762 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
1763 (stap_parse_argument) <e>: Likewise.
1764 (handle_stap_probe) <byte_order>: Likewise.
1766 2012-04-30 Doug Evans <dje@google.com>
1768 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
1769 init_and_read_dies_worker. All callers updated.
1770 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
1771 replaced with init_cutu_and_read_dies.
1772 (load_partial_comp_unit): Pass 1 for use_existing_cu.
1773 (find_partial_die): Remove FIXME. Don't free current CU.
1775 2012-04-30 Sterling Augustine <saugustine@google.com>
1777 * contrib: New directory.
1778 * contrib/test_pubnames_and_indexes.py: New file.
1780 2012-04-30 Doug Evans <dje@google.com>
1782 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
1783 All callers updated.
1784 (init_cu_die_reader): Verify the section is non-empty.
1785 (dwarf_decode_line_header): Don't dereference section->asection
1786 until we know the section is present.
1788 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
1790 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
1793 2012-04-29 Yao Qi <yao@codesourcery.com>
1795 * gdb-code-style.el: New hook gdb-markup-hook
1796 and gdb-comment-hook.
1798 2012-04-28 Doug Evans <dje@google.com>
1800 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
1801 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
1803 * symfile.h (dwarf2_debug_sections): New member addr.
1804 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
1805 (ctx_no_get_addr_index): New function.
1806 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
1807 (ctx_no_get_addr_index): Declare.
1808 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
1809 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
1810 (dwarf_expr_ctx_funcs): Update.
1811 (needs_get_addr_index): New function.
1812 (needs_frame_ctx_funcs): Update.
1813 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
1814 * dwarf2read.c: #include "gdbcore.h".
1815 (dwarf2_per_objfile): New members addr, dwo_files.
1816 (dwarf2_elf_names): Add entry for addr.
1817 (struct dwo_section_names): New type.
1818 (dwo_section_names): New static global.
1819 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
1820 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
1821 old debug_types_section member updated to use this.
1822 Rename member debug_types_section to info_or_types_section,
1824 (signatured_type): Rename member type_offset to type_offset_in_tu,
1825 all uses updated. New member type_offset_in_section.
1826 (struct dwo_sections): New type.
1827 (struct dwo_unit): New type.
1828 (struct dwo_file): New type.
1829 (die_reader_specs): New member dwo_file.
1830 (dwarf2_locate_sections): Watch for .debug_addr.
1831 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
1832 (dwarf2_read_section): Get bfd of section from bfd's asection,
1834 (create_cus_from_index): Initialize the_cu->info_or_types_section.
1835 (create_signatured_type_table_from_index): Initialize
1836 sig_type->info_or_types_section.
1837 (dw2_get_file_names): Statement lists for type units with DWO files
1838 live in the DWO file.
1839 (create_debug_types_hash_table): New function.
1840 (create_all_type_units): Rewrite.
1841 (init_cu_die_reader): New arg dwo_file, all callers updated.
1842 (init_and_read_dies_worker): Get section from
1843 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
1844 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
1845 continue reading the CU/TU from there.
1846 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
1847 updated. Get section from this_cu->info_or_types_section.
1848 (create_all_comp_units): Initialize this_cu->info_or_types_section.
1849 (skip_one_die): New cases DW_FORM_GNU_addr_index,
1850 DW_FORM_GNU_str_index.
1851 (hash_dwo_file, eq_dwo_file): New functions.
1852 (allocate_dwo_file_hash_table): New function.
1853 (hash_dwo_unit, eq_dwo_unit): New functions.
1854 (allocate_dwo_unit_table): New function.
1855 (dwarf2_locate_dwo_sections): New function.
1856 (struct create_dwo_info_table_data): New type.
1857 (create_debug_info_hash_table_reader): New function.
1858 (create_debug_info_hash_table): New function.
1859 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
1860 (lookup_dwo_file): New function.
1861 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
1862 (free_dwo_file, free_dwo_file_cleanup): New functions.
1863 (free_dwo_file_from_slot, free_dwo_files): New functions.
1864 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
1865 (dwarf2_record_block_ranges): Ditto.
1866 (read_partial_die): Ditto.
1867 (process_enumeration_scope): Update to use type_offset_in_section.
1868 (read_full_die_1): New function.
1869 (read_full_die): Rewrite.
1870 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
1871 DW_FORM_GNU_str_index.
1872 (read_addr_index_1, read_addr_index): New functions.
1873 (read_addr_index_from_leb128): New function.
1874 (struct dwarf2_read_addr_index_data): New type.
1875 (dwarf2_read_addr_index_reader): New function.
1876 (dwarf2_read_addr_index): New function.
1877 (read_str_index): New function.
1878 (leb128_size): New function.
1879 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
1880 If processing a type unit from a DWO file, get the line section
1882 (var_decode_location): Watch for DW_OP_GNU_addr_index.
1883 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
1884 DW_FORM_GNU_str_index.
1885 (lookup_die_type): Check whether section offset of type's die is
1886 known before looking it up. Remove assert. Condition can
1887 legimately happen for inter-cu type references.
1888 (dwarf_attr_name): Handle Fission attributes.
1889 (dwarf_form_name): Handle Fission forms.
1890 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
1891 DW_FORM_GNU_str_index.
1892 (follow_die_sig): Update to use type_offset_in_section.
1893 (decode_locdesc): New case DW_OP_GNU_addr_index.
1894 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
1895 DW_FORM_GNU_str_index.
1896 (cu_debug_loc_section): New function.
1897 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
1898 (dwarf2_per_objfile_free): Unmap .debug_addr section.
1899 Free DWO files if present.
1900 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
1902 Refactor DIE reading.
1903 * dwarf2read.c (dwarf2_per_objfile): Replace members
1904 debug_info_type_hash and debug_types_type_hash with die_type_hash.
1905 (die_reader_specs): New member "die_section". Temporarily make
1906 member "buffer" non-const, pending constifying all info_ptr uses.
1907 (die_reader_func_ftype): New typedef.
1908 (dw2_get_file_names_reader): New function.
1909 (dw2_get_file_names): Rewrite.
1910 (read_and_check_type_unit_head): Rename arg type_offset to
1912 (create_all_type_units): Improve debugging message.
1913 Improve dummy type unit check.
1914 (init_cu_die_reader): New arg "section". All callers updated.
1915 (init_and_read_dies_worker): New function.
1916 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
1917 (init_cutu_and_read_dies_no_follow): New function.
1918 (init_cutu_and_read_dies_simple): New function.
1919 (process_psymtab_comp_unit_reader): New function.
1920 (process_psymtab_comp_unit): Delete args section,
1921 is_debug_types_section. Rewrite. All callers updated.
1922 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
1923 All callers updated. Rewrite.
1924 (load_partial_comp_unit_reader): New function.
1925 (load_partial_comp_unit): Rewrite.
1926 (skip_children): New arg reader. Delete args buffer, cu.
1927 All callers updated.
1928 (skip_one_die): New arg reader. Delete args buffer, cu.
1929 All callers updated.
1930 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
1931 All callers updated.
1932 (load_full_comp_unit_reader): New function.
1933 (load_full_comp_unit): Rewrite.
1934 (read_comp_unit): Delete.
1935 (read_die_and_children_1): Delete, contents moved ...
1936 (read_die_and_children): ... here.
1937 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
1938 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
1939 All callers updated.
1940 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
1941 All callers updated.
1942 (find_partial_die): Rewrite load_all_dies support.
1943 (read_attribute_value): New arg reader. Delete args abfd, cu.
1944 All callers updated.
1945 (read_attribute): New arg reader. Delete args abfd, cu.
1946 All callers updated.
1947 (load_full_type_unit): Add assert.
1948 (read_signatured_type_reader): New function.
1949 (read_signatured_type): Rewrite.
1950 (free_stack_comp_unit): Remove call to age_cached_comp_units.
1951 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
1952 All callers updated. Set per_cu->cu = NULL after freeing it.
1953 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
1954 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
1955 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
1956 (set_die_type): Update.
1957 (get_die_type_at_offset): Update.
1958 (read_file_scope): Call prepare_one_comp_unit.
1959 (read_type_unit_scope): Ditto.
1960 (prepare_one_comp_unit): Set producer if present.
1962 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
1964 * probe.c (compile_rx_or_error): Silence ARI warning about missing
1965 gettext function on `error'.
1967 2012-04-27 Doug Evans <dje@google.com>
1969 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
1972 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1973 Tom Tromey <tromey@redhat.com>
1975 * breakpoint.c (struct breakpoint_objfile_data)
1976 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
1977 <exception_probes>: New fields.
1978 (free_breakpoint_probes): New function.
1979 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
1980 `_Unwind_DebugHook'.
1981 (create_exception_master_breakpoint): Likewise.
1982 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
1983 * infrun.c: Including necessary header files for handling SystemTap
1985 (handle_inferior_event): Handling longjmp breakpoint and exceptions
1986 via SystemTap probes.
1987 (check_exception_resume): Remove `func' argument. Handle exception
1988 unwinding breakpoint set via a SystemTap probe.
1989 (insert_exception_resume_from_probe): New function.
1991 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1992 Tom Tromey <tromey@redhat.com>
1993 Jan Kratochvil <jan.kratochvil@redhat.com>
1995 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
1996 (COMMON_OBS): Likewise.
1997 (HFILES_NO_SRCDIR): Add `probe'.
1998 * NEWS: Mention support for static and SystemTap probes.
1999 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2000 SystemTap probes' arguments parser.
2001 * arm-linux-tdep.c: Including headers needed to perform the parsing
2002 of SystemTap probes' arguments.
2003 (arm_stap_is_single_operand): New function.
2004 (arm_stap_parse_special_token): Likewise.
2005 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2006 probes' arguments parser.
2007 * ax-gdb.c (require_rvalue): Removing static declaration.
2008 (gen_expr): Likewise.
2009 * ax-gdb.h (gen_expr): Declaring function.
2010 (require_rvalue): Likewise.
2011 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2012 (bkpt_probe_breakpoint_ops): New variable.
2013 (momentary_breakpoint_from_master): Set the `probe' value.
2014 (add_location_to_breakpoint): Likewise.
2015 (break_command_1): Using proper breakpoint_ops according to the
2016 argument passed by the user in the command line.
2017 (bkpt_probe_insert_location): New function.
2018 (bkpt_probe_remove_location): Likewise.
2019 (bkpt_probe_create_sals_from_address): Likewise.
2020 (bkpt_probe_decode_linespec): Likewise.
2021 (tracepoint_probe_create_sals_from_address): Likewise.
2022 (tracepoint_probe_decode_linespec): Likewise.
2023 (tracepoint_probe_breakpoint_ops): New variable.
2024 (trace_command): Using proper breakpoint_ops according to the
2025 argument passed by the user in the command line.
2026 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2027 static probes on breakpoints and tracepoints.
2028 * breakpoint.h (struct bp_location) <probe>: New field.
2029 * cli-utils.c (skip_spaces_const): New function.
2030 (extract_arg): Likewise.
2031 * cli-utils.h (skip_spaces_const): Likewise.
2032 (extract_arg): Likewise.
2033 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2034 * configure.ac: Append `stap-probe.o' to be generated when ELF
2036 * configure: Regenerate.
2037 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2038 * elfread.c: Include `probe.h' and `arch-utils.h'.
2039 (probe_key): New variable.
2040 (elf_get_probes): New function.
2041 (elf_get_probe_argument_count): Likewise.
2042 (elf_evaluate_probe_argument): Likewise.
2043 (elf_compile_to_ax): Likewise.
2044 (elf_symfile_relocate_probe): Likewise.
2045 (stap_probe_key_free): Likewise.
2046 (elf_probe_fns): New variable.
2047 (elf_sym_fns): Add `sym_probe_fns' value.
2048 (elf_sym_fns_lazy_psyms): Likewise.
2049 (elf_sym_fns_gdb_index): Likewise.
2050 (_initialize_elfread): Initialize objfile cache for static
2052 * gdb_vecs.h (struct probe): New forward declaration.
2053 (probe_p): New VEC declaration.
2054 * gdbarch.c: Regenerate.
2055 * gdbarch.h: Regenerate.
2056 * gdbarch.sh (stap_integer_prefix): New variable.
2057 (stap_integer_suffix): Likewise.
2058 (stap_register_prefix): Likewise.
2059 (stap_register_suffix): Likewise.
2060 (stap_register_indirection_prefix): Likewise.
2061 (stap_register_indirection_suffix): Likewise.
2062 (stap_gdb_register_prefix): Likewise.
2063 (stap_gdb_register_suffix): Likewise.
2064 (stap_is_single_operand): New function.
2065 (stap_parse_special_token): Likewise.
2066 (struct stap_parse_info): Forward declaration.
2067 * i386-tdep.c: Including headers needed to perform the parsing
2068 of SystemTap probes' arguments.
2069 (i386_stap_is_single_operand): New function.
2070 (i386_stap_parse_special_token): Likewise.
2071 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2072 probes' arguments parser.
2073 * i386-tdep.h (i386_stap_is_single_operand): New function.
2074 (i386_stap_parse_special_token): Likewise.
2075 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2076 * mipsread.c (ecoff_sym_fns): Likewise.
2077 * objfiles.c (objfile_relocate1): Support relocation for static
2079 * parse.c (prefixify_expression): Remove static declaration.
2080 (initialize_expout): Likewise.
2081 (reallocate_expout): Likewise.
2082 * parser-defs.h (initialize_expout): Declare function.
2083 (reallocate_expout): Likewise.
2084 (prefixify_expression): Likewise.
2085 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2086 of SystemTap probes' arguments.
2087 (ppc_stap_is_single_operand): New function.
2088 (ppc_stap_parse_special_token): Likewise.
2089 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2090 probes' arguments parser.
2091 * probe.c: New file, for generic statically defined probe support.
2092 * probe.h: Likewise.
2093 * s390-tdep.c: Including headers needed to perform the parsing of
2094 SystemTap probes' arguments.
2095 (s390_stap_is_single_operand): New function.
2096 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2097 probes' arguments parser.
2098 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2099 * stap-probe.c: New file, for SystemTap probe support.
2100 * stap-probe.h: Likewise.
2101 * symfile.h: Include `gdb_vecs.h'.
2102 (struct sym_probe_fns): New struct.
2103 (struct sym_fns) <sym_probe_fns>: New field.
2104 * symtab.c (init_sal): Initialize `probe' field.
2105 * symtab.h (struct probe): Forward declaration.
2106 (struct symtab_and_line) <probe>: New field.
2107 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2109 (stop_tracing): Likewise.
2110 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2112 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2113 Tom Tromey <tromey@redhat.com>
2115 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2116 and to compile agent expressions.
2117 * infrun.c (siginfo_make_value): New argument `ignore'.
2118 (siginfo_funcs): New struct.
2119 (_initialize_infrun): New argument when calling
2120 `create_internalvar_type_lazy'.
2121 * thread.c (thread_id_make_value): New argument `ignore'.
2122 (thread_funcs): New struct.
2123 (_initialize_thread): New argument when calling
2124 `create_internalvar_type_lazy'.
2125 * tracepoint.c (sdata_make_value): New argument `ignore'.
2126 (sdata_funcs): New struct.
2127 (_initialize_tracepoint): New argument when calling
2128 `create_internalvar_type_lazy'.
2129 * value.c (make_value): New struct.
2130 (create_internalvar_type_lazy): New argument `data'.
2131 (compile_internalvar_to_ax): New function.
2132 (value_of_internalvar): Properly handling `make_value' case.
2133 (clear_internalvar): Likewise.
2134 (show_convenience): Adding `TRY_CATCH' block.
2135 * value.h (internalvar_make_value): Delete, replace by...
2136 (struct internalvar_funcs): ... this.
2137 (create_internalvar_type_lazy) <fun>: Delete argument.
2138 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2139 (compile_internalvar_to_ax): New function.
2140 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2141 (tlb_funcs): New struct.
2142 (_initialize_windows_tdep): New argument when calling
2143 `create_internalvar_type_lazy'.
2145 2012-04-27 Mark Wielaard <mjw@redhat.com>
2147 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2148 see whether it is an address or a constant offset from DW_AT_low_pc.
2149 (dwarf2_record_block_ranges): Likewise.
2150 (read_partial_die): Likewise.
2152 2012-04-26 Mark Wielaard <mjw@redhat.com>
2154 * MAINTAINERS (Write After Approval): Add myself to the list.
2156 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2158 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2159 (proc_prettyprint_signal): Likewise.
2160 (proc_prettyprint_faultset): Likewise.
2161 (proc_prettyprint_fault): Likewise.
2162 (proc_prettyprint_actionset): Likewise.
2163 (proc_prettyprint_flags): Move to new proc-flags.c section.
2164 (proc_prettyfprint_flags): New prototype.
2165 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2166 (proc_syscall, proc_cursig): Likewise.
2167 (proc_set_kill_on_last_close): Likewise.
2168 (proc_unset_kill_on_last_close): Likewise.
2169 (proc_set_watchpoint): Make static.
2170 (proc_delete_dead_threads): Likewise.
2171 (procfs_set_watchpoint): Likewise.
2172 (_initialize_procfs): Add prototype.
2173 * proc-events.c: Include proc-utils.h.
2174 (init_syscall_table): Make static.
2175 * proc-api.c (_initialize_proc_api): Add prototype.
2176 * proc-flags.c: Include proc-utils.h.
2178 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2180 * configure.ac: Add AC_ARG_PROGRAM.
2181 * configure: Regenerate.
2183 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2185 Fix DW_AT_lower_bound defaults for DWARF-4+.
2186 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2187 high. New variable low_default_is_valid. Implement DWARF-4+
2188 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2189 no default by the DWARF standard.
2191 2012-04-26 Maciej W. Rozycki <macro@mips.com>
2192 Maciej W. Rozycki <macro@codesourcery.com>
2194 * infrun.c (handle_inferior_event): Move the check for return
2195 trampolines ahead of the check for function trampolines.
2196 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2197 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2198 (mips_str_mips16_ret_stub): Likewise.
2199 (mips_str_call_fp_stub): Likewise.
2200 (mips_str_call_stub): Likewise.
2201 (mips_str_fn_stub): Likewise.
2202 (mips_str_pic): Likewise.
2203 (mips_in_frame_stub): New function.
2204 (mips_unwind_pc): Return the return address rather than the PC
2205 if the PC of an intermediate frame is inside a call thunk.
2206 (mips_is_stub_suffix): New function.
2207 (mips_is_stub_mode): Likewise.
2208 (mips_get_mips16_fn_stub_pc): Likewise.
2209 (mips_skip_mips16_trampoline_code): Update to handle all the
2210 currently generated stub types. Don't recurse into __fn_stub
2211 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2212 Use cooked register accesses.
2213 (mips_in_return_stub): Reintroduce function.
2214 (mips_skip_trampoline_code): Traverse trampolines recursively.
2215 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2217 2012-04-26 Joel Brobecker <brobecker@adacore.com>
2221 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2223 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2224 * features/arm-with-m-vfp-d16.xml: New file. Describes
2225 Cortex-M with VFPv4-sp-d16 FPU register layout.
2226 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2227 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2228 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2229 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2230 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2232 2012-04-25 Doug Evans <dje@google.com>
2234 * cli/cli-decode.c (print_doc_line): Use stream instead of
2237 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2239 * features/arm-with-iwmmxt.c: Regenerate.
2240 * features/arm-with-m-fpa-layout.c: Likewise.
2241 * features/arm-with-m.c: Likewise.
2242 * features/arm-with-neon.c: Likewise.
2243 * features/arm-with-vfpv2.c: Likewise.
2244 * features/arm-with-vfpv3.c: Likewise.
2245 * features/mips-dsp-linux.c: Likewise.
2246 * features/mips-linux.c: Likewise.
2247 * features/mips64-dsp-linux.c: Likewise.
2248 * features/mips64-linux.c: Likewise.
2249 * features/s390-linux32.c: Likewise.
2250 * features/s390-linux32v1.c: Likewise.
2251 * features/s390-linux32v2.c: Likewise.
2252 * features/s390-linux64.c: Likewise.
2253 * features/s390-linux64v1.c: Likewise.
2254 * features/s390-linux64v2.c: Likewise.
2255 * features/s390x-linux64.c: Likewise.
2256 * features/s390x-linux64v1.c: Likewise.
2257 * features/s390x-linux64v2.c: Likewise.
2258 * features/tic6x-c62x-linux.c: Likewise.
2259 * features/tic6x-c62x.c: Likewise.
2260 * features/tic6x-c64x-linux.c: Likewise.
2261 * features/tic6x-c64x.c: Likewise.
2262 * features/tic6x-c64xp-linux.c: Likewise.
2263 * features/tic6x-c64xp.c: Likewise.
2264 * target-descriptions.c: Only generate `field_type' and `type'
2265 variables when needed.
2267 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2269 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2271 2012-04-25 Doug Evans <dje@google.com>
2273 Initial pass at Go language support.
2275 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2277 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2278 (YYFILES): Add go-exp.c.
2279 (YYOBJ): Add go-exp.o.
2280 (local-maintainer-clean): Delete go-exp.c.
2281 * defs.h (enum language): Add language_go.
2282 * dwarf2read.c: #include "go-lang.h".
2283 (fixup_go_packaging): New function.
2284 (process_full_comp_unit): Call it when processing Go CUs.
2285 (dwarf2_physname): Add Go support.
2286 (read_file_scope): Handle missing language spec for GNU Go.
2287 (set_cu_language): Handle DW_LANG_Go.
2288 * go-exp.y: New file.
2289 * go-lang.h: New file.
2290 * go-lang.c: New file.
2291 * go-typeprint.c: New file.
2292 * go-valprint.c: New file.
2293 * symtab.c: #include "go-lang.h".
2294 (symbol_set_language): Handle language_go.
2295 (symbol_find_demangled_name, symbol_set_names): Ditto.
2296 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2298 2012-04-24 Jim Meyering <meyering@redhat.com>
2300 avoid a few strncpy-induced buffer overruns
2301 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2302 fname and psargs before trying to concatenate.
2303 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2304 "name" before applying strchr.
2306 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2308 * CONTRIBUTE: Use unified diff instead of context diff when
2311 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2313 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2314 code. Handle JR.HB correctly.
2316 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2319 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2320 with the other MIPS16 helpers.
2322 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2324 * observer.sh: Conditionally declare `args', thus cleaning up
2325 unused instances of this variable.
2327 2012-04-24 Yao Qi <yao@codesourcery.com>
2329 Revert this patch to allow breakpoint always-inserted
2331 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2332 * breakpoint.c: Include record.h.
2333 (breakpoints_always_inserted_mode): Return false when the record
2336 * breakpoint.c (iterate_over_bp_locations): New.
2337 * breakpoint.h: Declare.
2338 New typedef walk_bp_location_callback.
2339 * record.c (record_open): Call record_init_record_breakpoints.
2340 (record_sync_record_breakpoints): New.
2341 (record_init_record_breakpoints): New.
2342 * NEWS: Mention supporting breakpoint always-inserted mode in
2345 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2347 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2350 2012-04-24 Yao Qi <yao@codesourcery.com>
2352 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2353 (is_catchpoint): ... it.
2354 (print_one_breakpoint_location): Caller update.
2355 * breakpoint.h: Update declaration.
2357 2012-04-23 David S. Miller <davem@davemloft.net>
2359 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2361 2012-04-23 Tom Tromey <tromey@redhat.com>
2363 * buildsym.c (add_free_pendings): Remove.
2364 * buildsym.h (add_free_pendings): Remove.
2366 2012-04-23 Doug Evans <dje@google.com>
2368 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2369 attr.u.unsnd instead of attr.u.addr.
2370 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2371 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2373 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2374 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2376 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2378 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
2380 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2381 (mips_o32_return_value): Likewise.
2382 (mips_o64_return_value): Likewise.
2384 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
2386 * ada-lang.c (ada_evaluate_subexp): Add cases for
2387 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2388 their treatment in eval.c.
2390 2012-04-21 David S. Miller <davem@davemloft.net>
2392 * sparc-tdep.c (X_DISP10): Define.
2393 (sparc_analyze_control_transfer): Handle compare-and-branch.
2395 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
2397 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2398 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2400 2012-04-20 Nigel Stephens <nigel@mips.com>
2401 Maciej W. Rozycki <macro@codesourcery.com>
2403 * mips-tdep.c (mips_float_register_p): New function.
2404 (mips_convert_register_float_case_p): Use mips_float_register_p.
2405 (mips_register_type): Likewise.
2406 (mips_print_register): Likewise.
2407 (print_gp_register_row): Likewise.
2408 (mips_print_registers_info): Likewise.
2410 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
2412 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2415 2012-04-20 Andrew Pinski <apinski@cavium.com>
2417 * MAINTAINERS (Write After Approval): Add myself to the list.
2419 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2421 * MAINTAINERS: Update my e-mail address.
2423 2012-04-20 Pedro Alves <palves@redhat.com>
2425 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
2427 * configure: Regenerate.
2429 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2431 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
2433 * gdb_vecs.h: Declare `const_char_ptr' VEC.
2435 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2437 Fix compilation compatibility with python-2.4
2438 * python/py-type.c (convert_field): Cast ADDRSTRING for
2439 PyObject_SetAttrString as non-const. New comment.
2441 2012-04-19 Tom Tromey <tromey@redhat.com>
2443 * top.c (quit_target): Use all_cleanups.
2444 * main.c (captured_command_loop): Use all_cleanups.
2445 * exceptions.c (throw_exception): Use all_cleanups.
2447 2012-04-19 Pedro Alves <palves@redhat.com>
2449 * Makefile.in (GNULIB_BUILDDIR): New.
2450 (LIBGNU, INCGNU, GNULIB_H): Adjust.
2451 (SUBDIRS): Add $(GNULIB_BUILDDIR).
2452 (CLEANDIRS). Remove gnulib/import.
2453 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
2455 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
2456 (gnulib/import/Makefile): Replace gnulib/import with
2457 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
2458 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
2459 (aclocal_m4_deps): Remove the gnulib dependencies. Add
2460 acx_configure_dir.m4.
2461 * acinclude.m4: Include acx_configure_dir.m4.
2462 * acx_configure_dir.m4: New file.
2463 * aclocal.m4: Regenerate.
2464 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
2465 calls. Configure gnulib using ACX_CONFIGURE_DIR.
2466 (GNULIB): New variable.
2467 (GNULIB_STDINT_H): Adjust.
2468 (AC_OUTPUT): Don't output gnulib/Makefile.
2469 * gdb/defs.h: Include build-gnulib/config.h.
2470 * aclocal.m4: Regenerate.
2471 * config.in: Regenerate.
2472 * configure: Regenerate.
2474 * gnulib/Makefile.in: New file.
2475 * gnulib/configure.ac: New file.
2476 * gnulib/aclocal.m4: New file.
2477 * gnulib/config.in: New file.
2478 * gnulib/configure: New file.
2479 * gnulib/: Re-run gnulib-tool to adjust.
2481 2012-04-19 Doug Evans <dje@google.com>
2483 * cleanups.h (struct cleanup): Move to cleanups.c.
2484 (make_cleanup_dtor_ftype): New typedef.
2485 (make_cleanup_dtor): Use it.
2486 (ALL_CLEANUPS): Replace with ...
2487 (all_cleanups): ... this. Declare. All uses updated.
2488 * cleanups.c: #include "gdb_assert.h".
2489 (sentinel_cleanup): New static global.
2490 (SENTINEL_CLEANUP): Define.
2491 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
2492 (make_my_cleanup2): Assert result is non-NULL.
2493 (all_cleanups): New function.
2494 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
2497 2012-04-19 Pedro Alves <palves@redhat.com>
2499 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
2500 Adjust paths to gnulib imported files.
2502 2012-04-19 Pedro Alves <palves@redhat.com>
2504 * gnulib/: Move whole directory ...
2505 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
2506 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
2507 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
2508 (aclocal_m4_deps): Adjust.
2509 * aclocal.m4: Regenerate.
2510 * configure: Regenerate.
2511 * configure.ac: Adjust AC_OUTPUT output.
2513 2012-04-19 Yao Qi <yao@codesourcery.com>
2515 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
2517 * vec.c: Move it ...
2518 * common/vec.c: ... here.
2519 * vec.h: Move it ...
2520 * common/vec.h: ... here.
2522 2012-04-19 Yao Qi <yao@codesourcery.com>
2524 * gdb-code-style.el: New.
2526 2012-04-18 Pedro Alves <palves@redhat.com>
2528 Update gnulib from latest git.
2529 (639ea5ae15e39fe48d43e04864b2997301e4b969)
2531 * gnulib/Makefile.am: Update.
2532 * gnulib/dummy.c: Update.
2533 * gnulib/extra/arg-nonnull.h: Update.
2534 * gnulib/extra/c++defs.h: Update.
2535 * gnulib/extra/update-copyright: Update.
2536 * gnulib/extra/warn-on-use.h: Update.
2537 * gnulib/inttypes.in.h: Update.
2538 * gnulib/m4/00gnulib.m4: Update.
2539 * gnulib/m4/extensions.m4: Update.
2540 * gnulib/m4/gnulib-cache.m4: Update.
2541 * gnulib/m4/gnulib-common.m4: Update.
2542 * gnulib/m4/gnulib-comp.m4: Update.
2543 * gnulib/m4/gnulib-tool.m4: Update.
2544 * gnulib/m4/include_next.m4: Update.
2545 * gnulib/m4/inttypes-pri.m4: Update.
2546 * gnulib/m4/inttypes.m4: Update.
2547 * gnulib/m4/longlong.m4: Update.
2548 * gnulib/m4/memchr.m4: Update.
2549 * gnulib/m4/memmem.m4: Update.
2550 * gnulib/m4/mmap-anon.m4: Update.
2551 * gnulib/m4/multiarch.m4: Update.
2552 * gnulib/m4/onceonly.m4: Update.
2553 * gnulib/m4/stddef_h.m4: Update.
2554 * gnulib/m4/stdint.m4: Update.
2555 * gnulib/m4/string_h.m4: Update.
2556 * gnulib/m4/warn-on-use.m4: Update.
2557 * gnulib/m4/wchar_h.m4: Update.
2558 * gnulib/m4/wchar_t.m4: Update.
2559 * gnulib/m4/wint_t.m4: Update.
2560 * gnulib/memchr.c: Update.
2561 * gnulib/memmem.c: Update.
2562 * gnulib/stddef.in.h: Update.
2563 * gnulib/stdint.in.h: Update.
2564 * gnulib/str-two-way.h: Update.
2565 * gnulib/string.in.h: Update.
2566 * gnulib/wchar.in.h: Update.
2568 * gnulib/extra/arg-nonnull.h: Delete.
2569 * gnulib/extra/c++defs.h: Delete.
2570 * gnulib/extra/warn-on-use.h: Delete.
2571 * gnulib/m4/wchar_h.m4: Delete.
2572 * gnulib/m4/wint_t.m4: Delete.
2573 * gnulib/wchar.in.h: Delete.
2575 * gnulib/extra/snippets/arg-nonnull.h: New.
2576 * gnulib/extra/snippets/c++defs.h: New.
2577 * gnulib/extra/snippets/warn-on-use.h: New.
2579 * aclocal.m4: Regenerate.
2580 * config.in: Regenerate.
2581 * configure: Regenerate.
2582 * gnulib/Makefile.in: Regenerate.
2584 2012-04-18 Pedro Alves <palves@redhat.com>
2586 Reimport the update-copyright module from gnulib
2587 (250b80067c1e1d8faa0c42fb572f721975b929c5).
2589 * configure: Regenerate.
2590 * gnulib/Makefile.am: Update.
2591 * gnulib/Makefile.in: Regenerate.
2592 * gnulib/extra/update-copyright: Update.
2593 * gnulib/m4/gnulib-cache.m4: Update.
2594 * gnulib/m4/gnulib-comp.m4: Update.
2596 2012-04-18 Tristan Gingold <gingold@adacore.com>
2598 * configure.ac (aix): Put -lpthread into libs.
2599 * configure: Regenerate.
2601 2012-04-18 Tom Tromey <tromey@redhat.com>
2603 * linespec.c (convert_linespec_to_sals): Don't use
2605 (compare_msymbols): Arguments are minsym_and_objfile, not
2606 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
2608 2012-04-18 Pedro Alves <palves@redhat.com>
2610 Revert gnulib/ part of:
2611 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2612 Copyright year update in most files (performed by copyright.sh).
2614 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2616 Fix 64-bit constants on 32-bit hosts.
2617 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
2618 from unsigned long to ULONGEST.
2619 (read_signed_leb128): Change declaration return type from long to
2621 (dwarf2_const_value_attr): Change declaration parameter value from long
2623 (dwarf2_compute_name): Change variable value from long to LONGEST.
2624 (read_unsigned_leb128): Change return type, variable result and some
2625 casts from unsigned long to ULONGEST.
2626 (read_signed_leb128): Change return type, variable result and some
2627 casts from long to LONGEST.
2628 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
2629 value from long to LONGEST.
2630 (dwarf2_const_value): Change variable value from long to LONGEST.
2631 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
2632 plongest and hex_string.
2633 * symtab.h (struct general_symbol_info): Change ivalue from long to
2634 LONGEST, remove the comment.
2635 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
2636 Change SYMBOL_VALUE format strings to use plongest and hex_string.
2638 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
2641 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
2642 * ada-lang.c (ada_discrete_type_high_bound)
2643 (ada_discrete_type_low_bound): Fix function comment. Use
2644 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2645 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
2646 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2647 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
2648 Use TYPE_FIELD_ENUMVAL.
2649 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
2650 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2651 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
2652 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
2654 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
2655 * dwarf2read.c (process_enumeration_scope): Likewise.
2656 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
2658 (class StructMainTypePrettyPrinter): Support also
2659 FIELD_LOC_KIND_ENUMVAL.
2660 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
2662 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2663 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
2664 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
2665 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
2667 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
2668 accommodate enumval.
2669 (struct call_site): Adjust loc_kind to accommodate enumval.
2670 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
2671 (TYPE_FIELD_ENUMVAL): New macros.
2672 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
2673 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
2675 * p-typeprint.c (pascal_type_print_base): Likewise.
2676 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
2678 * python/lib/gdb/types.py (make_enum_dict): Likewise.
2679 * python/py-type.c (convert_field): New variable addrstring. Use
2680 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2681 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
2682 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
2683 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
2685 * valprint.c (generic_val_print): Likewise.
2687 2012-04-17 Doug Evans <dje@google.com>
2689 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
2691 * dwarf2read.c: Whitespace fixes.
2692 (lookup_signatured_type): Tweak comment.
2693 (get_die_type_at_offset): Fix comment.
2695 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2697 * xcoffread.c (xcoff_secnum_to_sections): New function.
2698 (secnum_to_section, secnum_to_bfd_section): Reimplement
2699 using xcoff_secnum_to_sections. Rename "secnum" parameter
2701 (RECORD_MINIMAL_SYMBOL): Delete.
2702 (record_minimal_symbol): New function.
2703 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
2704 by call to record_minimal_symbol and set misc_func_recorded
2705 to 1. Set last_csect_sec to the XCOFF section index instead
2706 of GDB's section_offset index. Update calls to
2707 prim_record_minimal_symbol_and_info to pass the BFD section
2710 2012-04-17 Joel Brobecker <brobecker@adacore.com>
2712 * xcoffread.c (read_xcoff_symtab): Delete variables
2713 last_csect_val and last_csect_sec and associated code.
2715 2012-04-17 Doug Evans <dje@google.com>
2717 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
2718 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2719 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
2720 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
2722 * cleanups.h: New file.
2723 * cleanups.c: New file.
2724 * Makefile.in (SFILES): Add cleanups.c.
2725 (HFILES_NO_SRCDIR): Add cleanups.h.
2726 (COMMON_OBS): Add cleanups.o.
2727 * defs.h (struct cleanup): Moved to cleanups.h.
2728 (do_cleanups,do_final_cleanups): Ditto.
2729 (discard_cleanups,discard_final_cleanups): Ditto
2730 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2731 (save_cleanups,save_final_cleanups): Ditto.
2732 (restore_cleanups,restore_final_cleanups): Ditto.
2733 (null_cleanup): Ditto.
2734 (make_my_cleanup,make_my_cleanup2): Ditto.
2735 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2736 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
2737 (do_cleanups,do_final_cleanups): Ditto.
2738 (discard_cleanups,discard_final_cleanups): Ditto
2739 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2740 (save_cleanups,save_final_cleanups): Ditto.
2741 (restore_cleanups,restore_final_cleanups): Ditto.
2742 (null_cleanup): Ditto.
2743 (make_my_cleanup,make_my_cleanup2): Ditto.
2744 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2746 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
2748 (make_cleanup_dyn_string_delete): Ditto.
2749 (make_cleanup_ui_file_delete): Ditto.
2750 (make_cleanup_ui_out_redirect_pop): Ditto.
2751 (make_cleanup_free_section_addr_info): Ditto.
2752 (make_cleanup_restore_integer): Ditto.
2753 (make_cleanup_unpush_target): Ditto.
2754 (make_cleanup_value_free_to_mark): Ditto.
2755 (make_cleanup_value_free): Ditto.
2756 (make_cleanup_free_so): Ditto.
2758 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2760 New option "set debug auto-load".
2761 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
2762 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
2763 (auto_load_safe_path_vec_update)
2764 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
2766 (file_is_auto_load_safe): New parameters debug_fmt and ....
2767 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
2768 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
2769 caller by explanatory string.
2770 (_initialize_auto_load): Register "set debug auto-load".
2771 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
2773 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2774 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
2775 by explanatory string.
2776 * main.c (captured_main): Likewise.
2777 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2778 (source_section_scripts): Likewise.
2780 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2782 New option "set auto-load safe-path".
2783 * NEWS: New commands "set auto-load safe-path"
2784 and "show auto-load safe-path".
2785 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
2786 (auto_load_safe_path, auto_load_safe_path_vec)
2787 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
2788 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
2789 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
2790 (source_gdb_script_for_objfile): New variable is_safe. Call
2791 file_is_auto_load_safe. Return if it is not.
2792 (struct loaded_script): New field loaded.
2793 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
2794 (print_script): Use LOADED indicator instead of FULL_PATH. Change
2795 output "Missing" to "No".
2796 (_initialize_auto_load): New variable cmd. Initialize
2797 auto_load_safe_path. Register "set auto-load safe-path",
2798 "show auto-load safe-path" and "add-auto-load-safe-path".
2799 * auto-load.h (maybe_add_script): Add parameter loaded.
2800 (file_is_auto_load_safe): New declaration.
2801 * config.in: Regenerate.
2802 * configure: Regenerate.
2803 * configure.ac: New parameters --with-auto-load-safe-path
2804 and --without-auto-load-safe-path.
2805 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2806 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
2807 * main.c (captured_main): Check file_is_auto_load_safe for
2809 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
2810 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
2811 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
2814 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2816 auto-load: Implementation.
2817 * NEWS: New descriptions for "info auto-load",
2818 "info auto-load gdb-scripts", "info auto-load python-scripts",
2819 "info auto-load local-gdbinit" and "info auto-load libthread-db".
2820 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
2821 and "show auto-load-scripts". New description for "set auto-load",
2822 "show auto-load", "set auto-load gdb-scripts",
2823 "show auto-load gdb-scripts", "set auto-load python-scripts",
2824 "show auto-load python-scripts", "set auto-load local-gdbinit",
2825 "show auto-load local-gdbinit", "set auto-load libthread-db" and
2826 "show auto-load libthread-db".
2827 * auto-load.c: Remove include python/python-internal.h. Add includes
2828 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
2830 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
2831 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
2832 (gdbpy_global_auto_load): Rename to ...
2833 (global_auto_load): ... here.
2834 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2835 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
2836 (script_language_gdb, source_gdb_script_for_objfile): New.
2837 (struct loaded_script): New field language.
2838 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
2840 (maybe_add_script): Add parameter language. Drop redundant
2841 entry.full_path initialization. Initialize entry.language and
2843 (auto_load_objfile_script): Change parameter suffix to language.
2844 Remove the call of maybe_add_script.
2845 Call language->source_script_for_objfile.
2846 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
2848 (collect_matching_scripts): Adjust it for
2849 struct collect_matching_scripts_data.
2850 (auto_load_info_scripts_pattern_nl): New variable.
2851 (info_auto_load_scripts): Rename to ...
2852 (auto_load_info_scripts): ... here, add parameter language. Adjust it
2853 for struct collect_matching_scripts_data.
2854 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
2855 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
2856 (auto_load_show_cmdlist_get, info_auto_load_cmd)
2857 (auto_load_info_cmdlist_get): New.
2858 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
2859 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
2860 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
2861 "info auto-load local-gdbinit".
2862 * auto-load.h (struct script_language): New.
2863 (gdbpy_global_auto_load): Rename to ...
2864 (global_auto_load): ... here.
2865 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2866 (auto_load_local_gdbinit_loaded): New declarations.
2867 (maybe_add_script): New parameter language.
2868 (auto_load_objfile_script): Change parameter suffix to language.
2869 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
2870 (auto_load_info_scripts, auto_load_set_cmdlist_get)
2871 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
2873 * linux-thread-db.c: Include auto-load.h and ctype.h.
2874 (auto_load_thread_db, show_auto_load_thread_db): New.
2875 (struct thread_db_info): New field filename.
2876 (delete_thread_db_info): Call xfree for FILENAME.
2877 (try_thread_db_load): Initialize FILENAME.
2878 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
2879 if !AUTO_LOAD_THREAD_DB.
2880 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
2881 (_initialize_thread_db): Install auto_load_thread_db
2882 as "set auto-load libthread-db" and install info_auto_load_libthread_db
2883 as "info auto-load libthread-db".
2884 * main.c (captured_main): Rename gdbpy_global_auto_load to
2885 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
2886 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
2887 (print_gdb_help): Extend the help for 'local init file'.
2888 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
2889 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
2890 (auto_load_scripts): Rename to ...
2891 (auto_load_python_scripts): ... here, update the comment.
2892 (gdbpy_load_auto_script_for_objfile): New declaration.
2893 (show_auto_load_python_scripts, script_language_python)
2894 (gdbpy_load_auto_script_for_objfile): New.
2895 (source_section_scripts): Refactor the code.
2896 (load_auto_scripts_for_objfile): Rename to ...
2897 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
2898 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
2899 (info_auto_load_python_scripts): New.
2900 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
2901 Rename "set auto-load-scripts" to "set auto-load python-scripts".
2902 Register "set auto-load-scripts" as its deprecated alias. Register
2903 "info auto-load python-scripts". Register "info auto-load-scripts" as
2904 its deprecated alias.
2905 (load_auto_scripts_for_objfile): Rename to ...
2906 (gdbpy_load_auto_scripts_for_objfile): ... here.
2907 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
2908 (gdbpy_load_auto_scripts_for_objfile): ... here.
2910 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2912 auto-load: Move files.
2913 * Makefile.in (SFILES): Add auto-load.c.
2914 (HFILES_NO_SRCDIR): Add auto-load.h.
2915 (COMMON_OBS): Add auto-load.o.
2916 (distclean): Change .gdbinit for gdb-gdb.gdb.
2917 * auto-load.c: New file, with parts from python/py-auto-load.c.
2918 * auto-load.h: New file, with parts from python/python.h.
2919 * configure: Regenerate.
2920 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
2921 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
2922 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
2923 * main.c: Include auto-load.h.
2924 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
2925 command.h, observer.h and progspace.h to auto-load.c. Add include
2927 (gdbpy_global_auto_load, struct auto_load_pspace_info)
2928 (struct loaded_script, auto_load_pspace_data)
2929 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
2930 (hash_loaded_script_entry, eq_loaded_script_entry)
2931 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
2932 (maybe_add_script): Move to auto-load.c.
2933 (source_section_scripts): Change maybe_add_script parameters passing,
2934 use script_not_found_warning_print.
2935 (clear_section_scripts, auto_load_objfile_script)
2936 (auto_load_new_objfile, loaded_script_ptr)
2937 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
2938 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
2939 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
2940 auto_load_new_objfile and info_auto_load_scripts initizations to
2942 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
2944 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2947 * charset.c (find_charset_names): Remove variables ix and elt.
2948 Use free_char_ptr_vec.
2949 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
2950 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
2951 debugdir_end. New variable debugdir_len.
2952 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
2953 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
2955 * progspace.c (clear_program_space_solib_cache): Remove variables ix
2956 and elt. Use free_char_ptr_vec.
2957 * source.c (add_path): Remove variables argv, arg and argv_index.
2958 New variables dir_vec, back_to, ix and name.
2959 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
2960 make_cleanup_freeargv. Remove variable separator. Simplify the code
2961 no longer expecting DIRNAME_SEPARATOR.
2962 (openp): Remove variable p, p1 and len. New variables dir_vec,
2963 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
2964 no longer expecting DIRNAME_SEPARATOR.
2965 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
2966 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
2968 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
2969 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
2970 (dirnames_to_char_ptr_vec): New functions.
2972 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2975 * source.c (add_path): Remove always true conditional 'p == 0' and
2976 unindent its code block.
2978 2012-04-17 Pedro Alves <palves@redhat.com>
2980 * gdbtypes.h (FIELD_BITPOS): Rename to ...
2981 (FIELD_BITPOS_LVAL): ... this.
2982 (FIELD_BITPOS): New.
2983 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
2984 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
2985 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
2987 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
2989 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
2990 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
2991 * target-descriptions.c (tdesc_gdb_type): Adjust to use
2994 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2996 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
2997 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
2998 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
2999 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3000 * jv-lang.c (java_link_class_type): Likewise, once.
3001 * stabsread.c (read_enum_type): Likewise.
3003 2012-04-16 Yao Qi <yao@codesourcery.com>
3005 * common/agent.c (agent_run_command): Add one more parameter `len'.
3007 * common/agent.h: Update declaration.
3008 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3010 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3012 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3015 * value.c (value_actual_type): New function.
3016 * value.h (value_actual_type): New declaration.
3017 * varobj.c (update_type_if_necessary): New function.
3018 (varobj_create): Call value_actual_type instead of
3020 (install_dynamic_child): distinct changed and type changed MI variable
3022 (update_dynamic_varobj_children): Updated for install_dynamic_child
3023 change. All callers updated.
3024 (varobj_update): Support for MI variable object type change if
3025 the value changed and RTTI is used to determine the type.
3026 (create_child_with_value): Call value_actual_type instead of
3028 (adjust_value_for_child_access): Extended with a new parameter which
3029 specify whether the given value should be casted to enclosing type.
3030 All callers updated.
3032 2012-04-14 Yao Qi <yao@codesourcery.com>
3034 Import gnulib module inttypes from git
3035 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3036 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3037 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3038 gnulib/m4/inttypes-pri.m4
3039 * aclocal.m4, config.in, configure: Regenerated.
3040 * gnulib/Makefile.am: Update.
3041 * gnulib/Makefile.in: Update.
3042 * gnulib/m4/gnulib-cache.m4: Update.
3043 * gnulib/m4/gnulib-comp.m4: Update.
3044 * gnulib/inttypes.in.h: New.
3045 * gnulib/m4/inttypes-pri.m4: New.
3046 * gnulib/m4/inttypes.m4: New.
3048 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
3050 * infrun.c (resume): Update PC address to the real PC after
3051 preparing to do displaced stepping.
3053 2012-04-12 Doug Evans <dje@google.com>
3055 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3056 All callers updated.
3058 2012-04-12 Mark Kettenis <kettenis@gnu.org>
3060 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3062 2012-04-12 Doug Evans <dje@google.com>
3064 * dwarf2read.c (create_all_type_units): Renamed from
3065 create_debug_types_hash_table. All callers updated.
3067 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3068 local type_sig to sig_type, type_offset to type_offset_in_tu.
3069 (hash_signatured_type): Renamed from hash_type_signature,
3070 all callers updated.
3071 (eq_signatured_type): Renamed from eq_type_signature,
3072 all callers updated.
3073 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3074 (process_enumeration_scope): Ditto.
3075 (lookup_signatured_type_at_offset): Ditto.
3076 (load_full_type_unit, read_signatured_type): Ditto.
3078 2012-04-12 Yao Qi <yao@codesourcery.com>
3080 * remote.c (async_remote_interrupt): Correct function name in
3082 (async_remote_interrupt_twice): Ditto.
3084 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3086 * source.c (find_and_open_source): Consistently pass resulting
3087 full path through xfullpath.
3089 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3091 Provide more specific displaced-stepping memory error message.
3092 * infrun.c (displaced_step_prepare): New variable status. Call
3093 target_read_memory instead of read_memory, provide more specific
3096 2012-04-11 Tristan Gingold <gingold@adacore.com>
3099 * darwin-nat.c (darwin_execvp): Revert previous patch.
3101 2012-04-11 Tristan Gingold <gingold@adacore.com>
3104 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3107 2012-04-11 Tristan Gingold <gingold@adacore.com>
3109 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3112 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3114 New command 'explore' which helps explore values and types in
3116 * NEWS: Add an entry about the new 'explore' command.
3117 * data-directory/Makefile.in: Add gdb/command/explore.py
3118 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3119 command using the GDB Python API.
3121 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3123 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3124 extension in jump target calculation.
3126 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
3128 * mips-tdep.c (mips32_next_pc): Handle JALX.
3130 2012-04-10 Yao Qi <yao@codesourcery.com>
3132 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3134 2012-04-10 Yao Qi <yao@codesourcery.com>
3136 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3137 and gnulib/m4/gnulib-tool.m4.
3139 2012-04-10 Doug Evans <dje@google.com>
3141 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3142 (load_partial_dies): Clarify comment.
3143 (find_partial_die): Support rereading type units.
3144 Clarify CU handling, if we know offset is in CU, don't search for the
3145 containing CU. Add comment regarding memory waste.
3147 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3149 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3150 i386/x32-avx and i386/x32-avx-linux.
3151 (i386/x32-expedite): New.
3152 (i386/x32-linux-expedite): Likewise.
3153 (i386/x32-avx-expedite): Likewise.
3154 (i386/x32-avx-linux-expedite): Likewise.
3155 ($(outdir)/i386/x32.dat): Likewise.
3156 ($(outdir)/i386/x32-linux.dat): Likewise.
3157 ($(outdir)/i386/x32-avx.dat): Likewise.
3158 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3160 * features/i386/x32-avx-linux.xml: New file.
3161 * features/i386/x32-avx.xml: Likewise.
3162 * features/i386/x32-core.xml: Likewise.
3163 * features/i386/x32-linux.xml: Likewise.
3164 * features/i386/x32.xml: Likewise.
3166 * features/i386/x32-avx-linux.c: New. Generated.
3167 * features/i386/x32-avx.c: Likewise.
3168 * features/i386/x32-linux.c: Likewise.
3169 * features/i386/x32.c: Likewise.
3170 * regformats/i386/x32-avx-linux.dat: Likewise.
3171 * regformats/i386/x32-avx.dat: Likewise.
3172 * regformats/i386/x32-linux.dat: Likewise.
3173 * regformats/i386/x32.dat: Likewise.
3175 2012-04-10 Tristan Gingold <gingold@adacore.com>
3177 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3178 code to kill the inferior.
3180 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3182 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3184 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3186 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3187 (yyvsp): New defines.
3188 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3190 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3192 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3194 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3196 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3199 2012-04-09 Mark Kettenis <kettenis@gnu.org>
3201 * sparc64-tdep.c (sparc64_store_arguments)
3202 (sparc64_store_arguments): Fix coding style.
3204 2012-04-07 Mark Kettenis <kettenis@gnu.org>
3206 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3207 complex floats, adjust some related comments and tighten a related
3209 (sparc64_extract_return_value): Handle complex floats.
3211 2012-04-07 Doug Evans <dje@google.com>
3213 * dwarf2read.c (load_partial_dies): Change condition to assert.
3215 2012-04-06 Doug Evans <dje@google.com>
3217 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3220 2012-04-05 Kevin Buettner <kevinb@redhat.com>
3222 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3224 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3225 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3228 2012-04-05 Keith Seitz <keiths@redhat.com>
3230 * linespec.c (decode_compound): Remove.
3231 (enum offset_relative_sign): New enum.
3232 (struct line_offset): New struct.
3233 (struct linespec): New struct.
3234 (struct linespec_state): Move file_symtabs,
3235 user_filename, and user_function into struct linespec.
3236 Make result an anonymous struct holding vectors of
3237 symbolp and minsym_and_objfile_d.
3238 Add language member.
3239 (enum ls_token_type): New enum.
3240 (linespec_keywords): New array.
3241 (struct ls_token): New struct.
3242 (struct ls_parser): New struct.
3243 (linespec_lexer_lex_number): New function.
3244 (linespec_lexer_lex_keyword): New function.
3245 (is_ada_operator): New function.
3246 (skip_quote_char): New function.
3247 (copy_token_string): New function.
3248 (is_closing_quote_enclosed): New function.
3249 (find_parameter_list_end): New function.
3250 (linespec_lexer_lex_string): New function.
3251 (linespec_lexer_lex_one): New function.
3252 (linespec_lexer_consume_token): New function.
3253 (linespec_lexer_peek_token): New function.
3254 (cplusplus_error): Remove unused function.
3255 (find_methods): Update comment.
3256 (find_toplevel_char): Return const.
3257 (is_objc_method_format): Remove unused function.
3258 (find_toplevel_string): New function.
3259 (is_linespec_boundary): Remove.
3260 (symbol_not_found_error): New function.
3261 (find_method_overload_end): Remove function.
3262 (unexpected_linespec_error): New function.
3263 (keep_name_info): Remove.
3264 (linespec_parse_line_offset): New function.
3265 (linespec_parse_basic): New function.
3266 (canonicalize_linespec): New function.
3267 (decode_line_internal): Remove.
3268 (create_sals_line_offset): New function adapted from
3270 (convert_linespec_to_sals): New function.
3271 (parse_linespec): New function.
3272 (linespec_parser_new): New function.
3273 (linespec_state_destructor): Change parameter type to
3274 struct linespec_state *.
3275 Add language parameter.
3276 Remove freeing of moved members.
3277 (linespec_parser_delete): New function.
3278 (decode_line_full): Use parse_linespec and linespec_parser_new.
3279 (decode_line_1): Likewise.
3280 (decode_indirect): Rename to ...
3281 (linespec_expression_to_pc): ... this and rewrite
3282 to simply find CORE_ADDR, storing this result for later
3284 (locate_first_half): Remove.
3285 (deocde_objc): Add parameter LS.
3286 Initialize new struct collect_info members.
3287 Handle minimal symbols, too.
3288 (decode_compound): Delete.
3289 (lookup_prefix_sym): Rewrite.
3290 (compare_msymbols): New function.
3291 (find_method): Rewrite.
3292 Do not call cplusplus_error.
3293 (symtabs_from_filename): Rewrite.
3294 (collect_function_symbols): Delete.
3295 (find_function_symbols): Rewrite without ARGPTR-style
3297 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3298 (decode_dollar): Adapted and renamed to ...
3299 (linespec_parse_variable): ... this.
3300 (find_linespec_symbols): New function.
3301 (decode_label): Adapted and renamed to ...
3302 (find_label_symbols): ... this.
3303 (decode_digits_list_mode): Add and use LS argument.
3304 (decode_digits_ordinary): Likewise.
3305 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3306 If in list mode, allow any symbol class. Otherwise, only
3307 permit LOC_BLOCK symbols.
3308 (minsym_found): Update comments.
3309 (search_minsyms_for_name): Do not convert the matching symbol
3310 into a SAL. Simply push the symbol and objfile into the
3312 (decode_variable): Delete. Contents adapted into
3313 find_linespec_symbols.
3315 * cp-support.c (SKIP_SPACE): Remove.
3316 (operator_tokens): Remove unused global.
3317 (cp_validate_operator): Remove.
3318 * cp-support.h (cp_validate_operator): Remove declaration.
3320 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3322 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3323 for TYPE_VPTR_FIELDNO.
3324 * valprint.c (valprint_check_validity): Make it global, move the
3325 function comment ...
3326 * value.h (valprint_check_validity): ... to this new declaration.
3328 2012-04-02 Tristan Gingold <gingold@adacore.com>
3330 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3331 the STATE32 api for i386 state.
3332 (i386_darwin_store_inferior_registers): Likewise.
3334 2012-04-02 Tristan Gingold <gingold@adacore.com>
3336 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3338 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3341 2012-04-02 Tristan Gingold <gingold@adacore.com>
3344 * darwin-nat.c (darwin_execvp): Set binary preference.
3346 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3348 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3350 2012-03-30 Tom Tromey <tromey@redhat.com>
3352 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3353 of TRY_CATCH. Fix error handling.
3354 * python/py-value.c (convert_value_from_python): Move 'old'
3355 declaration to innermost scope.
3357 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3358 Andrey Smirnov <andrew.smirnov@gmail.com>
3360 -Wshadow warning fix.
3361 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3362 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3363 Adjust code accordingly.
3365 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3367 * ada-lang.c (symbol_completion_add): Rename parameter
3368 "encoded" into "encoded_p". Ajust code and documentation
3371 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3372 Andrey Smirnov <andrew.smirnov@gmail.com>
3374 -Wshadow warning fix.
3375 * ada-lang.c (symbol_completion_add): Rename parameter
3376 "wild_match" into wild_match_p. Update code and documentation
3379 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3381 * ada-lang.c (symbol_completion_match): Rename parameter
3382 "encoded" into "encoded_p". Ajust code and documentation
3385 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3386 Andrey Smirnov <andrew.smirnov@gmail.com>
3388 -Wshadow warning fix.
3389 * ada-lang.c (symbol_completion_match): Rename parameter
3390 "wild_match" into "wild_match_p". Adjust code and function
3391 documentation accordingly.
3393 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3394 Andrey Smirnov <andrew.smirnov@gmail.com>
3396 -Wshadow warning fix.
3397 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3398 "symbol_info" into "info". Adjust code accordingly.
3399 (ada_lookup_symbol): Likewise.
3401 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3403 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3404 of this function's documentation.
3406 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3407 Andrey Smirnov <andrew.smirnov@gmail.com>
3409 -Wshadow warning fix.
3410 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3411 variable into "wild_match_p". Adjust code accordingly.
3413 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3414 Andrey Smirnov <andrew.smirnov@gmail.com>
3416 -Wshadow warning fix.
3417 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3418 parameter into "wild_match_p". Adjust code accordingly.
3419 Document this parameter in the function description.
3421 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3422 Andrey Smirnov <andrew.smirnov@gmail.com>
3424 -Wshadow warning fix.
3425 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
3426 "wild_match" parameter to "wild_match_p" (-Wshadow).
3428 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3430 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
3431 in function documentation.
3433 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3434 Andrey Smirnov <andrew.smirnov@gmail.com>
3436 -Wshadow warning fix.
3437 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
3438 variable into wild_match_p. Adjust code accordingly.
3440 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3441 Andrey Smirnov <andrew.smirnov@gmail.com>
3443 * ada-valprint.c (ada_val_print_1): Move the code handling
3444 TYPE_CODE_ENUM inside its own lexical block. Declare
3445 variables len and val there, instead of in the function's
3446 top level block. Avoid declaring deref_val again in a way
3447 that shadows another variable of the same name declared
3448 in one of the up-level blocks. Just re-use the up-level
3451 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3453 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
3454 Replace block_found argument by symbol_info. Adjust
3455 implementation accordingly. Add function documentation.
3456 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
3458 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
3459 * ada-exp.y (write_object_renaming): Adjust to new
3460 ada_lookup_encoded_symbol API.
3462 2012-03-29 Joel Brobecker <brobecker@adacore.com>
3464 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
3467 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
3469 * v850-tdep.c: Add the enum values for mpu and fpu registers.
3470 (v850_register_name): Add the mpu and fpu register names.
3471 (v850e_register_name): Add the mpu and fpu register names.
3472 (v850e2_register_name): New function.
3473 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
3476 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3478 * NEWS: Add entry for Ada varobj support.
3480 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3482 * varobj.c (default_value_is_changeable_p): New function,
3483 extracted from varobj_value_is_changeable_p. Add declaration.
3484 (ada_value_is_changeable_p): New function, extracted from
3485 varobj_value_is_changeable_p. Add declaration.
3486 (struct language_specific): New field "value_is_changeable_p".
3487 (languages): Add entries for new field.
3488 (varobj_create): Set language before calling install_new_value.
3489 (varobj_value_is_changeable_p): Reimplement to call the varobj's
3490 "value_is_changeable_p" language callback.
3492 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3494 * ada-varobj.h, ada-varobj.c: New files.
3495 * Makefile.in (SFILES): Add ada-varobj.c.
3496 (HFILES_NO_SRCDIR): Add ada-varobj.h.
3497 (COMMON_OBS): Add ada-varobj.o.
3499 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3501 * varobj.c (ada_value_has_mutated): Add declaration. New function.
3502 (struct language_specific): New field "value_has_mutated".
3503 (languages): Set field "value_has_mutated" in each entry of array.
3504 (varobj_value_has_mutated): New function.
3505 (varobj_udpdate): Add handling of type mutation.
3506 (value_of_root): Add handling of type mutation.
3507 (ada_value_has_mutated): New function.
3509 2012-03-28 Pedro Alves <palves@redhat.com>
3511 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
3512 Always supply $fr0 as 0.0 and $fr1 as 1.0.
3514 2012-03-28 Tom Tromey <tromey@redhat.com>
3516 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
3517 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
3520 2012-03-28 Tom Tromey <tromey@redhat.com>
3522 * .dir-locals.el: New file.
3524 2012-03-28 Pedro Alves <palves@redhat.com>
3526 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
3528 2012-03-28 Joel Brobecker <brobecker@adacore.com>
3530 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
3533 2012-03-27 Pedro Alves <palves@redhat.com>
3535 Eliminate struct ui_stream.
3537 * ui-out.h (struct ui_stream): Delete.
3538 (ui_out_field_stream): Adjust prototype.
3539 (ui_out_stream_new, ui_out_stream_delete)
3540 (make_cleanup_ui_out_stream_delete): Delete declarations.
3541 * ui-out.c (ui_out_field_stream): Change prototype to take a
3542 ui_file instead of a ui_stream. Adjust.
3543 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
3544 (make_cleanup_ui_out_stream_delete): Delete.
3545 * breakpoint.c (print_breakpoint_location)
3546 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
3547 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3548 * disasm.c (dump_insns): Ditto.
3549 (do_mixed_source_and_assembly, do_assembly_only): Adjust
3551 (gdb_disassembly): Use ui_file/mem_fileopen instead of
3552 ui_stream/ui_out_stream_new.
3553 * infcmd.c (print_return_value): Ditto.
3554 * osdata.c (info_osdata_command): Don't allocate a local
3556 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
3557 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3558 * tracepoint.c (print_one_static_tracepoint_marker): Don't
3559 allocate a local ui_stream.
3560 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
3561 instead of ui_stream/ui_out_stream_new.
3562 (list_args_or_locals): Don't allocate a local ui_stream.
3563 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
3564 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
3565 ui_stream/ui_out_stream_new.
3566 * cli/cli-setshow.c (do_setshow_command): Ditto.
3568 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
3570 * arm-linux-tdep.c (arm_linux_init_abi): Call
3571 set_gdbarch_process_record. Initialize `arm_swi_record' field.
3572 * arm-tdep.c (arm_process_record): New function.
3573 (deallocate_reg_mem): New function.
3574 (decode_insn): New function.
3575 (thumb_record_branch): New function.
3576 (thumb_record_ldm_stm_swi(): New function.
3577 (thumb_record_misc): New function.
3578 (thumb_record_ld_st_stack): New function.
3579 (thumb_record_ld_st_imm_offset): New function.
3580 (thumb_record_ld_st_reg_offset(): New function.
3581 (thumb_record_add_sub_cmp_mov): New function.
3582 (thumb_record_shift_add_sub): New function.
3583 (arm_record_coproc_data_proc): New function.
3584 (arm_record_coproc): New function.
3585 (arm_record_b_bl): New function.
3586 (arm_record_ld_st_multiple): New function.
3587 (arm_record_ld_st_reg_offset): New function.
3588 (arm_record_ld_st_imm_offset): New function.
3589 (arm_record_data_proc_imm): New function.
3590 (arm_record_data_proc_misc_ld_str): New function.
3591 (arm_record_extension_space): New function.
3592 (arm_record_strx): New function.
3593 (sbo_sbz): New function.
3594 (struct insn_decode_record): New structure for arm insn record.
3595 (REG_ALLOC): New macro for reg allocations.
3596 (MEM_ALLOC): New macro for memory allocations.
3597 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
3599 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
3601 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
3602 (store_register): Likewise.
3604 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3606 * MAINTAINERS (Write After Approval): Add myself to the list.
3608 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3610 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
3611 Describe also the option "auto".
3613 2012-03-22 Richard Henderson <rth@redhat.com>
3615 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
3616 * sparc-nat.c (sparc_xfer_wcookie): Make static.
3618 2012-03-22 Richard Henderson <rth@redhat.com>
3620 * jit.c (jit_read_code_entry): Compute alignment and offset of
3621 int64_t member before computing entry_size.
3623 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3625 Python scripting: Add new method Value.referenced_value to
3626 gdb.Value which can dereference pointer as well as reference
3628 * NEWS: Add entry under 'Python scripting' about the new method
3629 Value.referenced_value on gdb.Value objects.
3630 * python/py-value.c (valpy_referenced_value): New function
3631 defining a new method on gdb.Value objects which can dereference
3632 pointer and reference values.
3634 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3636 * MAINTAINERS (Write After Approval): Add myself to the list.
3638 2012-03-21 Kevin Buettner <kevinb@redhat.com>
3640 * symtab.c (skip_prologue_sal): Change test to check for "main()"
3641 in addition to "main".
3643 2012-03-21 Joel Brobecker <brobecker@adacore.com>
3645 * expression.h (op_name): Add declaration.
3646 * expprint.c (op_name): Remove declaration. Make non-static.
3647 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
3649 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
3651 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
3653 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
3654 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3655 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
3656 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
3657 (linux_nat_get_siginfo): Likewise.
3658 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
3659 (linux_nat_get_siginfo): Likewise.
3660 * linux-tdep.c (linux_get_siginfo_type): Likewise.
3661 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
3662 * procfs.c (gdb_siginfo_t): Likewise.
3664 2012-03-21 Mike Frysinger <vapier@gentoo.org>
3666 * .gitignore: Ignore more files.
3668 2012-03-20 Pedro Alves <palves@redhat.com>
3670 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
3673 2012-03-20 Yao Qi <yao@codesourcery.com>
3675 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
3678 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3680 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
3681 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
3682 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
3684 * dwarf2expr.h (cu_offset, sect_offset): New types.
3685 (struct dwarf_expr_context_funcs) <dwarf_call>
3686 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
3688 (struct dwarf_expr_context) <len>: Improve the comment.
3689 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
3690 cu_offset and sect_offset.
3691 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
3692 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
3693 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
3694 * dwarf2loc.h: Include dwarf2expr.h.
3695 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
3697 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
3698 Improve the comment.
3699 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
3700 (struct signatured_type, struct line_header, struct partial_die_info)
3701 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
3702 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
3703 (get_die_type_at_offset, create_cus_from_index)
3704 (create_signatured_type_table_from_index, dw2_get_file_names)
3705 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
3706 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
3707 (create_debug_types_hash_table, process_psymtab_comp_unit)
3708 (load_partial_comp_unit, create_all_comp_units)
3709 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
3710 (load_full_comp_unit, dwarf2_physname, read_import_statement)
3711 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
3712 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
3713 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
3714 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
3715 (find_partial_die, read_attribute_value, lookup_die_type)
3716 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
3717 (is_ref_attr): New function comment.
3718 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
3719 Use cu_offset and sect_offset.
3720 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
3721 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
3722 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
3723 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
3724 (offset_and_type_hash, offset_and_type_eq, set_die_type)
3725 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
3726 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
3729 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3732 * python/py-auto-load.c (source_section_scripts): New variable back_to.
3733 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
3735 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
3737 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3739 * NEWS: Describe new options --init-command=FILE, -ix and
3740 --init-eval-command=COMMAND, -iex.
3741 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
3742 CMDARG_INIT_COMMAND.
3743 (captured_main): New enum items OPT_IX and OPT_IEX. Add
3744 "init-command", "init-eval-command", "ix" and "iex" to the variable
3745 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
3746 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
3747 (print_gdb_help): Describe --init-command=FILE, -ix and
3748 --init-eval-command=COMMAND, -iex.
3750 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3753 * main.c (struct cmdarg): Move it here from main. Add more comments.
3754 (cmdarg_s, VEC (cmdarg_s)): New.
3755 (main): Move struct cmdarg from here. New variables cmdarg_vec and
3756 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
3757 Install cleanup for cmdarg_vec. Update filling for options 'x' and
3758 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
3761 2012-03-19 Tom Tromey <tromey@redhat.com>
3763 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
3765 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3768 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
3771 2012-03-16 Chris January <chris.january@allinea.com>
3773 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
3776 2012-03-16 Chris January <chris.january@allinea.com>
3778 * source.c (add_path): Use memmove instead of strcpy because the
3781 2012-03-16 Joel Brobecker <brobecker@adacore.com>
3783 * value.h (set_value_parent): Add declaration.
3784 * value.c (set_value_parent): New function.
3785 (value_address): If VALUE->PARENT is not NULL, then use it as
3786 the base address instead of VALUE->LOCATION.address.
3787 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
3788 the same as OBJ's address. Adjust V's offset accordingly.
3791 2012-03-16 Gary Benson <gbenson@redhat.com>
3793 PR breakpoints/10738
3794 * dwarf2read.c (use_deprecated_index_sections): New global.
3795 (struct partial_die_info): New member may_be_inlined.
3796 (read_partial_die): Set may_be_inlined where appropriate.
3797 (add_partial_subprogram): Add partial symbols for partial
3798 DIEs that may be inlined.
3799 (new_symbol_full): Add inlined subroutines to the current
3801 (write_psymtabs_to_index): Bump version number.
3802 (dwarf2_read_index): Read only version 6 indices unless
3803 use_deprecated_index_sections is set.
3804 * linespec.c (symbol_and_data_callback): New structure.
3805 (iterate_inline_only): New function.
3806 (iterate_over_all_matching_symtabs): New argument
3807 "include_inline". If nonzero, also call the callback for
3808 symbols representing inlined subroutines.
3809 (lookup_prefix_sym): Pass extra argument to the above.
3810 (find_function_symbols): Likewise.
3811 (add_matching_symbols_to_info): Likewise.
3812 * NEWS: Mention that GDB can now set breakpoints on inlined
3815 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3817 * p-typeprint.c (pascal_type_print_method_args):
3818 Fix display of parameter of methods.
3820 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3822 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
3823 Add missing prototype.
3825 2012-03-16 Yao Qi <yao@codesourcery.com>
3826 Jan Kratochvil <jan.kratochvil@redhat.com>
3828 Fix false compilation warning.
3829 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
3831 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
3832 Pedro Alves <pedro@codesourcery.com>
3834 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
3835 (arm_register_g_packet_guesses): New function.
3836 (arm_gdbarch_init): Don't force a target description with
3837 registers when the executable is detected as M-profile. Instead
3838 set gdbarch->tdep->is_m. Register `g' packet guesses.
3839 (_initialize_arm_tdep): Initialize the new target description.
3840 * features/arm-with-m-fpa-layout.xml: New description.
3841 * features/arm-with-m-fpa-layout.c: New, generated.
3843 2012-03-15 Joel Brobecker <brobecker@adacore.com>
3845 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
3846 Update function description.
3847 (insert_bp_location): Do not wipe bl->target_info out.
3848 * mem-break.c: #include "gdb_string.h".
3849 (default_memory_insert_breakpoint): Do not call target_read_memory
3850 with a pointer to the breakpoint's shadow_contents buffer. Use
3851 a local buffer instead.
3852 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
3854 2012-03-15 Tom Tromey <tromey@redhat.com>
3856 * NEWS: Mention "info vtbl", not "info vtable".
3857 * cp-support.c (info_vtbl_command): Fix comment.
3858 (_initialize_cp_support): Fix text.
3860 2012-03-15 Tom Tromey <tromey@redhat.com>
3862 * cp-valprint.c (cp_print_value_fields): Use
3863 print_function_pointer_address for vtable slot.
3865 2012-03-15 Tom Tromey <tromey@redhat.com>
3867 * gnu-v3-abi.c (struct value_and_voffset): New.
3868 (hash_value_and_voffset, eq_value_and_voffset)
3869 (compare_value_and_voffset, compute_vtable_size)
3870 (print_one_vtable, gnuv3_print_vtable): New functions.
3871 (init_gnuv3_ops): Initialize 'print_vtable' field.
3872 * cp-support.c (info_vtbl_command): New function.
3873 (_initialize_cp_support): Add "info vtbl".
3874 * cp-abi.h (cplus_print_vtable): Declare.
3875 (struct cp_abi_ops) <print_vtable>: New field.
3876 * cp-abi.c (cplus_print_vtable): New function.
3879 2012-03-15 Tom Tromey <tromey@redhat.com>
3881 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
3882 iterate_over_symbols.
3884 2012-03-14 Doug Evans <dje@google.com>
3886 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
3887 DW_OP_GNU_parameter_ref.
3889 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3891 Fix double prompt of 'interpreter-exec mi'.
3892 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
3893 (mi_interpreter_resume): use it.
3894 (mi_execute_command_input_handler): New function.
3895 * mi/mi-main.c (mi_execute_command): Move prompt printing to
3896 mi_execute_command_input_handler.
3898 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
3900 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
3902 (darwin_debug_port_info): Make static.
3903 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
3904 * machoread.c (_initialize_machoread): Add prototype.
3905 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
3906 (i386_darwin_set_control, i386_darwin_get_control)
3907 i386_darwin_dr_set_addr, i386_darwin_get_addr)
3908 i386_darwin_get_status, i386_darwin_get_control):
3909 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
3911 2012-03-13 Joel Brobecker <brobecker@adacore.com>
3913 * ax-gdb.c (gen_usual_unary): Remove special handling of
3914 enum and bool types.
3916 2012-03-13 Joel Brobecker <brobecker@adacore.com>
3918 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
3920 2012-03-13 Joel Brobecker <brobecker@adacore.com>
3922 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
3924 2012-03-13 Chris January <chris.january@allinea.com>
3926 * aix-thread.c (fill_sprs): Store the floating point registers
3927 at the correct offsets into vals.
3929 2012-03-13 Doug Evans <dje@google.com>
3931 * NEWS: Mention symbol-reloading has been deleted.
3932 * symfile.c (symbol_reloading): Delete.
3933 (show_symbol_reloading): Delete.
3934 (_initialize_symfile): Delete set/show symbol-reloading.
3936 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
3937 read_in_chain until we have successfully read it in.
3938 (load_full_comp_unit): Ditto.
3939 (read_signatured_type): Add comment.
3941 2012-03-13 Chris January <chris.january@allinea.com>
3943 * stabsread.c (fix_common_block): Change type of valu argument
3946 2012-03-13 Chris January <chris.january@allinea.com>
3948 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
3951 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3953 * common/linux-procfs.c (linux_proc_get_int): New, from
3954 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
3956 (linux_proc_get_tgid): Only call linux_proc_get_int.
3957 (linux_proc_get_tracerpid): New.
3958 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
3959 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
3960 linux_proc_pid_has_state.
3961 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
3962 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
3963 (linux_ptrace_attach_warnings): New.
3964 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
3966 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
3967 (linux_nat_attach): New variables ex, buffer, message and message_s.
3968 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
3970 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3972 * Makefile.in (linux-ptrace.o): New.
3973 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
3975 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
3976 * common/linux-ptrace.c: New file.
3977 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
3978 * config/arm/linux.mh: Likewise.
3979 * config/i386/linux.mh: Likewise.
3980 * config/i386/linux64.mh: Likewise.
3981 * config/ia64/linux.mh: Likewise.
3982 * config/m32r/linux.mh: Likewise.
3983 * config/m68k/linux.mh: Likewise.
3984 * config/mips/linux.mh: Likewise.
3985 * config/pa/linux.mh: Likewise.
3986 * config/powerpc/linux.mh: Likewise.
3987 * config/powerpc/ppc64-linux.mh: Likewise.
3988 * config/powerpc/spu-linux.mh: Likewise.
3989 * config/s390/s390.mh: Likewise.
3990 * config/sparc/linux.mh: Likewise.
3991 * config/sparc/linux64.mh: Likewise.
3992 * config/xtensa/linux.mh: Likewise.
3993 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
3994 common/linux-procfs.c.
3995 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
3997 2012-03-13 Hui Zhu <teawater@gmail.com>
3998 Pedro Alves <palves@redhat.com>
4000 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4001 CREATE_BREAKPOINT_FLAGS_INSERTED.
4002 (create_breakpoint_sal, create_breakpoints_sal)
4003 (base_breakpoint_create_breakpoints_sal)
4004 (tracepoint_create_breakpoints_sal)
4005 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4007 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4008 (ftrace_command, strace_command): Adjust.
4009 (create_tracepoint_from_upload): Pass
4010 CREATE_BREAKPOINT_FLAGS_INSERTED.
4011 * breakpoint.h (enum breakpoint_create_flags): New.
4012 (create_breakpoint): New flags parameter.
4013 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4014 * python/py-breakpoint.c (bppy_init): Adjust.
4015 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4016 * spu-tdep.c (spu_catch_start): Adjust.
4018 2012-03-13 Pedro Alves <palves@redhat.com>
4019 Hui Zhu <teawater@gmail.com>
4020 Yao Qi <yao@codesourcery.com>
4022 * remote.c (struct remote_state): New field `starting_up'.
4023 (remote_start_remote): Set and clear it.
4024 (remote_can_download_tracepoint): If starting up, return false.
4026 2012-03-13 Yao Qi <yao@codesourcery.com>
4028 * inferior.h (struct inferior): Remove fields any_syscall_count,
4029 syscalls_counts and total_syscalls_count. Move them to new
4030 struct catch_syscall_inferior_data in breakpoint.c.
4031 * breakpoint.c: Call DEF_VEC_I(int).
4032 (struct catch_syscall_inferior_data): New.
4033 (get_catch_syscall_inferior_data): New.
4034 (catch_syscall_inferior_data_cleanup): New.
4035 (insert_catch_syscall): Update to access data in
4036 struct catch_syscall_inferior_data.
4037 (insert_catch_syscall): Likewise.
4038 (remove_catch_syscall): Likewise.
4039 (remove_catch_syscall): Likewise.
4040 (is_syscall_catchpoint_enabled): Likewise.
4041 (add_catch_command): Likewise.
4042 (_initialize_breakpoint): Register cleanup.
4043 * breakpoint.h: Removed DEF_VEC_I(int).
4044 * dwarf2loc.c: Call DEF_VEC_I(int).
4045 * mi/mi-main.c: Likewise.
4047 2012-03-12 Mark Kettenis <kettenis@gnu.org>
4049 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4051 2012-03-12 Chris January <chris.january@allinea.com>
4053 * aix-thread.c (_initialize_aix_thread): Add prototype.
4054 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4055 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4057 2012-03-12 Joel Brobecker <brobecker@adacore.com>
4059 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4060 include of "amd64-nat.h".
4062 2012-03-12 Tom Tromey <tromey@redhat.com>
4064 * buildsym.c (record_pending_block): Now static.
4065 * buildsym.h: (record_pending_block): Remove.
4067 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
4069 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4071 2012-03-09 Tom Tromey <tromey@redhat.com>
4073 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4074 producer_is_gxx_lt_4_6>: New fields.
4075 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4077 2012-03-09 Tom Tromey <tromey@redhat.com>
4079 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4081 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4083 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4086 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4088 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4090 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4092 Fix -Wmissing-prototypes build.
4093 * arm-linux-nat.c (get_thread_id): Make it static.
4094 * xtensa-linux-nat.c (get_thread_id): Likewise.
4096 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4098 * server.c (process_point_options): If a conditional expression
4099 is found, only print a message if remote_debug is nonzero.
4101 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
4103 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4104 of internal error for unknown/unsupported types.
4106 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4108 Fix CU relative vs. absolute DIE offsets.
4109 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4110 offset to offset_in_cu.
4111 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4113 (dwarf2_fetch_die_location_block): Rename parameter offset to
4114 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4116 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4118 * libunwind-frame.c: Rename to ...
4119 * ia64-libunwind-tdep.c: ... here.
4120 * libunwind-frame.h: Rename to ...
4121 * ia64-libunwind-tdep.h: ... here.
4122 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4123 ia64-libunwind-tdep.h.
4124 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4125 * README (--with-libunwind): Rename to ...
4126 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4127 * config.in: Regenerate.
4128 * configure: Regenerate.
4129 * configure.ac: New option --with-libunwind-ia64, make the
4130 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4131 Remove AC_DEFINE for HAVE_LIBUNWIND.
4132 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4133 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4134 Rename libunwind-frame in the general comment.
4135 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4136 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4137 Move forward declarations inside #ifndef. Rename libunwind-frame in
4138 the general comment.
4139 * ia64-tdep.c: Rename libunwind-frame.h #include to
4140 ia64-libunwind-tdep.h.
4141 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4142 (ia64_libunwind_descr): Rename libunwind-frame to
4143 ia64-libunwind-tdep in these function comments.
4144 * ia64-tdep.h: Rename libunwind-frame.h #include to
4145 ia64-libunwind-tdep.h.
4146 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4147 ia64-libunwind-tdep in that data comment.
4149 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4151 * libunwind-frame.h (struct frame_unwind): New declaration.
4153 2012-03-08 Joel Brobecker <brobecker@adacore.com>
4155 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4156 "set breakpoint condition-evaluation" command.
4158 2012-03-08 Tristan Gingold <gingold@adacore.com>
4160 * sparc-stub.c: Move to stubs/
4161 * sh-stub.c: Likewise.
4162 * m68k-stub.c: Likewise.
4163 * m32r-stub.c: Likewise.
4164 * i386-stub.c: Likewise.
4166 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4168 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4169 linux_get_siginfo_type.
4171 * m68klinux-nat.c: Include "gdb_proc_service.h".
4172 (PTRACE_GET_THREAD_AREA): Define.
4173 (ps_get_thread_area): New function.
4175 2012-03-08 Yao Qi <yao@codesourcery.com>
4177 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4179 (remote_query_attached): Likewise.
4180 (remote_static_tracepoint_marker_at): Likewise.
4181 (remote_set_permissions): Likewise.
4182 (remote_detach_1, extended_remote_attach_1): Likewise.
4183 (send_g_packet, remote_vkill): Likewise.
4184 (extended_remote_disable_randomization): Likewise.
4185 (remote_add_target_side_condition): Likewise.
4186 (remote_insert_breakpoint): Likewise.
4187 (remote_remove_breakpoint): Likewise.
4188 (remote_insert_watchpoint): Likewise.
4189 (remote_remove_watchpoint): Likewise.
4190 (remote_insert_hw_breakpoint): Likewise.
4191 (remote_insert_hw_breakpoint): Likewise.
4192 (remote_remove_hw_breakpoint): Likewise.
4193 (remote_download_command_source): Likewise.
4194 (remote_download_tracepoint): Likewise.
4195 (remote_download_trace_state_variable): Likewise.
4196 (remote_disable_tracepoint): Likewise.
4197 (remote_trace_set_readonly_regions): Likewise.
4198 (remote_get_tracepoint_status): Likewise.
4199 (remote_trace_find): Likewise.
4200 (remote_get_trace_state_variable_value): Likewise.
4201 (remote_set_disconnected_tracing): Likewise.
4202 (remote_set_circular_trace_buffer): Likewise.
4203 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4204 (remote_use_agent): Likewise.
4205 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4208 2012-03-07 Pedro Alves <palves@redhat.com>
4210 * NEWS: Mention QProgramSignals.
4211 * inferior.h (update_signals_program_target): Declare.
4212 * infrun.c: (update_signals_program_target): New.
4213 (handle_command): Update the target of the new program signals
4215 * remote.c (PACKET_QProgramSignals): New enum.
4216 (last_program_signals_packet): New global.
4217 (remote_program_signals): New.
4218 (remote_start_remote): Update the target with the program signals
4220 (remote_protocol_features): Add entry for QPassSignals.
4221 (remote_open_1): Free anc clear last_program_signals_packet.
4222 (init_remote_ops): Install remote_program_signals.
4223 * target.c (update_current_target): Adjust.
4224 (target_program_signals): New.
4225 * target.h (struct target_ops) <to_program_signals>: New field.
4226 (target_program_signals): Declare.
4228 2012-03-07 Pedro Alves <palves@redhat.com>
4230 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4233 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4235 * m68klinux-nat.c (getregs_supplies): Make static.
4236 (getfpregs_supplies): Likewise.
4237 (have_ptrace_getregs): Likewise.
4239 2012-03-06 Joel Brobecker <brobecker@adacore.com>
4241 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4242 in call to get_die_type_at_offset.
4244 2012-03-06 Stan Shebs <stan@codesourcery.com>
4246 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4247 * mi/mi-cmd-disas.c: Ditto.
4248 * mi/mi-cmd-env.c: Ditto.
4249 * mi/mi-cmd-file.c: Ditto.
4250 * mi/mi-cmd-stack.c: Ditto.
4251 * mi/mi-cmd-target.c: Ditto.
4252 * mi/mi-cmd-var.c: Ditto.
4253 * mi/mi-cmds.c: Ditto.
4254 * mi/mi-cmds.h: Ditto.
4255 * mi/mi-console.c: Ditto.
4256 * mi/mi-getopt.c: Ditto.
4257 * mi/mi-getopt.h: Ditto.
4258 * mi/mi-interp.c: Ditto.
4259 * mi/mi-main.c: Ditto.
4260 * mi/mi-out.c: Ditto.
4261 * mi/mi-parse.c: Ditto.
4262 * mi/mi-parse.h: Ditto.
4263 * mi/mi-symbol-cmds.c: Ditto.
4265 * mi/mi-getopt.h: Move mi_opt struct up.
4266 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4268 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4270 2012-03-06 Tom Tromey <tromey@redhat.com>
4272 * proc-service.c (ps_pglobal_lookup): Set the current program
4275 2012-03-06 Pedro Alves <palves@redhat.com>
4277 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4279 2012-03-05 Joel Brobecker <brobecker@adacore.com>
4281 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4283 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4286 * common/linux-osdata.c (linux_common_core_of_thread): New function
4288 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4289 call by linux_common_core_of_thread.
4290 (linux_nat_core_of_thread_1): Remove.
4291 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4292 * linux-thread-db.c: Include linux-osdata.h.
4293 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4294 linux_common_core_of_thread.
4296 2012-03-05 Tom Tromey <tromey@redhat.com>
4298 * value.c (value_primitive_field): Don't fetch contents for
4301 2012-03-05 Tom Tromey <tromey@redhat.com>
4303 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4305 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
4307 * s390-nat.c: Include "gregset.h".
4309 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4311 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4312 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4313 (libunwind_load): New variable so_error, use it for dlerror. Try to
4314 load also LIBUNWIND_SO_7.
4316 2012-03-05 Pedro Alves <palves@redhat.com>
4318 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4319 is not NULL, and remove resulting dead code.
4321 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4323 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4324 prologue to sh_analyze_prologue.
4325 (sh_analyze_prologue): Make better use of such an upper limit, and
4326 generally be more cautious about accessing memory.
4328 2012-03-05 Tom Tromey <tromey@redhat.com>
4330 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4331 _initialize_ia64_hpux_tdep.
4333 2012-03-05 Pedro Alves <palves@redhat.com>
4337 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4338 the register state is clear, supply explicit zero, instead of
4339 marking the register unavailable.
4341 2012-03-05 Tristan Gingold <gingold@adacore.com>
4343 * NEWS: Mention OpenVMS ia64 new target.
4345 2012-03-05 Tristan Gingold <gingold@adacore.com>
4347 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4348 (ia64_unw_accessors, ia64_unw_rse_accessors)
4349 (ia64_libunwind_descr): Declare.
4350 * ia64-vms-tdep.c: New file.
4351 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4352 (ia64_libunwind_descr): Make them public.
4353 * configure.tgt: Add ia64-*-*vms*.
4354 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4355 (ALLDEPFILES): Add ia64-vms-tdep.c
4357 2012-03-05 Tristan Gingold <gingold@adacore.com>
4359 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4360 * remote.c (PACKET_qXfer_uib): New enum value.
4361 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4362 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4363 (_initialize_remote): Call add_packet_config_cmd for
4366 2012-03-05 Tristan Gingold <gingold@adacore.com>
4368 * osabi.c (gdb_osabi_names): Add OpenVMS.
4369 (generic_elf_osabi_sniffer): Likewise.
4370 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4372 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4374 Removed unused code.
4375 * libunwind-frame.c (libunwind_frame_unwind)
4376 (libunwind_frame_base_address): Remove.
4377 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4379 2012-03-04 Yao Qi <yao@codesourcery.com>
4381 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4382 remove trailing new line.
4383 (agent_run_command, agent_run_command): Add _ markup.
4384 (agent_capability_check): Likewise.
4386 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4388 * breakpoint.c (set_condition_evaluation_mode): Set
4389 CONDITION_EVALUATION_MODE unconditionally.
4391 2012-03-03 Yao Qi <yao@codesourcery.com>
4393 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4394 * common/agent.h: Update declaration.
4395 * inf-child.c (inf_child_use_agent): New.
4396 (inf_child_can_use_agent): New.
4397 (inf_child_target): Initialize fields `to_use_agent'
4398 and `to_can_use_agent'.
4399 * agent.c (agent_new_objfile): New.
4400 (_initialize_agent): Add agent_new_objfile to new_objfile
4403 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4405 (linux_target_install_ops): Initialize field
4406 `to_static_tracepoint_markers_by_strid'.
4407 * remote.c (free_current_marker): Move it to ...
4408 * tracepoint.c (free_current_marker): ... here. New.
4409 (cleanup_target_stop): New.
4410 * tracepoint.h: Declare free_current_marker.
4411 * NEWS: Add one entry about `info static-tracepoint-marker'.
4413 2012-03-03 Yao Qi <yao@codesourcery.com>
4415 * common/agent.c (agent_loaded_p): New.
4416 (agent_look_up_symbols): New global.
4417 * common/agent.h: Declare agent_loaded_p.
4419 2012-03-03 Yao Qi <yao@codesourcery.com>
4421 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
4422 (agent_capability_check, agent_capability_invalidate): New.
4423 (symbol_list): New array element.
4424 * common/agent.h (enum agent_capa): New.
4425 * target.c (target_pre_inferior): Call agent_capability_invalidate.
4427 2012-03-03 Yao Qi <yao@codesourcery.com>
4429 * target.h (struct target_ops) <to_use_agent>: New field.
4430 (struct target_ops) <to_can_use_agent>: New field.
4431 (target_use_agent, target_can_use_agent): New macro.
4432 * target.c (update_current_target): Update.
4433 * remote.c: New enum `PACKET_QAgent'.
4434 (remote_protocol_features): Add a new element.
4435 (remote_use_agent, remote_can_use_agent): New.
4436 (init_remote_ops): Initialize field `can_use_agent' with
4437 remote_can_use_agent. Intiailize field `use_agent' with
4439 * common/agent.c (use_agent): New global.
4440 * common/agent.h: Declare it.
4441 * tracepoint.c (info_static_tracepoint_markers_command): Add
4443 * Makefile.in (SFILES): Add common/agent.c and agent.c.
4444 (COMMON_OBS): Add common/agent.o and agent.o
4445 (common-agent.o): New rule.
4448 2012-03-03 Yao Qi <yao@codesourcery.com>
4450 * common/agent.c: New.
4451 * common/agent.h: New.
4452 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
4454 * configure, configh.in: Regenerated.
4456 2012-03-02 Kevin Buettner <kevinb@redhat.com>
4458 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
4459 unless it exists for this architecture.
4461 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4463 * language.h (struct language_defn): New "method" la_read_var_value.
4464 * findvar.c: #include "language.h".
4465 (default_read_var_value): Renames read_var_value. Rewrite
4466 function description.
4467 (read_var_value): New function.
4468 * value.h (default_read_var_value): Add prototype.
4469 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
4471 (ada_language_defn): Add entry for la_read_var_value.
4472 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
4473 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
4474 language_defn structures to add entry for new la_read_var_value
4477 2012-03-02 Tom Tromey <tromey@redhat.com>
4478 Pedro Alves <palves@redhat.com>
4480 PR breakpoints/13776:
4481 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
4483 (delete_longjmp_breakpoint_at_next_stop): New.
4484 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
4485 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
4486 before deleting the inferior. Add comments.
4487 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
4488 breakpoints immediately, but only on next stop. Move that code
4489 next to where we mark other breakpoints for deletion.
4491 2012-03-02 Joel Brobecker <brobecker@adacore.com>
4493 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
4495 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
4498 2012-03-02 Pedro Alves <palves@redhat.com>
4500 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
4502 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4504 Fix -Wmissing-prototypes build.
4505 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
4506 * remote-sim.c (gdbsim_has_all_memory): Likewise.
4507 (gdbsim_has_memory): Likewise.
4509 2012-03-02 Yao Qi <yao@codesourcery.com>
4511 Fix -Wmissing-prototypes build.
4512 * charset.c (phony_iconv_open): Make static.
4513 (phony_iconv_close, phony_iconv): Likewise.
4514 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
4515 * i386-windows-nat.c (_initialize_i386_windows_nat): New
4517 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
4518 * ser-mingw.c (create_select_thread): Make static.
4519 * windows-termcap.c (tgetent): New prototype.
4520 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
4522 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
4524 Fix -Wmissing-prototypes build.
4525 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
4526 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
4527 (_initialize_loadable): New prototypes.
4529 2012-03-02 Doug Evans <dje@google.com>
4531 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
4532 abbrev table, read_comp_unit will do it.
4534 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4536 Fix -Wmissing-prototypes build.
4537 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
4538 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
4539 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
4540 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
4541 (_initialize_arm_symbian_tdep): New prototype.
4542 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
4543 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
4544 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
4546 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
4547 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
4549 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
4550 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
4551 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
4553 * moxie-tdep.c (moxie_process_record): Likewise.
4554 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
4555 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
4556 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
4557 (_initialize_rl78_tdep): New prototype.
4558 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
4559 (_initialize_rx_tdep): New prototype.
4560 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
4561 (_initialize_darwin_solib): New prototype.
4562 * solib-spu.c: Include solib-spu.h.
4563 (_initialize_spu_solib): New prototype.
4564 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
4565 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
4566 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
4567 (tic6x_software_single_step): Make it static.
4568 (_initialize_tic6x_tdep): New prototype.
4570 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4572 Fix -Wmissing-prototypes build.
4573 * cris-tdep.c (cris_can_use_hardware_watchpoint)
4574 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
4576 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4578 Fix -Wmissing-prototypes build.
4579 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
4580 (frv_have_stopped_data_address): Remove.
4582 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4584 Fix -Wmissing-prototypes build.
4585 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
4586 * sh-tdep.c: Include sh64-tdep.h.
4587 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
4588 * sh64-tdep.c: Include sh64-tdep.h.
4589 * sh64-tdep.h: New file.
4591 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4593 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
4595 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4597 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
4598 sp_regnum once the gdbarch_init_osabi hook has been called.
4600 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4602 * mips-tdep.c (mips32_bc1_pc): New function.
4603 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
4604 BPOSGE32 and BPOSGE64 instructions.
4605 (deal_with_atomic_sequence): Likewise.
4606 (mips32_instruction_has_delay_slot): Likewise.
4608 2012-03-01 Maciej W. Rozycki <macro@mips.com>
4609 Chris Dearman <chris@mips.com>
4610 Maciej W. Rozycki <macro@codesourcery.com>
4611 Joseph Myers <joseph@codesourcery.com>
4613 * features/mips-dsp.xml: New file.
4614 * features/mips64-dsp.xml: New file.
4615 * features/mips-dsp-linux.xml: New file.
4616 * features/mips64-dsp-linux.xml: New file.
4617 * features/Makefile (WHICH): Add mips-dsp-linux and
4619 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
4620 * features/mips-dsp-linux.c: New file.
4621 * features/mips64-dsp-linux.c: New file.
4622 * regformats/mips-dsp-linux.dat: New file.
4623 * regformats/mips64-dsp-linux.dat: New file.
4624 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
4626 (mips64_linux_register_addr): Likewise.
4627 (mips64_linux_regsets_fetch_registers): Likewise.
4628 (mips64_linux_regsets_store_registers): Likewise.
4629 (mips64_linux_fetch_registers): Update call to
4630 mips64_linux_regsets_fetch_registers.
4631 (mips64_linux_store_registers): Update call to
4632 mips64_linux_regsets_store_registers.
4633 (mips_linux_read_description): Probe for DSP registers.
4634 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
4635 and initialize_tdesc_mips64_dsp_linux.
4636 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
4637 Remove padding of no longer used embedded register slots.
4638 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
4639 (MIPS_RESTART_REGNUM): Redefine enum value.
4640 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
4642 (mips_tx39_reg_names): Likewise.
4643 (mips_linux_reg_names): New array of register names for Linux
4645 (mips_register_name): Check for a null pointer in
4646 mips_processor_reg_names and return an empty string.
4647 (mips_register_type): Exclude embedded registers for the IRIX
4649 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
4650 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
4652 (mips_stab_reg_to_regnum): Handle DSP accumulators.
4653 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
4654 (mips_gdbarch_init): Likewise. Initialize internal register
4655 indices for the Linux ABI. Use dynamic numbers to refer to
4656 registers, as applicable, while parsing the target description.
4657 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
4659 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4661 * frame.h (read_frame_register_unsigned): Fix typo in function
4664 2012-03-01 Pedro Alves <palves@redhat.com>
4666 * jit-reader.in [!__cplusplus]
4667 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
4669 2012-03-01 Pedro Alves <palves@redhat.com>
4671 * configure.ac (build_warnings): Add -Wmissing-prototypes.
4672 * configure: Regenerate.
4674 2012-03-01 Pedro Alves <palves@redhat.com>
4676 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
4677 * breakpoint.c (create_exception_master_breakpoint, trace_command)
4678 (ftrace_command, strace_command): Make static.
4679 * d-lang.c (_initialize_d_language): Declare.
4680 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
4681 * dwarf2loc.c (_initialize_dwarf2loc):
4682 * dwarf2read.c (process_psymtab_comp_unit): Make static.
4683 * exec.c (exec_get_section_table): Make static.
4684 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
4685 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
4686 * inferior.c (remove_inferior_command, add_inferior_command)
4687 (clone_inferior_command): Make static.
4688 * linux-nat.c (linux_nat_thread_address_space)
4689 (linux_nat_core_of_thread): Make static.
4690 * linux-tdep.c (_initialize_linux_tdep): Declare.
4691 * objc-lang.c (_initialize_objc_lang): Declare.
4692 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
4694 (_initialize_opencl_language): Declare.
4695 * record.c (_initialize_record): Declare.
4696 * remote.c (demand_private_info, remote_get_tib_address)
4697 (remote_supports_cond_tracepoints)
4698 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
4700 * skip.c (_initialize_step_skip): Declare.
4701 * symtab.c (skip_prologue_using_lineinfo): Make static.
4702 * tracepoint.c (delete_trace_state_variable)
4703 (trace_variable_command, delete_trace_variable_command)
4704 (get_uploaded_tsv, find_matching_tracepoint_location)
4705 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
4707 * value.c (pack_unsigned_long): Make static.
4708 * varobj.c (varobj_ensure_python_env): Make static.
4709 * windows-tdep.c (_initialize_windows_tdep): Declare.
4710 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
4712 2012-03-01 Pedro Alves <palves@redhat.com>
4714 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
4716 (linux_init_abi): Install it as has_shared_address_space gdbarch
4719 2012-03-01 Pedro Alves <palves@redhat.com>
4721 * observer.c (observer_test_first_notification_function)
4722 (observer_test_second_notification_function)
4723 (observer_test_third_notification_function): Add declarations.
4725 2012-03-01 Pedro Alves <palves@redhat.com>
4727 * common/signals.c (default_target_signal_to_host)
4728 (default_target_signal_from_host): Move ...
4729 * arch-utils.c: ... here.
4730 * arch-utils.h (default_target_signal_to_host)
4731 (default_target_signal_from_host): Declare.
4733 * common/signals.c (target_signal_from_command): Move ...
4734 * infrun.c: ... here.
4735 * inferior.h (target_signal_from_command): Declare.
4736 * target.h (target_signal_from_command)
4737 (default_target_signal_from_host, default_target_signal_to_host):
4738 Delete declarations.
4740 * common/signals.c (_initialize_signals): Delete.
4742 2012-03-01 Pedro Alves <palves@redhat.com>
4744 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
4745 both __cplusplus and !__cplusplus.
4747 2012-03-01 Pedro Alves <palves@redhat.com>
4749 * psymtab.c (find_and_open_source): Delete declaration.
4750 * source.c (find_and_open_source): Move comment ...
4751 * source.h (find_and_open_source): ... to this new declaration.
4753 2012-03-01 Pedro Alves <palves@redhat.com>
4755 * inline-frame.c: Include inline-frame.h.
4757 2012-03-01 Pedro Alves <palves@redhat.com>
4759 * tui/tui-data.c (set_gen_win_origin): Delete.
4760 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
4761 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
4763 2012-03-01 Pedro Alves <palves@redhat.com>
4765 * remote.c (encode_actions): Delete declaration.
4766 * tracepoint.c (encode_actions): Make extern.
4767 * tracepoint.h (encode_actions): Declare.
4769 2012-03-01 Pedro Alves <palves@redhat.com>
4771 * python/py-breakpoint.c: Include python.h.
4772 * python/py-continueevent.c (create_continue_event_object): Make
4774 * python/py-lazy-string.c (stpy_get_type): Make static.
4775 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4777 * python/py-utils.c (unicode_to_target_python_string): Make
4779 * python/py-value.c: Include python.h.
4781 2012-03-01 Pedro Alves <palves@redhat.com>
4783 * inferior.c (delete_threads_of_inferior): Delete.
4785 2012-03-01 Pedro Alves <palves@redhat.com>
4787 Import fallback definitions from glibc.
4789 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
4790 ps_prochandle): Forward declare.
4791 (ps_err_e): Use glibc's comments.
4792 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
4793 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4794 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
4795 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
4796 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
4797 (struct ps_prochandle): Adjust comment.
4799 2012-03-01 Pedro Alves <palves@redhat.com>
4801 * ada-lang.c (ada_modulus_from_name): Delete.
4802 * ada-lex.l (lexer_init): Make static.
4804 2012-03-01 Pedro Alves <palves@redhat.com>
4808 * frame.c (read_frame_register_unsigned): New.
4809 * frame.h (read_frame_register_unsigned): Declare.
4810 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
4812 (print_i387_control_word): New parameter `control_p'. Handle it.
4813 (i387_print_float_info): Handle unavailable float registers.
4815 2012-03-01 Keith Seitz <keiths@redhat.com>
4817 * linespec.c (decode_line_2): Sort the list of methods
4818 alphabetically before presenting the user with a selection
4821 2012-03-01 Doug Evans <dje@google.com>
4823 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
4825 (dwarf2_read_abbrevs): Remove corresponding initialization.
4827 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
4829 * NEWS: Mention new python command class gdb.COMMAND_USER.
4830 * cli/cli-cmds.c (show_user): Print error when used on a python
4832 (init_cli_cmds): Update documentation strings for "show user" and
4833 "set/show max-user-call-depth" to clarify that it does not apply to
4835 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
4837 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
4839 * top.c (execute_command): Only execute a user-defined command as a
4840 legacy macro if c->user_commands is set.
4842 2012-03-01 Tom Tromey <tromey@redhat.com>
4844 * valprint.h (struct generic_val_print_decorations): New.
4845 (generic_val_print): Declare.
4846 * valprint.c (generic_val_print): New function.
4847 * p-valprint.c (p_decorations): New global.
4848 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
4849 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
4850 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
4851 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
4852 * m2-valprint.c (m2_decorations): New global.
4853 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
4854 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
4855 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
4856 TYPE_CODE_ERROR>: Call generic_val_print.
4857 * f-valprint.c (f_decorations): New global.
4858 (f_val_print): Use print_function_pointer_address.
4859 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
4860 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
4861 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
4863 * c-valprint.c (c_decorations): New global.
4864 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
4865 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
4866 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
4867 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
4868 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
4869 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
4872 2012-03-01 Tom Tromey <tromey@redhat.com>
4874 * valprint.c (val_print): Update.
4875 * p-valprint (pascal_val_print): Return void.
4876 * p-lang.h (pascal_val_print): Return void.
4877 * m2-valprint.c (m2_val_print): Return void.
4878 * m2-lang.h (m2_val_print): Return void.
4879 * language.h (struct language_defn) <la_val_print>: Return void.
4880 * language.c (unk_lang_val_print): Return void.
4881 * jv-valprint.c (java_val_print): Return void.
4882 * jv-lang.h (java_val_print): Return void.
4883 * f-valprint.c (f_val_print): Return void.
4884 * f-lang.h (f_val_print): Return void.
4885 * d-valprint.c (d_val_print): Return void.
4886 (dynamic_array_type): Update.
4887 * d-lang.h (d_val_print): Return void.
4888 * c-valprint.c (c_val_print): Return void.
4889 * c-lang.h (c_val_print): Return void.
4890 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
4892 * ada-lang.h (ada_val_print): Return void.
4894 2012-03-01 Tom Tromey <tromey@redhat.com>
4896 * value.h (val_print): Return void.
4897 * valprint.c (val_print): Return void.
4899 2012-03-01 Tom Tromey <tromey@redhat.com>
4901 * value.h (common_val_print): Return void.
4902 * valprint.c (common_val_print): Return void.
4904 2012-03-01 Tom Tromey <tromey@redhat.com>
4906 * value.h (value_print): Return void.
4907 * valprint.c (value_print): Return void.
4908 * p-valprint.c (pascal_value_print): Return void.
4909 * p-lang.h (pascal_value_print): Return void.
4910 * language.h (struct language_defn) <la_value_print>: Return
4912 * language.c (unk_lang_value_print): Return void.
4913 * jv-valprint.c (java_value_print): Return void.
4914 * jv-lang.h (java_value_print): Return void.
4915 * f-valprint.c (c_value_print): Don't declare.
4917 * c-valprint.c (c_value_print): Return void.
4918 * c-lang.h (c_value_print): Return void.
4919 * ada-valprint.c (ada_value_print): Return void.
4920 * ada-lang.h (ada_value_print): Return void.
4922 2012-03-01 Tom Tromey <tromey@redhat.com>
4924 * value.c (value_primitive_field): Handle virtual base classes.
4926 2012-03-01 Tom Tromey <tromey@redhat.com>
4928 * gdbtypes.h (struct vbase): Remove.
4930 2012-03-01 Tom Tromey <tromey@redhat.com>
4932 * c-valprint.c (print_function_pointer_address): Move...
4933 * valprint.c: ... here. Make non-static.
4934 * m2-valprint.c (print_function_pointer_address): Remove.
4935 * valprint.h (print_function_pointer_address): Declare.
4937 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4939 * NEWS: Document the fact that one can provide a condition when
4940 creating an Ada exception catchpoint.
4942 2012-03-01 Tom Tromey <tromey@redhat.com>
4944 * valprint.c (val_print_type_code_flags): Fix placement of
4947 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4949 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
4950 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
4951 environment variable before calling update-copyright.
4953 2012-03-01 Joel Brobecker <brobecker@adacore.com>
4955 * gnulib/extra/update-copyright: Update to the latest from
4956 gnulib's git repository.
4957 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
4958 variable to 2 instead of 1.
4960 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4962 * varobj.c (c_value_of_variable): Remove dead code.
4964 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4966 * ada-lex.p (processId): Do not modify already encoded IDs.
4967 Update function documentation.
4969 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4971 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
4972 "name" with "struct symbol *name_sym".
4973 * ada-exp.y (write_var_or_type): Update call to
4974 ada_find_renaming_symbol.
4975 "name" with "struct symbol *name_sym". Adjust Implementation
4976 accordingly. Adjust the function documentation.
4978 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4980 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
4981 * ada-lang.c (ada_find_any_type): Add advance declaration.
4982 Make static. Replace ada_find_any_symbol by
4983 ada_find_any_type_symbol.
4984 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
4985 Improve function description. Make static.
4986 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
4987 Replace ada_find_any_symbol by ada_find_any_type_symbol.
4989 2012-02-29 Joel Brobecker <brobecker@adacore.com>
4991 * ada-lang.c (struct tag_args): Delete.
4992 (ada_get_tsd_type): Function body moved up in source file.
4993 (ada_tag_name_1, ada_tag_name_2): Delete.
4994 (ada_get_tsd_from_tag): New function.
4995 (ada_tag_name_from_tsd): New function.
4996 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
4997 to determine the tag name.
4999 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5001 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5003 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5006 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5008 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5010 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5012 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5015 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5017 * ada-lang.c (constrained_packed_array_type): If there is a
5018 parallel XA type, use it to determine the array index type.
5020 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5022 * ada-valprint.c (ada_val_print_1): If our value is a reference
5023 to an array descriptor, dereference it before converting it
5026 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5028 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5029 creating fixed value.
5030 (ada_value_ind, ada_coerce_ref, assign_component)
5031 (ada_evaluate_subexp): Remove call to unwrap_value before
5032 call to ada_to_fixed_value.
5034 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5036 * ada-lang.c (to_fixed_array_type): Set result's type name.
5038 2012-02-29 Joel Brobecker <brobecker@adacore.com>
5040 * ada-lang.c (catch_ada_exception_command_split): Add new
5041 argument cond_string. Add support for condition at end of
5042 "catch exception" commands.
5043 (ada_decode_exception_location): Add new argument cond_string.
5044 Update call to catch_ada_exception_command_split.
5045 (create_ada_exception_catchpoint): Add new argument cond_string.
5046 Set the breakpoint condition if needed.
5047 (catch_ada_exception_command): Update call to
5048 ada_decode_exception_location.
5049 (ada_decode_assert_location): Add function documentation.
5050 Add support for condition at end of "catch assert" command.
5051 (catch_assert_command): Update calls to ada_decode_assert_location
5052 and create_ada_exception_catchpoint.
5054 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5056 Fix disp-step-syscall.exp: fork: single step over fork.
5057 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5058 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5059 comment, change parameters gdbarch and ptid to regcache. Remove
5060 parameter regcache, initialize gdbarch from regcache here.
5061 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5063 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5065 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5066 'syscall'. Make the 'int' check more strict.
5068 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5070 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5071 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5072 (i386_linux_intx80_sysenter_syscall_record): ... here.
5073 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5074 Use the renamed function name.
5076 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5078 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5079 * breakpoint.c (until_break_command): Likewise.
5080 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5081 * infcall.c (call_function_by_hand): Likewise.
5082 * infcmd.c (finish_forward): Likewise.
5083 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5085 2012-02-28 Tristan Gingold <gingold@adacore.com>
5087 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5088 avoid variable assignments inside condition.
5090 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5092 Fix static analysis issue found by cppcheck.
5093 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5094 uninitialized BUF for size 2.
5096 2012-02-27 Chris Dearman <chris@mips.com>
5097 Nathan Froyd <froydnj@codesourcery.com>
5098 Maciej W. Rozycki <macro@codesourcery.com>
5100 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5101 (mips16_instruction_has_delay_slot): Likewise.
5102 (mips_segment_boundary): Likewise.
5103 (mips_adjust_breakpoint_address): Likewise.
5104 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5106 2012-02-27 Maciej W. Rozycki <macro@mips.com>
5107 Maciej W. Rozycki <macro@codesourcery.com>
5109 * infrun.c (handle_inferior_event): Don't proceed through
5110 shared library trampolines if stepping at the machine
5113 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5115 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5118 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5120 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5121 (sh_stub_unwind_sniffer): New functions.
5122 (sh_stub_unwind): New variable.
5123 (sh_gdbarch_init): Wire everything.
5125 2012-02-27 Pedro Alves <palves@redhat.com>
5127 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5128 (linux_nat_post_attach_wait): Adjust to use
5129 linux_proc_pid_is_stopped.
5130 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5131 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5132 based on pid_is_stopped from both linux-nat.c and
5133 gdbserver/linux-low.c, and renamed.
5135 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5137 * remote.c (remote_watchpoint_addr_within_range): New function.
5138 (init_remote_ops): Use it.
5140 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5142 * target.h (target_watchpoint_addr_within_range): Document macro.
5144 2012-02-24 Pedro Alves <palves@redhat.com>
5146 * stack.c (set_last_displayed_sal): Issue internal_error instead
5147 of warning, and issue it after clearing the last displayed sal.
5149 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5150 Pedro Alves <palves@redhat.com>
5152 * breakpoint.c (until_break_command): Install breakpoints after
5153 all frame manipulations.
5155 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5157 * remote.c (remote_supports_cond_breakpoints): New forward
5159 (remote_add_target_side_condition): New function.
5160 (remote_insert_breakpoint): Add target-side breakpoint
5161 conditional if supported.
5162 (remote_insert_hw_breakpoint): Likewise.
5163 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5166 * target.c (update_current_target): Inherit
5167 to_supports_evaluation_of_breakpoint_conditions.
5168 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5170 * target.h (struct target_ops)
5171 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5172 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5174 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5175 (condition_evaluation_both, condition_evaluation_auto,
5176 condition_evaluation_host, condition_evaluation_target,
5177 condition_evaluation_enums, condition_evaluation_mode_1,
5178 condition_evaluation_mode): New static globals.
5179 (translate_condition_evaluation_mode): New function.
5180 (breakpoint_condition_evaluation_mode): New function.
5181 (gdb_evaluates_breakpoint_condition_p): New function.
5182 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5183 (mark_breakpoint_modified): New function.
5184 (mark_breakpoint_location_modified): New function.
5185 (set_condition_evaluation_mode): New function.
5186 (show_condition_evaluation_mode): New function.
5187 (bp_location_compare_addrs): New function.
5188 (get_first_location_gte_addr): New helper function.
5189 (set_breakpoint_condition): Free condition bytecode if locations
5190 has become unconditional. Call mark_breakpoint_modified (...).
5191 (condition_command): Call update_global_location_list (1) for
5193 (breakpoint_xfer_memory): Use is_breakpoint (...).
5194 (is_breakpoint): New function.
5195 (parse_cond_to_aexpr): New function.
5196 (build_target_condition_list): New function.
5197 (insert_bp_location): Handle target-side conditional
5198 breakpoints and call build_target_condition_list (...).
5199 (update_inserted_breakpoint_locations): New function.
5200 (insert_breakpoint_locations): Handle target-side conditional
5202 (bpstat_check_breakpoint_conditions): Add comment.
5203 (bp_condition_evaluator): New function.
5204 (bp_location_condition_evaluator): New function.
5205 (print_breakpoint_location): Print information on where the condition
5207 (print_one_breakpoint_location): Likewise.
5208 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5209 breakpoint location.
5210 (force_breakpoint_reinsertion): New functions.
5211 (update_global_location_list): Handle target-side breakpoint
5213 Reinsert locations that are already inserted if conditions have
5215 (bp_location_dtor): Free agent expression bytecode.
5216 (disable_breakpoint): Call mark_breakpoint_modified (...).
5217 Call update_global_location_list (...) with parameter 1 for breakpoints.
5218 (disable_command): Call mark_breakpoint_location_modified (...).
5219 Call update_global_location_list (...) with parameter 1 for breakpoints.
5220 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5221 (enable_command): mark_breakpoint_location_modified (...).
5222 (_initialize_breakpoint): Update documentation and add
5223 condition-evaluation breakpoint subcommand.
5225 * breakpoint.h: Include ax.h.
5226 (condition_list): New data structure.
5227 (condition_status): New enum.
5228 (bp_target_info) <cond_list>: New field.
5229 (bp_location) <condition_changed, cond_bytecode>: New fields.
5230 (is_breakpoint): New prototype.
5232 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5234 * remote.c (remote_state) <cond_breakpoints>: New field.
5235 (PACKET_ConditionalBreakpoints): New enum.
5236 (remote_cond_breakpoint_feature): New function.
5237 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5238 (remote_supports_cond_breakpoints): New function.
5239 (_initialize_remote): Add new packet configuration for
5240 target-side conditional breakpoints.
5242 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5244 * NEWS: Mention target-side conditional breakpoint support,
5245 new condition-evaluation breakpoint subcommand and remote
5248 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
5250 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5253 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5255 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5256 (after_prologue): Remove.
5258 2012-02-23 Tom Tromey <tromey@redhat.com>
5260 * jv-valprint.c (java_val_print): Remove dead code.
5262 2012-02-23 Tristan Gingold <gingold@adacore.com>
5264 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5265 known_tasks_element and known_tasks_length fields.
5266 (read_known_tasks_array): Change argument type. Use pointer type
5267 and number of elements from DATA. Adjust.
5268 (read_known_tasks_list): Likewise.
5269 (get_known_tasks_addr): Remove.
5270 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5271 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5272 type and array length. Merge former get_known_tasks_addr code.
5274 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5277 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5278 it after set_momentary_breakpoint.
5280 2012-02-22 Sterling Augustine <saugustine@google.com>
5283 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5285 2012-02-22 Gary Benson <gbenson@redhat.com>
5287 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5288 (find_slot_in_mapped_hash): Likewise.
5290 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5293 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5294 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5295 * configure: Regenerate.
5297 2012-02-21 Tristan Gingold <gingold@adacore.com>
5298 Pedro Alves <palves@redhat.com>
5300 * ia64-tdep.c: Do not include libunwind-ia64.h.
5301 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5302 Include libunwind-ia64.h instead of libunwind.h.
5303 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5304 for libunwind.h existence.
5305 * configure, config.in: Regenerate.
5307 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5309 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5310 instead of value_rtti_target_type.
5311 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5312 instead of value_rtti_target_type.
5313 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5314 value_rtti_target_type.
5315 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5316 (value_rtti_target_type): Rename to ...
5317 (value_rtti_indirect_type): ... here and make it indirect. Update
5319 * value.c (readjust_indirect_value_type): New function.
5320 (coerce_ref): Support for enclosing type setting for references
5321 with readjust_indirect_value_type.
5322 * value.h (readjust_value_type): New declaration.
5323 (value_rtti_target_type): Rename to ...
5324 (value_rtti_indirect_type): ... here.
5326 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5328 * MAINTAINERS (Write After Approval): Add myself to the list.
5330 2012-02-20 Doug Evans <dje@google.com>
5332 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5333 Rename objfile_p_char parameter to objfilep.
5334 (build_objfile_section_table): Result is now void. All callers
5336 * objfiles.h (struct objfile): Tweak comments, whitespace.
5337 (build_objfile_section_table): Update.
5339 * elfread.c (elf_symfile_segments): Fix warning text.
5341 2012-02-20 Tom Tromey <tromey@redhat.com>
5344 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5345 particular set of file names once.
5346 (dw2_map_symbol_filenames): Likewise.
5348 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5351 * main.c (write_files): Remove the declaration.
5352 (external_editor_command): Move the declaration ...
5353 [GDBTK] (external_editor_command): ... here. Fix the comment.
5355 2012-02-20 Tom Tromey <tromey@redhat.com>
5357 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5360 2012-02-20 Tristan Gingold <gingold@adacore.com>
5362 * darwin-nat.h (enum darwin_msg_state): Add comments.
5364 2012-02-20 Tristan Gingold <gingold@adacore.com>
5366 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5369 2012-20-18 Joel Brobecker <brobecker@adacore.com>
5371 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5372 between function description and implementation.
5374 2012-02-17 Tom Tromey <tromey@redhat.com>
5377 * python/py-event.c (event_object_getset): New global.
5378 (event_object_type): Reference it.
5379 * python/py-type.c (field_object_getset): New global.
5380 (field_object_type): Reference it.
5381 * python/python-internal.h (gdb_py_generic_dict): Declare.
5382 * python/py-utils.c (gdb_py_generic_dict): New function.
5384 2012-02-17 Tristan Gingold <gingold@adacore.com>
5386 * solib-darwin.c (darwin_current_sos): Check magic and filetype
5388 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
5390 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5391 TYPE_CALLING_CONVENTION annotation.
5393 2012-02-16 Kevin Buettner <kevinb@redhat.com>
5395 * MAINTAINERS: Add rx to target ISA section.
5396 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5397 (ALLDEPFILES): Add rx-tdep.c.
5399 2012-02-16 Tom Tromey <tromey@redhat.com>
5401 * symfile.c (symbol_file_add_main_1): Use inferior's
5403 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5404 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5406 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5408 (follow_exec): Use inferior's symfile_flags.
5409 * inferior.h (struct inferior) <symfile_flags>: New field.
5411 2012-02-16 Mike Frysinger <vapier@gentoo.org>
5414 * remote-sim.c (gdbsim_create_inferior): Call error() when
5415 sim_create_inferior() fails.
5417 2012-02-16 Josh Matthews <josh@joshmatthews.net>
5419 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5421 2012-02-16 Tom Tromey <tromey@redhat.com>
5424 * thread.c (struct current_thread_cleanup) <was_removable>: New
5426 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
5427 (make_cleanup_restore_current_thread): Initialize new field.
5429 2012-02-15 Kevin Buettner <kevinb@redhat.com>
5431 * MAINTAINERS: Add rl78 to target ISA section.
5432 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
5433 (ALLDEPFILES): Add rl78-tdep.c.
5434 * NEWS: Mention rl78 as a new target.
5436 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
5438 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
5440 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
5442 2012-02-15 Tom Tromey <tromey@redhat.com>
5445 * infcmd.c (registers_info): Print just the current register's
5448 2012-02-15 Tom Tromey <tromey@redhat.com>
5450 * python/py-symbol.c (sympy_value): Use _().
5452 2012-02-15 Pedro Alves <palves@redhat.com>
5454 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
5455 output to be like native targets'.
5456 (remote_pid_to_str): Special case the null ptid.
5458 2012-02-14 Stan Shebs <stan@codesourcery.com>
5460 * NEWS: Mention enable count command.
5461 * breakpoint.h (struct breakpoint): New field enable_count.
5462 * breakpoint.c (enable_breakpoint_disp): Add count argument.
5463 (enable_breakpoint): Add arg to call.
5464 (struct disp_data): New struct.
5465 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
5466 (do_map_enable_once_breakpoint): Create a struct and pass it.
5467 (do_map_enable_delete_breakpoint): Ditto.
5468 (do_map_enable_count_breakpoint): New function.
5469 (enable_count_command): New function.
5470 (bpstat_stop_status): Decrement enable_count.
5471 (print_one_breakpoint_location): Report enable count.
5472 (_initialize_breakpoint): Add enable count command.
5474 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5476 * rl78-tdep.c (reggroups.h): Include.
5477 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
5478 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
5479 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
5480 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
5481 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
5482 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
5483 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
5484 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
5485 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
5486 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
5487 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
5488 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
5489 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
5490 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
5491 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
5492 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
5493 beginning of register list.
5494 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
5495 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
5496 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
5497 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
5498 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
5499 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
5500 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
5501 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
5502 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
5503 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
5504 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
5505 the pseudo registers. Rearrange other pseudo registers too so
5506 that the bank registers appear at the end.
5507 (rl78_register_type): Account for the fact that the byte sized
5508 bank registers are now pseudo-registers.
5509 (rl78_register_name): Rearrange the register name array. Make
5510 initial set of raw banked registers inaccessible.
5511 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
5512 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
5513 case for copying bytes back and forth between raw and pseudo
5514 versions of the banked registers. Update other cases to reflect
5516 (rl78_return_value): Update to account for changed names of
5518 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
5519 rl78_register_sim_regno().
5521 2012-02-14 Kevin Buettner <kevinb@redhat.com>
5523 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
5524 the name parameter being passed to find_pc_partial_function().
5526 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5528 * MAINTAINERS: Step down from being ia64 target maintainer.
5530 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5532 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
5533 compilation warning.
5535 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5537 Fix crash on loaded shlibs without loaded exec_bfd.
5538 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
5539 (set_section_command): Replace exec_bfd by p->bfd.
5541 2012-02-10 Tom Tromey <tromey@redhat.com>
5543 * linespec.c (decode_line_internal): Skip symtabs_from_filename
5544 when we have a C++ qualified name.
5546 2012-02-10 Pedro Alves <palves@redhat.com>
5548 * inferior.c (inferior_pid_to_str): New.
5549 (print_inferior, inferior_command): Use it.
5551 2012-02-10 Pedro Alves <palves@redhat.com>
5553 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
5555 * configure: Regenerate.
5557 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5559 * linespec.c (decode_line_internal): Fix comment correctness.
5561 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
5564 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
5565 * amd64bsd-nat.c: Add support for debug registers (adapted from
5567 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
5568 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
5569 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
5570 (amd64bsd_dr_get_control): New functions.
5571 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
5572 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
5573 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
5574 watchpoints initialization.
5575 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
5577 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5579 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
5581 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
5583 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5585 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
5587 2012-02-08 Joel Brobecker <brobecker@adacore.com>
5589 * language.h (symbol_name_cmp_ftype): Renames
5590 symbol_name_match_p_ftype.
5591 (struct language_defn)[la_get_symbol_name_cmp]: Renames
5592 la_get_symbol_name_match_p.
5593 * ada-lang.c (ada_get_symbol_name_cmp): Renames
5594 ada_get_symbol_name_match_p. Update comment.
5595 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
5596 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
5597 Renames symbol_name_match_p. Update field type.
5598 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
5599 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5600 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
5601 "la_get_symbol_name_cmp" in comments.
5602 * language.c: Likewise.
5604 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5606 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
5608 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
5609 (amd64_sol2_gregset32_reg_offs): Likewise.
5611 2012-02-08 Joel Brobecker <brobecker@adacore.com>
5613 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
5614 of the returned BFD is allocated by GDB.
5616 2012-02-07 Tom Tromey <tromey@redhat.com>
5619 * python/python-internal.h (frame_object_type): Declare.
5620 * python/py-symbol.c (sympy_needs_frame): New function.
5621 (sympy_value): New function.
5622 (symbol_object_getset): Add "needs_frame".
5623 (symbol_object_methods): Add "value".
5624 * python/py-frame.c (frame_object_type): No longer static.
5626 2012-02-07 Tom Tromey <tromey@redhat.com>
5629 * python/py-symbol.c (sympy_line): New function.
5630 (symbol_object_getset): Add "line".
5632 2012-02-07 Tom Tromey <tromey@redhat.com>
5634 * charset.c (find_charset_names): Check 'in' against NULL.
5636 2012-02-06 Doug Evans <dje@google.com>
5638 * gdbtypes.h (struct main_type): Change type of name,tag_name,
5639 and fields.name members from char * to const char *. All uses updated.
5640 (struct cplus_struct_type): Change type of fn_fieldlists.name member
5641 from char * to const char *. All uses updated.
5642 (type_name_no_tag): Update.
5643 (lookup_unsigned_typename, lookup_signed_typename): Update.
5644 * gdbtypes.c (type_name_no_tag): Change result type
5645 from char * to const char *. All callers updated.
5646 (lookup_unsigned_typename, lookup_signed_typename): Change type of
5647 name parameter from char * to const char *.
5648 * symtab.h (struct cplus_specific): Change type of demangled_name
5649 member from char * to const char *. All uses updated.
5650 (struct general_symbol_info): Change type of name and
5651 mangled_lang.demangled_name members from char * to const char *.
5653 (symbol_get_demangled_name, symbol_natural_name): Update.
5654 (symbol_demangled_name, symbol_search_name): Update.
5655 * symtab.c (symbol_get_demangled_name): Change result type
5656 from char * to const char *. All callers updated.
5657 (symbol_natural_name, symbol_demangled_name): Ditto.
5658 (symbol_search_name): Ditto.
5659 (completion_list_add_name): Change type of symname,sym_text,
5660 text,word parameters from char * to const char *.
5661 (completion_list_objc_symbol): Change type of sym_text,
5662 text,word parameters from char * to const char *.
5663 * ada-lang.c (find_struct_field): Change type of name parameter
5664 from char * to const char *.
5665 (encoded_ordered_before): Similarly for N0,N1 parameters.
5666 (old_renaming_is_invisible): Similarly for function_name parameter.
5667 (ada_type_name): Change result type from char * to const char *.
5668 All callers updated.
5669 * ada-lang.h (ada_type_name): Update.
5670 * buildsym.c (hashname): Change type of name parameter
5671 from char * to const char *.
5672 * buildsym.h (hashname): Update.
5673 * dbxread.c (end_psymtab): Change type of include_list parameter
5674 from char ** to const char **.
5675 * dwarf2read.c (determine_prefix): Change result type
5676 from char * to const char *. All callers updated.
5677 * f-lang.c (find_common_for_function): Change type of name, funcname
5678 parameters from char * to const char *.
5679 * f-lang.c (find_common_for_function): Update.
5680 * f-valprint.c (list_all_visible_commons): Change type of funcname
5681 parameters from char * to const char *.
5682 * gdbarch.sh (static_transform_name): Change type of name parameter
5683 and result from char * to const char *.
5684 * gdbarch.c: Regenerate.
5685 * gdbarch.h: Regenerate.
5686 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
5687 of name parameter from char * to const char *.
5688 * jv-lang.c (java_primitive_type_from_name): Ditto.
5689 (java_demangled_signature_length): Similarly for signature parameter.
5690 (java_demangled_signature_copy): Ditto.
5691 (java_demangle_type_signature): Ditto.
5692 * jv-lang.h (java_primitive_type_from_name): Update.
5693 (java_demangle_type_signature): Update.
5694 * objc-lang.c (specialcmp): Change type of a,b parameters
5695 from char * to const char *.
5696 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
5697 from char * to const char *. All callers updated.
5698 * p-lang.h (is_pascal_string_type): Update.
5699 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
5700 of name parameter from char * to const char *.
5701 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
5702 * utils.c (fprintf_symbol_filtered): Ditto.
5703 * defs.h (fprintf_symbol_filtered): Update.
5704 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
5705 * stabsread.h (end_psymtab): Update.
5706 * stack.c (find_frame_funname): Change type of funname parameter
5707 from char ** to const char **.
5708 * stack.h (find_frame_funname): Update.
5709 * typeprint.c (type_print): Change type of varstring parameter
5710 from char * to const char *.
5711 * value.h (type_print): Update.
5712 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
5713 from char * to const char *. All callers updated.
5714 (xcoff_end_psymtab): Change type of include_list parameter
5715 from char ** to const char **. All callers updated.
5716 (swap_sym): Similarly for name parameter. All callers updated.
5717 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
5719 (process_coff_symbol): Use xstrdup.
5720 * stabsread.c (stabs_method_name_from_physname): Renamed from
5721 update_method_name_from_physname. Change result type from void
5722 to char *. All callers updated.
5723 (read_member_functions): In has_destructor case, store name in objfile
5724 obstack instead of malloc space. In !has_stub case, fix mem leak.
5726 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
5728 * configure: Rebuild.
5729 * configure.ac: Put -L../bfd and -L../libiberty at the front of
5732 2012-02-03 Kevin Buettner <kevinb@redhat.com>
5734 * configure.tgt (rl78-*-elf): New target.
5735 * rl78-tdep.c: New file.
5737 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5739 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
5740 and continue the loop. Add QUIT statement.
5742 2012-02-03 Tom Tromey <tromey@redhat.com>
5745 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
5746 bfd_lookup_symbol_from_symtab.
5747 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
5748 gdb_bfd_lookup_symbol_from_symtab.
5750 2012-02-03 Joel Brobecker <brobecker@adacore.com>
5752 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
5753 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
5754 symbol. Add assertion that sym2 is never NULL.
5756 2012-02-02 Doug Evans <dje@google.com>
5758 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
5759 "name" parameter to const char ** from char **. All callers updated.
5760 (find_pc_partial_function): Ditto.
5761 (cache_pc_function_name): Change type to const char * from char *.
5762 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
5763 (find_pc_partial_function): Update.
5764 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
5765 type of "name" parameter to const char * from char *.
5767 * arch-utils.c (generic_in_solib_return_trampoline): Change
5768 type of "name" parameter to const char * from char *.
5769 * arch-utils.h (generic_in_solib_return_trampoline): Update.
5770 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
5771 type of "name" parameter to const char * from char *.
5772 * gdbarch.sh (in_solib_return_trampoline): Ditto.
5773 * gdbarch.c: Regenerate.
5774 * gdbarch.h: Regenerate.
5775 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
5776 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
5777 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
5778 type of "name" parameter to const char * from char *.
5779 * skip.c (skip_function_pc): Ditto.
5780 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
5781 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
5782 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
5783 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
5784 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
5785 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
5786 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
5787 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
5788 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
5790 2012-02-02 Pedro Alves <palves@redhat.com>
5792 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
5793 the current inferior has no execution. Make sure the current
5794 remote process matches gdb's current inferior.
5796 2012-02-02 Tom Tromey <tromey@redhat.com>
5799 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
5802 2012-02-02 Tom Tromey <tromey@redhat.com>
5805 * symtab.c (lookup_language_this): Set block_found.
5807 2012-02-01 Tom Tromey <tromey@redhat.com>
5810 * jit.c (struct jit_inferior_data): Rewrite.
5811 (struct jit_objfile_data): New.
5812 (get_jit_objfile_data): New function.
5813 (add_objfile_entry): Update.
5814 (jit_read_descriptor): Return int. Replace descriptor_addr
5815 argument with inf_data. Update. Don't call error.
5816 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
5818 (jit_inferior_init): Don't look up descriptor. Don't call error.
5819 (jit_reset_inferior_data_and_breakpoints)
5820 (jit_inferior_created_observer): Remove.
5821 (jit_inferior_exit_hook): Update.
5822 (jit_executable_changed_observer): Remove.
5823 (jit_event_handler): Update.
5824 (free_objfile_data): Reset inferior data if needed.
5825 (_initialize_jit): Update.
5827 2012-02-01 Tom Tromey <tromey@redhat.com>
5829 * jit.c (bfd_open_from_target_memory): Move higher in file.
5831 2012-02-01 Tristan Gingold <gingold@adacore.com>
5833 * libunwind-frame.c (libunwind_load): Display message if dlopen
5836 2012-02-01 Gary Benson <gbenson@redhat.com>
5838 * symtab.h (symbol_found_callback_ftype): New typedef.
5839 (iterate_over_symbols): Use the above.
5840 * symtab.c (iterate_over_symbols): Likewise.
5841 * language.h (language_defn->la_iterate_over_symbols): Likewise.
5842 * ada-lang.c (ada_iterate_over_symbols): Likewise.
5843 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
5844 (iterate_name_matcher): Document return values.
5845 (collect_one_symbol): Likewise.
5846 (collect_function_symbols): Likewise.
5847 (collect_symbols): Likewise.
5849 2012-02-01 Tom Tromey <tromey@redhat.com>
5851 * ada-lang.c (resolve_subexp): Update.
5852 (ada_lookup_symbol_list): Add 'full_search' argument.
5853 (ada_iterate_over_symbols): Pass 0 as full_search argument to
5854 ada_lookup_symbol_list.
5855 (ada_lookup_encoded_symbol): Update.
5856 (get_var_value): Update.
5857 * ada-exp.y (block_lookup): Update.
5858 (write_var_or_type): Update.
5859 (write_name_assoc): Update.
5860 * ada-lang.h (ada_lookup_symbol_list): Update.
5862 2012-01-31 Tom Tromey <tromey@redhat.com>
5864 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
5867 2012-01-31 Doug Evans <dje@google.com>
5869 * symtab.h: Remove outdated comment.
5870 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
5872 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
5874 Fix build error in Darwin port.
5875 * i386-darwin-nat.c: Include i386-nat.h.
5877 2012-01-30 Tom Tromey <tromey@redhat.com>
5879 PR breakpoints/13568:
5880 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
5881 argument. Check for recursive includes.
5882 (dwarf_decode_macros): Create an include hash.
5884 2012-01-30 Michael Eager <eager@eagercon.com>
5886 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
5887 * ppc-linux-tdep.c: Include glibc-tdep.h.
5888 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5889 (powerpc_linux_in_plt_stub): New function.
5890 (powerpc_linux_in_dynsym_resolve_code): New function.
5891 (ppc_skip_trampoline_code): New function.
5892 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
5893 Use glibc_skip_solib_resolver.
5895 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5897 Code cleanup: Make 1440 bytes of data segment read-only.
5898 * arch-utils.c (endian_enum): Make it const char *const [].
5899 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
5901 * breakpoint.c (always_inserted_enums): Likewise.
5902 * cli/cli-cmds.c (script_ext_enums): Likewise.
5903 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
5904 enumlist parameter const char *const *.
5905 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
5906 const char *const *.
5907 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
5908 parameter const char *const *.
5909 * cris-tdep.c (cris_modes): Make it const char *const [].
5910 * filesystem.c (target_file_system_kinds): Likewise.
5911 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
5912 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
5913 (can_use_displaced_stepping_enum, scheduler_enums)
5914 (exec_direction_names): Likewise.
5915 * language.c (_initialize_language): Make the type_or_range_names and
5916 case_sensitive_names variables const char *const [].
5917 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
5918 * python/python.c (python_excp_enums): Likewise.
5919 * remote.c (interrupt_sequence_modes): Likewise.
5920 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
5921 * serial.c (logbase_enums): Likewise.
5922 * sh-tdep.c (sh_cc_enum): Likewise.
5923 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
5925 * symtab.c (multiple_symbols_modes): Likewise.
5926 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
5928 * utils.c (internal_problem_modes): Likewise.
5930 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5932 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
5933 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
5936 2012-01-27 Doug Evans <dje@google.com>
5938 * configure.ac (with_python): Fix absolute path handling for win32.
5939 * configure: Regenerate.
5941 2012-01-26 Doug Evans <dje@google.com>
5943 * symtab.c: Whitespace cleanup, no code changes.
5945 * symtab.c (lookup_symbol_in_language): Improve comment.
5946 (lookup_symbol_aux): Fix comment.
5948 * psymtab.c (add_psymbol_to_list): Result is now "void".
5949 * psympriv.h (add_psymbol_to_list): Update.
5951 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
5953 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5955 Do not open script filenames twice.
5956 * cli/cli-cmds.c (source_script_from_stream): Pass to
5957 source_python_script also STREAM.
5958 * python/py-auto-load.c (source_section_scripts): Pass to
5959 source_python_script_for_objfile also STREAM.
5960 (auto_load_objfile_script): Pass to source_python_script_for_objfile
5962 * python/python-internal.h (source_python_script_for_objfile): New
5963 parameter file, rename parameter file to filename.
5964 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
5965 instead if !_WIN32. Update the function comment.
5966 (source_python_script, source_python_script_for_objfile)
5967 (source_python_script): New parameter file, rename parameter file to
5968 filename. Pass FILENAME to python_run_simple_file.
5969 * python/python.h (source_python_script): New parameter file, rename
5970 parameter file to filename.
5972 2012-01-26 Pedro Alves <palves@redhat.com>
5974 * corelow.c (core_has_fake_pid): Delete.
5975 (core_close): Delete references to `core_has_fake_pid'.
5976 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
5977 (core_open): Delete references to `core_has_fake_pid'.
5978 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
5981 2012-01-26 Joel Brobecker <brobecker@adacore.com>
5983 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
5984 Remove language parameter from name_matcher. Adjust the comment.
5985 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
5986 Remove language parameter.
5987 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
5988 * linespec.c (iterate_name_matcher): Likewise.
5989 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
5990 name_matcher. Adjust call accordingly.
5991 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
5992 (maintenance_check_symtabs): Adjust type of parameter "fun".
5993 * psymtab.h (maintenance_check_symtabs): Likewise.
5995 2012-01-26 Joel Brobecker <brobecker@adacore.com>
5997 * language.h (symbol_name_match_p_ftype): New typedef.
5998 (struct language_defn): Replace field la_symbol_name_compare
5999 by la_get_symbol_name_match_p.
6000 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6001 (ada_language_defn): Use it.
6002 * linespec.c (struct symbol_matcher_data): New type.
6003 (iterate_name_matcher): Rewrite.
6004 (iterate_over_all_matching_symtabs): Pass a pointer to
6005 a symbol_matcher_data struct to expand_symtabs_matching
6006 instead of just the lookup name.
6007 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6008 opencl-lang.c, p-lang.c, language.c: Delete field
6009 la_symbol_name_compare, and replace by NULL for new field
6010 la_get_symbol_name_match_p.
6011 * symfile.h (struct quick_symbol_functions): Update comment.
6013 2012-01-25 Tom Tromey <tromey@redhat.com>
6015 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6018 2012-01-24 Tom Tromey <tromey@redhat.com>
6021 * solib.c (update_solib_list): Update the program space's
6022 added_solibs and deleted_solibs fields.
6023 * progspace.h (struct program_space) <added_solibs,
6024 deleted_solibs>: New fields.
6025 (clear_program_space_solib_cache): Declare.
6026 * progspace.c (release_program_space): Call
6027 clear_program_space_solib_cache.
6028 (clear_program_space_solib_cache): New function.
6029 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6030 bpstat_stop_status. Use handle_solib_event.
6031 * breakpoint.c: Include gdb_regex.h.
6032 (print_solib_event): New function.
6033 (bpstat_print): Use print_solib_event.
6034 (bpstat_stop_status): Add special case for bp_shlib_event.
6035 (handle_solib_event): New function.
6036 (bpstat_what): Use handle_solib_event.
6037 (struct solib_catchpoint): New.
6038 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6039 (breakpoint_hit_catch_solib, check_status_catch_solib)
6040 (print_it_catch_solib, print_one_catch_solib)
6041 (print_mention_catch_solib, print_recreate_catch_solib): New
6043 (catch_solib_breakpoint_ops): New global.
6044 (catch_load_or_unload, catch_load_command_1)
6045 (catch_unload_command_1): New functions.
6046 (internal_bkpt_check_status): Add special case for
6048 (internal_bkpt_print_it): Use print_solib_event.
6049 (initialize_breakpoint_ops): Initialize
6050 catch_solib_breakpoint_ops.
6051 (_initialize_breakpoint): Register "catch load" and "catch
6053 * breakpoint.h (handle_solib_event): Declare.
6054 * NEWS: Add entry for "catch load" and "catch unload".
6056 2012-01-24 Tom Tromey <tromey@redhat.com>
6058 * ada-lang.c: Include gdb_vecs.h.
6059 * charset.c: Include gdb_vecs.h.
6060 * tracepoint.h: Include gdb_vecs.h.
6061 * gdb_vecs.h: New file.
6063 2012-01-24 Pedro Alves <pedro@codesourcery.com>
6065 * breakpoint.c (breakpoint_hit_catch_fork)
6066 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6067 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6068 * infrun.c (inferior_has_forked, inferior_has_vforked)
6069 (inferior_has_execd, inferior_has_called_syscall): Delete.
6070 (handle_syscall_event): Get syscall_number from the execution
6071 control state's wait status.
6072 (wait_for_inferior): Don't clear syscall_number.
6074 2012-01-24 Pedro Alves <palves@redhat.com>
6076 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6077 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6078 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6079 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6081 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6082 false for events other than TARGET_SIGNAL_TRAP.
6083 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6085 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6086 events other than TARGET_SIGNAL_TRAP.
6087 (tracepoint_breakpoint_hit): Add `ws' parameter.
6088 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6090 (bpstat_stop_status): Same.
6091 (pc_at_non_inline_function): Same.
6092 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6093 to pass the current event's waitstatus to bpstat_stop_status
6094 and pc_at_non_inline_function.
6096 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6099 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6100 Update the function comment for it.
6101 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6102 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6105 2012-01-24 Pedro Alves <palves@redhat.com>
6107 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6108 outside `bs->stop' block.
6109 (bpstat_what): Rework bp_shlib_event handling.
6110 (internal_bkpt_check_status): If the breakpoint is a
6111 bp_shlib_event, then set bs->stop and bs->print if
6112 stop_on_solib_events is set.
6114 2012-01-24 Gary Benson <gbenson@redhat.com>
6116 Delete #if 0'd out code.
6117 * stack.c (print_frame_label_vars): Remove.
6118 (catch_info): Likewise.
6119 (_initialize_stack): Remove "info catch" command.
6120 * NEWS: Mention the above.
6122 2012-01-24 Pedro Alves <palves@redhat.com>
6124 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6126 (remote_notice_new_inferior): If the remote end doesn't support
6127 the multiprocess extensions, then the PID is fake.
6128 (add_current_inferior_and_thread): New.
6129 (remote_start_remote): Use it.
6130 (extended_remote_attach_1): Adjust.
6131 (extended_remote_create_inferior_1): Use
6132 add_current_inferior_and_thread.
6134 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6136 Fix watchpoints to be specific for each inferior.
6137 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6138 current_program_space.
6139 * i386-nat.c (i386_inferior_data_cleanup): New.
6140 (i386_inferior_data_get): Replace variable inf_data_local by an
6142 (i386_use_watchpoints): Initialize i386_inferior_data.
6143 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6144 specific iterate_over_lwps.
6146 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6148 Fix watchpoints across inferior fork.
6149 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6150 comment for linux_nat_iterate_watchpoint_lwps.
6151 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6152 linux_nat_iterate_watchpoint_lwps.
6153 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6154 * i386-linux-nat.c (update_debug_registers_callback): Update the
6155 comment for linux_nat_iterate_watchpoint_lwps.
6156 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6157 linux_nat_iterate_watchpoint_lwps.
6158 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6159 * i386-nat.c: Include inferior.h.
6160 (dr_mirror): Remove.
6161 (i386_inferior_data, struct i386_inferior_data)
6162 (i386_inferior_data_get): New.
6163 (i386_debug_reg_state): Use i386_inferior_data_get.
6164 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6165 (i386_insert_watchpoint, i386_remove_watchpoint)
6166 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6167 (i386_remove_hw_breakpoint): New variable state, use
6168 i386_debug_reg_state instead of DR_MIRROR.
6169 * linux-nat.c (delete_lwp): New declaration.
6170 (num_lwps): Move here from downwards.
6171 (delete_lwp_cleanup): New.
6172 (linux_child_follow_fork): Create new child_lp, call
6173 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6175 (num_lwps): Move upwards.
6176 (linux_nat_iterate_watchpoint_lwps): New.
6177 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6178 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6180 2012-01-24 Joel Brobecker <brobecker@adacore.com>
6184 2012-01-23 Pedro Alves <palves@redhat.com>
6186 * top.c (caution): Rename to ...
6187 (confirm): ... this.
6188 (show_caution): Rename to ...
6189 (show_confirm): ... this.
6190 (quit_cover): Adjust.
6191 (init_main): Adjust.
6192 * top.h (caution): Rename to ...
6193 (confirm): ... this.
6194 * utils.c (internal_vproblem, defaulted_query): Adjust.
6196 2012-01-23 Pedro Alves <palves@redhat.com>
6198 * top.c (caution): Update comment.
6199 (execute_command): Don't consider the current value of `caution'.
6201 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6203 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6205 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6207 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6208 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6209 * target.c (target_fileio_pwrite): Remove buffer address from
6211 (target_fileio_pread): Likewise.
6213 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6215 * NEWS: Document remote "info proc" and "generate-core-file".
6217 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6219 * gdbarch.sh (find_memory_regions): New callback.
6220 * gdbarch.c, gdbarch.h: Regenerate.
6222 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6223 callback before falling back to target method.
6225 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6226 (linux_target_install_ops): No longer install it.
6228 * linux-tdep.c (linux_find_memory_regions): New function.
6229 (linux_init_abi): Install it.
6231 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6233 * gdbarch.sh (make_corefile_notes): New architecture callback.
6234 * gdbarch.c: Regenerate.
6235 * gdbarch.h: Likewise.
6237 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6238 before target_make_corefile_notes. If NULL is returned, the
6239 target does not support core file generation.
6241 * linux-nat.c: Include "linux-tdep.h".
6242 (find_signalled_thread, find_stop_signal): Remove.
6243 (linux_nat_do_thread_registers): Likewise.
6244 (struct linux_nat_corefile_thread_data): Likewise.
6245 (linux_nat_corefile_thread_callback): Likewise.
6246 (iterate_over_spus): Likewise.
6247 (struct linux_spu_corefile_data): Likewise.
6248 (linux_spu_corefile_callback): Likewise.
6249 (linux_spu_make_corefile_notes): Likewise.
6250 (linux_nat_collect_thread_registers): New function.
6251 (linux_nat_make_corefile_notes): Replace contents by call to
6252 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6253 as native-only callback.
6255 * linux-tdep.h: Include "bfd.h".
6256 (struct regcache): Add forward declaration.
6257 (linux_collect_thread_registers_ftype): New typedef.
6258 (linux_make_corefile_notes): Add prototype.
6259 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6260 "regset.h", and "elf-bfd.h".
6261 (find_signalled_thread, find_stop_signal): New functions.
6262 (linux_spu_make_corefile_notes): Likewise.
6263 (linux_collect_thread_registers): Likewise.
6264 (struct linux_corefile_thread_data): New data structure.
6265 (linux_corefile_thread_callback): New funcion.
6266 (linux_make_corefile_notes): Likewise.
6267 (linux_make_corefile_notes_1): Likewise.
6268 (linux_init_abi): Install it.
6270 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6272 * gdbarch.sh (info_proc): New callback.
6273 * gdbarch.c, gdbarch.h: Regenerate.
6275 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6276 before falling back to the target info_proc callback.
6278 * linux-nat.c: Do not include "cli/cli-utils.h".
6279 (linux_nat_info_proc): Remove.
6280 (linux_target_install_ops): No longer install it.
6282 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6283 (read_mapping): New function.
6284 (linux_info_proc): Likewise.
6285 (linux_init_abi): Install it.
6287 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6289 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6290 * infcmd.c: (info_proc_cmd_1): New function.
6291 (info_proc_cmd): New function, moved here from equivalent routine
6292 orignally in linux-nat.c.
6293 (info_proc_cmd_mappings): Likewise.
6294 (info_proc_cmd_stat): Likewise.
6295 (info_proc_cmd_status): Likewise.
6296 (info_proc_cmd_cwd): Likewise.
6297 (info_proc_cmd_cmdline): Likewise.
6298 (info_proc_cmd_exe): Likewise.
6299 (info_proc_cmd_all): Likewise.
6300 (_initialize_infcmd): Install "info proc" command and subcommands.
6302 * target.h (struct target_ops): Add to_info_proc.
6303 (target_info_proc): Add prototype.
6304 * target.c (target_info_proc): New function.
6306 * procfs.c (procfs_info_proc): Add prototype.
6307 (info_proc_cmd): Rename into ...
6308 (procfs_info_proc): ... this. Update argument types as appropriate
6309 for a to_info_proc implementation. Handle "what" argument.
6310 (procfs_target): Install procfs_info_proc.
6311 (_initialize_procfs): No longer install "info proc" command.
6313 * linux-nat.c: (enum info_proc_what): Remove.
6314 (linux_nat_info_proc_cmd_1): Rename into ...
6315 (linux_nat_info_proc): ... this. Update argument types as appropriate
6316 for a to_info_proc implementation.
6317 (linux_nat_info_proc_cmd): Remove.
6318 (linux_nat_info_proc_cmd_mappings): Likewise.
6319 (linux_nat_info_proc_cmd_stat): Likewise.
6320 (linux_nat_info_proc_cmd_status): Likewise.
6321 (linux_nat_info_proc_cmd_cwd): Likewise.
6322 (linux_nat_info_proc_cmd_cmdline): Likewise.
6323 (linux_nat_info_proc_cmd_exe): Likewise.
6324 (linux_nat_info_proc_cmd_all): Likewise.
6325 (linux_target_install_ops): Install linux_nat_info_proc.
6326 (_initialize_linux_nat): No longer install "info proc" command
6329 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6331 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6332 * config.in, configure: Regenerate.
6334 * target.h (struct target_ops): Add to_fileio_readlink.
6335 (target_fileio_readlink): Add prototype.
6336 * target.c (target_fileio_readlink): New function.
6338 * inf-child.c: Conditionally include <sys/param.h>.
6339 (inf_child_fileio_readlink): New function.
6340 (inf_child_target): Install it.
6342 * remote.c (PACKET_vFile_readlink): New enum value.
6343 (remote_hostio_readlink): New function.
6344 (init_remote_ops): Install it.
6345 (_initialize_remote): Handle vFile:readlink packet type.
6347 2012-01-20 Pedro Alves <palves@redhat.com>
6348 Ulrich Weigand <ulrich.weigand@linaro.org>
6350 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6351 * config.in, configure: Regenerate.
6353 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6354 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6355 (target_fileio_open): Add prototype.
6356 (target_fileio_pwrite): Likewise.
6357 (target_fileio_pread): Likewise.
6358 (target_fileio_close): Likewise.
6359 (target_fileio_unlink): Likewise.
6360 (target_fileio_read_alloc): Likewise.
6361 (target_fileio_read_stralloc): Likewise.
6363 * target.c: Include "gdb/fileio.h".
6364 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6365 (default_fileio_target): New function.
6366 (target_fileio_open): Likewise.
6367 (target_fileio_pwrite): Likewise.
6368 (target_fileio_pread): Likewise.
6369 (target_fileio_close): Likewise.
6370 (target_fileio_unlink): Likewise.
6371 (target_fileio_close_cleanup): Likewise.
6372 (target_fileio_read_alloc_1): Likewise.
6373 (target_fileio_read_alloc): Likewise.
6374 (target_fileio_read_stralloc): Likewise.
6376 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6377 <fcntl.h>, and <unistd.h>.
6378 (inf_child_fileio_open_flags_to_host): New function.
6379 (inf_child_errno_to_fileio_error): Likewise.
6380 (inf_child_fileio_open): Likewise.
6381 (inf_child_fileio_pwrite): Likewise.
6382 (inf_child_fileio_pread): Likewise.
6383 (inf_child_fileio_close): Likewise.
6384 (inf_child_fileio_unlink): Likewise.
6385 (inf_child_target): Install to_fileio routines.
6387 * remote.c (init_remote_ops): Install to_fileio routines.
6389 2012-01-20 Pedro Alves <palves@redhat.com>
6390 Ulrich Weigand <ulrich.weigand@linaro.org>
6392 * remote.c (remote_multi_process_p): Only check for multi-process
6393 protocol feature, do not check for extended protocol.
6394 (remote_supports_multi_process): Check for extended protocol here.
6395 (set_general_process): Likewise.
6396 (extended_remote_kill): Likewise.
6397 (remote_pid_to_str): Likewise.
6398 (remote_query_supported): Always query multiprocess mode.
6400 2012-01-20 Pedro Alves <palves@redhat.com>
6401 Ulrich Weigand <ulrich.weigand@linaro.org>
6403 * inferior.h (struct inferior): Add fake_pid_p.
6404 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6405 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6406 magic_null_ptid since the remote side doesn't provide a real PID.
6408 2012-01-19 Tom Tromey <tromey@redhat.com>
6410 * NEWS: Combine the two Python sections.
6412 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6414 * target.h (target_close): Update comment on the target's unpush state.
6416 2012-01-19 Pedro Alves <palves@redhat.com>
6418 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6419 linux_nat_async directly instead of going through the target
6421 * target.c (unpush_target): Close target after unpushing it, not
6424 2012-01-19 Gary Benson <gbenson@redhat.com>
6426 * mdebugread.c (sort_blocks): Replace integer constants with ones
6427 derived from FIRST_LOCAL_BLOCK.
6429 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
6430 Jan Kratochvil <jan.kratochvil@redhat.com>
6433 * symfile.c (find_separate_debug_file): New function.
6434 (terminate_after_last_dir_separator): Likewise.
6435 (find_separate_debug_file_by_debuglink): Also try realpath.
6436 * configure.ac (AC_CHECK_FUNCS): Add lstat.
6437 * configure: Regenerate.
6438 * config.in: Regenerate.
6440 2012-01-18 Doug Evans <dje@google.com>
6442 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
6443 (main.o): Remove rule.
6444 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
6445 (--with-sysroot): Rewrite.
6446 * configure: Regenerate.
6447 * config.in: Regenerate.
6449 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
6451 * parse.c (initialize_expout): New function.
6452 (reallocate_expout): Likewise.
6453 (parse_exp_in_context): Use `initialize_expout' and
6454 `reallocate_expout' when appropriate.
6456 2012-01-18 Pedro Alves <palves@redhat.com>
6458 * record.c (struct record_breakpoint, record_breakpoint_p)
6459 (record_breakpoints): New.
6460 (record_insert_breakpoint, record_remove_breakpoint): Manage
6461 record breakpoints list. Only remove breakpoints from the
6462 inferior if they had been inserted there in the first place.
6464 2012-01-17 Doug Evans <dje@google.com>
6466 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
6467 if we know we don't have a file name to look for.
6469 2012-01-17 Pedro Alves <palves@redhat.com>
6471 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
6472 the frame's stop reason is UNWIND_UNAVAILABLE.
6474 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6476 Fix compilation error.
6477 * m2-exp.y (yyerror): Use ANSI C prototype.
6479 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6481 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
6482 (growbuf_by_size): Likewise.
6483 (yyerror): Likewise.
6484 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
6485 (modblock): Remove variable (was #if 0'ed).
6486 (parse_number): Convert prototype from K&R to ANSI C.
6487 (yyerror): Likewise.
6488 * objc-exp.y (parse_number): Likewise.
6489 (yyerror): Likewise.
6490 (yylex): Remove #if 0'ed code.
6491 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
6492 (yyerror): Likewise.
6494 2012-01-16 Tom Tromey <tromey@redhat.com>
6497 * symtab.h (compare_filenames_for_search): Declare.
6498 * symtab.c (compare_filenames_for_search): New function.
6499 (iterate_over_some_symtabs): Use it.
6500 * symfile.h (struct quick_symbol_functions)
6501 <map_symtabs_matching_filename>: Change spec.
6502 * psymtab.c (partial_map_symtabs_matching_filename): Use
6503 compare_filenames_for_search. Update for new spec.
6504 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
6505 compare_filenames_for_search. Update for new spec.
6506 * breakpoint.c (clear_command): Use compare_filenames_for_search.
6508 2012-01-16 Tom Tromey <tromey@redhat.com>
6511 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
6512 (struct main_type) <flag_flag_enum>: New field.
6513 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
6514 * NEWS: Add entries.
6515 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
6517 * python/lib/gdb/printing.py (_EnumInstance): New class.
6518 (FlagEnumerationPrinter): Likewise.
6520 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6522 * breakpoint.c (create_sals_from_address_default): New function.
6523 (create_breakpoints_sal_default): Likewise.
6524 (decode_linespec_default): Likewise.
6525 (is_marker_spec): Removed.
6526 (strace_marker_p): New function.
6527 (init_breakpoint_sal): Using `strace_marker_p' instead of
6529 (create_breakpoint): Call method `create_sals_from_address' from
6530 breakpoint_ops, replacing code that created SALs conditionally
6531 on the type of the breakpoint. Call method `create_breakpoints_sal',
6532 replacing code that created breakpoints conditionally on the type
6534 (base_breakpoint_create_sals_from_address): New function.
6535 (base_breakpoint_create_breakpoints_sal): Likewise.
6536 (base_breakpoint_decode_linespec): Likewise.
6537 (base_breakpoint_ops): Add methods
6538 `base_breakpoint_create_sals_from_address',
6539 `base_breakpoint_create_breakpoints_sal' and
6540 `base_breakpoint_decode_linespec'.
6541 (bkpt_create_sals_from_address): New function.
6542 (bkpt_create_breakpoints_sal): Likewise.
6543 (bkpt_decode_linespec): Likewise.
6544 (tracepoint_create_sals_from_address): Likewise.
6545 (tracepoint_create_breakpoints_sal): Likewise.
6546 (tracepoint_decode_linespec): Likewise.
6547 (strace_marker_create_sals_from_address): Likewise.
6548 (strace_marker_create_breakpoints_sal): Likewise.
6549 (strace_marker_decode_linespec): Likewise.
6550 (strace_marker_breakpoint_ops): New variable.
6551 (addr_string_to_sals): Remove `marker_spec'. Call method
6552 `decode_linespec' from breakpoint_ops, replacing code that decoded
6553 an address string into a SAL. Use `strace_marker_p' instead of
6555 (strace_command): Decide whether we are dealing with a static
6556 tracepoint with marker or not. Use the appropriate breakpoint_ops.
6557 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
6558 * breakpoint.h (linespec_result, linespec_sals): New forward
6560 (breakpoint_ops) <create_sals_from_address>,
6561 <create_breakpoints_sal>, <decode_linespec>: New methods.
6563 2012-01-14 Doug Evans <dje@google.com>
6565 * NEWS: Update text for "maint set python print-stack".
6566 It is deprecated in gdb 7.4 and deleted in 7.5.
6568 2012-01-13 Eli Zaretskii <eliz@gnu.org>
6570 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
6573 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6575 * configure: Regenerate.
6576 * config.in: Regenerate.
6578 2012-01-12 Keith Seitz <keiths@redhat.com>
6581 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
6582 (ANONYMOUS_UNION_NAME): Define.
6583 (is_path_expr_parent): New function.
6584 (get_path_expr_parent): New function.
6585 (is_anonymous_child): New function.
6586 (create_child_with_value): If the child is anonymous and without
6587 a name, assign an object name to it.
6588 (c_describe_child): Use get_path_expr_parent to determine
6589 the parent expression.
6590 If there field represents an anonymous struct or union and
6591 has no name, set an appropriate display name and expression.
6592 (cplus_describe_child): Likewise.
6594 2012-01-12 Pedro Alves <palves@redhat.com>
6596 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
6597 available when %ebp is found to be zero (outermost).
6599 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
6601 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
6602 an internal gdb_static_assert.
6603 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
6605 2012-01-11 Tom Tromey <tromey@redhat.com>
6608 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
6609 catch" and "catch throw".
6611 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
6613 * blockframe.c (block_innermost_frame): Start search from selected
6614 frame, if present, or otherwise the current frame.
6616 * c-exp.y (variable): Update innermost_block for
6617 'block COLONCOLON NAME' clause.
6618 * m2-exp.y (variable): Ditto.
6619 * objc-exp.y (variable): Ditto.
6621 2012-01-10 Tom Tromey <tromey@redhat.com>
6624 * python/python.c (finish_python_initialization): Set sys.argv.
6626 2012-01-10 Doug Evans <dje@google.com>
6628 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
6629 "want_line_info". All callers updated.
6630 (dwarf_decode_lines_1): New function.
6631 (handle_DW_AT_stmt_list): Add function comment.
6632 New arg "want_line_info". All callers updated.
6633 (read_file_scope,read_type_unit_scope): Move comment from
6634 handle_DW_AT_stmt_list to here.
6636 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6638 Fix regression after libiberty/ update for GCC PR 6057 and others.
6639 * c-exp.y (operator) <OPERATOR DELETE>
6640 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6641 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
6642 (make_builtin_type, make_name): New variable i, add gdb_assert.
6643 (operator) <OPERATOR NEW>: Update ARGS to 3.
6644 (operator) <OPERATOR DELETE>: Add trailing space.
6645 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
6646 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6647 * cp-support.c (cp_canonicalize_string): Check NULL from
6648 cp_comp_to_string, call warning and return.
6650 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6652 Fix duplicate .o files after omitting libbfd.a.
6653 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
6654 (SFILES): Add corelow.c.
6655 (COMMON_OBS): Add corelow.o.
6656 (ALLDEPFILES): Remove corelow.c.
6657 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
6658 * config/alpha/alpha-osf3.mh: Likewise.
6659 * config/alpha/fbsd.mh: Likewise.
6660 * config/arm/nbsdaout.mh: Likewise.
6661 * config/arm/nbsdelf.mh: Likewise.
6662 * config/i386/i386gnu.mh: Likewise.
6663 * config/ia64/hpux.mh: Likewise.
6664 * config/ia64/linux.mh: Likewise.
6665 * config/m32r/linux.mh: Likewise.
6666 * config/m68k/linux.mh: Likewise.
6667 * config/mips/irix5.mh: Likewise.
6668 * config/mips/irix6.mh: Likewise.
6669 * config/pa/hpux.mh: Likewise.
6670 * config/pa/linux.mh: Likewise.
6671 * config/powerpc/aix.mh: Likewise.
6672 * config/sparc/linux.mh: Likewise.
6673 * config/sparc/linux64.mh: Likewise.
6674 * config/sparc/sol2.mh: Likewise.
6675 * config/vax/vax.mh: Likewise.
6676 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
6677 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
6678 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
6679 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
6680 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
6681 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
6682 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
6683 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
6684 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
6685 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
6686 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
6687 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
6688 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6689 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
6690 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
6691 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6692 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
6693 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
6694 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
6695 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
6696 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
6697 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
6698 corelow.o from gdb_target_obs.
6699 * corefile.c (core_target): Update the comment on NULL value.
6700 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
6701 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
6702 MATCHES. Drop YUMMY set on NULL.
6703 (core_close): Do not call exit_inferior_silent on zero PID. Do not
6704 reclaim CORE_DATA if it is already NULL.
6706 2012-01-09 Doug Evans <dje@google.com>
6708 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
6709 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
6711 2012-01-09 Keith Seitz <keiths@redhat.com>
6713 * breakpoint.c (wrapper.h): Don't include.
6715 2012-01-09 Keith Seitz <keiths@redhat.com>
6717 * Makefile.in (SFILES): Remove wrapper.c.
6718 (HFILES_NO_SRCDIR): Remove wrapper.h.
6719 (COMMON_OBS): Remove wrapper.o.
6720 * cli/cli-interp.c: Don't inlude wrapper.h.
6721 * corelow.c: Likewise.
6722 (core_open): Replace gdb_target_find_new_threads with
6723 TRY_CATCH around target_find_new_threads.
6724 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
6725 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
6726 * varobj.c (varobj_create): Likewise for parse_exp_1 and
6727 evaluate_expression.
6728 (varobj_set_value): Likewise for evaluate_expression and
6730 (install_new_variable): Likewise for value_fetch_lazy.
6731 (adjust_value_for_child_access): Likewise for value_ind.
6732 (c_describe_child): Likewise for value_subscript and
6734 (c_value_of_root): Likewise for evaluate_expression.
6735 * wrapper.c: Remove.
6736 * wrapper.h: Remove.
6738 2012-01-09 Doug Evans <dje@google.com>
6740 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
6741 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
6742 "abfd" args with "section". All callers updated.
6743 Error checking code moved ...
6744 (error_check_comp_unit_head): ... here. New function.
6745 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
6746 Delete arg "abfd". New arg "type_offset". All callers updated.
6747 (create_debug_types_hash_table): Simplify by using
6748 read_and_check_type_unit_head.
6750 * parser-defs.h (namecopy): Delete.
6751 * parse.c (namecopy, namecopy_size): Move into copy_name.
6753 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6755 Partially fix duplicate .o files after omitting libbfd.a.
6756 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
6757 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6758 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
6759 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6760 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
6761 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
6762 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6764 2012-01-09 Pedro Alves <palves@redhat.com>
6766 * MAINTAINERS: Update my email address.
6768 2012-01-08 Doug Evans <dje@google.com>
6770 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
6771 n_type_units. Rename type_comp_units to all_type_units.
6773 (add_signatured_type_cu_to_table): Renamed from
6774 add_signatured_type_cu_to_list. All callers updated.
6776 * gdbtypes.h (struct cplus_struct_type): Delete member
6777 nfn_fields_total. All uses removed.
6779 2012-01-06 Doug Evans <dje@google.com>
6781 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
6783 (dwarf2_find_comp_unit): Delete.
6784 (process_psymtab_comp_unit): Make result "void".
6785 Delete args buffer, info_ptr, buffer_size, and replace with
6786 "section". All callers updated.
6787 (dwarf2_build_psymtabs_hard): Simplify.
6789 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
6790 Thiago Jung Bauermann <bauerman@br.ibm.com>
6792 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
6793 before `struct gdb_exception'.
6794 * breakpoint.c (update_global_location_list_nothrow)
6795 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
6796 * cp-abi.c (value_rtti_type): Likewise.
6797 * cp-support.c (cp_validate_operator): Likewise.
6798 * infrun.c (insert_exception_resume_breakpoint)
6799 (check_exception_resume, keep_going): Likewise.
6800 * mi-interp.c (mi_breakpoint_created)
6801 (mi_breakpoint_modified): Likewise.
6802 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
6803 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
6804 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
6806 2012-01-05 Doug Evans <dje@google.com>
6808 * dwarf2read.c (statement_prologue): Delete, unused.
6810 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
6811 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
6813 * dwarf2read.c (comp_unit_header): Delete, unused.
6815 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
6817 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
6818 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
6820 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
6822 * infrun.c (normal_stop): Don't skip calling the normal_stop
6823 observers if the thread was doing a multi-step, but stopped for
6824 some reason other than stepping.
6826 2012-01-05 Pedro Alves <alves.ped@gmail.com>
6828 * cli/cli-decode.h: Add comments.
6829 (CMD_LIST_AMBIGUOUS): Moved to command.h
6830 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
6831 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
6832 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
6833 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
6834 (add_com, add_com_alias, add_info, add_info_alias)
6835 (complete_on_cmdlist, complete_on_enum, help_list): Remove
6837 * command.h: Add and adjust comments.
6838 (CMD_LIST_AMBIGUOUS): Moved here.
6839 (help_cmd, help_cmd_list): Delete declarations.
6841 2012-01-04 Doug Evans <dje@google.com>
6843 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
6844 All callers updated.
6845 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
6846 Replace all arguments with "per_cu". All callers updated.
6848 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
6850 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
6851 New arg "per_cu". All callers updated.
6853 Delete #if 0'd out code.
6854 * language.c (binop_result_type): Delete.
6855 (simple_type, ordered_type, same_type, integral_type): Delete.
6856 (numeric_type, character_type, string_type, boolean_type): Delete.
6857 (float_type, structured_type): Delete.
6858 * language.h: Update.
6860 2012-01-04 Tom Tromey <tromey@redhat.com>
6862 * python/py-value.c (valpy_binop): Initialize 'res_val'.
6864 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6866 * corefile.c (close_exec_file): Delete.
6867 (reopen_exec_file): Remove commented out code that seems related
6868 to close_exec_file, which is being deleted here.
6869 * inferior.h (close_exec_file): Delete.
6870 * fork-child.c (fork_inferior): Remove call to fork_inferior.
6872 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6874 * ada-lang.c: #include "cli/cli-utils.h".
6875 (get_selections): Use skip_spaces.
6876 (ada_get_next_arg): Use skip_spaces and skip_to_space.
6877 (catch_ada_exception_command_split): Use skip_spaces.
6878 (ada_decode_assert_location): Likewise.
6880 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6882 * linespec.c (decode_line_internal): Check for C++ or Java
6883 compound constructs only if the current language is C, C++
6886 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6889 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6890 Joel Brobecker <brobecker@adacore.com>
6891 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
6892 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
6894 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
6895 fall through into AT_ENTRY_POINT.
6896 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
6898 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
6899 PPC_INSN_SIZE skip to 3 times.
6901 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6903 * linespec.c (add_minsym): Preserve function descriptors.
6905 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6907 * breakpoint.c (all_locations_are_pending): Consider locations
6908 in program spaces executing during startup pending as well.
6910 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6912 Copyright year update in most files of the GDB Project.
6914 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6916 * copyright.sh: Delete.
6917 * copyright.py: Rewrite.
6919 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6921 * gnulib/extra/update-copyright: New file, imported from gnulib.
6923 2012-01-04 Joel Brobecker <brobecker@adacore.com>
6925 * README (Copyright and License Notices): New section.
6927 2012-01-03 Tom Tromey <tromey@redhat.com>
6930 * python/py-value.c (valpy_dereference, valpy_get_address
6931 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
6932 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
6933 (valpy_absolute, valpy_richcompare): Free intermediate values.
6935 2011-01-03 Joel Brobecker <brobecker@adacore.com>
6937 * ada-lang.c: Reformat the copyright notice.
6939 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6941 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
6942 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
6943 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
6944 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
6945 Revert this part of:
6946 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6947 Build gdb directly from *.o files not using libgdb.a.
6948 * Makefile.in (COMMON_OBS): Remove solib-target.o.
6950 2012-01-02 Joel Brobecker <brobecker@adacore.com>
6952 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
6953 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
6954 Reformat the copyright header.
6956 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6958 Revert this part of:
6959 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6960 Remove the gdbtui binary.
6961 * gdb.c (main): Remove args.interpreter_p initialization.
6962 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
6963 * main.h (struct captured_main_args): Remove interpreter_p.
6965 2012-01-02 Joel Brobecker <brobecker@adacore.com>
6967 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
6969 2012-01-02 Joel Brobecker <brobecker@adacore.com>
6971 * top.c (print_gdb_version): Update copyright year.
6973 2012-01-02 Yao Qi <yao@codesourcery.com>
6975 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
6977 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6978 Joel Brobecker <brobecker@adacore.com>
6980 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
6981 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
6983 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
6984 fall through into AT_ENTRY_POINT.
6985 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
6987 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
6988 PPC_INSN_SIZE skip to 3 times.
6990 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6992 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
6994 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
6996 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6998 Build gdb directly from *.o files not using libgdb.a.
6999 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7000 (COMMON_OBS): Remove solib-target.o.
7001 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7002 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7003 (LIBGDB_OBS, libgdb.a): Move it above.
7004 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7005 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7006 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7007 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7008 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7009 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7010 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7011 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7012 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7013 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7014 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7015 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7016 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7017 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7018 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7019 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7020 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7021 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7022 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7023 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7024 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7025 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7026 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7027 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7028 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7029 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7030 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7032 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7034 Remove the gdbtui binary.
7035 * .gitignore (/gdbtui): Remove.
7036 * Makefile.in (TUI): Remove.
7037 (SUBDIR_TUI_OBS): Remove tui-main.o.
7038 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7039 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7040 (tui-main.o): Remove.
7041 (all_object_files): Remove tui-main.o.
7042 * NEWS: New note for the gdbtui removal.
7043 * configure: Rebuilt.
7044 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7045 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7046 CONFIG_UNINSTALL respectively.
7047 * gdb.c (main): Remove args.interpreter_p initialization.
7048 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7049 * main.h (struct captured_main_args): Remove interpreter_p.
7050 * tui/tui-main.c: Remove.
7052 2012-01-01 Doug Evans <dje@google.com>
7054 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7055 (dwarf2_physname, read_import_statement): Ditto.
7056 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7057 (process_structure_scope read_subroutine_type): Ditto.
7058 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7059 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7060 (dwarf2_fetch_die_location_block): Ditto.
7061 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7063 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7064 All callers updated.
7065 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7066 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7067 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7069 * dwarf2read.c (load_cu): Move assert to more useful location.
7071 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7072 All callers updated.
7074 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7075 (dwarf2_elf_names): Minor reformat.
7076 (dwarf2_per_cu_data): Tweak comment.
7077 (dwarf2_read_section): Fix comment.
7078 (create_all_comp_units): Fix comment.
7079 (load_full_comp_unit): Fix comment.
7080 (process_full_comp_unit): Fix comment.
7081 (read_signatured_type): Fix comment.
7083 For older changes see ChangeLog-2011.
7089 version-control: never