1 2012-04-26 Joel Brobecker <brobecker@adacore.com>
3 * version.in: Update GDB version number to 7.4.1.
5 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
10 2012-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
12 * p-typeprint.c (pascal_type_print_method_args):
13 Fix display of parameter of methods.
15 2012-03-20 Pedro Alves <palves@redhat.com>
17 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
20 2012-03-13 Hui Zhu <teawater@gmail.com>
21 Pedro Alves <palves@redhat.com>
23 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
24 CREATE_BREAKPOINT_FLAGS_INSERTED.
25 (create_breakpoint_sal, create_breakpoints_sal)
26 (create_breakpoint): New flags parameter. Pass it down.
27 (break_command_1, handle_gnu_v3_exceptions, trace_command)
28 (ftrace_command, strace_command): Adjust.
29 (create_tracepoint_from_upload): Pass
30 CREATE_BREAKPOINT_FLAGS_INSERTED.
31 * breakpoint.h (enum breakpoint_create_flags): New.
32 (create_breakpoint): New flags parameter.
33 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
34 * python/py-breakpoint.c (bppy_init): Adjust.
35 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
36 * spu-tdep.c (spu_catch_start): Adjust.
38 2012-03-13 Pedro Alves <palves@redhat.com>
39 Hui Zhu <teawater@gmail.com>
40 Yao Qi <yao@codesourcery.com>
42 * remote.c (struct remote_state): New field `starting_up'.
43 (remote_start_remote): Set and clear it.
44 (remote_can_download_tracepoint): If starting up, return false.
46 2012-03-06 Pedro Alves <palves@redhat.com>
50 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
51 the register state is clear, supply explicit zero, instead of
52 marking the register unavailable.
54 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
57 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
58 it after set_momentary_breakpoint.
60 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
63 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
64 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
65 * configure: Regenerate.
67 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
69 * configure: Regenerate.
70 * config.in: Regenerate.
72 2012-01-24 Joel Brobecker <brobecker@adacore.com>
74 * version.in: Set version to 7.4.0.20120124-cvs.
76 2012-01-24 Joel Brobecker <brobecker@adacore.com>
80 2012-01-24 Joel Brobecker <brobecker@adacore.com>
82 * NEWS: Change "since GDB 7.3.1" into "in GDB 7.4".
84 2012-01-24 Joel Brobecker <brobecker@adacore.com>
86 * version.in: Update GDB version number to 7.4.
88 2012-01-14 Doug Evans <dje@google.com>
90 Restore "mt set python print-stack on|off" for 7.4.
91 * NEWS: Update to indicate "mt set python print-stack" is deprecated,
92 but not deleted yet, and will be gone in gdb 7.5.
93 * python/python.c (maint_set_python_list, maint_show_python_list):
95 (maint_set_python, maint_show_python): New functions.
96 (gdbpy_should_print_stack_deprecated): New global var.
97 (set_maint_python_print_stack): New function.
98 (show_maint_python_print_stack): New function.
99 (_initialize_python): Define commands
100 "mt set python print-stack on|off" and ""mt show python print-stack".
102 2012-01-13 Eli Zaretskii <eliz@gnu.org>
104 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
107 2012-01-12 Pedro Alves <palves@redhat.com>
109 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
110 available when %ebp is found to be zero (outermost).
112 2012-01-10 Doug Evans <dje@google.com>
114 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
115 "want_line_info". All callers updated.
116 (dwarf_decode_lines_1): New function.
117 (handle_DW_AT_stmt_list): Add function comment.
118 New arg "want_line_info". All callers updated.
119 (read_file_scope,read_type_unit_scope): Move comment from
120 handle_DW_AT_stmt_list to here.
122 2012-01-06 Joel Brobecker <brobecker@adacore.com>
124 * version.in: Set version to 7.3.92.20120106-cvs.
126 2012-01-06 Joel Brobecker <brobecker@adacore.com>
130 2012-01-06 Joel Brobecker <brobecker@adacore.com>
132 * version.in: Update GDB version number to 7.3.92.
134 2012-01-06 Joel Brobecker <brobecker@adacore.com>
136 Copyright year update in most files of the GDB Project.
138 2012-01-06 Joel Brobecker <brobecker@adacore.com>
140 * README (Copyright and License Notices): New section.
142 2012-01-06 Joel Brobecker <brobecker@adacore.com>
144 * ada-lang.c: Reformat the copyright notice.
146 2012-01-06 Joel Brobecker <brobecker@adacore.com>
148 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
149 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
150 Reformat the copyright header.
152 2012-01-06 Joel Brobecker <brobecker@adacore.com>
154 * top.c (print_gdb_version): Update copyright year.
156 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
159 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
160 Joel Brobecker <brobecker@adacore.com>
161 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
162 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
164 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
165 fall through into AT_ENTRY_POINT.
166 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
168 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
169 PPC_INSN_SIZE skip to 3 times.
171 2012-01-04 Joel Brobecker <brobecker@adacore.com>
173 * linespec.c (add_minsym): Preserve function descriptors.
175 2012-01-04 Joel Brobecker <brobecker@adacore.com>
177 * linespec.c (struct collect_minsyms) [list_mode]: New field.
178 (add_minsym): Ignore data symbols if not in list mode.
179 (search_minsyms_for_name): Set local.list_mode.
181 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
183 * breakpoint.c (all_locations_are_pending): Consider locations
184 in program spaces executing during startup pending as well.
186 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
187 Joel Brobecker <brobecker@adacore.com>
189 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
190 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
192 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
193 fall through into AT_ENTRY_POINT.
194 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
196 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
197 PPC_INSN_SIZE skip to 3 times.
199 2012-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
201 * NEWS (Changes in GDB 7.4): Add gdbtui deprecation note.
202 * tui/tui-main.c: Likewise.
204 2011-12-23 Kevin Pouget <kevin.pouget@st.com>
206 Introduce gdb.FinishBreakpoint in Python
207 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-finishbreakpoint.o.
208 (SUBDIR_PYTHON_SRCS): Add python/py-finishbreakpoint.c.
209 Add build rule for this file.
210 * infcmd.c (print_return_value): Split to create get_return_value.
211 (get_return_value): New function based on print_return_value. Handle
212 case where stop_registers are not set.
213 * inferior.h (get_return_value): New prototype.
214 * python/py-breakpoint.c (bppy_pending_object): Make non-static.
215 (gdbpy_breakpoint_created): Set is_py_finish_bp is necessary.
216 (struct breakpoint_object): Move to python-internal.h
217 (BPPY_REQUIRE_VALID): Likewise.
218 (BPPY_SET_REQUIRE_VALID): Likewise.
219 (gdbpy_breakpoint_created): Initialize is_finish_bp.
220 (gdbpy_should_stop): Add pre/post hooks before/after calling stop
222 * python/python-internal.h (breakpoint_object_type): Add as extern.
223 (bppy_pending_object): Likewise.
224 (typedef struct breakpoint_object) Removed.
225 (struct breakpoint_object): Moved from py-breakpoint.c.
226 Add field is_finish_bp.
227 (BPPY_REQUIRE_VALID): Moved from py-breakpoint.c.
228 (BPPY_SET_REQUIRE_VALID): Likewise.
229 (frame_object_to_frame_info): New prototype.
230 (gdbpy_initialize_finishbreakpoints): New prototype.
231 (bpfinishpy_is_finish_bp): Likewise.
232 (bpfinishpy_pre_stop_hook): Likewise.
233 (bpfinishpy_post_stop_hook): Likewise.
234 * python/py-finishbreakpoint.c: New file.
235 * python/py-frame.c(frame_object_to_frame_info): Make non-static and
236 accept PyObject instead of frame_object.
237 (frapy_is_valid): Don't cast to frame_object.
238 (frapy_name): Likewise.
239 (frapy_type): Likewise.
240 (frapy_unwind_stop_reason): Likewise.
241 (frapy_pc): Likewise.
242 (frapy_block): Likewise.
243 (frapy_function): Likewise.
244 (frapy_older): Likewise.
245 (frapy_newer): Likewise.
246 (frapy_find_sal): Likewise.
247 (frapy_read_var): Likewise.
248 (frapy_select): Likewise.
249 * python/python.c (gdbpy_is_stopped_at_finish_bp): New noop function.
250 (_initialize_python): Add gdbpy_initialize_finishbreakpoints.
251 * python/python.h: Include breakpoint.h
252 (gdbpy_is_stopped_at_finish_bp): New prototype.
254 2011-12-22 Andreas Schwab <schwab@linux-m68k.org>
256 * ppc-linux-nat.c (create_watchpoint_request): Only use ranged
257 watchpoints when supported.
259 * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
262 2011-12-21 Ulrich Weigand <ulrich.weigand@linaro.org>
265 * arm-tdep.c (arm_return_value): Handle complex types.
267 2011-12-19 Doug Evans <dje@google.com>
269 * python/py-auto-load.c (info_auto_load_scripts): Pass address of
270 scripts vector to collect_matching_scripts.
271 (collect_matching_scripts): Update.
273 2011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com>
275 * symfile.c (reread_symbols): Move free_objfile_separate_debug,
276 preserve_values, sym_finish and clear_objfile_data calls before BFD
277 close. Move free_objfile_separate_debug as the very first call. New
278 comment on the ordering.
280 2011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
282 * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
285 2011-12-17 Mark Kettenis <kettenis@gnu.org>
287 * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
288 regset_from_core_section.
289 (amd64obsd_core_init_abi): New function that sets
290 regset_from_core_section.
291 (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
292 traditional core dumps.
294 2011-12-17 Mark Kettenis <kettenis@gnu.org>
296 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
297 trampoline to be introduced in OpenBSD 5.0.
299 2011-12-16 Tom Tromey <tromey@redhat.com>
301 * linespec.c (collect_symbols): Call maybe_add_address after
302 calling symbol_to_sal.
303 (minsym_found): Call maybe_add_address here.
304 (search_minsyms_for_name): Don't call maybe_add_address.
306 2011-12-16 Tom Tromey <tromey@redhat.com>
308 * linespec.c (struct collect_info) <objfile>: Remove field.
309 (decode_objc): Update.
310 (find_method): Update.
311 (decode_variable): Update.
312 (struct minsym_and_objfile): New.
313 (struct collect_minsyms): New.
314 (classify_mtype): New function.
315 (compare_msyms): Likewise.
316 (add_minsym): Likewise.
317 (check_minsym): Remove.
318 (search_minsyms_for_name): Sort minsyms and apply only those with
321 2011-12-16 Tom Tromey <tromey@redhat.com>
323 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
325 2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
327 * python/python.c: Define python_excp_enums.
328 (eval_python_from_control_command): Do not call gdbpy_print_stack.
329 (python_command): Ditto.
330 (gdbpy_print_stack): Rewrite to use new enum constants.
331 (maint_set_python): Remove function.
332 (maint_show_python): Ditto.
333 (_initialize_python): Do not add "maint" commands. Add "set/show
334 python print-stack commands".
335 * NEWS: Update to reflect removal for "maint set/show
338 2011-12-15 Tom Tromey <tromey@redhat.com>
340 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
343 2011-12-14 Pedro Alves <pedro@codesourcery.com>
345 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
346 target_write_raw_memory.
347 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
348 target_write_raw_memory.
349 * microblaze-linux-tdep.c
350 (microblaze_linux_memory_remove_breakpoint): Use
351 target_write_raw_memory.
352 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
353 target_write_raw_memory.
355 2011-12-14 Yao Qi <yao@codesourcery.com>
357 * breakpoint.c (create_breakpoint): Set canonical.addr_string
358 for static tracepoint.
360 2011-12-13 Joel Brobecker <brobecker@adacore.com>
362 * version.in: Set version to 7.3.91.20111213-cvs.
364 2011-12-13 Joel Brobecker <brobecker@adacore.com>
368 2011-12-13 Joel Brobecker <brobecker@adacore.com>
370 * version.in: Update GDB version number to 7.3.91.
372 2011-12-13 Joel Brobecker <brobecker@adacore.com>
374 * configure.ac: Disable -Werror by default.
375 * configure: Regenerate.
377 2011-12-13 Joel Brobecker <brobecker@adacore.com>
379 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
380 * version.in: Bump version to 7.3.90.20111213-cvs.
382 2011-12-11 Joel Brobecker <brobecker@adacore.com>
384 * ada-lang.c (ada_exception_support_info_sniffer): Improve
387 2011-12-11 Joel Brobecker <brobecker@adacore.com>
389 * ada-lang.c (struct ada_inferior_data) [exception_info]:
391 (exception_info): Delete.
392 (ada_exception_support_info_sniffer): Get exception_support_info
393 data from our per-inferior data. Adjust code accordingly.
394 (ada_unhandled_exception_name_addr_from_raise): Likewise.
395 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
396 (ada_executable_changed_observer): Delete.
397 (_initialize_ada_language): Remove call to
398 observer_attach_executable_changed.
400 2011-12-11 Joel Brobecker <brobecker@adacore.com>
402 * ada-lang.c (ada_has_this_exception_support): Raise an error
403 if we could find the Ada exception hook in the Ada runtime,
404 but no debugging info for that hook.
406 2011-12-11 Joel Brobecker <brobecker@adacore.com>
408 * ada-lang.c (ada_has_this_exception_support): New function,
409 extracted out of ada_exception_sal and ada_exception_sal.
410 (ada_exception_support_info_sniffer): Simplify by using
411 ada_has_this_exception_support.
412 (ada_exception_sal): Replace unnecessary checks by assertions.
413 Minor simplifications.
415 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
417 * breakpoint.c (update_global_location_list): Remove nested
418 definition of `b'(-Wshadow).
420 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
422 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
423 `error_flag'(-Wshadow).
425 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
427 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
430 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
432 * annotate.c (annotate_array_section_begin): Rename `index' to
435 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
437 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
440 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
442 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
443 `syscall' to `syscall_number'(-Wshadow).
445 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
447 * ada-lang.c (remove_extra_symbols): Rename `remove' to
448 `remove_p'(-Wshadow).
450 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
452 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
455 2011-12-10 Doug Evans <dje@google.com>
457 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
458 debug_types_section. All uses updated.
459 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
460 to is_debug_types_section.
462 * python/py-auto-load.c (source_section_scripts): Call xfree
465 2011-12-10 Hui Zhu <teawater@gmail.com>
466 Yao Qi <yao@codesourcery.com>
468 * tracepoint.c (start_tracing): Clear `inserted' flag.
470 2011-12-10 Hui Zhu <teawater@gmail.com>
472 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
474 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
476 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
479 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
481 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
482 `marker' variables to `sal2' and `tpmarker' respectively
485 2011-12-09 Andrew Pinski <apinski@cavium.com>
487 * linespec.c (hash_address_entry): Use iterative_hash_object on each
488 field rather than the struct itself.
490 2011-12-09 Tom Tromey <tromey@redhat.com>
492 * breakpoint.c (compare_breakpoints): New function.
493 (clear_command): Remove duplicate breakpoints. Properly clean
496 2011-12-08 Maciej W. Rozycki <macro@mips.com>
497 Maciej W. Rozycki <macro@codesourcery.com>
499 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
500 address chunks retrieved from decoded lui/addiu pairs.
502 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
504 * mips-tdep.c (extended_offset): Correct calculation.
505 (unpack_mips16): Correct bitfield positions used for extraction
506 of the immediate argument; fix sign-extension of same.
507 (extended_mips16_next_pc): Correct B instruction's offset
508 calculation. Correct register decoding of the BEQZ and BNEZ
509 as well as jump-register instructions. Handle compact jumps.
511 2011-12-08 Tom Tromey <tromey@redhat.com>
513 * objfiles.h (struct objfile): Remove obsolete comment.
514 * objfiles.c (build_objfile_section_table): Remove obsolete
517 2011-12-07 Stan Shebs <stan@codesourcery.com>
519 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
520 maintainer of the tic6x target.
522 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
524 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
525 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
526 (arm_deal_with_atomic_sequence_raw): Likewise.
527 (arm_deal_with_atomic_sequence): Likewise.
528 (arm_software_single_step): Call it.
529 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
531 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
533 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
535 * s390-tdep.h: Likewise.
537 2011-12-07 Tristan Gingold <gingold@adacore.com>
539 * machoread.c (macho_symtab_read): Do not consider N_OPT as
540 a debugging stab. Improve complaint message.
542 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
544 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
545 load adjustment if still within the prologue.
547 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
549 * mips-tdep.c (mips32_next_pc): Fix floating point condition
552 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
554 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
555 of BLTZ* and BGEZ* instructions.
557 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
559 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
560 performed to determine whether an address refers to standard
562 (mips16_next_pc): Use mips_pc_is_mips16 instead of
565 2011-12-06 Pedro Alves <pedro@codesourcery.com>
567 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
568 (breakpoint_xfer_memory): ... this. Change prototype. Handle
570 * breakpoint.h (breakpoint_restore_shadows): Delete.
571 (breakpoint_xfer_memory): Declare.
572 * mem-break.c (default_memory_insert_breakpoint)
573 (default_memory_remove_breakpoint): Use target_write_raw_memory.
574 (memory_xfer_partial): Rename to ...
575 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
577 (memory_xfer_partial): New.
578 (target_write_raw_memory): New.
579 * target.h (target_write_raw_memory): New.
581 2011-12-06 Doug Evans <dje@google.com>
583 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
585 2011-12-06 Joel Brobecker <brobecker@acacore.com>
587 * language.h (struct language_defn): Add new component
588 la_symbol_name_compare.
589 * symfile.h (struct quick_symbol_functions): Update the profile
590 of parameter "name_matcher" for the expand_symtabs_matching
591 method. Update the documentation accordingly.
592 * ada-lang.h (ada_name_for_lookup): Add declaration.
593 * ada-lang.c (ada_name_for_lookup): New function, extracted out
594 from ada_iterate_over_symbols.
595 (ada_iterate_over_symbols): Do not encode symbol name anymore.
596 (ada_expand_partial_symbol_name): Adjust profile.
597 (ada_language_defn): Add value for la_symbol_name_compare field.
598 * linespec.c: #include "ada-lang.h".
599 (iterate_name_matcher): Add language parameter. Replace call
600 to strcmp_iw by call to language->la_symbol_name_compare.
601 (decode_variable): Encode COPY if current language is Ada.
602 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
603 of name_matcher parameter. Adjust call to name_matcher.
604 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
605 (expand_partial_symbol_names): Update profile of parameter "fun".
606 * psymtab.h (expand_partial_symbol_names): Update profile of
608 * symtab.c (demangle_for_lookup): Update function documentation.
609 (search_symbols_name_matches): Add language parameter.
610 (expand_partial_symbol_name): Likewise.
611 * c-lang.c (c_language_defn, cplus_language_defn)
612 (asm_language_defn, minimal_language_defn): Add value for
613 la_symbol_name_compare field.
614 * d-lang.c (d_language_defn): Likewise.
615 * f-lang.c (f_language_defn): Ditto.
616 * jv-lang.c (java_language_defn): Ditto.
617 * m2-lang.c (m2_language_defn): Ditto.
618 * objc-lang.c (objc_language_defn): Ditto.
619 * opencl-lang.c (opencl_language_defn): Ditto.
620 * p-lang.c (pascal_language_defn): Ditto.
621 * language.c (unknown_language_defn, auto_language_defn)
622 (local_language_defn): Ditto.
624 2011-12-06 Tom Tromey <tromey@redhat.com>
626 * linespec.c (iterate_over_all_matching_symtabs): Use
627 LA_ITERATE_OVER_SYMBOLS.
628 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
629 (find_function_symbols, decode_variable): Remove Ada special
631 * language.h (struct language_defn) <la_iterate_over_symbols>: New
633 (LA_ITERATE_OVER_SYMBOLS): New macro.
634 * language.c (unknown_language_defn, auto_language_defn)
635 (local_language_defn): Update.
636 * c-lang.c (c_language_defn, cplus_language_defn)
637 (asm_language_defn, minimal_language_defn): Update.
638 * d-lang.c (d_language_defn): Update.
639 * f-lang.c (f_language_defn): Update.
640 * jv-lang.c (java_language_defn): Update.
641 * m2-lang.c (m2_language_defn): Update.
642 * objc-lang.c (objc_language_defn): Update.
643 * opencl-lang.c (opencl_language_defn): Update.
644 * p-lang.c (pascal_language_defn): Update.
645 * ada-lang.c (ada_iterate_over_symbols): New function.
646 (ada_language_defn): Update.
648 2011-12-06 Tom Tromey <tromey@redhat.com>
649 Joel Brobecker <brobecker@acacore.com>
651 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
652 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
653 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
654 PR shlibs/8929, PR shlibs/7393:
655 * python/py-type.c (compare_maybe_null_strings): Rename from
657 (check_types_equal): Update.
658 * utils.c (compare_strings): New function.
659 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
661 * tracepoint.c (scope_info): Update.
662 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
663 * symtab.h (iterate_over_minimal_symbols)
664 (iterate_over_some_symtabs, iterate_over_symtabs)
665 (find_pcs_for_symtab_line, iterate_over_symbols)
666 (demangle_for_lookup): Declare.
667 (expand_line_sal): Remove.
668 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
669 (lookup_symtab_callback): New functions.
670 (lookup_symtab): Rewrite.
671 (demangle_for_lookup): New function, extract from
672 lookup_symbol_in_language.
673 (lookup_symbol_in_language): Use it.
674 (iterate_over_symbols): New function.
675 (find_line_symtab): Update.
676 (find_pcs_for_symtab_line): New functions.
677 (find_line_common): Add 'start' argument.
678 (decode_line_spec): Update. Change argument to 'flags', change
680 (append_expanded_sal): Remove.
681 (append_exact_match_to_sals): Remove.
682 (expand_line_sal): Remove.
683 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
685 <map_symtabs_matching_filename>: New field.
686 * stack.c (func_command): Only look in the current program space.
687 Use DECODE_LINE_FUNFIRSTLINE.
688 * source.c (line_info): Set pspace on sal. Check program space in
689 the loop. Use DECODE_LINE_LIST_MODE.
690 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
691 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
692 * python/python.c (gdbpy_decode_line): Update.
693 * psymtab.c (partial_map_expand_apply): New function.
694 (partial_map_symtabs_matching_filename): Rename from
695 lookup_partial_symbol. Update arguments.
696 (lookup_symtab_via_partial_symtab): Remove.
697 (psym_functions): Update.
698 * objc-lang.h (parse_selector, parse_method): Don't declare.
700 * objc-lang.c (parse_selector, parse_method): Now static.
701 (find_methods): Change arguments. Fill in a vector of symbol
703 (uniquify_strings): New function.
704 (find_imps): Change arguments.
705 * minsyms.c (iterate_over_minimal_symbols): New function.
706 * linespec.h (enum decode_line_flags): New.
707 (struct linespec_sals): New.
708 (struct linespec_result) <canonical>: Remove.
709 <pre_expanded, addr_string, sals>: New fields.
710 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
711 (decode_line_full): Declare.
712 (decode_line_1): Update.
713 * linespec.c (struct address_entry, struct linespec_state, struct
714 collect_info): New types.
715 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
716 (eq_address_entry, maybe_add_address): New functions.
717 (total_number_of_methods): Remove.
718 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
720 (find_methods): Change arguments. Don't canonicalize input.
722 (add_matching_methods, add_constructors)
723 (build_canonical_line_spec): Remove.
724 (filter_results, convert_results_to_lsals): New functions.
725 (decode_line_2): Change arguments. Rewrite for new data
727 (decode_line_internal): Rename from decode_line_1. Change
728 arguments. Add cleanups. Update for new data structures.
729 (linespec_state_constructor, linespec_state_destructor)
730 (decode_line_full, decode_line_1): New functions.
731 (decode_indirect): Change arguments. Update.
732 (locate_first_half): Use skip_spaces.
733 (decode_objc): Change arguments. Update for new data structures.
735 (decode_compound): Change arguments. Add cleanups. Remove
736 fallback code, replace with error.
737 (struct decode_compound_collector): New type.
738 (collect_one_symbol): New function.
739 (lookup_prefix_sym): Change arguments. Update.
740 (compare_symbol_name, add_all_symbol_names_from_pspace)
741 (find_superclass_methods ): New functions.
742 (find_method): Rewrite.
743 (struct symtab_collector): New type.
744 (add_symtabs_to_list, collect_symtabs_from_filename): New
746 (symtabs_from_filename): Change API. Rename from
747 symtab_from_filename.
748 (collect_function_symbols): New function.
749 (find_function_symbols): Change API. Rename from
750 find_function_symbol. Rewrite.
751 (decode_all_digits): Change arguments. Rewrite.
752 (decode_dollar): Change arguments. Use decode_variable.
753 (decode_label): Change arguments. Rewrite.
754 (collect_symbols): New function.
755 (minsym_found): Change arguments. Rewrite.
756 (check_minsym, search_minsyms_for_name)
757 (add_matching_symbols_to_info): New function.
758 (decode_variable): Change arguments. Iterate over all symbols.
759 (symbol_found): Remove.
760 (symbol_to_sal): New function.
761 (init_linespec_result, destroy_linespec_result)
762 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
764 (decode_digits_list_mode, decode_digits_ordinary): New functions.
765 * dwarf2read.c (dw2_map_expand_apply): New function.
766 (dw2_map_symtabs_matching_filename): Rename from
767 dw2_lookup_symtab. Change arguments.
768 (dwarf2_gdb_index_functions): Update.
769 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
770 * defs.h (compare_strings): Declare.
771 * cli/cli-cmds.c (compare_strings): Move to utils.c.
772 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
774 (compare_symtabs, filter_sals): New functions.
775 * breakpoint.h (struct bp_location) <line_number, source_file>:
777 (struct breakpoint) <line_number, source_file>: Remove.
779 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
780 (momentary_breakpoint_from_master, add_location_to_breakpoint):
781 Update for changes to locations.
782 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
784 (create_breakpoint_sal): Add 'filter' argument.
785 (remove_sal, expand_line_sal_maybe): Remove.
786 (create_breakpoints_sal): Remove 'sals' argument. Handle
787 pre-expanded sals and the filter.
788 (parse_breakpoint_sals): Use decode_line_full.
789 (check_fast_tracepoint_sals): Use get_sal_arch.
790 (create_breakpoint): Create a linespec_sals. Update.
791 (break_range_command): Use decode_line_full. Update.
792 (until_break_command): Update.
793 (clear_command): Update match conditions for linespec.c changes.
794 Use DECODE_LINE_LIST_MODE.
795 (say_where): Update for changes to locations.
796 (bp_location_dtor): Free 'source_file'.
797 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
798 (update_static_tracepoint): Update for changes to locations.
799 (update_breakpoint_locations): Disable ranged breakpoint if too
800 many locations match. Update.
801 (addr_string_to_sals): Use decode_line_full. Resolve all sal
803 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
804 (decode_line_spec_1): Update. Change argument name to 'flags',
805 change interpretation.
806 * block.h (block_containing_function): Declare.
807 * block.c (block_containing_function): New function.
808 * skip.c (skip_function_command): Update.
809 (skip_re_set): Update.
810 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
811 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
814 2011-12-06 Tom Tromey <tromey@redhat.com>
816 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
817 breakpoint's pspace to be NULL.
818 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
819 * breakpoint.c (init_raw_breakpoint): Conditionally set
821 (init_breakpoint_sal): Don't set breakpoint's pspace.
822 (prepare_re_set_context): Conditionally switch program space.
823 (addr_string_to_sals): Check executing_startup on location's
826 2011-12-06 Tom Tromey <tromey@redhat.com>
828 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
829 * breakpoint.c (should_be_inserted): Explicitly check if program
830 space is executing startup.
831 (describe_other_breakpoints): Update.
832 (disable_breakpoints_before_startup): Change executing_startup
833 earlier. Remove loop.
834 (enable_breakpoints_after_startup): Likewise.
835 (init_breakpoint_sal): Don't use bp_startup_disabled.
836 (create_breakpoint): Don't use bp_startup_disabled.
837 (update_global_location_list): Use should_be_inserted.
838 (bkpt_re_set): Update.
840 2011-12-06 Tom Tromey <tromey@redhat.com>
842 * python/lib/gdb/command/pretty_printers.py
843 (InfoPrettyPrinter.invoke1): Remove extra double quote.
845 2011-12-06 Tom Tromey <tromey@redhat.com>
849 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
851 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
852 (S390_LAST_BREAK_REGNUM): Likewise.
853 (S390_SYSTEM_CALL_REGNUM): Likewise.
854 (S390_NUM_REGS): Update.
856 (s390_regmap_last_break): Add declaration.
857 (s390x_regmap_last_break): Likewise.
858 (s390_regmap_system_call): Likewise.
860 (tdesc_s390_linux32v1): Add declaration.
861 (tdesc_s390_linux32v2): Likewise.
862 (tdesc_s390_linux64v1): Likewise.
863 (tdesc_s390_linux64v2): Likewise.
864 (tdesc_s390x_linux64v1): Likewise.
865 (tdesc_s390x_linux64v2): Likewise.
867 * s390-tdep.c: Include new target description files
868 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
869 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
870 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
871 (s390_cannot_store_register): New function.
872 (s390_write_pc): Likewise.
873 (s390_dwarf_regmap): Add fields for new registers.
874 (s390_regmap_gregset): Likewise.
875 (s390x_regmap_gregset): Likewise.
876 (s390_regmap_fpregset): Likewise.
877 (s390_regmap_upper): Likewise.
878 (s390_regmap_last_break): New variable.
879 (s390x_regmap_last_break): Likewise.
880 (s390_regmap_system_call): Likewise.
881 (s390_last_break_regset): Likewise.
882 (s390x_last_break_regset): Likewise.
883 (s390_system_call_regset): Likewise.
884 (s390_upper_regset_sections): Rename to ...
885 (s390_linux64_regset_sections): ... this.
886 (s390_linux32_regset_sections): New variable.
887 (s390x_linux64_regset_sections): Likewise.
888 (s390_linux32v1_regset_sections): Likewise.
889 (s390_linux32v2_regset_sections): Likewise.
890 (s390_linux64v1_regset_sections): Likewise.
891 (s390_linux64v2_regset_sections): Likewise.
892 (s390x_linux64v1_regset_sections): Likewise.
893 (s390x_linux64v2_regset_sections): Likewise.
894 (s390_regset_from_core_section): Handle .reg-s390-last-break and
895 .reg-s390-system-call core file sections.
896 (s390_core_read_description): Check for presence of
897 .reg-s390-last-break and .reg-s390-system-call core file
898 sections and return appropriate target description.
899 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
900 "last_break" and "system_call" in target description. Install
901 appropriate gdbarch_core_regset_sections array.
902 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
903 (_initialize_s390_tdep): Initialize additional target descriptions.
905 * s390-nat.c: Include "elf/common.h".
906 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
907 (have_regset_last_break): New static variable.
908 (have_regset_system_call): Likewise.
909 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
910 (s390_native_collect): Likewise.
911 (fetch_regset, store_regset, check_regset): New functions.
912 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
913 and S390_SYSTEM_CALL_REGNUM.
914 (s390_linux_store_inferior_registers): Likewise.
915 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
916 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
918 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
919 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
920 (s390-linux32v1-expedite): Define.
921 (s390-linux32v2-expedite): Likewise.
922 (s390-linux64v1-expedite): Likewise.
923 (s390-linux64v2-expedite): Likewise.
924 (s390x-linux64v1-expedite): Likewise.
925 (s390x-linux64v2-expedite): Likewise.
927 * features/s390-linux32.xml: Add orig_r2 register.
928 * features/s390-linux64.xml: Likewise.
929 * features/s390x-linux64.xml: Likewise.
930 * features/s390-linux32v1.xml: New file.
931 * features/s390-linux32v2.xml: Likewise.
932 * features/s390-linux64v1.xml: Likewise.
933 * features/s390-linux64v2.xml: Likewise.
934 * features/s390x-linux64v1.xml: Likewise.
935 * features/s390x-linux64v2.xml: Likewise.
937 * features/s390-linux32.c: Regenerate.
938 * features/s390-linux64.c: Likewise.
939 * features/s390x-linux64.c: Likewise.
940 * features/s390-linux32v1.c: New generated file.
941 * features/s390-linux32v2.c: Likewise.
942 * features/s390-linux64v1.c: Likewise.
943 * features/s390-linux64v2.c: Likewise.
944 * features/s390x-linux64v1.c: Likewise.
945 * features/s390x-linux64v2.c: Likewise.
947 * regformats/s390-linux32.dat: Regenerate.
948 * regformats/s390-linux64.dat: Regenerate.
949 * regformats/s390x-linux64.dat: Regenerate.
950 * regformats/s390-linux32v1.dat: New generated file.
951 * regformats/s390-linux32v2.dat: Likewise.
952 * regformats/s390-linux64v1.dat: Likewise.
953 * regformats/s390-linux64v2.dat: Likewise.
954 * regformats/s390x-linux64v1.dat: Likewise.
955 * regformats/s390x-linux64v2.dat: Likewise.
957 2011-12-05 Pedro Alves <pedro@codesourcery.com>
959 * linux-nat.c (resume_stopped_resumed_lwps): Call
962 2011-12-05 Pedro Alves <pedro@codesourcery.com>
964 * breakpoint.c: Include record.h.
965 (breakpoints_always_inserted_mode): Return false when the record
968 2011-12-05 Pedro Alves <pedro@codesourcery.com>
970 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
971 Reinstate perror_with_name call on ptrace error. Remove #if 0.
972 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
973 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
975 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
977 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
980 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
982 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
984 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
986 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
989 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
991 Fix compilation --without-expat.
992 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
994 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
996 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
997 Jan Kratochvil <jan.kratochvil@redhat.com>
999 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
1000 * features/library-list-svr4.dtd: New file.
1001 * remote.c (PACKET_qXfer_libraries_svr4): New.
1002 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
1003 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
1004 * solib-svr4.c (struct svr4_library_list): New.
1005 [HAVE_LIBEXPAT]: Include xml-support.h.
1006 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
1007 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
1008 [HAVE_LIBEXPAT] (svr4_library_list_children)
1009 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
1010 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
1011 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
1012 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
1013 (svr4_read_so_list): Extend the corruption message by addresses.
1014 (svr4_current_sos): New variable library_list, call
1015 svr4_current_sos_via_xfer_libraries.
1016 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
1018 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1021 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
1022 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
1024 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1026 PR breakpoints/13346
1027 * dwarf2read.c (process_psymtab_comp_unit): Set
1028 PSYMTABS_ADDRMAP_SUPPORTED.
1029 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
1030 validity. New field psymtabs_addrmap_supported.
1031 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
1032 psymtabs_addrmap_supported.
1033 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
1034 !PSYMTABS_ADDRMAP_SUPPORTED.
1035 (dump_psymtab, maintenance_info_psymtabs): Print also
1036 psymtabs_addrmap_supported.
1038 2011-12-01 Doug Evans <dje@google.com>
1040 * python/py-type.c (type_object_methods): Fix "array" doc string.
1042 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
1044 * source.c (print_source_lines_base): Fix missing braces on else
1045 clause leading to additional output.
1047 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1049 * s390-nat.c (SUBOFF): Remove.
1050 (s390_native_supply, s390_native_collect): New functions.
1051 (supply_gregset, supply_fpregset): Use s390_native_supply.
1052 (fill_gregset, fill_fpregset): Use s390_native_collect.
1054 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1055 (s390_unwind_pseudo_register): New function.
1056 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1057 registers instead of PC and CC.
1058 (s390_backchain_frame_unwind_cache): Likewise.
1059 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1061 (s390_trad_frame_prev_register): New function.
1062 (s390_frame_prev_register): Use it.
1063 (s390_sigtramp_frame_prev_register): Likewise.
1064 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1065 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
1066 special callback to unwind any pseudo.
1068 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1069 * features/s390-core64.xml: Likewise.
1070 * features/s390x-core64.xml: Likewise.
1071 * features/s390-linux32.c: Regenerate.
1072 * features/s390-linux64.c: Likewise.
1073 * features/s390x-linux64.c: Likewise.
1075 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1077 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1079 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1081 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1082 instruction. Add more diagnostic output.
1084 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
1086 * MAINTAINERS (Write After Approval): Add myself to the list.
1088 2011-11-29 Sanjoy Das <sdas@igalia.com>
1090 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1091 (jit_bfd_try_read_symtab): Fix comments.
1093 2011-11-28 DJ Delorie <dj@redhat.com>
1095 * NEWS: Mention RL78 simulator.
1097 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1099 * symfile.h (struct quick_symbol_functions): Fix the documentation
1100 of field map_matching_symbols, as symbols are sorted using
1101 strcmp_iw_ordered, not strcmp_iw.
1103 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
1105 * symfile.h (struct quick_symbol_functions): Update the
1106 documentation for field map_matching_symbols.
1108 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1110 * ada-lang.c (compare_names): Fix wrong return value in case
1111 string1 starts with the same contents as string2, followed
1112 by an underscore that do not start a symbol name suffix.
1114 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
1119 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1120 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1121 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1123 * python/py-type.c (typy_strip_typedefs): Ditto.
1124 (typy_legacy_template_argument): Ditto.
1125 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1126 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1128 2011-11-27 Joel Brobecker <brobecker@acacore.com>
1130 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1131 local variable. Avoid use of sprintf_vma.
1133 2011-11-27 Sanjoy Das <sdas@igalia.com>
1135 Fix regression in jit.exp.
1136 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1137 (jit_register_code): Set the jit_objfile_data field to the correct
1140 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1142 * alpha-tdep.c (br_opcode): New.
1143 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1144 (alpha_deal_with_atomic_sequence): New function.
1145 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1146 with alpha_deal_with_atomic_sequence.
1148 2011-11-24 Tristan Gingold <gingold@adacore.com>
1150 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1151 fields. Add oso_sym, end_sym and nbr_syms.
1152 (macho_register_oso): Change interface.
1153 (macho_symtab_add_minsym): New function.
1154 (macho_symtab_read): Rewritten.
1155 (get_archive_prefix_len): Remove trailing blanks.
1156 (oso_el_compare_name): Add comment.
1157 (struct macho_sym_hash_entry): New structure.
1158 (macho_relocate_common_syms): Remove.
1159 (macho_sym_hash_newfunc): New function.
1160 (macho_resolve_oso_sym_with_minsym): Likewise.
1161 (macho_add_oso_symfile): Rewritten.
1162 (macho_symfile_read_all_oso): Remove trailing blanks.
1163 Adjust code to free oso vector.
1164 (macho_symfile_read): Likewise.
1165 Move code to initialize minimal symbol
1167 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1169 * mips-tdep.c (extended_offset): Fix formatting.
1171 2011-11-23 Doug Evans <dje@google.com>
1173 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1174 (dw2_expand_symtabs_with_filename): Ditto.
1175 (dw2_expand_symtabs_matching): Ditto.
1176 (dw2_map_symbol_filenames): Ditto.
1178 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1180 * ada-lang.c (assign_aggregate): Minor reformatting.
1182 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1184 * ada-lang.c (assign_aggregate): Remove declaration of local
1185 variable `i' which is shadowing another variable with the same
1186 name declared in the outer scope.
1188 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1190 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1191 calls throughout this file.
1193 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1195 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1198 2011-11-22 Tom Tromey <tromey@redhat.com>
1201 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1202 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1203 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1204 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1205 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1206 (print_it_catch_syscall, print_it_catch_exec)
1207 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1208 (bpstat_print): Add 'kind' argument. Handle
1209 TARGET_WAITKIND_LOADED.
1210 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1211 handle TARGET_WAITKIND_LOADED here.
1212 * breakpoint.h (bpstat_print): Update.
1214 2011-11-22 Tom Tromey <tromey@redhat.com>
1216 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1218 2011-11-22 Tom Tromey <tromey@redhat.com>
1220 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1221 Use static_assert to check the size of
1222 async_reason_string_lookup.
1223 * common/gdb_assert.h (static_assert): New macro.
1225 2011-11-22 Alan Modra <amodra@gmail.com>
1227 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1228 destination calculation. Don't expect >> to sign extend. Don't
1229 add a break if branch lands inside the sequence anywhere.
1231 2011-11-21 Keith Seitz <keiths@redhat.com>
1233 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1234 -var-evaluate-expression of an enumeration and fix expected result.
1235 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1237 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1239 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1240 the case where osdata->items is empty. Rename column names to a
1241 canonical form to avoid problems with unusual column names.
1243 2011-11-21 Yao Qi <yao@codesourcery.com>
1245 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1247 2011-11-20 Stan Shebs <stan@codesourcery.com>
1249 * NEWS: Mention tracepoint additions.
1250 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1251 * breakpoint.c (print_one_breakpoint_location): Identify
1252 tracepoints as such when reporting hit counts, report
1254 (create_tracepoint_from_upload): Copy status info.
1255 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1256 add fields user_name, notes, start_time, stop_time.
1257 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1258 * tracepoint.c (trace_user): New global.
1259 (trace_notes): New global.
1260 (trace_stop_notes): New global.
1261 (start_tracing): Add argument and trace note handling.
1262 (stop_tracing): Ditto.
1263 (trace_start_command): Add notes argument.
1264 (trace_stop_command): Ditto.
1265 (trace_status_command): Report additional status info.
1266 (trace_status_mi): Similarly.
1267 (trace_save): Update, record tracepoint status.
1268 (set_disconnected_tracing): Call target method directly.
1269 (send_disconnected_tracing_value): Remove.
1270 (set_trace_user): New function.
1271 (set_trace_notes): New function.
1272 (set_trace_stop_notes): New function.
1273 (parse_trace_status): Handle additional status.
1274 (parse_tracepoint_status): New function.
1275 (parse_tracepoint_definition): Call it.
1276 (tfile_get_tracepoint_status): New function.
1277 (init_tfile_ops): Use it.
1278 (_initialize_tracepoint): Add new setshows.
1279 * target.h (struct target_ops): New methods to_get_tracepoint_status
1280 and to_set_trace_notes.
1281 (target_get_tracepoint_status): New macro.
1282 (target_set_trace_notes): New macro.
1283 * target.c (update_current_target): Add new methods.
1284 * remote.c (remote_get_tracepoint_status): New function.
1285 (remote_set_trace_notes): New function.
1286 (init_remote_ops): Add them.
1287 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1288 (mi_cmd_trace_stop): Ditto.
1290 2011-11-20 Sanjoy Das <sdas@igalia.com>
1292 * jit.c: Include regcache.h.
1293 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1294 (jit_unwind_reg_set_impl, free_reg_value_impl)
1295 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1296 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1297 (jit_frame_prev_register, jit_dealloc_cache)
1298 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1299 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1300 jit_prepend_unwinder.
1301 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1303 2011-11-20 Sanjoy Das <sdas@igalia.com>
1305 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1306 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1307 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1308 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1309 (finalize_symtab, jit_object_close_impl)
1310 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1311 (free_objfile_data): New functions.
1312 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1315 2011-11-20 Sanjoy Das <sdas@igalia.com>
1317 * jit.c: Include gdb-dlfcn.h.
1318 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1319 (jit_reader_load, jit_reader_load_command)
1320 (jit_reader_unload_command): New functions.
1321 (_initialize_jit): Add commands "jit-reader-load" and
1322 "jit-reader-unload".
1324 2011-11-20 Sanjoy Das <sdas@igalia.com>
1326 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1327 * config.in: Add new #define HAVE_LIBDL.
1328 * configure.ac: Add check for -ldl.
1329 * configure: Re-generated by autoconf.
1330 * gdb-dlfcn.c: New file.
1331 * gdb-dlfcn.h: New file.
1333 2011-11-20 Sanjoy Das <sdas@igalia.com>
1335 * config.in: Add new #defines: JIT_READER_DIR and
1336 JIT_READER_DIR_RELOCATABLE.
1337 * configure.ac: New GDB directory entry for jit-reader-dir.
1338 * configure: Re-generated by autoconf.
1339 * jit.c: New static variable: const char *jit_reader_dir.
1340 (_initialize_jit): Relocate jit_reader_dir.
1342 2011-11-20 Sanjoy Das <sdas@igalia.com>
1344 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1346 * configure.ac: Generate a correct value for TARGET_PTR for
1347 jit-reader.h. Tell configure to generate jit-reader.h from
1349 * configure: Re-generated by autoconf.
1350 * jit-reader.in: New file.
1351 * jit.c: Include jit-reader.h.
1353 2011-11-20 Sanjoy Das <sdas@igalia.com>
1355 * MAINTAINERS (Write After Approval): Add myself to the list.
1357 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1359 * findvar.c (read_frame_register_value): Respect value_offset
1360 of the register value. Remove big-endian special case.
1362 2011-11-18 Tom Tromey <tromey@redhat.com>
1365 * remote.c (putpkt_for_catch_errors): New function.
1366 (remote_kill): Use it.
1368 2011-11-18 Yao Qi <yao@codesourcery.com>
1370 * breakpoint.c (create_breakpoint): Produce query message according to
1372 Allocate tracepoint per correct type.
1373 Don't check SALs for pending fast tracepoints.
1374 * tracepoint.c (process_tracepoint_on_disconnect): New.
1375 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1377 2011-11-18 Yao Qi <yao@codesourcery.com>
1379 * breakpoint.c (install_breakpoint): Add one more parameter so that
1380 update_global_location_list is called conditionally.
1381 (create_fork_vfork_event_catchpoint): Update.
1382 (create_syscall_event_catchpoint): Update.
1383 (create_breakpoint_sal): Update.
1384 (create_breakpoint_sal): Update. Call do_cleanups before
1386 * ada-lang.c (create_ada_exception_catchpoint): Update.
1387 * breakpoint.h (install_breakpoint): Update declaration.
1389 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1391 * spu-tdep.c (spu_return_value): Fix handling of
1392 TYPE_CALLING_CONVENTION annotation.
1394 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1396 * skip.c (skip_function_command): Work around uninitialized
1399 2011-11-16 David S. Miller <davem@davemloft.net>
1401 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1402 'tv_usec' to long for printf since these fields have a type which
1405 2011-11-15 Doug Evans <dje@google.com>
1407 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1409 2011-11-15 Paul Koning <paul_koning@dell.com>
1411 * python/py-type.c (typy_get_composite): New function.
1412 (typy_nonzero): New function.
1413 (typy_values): Rename from typy_fields.
1414 (typy_fields): New function.
1415 (typy_length): Raise exception if not struct, union, or enum type.
1416 (typy_getitem): Ditto.
1417 (typy_has_key): Ditto.
1418 (typy_make_iter): Ditto.
1420 2011-11-15 Doug Evans <dje@google.com>
1423 * NEWS: Mention new parameter basenames-may-differ.
1424 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1425 ! basenames_may_differ.
1426 * psymtab.c (lookup_partial_symtab): Ditto.
1427 * symtab.c (lookup_symtab): Ditto.
1428 (basenames_may_differ): New global.
1429 (_initialize_symtab): New parameter basenames-may-differ.
1430 * symtab.h (basenames_may_differ): Declare.
1432 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1433 Luis Machado <lgustavo@codesourcery.com>
1435 * auxv.c: Include observer.h.
1436 (auxv_inferior_data_cleanup): New.
1437 (invalidate_auxv_cache_inf): New.
1438 (invalidate_auxv_cache): New.
1439 (get_auxv_inferior_data): New.
1440 (auxv_inferior_data): New static global.
1441 (auxv_info): New structure.
1442 (target_auxv_search): Use get_auxv_inferior_data instead of
1443 target_read_alloc and don't free cached buffers.
1444 (fprint_target_auxv): Likewise
1445 (_initialize_auxv): Register per-inferior auxv cache and register
1446 observers to invalidate auxv cache when needed.
1448 2011-11-14 Doug Evans <dje@google.com>
1450 PR gdb/7200 Make "!" an alias for "shell".
1451 * NEWS: Add mention.
1452 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1453 adding "!" command, always add it.
1454 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1455 command of length one.
1457 2011-11-14 Stan Shebs <stan@codesourcery.com>
1458 Kwok Cheung Yeung <kcy@codesourcery.com>
1460 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1461 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1462 the minimum instruction size for fast tracepoints.
1463 * target.h (struct target_ops): Add new method
1464 to_get_min_fast_tracepoint_insn_len.
1465 (target_get_min_fast_tracepoint_insn_len): New.
1466 * target.c (update_current_target): Set up new target operation.
1467 * remote.c (remote_write_bytes_aux): Fix typo.
1468 (remote_get_min_fast_tracepoint_insn_len): New.
1469 (init_remote_ops): Initialize new field.
1471 2011-11-14 Tom Tromey <tromey@redhat.com>
1473 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1474 (encode_actions): Likewise.
1476 2011-11-14 Yao Qi <yao@codesourcery.com>
1478 * remote.c (struct remote_state): <install_in_trace> new field.
1479 (PACKET_InstallInTrace): New enum value.
1480 (remote_install_in_trace_feature): Support InstallInTrace.
1481 (remote_supports_install_in_trace): Likewise.
1482 (remote_protocol_features): Likewise.
1483 (_initialize_remote): Likewise.
1484 (remote_can_download_tracepoint): New.
1485 * target.h (struct target): New field
1486 `to_can_download_tracepoint'.
1487 (target_can_download_tracepoint): New macro.
1488 * target.c (update_current_target): Update.
1489 * breakpoint.h (struct bp_location): Add comment on field
1491 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1493 (remove_breakpoints): Don't remove tracepoints.
1494 (tracepoint_locations_match ): New.
1495 (breakpoint_locations_match): Call it.
1496 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1497 (download_tracepoint_locations): New.
1498 (update_global_location_list): Call it.
1499 * tracepoint.c (find_matching_tracepoint): Delete.
1500 (find_matching_tracepoint_location): Renamed from
1501 find_matching_tracepoint. Return bp_location rather than
1503 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1504 tracepoint is found.
1506 2011-11-14 Yao Qi <yao@codesourcery.com>
1508 * target.h (struct target): <to_download_tracepoint> Change type
1509 of parameter from tracepoint to bp_location.
1510 * target.c (update_current_target): Update.
1511 * tracepoint.c (start_tracing): Update.
1512 * remote.c (remote_download_tracepoint): Remove loop for each location
1515 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1517 * i386-nat.c (i386_insert_hw_breakpoint): Call
1518 i386_update_inferior_debug_regs.
1519 (i386_remove_hw_breakpoint): Likewise.
1521 2011-11-14 Yao Qi <yao@codesourcery.com>
1523 * breakpoint.c (init_raw_breakpoint): Call
1524 add_location_to_breakpoint to replace duplicated code.
1525 (add_location_to_breakpoint): Adjust the breakpoint's
1526 address prior to allocating a location.
1528 2011-11-12 Matt Rice <ratmice@gmail.com>
1530 * macrocmd.c (macro_no_macro_info): New function.
1531 (macro_expand_command): Use macro_no_macro_info.
1532 (macro_expand_once_command): Ditto.
1533 (info_macro_command): Add argument processing,
1534 move info_definitions_command here.
1535 (_initialize_macrocmd): Remove info definitions command.
1536 Add arguments to info macro help text.
1537 * NEWS: Replace info definitions command with new info macro options.
1539 2011-11-11 Keith Seitz <keiths@redhat.com>
1542 * linespec.c (locate_first_half): Keep ':' if it looks
1543 like it could be part of a Windows path starting with
1546 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1548 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1549 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1551 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1553 * target.c (target_waitstatus_to_string): Handle
1554 TARGET_WAITKIND_NO_RESUMED.
1556 2011-11-10 Doug Evans <dje@google.com>
1558 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1560 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1561 (map_partial_symbol_filenames): Ditto. All callers updated.
1562 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1563 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1564 parameter need_fullname.
1566 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1567 * source.c (symtab_to_fullname): Ditto.
1569 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1570 * gdb-demangle.h: ... here. New file.
1571 * demangle.c: #include "gdb-demangle.h".
1572 (_initialize_demangler): Use initialize_file_ftype for prototype.
1573 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1574 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1576 * utils.c: Update. #include "gdb-demangle.h".
1577 * symtab.h (asm_demangle): Delete.
1578 (demangle): Move declaration next to use.
1579 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1580 * dwarf2read.c: #include "gdb-demangle.h".
1581 * gnu-v2-abi.c: Ditto.
1582 * jv-typeprint.c: Ditto.
1583 * mdebugread.c: Ditto.
1584 * p-typeprint.c: Ditto.
1585 * stabsread.c: Ditto.
1586 * printcmd.c: Ditto.
1587 (asm_demangle): Delete declaration.
1588 * tui/tui-stack.c: #include "gdb-demangle.h".
1590 * python/py-type.c (typy_fields_items): Call check_typedef.
1592 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1594 * findvar.c (read_frame_register_value): Read the correct bytes
1595 from registers on big-endian architectures.
1597 2011-11-10 Tom Tromey <tromey@redhat.com>
1599 * procfs.c (load_syscalls): Make a cleanup.
1600 (open_procinfo_files): fd==0 is ok.
1602 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1604 * procfs.c (iterate_over_mappings): Call do_cleanups before
1607 2011-11-09 Doug Evans <dje@google.com>
1609 * gdbtypes.c (check_typedef): Document that this function can
1612 2011-11-09 Tom Tromey <tromey@redhat.com>
1615 * valops.c (value_full_object): Return early if real type is
1616 smaller than the enclosing type.
1618 2011-11-08 Yao Qi <yao@codesourcery.com>
1620 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1622 2011-11-08 Meador Inge <meadori@codesourcery.com>
1624 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1625 register when the frame can't be determined.
1626 * arm-tdep.c (arm_analyze_prologue): Ditto.
1628 2011-11-07 Stan Shebs <stan@codesourcery.com>
1630 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1632 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1634 * infrun.c (handle_inferior_event): Minor reformatting.
1636 2011-11-05 Doug Evans <dje@google.com>
1638 * source.c (forget_cached_source_info_for_objfile): Move call to
1639 objfile->sf->qf->forget_cached_source_info outside of
1640 ALL_OBJFILE_SYMTABS loop.
1641 (forget_cached_source_info): Delete unused variable `s'.
1643 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1645 * i386-nat.c (dr_ref_count): Remove unused variable.
1647 2011-11-05 Doug Evans <dje@google.com>
1649 * main.c (captured_main): Set lim_at_start before calling
1650 make_command_stats_cleanup.
1652 2011-11-04 Doug Evans <dje@google.com>
1654 * utils.c: #include "timeval-utils.h".
1655 (cmd_stats): Rename start_time to start_cpu_time.
1656 New member start_wall_time.
1657 (report_command_stats): Report wall time.
1658 (make_command_stats_cleanup): Record start wall time.
1660 2011-11-04 Tom Tromey <tromey@redhat.com>
1662 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1664 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1666 * coff-pe-read.c: Include defs.h before bfd.h.
1668 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1672 * python/python.c (python_run_simple_file): Expand tilde in path.
1674 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1678 * python/py-type.c (typy_lookup_type): Do not return a type in
1679 an exception handler.
1681 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1682 Eli Zaretskii <eliz@gnu.org>
1684 * linux-nat.c (_initialize_linux_nat): Improve help
1685 for `info proc stat', `info proc status', `info proc cwd',
1686 `info proc cmdline' and `info proc exe'.
1688 2011-11-02 Stan Shebs <stan@codesourcery.com>
1690 String collection for tracepoints.
1691 * NEWS: Mention string collection.
1692 * common/ax.def (tracenz): New bytecode.
1693 * ax-gdb.h (trace_string_kludge): Declare.
1694 * ax-gdb.c: Include valprint.h and c-lang.h.
1695 (trace_string_kludge): New global.
1696 (gen_traced_pop): Add string case.
1697 (agent_command): Add string case.
1698 * tracepoint.h (decode_agent_options): Declare.
1699 * tracepoint.c: Include cli-utils.h.
1700 (decode_agent_options): New function.
1701 (validate_actionline): Call it.
1702 (encode_actions_1): Ditto.
1703 * target.h (struct target_ops): New method to_supports_string_tracing.
1704 (target_supports_string_tracing): New macro.
1705 * target.c (update_current_target): Add to_supports_string_tracing.
1706 * remote.c (struct remote_state): New field string_tracing.
1707 (remote_string_tracing_feature): New function.
1708 (remote_protocol_features): New feature tracenz.
1709 (remote_supports_string_tracing): New function.
1710 (init_remote_ops): Set to_supports_string_tracing.
1712 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1713 Jan Kratochvil <jan.kratochvil@redhat.com>
1715 * linux-nat.c: Include cli/cli-utils.h.
1716 (enum info_proc_what): New.
1717 (linux_nat_info_proc_cmd): Rename to ...
1718 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1719 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1720 status_f and stat_f from WHAT. Throw error on extra parameters.
1721 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1722 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1723 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1724 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1725 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1726 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1727 `info proc cmdline', `info proc exe' and `info proc all' as real
1728 subcommands of `info proc'.
1730 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1732 * Makefile.in: (SFILES): Add skip.c.
1733 (HFILES_NO_SRCDIR): Add skip.h.
1734 (COMMON_OBS): Add skip.o.
1735 * skip.h, skip.c: New.
1736 * breakpoint.h (set_default_breakpoint): Remove.
1737 (get_sal_arch): Declare.
1738 * breakpoint.c: Remove default_breakpoint_valid,
1739 default_breakpoint_address, default_breakpoint_symtab,
1740 default_breakpoint_line, default_breakpoint_pspace variables.
1741 (get_sal_arch): Make public.
1742 (set_default_breakpoint): Remove.
1743 (parse_breakpoint_sals, create_breakpoint, clear_command,
1744 decode_line_spec_1): Remove uses of default_breakpoint variables;
1745 replaced with function calls into stack.c.
1746 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1747 * cli/cli-cmds.c: Add skiplist.
1748 (init_cmd_lists): Initialize skiplist.
1749 (init_cli_cmds): Fix comment (classes of commands appear in
1750 alphabetical order).
1751 * infrun.c (handle_inferior_event): Add check that we don't step into
1752 a function whose pc is marked for skip.
1753 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1754 last_displayed_addr, last_displayed_symtab, last_displayed_line
1756 (set_last_displayed_sal): New static function.
1757 (print_frame_info): Switch call to set_default_breakpoint to call to
1758 set_last_displayed_sal.
1759 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1760 get_last_displayed_pspace, get_last_displayed_addr,
1761 get_last_displayed_symtab, get_last_displayed_line,
1762 get_last_displayed_sal): New public functions.
1763 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1764 get_last_displayed_pspace, get_last_displayed_addr,
1765 get_last_displayed_symtab, get_last_displayed_line,
1766 get_last_displayed_sal): Declare.
1768 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1770 * MAINTAINERS (Write After Approval): Add myself to the list.
1772 2011-10-29 Yao Qi <yao@codesourcery.com>
1774 * infcmd.c (disconnect_command): Call disconnect_tracing.
1776 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1779 * symtab.c (skip_prologue_sal): Code reformatting.
1781 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1784 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1785 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1788 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1790 * linux-nat.c (linux_nat_filter_event): Remove `options'
1791 parameter, and dead code that used it. If we're handling a
1792 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1793 in our lwp list, re-add it.
1794 (check_zombie_leaders): New.
1795 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1796 wait for children with WNOHANG, and always wait for all children.
1797 Don't check for no resumed children upfront. Simplify wait loop.
1798 Check for zombie thread group leaders after handling all wait
1799 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1800 unwaited-for children left.
1801 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1802 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1803 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1804 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1806 2011-10-28 Sterling Augustine <saugustine@google.com>
1808 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1809 * symtab.c (free_completion_list): New function.
1810 (do_free_completion_list): Likewise.
1811 (default_make_symbol_completion_list_break_on): New variable
1812 back_to. Call make_cleanup and discard_cleanups.
1813 (make_source_files_completion_list): Likewise.
1815 2011-10-28 Paul Koning <paul_koning@dell.com>
1817 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1818 * NEWS: Mention deep_items.
1820 2011-10-28 Alen Skondro <askondro@gmail.com>
1822 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1825 2011-10-27 Meador Inge <meadori@codesourcery.com>
1827 * MAINTAINERS (Write After Approval): Add myself to the list.
1829 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1831 * value.h (read_frame_register_value): Add declaration.
1832 * findvar.c (read_frame_register_value): New function.
1833 (value_from_register): Use read_frame_register_value
1834 instead of get_frame_register_value + value_contents_copy
1835 to get value contents.
1837 2011-10-27 Doug Evans <dje@google.com>
1839 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1840 source_script_from_stream if it may have been found on the search path.
1841 * python/py-auto-load.c (source_section_scripts): Pass full path to
1842 source_python_script_for_objfile.
1843 * python/python.c (source_python_script): Delete stream parameter.
1844 All callers updated.
1845 (source_python_script_for_objfile): Ditto.
1846 * python/python-internal.h (source_python_script_for_objfile): Update.
1847 * python/python.h (source_python_script): Update.
1849 2011-10-27 Tom Tromey <tromey@redhat.com>
1851 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1852 (ada_sals_for_line): Remove declarations.
1854 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1856 Move unwind reasons to an external .def file
1857 * frame.c (frame_stop_reason_string): Rewrite using
1858 unwind_stop_reasons.def.
1859 * frame.h (enum unwind_stop_reason): Likewise.
1860 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1861 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1862 constants for bound-checking.
1863 * unwind_stop_reasons.def: New file.
1864 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1865 instead of a distinct value.
1867 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1871 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1872 (convert_values_to_python): Return on Python tuple allocation
1873 failure. Return NULL on value conversion error.
1875 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1877 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1878 (bppy_set_task): Ditto.
1879 (bppy_delete_breakpoint): Ditto.
1880 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1881 (gdbpy_lookup_global_symbol): Ditto.
1882 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1883 * python/py-frame.c (frapy_is_valid): Ditto.
1884 (frame_info_to_frame_object): Ditto.
1885 * python/py-type.c (typy_lookup_type): Ditto.
1886 (typy_getitem): Ditto.
1887 (typy_has_key): Ditto.
1888 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1890 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1892 * gdbarch.h: Regenerate.
1894 2011-10-26 Meador Inge <meadori@codesourcery.com>
1896 * gdbarch.sh (function_list): Use 'pstring' when printing
1898 * gdbarch.c: Regenerate.
1900 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1902 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1903 and frame caches if PTID refers to all threads of a process.
1905 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1907 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1908 to create_breakpoint.
1910 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1912 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1913 (ppc_sysv_abi_push_dummy_call): Use it.
1914 (do_ppc_sysv_return_value): Likewise.
1915 (ppc64_sysv_abi_push_dummy_call): Likewise.
1916 (ppc64_sysv_abi_return_value): Likewise.
1918 2011-10-26 Paul Koning <paul_koning@dell.com>
1920 * python/lib/gdb/types.py (deepitems): New function.
1922 2011-10-25 Paul Koning <paul_koning@dell.com>
1926 * python/py-value.c (value_to_value_object): Remove fetching of
1927 the value if it was lazy.
1928 (valpy_get_is_lazy): New function.
1929 (valpy_fetch_lazy): New function.
1931 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1933 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1934 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1936 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1938 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1939 event, in non-stop, if not stopping, make sure the new lwp has
1940 last_resume_kind set to resume_continue. Assert that when we're
1941 resuming the new lwp, its last_resume_kind is resume_continue.
1943 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1945 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1946 already set when marking the event thread as not executing in
1949 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1951 * infrun.c (handle_inferior_event): Add debug output for
1952 TARGET_WAITKIND_NO_HISTORY.
1954 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1956 * NEWS: Move set/show extended-prompt to "New Options". Expand
1957 description. Fix typos.
1959 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1963 * python/py-param.c (call_doc_function): Correctly deference on
1966 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1968 * ada-tasks.c (print_ada_task_info): Fix computation of
1969 number of tasks displayed in command output.
1971 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1972 Ulrich Weigand <uweigand@de.ibm.com>
1974 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1975 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1976 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1977 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1980 2011-10-20 Cary Coutant <ccoutant@google.com>
1982 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1984 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1985 flag. Adjust all callers.
1986 (process_psymtab_comp_unit): Remove adjustment for type section.
1988 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1990 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1991 arguments by adding OBJFILE. Instead of getting objfile from
1992 symbol's symtab, use new argument OBJFILE.
1993 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1994 arguments by adding OBJFILE.
1995 * gdb/dwarf2read.c (new_symbol_full): Change call to
1996 cp_scan_for_anonymous_namespaces to match new signature.
1997 * gdb/stabsread.c (define_symbol): Change call to
1998 cp_scan_for_anonymous_namespaces to match new signature.
2000 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2005 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
2007 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
2008 leak. Delete unused variables.
2010 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2014 * python/py-frame.c (frapy_read_var): Use const struct *block.
2015 * python/py-type.c (typy_lookup_typename): Likewise.
2016 (typy_lookup_type): Likewise.
2017 (typy_legacy_template_argument): Likewise.
2018 (typy_template_argument): Likewise.
2019 (gdbpy_lookup_type): Likewise.
2020 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2021 * python/py-block.c (blpy_block_object): Likewise.
2022 (blpy_iter): Likewise.
2023 (blpy_get_start): Likewise.
2024 (blpy_get_end): Likewise.
2025 (blpy_get_function): Likewise.
2026 (blpy_get_superblock): Likewise.
2027 (set_block): Likewise.
2028 (block_to_block_object): Likewise.
2029 (block_object_to_block): Likewise.
2030 (blpy_is_valid): Likewise.
2031 (blpy_get_global_block): New function.
2032 (blpy_get_static_block): New function.
2033 (blpy_is_global): New function.
2034 (blpy_is_static): New function.
2035 * blockframe.c (block_innermost_frame): Likewise.
2036 * valops.c (value_of_variable): Likewise.
2037 * frame.h: Update prototypes.
2038 * python/python-internal.h: Likewise.
2039 * value.h: Likewise.
2041 2011-10-19 Cary Coutant <ccoutant@google.com>
2043 * dwarf2read.c (create_debug_types_hash_table): Fix size of
2046 2011-10-19 Cary Coutant <ccoutant@google.com>
2048 * dwarf2read.c (peek_abbrev_code): New function.
2049 (dw2_get_file_names): Check for dummy compilation units.
2050 (create_debug_types_hash_table): Likewise.
2051 (process_psymtab_comp_unit): Likewise.
2052 (load_partial_comp_unit): Likewise.
2053 (load_full_comp_unit): Likewise.
2055 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
2057 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2058 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2059 pt_phdr if PT_PHDR was found.
2061 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
2063 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2064 type or "<unnamed type"> when there is no name assigned.
2065 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2066 avoid a sigint when no name is assigned.
2068 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2071 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2072 * dwarf2expr.c (ctx_no_read_reg): New function.
2073 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2074 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2075 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2076 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2078 2011-10-16 Doug Evans <dje@google.com>
2080 * NEWS: Document python gdb.printing.register_pretty_printer's new
2081 `replace' parameter.
2083 2011-10-14 Keith Seitz <keiths@redhat.com>
2086 * eval.c (evaluate_subexp_standard): Do not construct
2087 an array of types; pass the value array directly to
2088 find_overload_match.
2089 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2090 (rank_function): Take an array of values instead of types.
2091 (rank_one_type): Add struct value * parameter.
2092 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2093 (rank_function): For each argument, pass the argument's
2094 value to rank_one_type.
2095 (rank_one_type): Add VALUE parameter.
2096 If the parameter type is a pointer and the argument type
2097 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2099 Update all calls to rank_one_type, passing NULL for new
2101 * valarith.c (value_user_defined_cpp_op): Do not construct
2102 an array of types; pass the value array directly to
2103 find_overload_match.
2104 * valops.c (find_overload_method_list): Take an array of
2105 values instead of types.
2106 Save the type of OBJP for later use.
2107 Update calls to find_oload_champ, and find_oload_champ_namespace.
2108 (find_oload_champ_namespace): Take an array of values instead
2110 (find_oload_champ_namespace_loop): Likewise.
2111 (find_oload_champ): Likewise.
2112 (classify_oload_match): Inspect all arguments
2113 until INCOMPATIBLE is found. Return the worst badness found
2115 (compare_parameters): Update call to rank_one_type.
2116 * value.h (find_overload_match): Take an array of values instead
2119 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2121 Drop lazy lm_info reading.
2122 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2123 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2124 (lm_info_read): New function.
2125 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2126 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2127 lm_dynamic_from_link_map.
2128 (lm_next, lm_prev, lm_name): Remove.
2129 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2130 initialization incl. read_memory. No longer use lm_name.
2131 (svr4_free_so): Drop lm_info->lm freeing.
2132 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2133 explicit lm_addr and lm initialization.
2134 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2135 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2138 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2139 Paul Pluzhnikov <ppluzhnikov@google.com>
2141 * defs.h (struct so_list): New forward declaration.
2142 (make_cleanup_free_so): New declaration.
2143 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2144 (svr4_free_so): Move the function here from downwards. Handle NULL
2146 (svr4_free_library_list): New.
2147 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2148 Use more cleanups. Use new parameter ignore_first instead of
2149 ignore_first_link_map_entry.
2150 (svr4_current_sos): New variable ignore_first, initialize it. New
2151 variable back_to, use it for svr4_free_library_list protection.
2152 (svr4_free_so): Remove - move upwards.
2153 * utils.c: Include solist.h.
2154 (do_free_so, make_cleanup_free_so): New functions.
2156 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2158 Fix internal error regression.
2159 * value.c (value_primitive_field): Handle value_optimized_out. Move
2160 packed bitfields comment.
2162 2011-10-13 Tom Tromey <tromey@redhat.com>
2164 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2167 2011-10-13 Tom Tromey <tromey@redhat.com>
2169 * python/py-type.c (typy_has_key): Make 'field' const.
2171 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2173 * remote.c (remote_save_trace_data): Invert comparison.
2175 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2177 * tracepoint.c (trace_save_command): Use filename instead of
2180 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2182 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2185 2011-10-13 Yao Qi <yao@codesourcery.com>
2188 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2189 whether insn is a 32-bit Thumb-2 instruction.
2190 (thumb_in_function_epilogue_p): Likewise.
2191 (thumb_get_next_pc_raw): Likewise.
2192 (arm_breakpoint_from_pc): Likewise.
2194 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2196 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2197 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2198 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2199 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2200 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2202 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2204 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2205 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2206 clear DATA on zero SIZE.
2208 2011-10-12 Doug Evans <dje@google.com>
2210 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2211 header->first_die_offset here. All callers updated.
2213 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2215 Fix compatibility with texinfo versions older than 4.12.
2216 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2217 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2218 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2219 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2220 * configure: Regenerate.
2221 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2222 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2223 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2225 2011-10-12 Gary Benson <gbenson@redhat.com>
2227 * breakpoint.h (pc_at_non_inline_function): Declare.
2228 * breakpoint.c (is_non_inline_function,
2229 pc_at_non_inline_function): New functions.
2230 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2231 if the stop is at a location where functions cannot be inlined.
2233 2011-10-12 Pedro Alves <pedro@codesourcery.com>
2235 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2236 the core wanted them stopped, or if they now have a pending event
2238 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2239 down to stop_and_resume_callback.
2240 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2241 having new pending events after calling linux_nat_filter_event.
2243 2011-10-11 Sterling Augustine <saugustine@google.com>
2245 * dwarf2read.c: Undo inadvertent changes in previous commit.
2247 2011-10-11 Sterling Augustine <saugustine@google.com>
2249 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2252 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2254 * symfile.c (separate_debug_file_exists): Fix condition.
2256 2011-10-11 David S. Miller <davem@davemloft.net>
2258 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2260 * regcache.h (regcache_restore): Remove declaration.
2262 * gdbarch.sh: New field 'long_long_align_bit'.
2263 * gdbarch.c, gdbarch.h: Regenerate.
2264 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2265 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2267 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2269 Revert this part of:
2270 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2271 Support @entry in input expressions.
2272 * c-exp.y (ENTRY, unknown_cpp_name): New.
2273 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2274 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2275 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2276 (name_not_typename: ENTRY): New.
2277 (yylex): Recognize ENTRY.
2279 Reimplement @entry in input expressions.
2280 * c-exp.y (ENTRY): New.
2281 (variable: name_not_typename ENTRY): New.
2282 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2284 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2286 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2287 parent and child's pids as soon as we detect a clone event.
2288 Adjust another debug message.
2290 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2292 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2293 not zombie instead of reading the whole file.
2295 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2297 Fix separate debuginfo warning with "remote:" access.
2298 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2299 * symfile.c (get_file_crc): New function with the code moved from ...
2300 (separate_debug_file_exists): ... this function, specifically variables
2301 buffer and count. New variable verified_as_different, set it. Remove
2302 file_crc initialization. Verify also if both files are not the same
2303 manually, if needed.
2305 2011-10-11 Yao Qi <yao@codesourcery.com>
2307 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2310 2011-10-10 Doug Evans <dje@google.com>
2312 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2313 libthread_db when we load libpthread or the main symbol file.
2314 (thread_db_inferior_created): New function.
2315 (_initialize_thread_db): Attach inferior_created observer.
2316 * linux-nat.c (linux_child_post_attach): Remove call to
2317 check_for_thread_db.
2318 (linux_child_post_startup_inferior): Ditto.
2319 * objfiles.h (OBJF_MAINLINE): Define.
2320 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2321 allocate_objfile when appropriate.
2323 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2326 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2327 Remove unused variables.
2328 (get_linux_version): Remove function.
2329 (_initialize_arm_linux_nat): Do not call it.
2331 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2333 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2334 new clone lwp if the core asked it to stop. Don't pass on
2335 unexpected signals to the new clone; leave them pending instead.
2337 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2339 * linux-nat.c (resume_lwp): Remove redundant debug output.
2341 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2343 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2344 last_resume_kind before clearing it, and use the copy instead to
2345 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2346 resume_clear_callback in the non-stop path too.
2348 2011-10-09 Yao Qi <yao@codesourcery.com>
2350 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2351 Honor OPTIONS and VAL's type.
2352 (common_val_print, value_print): Update to pass one more parameter.
2354 2011-10-09 Doug Evans <dje@google.com>
2356 Add new "alias" command.
2357 * NEWS: Mention new command.
2358 * command.h (valid_user_defined_cmd_name_p): Declare.
2359 * defs.h (make_cleanup_dyn_string_delete): Declare.
2360 * utils.c: #include "dyn-string.h".
2361 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2362 * cli/cli-cmds.c: #include "dyn-string.h".
2363 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2364 (init_cli_cmds): Add new command.
2365 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2367 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2369 Fix compatibility with older GCCs.
2370 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2371 * stack.c (read_frame_arg): Initialize val_deref.
2373 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2375 Entry values NEWS entries, DWARF disassembly support.
2376 * NEWS: New entry values entry.
2377 (set print entry-values, show print entry-values)
2378 (set debug entry-values, show debug entry-values): New entries.
2379 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2380 indent. Remove variable start. Move header printing out. Respect
2381 INDENT. Support DW_OP_GNU_entry_value.
2382 (locexpr_describe_location_1): Move the header printing here, extend
2383 the disassemble_dwarf_expression passed parameters.
2385 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2387 Display @entry parameter values even for references.
2388 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2389 coerce_ref_if_computed.
2390 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2391 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2392 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2393 existing push_dwarf_reg_entry_value call. Add new detection calling
2394 dwarf_block_to_dwarf_reg_deref. Update the error message.
2395 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2397 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2398 parameter deref_size, describe it in the comment.
2399 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2400 (dwarf_block_to_dwarf_reg_deref): New declaration.
2401 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2402 deref_size, describe it in the function comment. New variables
2403 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2404 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2405 describe it in the function comment. Fetch the alternative block
2406 accoring to DEREF_SIZE.
2407 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2408 (entry_data_value_free_closure, entry_data_value_funcs): New.
2409 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2410 outer_val, target_val, val and addr. Try to fetch and create also
2411 referenced value content.
2412 (pieced_value_funcs): NULL value for coerce_ref.
2413 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2414 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2415 coerce_ref_if_computed.
2416 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2417 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2418 * stack.c (read_frame_arg): Compare also dereferenced values.
2419 * value.c (value_computed_funcs): Make the parameter v const, use
2420 value_lval_const for it.
2421 (value_lval_const, coerce_ref_if_computed): New function.
2422 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2423 * value.h (struct lval_funcs): New field coerce_ref.
2424 (value_computed_funcs): Make the parameter v const.
2425 (value_lval_const, coerce_ref_if_computed): New declarations.
2427 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2429 Support @entry in input expressions.
2430 * c-exp.y (ENTRY, unknown_cpp_name): New.
2431 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2432 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2433 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2434 (name_not_typename: ENTRY): New.
2435 (yylex): Recognize ENTRY.
2436 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2437 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2439 * parse.c (operator_length_standard): Likewise.
2440 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2442 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2444 Display referenced values in backtraces.
2445 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2446 * stack.c (print_frame_arg): Likewise.
2448 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2450 Make some lval_funcs methods to default on NULL.
2451 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2453 (value_assign): Check if lval_computed write method is NULL.
2454 * value.h (struct lval_funcs): Comment NULL values for read and write
2457 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2459 Display @entry parameter values (without references).
2460 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2462 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2464 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2466 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2467 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2469 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2470 (loclist_read_variable_at_entry): New function.
2471 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2472 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2473 DW_AT_location, call dwarf_block_to_sp_offset for it.
2474 * frame.h (print_entry_values_no, print_entry_values_only)
2475 (print_entry_values_preferred, print_entry_values_if_needed)
2476 (print_entry_values_both, print_entry_values_compact)
2477 (print_entry_values_default, print_entry_values): New declarations.
2478 (struct frame_arg): New field entry_kind.
2479 (read_frame_arg): New parameter entryargp.
2480 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2481 arg->entry_kind. Optionally print the `@entry' suffix.
2482 (list_args_or_locals): New variable entryarg, initialize it.
2483 Initialize also entry_kind of arg and entryarg. Conditionalize
2484 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2485 xfree for entryarg.error.
2486 * stack.c (print_entry_values_no, print_entry_values_only)
2487 (print_entry_values_preferred, print_entry_values_if_needed)
2488 (print_entry_values_both, print_entry_values_compact)
2489 (print_entry_values_default, print_entry_values_choices)
2490 (print_entry_values): New variables.
2491 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2492 print the `@entry' suffix, possibly in combination for
2493 print_entry_values_compact.
2494 (read_frame_arg): New parameter entryargp, new variables entryval,
2495 entryval_error and val_equal. Read in also entryargp, respect
2496 print_entry_values, compare the values using val_equal, fill in also
2497 argp->entry_kind (together with entryargp->entry_kind).
2498 (print_frame_args): New variable entryarg, initialize it.
2499 Conditionalize print_frame_arg for arg, add print_frame_arg for
2500 entryarg. Call xfree for entryarg.error.
2501 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2502 * symtab.h (struct symbol_computed_ops): New field
2503 read_variable_at_entry.
2505 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2508 * frame.h (struct frame_arg): New definition.
2509 (read_frame_arg): New declaration.
2510 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2511 (list_args_or_locals): ... the code here. New variable arg, call
2512 read_frame_arg and list_arg_or_local with it. Unify the
2513 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2515 * stack.c (print_frame_arg): New functiom from the code of
2517 (read_frame_arg): New function.
2518 (print_frame_args): Remove variable val. New variable arg, call
2519 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2521 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2523 Protect entry values against self tail calls.
2524 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2525 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2527 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2529 Recognize virtual tail call frames.
2530 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2531 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2532 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2533 * dwarf2-frame-tailcall.c: New file.
2534 * dwarf2-frame-tailcall.h: New file.
2535 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2536 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2537 REGS.PREV only after CIE execution.
2538 (struct dwarf2_frame_cache): New field tailcall_cache.
2539 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2540 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2541 parts, try to find entry_cfa_sp_offset. Call
2542 dwarf2_tailcall_sniffer_first.
2543 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2545 (dwarf2_frame_dealloc_cache): New function.
2546 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2547 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2548 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2549 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2550 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2551 * dwarf2loc.c (func_addr_to_tail_call_list)
2552 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2553 (call_site_find_chain_1, call_site_find_chain): New.
2554 * dwarf2loc.h (struct call_site_chain): New.
2555 (call_site_find_chain): New declaration.
2556 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2557 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2558 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2559 * stack.c (frame_info): Support also TAILCALL_FRAME.
2561 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2563 Tail call sites reader implementation.
2564 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2565 fill in TYPE_TAIL_CALL_LIST.
2566 * gdbtypes.h (struct func_type): New field tail_call_list.
2567 (struct call_site): New field tail_call_next.
2568 (TYPE_TAIL_CALL_LIST): New definition.
2570 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2572 Implement basic support for DW_TAG_GNU_call_site.
2573 * block.c: Include gdbtypes.h and exceptions.h.
2574 (call_site_for_pc): New function.
2575 * block.h (call_site_for_pc): New declaration.
2576 * defs.h: Include hashtab.h.
2577 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2579 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2580 ctx_no_push_dwarf_reg_entry_value.
2581 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2582 (dwarf_block_to_dwarf_reg): New function.
2583 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2584 (ctx_no_push_dwarf_reg_entry_value): New function.
2585 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2586 push_dwarf_reg_entry_value.
2587 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2589 * dwarf2loc.c: Include gdbcmd.h.
2590 (dwarf_expr_ctx_funcs): New forward declaration.
2591 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2592 (dwarf_expr_reg_to_entry_parameter)
2593 (dwarf_expr_push_dwarf_reg_entry_value): New.
2594 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2595 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2596 (needs_dwarf_reg_entry_value): New function.
2597 (needs_frame_ctx_funcs): Install it.
2598 (_initialize_dwarf2loc): New function.
2599 * dwarf2loc.h (entry_values_debug): New declaration.
2600 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2601 (read_call_site_scope): New forward declaration.
2602 (process_full_comp_unit): Copy call_site_htab.
2603 (process_die): Support DW_TAG_GNU_call_site.
2604 (read_call_site_scope): New function.
2605 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2606 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2607 (cleanup_htab): Delete.
2608 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2609 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2610 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2611 FIELD_LOC_KIND_DWARF_BLOCK.
2612 * gdbtypes.h (enum field_loc_kind): New entry
2613 FIELD_LOC_KIND_DWARF_BLOCK.
2614 (struct main_type): New loc entry dwarf_block.
2615 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2616 (TYPE_FIELD_DWARF_BLOCK): New.
2617 * python/py-type.c: Include dwarf2loc.h.
2618 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2619 internal_error call on unknown FIELD_LOC_KIND.
2620 * symtab.h (struct symtab): New field call_site_htab.
2621 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2622 (core_addr_hash, core_addr_eq): New functions.
2624 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2627 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2628 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2629 calling_convention under func_stuff there.
2630 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2631 (init_type) <TYPE_CODE_FUNC>: Likewise.
2632 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2633 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2634 * gdbtypes.h (enum type_specific_kind): Change
2635 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2636 (struct main_type) <type_specific>: Change calling_convention to
2637 func_stuff. Move calling_convention to ...
2638 (struct func_type): ... this new struct.
2639 (INIT_FUNC_SPECIFIC): New #define.
2640 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2642 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2644 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2645 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2646 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2647 ctx->ref_addr_size. Handle its invalid value.
2648 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2649 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2650 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2651 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2652 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2653 (dwarf2_per_cu_ref_addr_size): New function.
2655 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2658 * dwarf2read.c (per_cu_header_read_in): New function.
2659 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2660 variables cu_header_local and cu_headerp.
2662 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2664 Fix initial language detection with -readnow.
2665 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2666 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2667 searches only for global symbols.
2669 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2671 Fix printed anonymous struct name.
2672 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2673 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2674 (anonymous_struct_prefix): New function.
2675 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2676 (dwarf2_name): Strip for anonymous structs any prefixes.
2678 2011-10-07 Doug Evans <dje@google.com>
2680 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2683 * python/lib/gdb/printing.py: Whitespace cleanup.
2685 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2688 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2690 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2691 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2692 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2693 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2694 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2695 (arm_linux_remove_watchpoint): Adjust.
2696 * i386-linux-nat.c (i386_linux_dr_set_control)
2697 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2698 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2699 (ia64_linux_remove_watchpoint): Adjust.
2700 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2701 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2702 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2703 (ppc_linux_insert_mask_watchpoint)
2704 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2705 (ppc_linux_remove_watchpoint): Adjust.
2706 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2709 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2711 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2712 (clear_win32_environment): New function for Cygwin to clear out
2714 (windows_create_inferior): Prepare new environment from in_env
2717 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2720 * python/py-value.c (valpy_call): Check that arguments are
2722 (is_intlike): Remove call to CHECK_TYPEDEF.
2723 (valpy_nonzero): Catch GDB exceptions.
2724 (valpy_absolute): Ditto.
2725 (valpy_lazy_string): Ditto.
2726 (valpy_call): Ditto.
2727 (valpy_get_is_optimized_out): Ditto.
2728 (valpy_long): Ditto.
2729 (valpy_float): Ditto.
2730 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2731 (valpy_richcompare): Ditto.
2733 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2735 * inferior.h (disable_randomization): Declare.
2736 * infrun.c (disable_randomization): New global variable.
2737 (show_disable_randomization): New function.
2738 (set_disable_randomization): Likewise.
2739 (_initialize_infrun): Install set/show disable-randomization
2741 * linux-nat.c (disable_randomization): Remove.
2742 (show_disable_randomization): Likewise.
2743 (set_disable_randomization): Likewise.
2744 (_initialize_linux_nat): No longer install set/show
2745 disable-randomization commands here.
2746 (linux_nat_supports_disable_randomization): New function.
2747 (linux_nat_add_target): Install it.
2748 * remote.c (PACKET_QDisableRandomization): New enum value.
2749 (remote_protocol_packets): Support QDisableRandomization.
2750 (_initialize_remote): Likewise.
2751 (remote_supports_disable_randomization): New function.
2752 (init_remote_ops): Install it.
2753 (extended_remote_supports_disable_randomization): New function.
2754 (init_extended_remote_ops): Install it.
2755 (extended_remote_disable_randomization): New function.
2756 (extended_remote_create_inferior_1): Call it.
2757 * target.h (struct target_ops): Add to_supports_disable_randomization.
2758 (target_supports_disable_randomization): Add prototype.
2759 * target.c (target_supports_disable_randomization): New function.
2760 (find_default_supports_disable_randomization): Likewise.
2761 (init_dummy_target): Install it.
2763 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2765 Allow Python notification of new object-file loadings.
2766 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2767 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2768 Add build rule for this file.
2769 * python/py-event.h (emit_new_objfile_event): New prototype.
2770 (newobjfile): New Python event emitter.
2771 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2772 Python event registry.
2773 * python/py-inferior.c: Include objfiles.h
2774 (python_new_objfile): New function.
2775 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2777 * python/py-newobjfileevent.c: New file.
2778 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2780 * python/python.c (_initialize_python): Add
2781 gdbpy_initialize_new_objfile_event call.
2782 * NEWS: Add item for new Python event "gdb.newobjfile"
2784 2011-10-05 Tristan Gingold <gingold@adacore.com>
2786 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2787 Extract the ravenscar task name from the symbol for the atcb.
2789 2011-10-04 Paul Koning <paul_koning@dell.com>
2791 * python/py-type.c (typy_make_iter): Add forward declaration.
2792 (typy_fields_items): Use the gdb.Type iterator.
2794 2011-10-04 Paul Koning <paul_koning@dell.com>
2796 * NEWS: Add entry for Python gdb.Type mapping methods.
2798 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2800 PR python/12691: Add the inferior to Python exited event
2801 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2803 * python/py-event.h (emit_exited_event): Likewise
2804 * python/-inferior.c (python_inferior_exit): Likewise
2806 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2808 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2809 in output of -ada-task-info GDB/MI command.
2811 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2813 * ada-lang.h (struct inferior): Declare.
2814 (print_ada_task_info): Add declaration.
2815 * ada-tasks.c (print_ada_task_info): Make non-static.
2816 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2817 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2818 * mi/mi-main.c: #include "ada-lang.h".
2819 (mi_cmd_list_features): Add "ada-task-info" to the list
2820 of supported features.
2821 (mi_cmd_ada_task_info): New function.
2823 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2825 * python/python.c (python_run_simple_file): New function.
2826 (source_python_script, source_python_script_for_objfile):
2827 Replace call to PyRun_SimpleFile by call to
2828 python_run_simple_file.
2830 2011-10-03 Paul Koning <paul_koning@dell.com>
2832 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2833 (value_to_value_object): Fetch value if it was lazy.
2835 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2838 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2839 Rearrange the code for it.
2841 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2843 * breakpoint.c (bkpt_print_recreate): Add call to
2844 print_recreate_thread.
2846 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2848 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2849 PTRACE_GETFDPIC_INTERP): Define.
2851 2011-09-28 Yao Qi <yao@codesourcery.com>
2853 * symfile.c (add_symbol_file_command): Update message on usage.
2855 2011-09-28 Paul Koning <paul_koning@dell.com>
2857 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2858 (typy_length, typy_get, typy_has_key, typy_make_iter)
2859 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2860 (typy_iterator_iter, typy_iterator_iternext)
2861 (typy_iterator_dealloc): New functions to implement standard
2862 Python mapping methods on gdb.Type object.
2863 (gdb.TypeIterator): New Python type.
2864 * python/python-internal.h (gdbpy_iter_kind): New enum.
2866 2011-09-28 David S. Miller <davem@davemloft.net>
2868 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2869 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2870 * sparc-tdep.c (sparc_complex_floating_p): New function.
2871 (sparc32_store_arguments): Handle complex floats.
2872 (sparc32_extract_return_value): Likewise.
2873 (sparc32_store_return_value): Likewise.
2874 (sparc32_stabs_argument_has_addr): Likewise.
2875 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2876 (sparc64_store_floating_fields): Handle complex floats.
2877 (sparc64_store_arguments): Likewise.
2878 (sparc64_store_return_value): Likewise.
2880 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2882 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2883 before the change on 2006-12-09.
2884 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2885 generates the environment block for CreateProcessA, modulo the
2886 Cygwin-specific parts that are not needed here.
2888 2011-09-27 Tristan Gingold <gingold@adacore.com>
2890 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2891 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2892 (darwin_solib_get_all_image_info_addr_at_init): New function.
2893 (darwin_solib_read_all_image_info_addr): Likewise.
2894 (darwin_solib_create_inferior_hook): Use the above two functions.
2895 * darwin-nat.c (darwin_execvp): Renames retval to res.
2896 (darwin_read_write_inferior): Update comment.
2897 (darwin_read_dyld_info): New function.
2898 (darwin_xfer_partial): Handle DYLD_INFO.
2900 2011-09-27 Stan Shebs <stan@codesourcery.com>
2902 Add return address collection for tracepoints.
2903 * tracepoint.c (encode_actions_1): Add case for $_ret.
2904 (validate_actionline): Check for $_ret.
2905 (trace_dump_actions): Ditto.
2906 * ax-gdb.h (gen_trace_for_return_address): Declare.
2907 * ax-gdb.c: Include arch-utils.h.
2908 (gen_trace_for_return_address): New function.
2909 (agent_command): Add return address special case.
2910 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2911 (amd64_gen_return_address): New function.
2912 (amd64_init_abi): Call it.
2913 * i386-tdep.c: Include ax.h and ax-gdb.h.
2914 (i386_gen_return_address): New function.
2915 (i386_init_abi): Call it.
2916 * arch-utils.h (default_gen_return_address): Declare.
2917 * arch-utils.c (default_gen_return_address): New function.
2918 * gdbarch.sh (gen_return_address): New method.
2919 * gdbarch.h, gdbarch.c: Regenerate.
2921 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2924 * i386-tdep.c (i386_frame_align): New.
2925 (i386_gdbarch_init): Use i386_frame_align.
2927 2011-09-23 Yao Qi <yao@codesourcery.com>
2929 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2932 2011-09-22 Tristan Gingold <gingold@adacore.com>
2934 * fork-child.c (fork_inferior): Add exec_fun parameter.
2935 Call exec_fun or execvp.
2936 * inferior.h: Adjust prototype.
2937 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2938 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2939 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2940 * procfs.c (procfs_create_inferior): Ditto.
2941 * darwin-nat.c (darwin_execvp): New function.
2942 (darwin_create_inferior): Use it.
2944 2011-09-22 Yao Qi <yao@codesourcery.com>
2946 * infrun.c (context_switch): Print debug message when switching to
2949 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2951 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2952 complex and vector types.
2953 (s390_return_value_convention): Likewise.
2955 (s390_value_from_register): Call check_typedef.
2956 (extend_simple_arg): Likewise.
2957 (alignment_of): Likewise.
2958 (s390_push_dummy_call): Likewise.
2959 (s390_return_value): Likewise.
2961 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2963 * event-top.c (async_disconnect): If an exception is thrown from
2964 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2966 * top.c (quit_cover): Return void and take no arguments.
2967 * top.h (quit_cover): Update prototype.
2969 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2971 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2972 current_uiout, not uiout.
2974 2011-09-19 Doug Evans <dje@google.com>
2976 * python/py-auto-load.c (source_section_scripts): Fix file
2978 * python/python.c (source_python_script_for_objfile): Tweak comments.
2980 2011-09-18 Yao Qi <yao@codesourcery.com>
2981 Ulrich Weigand <ulrich.weigand@linaro.org>
2983 Support displaced stepping for Thumb 16-bit insns.
2984 * arm-tdep.c (THUMB_NOP) Define.
2985 (thumb_copy_unmodified_16bit): New.
2986 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2987 (thumb_copy_alu_reg): New.
2988 (arm_copy_svc): Move some common code to ...
2989 (install_svc): ... here. New.
2990 (thumb_copy_svc): New.
2991 (install_pc_relative): New.
2992 (thumb_copy_pc_relative_16bit): New.
2993 (thumb_decode_pc_relative_16bit): New.
2994 (thumb_copy_16bit_ldr_literal): New.
2995 (thumb_copy_cbnz_cbz): New.
2996 (cleanup_pop_pc_16bit_all): New.
2997 (thumb_copy_pop_pc_16bit): New.
2998 (thumb_process_displaced_16bit_insn): New.
2999 (thumb_process_displaced_32bit_insn): New.
3000 (thumb_process_displaced_insn): process thumb instruction.
3002 Support displaced stepping for Thumb 32-bit insns.
3003 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
3004 (thumb2_copy_preload): New.
3005 (thumb2_copy_copro_load_store): New.
3006 (thumb2_copy_b_bl_blx): New.
3007 (thumb2_copy_alu_imm): New.
3008 (thumb2_copy_load_reg_imm): New.
3009 (thumb2_copy_load_literal): New
3010 (thumb2_copy_block_xfer): New.
3011 (thumb_32bit_copy_undef): New.
3012 (thumb_32bit_copy_unpred): New.
3013 (thumb2_decode_ext_reg_ld_st): New.
3014 (thumb2_decode_svc_copro): New.
3015 (decode_thumb_32bit_store_single_data_item): New.
3016 (thumb_copy_pc_relative_32bit): New.
3017 (thumb_decode_pc_relative_32bit): New.
3018 (decode_thumb_32bit_ld_mem_hints): New.
3019 (thumb2_copy_table_branch): New
3020 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
3023 2011-09-18 Yao Qi <yao@codesourcery.com>
3025 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
3026 (install_b_bl_blx): Likewise.
3028 2011-09-17 Yao Qi <yao@codesourcery.com>
3030 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
3031 (install_load_store): ... this. New.
3032 Change parameter BYTE to SIZE.
3033 (arm_copy_ldr_str_ldrb_strb): Update caller.
3034 (arm_decode_ld_st_word_ubyte): Update caller.
3036 2011-09-17 Yao Qi <yao@codesourcery.com>
3038 * infrun.c (displaced_step_fixup): Move some code ...
3039 (displaced_step_restore): ... here. New function.
3040 (handle_inferior_event): Cleanup displaced stepping state for both
3041 child and parent when get forked or vforked event.
3042 * regcache.c (get_thread_arch_aspace_regcache): New function.
3043 get_thread_arch_regcache (): Call it.
3045 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3047 * ada-tasks.c (print_ada_task_info): New function, merging
3048 short_task_info and info_tasks together. Reimplement using
3049 ui-out instead of printing to stdout directly. Move the code
3050 building and checking the task list here, instead of leaving it
3051 in info_tasks_command.
3052 (info_task): Move the code building and checking the task
3053 list here, instead of leaving it in info_tasks_command.
3054 (info_tasks_command): Delete code building and checking
3055 the task list - moved elsewhere. Update calls to info_tasks
3058 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3060 * ada-tasks.c (info_task): Delete parameter `from_tty'.
3062 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3064 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3066 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3068 * ada-lang.h (ada_build_task_list): Remove parameter
3070 * ada-tasks.c (ada_build_task_list): Remove parameter
3071 `warn_if_null'. Adjust implementation and documentation.
3072 (valid_task_id, ada_get_environment_task)
3073 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3074 (info_tasks_command): Adjust implementation.
3075 (task_command): Likewise.
3076 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3077 to ada_build_task_list.
3079 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3081 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3082 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3083 (ada_tasks_inferior_data_handle): New static global.
3084 (get_ada_tasks_inferior_data): New function.
3085 (ada_get_task_number, get_task_number_from_id, valid_task_id)
3086 (ada_get_environment_task, iterate_over_live_ada_tasks)
3087 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3089 (ada_set_current_inferior_known_tasks_addr): New function.
3090 (read_known_tasks, ada_build_task_list, short_task_info)
3091 (info_tasks, info_task, info_tasks_command, task_command_1)
3092 (task_command, ada_task_list_changed): Adjust.
3093 (ada_tasks_invalidate_inferior_data): New function.
3094 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3095 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3096 * ada-lang.h (struct inferior): Add declaration.
3097 (ada_task_list_changed): Update profile.
3098 * remote-wtx-pd.c: #include "inferior.h".
3099 (switch_to_pd_internal): Update call to ada_task_list_changed.
3101 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3103 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3104 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3105 (atcb_fieldno): Delete these static globals.
3106 (struct ada_tasks_pspace_data): New struct.
3107 (ada_tasks_pspace_data_handle): New static global.
3108 (get_ada_tasks_pspace_data): New function.
3109 (ada_tasks_invalidate_pspace_data): New function.
3110 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3111 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3112 (_initialize_tasks): Create this module's per-progspace
3115 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3117 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3119 2011-09-16 Tristan Gingold <gingold@adacore.com>
3121 * fork-child.c (fork_inferior): Update comment. Use alloca
3122 instead of xmalloc for argv. Move len and shell_command
3123 declarations in the block where they are used.
3124 Only call execvp. Factorize failure code.
3126 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3129 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3130 `exp_element' instead of an element of the same and make the function
3132 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3133 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3134 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3135 Change argument of `write_exp_elt' function call.
3136 Remove extra spaces from comments.
3137 * parser-defs.h (write_exp_elt): Remove prototype.
3139 2011-09-15 Paul Koning <paul_koning@dell.com>
3141 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3142 count of item appended to list.
3143 * python/py-type.c (typy_fields): Likewise.
3145 2011-09-15 Paul Koning <paul_koning@dell.com>
3147 * MAINTAINERS (Write After Approval): Add myself to the list.
3149 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3152 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3153 processes with multiple threads.
3154 (inf_has_multiple_thread_cb): New function.
3155 (inf_has_multiple_threads): New function.
3157 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3159 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3160 * python/py-inferior.c (GdbMethods): New Python method definition.
3162 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3164 Handle multiple breakpoint hits in Python interface:
3165 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3166 variable to breakpoints.
3167 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3168 bps instead of single breakpoint. Fix some space typos.
3169 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3170 variable to breakpoints.
3172 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3174 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3175 note if the breakpoint is internal.
3177 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3179 * MAINTAINERS (Write After Approval): Add myself to the list
3181 2011-09-14 Pedro Alves <pedro@codesourcery.com>
3183 * infrun.c (prepare_for_detach, wait_for_inferior)
3184 (fetch_inferior_event): Don't flush the register cache.
3185 * remote.c (struct stop_reply) <regcache>: Add comment.
3187 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3189 Remove excessive DWARF expressions memory duplication.
3190 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3192 (indirect_pieced_value): Remove variable result. Remove variable
3193 back_to and its use for baton.data.
3194 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3196 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3197 Update the function comment.
3199 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3201 * inferior.h (ALL_INFERIORS): New.
3202 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3203 for a stopped thread.
3204 (thread_db_find_new_threads): Look for threads in all inferiors.
3206 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3208 * breakpoint.c (update_watchpoint): Handle the case of the
3209 watchpoint to update not being in the breakpoint list yet.
3210 (hw_watchpoint_use_count): New, factored out from
3211 hw_watchpoint_used_count.
3212 (hw_watchpoint_used_count): Rename to ...
3213 (hw_watchpoint_used_count_others): ... this. Add `except'
3214 parameter. Don't count resources of `except'. Use
3215 hw_watchpoint_use_count.
3217 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3219 * gdbthread.h (enum thread_state): Moved here.
3220 (struct thread_info): Rename `executing_' field to `executing' and
3221 `state_' to `state'.
3222 * thread.c (enum thread_state): Moved to gdbthread.h.
3223 (new_thread, add_thread_silent, delete_thread_1)
3224 (any_live_thread_of_process, thread_alive, set_running)
3225 (set_running, is_thread_state, any_running, is_executing)
3226 (set_executing, finish_thread_state, print_thread_info)
3227 (do_captured_thread_select): Adjust.
3229 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3231 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3232 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3234 2011-09-12 Pedro Alves <pedro@codesourcery.com>
3235 Matt Rice <ratmice@gmail.com>
3239 * interps.c (struct interp) <interpreter_out>: Delete field.
3240 (interp_new): Remove the data and uiout parameters and adjust.
3241 (interp_set): Only set the current_uiout from the interpreter's
3242 uiout after initializing the interpreter. Adjust call to
3244 (interp_ui_out): Adjust to call procs->ui_out_proc.
3245 (interp_data, interp_name): New.
3246 * interps.h (interp_init_ftype): Add `self' parameter.
3247 (interp_ui_out_ftype): New typedef.
3248 (struct interp_procs) <ui_out_proc>: New method pointer.
3249 (interp_new): Remove the data and uiout parameters.
3250 (interp_data, interp_name): Declare.
3251 * tui/tui-interp.c (tui_init): Adjust prototype.
3253 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3254 tui_out here. Adjust call to interp_new.
3255 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3256 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3258 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3259 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3260 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3261 Initialize mi->uiout depending on the mi_version as extracted from
3262 the interpreter's name.
3264 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3265 interp_new. Don't allocate the ui_out's of the interpreters here.
3267 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3269 * solib.c (solib_used): New function.
3270 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3271 by another so_list object before freeing it.
3273 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3276 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3279 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3282 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3283 (amd64_skip_xmm_prologue): ... this new function. Describe its
3284 parameters. No longer use amd64_prologue_line_bug.
3285 * defs.h (producer_is_gcc_ge_4): New declaration.
3286 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3287 (process_full_comp_unit): Update its caller. Remove
3288 amd64_prologue_line_bug initialization.
3289 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3290 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3292 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3294 * linux-nat.h (enum resume_kind): New.
3295 (struct lwp_info) <last_resume_kind>: New field.
3296 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3297 resume_stop on the new lwp.
3298 (add_lwp): Set last_resume_kind as resume_continue by default.
3299 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3300 (resume_lwp): New, factored out from resume_callback. Also check
3301 for pending status in lp->waitstatus.
3302 (resume_callback): Reimplement.
3303 (resume_clear_callback): Set last_resume_kind as resume_stop.
3304 (resume_set_callback): Set last_resume_kind as resume_continue.
3305 (linux_nat_resume, linux_handle_extended_wait): Set
3307 (running_callback): Also check lp->waitstatus for pending events.
3308 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3310 (stop_and_resume_callback): Don't re-resume if the core wanted the
3311 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3312 using an invalidated pointer.
3313 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3314 SIGSTOPs if the core wanted the LWP to stop.
3315 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3316 wanted the lwp to stop. If the core wanted the lwp to stop, and
3317 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3318 of TARGET_SIGNAL_STOP.
3319 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3320 here. Instead, signal the lwp, and set the last_resume_kind to
3323 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3325 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3326 -1 (error), if the lwp exits right after attaching.
3328 2011-09-08 Doug Evans <dje@google.com>
3330 * py-cmd.c: Some minor formatting fixes.
3331 (gdbpy_parse_command_name): Rename text arg to name, make const.
3332 All callers updated.
3333 * python-internal.h (gdbpy_parse_command_name): Update.
3335 * cli/cli-decode.c (add_cmd): Add comment.
3337 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3339 PR breakpoints/12435
3340 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3341 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3342 * dwarf2read.c (process_full_comp_unit): Initialize
3343 amd64_prologue_line_bug.
3344 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3346 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3348 Fix TUI screen corruption.
3349 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3352 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3354 * findvar.c (read_var_value): Never return NULL, throw an error
3355 instead. Update the function comment. State symbol name in the error
3357 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3359 * stack.c (print_frame_args): Likewise.
3360 * valops.c (value_of_variable): Likewise.
3362 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3364 * stack.c (print_frame_args): New variable except. Wrap
3365 read_var_value and common_val_print into TRY_CATCH.
3367 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3369 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3370 caller to value_of_this.
3371 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3373 * valops.c (value_of_this): Remove parameter complain and variable ret.
3374 Update function comment. Never return NULL by this code.
3375 (value_of_this_silent): New function.
3376 * value.h (value_of_this): Remove parameter complain.
3377 (value_of_this_silent): New declaration.
3379 2011-09-07 Yao Qi <yao@codesourcery.com>
3381 * gdbthread.h (struct thread_info): Remove fields
3382 `stepping_through_solib_after_catch' and
3383 `stepping_through_solib_catchpoints'.
3384 * infrun.c (init_thread_stepping_state): Update.
3385 (process_event_stop_test, currently_stepping): Update.
3386 (currently_stepping_or_nexting_callback): Update.
3388 2011-09-07 Yao Qi <yao@codesourcery.com>
3390 * gdbthread.h (struct thread_info): Comment on field
3391 `step_after_step_resume_breakpoint'.
3393 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3395 * remote.c (remote_console_output): Reindent.
3397 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3399 * frame.c (has_stack_frames): Check for currently selected
3402 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3404 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3405 (set_async_annotation_level, set_async_prompt, pop_prompt)
3406 (push_prompt, new_async_prompt): Delete declarations.
3407 * top.h (get_prompt, set_prompt): Change prototype.
3408 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3410 * top.c (command_loop):
3411 (top_prompt): New global.
3412 (get_prefix, set_prefix, get_suffix, ): Delete.
3413 (get_prompt, set_prompt): Rewrite.
3414 (show_new_async_prompt): Rename to ...
3415 (show_prompt): ... this.
3416 (init_main): Adjust. Don't handle --annotate=2 here.
3417 * event-top.c (new_async_prompt): Delete.
3418 (the_prompts): Delete.
3419 (more_to_come): Make static.
3420 (display_gdb_prompt): Use top_level_prompt() to compute the top
3421 level prompt, and don't notify the before_prompt observers
3422 directly here. Always trick readline into not trying to display
3423 the prompt if sync_execution and displaying the primary prompt.
3424 If displaying a local/secondary prompt, always show it, even if
3425 sync_execution is set.
3426 (change_annotation_level): Delete.
3427 (top_level_prompt): New, based on change_annotation_level.
3428 (push_prompt, pop_prompt): Delete.
3429 (async_disable_stdin): No longer pushes prompt.
3430 (command_line_handler): No longer pushes or pops prompt. If more
3431 input is expected, call display_gdb_prompt with an explicit empty
3433 (async_stop_sig): Adjust.
3434 (set_async_annotation_level, set_async_prompt): Delete.
3435 * python/python.c (before_prompt_hook): Adjust.
3437 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3441 * infrun.c (fetch_inferior_event): Check if there's a selected
3442 thread before checking if the selected thread is executing.
3444 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3446 * inf-loop.c (execute_command): Don't check if the current thread
3447 if running before synchronously waiting for command completion.
3448 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3450 (normal_stop): Call async_enable_stdin here.
3451 * inf-loop.c (inferior_event_handler): Don't call
3452 async_enable_stdin, nor handle "set exec-done-display" here.
3454 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3458 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3460 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3462 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3464 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3466 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3468 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3470 2011-09-02 Matt Rice <ratmice@gmail.com>
3473 * event-top.c (cli_command_loop): Replace readline setup with
3474 direct call to display_gdb_prompt.
3475 (display_gdb_prompt): Do not call observer mechanism during
3476 synchronous execution.
3478 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3480 * linux-nat.c (in_pid_list_p): New.
3481 (linux_record_stopped_pid): Delete.
3482 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3483 already attached to the LWP. Return an indication if so.
3484 (linux_nat_filter_event): Adjust.
3485 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3486 returning an indication to ignore this thread.
3488 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3490 * top.c: Include interps.h.
3491 (execute_command): If the target can async, but the interpreter is
3492 in sync mode, synchronously wait for the command to finish before
3494 (execute_command_to_string): Force the interpreter to sync mode.
3495 * infrun.c: Include interps.h.
3496 (fetch_inferior_event): Don't restore the prompt yet if the
3497 interpreter is in sync mode.
3498 * interps.c (interpreter_async): New global.
3499 * interps.h (interpreter_async): Declare.
3500 * inf-loop.c: Include interps.h.
3501 (inferior_event_handler): Don't print the language change or run
3502 breakpoint commands yet if the interpreter in is sync mode.
3503 * main.c (captured_command_loop): Flip the interpreter to async
3505 * cli/cli-script.c: Include interps.h.
3506 (execute_user_command, while_command, if_command): Force the
3507 interpreter to sync mode.
3508 * python/python.c: Include interps.h.
3509 (python_command, execute_gdb_command): Force the interpreter to
3512 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3514 * value.c (show_convenience): Catch errors thrown while printing
3515 each internal variable.
3516 * infrun.c (validate_siginfo_access): New function.
3517 (siginfo_value_read, siginfo_value_write): Call it.
3519 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3522 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3523 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3526 2011-08-29 Yao Qi <yao@codesourcery.com>
3528 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3530 (enable_break2): Update caller.
3531 * solib-frv.c (bfd_lookup_symbol): Removed.
3533 (enable_break2): Update caller.
3534 * solib-pa64.c (bfd_lookup_symbol): Removed.
3536 * solib-svr4.c (bfd_lookup_symbol): Removed.
3537 (cmp_name_and_sec_flags): New.
3538 (enable_break): Update caller.
3539 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3540 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3541 (gdb_bfd_lookup_symbol): New.
3542 * solib.h: Functions declarations.
3544 2011-08-29 Yao Qi <yao@codesourcery.com>
3546 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3549 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3551 Fix TUI stepi on code without symbols.
3552 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3555 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3558 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3559 and the static keyword.
3560 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3561 Make prefix an array.
3562 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3563 * mi/mi-main.c (get_register): Remove stb initialization and the static
3566 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3568 Code cleanup - make mi_opt const.
3569 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3571 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3572 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3573 (mi_cmd_env_dir): Likewise.
3574 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3575 (mi_cmd_target_file_put): Likewise.
3576 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3577 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3578 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3579 (mi_valid_noargs): Make opts const.
3580 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3581 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3582 (mi_cmd_data_read_memory): Likewise.
3583 (mi_cmd_data_read_memory_bytes): Likewise.
3584 (mi_cmd_data_write_memory): Likewise.
3586 2011-08-26 Matt Rice <ratmice@gmail.com>
3588 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3589 bcache_xmalloc, replace bcache_xmalloc with call to
3590 psymbol_bcache_init for psymbol_cache.
3591 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3593 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3595 * inf-loop.c (inferior_event_handler): Add exception_print in
3598 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3600 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3601 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3602 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3603 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3604 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3605 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3606 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3607 * infrun.c (fetch_inferior_event): Call
3608 make_bpstat_clear_actions_cleanup.
3609 * top.c (execute_command): New variable cleanup_if_error, call
3610 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3611 * utils.c (do_bpstat_clear_actions_cleanup)
3612 (make_bpstat_clear_actions_cleanup): New functions.
3614 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3616 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3617 either the parent or the child forks. Rename a couple locals.
3619 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3621 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3622 library call. Avoid reading the `status' local if all waitpid
3625 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3627 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3628 opening /proc/PID/task always succeeds.
3630 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3632 * linespec.c (symtab_from_filename): Check for the end of string.
3634 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3637 * varobj.c (cplus_describe_child): Add the keyword
3638 'class' to the output of the method when dealing
3639 with a cast to a base class.
3641 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3643 No functionality change.
3644 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3645 function comment a reference, new variables tp and bs, move here code
3646 from throw_exception.
3647 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3648 describe it in the comment.
3649 * exceptions.c (throw_exception): Remove variable tp, move the code for
3650 bpstat_clear_actions to bpstat_clear_actions.
3652 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3654 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3655 * linux-nat.c: Include linux-procfs.h.
3656 (linux_proc_get_tgid): Move to ...
3657 * common/linux-procfs.c: ... here. New file.
3658 * common/linux-procfs.h: New file.
3659 * linux-thread-db.c: Include linux-procfs.h.
3660 * Makefile.in: Update dependencies.
3661 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3662 * config/arm/linux.mh: Likewise.
3663 * config/i386/linux.mh: Likewise.
3664 * config/i386/linux64.mh: Likewise.
3665 * config/ia64/linux.mh: Likewise.
3666 * config/m32r/linux.mh: Likewise.
3667 * config/m68k/linux.mh: Likewise.
3668 * config/mips/linux.mh: Likewise.
3669 * config/pa/linux.mh: Likewise.
3670 * config/pa/linux.mh: Likewise.
3671 * config/powerpc/linux.mh: Likewise.
3672 * config/powerpc/ppc64-linux.mh: Likewise.
3673 * config/powerpc/spu-linux.mh: Likewise.
3674 * config/sparc/linux.mh: Likewise.
3675 * config/sparc/linux64.mh: Likewise.
3676 * config/xtensa/linux.mh: Likewise.
3678 2011-08-24 Hui Zhu <teawater@gmail.com>
3680 * tracepoint.c (cond_string_is_same): New function.
3681 (find_matching_tracepoint): Add condition check
3682 by cond_string_is_same.
3684 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3686 Fix build error in Darwin port.
3687 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3689 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3692 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3693 (command_line_is_silent): New function.
3694 (bpstat_do_actions_1): No longer use commands_left, use
3695 command_line_is_silent for commands.
3696 (bpstat_alloc): Remove clearing of commands_left.
3697 (bpstat_stop_status): Remove initialization of commands_left, use
3698 command_line_is_silent.
3699 * breakpoint.h (struct bpstats): Remove commands_left.
3701 2011-08-18 Keith Seitz <keiths@redhat.com>
3704 * cp-name-parser.y (struct demangle_info): Remove unused
3707 (allocate_info): Change return type to struct demangle_info *.
3708 Always allocate a new demangle_info.
3709 Remove unused PREV pointer.
3710 (cp_new_demangle_parse_info): New function.
3711 (cp_demangled_name_parse_free): New function.
3712 (do_demangled_name_parse_free_cleanup): New function.
3713 (make_cleanup_cp_demangled_name_parse_free): New function.
3714 (cp_demangled_name_to_comp): Change return type to
3715 struct demangle_parse_info *.
3716 Allocate a new storage for each call.
3717 (main): Update usage for cp_demangled_name_to_comp
3719 * cp-support.h (struct demangle_parse_info): New structure.
3720 (cp_demangled_name_to_comp): Update API change for
3722 (cp_new_demangle_parse_info): Declare.
3723 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3724 (cp_demangled_name_parse_free): Declare.
3725 * cp-support.c (cp_canonicalize_string): Update API
3726 change for cp_demangled_name_to_comp.
3727 (mangled_name_to_comp): Likewise.
3728 Return struct demangle_parse_info, too.
3729 (cp_class_name_from_physname): Update mangled_name_to_comp
3731 (method_name_from_physname): Likewise.
3732 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3733 (cp_remove_params): Likewise.
3734 * python/py-type.c (typy_legacy_template_argument): Likewise.
3736 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3737 (cp_merge_demangle_parse_infos): Declare.
3738 * cp-support.c (ignore_typedefs): New file global.
3739 (copy_string_to_obstack): New function.
3740 (inspect_type): New function.
3741 (replace_typedefs): New function.
3742 (replace_typedefs_qualified_name): New function.
3743 (cp_canonicalize_string_no_typedefs): New function.
3744 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3745 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3746 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3747 instead of cp_canonicalize_string.
3748 (find_method): Likewise.
3749 (decode_compound): Before looking up the name, call
3750 cp_canonicalize_string_no_typedefs.
3751 (decode_variable): Likewise.
3753 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3754 Tom Tromey <tromey@redhat.com>
3755 Matt Rice <ratmice@gmail.com>
3757 * python/lib/gdb/prompt.py: New file.
3758 * python/lib/gdb/command/prompt.py: New file.
3759 * NEWS: Document set extended-prompt and gdb.prompt library
3761 2011-08-16 Yao Qi <yao@codesourcery.com>
3763 * tic6x-linux-tdep.c: Move const arrays definition from here...
3764 * tic6x-tdep.c: to here ...
3766 2011-08-14 Yao Qi <yao@codesourcery.com>
3768 * NEWS: New port to Texas Instruments TMS320C6x.
3770 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3771 Bernd Schmidt <bernds@codesourcery.com>
3772 Yao Qi <yao@codesourcery.com>
3774 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3775 * solib-dsbt.c: New file. Support DSBT shared object.
3776 * tic6x-linux-tdep.c: New file.
3777 * tic6x-tdep.c: New file.
3778 * tic6x-tdep.h: New file.
3780 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3781 Yao Qi <yao@codesourcery.com>
3783 * remote.c (PACKET_qXfer_fdpic): New enum value.
3784 (remote_protocol_features): Add qXfer:fdpic:read packet.
3785 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3786 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3787 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3789 2011-08-14 Yao Qi <yao@codesourcery.com>
3791 Target description for tic6x.
3792 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3793 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3794 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3795 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3796 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3797 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3798 * features/tic6x-c64xp-linux.xml: New.
3799 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3800 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3801 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3802 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3803 * regformats/tic6x-c64xp.dat,
3804 regformats/tic6x-c62x-linux.dat: Generated.
3805 * regformats/tic6x-c64x-linux.dat,
3806 regformats/tic6x-c64xp-linux.dat: Generated.
3807 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3808 features/tic6x-*.c files.
3809 Add regformats/tic6x-*.dat files.
3811 2011-08-12 Doug Evans <dje@google.com>
3813 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3814 * python/py-symbol.c (sympy_get_type): New function.
3815 (symbol_object_getset): Add "type".
3817 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3821 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3823 (tui_show_register_group): Don't store a byte buffer in the data
3825 (tui_register_format): Skip registers with an empty name.
3826 (tui_get_register): Store a struct value in the data element's
3827 value field instead of a byte buffer holding the raw register
3828 contents. Account for optimized-out and unavailable registers
3829 when comparing register contents.
3831 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3833 * printcmd.c (current_display_number): Update comment.
3834 (disable_current_display_cleanup): Delete.
3835 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3836 catch errors thrown while evaluating and printing the display.
3838 2011-08-09 Tom Tromey <tromey@redhat.com>
3840 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3842 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3844 * elfread.c (elf_symtab_read): Rework comments.
3845 * maint.c (maintenance_command): Ditto.
3846 * somread.c (som_symtab_read): Ditto.
3847 * solib.c (solib_find, solib_map_sections, update_solib_list)
3848 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3849 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3850 (sharedlibrary_command, no_shared_libraries): Ditto.
3851 * solib-irix.c (locate_base, disable_break, enable_break)
3852 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3853 (irix_current_sos, irix_open_symbol_file_object)
3854 (irix_special_symbol_handling): Ditto.
3855 * solib-sunos.c (locate_base, first_link_map_member)
3856 (sunos_current_sos, disable_break, enable_break)
3857 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3859 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3860 (open_symbol_file_object, svr4_current_sos, enable_break)
3861 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3863 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3864 (frv_current_sos, enable_break, frv_special_symbol_handling)
3865 (frv_solib_create_inferior_hook): Ditto.
3866 * solist.h (struct target_so_ops): Extend the comments of the
3867 special_symbol_handling, current_sos and open_symbol_file_object
3870 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3872 * python/lib/gdb/__init__.py: Auto-load files in command and
3873 function directories.
3874 * python/python.c (finish_python_initialization): Use
3876 * python/lib/gdb/command/pretty_printers.py: Self register
3878 * NEWS: Document auto-loading.
3880 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3882 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3883 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3884 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3886 2011-08-08 Tom Tromey <tromey@redhat.com>
3888 * breakpoint.c (clean_up_filters): Remove.
3889 (catch_syscall_split_args): Use VEC_cleanup.
3891 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3893 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3894 (main): Uncomment "Demangling error\n".
3896 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3898 * solib-target.c (segment_attributes): Make them static.
3899 (section_attributes, library_children, library_attributes): Likewise.
3900 (library_list_children, library_list_attributes): Likesise.
3901 (library_list_elements): Likewise.
3903 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3905 * exceptions.c (throw_exception): Don't disable the current
3907 * printcmd.c (disable_current_display_cleanup): New function.
3908 (do_one_display): Install a cleanup to disable the current display
3909 if doing the display throws.
3911 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3913 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3914 initialization of the tp_new member to the corresponding
3915 gdbpy_initialize_* function.
3916 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3917 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3918 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3919 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3920 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3922 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3924 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3925 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3926 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3927 references to current_uiout.
3929 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3931 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3932 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3933 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3934 * top.c (gdb_readline_wrapper): Adjust.
3935 * tui/tui-interp.c (tui_command_loop):
3936 (_initialize_tui_interp): Don't install it.
3938 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3940 * ui-out.h (uiout): Rename to ...
3941 (current_uiout): ... this.
3942 * ui-out.c (uiout): Rename to ...
3943 (current_uiout): ... this.
3944 * ada-lang.c (print_it_exception, print_one_exception)
3945 (print_mention_exception): Adjust.
3946 * breakpoint.c (watchpoint_check): Adjust.
3947 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3948 (default_collect_info, watchpoints_info, print_one_catch_fork)
3949 (print_one_catch_vfork, print_one_catch_syscall)
3950 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3951 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3952 (print_it_watchpoint, print_mention_watchpoint)
3953 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3954 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3955 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3956 (bkpt_print_mention, momentary_bkpt_print_it)
3957 (tracepoint_print_mention, update_static_tracepoint)
3958 (tracepoints_info, save_breakpoints): Adjust.
3959 * cli-out.c (field_separator): Adjust.
3960 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3961 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3962 * frame.c (get_current_frame): Adjust.
3963 * infcmd.c (run_command_1, print_return_value): Adjust.
3964 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3965 * infrun.c (print_end_stepping_range_reason): Adjust.
3966 (print_signal_exited_reason, print_exited_reason): Adjust.
3967 (print_signal_received_reason, print_no_history_reason): Adjust.
3968 * interps.c (interp_set): Adjust.
3969 * osdata.c (info_osdata_command): Adjust.
3970 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3971 * remote-fileio.c (remote_fileio_request): Adjust.
3972 * remote.c (show_remote_cmd): Adjust.
3973 * solib.c (info_sharedlibrary_command): Adjust.
3974 * source.c (print_source_lines_base): Adjust.
3975 * stack.c (print_stack_frame): Adjust.
3976 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3977 * symfile-mem.c (add_vsyscall_page): Adjust.
3978 * symfile.c (load_progress, generic_load)
3979 (print_transfer_performance): Adjust.
3980 * thread.c (info_threads_command, restore_selected_frame)
3981 (thread_command): Adjust.
3982 * top.c (make_cleanup_restore_ui_file): Adjust.
3983 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3984 (print_one_static_tracepoint_marker): Adjust.
3985 * cli/cli-cmds.c (print_disassembly): Adjust.
3986 * cli/cli-decode.c (print_doc_line): Adjust.
3987 * cli/cli-interp.c (safe_execute_command): Adjust.
3988 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3989 (handle_redirections): Adjust.
3990 * cli/cli-script.c (show_user_1): Adjust.
3991 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3992 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3993 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3994 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3995 (mi_cmd_env_dir): Adjust.
3996 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3997 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3998 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3999 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
4000 (list_args_or_locals): Adjust.
4001 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4002 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
4003 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
4004 (mi_cmd_var_list_children, mi_cmd_var_info_type)
4005 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
4006 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
4007 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
4008 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
4009 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
4010 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
4011 (list_available_thread_groups, mi_cmd_list_thread_groups)
4012 (mi_cmd_data_list_register_names)
4013 (mi_cmd_data_list_changed_registers)
4014 (mi_cmd_data_list_register_values, get_register)
4015 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
4016 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
4017 (mi_cmd_list_target_features, mi_cmd_add_inferior)
4018 (mi_execute_command, mi_load_progress): Adjust.
4019 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
4020 * python/py-auto-load.c (print_script, info_auto_load_scripts):
4022 * python/py-breakpoint.c (bppy_get_commands): Adjust.
4023 * tui/tui-interp.c (tui_command_loop): Adjust.
4024 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
4026 2011-08-04 Pedro Alves <pedro@codesourcery.com>
4028 * exceptions.c (struct catcher): Remove saved_uiout field.
4029 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
4030 no longer save/resvore the global ui_out builder.
4031 (catch_exceptions_with_msg): Save/override/restore the global
4032 ui_out builder manually instead of relying on TRY_CATCH to do it.
4033 (catch_errors): Save/restore the global ui_out builder manually
4034 instead of relying on TRY_CATCH to do it.
4035 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
4037 (TRY_CATCH): Adjust.
4038 * cli/cli-interp.c (safe_execute_command): Save/override/restore
4039 the global ui_out builder manually instead of relying on TRY_CATCH
4042 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4044 * breakpoint.c (update_global_location_list): Ensure
4045 invariant 'first loc marked not duplicated and inserted,
4046 following locs marked duplicated/not inserted' is respected
4047 for multiple locations at the same address.
4048 (unduplicated_should_be_inserted) New function.
4049 (swap_insertion) New function.
4051 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4053 * stack.c (print_frame_arguments_choices): Comment typo fix.
4055 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4058 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4059 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4060 argument. Update callers.
4062 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4065 * doublest.c (convert_doublest_to_floatformat): Pass correct
4066 mantissa length to put_field.
4068 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4070 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4071 exception_print code path.
4072 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
4073 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
4074 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
4076 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4079 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4080 Remove, merge them into ...
4081 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
4082 variable args and its initialization.
4083 (struct print_args_args, print_args_stub): Remove, merge them into
4085 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4087 (do_gdb_disassembly): ... here. Remove variable args and its
4089 (print_frame): Remove variable args and its initialization, new
4090 variable gdbarch and numargs (from print_args_stub), inline here
4091 print_args_stub with a TRY_CATCH.
4092 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4094 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
4095 New variable e, remove variable btargs and its initialization.
4097 2011-08-01 Tristan Gingold <gingold@adacore.com>
4099 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4101 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4103 * breakpoint.c (insert_bp_location): Document return value.
4104 (insert_breakpoint_locations): Fix documentation.
4105 (remove_breakpoints): Add documentation.
4107 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4109 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4110 argument. Update callers.
4112 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4114 * stack.c (print_frame_info): Comment typo fix.
4116 2011-07-29 Sterling Augustine <saugustine@google.com>
4118 * MAINTAINERS (Write After Approval): Add myself to the list.
4120 2011-07-29 Tom Tromey <tromey@redhat.com>
4122 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4123 (library_list_start_segment): Update.
4124 (library_list_start_section): Update.
4126 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4128 * varobj.c (value_get_print_value): Move hint check later into the
4129 function. Comment function. Free thevalue before reusing it.
4131 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4132 Pedro Alves <pedro@codesourcery.com>
4134 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4136 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4137 Assert the result kind.
4138 * value.h (value_one): Remove parameter lv.
4140 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4142 Fix crash on lval_computed values.
4143 * valops.c (value_zero): Use not_lval for lval_computed.
4145 2011-07-27 Tom Tromey <tromey@redhat.com>
4147 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4148 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4150 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4152 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4153 "ptype" by their typedefs difference.
4155 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4157 * dwarf2expr.c (ctx_no_read_reg): New function.
4158 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4159 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4160 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4161 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4163 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4165 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4166 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4168 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4169 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4170 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4171 (ctx_no_get_base_type): Move the functions here.
4172 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4173 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4174 (ctx_no_get_base_type): New declarations.
4176 2011-07-27 Tom Tromey <tromey@redhat.com>
4178 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4180 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4181 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4183 2011-07-26 Sterling Augustine <saugustine@google.com>
4185 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4187 (dump_bfd_file): Likewise.
4189 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4191 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4192 (remote_hw_watchpoint_length_limit): New variable.
4193 (_initialize_remote) add set,show cmds for this new variable.
4194 * gdb.texinfo: document these new commands.
4195 * NEWS: Mention these new commands.
4197 2011-07-26 Pedro Alves <pedro@codesourcery.com>
4199 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4200 true for software watchpoints.
4202 2011-07-26 Joel Brobecker <brobecker@adacore.com>
4206 2011-07-26 Tom Tromey <tromey@redhat.com>
4208 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4209 * dwarf2read.c (read_indirect_string_at_offset): New function.
4210 (read_indirect_string): Use it.
4211 (dwarf_decode_macro_bytes): New function, taken from
4212 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4213 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4214 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4216 (struct dwarf2_per_objfile) <macro>: New field.
4217 (dwarf2_elf_names): Add .debug_macro.
4218 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4219 (dwarf2_locate_sections): Handle new section.
4220 (read_file_scope): Handle DW_AT_GNU_macros.
4221 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4223 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4225 * NEWS: Mention dcache configuration.
4226 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4227 (dcache_size, dcache_line_size): New variables.
4228 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4229 (struct dcache_block): Make it expandable.
4230 (struct dcache_struct): New field.
4231 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4232 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4233 (dcache_poke_byte, dcache_print_line): Adjust.
4234 (set_dcache_size, set_dcache_line_size): New functions.
4235 (set_dcache_command, show_dcache_command): New functions.
4236 (_initialize_dcache): Add new commands.
4238 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4240 * progspace.h (struct program_space): Add solib_add_generation.
4241 * infcmd.c (post_create_inferior): Only call solib_add if not
4243 * solib.c (solib_add): Increment solib_add_generation.
4245 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4247 Fix implicit pointer offsets.
4248 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4251 2011-07-25 Tom Tromey <tromey@redhat.com>
4253 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4255 (ada_exception_sal): Make 'ops' const.
4256 (ada_decode_exception_location): Likewise.
4257 (ada_decode_assert_location): Likewise.
4258 (catch_assert_command): Update.
4259 (catch_ada_exception_command): Update.
4260 (create_ada_exception_catchpoint): Make 'ops' const.
4261 * breakpoint.c (set_raw_breakpoint_without_location)
4262 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4264 (create_internal_breakpoint): Update.
4265 (init_raw_breakpoint_without_location): Make 'ops' const.
4266 (init_raw_breakpoint, init_catchpoint)
4267 (create_fork_vfork_event_catchpoint)
4268 (create_syscall_event_catchpoint, init_breakpoint_sal)
4269 (create_breakpoint_sal, create_breakpoints_sal)
4270 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4271 * breakpoint.h (struct breakpoint) <ops>: Now const.
4272 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4275 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4277 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4279 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4281 * breakpoint.h (print_recreate_thread): Declare.
4282 (struct breakpoint): Move step_count, pass_count,
4283 number_on_target, static_trace_marker_id,
4284 static_trace_marker_id_idx ...
4285 (struct tracepoint): ... to this new struct.
4286 (get_tracepoint, get_tracepoint_by_number_on_target)
4287 (get_tracepoint_by_number): Change return type to struct
4289 * breakpoint.c (is_tracepoint_type): New, factored out from
4291 (is_tracepoint): Adjust.
4292 (print_one_breakpoint_location): Cast to struct tracepoint as
4293 necessary, and adjust.
4294 (print_recreate_catch_fork, print_recreate_catch_vfork)
4295 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4296 print_recreate_thread.
4297 (init_breakpoint_sal): New, factored out from
4298 create_breakpoint_sal.
4299 (create_breakpoint_sal): Reimplement.
4300 (create_breakpoint): Allocate a struct tracecepoint if the caller
4301 wanted a tracepoint. Use init_breakpoint_sal and
4303 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4304 (print_recreate_masked_watchpoint)
4305 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4306 (tracepoint_print_one_detail): Adjust.
4307 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4308 Dump the pass count here.
4309 (update_static_tracepoint): Adjust.
4310 (addr_string_to_sals): Adjust.
4311 (create_tracepoint_from_upload): Adjust. Change return type to
4312 struct tracepoint pointer.
4313 (trace_pass_set_count): Change parameter type to struct tracepoint
4314 pointer, and adjust.
4315 (trace_pass_command): Adjust.
4316 (get_tracepoint, get_tracepoint_by_number_on_target)
4317 (get_tracepoint_by_number): Change return type to struct
4318 tracepoint pointer, and adjust.
4319 (print_recreate_thread): New, factored out from save_breakpoints.
4320 (save_breakpoints): Don't print thread and task and passcount
4322 * remote.c (remote_download_tracepoint): Adjust.
4323 * tracepoint.c (trace_actions_command, validate_actionline)
4324 (start_tracing, tfind_1, trace_find_tracepoint_command)
4325 (trace_dump_command): Adjust.
4326 (find_matching_tracepoint): Change return type to struct
4327 tracepoint pointer, and adjust.
4328 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4329 (tfile_trace_find, tfile_fetch_registers): Adjust.
4330 * tracepoint.h (create_tracepoint_from_upload): Change return type
4331 to struct tracepoint pointer.
4332 * ada-lang.c (print_recreate_exception): Call
4333 print_recreate_thread.
4334 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4336 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4338 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4339 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4340 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4341 watchpoint_thread, watchpoint_triggered ...
4342 (struct watchpoint): ... to this new struct.
4343 (is_watchpoint): Declare.
4344 (install_breakpoint): Add new `internal' parameter.
4345 * breakpoint.c (is_watchpoint): Delete declaration.
4346 (set_breakpoint_condition): Handle watchpoints.
4347 (is_watchpoint): Make public.
4348 (watchpoint_in_thread_scope): Change parameter type to struct
4350 (watchpoint_del_at_next_stop): Change parameter type to struct
4351 watchpoint. Remove assertion. Adjust.
4352 (update_watchpoint): Ditto.
4353 (insert_breakpoints, breakpoint_init_inferior)
4354 (watchpoints_triggered, watchpoint_check)
4355 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4356 (bpstat_stop_status, print_one_breakpoint_location)
4357 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4358 to struct watchpoint as necessary, and adjust.
4359 (install_breakpoint): Add `internal' argument. If true, don't
4360 mention the new breakpoint. Use set_breakpoint_number.
4361 (create_fork_vfork_event_catchpoint)
4362 (create_syscall_event_catchpoint): Adjust.
4363 (dtor_watchpoint): New.
4364 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4365 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4366 (print_it_watchpoint, print_mention_watchpoint)
4367 (print_recreate_watchpoint, insert_masked_watchpoint)
4368 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4369 (print_one_detail_masked_watchpoint)
4370 (print_mention_masked_watchpoint)
4371 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4372 necessary, and adjust.
4373 (watch_command_1): Allocate and initialize a struct watchpoint
4374 instead of a struct breakpoint. Use install_breakpoint.
4375 (catch_exec_command_1): Adjust.
4376 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4378 (delete_breakpoint, enable_breakpoint_disp)
4379 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4380 as necessary, and adjust.
4381 (initialize_breakpoint_ops): Install dtor_watchpoint as
4382 watchpoints' dtor method.
4383 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4384 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4385 to struct watchpoint as necessary, and adjust.
4387 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4389 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4390 the the base class ops table.
4391 (catch_exception_breakpoint_ops)
4392 (catch_exception_unhandled_breakpoint_ops)
4393 (catch_assert_breakpoint_ops): Don't statically initialize.
4394 (initialize_ada_catchpoint_ops): New.
4395 (_initialize_ada_language): Call it.
4396 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4397 (bkpt_breakpoint_ops): Forward declare.
4398 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4399 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4400 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4401 (masked_watchpoint_breakpoint_ops)
4402 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4403 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4404 base class ops table.
4405 (null_re_set, null_check_status, null_works_in_software_mode)
4406 (null_resources_needed, null_print_one_detail): Delete.
4407 (bkpt_dtor): Rename to ...
4408 (base_breakpoint_dtor): ... this. Make static.
4409 (bkpt_allocate_location): Rename to ...
4410 (base_breakpoint_allocate_location): ... this. Make static.
4411 (base_breakpoint_re_set): New.
4412 (internal_error_pure_virtual_called): New.
4413 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4414 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4415 (base_breakpoint_works_in_software_mode)
4416 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4417 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4418 (base_breakpoint_print_recreate): New functions.
4419 (base_breakpoint_ops): New global.
4420 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4421 (bkpt_breakpoint_hit): Make static.
4422 (bkpt_check_status): Delete.
4423 (bkpt_resources_needed): Make static.
4424 (bkpt_works_in_software_mode): Delete.
4425 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4427 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4428 (momentary_breakpoint_ops): Don't statically initialize.
4429 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4431 (tracepoint_insert_location, tracepoint_remove_location)
4432 (tracepoint_check_status, tracepoint_works_in_software_mode)
4433 (tracepoint_print_it): Delete.
4434 (tracepoint_breakpoint_ops): Don't statically initialize.
4435 (initialize_breakpoint_ops): New.
4436 (_initialize_breakpoint): Call it.
4437 * breakpoint.h (null_re_set, null_works_in_software_mode)
4438 (null_resources_needed, null_check_status, null_print_one_detail):
4439 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4440 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4441 (bkpt_check_status, bkpt_resources_needed)
4442 (bkpt_works_in_software_mode, bkpt_print_it)
4443 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4444 Delete declarations.
4445 (initialize_breakpoint_ops): Declare.
4447 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4449 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4450 (momentary_bkpt_print_it): Simplify.
4452 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4454 Split internal, momentary and user breakpoints breakpoint_ops
4457 * breakpoint.c (internal_breakpoint_ops)
4458 (momentary_breakpoint_ops): Forward declare.
4459 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4460 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4461 (create_overlay_event_breakpoint)
4462 (create_std_terminate_master_breakpoint)
4463 (create_exception_master_breakpoint): Create breakpoints with
4464 internal_breakpoint_ops vtable.
4465 (set_longjmp_breakpoint): Create momentary breakpoints with
4466 momentary_breakpoint_ops vtable, using
4467 momentary_breakpoint_from_master.
4468 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4469 (create_solib_event_breakpoint): Create breakpoints with
4470 internal_breakpoint_ops vtable.
4471 (set_momentary_breakpoint): Create breakpoints with
4472 momentary_breakpoint_ops vtable.
4473 (momentary_breakpoint_from_master): New, factored out from
4474 clone_momentary_breakpoint.
4475 (clone_momentary_breakpoint): Adjust.
4476 (watch_command_1): Create scope breakpoints with
4477 momentary_breakpoint_ops vtable.
4478 (bkpt_re_set): Remove handling of internal and momentary
4480 (bkpt_print_mention, bkpt_print_recreate): New.
4481 (bkpt_breakpoint_ops): Adjust.
4482 (internal_bkpt_re_set, internal_bkpt_check_status)
4483 (internal_bkpt_print_it, internal_bkpt_print_mention)
4484 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4485 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4486 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4487 (momentary_bkpt_print_recreate): New.
4488 (momentary_breakpoint_ops): New.
4490 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4492 Implement most breakpoint_ops methods for all breakpoint types,
4493 and move the default handlings to the proper callbacks.
4495 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4496 works_in_software_mode method.
4497 (insert_bp_location): Go through breakpoint_ops->insert_location
4498 for software and hardware watchpoints.
4499 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4501 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4502 for software and hardware watchpoints.
4503 (print_it_typical): Delete.
4504 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4506 (watchpoint_check): Adjust comment.
4507 (bpstat_check_location): Simply always call the breakpoint's
4508 breakpoint_hit method.
4509 (bpstat_stop_status): Always call the breakpoint's check_status
4510 method. Remove special cases for watchpoints and internal event
4511 breakpoints from here (moved to the check_status implementations).
4512 (print_one_breakpoint_location): Assume b->ops is never NULL.
4513 Remove static tracepoint marker id printing from here (moved to
4514 the print_one_detail callback implementation of tracepoints).
4515 (init_bp_location): Assert OPS is never NULL.
4516 (allocate_bp_location): Always call the breakpoint's
4517 allocate_location method, and remove the default code from here.
4518 (free_bp_location): Always call the location's dtor method, and
4519 remove the default code from here.
4520 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4521 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4522 parameter. Pass it down.
4523 (set_raw_breakpoint): Ditto.
4524 (print_it_catch_fork): Adjust to take a bpstat as argument.
4525 (catch_fork_breakpoint_ops): Install methods.
4526 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4527 (catch_vfork_breakpoint_ops): Install methods.
4528 (dtor_catch_syscall): Call the base dtor.
4529 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4530 (catch_syscall_breakpoint_ops): Install methods.
4531 (dtor_catch_exec): Call the base dtor.
4532 (print_it_catch_exec): Adjust to take a bpstat as argument.
4533 (catch_exec_breakpoint_ops): Install methods.
4534 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4535 the breakpoint's resources_needed method, and remove the default
4537 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4539 (clone_momentary_breakpoint): Clone the original's ops.
4540 (mention): Always call the breakpoint's print_mention method, and
4541 remove the default code from here.
4542 (create_breakpoint_sal): Adjust to pass the ops to
4543 set_raw_breakpoint rather than setting it manually.
4544 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4545 ops to set_raw_breakpoint_without_location rather than setting it
4547 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4548 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4549 (ranged_breakpoint_ops): Install methods.
4550 (break_range_command): Adjust to pass the ops to
4551 set_raw_breakpoint rather than setting it manually.
4552 (re_set_watchpoint, breakpoint_hit_watchpoint)
4553 (check_status_watchpoint, resources_needed_watchpoint)
4554 (works_in_software_mode_watchpoint, print_it_watchpoint)
4555 (print_mention_watchpoint, print_recreate_watchpoint): New
4557 (watchpoint_breakpoint_ops): Install new methods.
4558 (print_it_masked_watchpoint): New function.
4559 (masked_watchpoint_breakpoint_ops): Install new methods.
4560 (watch_command_1): Adjust to pass the right breakpoint_ops to
4561 set_raw_breakpoint_without_location rather than setting it
4562 manually later. Record the current pspace.
4563 (print_it_exception_catchpoint): Adjust to take a bpstat as
4565 (gnu_v3_exception_catchpoint_ops): Install new methods.
4566 (say_where): New function.
4567 (null_re_set, null_check_status, null_works_in_software_mode)
4568 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4570 (bp_location_ops): New global.
4571 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4572 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4573 (bkpt_check_status, bkpt_resources_needed)
4574 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4575 (bkpt_print_recreate): New functions.
4576 (bkpt_breakpoint_ops): New global.
4577 (tracepoint_re_set, tracepoint_insert_location)
4578 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4579 (tracepoint_check_status, tracepoint_works_in_software_mode)
4580 (tracepoint_print_it, tracepoint_print_one_detail)
4581 (tracepoint_print_mention, tracepoint_print_recreate): New
4583 (tracepoint_breakpoint_ops): New global.
4584 (delete_breakpoint): Always call the breakpoint's dtor method, and
4585 remove the default handling from here.
4586 (breakpoint_re_set_default): Make static.
4587 (breakpoint_re_set_one): Always call the breakpoints re_set
4588 method, and remove the default handling from here.
4589 (trace_command, ftrace_command, strace_command)
4590 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4591 to create_breakpoint.
4592 (save_breakpoints): Always call the breakpoint's print_recreate
4593 method, and remove the default handling from here.
4595 * ada-lang.c (dtor_exception): Call the base dtor.
4596 (re_set_exception): Call the base method.
4597 (print_it_exception, print_it_catch_exception): Adjust to take a
4599 (catch_exception_breakpoint_ops): Install methods.
4600 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4602 (catch_exception_unhandled_breakpoint_ops): Install methods.
4603 (print_it_catch_assert): Adjust to take a bpstat as argument.
4604 (catch_assert_breakpoint_ops): Install methods.
4606 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4607 to take a bpstat as argument.
4608 (enum print_stop_action): Add describing comments to each enum
4610 (breakpoint_re_set_default): Delete declaration.
4611 (null_re_set, null_works_in_software_mode, null_resources_needed)
4612 (null_check_status, null_print_one_detail): Declare.
4613 (bkpt_breakpoint_ops): Declare.
4614 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4615 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4616 (bkpt_check_status, bkpt_resources_needed)
4617 (bkpt_works_in_software_mode, bkpt_print_it)
4618 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4621 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4622 bkpt_breakpoint_ops.
4623 * python/py-breakpoint.c (bppy_init): Ditto.
4625 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4627 * MAINTAINERS (Write After Approval): Add myself to the list.
4629 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4631 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4633 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4635 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4636 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4637 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4639 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4640 (struct i386_debug_reg_state): New.
4641 (i386_init_dregs): New.
4643 (i386_cleanup_dregs): Use i386_init_dregs.
4644 (i386_show_dr): Add state parameter and adjust.
4645 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4647 (i386_remove_aligned_watchpoint): Likewise.
4648 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4649 (i386_update_inferior_debug_regs): New.
4650 (i386_insert_watchpoint): Work on a local mirror of the debug
4651 registers, and only update the inferior on success.
4652 (i386_remove_watchpoint): Ditto.
4653 (i386_region_ok_for_watchpoint): Adjust.
4654 (i386_stopped_data_address): Adjust.
4655 (i386_insert_hw_breakpoint): Adjust.
4656 (i386_remove_hw_breakpoint): Adjust.
4658 2011-07-22 Tom Tromey <tromey@redhat.com>
4660 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4661 from amd64_pseudo_register_read. Change arguments. Call
4662 mark_value_bytes_unavailable when needed.
4663 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4664 set_gdbarch_pseudo_register_read.
4665 * sentinel-frame.c (sentinel_frame_prev_register): Use
4666 regcache_cooked_read_value.
4667 * regcache.h (regcache_cooked_read_value): Declare.
4668 * regcache.c (regcache_cooked_read_value): New function.
4669 (regcache_cooked_read): Call
4670 gdbarch_pseudo_register_read_value if available.
4671 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4672 (i386_pseudo_register_read): Remove.
4673 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4674 i386_pseudo_register_read. Change arguments. Call
4675 mark_value_bytes_unavailable when needed.
4676 (i386_pseudo_register_read_value): New function.
4677 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4678 not set_gdbarch_pseudo_register_read.
4679 * gdbarch.sh (pseudo_register_read_value): New method.
4680 * gdbarch.c, gdbarch.h: Rebuild.
4681 * findvar.c (value_from_register): Call get_frame_register_value.
4683 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4685 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4687 (display_gdb_prompt): Likewise.
4688 (change_annotation_level): Likewise.
4689 (push_prompt): Likewise.
4690 (pop_prompt): Likewise.
4691 (handle_stop_sig): Use get_prompt with a level.
4692 * top.c (command_loop): Use get_prompt with a level.
4693 (set_async_annotation_level): Use set_prompt with a level.
4694 (get_prefix): New function.
4695 (set_prefix): Ditto.
4696 (set_suffix): Ditto.
4697 (get_suffix): Ditto.
4698 (get_prompt): Accept a level argument.
4699 (set_prompt): Accept a level argument. Free old prompts. Set
4700 new_async_prompt if level is 0.
4701 (init_main): Use set_prompt with a level. Do not set
4703 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4704 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4705 Modify set_prompt, get_prompt to account for levels.
4706 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4708 * python/python.c (before_prompt_hook): Use set_prompt.
4710 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4712 * defs.h: Add guard against inclusion in gdbserver.
4713 (struct ptid, ptid_t): Move to common/ptid.h.
4714 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4715 xsnprintf, internal_error): Move to common/common-utils.h.
4717 * gdb_assert.h: Move into common/ sub-directory.
4718 * gdb_locale.h: Ditto.
4719 * gdb_dirent.h: Ditto.
4720 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4721 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4722 Move into common/ptid.h.
4723 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4724 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4725 Change nomem to malloc_failure.
4726 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4727 * utils.c (nomem): Rename to malloc_failure.
4728 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4729 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4730 (gdb_buildargv): Change nomem to malloc_failure.
4731 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4732 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4733 ptid_is_pid): Move into common/ptid.c.
4734 (initialize_infrun): Delete initialization of null_ptid and
4736 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4737 linux_common_xfer_osdata.
4738 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4739 common/ptid.c and common/buffer.c.
4740 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4741 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4742 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4743 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4745 * common/gdb_assert.h: New.
4746 * common/gdb_dirent.h: New.
4747 * common/gdb_locale.h: New.
4748 * common/buffer.c: New.
4749 * common/buffer.h: New.
4750 * common/ptid.c: New.
4751 * common/ptid.h: New.
4752 * common/xml-utils.c: New.
4753 * common/xml-utils.h: New.
4754 * common/common-utils.c: New.
4755 * common/common-utils.h: New.
4756 * common/linux-osdata.c: New.
4757 * common/linux-osdata.h: New.
4758 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4759 * config/arm/linux.mh (NATDEPFILES): Ditto.
4760 * config/i386/linux.mh (NATDEPFILES): Ditto.
4761 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4762 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4763 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4764 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4765 * config/mips/linux.mh (NATDEPFILES): Ditto.
4766 * config/pa/linux.mh (NATDEPFILES): Ditto.
4767 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4768 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4769 * config/s390/s390.mh (NATDEPFILES): Ditto.
4770 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4771 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4772 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4774 2011-07-21 Matt Rice <ratmice@gmail.com>
4776 * NEWS: Add info macros and info definitions commands.
4778 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4780 * NEWS: Document Python prompt substitution hook.
4782 2011-07-18 Matt Rice <ratmice@gmail.com>
4785 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4786 * macrotab.c (foreach_macro): Ditto.
4787 (foreach_macro_in_scope): Ditto.
4788 * macrocmd.c (print_macro_callback): New function.
4789 (info_macro_command): Move some code to print_macro_definition.
4790 (print_macro_definition): New function.
4791 (print_one_macro): Add new arguments to callback.
4792 (info_definitions_command): New function.
4793 (info_macros_command): Ditto.
4794 (_initialize_macrocmd): Add info macros and info definitions commands.
4795 * symtab.c (add_macro_name): Add new arguments to callback.
4797 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4798 Tom Tromey <tromey@redhat.com>
4800 * top.c (set_prompt): Rewrite to free previous prompt, free
4801 asynch_new_prompt and set both on new prompts.
4802 * event-top.c (display_gdb_prompt): Add prompt substitution
4804 * python/python.c (before_prompt_hook): New function.
4806 2011-07-20 Matt Rice <ratmice@gmail.com>
4808 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4809 arguments to store_unsigned_integer.
4811 2011-07-20 Tom Tromey <tromey@redhat.com>
4813 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4814 in some declaration-only cases.
4816 2011-07-18 Tom Tromey <tromey@redhat.com>
4819 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4820 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4821 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4822 <debug_type_section>: New field.
4823 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4824 (load_cu): Use appropriate section.
4825 (create_signatured_type_table_from_index): Add 'section'
4827 (dwarf2_read_index): Only allow a single .debug_types section.
4828 (dw2_get_file_names): Use appropriate section.
4829 (read_type_comp_unit_head): Add 'section' argument.
4830 (create_debug_types_hash_table): Loop over all .debug_types
4832 (init_cu_die_reader): Use appropriate section.
4833 (process_psymtab_comp_unit, load_partial_comp_unit)
4834 (load_full_comp_unit, read_die_and_children, find_partial_die)
4835 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4836 (lookup_signatured_type_at_offset): Add 'section' argument.
4837 (read_signatured_type_at_offset): Add 'sect' argument.
4838 (read_signatured_type): Use appropriate section.
4839 (set_die_type, get_die_type_at_offset): Update.
4840 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4842 (write_psymtabs_to_index): Don't allow index with more than one
4843 .debug_types section.
4845 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4847 Fix crash if referenced CU is aged out.
4848 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4849 xfree of block.data.
4850 (indirect_pieced_value): New variable back_to, use to for xfree of
4852 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4854 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4855 (load_cu): New function from ...
4856 (dw2_do_instantiate_symtab): ... the code here ...
4857 (process_full_comp_unit): ... and here.
4858 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4861 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4863 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4866 2011-07-19 Gary Benson <gbenson@redhat.com>
4868 * infrun.c (struct execution_control_state): New member
4869 stop_func_filled_in.
4870 (clear_stop_func, fill_in_stop_func): New functions.
4871 (handle_inferior_event): Call clear_stop_func rather than
4872 manipulating the execution control state directly.
4873 Call fill_in_stop_func lazily as required rather than
4874 directly calling find_pc_partial_function in all cases.
4876 2011-07-18 Tom Tromey <tromey@redhat.com>
4878 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4879 checking for variable-sized array.
4881 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4883 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4884 of supported languages.
4885 * varobj.c: Add top definitions and basic implementation of the
4886 following callbacks: ada_number_of_children, ada_name_of_variable,
4887 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4888 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4889 (languages): Register Ada-specific callbacks.
4890 (variable_language): Add the Ada case in the language setter switch.
4892 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4894 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4896 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4899 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4900 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4901 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4902 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4903 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4904 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4905 (struct dwarf_expr_context_funcs): New, move here methods from ...
4906 (struct dwarf_expr_context): ... here. New fields funcs.
4907 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4908 (dwarf_expr_ctx_funcs): New.
4909 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4910 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4911 (needs_frame_ctx_funcs): New.
4912 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4914 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4916 * MAINTAINERS (Write After Approval): Add myself to the list.
4918 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4920 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4921 that CIE pointer of an FDE really points to a CIE .
4923 2011-07-15 Hui Zhu <teawater@gmail.com>
4925 * remote.c (remote_get_trace_status): Add comments.
4927 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4929 Code cleanup - constify struct lval_funcs.
4930 * dwarf2loc.c (pieced_value_funcs): Make it const.
4931 * infrun.c (siginfo_value_funcs): Likewise.
4932 * opencl-lang.c (opencl_value_funcs): Likewise.
4933 * valops.c (value_assign, value_ind): Make the funcs variable const.
4934 * value.c (struct value): Make location.computed.funcs target const.
4935 Rearrange the comments.
4936 (allocate_computed_value): Make the funcs parameter target const.
4937 (value_computed_funcs): Return the funcs target const.
4938 (value_free, value_copy, set_value_component_location): Make the funcs
4940 * value.h (allocate_computed_value): Make the funcs parameter target
4942 (value_computed_funcs): Return the funcs target const.
4943 * windows-tdep.c (tlb_value_funcs): Make it const.
4945 2011-07-14 Hui Zhu <teawater@gmail.com>
4947 * remote.c (remote_get_trace_status): Initialize p.
4949 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4952 * remote.c (remote_get_trace_status): New variable ex. Put
4953 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4955 2011-07-13 Tom Tromey <tromey@redhat.com>
4957 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4958 value_from_contents for final conversion.
4960 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4963 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4964 Indent prototypes so they do not get into tags.
4966 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4968 Code cleanup making also optimized out values lazy.
4969 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4970 allocate_optimized_out_value. Twice.
4971 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4972 * findvar.c (read_var_value): Likewise.
4973 * value.c (allocate_optimized_out_value): New function.
4974 * value.h (allocate_optimized_out_value): New declaration.
4976 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4978 Fix occasional crash of CTRL-C during DWARF read in.
4979 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4981 2011-07-11 Tom Tromey <tromey@redhat.com>
4983 * regcache.c (struct regcache_descr): Fix typo.
4984 * i387-tdep.c (i387_supply_xsave): Fix typo.
4986 2011-07-11 Tom Tromey <tromey@redhat.com>
4988 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4989 (read_file_scope, read_type_unit_scope): Use it.
4991 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4993 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4996 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4999 * python/python.c: Set gdbpy_should_print_stack default to off.
5000 (set_python): Deprecate maint set python print-stack to
5002 (_initialize_python): Deprecate maint set/show python print-stack.
5003 Add new prefix command, python. Add new setting, print-backtrace.
5004 * NEWS: Document set python print-stack. Document default change.
5006 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
5008 * python/py-inferior.c (infpy_dealloc): New function.
5009 (inferior_to_inferior_object): Return a new object, or a
5010 new reference to the existing object.
5011 (find_thread_object): Cleanup references to inferior.
5012 (delete_thread_object): Ditto.
5013 * python/py-infthread.c (create_thread_object): Do not increment
5014 inferior reference count.
5016 2011-07-08 Tom Tromey <tromey@redhat.com>
5018 * dwarf2loc.c (locexpr_regname): New function.
5019 (locexpr_describe_location_piece): Use it.
5020 (disassemble_dwarf_expression): Add per_cu argument. Use
5022 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
5023 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5025 (locexpr_describe_location_1): Add per_cu argument.
5026 (locexpr_describe_location): Update.
5027 (loclist_describe_location): Update.
5029 2011-07-08 Tom Tromey <tromey@redhat.com>
5031 * dwarf2expr.c (execute_stack_op): Add QUIT.
5033 2011-07-07 Hui Zhu <teawater@gmail.com>
5036 2011-07-06 Hui Zhu <teawater@gmail.com>
5037 * remote.c (remote_start_remote): Add TRY_CATCH for
5038 remote_get_trace_status.
5039 * tracepoint.c (disconnect_tracing): Ditto.
5041 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
5043 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5044 variables as signed, not unsigned.
5046 2011-07-06 Joel Brobecker <brobecker@adacore.com>
5048 * jit.c (jit_inferior_init): Reformat forward declaration.
5050 2011-07-06 Matt Rice <ratmice@gmail.com>
5052 * MAINTAINERS (Write After Approval): Add myself to the list.
5054 2011-07-06 Hui Zhu <teawater@gmail.com>
5056 * remote.c (remote_start_remote): Add TRY_CATCH for
5057 remote_get_trace_status.
5058 * tracepoint.c (disconnect_tracing): Ditto.
5060 2011-07-05 Tom Tromey <tromey@redhat.com>
5062 * symtab.c (operator_chars): Now static.
5063 * linespec.c (operator_chars): Don't declare.
5065 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5067 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5069 2011-07-05 Tom Tromey <tromey@redhat.com>
5071 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5072 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5073 (TYPE_CPLUS_REALLY_JAVA): New macro.
5074 * dwarf2read.c (process_structure_scope): Set
5075 TYPE_CPLUS_REALLY_JAVA.
5077 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5079 * ada-lang.c: Fix typos.
5080 * amd64-tdep.c: Likewise.
5081 * breakpoint.c: Likewise.
5082 * cli/cli-decode.c: Likewise.
5083 * findcmd.c: Likewise.
5084 * inline-frame.c: Likewise.
5085 * mi/mi-main.c: Likewise.
5086 * minsyms.c: Likewise.
5087 * monitor.c: Likewise.
5088 * monitor.h: Likewise.
5089 * prologue-value.c: Likewise.
5090 * reverse.c: Likewise.
5091 * s390-tdep.c: Likewise.
5093 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5095 * jit.c (jit_inferior_init): Forward declare.
5096 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5098 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5100 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5102 2011-07-04 Tristan Gingold <gingold@adacore.com>
5104 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5105 (tcb_fieldno): Add activation_link field.
5106 (get_known_tasks_addr): Moved and rewritten.
5107 (get_tcb_types_info): Set activation_link field.
5108 (read_known_tasks_array): Add parameter. Rewritten.
5109 (read_known_tasks_list): New function.
5110 (read_known_tasks): New function.
5111 (ada_build_task_list): Call read_known_tasks instead of
5112 read_known_tasks_array.
5113 * ravenscar-thread.c: Add first_task_name constant.
5114 (has_ravenscar_runtime): Check for task list too.
5116 2011-07-04 Tristan Gingold <gingold@adacore.com>
5118 * ada-tasks.c: Renames fieldno to actb_fieldno.
5119 (ada_get_task_number): Indentation.
5120 (get_tcb_types_info): Remove all parameters. Write directly
5122 (ptid_from_atcb_common): Adjust.
5123 (read_atcb): Adjust.
5125 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5127 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5129 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5131 * ui-out.c (ui_out_field_core_addr): Mention that the function
5132 description is in the header file.
5133 * ui-out.h (ui_out_field_core_addr): Document function.
5135 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5137 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5138 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5140 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5142 * symtab.c (expand_line_sal): Remove empty line.
5144 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
5146 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5147 same way as ELFOSABI_NONE.
5148 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5150 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5152 * breakpoint.c: Fix typos in comments.
5153 * linespec.c: Likewise.
5154 * symtab.c: Likewise.
5156 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5158 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5159 section in separate object files.
5161 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5163 Fix false GCC warning.
5164 * linespec.c (decode_line_1): Initialize values.
5166 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5168 * linespec.c (find_method): Accept the function type automatically only
5169 if it was specified with parameter types.
5171 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5173 Stop on first linespec terminator instead of eating what we can.
5174 * linespec.c (is_linespec_boundary): New function.
5175 (name_end): Remove function.
5176 (keep_name_info): New parameter on_boundary, replace the body.
5177 (decode_line_1): Provide the parameter to keep_name_info.
5178 (decode_compound): Likewise. Drop the trailing java return type
5181 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5183 Fall back linespec to minimal symbols.
5184 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5185 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5186 (find_method, symbol_found): Change error to cplusplus_error.
5188 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5190 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5192 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5193 Tom Tromey <tromey@redhat.com>
5195 * dwarf2read.c (check_physname): New variable.
5196 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5197 (show_check_physname): New function.
5198 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5200 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5202 * machoread.c (macho_symfile_read): Delete OBE comment.
5204 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5206 * machoread.c (struct macho_oso_data): Delete.
5207 (current_oso): Delete.
5208 (macho_relocate_common_syms): New function, mostly extracted
5210 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5211 Remove code that sets and unset current_oso.
5212 (macho_symfile_relocate): Delete handling of common symbols,
5213 now moved to macho_relocate_common_syms.
5215 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5217 * darwin-nat.c (darwin_ptrace): Add documentation.
5218 Set errno to zero before calling ptrace. If ptrace returns
5219 -1 and errno is zero, then change then return zero.
5220 (darwin_kill_inferior): Issue a warning instead of triggering
5221 a failed assertion when the PT_KILL ptrace operations returned
5224 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5226 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5227 only when inf->private->no_ptrace.
5229 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5231 * ada-lang.c (print_it_exception): Print temporary catchpoints
5232 as "Temporary catchpoint".
5233 (print_mention_exception): Likewise.
5235 2011-07-01 Tom Tromey <tromey@redhat.com>
5237 * jv-lang.c (java_language_defn): Use java_printchar,
5239 (java_get_encoding): New function.
5240 (java_emit_char): Use generic_emit_char.
5241 (java_printchar): New function.
5242 (java_printstr): Likewise.
5244 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5246 * ada-typeprint.c (print_record_type): If unable to decode
5247 the name of the parent type, use the encoded name.
5249 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5251 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5252 pointer to constrained packed array type output.
5253 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5254 packed array output.
5256 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5258 * ada-typeprint.c (print_array_type): removed if condition on show
5259 being negative for bounds printing.
5261 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5263 * ada-lang.c (ada_identical_enum_types_p): New function.
5264 (symbols_are_identical_enums): New function.
5265 (remove_extra_symbols): Do nothing if NSYMS < 2.
5266 Use symbols_are_identical_enums.
5268 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5270 * ada-valprint.c (ada_value_print): Handle typedefs.
5272 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5274 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5276 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5278 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5279 (decode_constrained_packed_array): Likewise.
5280 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5282 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5284 * ada-exp.y (convert_char_literal): Handle typedef types.
5286 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5288 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5290 2011-06-30 Tom Tromey <tromey@redhat.com>
5292 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5293 * valops.c (find_overload_match): Call do_cleanups on early exit
5295 * solib.c (solib_find): Call do_cleanups on early exit path.
5297 2011-06-30 Tom Tromey <tromey@redhat.com>
5299 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5300 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5301 return paths. Defer final do_cleanups until last return.
5302 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5305 2011-06-30 Tom Tromey <tromey@redhat.com>
5307 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5309 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
5311 * MAINTAINERS (Write After Approval): Add myself to the list.
5313 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5315 Disable epilogue unwinders on recent GCCs.
5316 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5317 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5318 * dwarf2read.c (process_full_comp_unit): Initialize
5319 EPILOGUE_UNWIND_VALID.
5320 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5321 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5322 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5324 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5326 Code cleanup - reformatting.
5327 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5328 (producer_is_gcc_ge_4): ... here, change the return value.
5329 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5332 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5334 Fix non-only rename list for Fortran modules import.
5335 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5336 cp_add_using_directive caller.
5337 (cp_add_using_directive): New parameter excludes, describe it. New
5338 variables ix and param. Compare if also excludes match. Allocate NEW
5339 with variable size, initialize EXCLUDES there.
5340 (cp_lookup_symbol_imports): New variable excludep, test
5341 current->EXCLUDES with it.
5342 * cp-support.h: Include vec.h.
5343 (struct using_direct): New field excludes, describe it.
5344 (DEF_VEC_P (const_char_ptr)): New.
5345 (cp_add_using_directive): New parameter excludes.
5346 * defs.h (const_char_ptr): New typedef.
5347 * dwarf2read.c (read_import_statement): New variables child_die,
5348 excludes and cleanups, read in excludes.
5349 (read_namespace): Adjust the cp_add_using_directive caller.
5351 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5354 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5355 negative comparisons.
5357 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
5359 * mi/mi-main.c (mi_cmd_list_features): Emit
5360 breakpoint-notifications.
5362 2011-06-29 Tom Tromey <tromey@redhat.com>
5365 * valprint.h (generic_emit_char, generic_printstr): Declare.
5366 * valprint.c (wchar_printable, append_string_as_wide)
5367 (print_wchar): Move from c-lang.c.
5368 (generic_emit_char): New function; mostly taken from c_emit_char.
5369 (generic_printstr): New function; mostly taken from c_printstr.
5370 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5371 represented as arrays.
5372 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5374 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5375 identically to TYPE_CODE_INT.
5376 * f-lang.c (f_get_encoding): New function.
5377 (f_emit_char): Use generic_emit_char.
5378 (f_printchar): Replace comment.
5379 (f_printstr): Use generic_printstr.
5380 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5381 "character" types specially.
5382 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5384 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5386 (c_emit_char): Call generic_emit_char.
5387 (c_printstr): Call generic_printstr.
5389 2011-06-29 Gary Benson <gbenson@redhat.com>
5391 * breakpoint.c (bpstat_what): Removed duplicated case.
5393 2011-06-28 Tom Tromey <tromey@redhat.com>
5395 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5397 2011-06-27 Tom Tromey <tromey@redhat.com>
5399 * valops.c (find_overload_match): Call do_cleanups before early
5401 * top.c (execute_command): Call do_cleanups before early return.
5402 (command_loop): Likewise.
5403 * stack.c (backtrace_command): Make a null cleanup early. Don't
5404 conditionally call do_cleanups.
5405 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5407 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5408 so cleanups are always run.
5409 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5410 * findcmd.c (parse_find_args): Call do_cleanups on early return
5412 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5413 Don't conditionally call do_cleanups.
5414 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5417 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5419 * MAINTAINERS (Write After Approval): Use default email address.
5421 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5423 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5425 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5427 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5428 saved_regs_mask and copied_regs_mask fields.
5429 (sparc_record_save_insn): New prototype.
5430 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5431 (sparc_record_save_insn): New function.
5432 (sparc_analyze_prologue): Add head comment. Recognize store insns
5433 of call-saved registers. Use OFFSET consistently. Recognize flat
5434 frames and cache their settings.
5435 (sparc32_skip_prologue): Handle flat frames.
5436 (sparc_frame_cache): Add frame_offset to the base address.
5437 (sparc32_frame_cache): Adjust to new frame description.
5438 (sparc32_frame_prev_register): Likewise.
5439 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5440 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5441 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5442 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5443 frame by calling sparc_record_save_insn.
5444 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5445 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5446 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5448 2011-06-27 Tristan Gingold <gingold@adacore.com>
5450 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5451 field by map_addr and map_len.
5452 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5453 (munmap_section_buffer): Likewise.
5455 2011-06-24 Tom Tromey <tromey@redhat.com>
5457 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5458 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5459 * python/python.c (gdbpy_parameter): Make 'arg' const.
5460 (execute_gdb_command): Likewise.
5461 (gdbpy_decode_line): Likewise. Copy it.
5462 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5463 (gdbpy_write): Make 'arg' const.
5464 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5466 (gdbpy_lookup_type): Likewise.
5467 * python/py-prettyprint.c (print_children): Make 'name' const.
5468 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5469 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5471 * python/py-function.c (fnpy_init): Make 'name' const.
5472 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5473 (gdbpy_string_to_argv): Make 'input' const.
5474 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5476 * gdbtypes.h (lookup_typename): Update.
5477 * gdbtypes.c (lookup_typename): Make 'name' const.
5478 (lookup_struct): Likewise.
5479 (lookup_union): Likewise.
5480 (lookup_enum): Likewise.
5482 2011-06-24 Tom Tromey <tromey@redhat.com>
5484 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5485 gdb_thread_db.h. Move all common/ entries to be together.
5486 (TAGS): Don't depend on DEPFILES.
5488 2011-06-23 Yao Qi <yao@codesourcery.com>
5490 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5491 * remote.c (remote_start_remote): ... here.
5492 * monitor.c (monitor_open): ... here.
5494 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5496 * gdbtypes.c (append_composite_type_field_aligned): Fix
5497 calculation of bit position based on alignment.
5499 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5501 * breakpoint.c (bpstat_stop_status): Call the check_status
5502 breakpoint_ops method.
5503 (print_one_breakpoint_location): Also print the condition for Ada
5504 exception catchpoints.
5505 (allocate_bp_location): New, factored out from
5506 allocate_bp_location.
5507 (allocate_bp_location): Adjust. Call the owner breakpoint's
5508 allocate_location method, if there is one.
5509 (free_bp_location): Call the locations's dtor method, if there is
5511 (init_raw_breakpoint_without_location): New breakpoint_ops
5513 (set_raw_breakpoint_without_location): Adjust.
5514 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5515 (set_raw_breakpoint): Adjust.
5516 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5517 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5518 re_set and check_status methods.
5519 (init_catchpoint): Don't memset, initialize thread, addr_string
5520 and enable_state. Pass the ops down to init_raw_breakpoint.
5521 (install_catchpoint): Rename to ...
5522 (install_breakpoint): ... this, and make extern.
5523 (create_fork_vfork_event_catchpoint): Adjust.
5524 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5525 re_set and check_status methods.
5526 (create_syscall_event_catchpoint): Adjust.
5527 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5528 (masked_watchpoint_breakpoint_ops): Install NULL
5529 allocate_location, re_set and check_status methods.
5530 (catch_exec_command_1): Adjust.
5531 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5532 re_set and check_status methods.
5533 (create_ada_exception_breakpoint): Rename to ...
5534 (init_ada_exception_breakpoint): ... this. Add a struct
5535 breakpoint parameter, and delete the exp_string, cond_string and
5536 cond parameters. Use init_raw_breakpoint, and don't install or
5537 mention the breakpoint yet. Don't clear breakpoint fields that
5538 init_raw_breakpoint already clears.
5539 (re_set_breakpoint): Delete, split into ...
5540 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5542 (breakpoint_re_set_one): Call the breakpoint's
5543 breakpoint_ops->re_set implementation, if there's one. Adjust.
5544 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5545 (struct bp_location_ops): New type.
5546 (struct bp_location): New field `ops'.
5547 (struct breakpoint_ops): New `allocate_location', `re_set' and
5548 `check_status' fields. Make `breakpoint_hit''s description match
5550 (init_bp_location): Declare.
5551 (breakpoint_re_set_default): Declare.
5552 (create_ada_exception_breakpoint): Rename to ...
5553 (init_ada_exception_breakpoint): ... this. Add a struct
5554 breakpoint parameter, and delete the exp_string, cond_string and
5556 (install_breakpoint): Declare.
5557 * ada-lang.c: Include exceptions.h.
5558 <Ada exceptions description>: Update.
5559 (struct ada_catchpoint_location): New type.
5560 (ada_catchpoint_location_dtor): New function.
5561 (ada_catchpoint_location_ops): New global.
5562 (ada_catchpoint): New type.
5563 (create_excep_cond_exprs): New function.
5564 (dtor_exception, allocate_location_exception, re_set_exception)
5565 (should_stop_exception, check_status_exception): New functions.
5566 (print_one_exception, print_mention_exception)
5567 (print_recreate_exception): Adjust.
5568 (dtor_catch_exception, allocate_location_catch_exception)
5569 (re_set_catch_exception, check_status_catch_exception): New
5571 (catch_exception_breakpoint_ops): Install them.
5572 (dtor_catch_exception_unhandled)
5573 (allocate_location_catch_exception_unhandled)
5574 (re_set_catch_exception_unhandled)
5575 (check_status_catch_exception_unhandled): New functions.
5576 (catch_exception_unhandled_breakpoint_ops): Install them.
5577 (dtor_catch_assert, allocate_location_catch_assert)
5578 (re_set_catch_assert, check_status_catch_assert): New functions.
5579 (catch_assert_breakpoint_ops): Install them.
5580 (ada_exception_catchpoint_p): Delete.
5581 (catch_ada_exception_command_split)
5582 (ada_exception_catchpoint_cond_string): Rename exp_string
5583 parameter to excep_string. Adjust.
5584 (ada_parse_catchpoint_condition): Delete.
5585 (ada_exception_sal): Rename the exp_string parameter to
5586 excep_string. Delete the cond_string and cond parameters.
5588 (ada_decode_exception_location): Rename the exp_string parameter
5589 to excep_string. Delete the cond_string and cond parameters.
5591 (create_ada_exception_catchpoint): New function.
5592 (catch_ada_exception_command, ada_decode_assert_location)
5593 (catch_assert_command): Adjust.
5594 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5596 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5598 * ada-lang.c: Include arch-utils.h.
5599 (ada_decode_exception_location): Make static.
5600 (catch_ada_exception_command): Moved here from breakpoint.c.
5601 (ada_decode_assert_location): Make static.
5602 (catch_assert_command): Moved here from breakpoint.c.
5603 (_initialize_ada_lang): Install the exception and assert
5604 catchpoint commands here.
5605 * ada-lang.h (ada_decode_exception_location)
5606 (ada_decode_assert_location): Delete declarations.
5607 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5609 (create_ada_exception_breakpoint): Make extern.
5610 (catch_ada_exception_command, catch_assert_command): Moved to
5612 (add_catch_command): Make extern.
5613 (_initilize_breakpoint): Don't install the exception and assert
5614 catchpoint commands here.
5615 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5617 (add_catch_command, create_ada_exception_breakpoint): Declare.
5619 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5621 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5622 the breakpoint to the breakpoint chain here.
5623 (set_raw_breakpoint_without_location): Add the breakpoint to the
5624 breakpoint chain here.
5625 (init_raw_breakpoint): Adjust comments.
5626 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5628 (init_catchpoint): Don't set the catchpoint's breakpoint number
5630 (install_catchpoint): New function.
5631 (create_fork_vfork_event_catchpoint)
5632 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5633 use install_catchpoint.
5635 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5637 * breakpoint.c (create_catchpoint_without_mention)
5638 (create_catchpoint): Delete.
5640 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5642 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5643 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5644 reference to exec_pathname.
5645 (struct exec_catchpoint): New type.
5646 (dtor_catch_exec): New function.
5647 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5648 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5649 (catch_exec_command_1): Adjust to use init_catchpoint.
5650 (delete_breakpoint): Remove reference to exec_pathname.
5652 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5654 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5655 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5656 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5657 reference to syscalls_to_be_caught.
5658 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5660 (struct syscall_catchpoint): New type.
5661 (dtor_catch_syscall): New function.
5662 (insert_catch_syscall, remove_catch_syscall)
5663 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5664 (print_recreate_catch_syscall): Adjust.
5665 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5666 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5667 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5668 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5669 (masked_watchpoint_breakpoint_ops)
5670 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5671 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5672 there is one. Remove references to syscalls_to_be_caught.
5673 (catching_syscall_number): Adjust.
5674 * ada-lang.c (catch_exception_breakpoint_ops)
5675 (catch_exception_unhandled_breakpoint_ops)
5676 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5678 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5680 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5682 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5683 reference to forked_inferior_pid.
5684 (struct fork_catchpoint): New type.
5685 (breakpoint_hit_catch_fork, print_it_catch_fork)
5686 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5687 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5688 (create_fork_vfork_event_catchpoint): Adjust to use
5691 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5693 * breakpoint.c (add_to_breakpoint_chain)
5694 (init_raw_breakpoint_without_location): New functions, factored
5696 (set_raw_breakpoint_without_location): ... this one.
5697 (init_raw_breakpoint): New function, factored out from
5698 set_raw_breakpoint and adjusted to use
5699 init_raw_breakpoint_without_location.
5700 (set_raw_breakpoint): Adjust.
5701 (init_catchpoint): New function, factored out from
5702 create_catchpoint_without_mention and adjusted to use
5703 init_raw_breakpoint.
5704 (create_catchpoint_without_mention): Adjust.
5706 2011-06-22 Tom Tromey <tromey@redhat.com>
5708 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5709 argument of 0 specially.
5711 2011-06-22 Yao Qi <yao@codesourcery.com>
5713 * infrun.c (handle_inferior_event): Remove write-only local variable
5714 `sw_single_step_trap_p'.
5716 2011-06-20 Tom Tromey <tromey@redhat.com>
5718 * symtab.c (lookup_language_this): End loop if block is NULL.
5720 2011-06-17 Tom Tromey <tromey@redhat.com>
5722 * valops.c (value_of_this): Use lookup_language_this.
5723 * symtab.h (lookup_language_this): Declare.
5724 * symtab.c (lookup_language_this): New function.
5725 (lookup_symbol_aux): Use lookup_language_this.
5726 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5728 2011-06-17 Tom Tromey <tromey@redhat.com>
5730 * value.h (value_of_this): Update.
5731 (value_of_local): Remove.
5732 * valops.c (value_of_this): Rename from value_of_local. Change
5734 * p-exp.y (exp): Update.
5735 (variable): Likewise.
5736 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5738 2011-06-17 Tom Tromey <tromey@redhat.com>
5740 * valops.c (value_of_local): Complain if NAME is NULL.
5741 * std-operator.def (OP_OBJC_SELF): Remove.
5742 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5743 * objc-exp.y (name_not_typename): Use OP_THIS.
5744 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5746 <OP_OBJC_SELF>: Remove.
5747 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5749 2011-06-16 Tristan Gingold <gingold@adacore.com>
5751 * python/py-events.h (gdb_py_events): Make it extern.
5752 * python/py-evtregistry.c (gdb_py_events): Declare.
5754 2011-06-16 Hui Zhu <teawater@gmail.com>
5756 * remote.c (remote_trace_set_readonly_regions): Add check for
5757 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5760 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5762 * arm-linux-tdep.c: Include "auxv.h".
5764 (ARM_LINUX_SIZEOF_VFP): Define.
5765 (arm_linux_supply_vfp): New function.
5766 (arm_linux_collect_vfp): Likewise.
5767 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5768 (arm_linux_fpa_regset_sections): New variable.
5769 (arm_linux_vfp_regset_sections): Likewise.
5770 (arm_linux_core_read_description): New function.
5771 (arm_linux_init_abi): Install arm_linux_core_read_description and
5772 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5773 appropriate for the architecture.
5774 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5775 (tdesc_arm_with_m): Declare.
5776 (tdesc_arm_with_iwmmxt): Likewise.
5777 (tdesc_arm_with_vfpv2): Likewise.
5778 (tdesc_arm_with_vfpv3): Likewise.
5779 (tdesc_arm_with_neon): Likewise.
5780 * arm-linux-nat.c: Move features/*.c includes ...
5781 * arm-tdep.c: ... here.
5782 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5783 target description data structures ...
5784 * arm-tdep.c (_initialize_arm_tdep): ... here.
5785 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5786 HWCAP_VFPv3D16): Move definitions ...
5787 * arm-linux-tdep.h: ... here.
5789 2011-06-15 Hui Zhu <teawater@gmail.com>
5791 * remote.c (remote_trace_set_readonly_regions): Add a check for
5794 2011-06-14 Tom Tromey <tromey@redhat.com>
5796 * coffread.c (coffread_objfile): Rename from current_objfile.
5797 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5798 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5800 2011-06-14 Tom Tromey <tromey@redhat.com>
5802 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5803 (class_symtab): Remove.
5804 (jv_dynamics_progspace_key): New global.
5805 (jv_per_objfile_free): Reset program space data. Update assert.
5806 Don't clear globals.
5807 (get_dynamics_objfile): Use and set program space data.
5808 (get_java_class_symtab): Use get_dynamics_objfile.
5809 (add_class_symbol): Likewise.
5810 (java_link_class_type): Likewise.
5811 (java_object_type, jv_clear_object_type, set_java_object_type):
5813 (get_java_object_type): Update. Don't cache result.
5814 (is_object_type): Don't call set_java_object_type.
5815 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5816 initialize jv_dynamics_progspace_key.
5818 2011-06-14 Tom Tromey <tromey@redhat.com>
5820 * symtab.h (current_objfile): Don't declare.
5821 * objfiles.h (current_objfile): Don't declare.
5822 * objfiles.c (current_objfile): Remove.
5823 * mdebugread.c (current_objfile): New file-scope global.
5824 * dbxread.c (current_objfile): New file-scope global.
5825 * coffread.c (current_objfile): New file-scope global.
5827 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5829 * top.h (line): Rename to ...
5830 (saved_command_line): ... this.
5831 (linesize): Rename to ...
5832 (saved_command_line_size): ... this.
5833 * top.c (line): Rename to ...
5834 (saved_command_line): ... this.
5835 (linesize): Rename to ...
5836 (saved_command_line_size): ... this.
5837 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5838 * event-top.c (command_line_handler): Adjust.
5839 * main.c (captured_main): Adjust.
5841 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5843 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5844 get_frame_func instead of get_frame_pc to determine the code
5845 address used to construct the frame ID.
5846 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5847 (i386_epilogue_frame_this_id): Likewise.
5848 (i386_epilogue_frame_prev_register): New function.
5849 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5850 (i386_stack_tramp_frame_sniffer): Fix coding style.
5851 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5852 (i386_gdbarch_init): Fix comments.
5854 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5856 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5857 instruction when walking back through the instruction stream.
5859 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5861 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5862 fullname parameters order.
5864 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5867 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5869 * psymtab.c (map_symbol_filenames_psymtab)
5870 (map_partial_symbol_filenames): Likewise.
5871 * psymtab.h: Include symfile.h.
5872 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5873 * symfile.h (symbol_filename_ftype): New.
5874 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5875 map_symbol_filenames, clarify more the naming in comment.
5877 2011-06-07 Doug Evans <dje@google.com>
5879 * cc-with-index.sh: Fix typos in comment.
5880 Look for ../../gdb, for fullname.exp.
5882 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5883 Pedro Alves <pedro@codesourcery.com>
5885 * cli/cli-cmds.c (shell_escape): Use waitpid.
5886 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5888 2011-06-07 Tristan Gingold <gingold@adacore.com>
5890 * xcoffread.c (dwarf2_xcoff_names): New variable.
5891 (aix_process_linenos): Add a guard.
5892 (xcoff_symfile_finish): Free dwarf2.
5893 (xcoff_initial_scan): Add dwarf2 support.
5895 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5897 * infcall.c (run_inferior_call): Don't mask async. Instead force
5898 a synchronous wait, if the target can async.
5900 * target.h (struct target_ops): Delete to_async_mask.
5901 (target_async_mask): Delete.
5902 * target.c (update_current_target): Delete references to to_async_mask.
5903 * linux-nat.c (linux_nat_async_mask_value): Delete.
5904 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5905 to linux_nat_async_mask_value.
5906 (linux_nat_async_mask): Delete.
5907 (linux_nat_async, linux_nat_close): Remove references to
5908 linux_nat_async_mask_value.
5909 * record.c (record_async_mask_value): Delete.
5910 (record_async): Remove references to record_async_mask_value.
5911 (record_async_mask): Delete.
5912 (record_can_async_p, record_is_async_p): Remove references to
5913 record_async_mask_value.
5914 (init_record_ops, init_record_core_ops): Remove references to
5916 * remote.c (remote_async_mask_value): Delete.
5917 (init_remote_ops): Remove reference to remote_async_mask.
5918 (remote_can_async_p, remote_is_async_p): Remove references to
5919 remote_async_mask_value.
5920 (remote_async): Remove references to remote_async_mask_value.
5921 (remote_async_mask): Delete.
5923 * infrun.c (fetch_inferior_event): Don't claim registers changed
5924 if the current thread is already not executing.
5926 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5928 From Stephen Kitt <steve@sk2.org>
5929 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5930 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5932 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5934 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5935 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5937 2011-06-03 Tom Tromey <tromey@redhat.com>
5939 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5941 * python/py-exitedevent.c (create_exited_event_object): Change
5942 type of 'exit_code'. Optionally add exit_code attribute.
5943 (emit_exited_event): Change type of 'exit_code'.
5944 * python/py-event.h (emit_exited_event): Update.
5945 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5946 * infrun.c (handle_inferior_event): Set exit code fields on
5948 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5950 * inferior.c (exit_inferior_1): Initialize new fields.
5952 2011-06-03 Tom Tromey <tromey@redhat.com>
5954 * dwarf2expr.c (get_signed_type): New function.
5955 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5957 2011-06-02 Keith Seitz <keiths@redhat.com>
5959 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5961 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5963 * top.h (simplified_command_loop): Delete declaration.
5965 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5967 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5968 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5970 2011-06-01 Yao Qi <yao@codesourcery.com>
5972 * objfiles.h (obj_section_addr): Update reference to objfile from
5974 (obj_section_endaddr): Likewise.
5976 2011-06-01 Daniel Jacobowitz <drow@false.org>
5978 * MAINTAINERS: Update my email address and affiliation. Also
5979 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5981 2010-05-31 Keith Seitz <keiths@redhat.com>
5984 * linespec.c (get_search_block): New function.
5985 (find_methods): Add FILE_SYMTATB parameter and use it and
5986 get_search_block to pass an appropriate block to
5987 lookup_symbol_in_namespace.
5988 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5989 Check if *ARGPTR starts with a filename first.
5990 If it does, call locate_first_half again to locate the next
5991 "first half" of the linespec.
5992 Pass FILE_SYMTATB to decode_objc and decode_compound.
5993 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5994 (locate_first_half): Stop on the first colon seen.
5995 (decode_compound): Add FILE_SYMTAB parameter.
5996 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5997 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5998 get_search_block with lookup_symbol.
5999 (find_method): Add FILE_SYMTAB parameter and pass it to
6001 (decode_objc): Use get_search_block.
6003 2010-05-31 Keith Seitz <keiths@redhat.com>
6006 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
6007 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
6008 and CP_ANONYMOUS_NAMESPACE_LEN.
6009 (cp_is_anonymous): Likewise.
6010 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
6011 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
6012 * dwarf2read.c (namespace_name): Likewise.
6013 (fixup_partial_die): Likewise.
6014 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
6015 seen in the input, keep it.
6017 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6019 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
6020 * inf-loop.h (inferior_event_handler_wrapper): Delete.
6021 * inf-loop.c (inferior_event_handler_wrapper): Delete.
6022 (inferior_event_handler): Don't handle INF_QUIT_REQ.
6023 * remote.c (_initialize_remote): Register
6024 async_remote_interrupt_twice directly as
6025 sigint_remote_twice_token event.
6027 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6029 * target.h (enum inferior_event_type): Delete INF_ERROR.
6030 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
6032 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6034 * interps.c (interp_set): Don't cancel continuations.
6036 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
6038 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
6040 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6042 * continuations.h (continuation_ftype): Add `err' parameter.
6043 Document parameters.
6044 (do_all_continuations, do_all_continuations_thread)
6045 (do_all_intermediate_continuations)
6046 (do_all_intermediate_continuations_thread)
6047 (do_all_inferior_continuations): Add `err' parameter.
6048 * continuations.c (do_my_continuations_1, do_my_continuations)
6049 (do_all_inferior_continuations, do_all_continuations_ptid)
6050 (do_all_continuations_thread_callback)
6051 (do_all_continuations_thread, do_all_continuations)
6052 (do_all_intermediate_continuations_thread_callback)
6053 (do_all_intermediate_continuations_thread)
6054 (do_all_intermediate_continuations): Add `err' parameter, and pass
6055 it down all the way to the continuations proper.
6056 * inf-loop.c (inferior_event_handler): If fetching an inferior
6057 event throws an error, don't pop the target, and still call the
6058 continuations, but with `err' set. Adjust all other continuation
6060 * breakpoint.c (until_break_command_continuation): Add `err'
6062 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
6063 issue another step if `err' is set.
6064 (struct until_next_continuation_args): New.
6065 (until_next_continuation): Add `err' parameter. Adjust.
6066 (until_next_command): Adjust.
6067 (struct finish_command_continuation_args): Add `thread' field.
6068 (finish_command_continuation): Add `err' parameter. Handle it.
6069 (finish_forward): Adjust.
6070 (attach_command_continuation): Add `err' parameter. Handle it.
6071 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6072 cancel the continuations.
6073 * interps.c (interp_set): Adjust to cancel the continuations.
6074 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6075 continuations rather than discarding.
6076 (free_thread): Don't clear thread inferior resources here.
6077 (delete_thread_1): Do it here instead. And do it before removing
6078 the thread from the threads list. Tag the thread as exited before
6079 clearing thread inferior resources.
6081 2011-05-30 Joel Brobecker <brobecker@adacore.com>
6083 * infcall.c (call_function_by_hand): Rephrase error message.
6085 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6087 * defs.h (struct thread_info, struct inferior): Delete forward
6089 * breakpoint.h (struct thread_info): New forward declaration.
6090 * observer.sh (struct inferior): New forward declaration.
6091 * python/python-internal.h (struct inferior): New forward
6094 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6096 * defs.h (struct continuation, continuation_ftype)
6097 (continuation_free_arg_ftype, add_continuation)
6098 (do_all_continuations, do_all_continuations_thread)
6099 (discard_all_continuations, discard_all_continuations_thread)
6100 (add_intermediate_continuation, do_all_intermediate_continuations)
6101 (do_all_intermediate_continuations_thread)
6102 (discard_all_intermediate_continuations)
6103 (discard_all_intermediate_continuations_thread)
6104 (add_inferior_continuation, do_all_inferior_continuations)
6105 (discard_all_inferior_continuations): Move to ...
6106 * continuations.h: ... this new file.
6107 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6108 infcmd.c, inferior.c, infrun.c, interps.c: Include
6111 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6112 Doug Evans <dje@google.com>
6114 Fix PR 10970, PR 12702.
6115 * linux-nat.c (linux_lwp_is_zombie): New function.
6116 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
6117 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
6119 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6121 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6123 (add_continuation, add_intermediate_continuation)
6124 (add_inferior_continuation): Use them.
6125 * continuations.c (struct continuation): Use them.
6126 (make_continuation_ftype): Delete.
6127 (make_continuation, add_inferior_continuation, add_continuation)
6128 (add_intermediate_continuation): Use continuation_ftype and
6129 continuation_free_arg_ftype. Rename parameters to shorter names.
6131 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6133 * continuations.c (make_continuation): Make it return void.
6134 (do_my_continuations): Rename to ...
6135 (do_my_continuations_1): ... this. Remove old_chain parameter and
6137 (do_my_continuations): New.
6138 (discard_my_continuations): Rename to ...
6139 (discard_my_continuations_1): ... this. Remove old_chain
6140 parameter and adjust.
6141 (discard_my_continuations): New.
6142 (add_inferior_continuation): Simplify.
6143 (do_all_inferior_continuations): Reimplement on top
6144 do_my_continuations.
6145 (discard_all_inferior_continuations): Simplify.
6146 (add_continuation): Simplify.
6147 (do_all_continuations_ptid): Simplify.
6148 (discard_all_continuations_thread_callback): Simplify.
6149 (add_intermediate_continuation): Simplify.
6150 (discard_all_intermediate_continuations_thread_callback):
6153 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6155 * utils.c (struct continuation, add_continuation)
6156 (add_inferior_continuation)
6157 (do_all_inferior_continuations, discard_all_inferior_continuations)
6158 (restore_thread_cleanup, do_all_continuations_ptid)
6159 (do_all_continuations_thread_callback)
6160 (do_all_continuations_thread, do_all_continuations)
6161 (discard_all_continuations_thread_callback)
6162 (discard_all_continuations_thread, discard_all_continuations)
6163 (add_intermediate_continuation)
6164 (do_all_intermediate_continuations_thread_callback)
6165 (do_all_intermediate_continuations_thread)
6166 (do_all_intermediate_continuations)
6167 (discard_all_intermediate_continuations_thread_callback)
6168 (discard_all_intermediate_continuations_thread)
6169 (discard_all_intermediate_continuations): Move to ...
6170 * continuations.c: ... this new file, and adjust to no longer
6171 implement continuations on top of cleanups.
6172 * Makefile.in (SFILES): Add continuations.c.
6173 (COMMON_OBS): Add continuations.o.
6175 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6177 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6178 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6179 Internal error on invalid values.
6180 * reverse.c: Don't handle EXEC_ERROR.
6181 * mi/mi-main.c: Don't handle EXEC_ERROR.
6183 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6185 * record.c: Include event-loop.h, inf-loop.h.
6186 (record_beneath_to_async): New global.
6187 (tmp_to_async): New global.
6188 (record_async_inferior_event_token): New global.
6189 (record_open_1): Don't error out if async is enabled.
6190 (record_open): Handle to_async. Create an async event source in
6192 (record_close): Delete the async event source.
6193 (record_resumed): New global.
6194 (record_execution_dir): New global.
6195 (record_resume, record_core_resume): Set them. Register the
6196 target on the event loop.
6197 (record_wait): Rename to ...
6198 (record_wait_1): ... this. Add more debug output. Handle
6199 TARGET_WNOHANG, and the target beneath returning
6200 TARGET_WAITKIND_IGNORE.
6201 (record_wait): Reimplement on top of record_wait_1.
6202 (record_async_mask_value): New global.
6203 (record_async, record_async_mask, record_can_async_p)
6204 (record_is_async_p, record_execution_direction): New functions.
6205 (init_record_ops, init_record_core_ops): Install new methods.
6206 * infrun.c (fetch_inferior_event): Temporarily switch the global
6207 execution direction to the direction the target was going.
6208 (execution_direction): Change type to int.
6209 * target.c (default_execution_direction): New function.
6210 (update_current_target): Inherit and de_fault
6211 to_execution_direction.
6212 * target.h (struct target_ops) <to_execution_direction>: New
6214 (target_execution_direction): New macro.
6215 * inferior.h (execution_direction): Change type to int.
6217 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6219 * infcall.c (call_function_by_hand): Don't allow calling functions
6220 in reverse execution mode.
6222 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6224 * infcmd.c (finish_command): Allow async finish in reverse.
6226 2011-05-26 Yao Qi <yao@codesourcery.com>
6228 * gdb_thread_db.h: Delete. Move to ...
6229 * common/gdb_thread_db.h: ... here.
6231 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6233 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6234 function's entry point instead of a manually managed momentary
6235 breakpoint, and only ever issue one proceed call.
6236 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6237 doing a reverse-finish, switch to stepi mode, to do another step.
6238 (insert_step_resume_breakpoint_at_sal): Make public.
6239 (normal_stop): No need to save function value return registers if
6241 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6243 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6245 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6246 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6247 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6249 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6250 step-resume breakpoints.
6251 (print_it_typical): Handle bp_hp_step_resume.
6252 (bpstat_what): Ditto.
6253 (bptype_string): Ditto.
6254 (print_one_breakpoint_location): Ditto.
6255 (allocate_bp_location): Ditto.
6257 (breakpoint_re_set_one): Ditto.
6258 * infrun.c (handle_inferior_event): Adjust. Split
6259 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6260 BPSTAT_WHAT_HP_STEP_RESUME.
6261 (insert_step_resume_breakpoint_at_sal): Rename to ...
6262 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6263 parameter. Handle it.
6264 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6265 insert_step_resume_breakpoint_at_sal_1.
6266 (insert_step_resume_breakpoint_at_frame): Rename to ...
6267 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6268 set a high-priority step-resume breakpoint.
6269 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6270 (insert_step_resume_breakpoint_at_caller): Ditto.
6272 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6274 * breakpoint.c (iterate_over_related_breakpoints): New.
6275 (do_map_delete_breakpoint): New.
6276 (delete_command): Pass do_map_delete_breakpoint to
6277 map_breakpoint_numbers.
6278 (do_disable_breakpoint): New.
6279 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6281 (do_enable_breakpoint): Rename to ...
6282 (enable_breakpoint_disp): ... this.
6283 (enable_breakpoint): Adjust.
6284 (do_enable_breakpoint): New.
6285 (enable_once_breakpoint): Delete.
6286 (do_map_enable_breakpoint): New.
6287 (do_map_enable_once_breakpoint): New.
6288 (enable_once_command, enable_delete_command)
6289 (delete_trace_command): Iterate over the breakpoint's related
6292 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6294 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6295 for ALPHA_ZERO_REGNUM.
6296 (alpha_supply_int_regs): Explicitly supply zero as the value for
6297 ALPHA_ZERO_REGNUM in the register cache.
6298 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6300 2011-05-26 Yao Qi <yao@codesourcery.com>
6302 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6304 2011-05-26 Tristan Gingold <gingold@adacore.com>
6306 * symfile.h (struct dwarf2_section_names): New type.
6307 (struct dwarf2_debug_sections): New type.
6308 (dwarf2_has_info): Add parameter.
6309 * dwarf2read.c (dwarf2_elf_names): New variable.
6310 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6311 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6312 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6313 (dwarf2_has_info): Add names parameter. Pass names
6314 to dwarf2_locate_sections.
6315 (section_is_p): Rewrite using the names parameter.
6316 (dwarf2_locate_sections): Use section names from the names parameter.
6317 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6318 * elfread.c (read_psyms): Ditto.
6319 * machoread.c (macho_symfile_read): Ditto.
6321 2011-05-25 Andreas Schwab <schwab@redhat.com>
6324 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6326 2011-05-24 Keith Seitz <keiths@redhat.com>
6329 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6330 (decode_compound): Unconditionally call keep_name_info.
6332 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6334 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6335 scope, clear its command list.
6336 (map_breakpoint_numbers): Don't walk the related breakpoints list
6339 2011-05-24 Tom Tromey <tromey@redhat.com>
6341 * MAINTAINERS: Move Jim Blandy to past maintainers.
6343 2011-05-24 Tristan Gingold <gingold@adacore.com>
6345 * symfile.h (enum dwarf2_section_enum): New type.
6346 (dwarf2_get_section_info): New prototype.
6347 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6348 section_name by sect. Use a switch to select the info.
6349 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6350 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6352 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6354 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6355 shared library event breakpoint if there's no execution.
6357 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6359 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6360 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6362 2011-05-23 Tom Tromey <tromey@redhat.com>
6364 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6367 2011-05-23 Doug Evans <dje@google.com>
6369 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6370 entry for RuntimeError to doc string.
6372 2011-05-23 Jerome Guitton <guitton@adacore.com>
6374 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6375 sequence for probing loops.
6377 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6379 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6382 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6384 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6385 zero as the value for %g0 in the register cache.
6386 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6387 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6389 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6391 * infrun.c (proceed): Set previous_inferior_ptid here.
6392 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6393 inferior_ptid, not null_ptid.
6394 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6395 (fetch_inferior_event): Nor here.
6397 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6399 * inf-loop.c (inferior_event_handler): Only output a message if
6402 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6404 * MAINTAINERS: Update my e-mail address.
6406 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6408 * infrun.c (proceed): Switch the inferior event loop to
6409 INF_EXEC_COMPLETE if the target refused to resume from a
6412 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6414 * infcmd.c: Include "inf-loop.h".
6415 (step_once): When stepping into an inline subroutine, pretend the
6416 target has run. If the target can async, switch the inferior
6417 event loop to INF_EXEC_COMPLETE.
6418 * inferior.h (user_visible_resume_ptid): Declare.
6419 * infrun.c (user_visible_resume_ptid): New function, factored out
6422 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6423 that the current thread is running. Merge async and sync
6426 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6428 * infcmd.c (step_1): Simplify synchronous case.
6430 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6432 * tracepoint.c: Include exceptions.h.
6433 (TFILE_PID): Move higher in file.
6434 (tfile_open): Delay pushing the tfile target until we're assured
6435 the tfile header is present in the file. Wrap reading the initial
6436 newline-terminated lines in TRY_CATCH. Pop the target if the
6437 initial setup failed. Add the tfile's thread immediately
6438 aftwards, before any non-essential setup. Don't skip
6439 post_create_inferior if there are no traceframes present in the
6441 (tfile_close): Remove redundant check for null before xfree call.
6442 (tfile_thread_alive): New function.
6443 (init_tfile_ops): Register it as to_thread_alive callback.
6445 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6447 * tracepoint.c (tfile_open): Delete #if 0'd code.
6449 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6451 Fix -readnow for -gdwarf-4 unused type units.
6452 * dwarf2read.c (struct signatured_type): Remove the field offset.
6453 (create_signatured_type_table_from_index): Remove its initialization.
6454 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6455 instead. Add a complaint call.
6456 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6457 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6458 (lookup_signatured_type_at_offset, read_signatured_type)
6459 (write_one_signatured_type): Update the field for per_cu.
6461 2011-05-19 Tom Tromey <tromey@redhat.com>
6463 * python/py-inferior.c (python_inferior_exit): Use
6465 (python_on_resume): Likewise.
6467 2011-05-19 Matt Rice <ratmice@gmail.com>
6469 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6471 2011-05-19 Hui Zhu <teawater@gmail.com>
6473 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6475 2011-05-19 Hui Zhu <teawater@gmail.com>
6477 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6479 2011-05-18 Tom Tromey <tromey@redhat.com>
6481 * dwarf2read.c (dwarf2_add_field): Constify.
6482 * value.c (value_static_field): Constify.
6483 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6485 * ax-gdb.c (gen_static_field): Constify
6487 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6489 * linux-nat.c (kill_callback): Use SIGKILL first.
6491 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6493 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6495 2011-05-18 Tom Tromey <tromey@redhat.com>
6497 * value.c (value_fn_field): Constify.
6498 * symtab.c (gdb_mangle_name): Constify.
6499 * stabsread.c (update_method_name_from_physname): Make 'physname'
6501 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6502 const. Use explicit fputc_filtered loop.
6503 (pascal_type_print_base): Constify.
6504 * p-lang.h (pascal_type_print_method_args): Update.
6505 * linespec.c (add_matching_methods): Constify.
6506 (add_constructors): Likewise.
6507 * jv-typeprint.c (java_type_print_base): Constify.
6508 * gdbtypes.h (struct cplus_struct_type)
6509 <fn_fieldlist.fn_field.physname>: Now const.
6510 * dwarf2read.c (compute_delayed_physnames): Constify.
6511 (dwarf2_add_member_fn): Likewise.
6512 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6514 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6516 * infrun.c (resume): Mention which is the current thread, and its
6517 current PC in debug output.
6518 (prepare_to_proceed): Mention the thread switching in debug
6521 2011-05-18 Tom Tromey <tromey@redhat.com>
6523 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6524 path check. Use xmalloc and cleanups.
6525 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6527 2011-05-17 Tom Tromey <tromey@redhat.com>
6529 * cp-valprint.c (cp_print_value_fields): Catch errors from
6532 2011-05-17 Tom Tromey <tromey@redhat.com>
6534 * dwarf2read.c (dwarf2_get_die_type): Call
6535 get_die_type_at_offset.
6536 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6537 get_base_type function.
6539 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6541 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6544 2011-05-16 Doug Evans <dje@google.com>
6546 * python/py-auto-load.c (source_section_scripts): Mention objfile
6549 2011-05-15 Doug Evans <dje@google.com>
6551 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6552 (try_thread_db_load_from_pdir): Call it. If unable to find
6553 libthread_db in directory of libpthread, see if we're looking at
6554 the separate-debug-info copy.
6556 * python/py-autoload.c (print_script): Print "Missing" instead of
6557 "No" for missing scripts.
6558 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6560 2011-05-13 Doug Evans <dje@google.com>
6562 * ui-file.c (stdio_file_write_async_safe): Add comment.
6564 2011-05-14 Hui Zhu <teawater@gmail.com>
6566 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6568 2011-05-13 Doug Evans <dje@google.com>
6570 Support $pdir and $sdir in libthread-db-search-path.
6571 * NEWS: Mention $sdir,$pdir.
6572 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6573 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6574 (try_thread_db_load_from_sdir): New function.
6575 (try_thread_db_load_from_dir): New function.
6576 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6577 system directories if search of libthread-db-search-path fails,
6578 that is now done via $sdir.
6579 (has_libpthread): New function.
6580 (thread_db_load): Remove search for libthread_db in directory of
6581 libpthread, that is now done via $pdir.
6583 * NEWS: Mention "info auto-load-scripts".
6584 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6585 script_not_found_warning_printed.
6586 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6587 all callers updated. Initialize script_not_found_warning_printed.
6588 (get_auto_load_pspace_data_for_loading): New function.
6589 (maybe_add_script): New function.
6590 (source_section_scripts): Simplify. Only print one warning regardless
6591 of the number of auto-load scripts not found.
6592 (clear_section_scripts): Clear script_not_found_warning_printed.
6593 (auto_load_objfile_script): Record script in hash table.
6594 (count_matching_scripts): New function.
6595 (maybe_print_script): Renamed from maybe_print_section_script, all
6596 callers updated. Rewrite to use ui_out_*.
6597 (info_auto_load_scripts): Renamed from
6598 maintenance_print_section_scripts, all callers updated.
6599 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6600 renamed as "info auto-load-scripts".
6602 2011-05-13 Tom Tromey <tromey@redhat.com>
6604 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6605 (read_sleb128): Likewise.
6607 2011-05-13 Tom Tromey <tromey@redhat.com>
6609 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6612 2011-05-13 Doug Evans <dje@google.com>
6614 * linux-nat.c (debug_linux_nat_async): Delete.
6615 Replace all references to use debug_linux_nat instead.
6616 (show_debug_linux_nat_async): Delete.
6617 (sigchld_handler): Call ui_file_write_async_safe instead of
6619 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6620 * ui-file.c (struct ui_file): New member to_write_async_safe.
6621 (null_file_write_async_safe): New function.
6622 (ui_file_write_async_safe): New function.
6623 (set_ui_file_write_async_safe): New function.
6624 (ui_file_new): Initialize to_write_async_safe.
6625 (stdio_file_write_async_safe): New function.
6626 (struct stdio_file): New member fd.
6627 (stdio_file_new): Initialize to_write_async_safe, fd.
6628 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6630 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6631 (set_ui_file_write_async_safe): Declare.
6632 (ui_file_write_async_safe): Declare.
6634 2011-05-13 Tom Tromey <tromey@redhat.com>
6636 * utils.c (do_value_free): New function.
6637 (make_cleanup_value_free): Likewise.
6638 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6640 (dwarf2_loc_desc_needs_frame): Call
6641 make_cleanup_value_free_to_mark.
6642 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6643 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6645 (new_dwarf_expr_context): Don't call value_mark.
6646 * dwarf2-frame.c (execute_stack_op): Call
6647 make_cleanup_value_free_to_mark.
6648 * defs.h (make_cleanup_value_free): Declare.
6650 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6652 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6653 prepare_execute_command.
6654 * top.c (prepare_execute_command): Return cleanup.
6655 (execute_command): Use cleanup from prepare_execute_command.
6656 * top.h (prepare_execute_command): Change prototype to return
6658 * defs.h (struct value): Add opaque declaration.
6659 (make_cleanup_value_free_to_mark): Add prototype.
6660 * utils.c (do_value_free_to_mark): New function.
6661 (make_cleanup_value_free_to_mark): Likewise.
6663 2011-05-12 Tom Tromey <tromey@redhat.com>
6665 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6666 cast left-hand-side to unsigned.
6668 2011-05-12 Tom Tromey <tromey@redhat.com>
6671 * value.h (value_from_contents): Declare.
6672 * value.c (value_from_contents): New function.
6673 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6674 (dwarf2_get_die_type): New function.
6675 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6676 (allocate_piece_closure): Acquire reference to values.
6677 (read_pieced_value): Update for value-based expressions.
6678 (write_pieced_value): Likewise.
6679 (free_pieced_value_closure): Call value_free as needed.
6680 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6681 Update for value-based expressions.
6682 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6683 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6684 <get_base_type>: New field.
6685 (struct dwarf_expr_piece) <v.value>: Change type.
6686 <v.regno>: New field.
6687 (struct dwarf_expr_context) <mark>: New field.
6688 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6689 (dwarf_expr_pop, dwarf_expr_push): Remove.
6690 (dwarf_expr_push_address): Declare.
6691 * dwarf2expr.c (dwarf_arch_cookie): New global.
6692 (struct dwarf_gdbarch_types): New.
6693 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6695 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6697 (dwarf_expr_push_address): New function.
6698 (dwarf_expr_pop): Now static.
6699 (dwarf_expr_fetch): Change return type.
6700 (dwarf_require_integral): New function.
6701 (dwarf_expr_fetch): Simplify.
6702 (add_piece): Update.
6703 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6705 (execute_stack_op) <sign_ext>: Remove.
6706 Use values for DWARF stack.
6707 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6708 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6710 (_initialize_dwarf2expr): New function.
6711 (add_piece): Update.
6712 (new_dwarf_expr_context): Set new field.
6713 (free_dwarf_expr_context): Call value_free_to_mark.
6714 * dwarf2-frame.c (no_base_type): New function.
6715 (execute_stack_op): Set get_base_type field. Update.
6717 2011-05-12 Tom Tromey <tromey@redhat.com>
6719 * dwarf2read.c (read_common_block): Fix formatting.
6721 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6723 * breakpoint.c (disable_breakpoint): Disable all locations
6724 associated with a tracepoint on target if a trace experiment is
6726 (disable_command): Disable a specific tracepoint location on target if
6727 a trace experiment is running.
6728 (do_enable_breakpoint): Enable all locations associated with a
6729 tracepoint on target if a trace experiment is running.
6730 (enable_command) Enable a specific tracepoint location on target if a
6731 trace experiment is running.
6732 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6733 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6734 to_disable_tracepoint.
6735 * target.h: Add declaration of struct bp_location.
6736 (struct target_ops): Add new functions
6737 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6738 to_disable_tracepoint to target operations.
6739 (target_supports_enable_disable_tracepoint): New macro.
6740 (target_enable_tracepoint): New macro.
6741 (target_disable_tracepoint): New macro.
6742 * remote.c (struct remote_state): Add new field.
6743 (remote_enable_disable_tracepoint_feature): New.
6744 (remote_protocol_features): Add new entry.
6745 (remote_supports_enable_disable_tracepoint): New.
6746 (remote_enable_tracepoint): New.
6747 (remote_disable_tracepoint): New.
6748 (init_remote_ops): Add remote_enable_tracepoint,
6749 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6750 to remote operations.
6751 * tracepoint.c (start_tracing): Allow tracing to start without any
6752 tracepoints enabled with just a warning if they can be re-enabled
6754 * NEWS: Add news item for the new behaviour of the enable and disable
6755 GDB commands when applied to tracepoints.
6756 Add news items for the new remote packets QTEnable and QTDisable.
6758 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6760 * config.in: Regenerate.
6761 * configure: Regenerate.
6762 * configure.ac <--with-system-readline> (for readline_echoing_p):
6764 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6765 (tui_old_rl_echoing_p): ... here.
6766 (tui_setup_io): Rename extern declaration readline_echoing_p to
6767 _rl_echoing_p. Adjust assignments for the both renames.
6769 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6771 * symtab.c (lookup_symtab): Run cleanup before returning.
6773 2011-05-11 Tom Tromey <tromey@redhat.com>
6775 * dwarf2read.c (handle_data_member_location): New function.
6776 (dwarf2_add_field): Use it.
6777 (read_common_block): Likewise.
6779 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6781 Make addrs->SECTINDEX always defined.
6782 * symfile.c (relative_addr_info_to_section_offsets): Check for
6783 SECTINDEX -1, not for zero ADDR.
6784 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6785 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6786 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6789 2011-05-10 Doug Evans <dje@google.com>
6791 * linux-thread-db.c: Whitespace cleanup.
6792 (try_thread_db_load_1): Fix comment.
6794 * linux-thread-db.c (set_libthread_db_search_path): New function.
6795 (_initialize_thread_db): Add setter for libthread-db-search-path.
6797 2011-05-09 Doug Evans <dje@google.com>
6799 * NEWS: Mention --with-iconv-bin.
6800 * configure.ac: New option --with-iconv-bin.
6801 * configure: Regenerate.
6802 * config.in: Regenerate.
6803 * defs.h (relocate_gdb_directory): Declare.
6804 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6805 removed progname parameter, and exported. All callers updated.
6806 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6808 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6809 adding missing call to restore_child_signals_mask.
6811 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6813 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6815 * infrun.c (proceed, start_remote): Adjust.
6816 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6817 and adjust to not handle it.
6818 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6819 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6820 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6821 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6822 * windows-nat.c (do_initial_windows_stuff): Adjust.
6823 * infcmd.c (attach_command): Adjust.
6824 (notice_new_inferior): Adjust.
6826 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6828 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6829 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6830 * spu-tdep.c (op_selb): Use correct value.
6832 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6834 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6835 "parent" parameter to symbol_file_add_from_bfd call.
6837 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6838 Thiago Jung Bauermann <bauerman@br.ibm.com>
6840 Implement support for PowerPC BookE masked watchpoints.
6841 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6843 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6844 method. Initialize to NULL in all existing breakpoint_ops instances.
6845 (struct breakpoint) <hw_wp_mask>: New field.
6846 * breakpoint.c (is_masked_watchpoint): Add prototype.
6847 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6848 breakpoint's breakpoint_ops.works_in_software_mode if available.
6849 (watchpoints_triggered): Handle the case of a hardware masked
6851 (watchpoint_check): Likewise.
6852 (works_in_software_mode_watchpoint): New function.
6853 (insert_masked_watchpoint, remove_masked_watchpoint)
6854 (resources_needed_masked_watchpoint)
6855 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6856 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6857 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6859 (masked_watchpoint_breakpoint_ops): New structure.
6860 (watch_command_1): Check for the existence of the `mask' parameter.
6861 Set b->ops according to the type of hardware watchpoint being created.
6862 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6863 (ppc_linux_remove_mask_watchpoint)
6864 (ppc_linux_masked_watch_num_registers): New functions.
6865 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6866 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6867 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6868 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6869 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6870 (target_masked_watch_num_registers): New functions.
6871 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6872 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6874 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6875 (target_masked_watch_num_registers): Add prototypes.
6877 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6880 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6881 (producer_is_gcc_ge_4_0): New function.
6882 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6883 symtab->language code.
6884 (var_decode_location): Set cu->has_loclist.
6885 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6886 skip. Intialize force_skip from locations_valid. Move the prologue
6887 skipping code into two passes.
6888 * symtab.h (struct symtab): Make the primary field a bitfield. New
6889 field locations_valid.
6891 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6893 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6894 (classify_inner_name): Call cp_lookup_nested_type with
6896 * cp-namespace.c (cp_lookup_nested_type): New variable
6897 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6898 type_name_no_tag_or_error with saved_parent_type.
6899 * dwarf2read.c (load_partial_dies): Read in any children of
6900 DW_TAG_typedef with complaint in such case.
6901 * gdbtypes.c (type_name_no_tag_or_error): New function.
6902 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6903 * valops.c (destructor_name_p): New comment for parameter type. Remove
6904 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6905 * value.h (destructor_name_p): Remove type const.
6907 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6909 * symtab.c (compare_symbol_name): New function.
6910 (completion_list_add_name, expand_partial_symbol_name): Call it,
6911 remove the variable ncmp.
6912 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6915 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6917 Demote to sw watchpoint only in update_watchpoint.
6918 * breakpoint.c (update_watchpoint): Change between software and
6919 hardware watchpoint for all kinds of watchpoints, not just
6920 read/write ones. Determine b->exact value here instead of
6921 in watch_command_1. Error out if there are not enough resources
6922 for a read or access hardware watchpoint.
6923 (watch_command_1): Remove logic of checking whether there are
6924 enough resources available, since update_watchpoint will do that
6925 work now. Don't set b->exact here. Catch exceptions thrown by
6926 update_watchpoint and delete the watchpoint.
6927 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6928 Use target_exact_watchpoints instead.
6929 (delete_breakpoint): Notify observers only if deleted watchpoint
6930 has a breakpoint number assigned to it.
6932 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6934 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6936 2011-05-05 Jerome Guitton <guitton@adacore.com>
6938 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6940 (i386_stack_tramp_frame_unwind): New static global.
6941 (i386_match_pattern): New function, extracted from i386_match_insn.
6942 (i386_match_insn): Use i386_match_pattern.
6943 (i386_match_insn_block): New function.
6944 (i386_tramp_chain_in_reg_insns)
6945 (i386_tramp_chain_on_stack_insns): New static variables.
6946 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6949 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6951 * configure.host (xscale*): Don't handle target.
6952 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6955 2011-05-04 Yao Qi <yao@codesourcery.com>
6957 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6959 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6962 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6963 | * elfread.c (elf_symtab_read): Stop memory leak.
6965 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6967 * nto-tdep.c (nto_target): Replace deprecated call to
6968 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6970 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6972 Fix false GCC warning.
6973 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6975 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6977 * breakpoint.c (update_watchpoint): Move code to change
6978 the enable state of breakpoint from here ...
6979 (do_enable_breakpoint): ... to here.
6981 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6983 * valprint.c (val_print_array_elements): Fixed poor performance
6984 of printing very large arrays with repeat_count_threshold set
6985 to unlimited. New comment.
6987 2011-04-29 Tom Tromey <tromey@redhat.com>
6989 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6990 (mi_parse): Likewise.
6991 * breakpoint.c (break_range_command): Use sizeof char*, not
6993 (create_breakpoint): Likewise.
6994 (parse_breakpoint_sals): Likewise.
6996 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6998 * linux-nat.c (linux_child_remove_fork_catchpoint)
6999 (linux_child_remove_vfork_catchpoint)
7000 (linux_child_remove_exec_catchpoint): New functions.
7001 (linux_target_install_ops): Install them.
7003 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
7007 * varobj.c (install_default_visualizer): Do not install a
7008 visualizer if the varobj is CPLUS_FAKE_CHILD.
7009 (construct_visualizer): Likewise.
7011 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7013 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
7014 case insensitive comparison.
7016 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
7018 * infrun.c (proceed): Revert previous change.
7019 (resume): Instead, handle the case of signal delivery while stepping
7020 off a breakpoint location here, and only if software single-stepping
7021 is used. Handle nested signals.
7023 2011-04-28 Yao Qi <yao@codesourcery.com>
7025 * arm-tdep.c (copy_unmodified): Rename to ...
7026 (arm_copy_unmodified): .. this. New.
7027 (copy_preload): Move common part to ...
7028 (install_preload): .. this. New.
7029 (arm_copy_preload): New.
7030 (copy_preload_reg): Move common part to ...
7031 (install_preload_reg): ... this. New.
7032 (arm_copy_preload_reg): New.
7033 (copy_b_bl_blx): Move common part to ...
7034 (install_b_bl_blx): .. this. New.
7035 (arm_copy_b_bl_blx): New.
7036 (copy_bx_blx_reg): Move common part to ...
7037 (install_bx_blx_reg): ... this. New.
7038 (arm_copy_bx_blx_reg): New.
7039 (copy_alu_reg): Move common part to ...
7040 (install_alu_reg): ... this. New.
7041 (arm_copy_alu_reg): New.
7042 (copy_alu_shifted_reg): Move common part to ...
7043 (install_alu_shifted_reg): ... this. New.
7044 (copy_ldr_str_ldrb_strb): Move common part to ...
7045 (install_ldr_str_ldrb_strb): ... this. New.
7046 (arm_copy_ldr_str_ldrb_strb): New.
7047 (copy_copro_load_store): Move some common part to ...
7048 (install_copy_copro_load_store): ... this. New.
7049 (arm_copy_copro_load_store): New.
7051 (arm_copy_svc): Renamed from copy_svc.
7052 (copy_undef): Delete.
7053 (arm_copy_undef): Renamed from copy_undef.
7054 (decode_ext_reg_ld_st): Delete.
7055 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7056 (decode_svc_copro): Delete.
7057 (arm_decode_svc_copro): Renamed from decode_svc_copro.
7058 (copy_copro_load_store, copy_alu_imm): update callers.
7059 (copy_extra_ld_st, copy_block_xfer): Likewise.
7060 (decode_misc_memhint_neon, decode_unconditional): Likewise.
7061 (decode_miscellaneous, decode_dp_misc): Likewise.
7062 (decode_ld_st_word_ubyte, decode_media): Likewise.
7063 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7064 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7065 (decode_unconditional, decode_miscellaneous): Likewise.
7066 (decode_media, decode_b_bl_ldmstm): Likewise.
7067 (arm_process_displaced_insn): Likewise..
7068 (decode_misc_memhint_neon): Delete.
7069 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7070 (decode_miscellaneous): Delete.
7071 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7072 (decode_dp_misc): Delete.
7073 (arm_decode_dp_misc): Renamed from decode_dp_misc.
7074 (decode_ld_st_word_ubyte): Delete.
7075 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7076 (decode_media): Delete.
7077 (arm_decode_media): Renamed from decode_media.
7078 (decode_b_bl_ldmstm): Delete.
7079 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7080 (decode_ext_reg_ld_st): Delete.
7081 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7082 (decode_unconditional): Delete.
7083 (arm_decode_unconditional): Renamed from decode_unconditional.
7085 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7087 Case insensitive lookups implementation.
7088 * dwarf2read.c: Include ctype.h.
7089 (struct mapped_index): New field version.
7090 (mapped_index_string_hash): New parameter index_version. New comment
7091 for it. Call tolower appropriately.
7092 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7093 Choose the right index version for mapped_index_string_hash.
7094 (dwarf2_read_index): Support also the index version 5. Initialize the
7095 new struct mapped_index field version.
7096 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7097 (find_slot): Explain the version needs. Pass INT_MAX for the new
7099 (write_psymtabs_to_index): Produce version 5.
7100 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7101 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
7102 * psymtab.c (lookup_partial_symbol): Find the
7103 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7105 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7107 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7108 (completion_list_add_name): New variable ncmp, initialize it, use it.
7109 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7110 * utils.c (strcmp_iw): Support case_sensitive_off.
7111 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7112 New function comment part. New variables saved_string1,
7113 saved_string2 and case_pass. Add a proper second pass.
7115 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7117 Replace re_comp/re_exec by regcomp/regexec.
7118 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7119 (search_symbols_name_matches): Use them, use regexec.
7120 (search_symbols): New variable retval_chain, adjust the use of
7121 old_chain against it. Replace re_comp by regcomp. Use the new struct
7122 search_symbols_data fields, use regexec instead of re_exec.
7124 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7126 Format the code for the next patch.
7127 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7128 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7129 New variables c1 and c2.
7131 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7133 * infrun.c (proceed): Do not single-step into signal delivery
7134 when stepping off a breakpoint location.
7135 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7136 (insert_step_resume_breakpoint_at_caller): Likewise.
7137 (insert_step_resume_breakpoint_at_sal): Likewise.
7138 (insert_longjmp_resume_breakpoint): Likewise.
7140 2011-04-27 Yao Qi <yao@codesourcery.com>
7142 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7144 2011-04-27 Joel Brobecker <brobecker@adacore.com>
7146 * procfs.c (procfs_pass_signals): Fix advance declaration.
7148 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7150 * target.h (struct target_ops): Remove to_notice_signals;
7151 add to_pass_signals.
7152 (target_notice_signals): Remove.
7153 (target_pass_signals): Add prototype.
7154 * target.c (update_current_target): Remove to_notice_signals;
7155 mention to_pass_signals.
7156 (target_pass_signals): New function.
7157 (debug_to_notice_signals): Remove.
7158 (setup_target_debug): Do not install debug_to_notice_signals.
7160 * infrun.c (signal_pass): New global.
7161 (resume): Call target_pass_signals.
7162 (handle_inferior_event): Report all signals while stepping over
7163 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7164 are re-inserted when stepping over a signal handler.
7165 (signal_cache_update): New function.
7166 (signal_stop_update): Call it.
7167 (signal_print_update): Likewise.
7168 (signal_pass_update): Likewise.
7169 (handle_command): Call signal_cache_update and target_pass_signals
7170 instead of target_notice_signals.
7171 (_initialize_infrun): Initialize signal_pass.
7173 * linux-nat.c (pass_mask): New global.
7174 (linux_nat_pass_signals): New function.
7175 (linux_nat_create_inferior): Report all signals initially.
7176 (linux_nat_attach): Likewise.
7177 (linux_nat_resume): Use pass_mask to decide whether to directly
7178 handle an inferior signal.
7179 (linux_nat_wait_1): Likewise.
7180 (linux_nat_add_target): Install to_pass_signals callback.
7182 * nto-procfs.c (notice_signals): Remove.
7183 (procfs_resume): Do not call notice_signals.
7184 (procfs_notice_signals): Remove.
7185 (procfs_pass_signals): New function.
7186 (init_procfs_ops): Install to_pass_signals callback instead of
7187 to_notice_signals callback.
7188 (_initialize_procfs): Report all signals initially.
7190 * procfs.c (procfs_notice_signals): Remove.
7191 (procfs_pass_signals): New function.
7192 (procfs_target): Install to_pass_signals callback instead of
7193 to_notice_signals callback.
7194 (register_gdb_signals): Remove.
7195 (procfs_debug_inferior): Report all signals initially.
7196 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7198 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7199 parameters; use them instead of calling signal_..._state routines.
7200 (remote_notice_signals): Remove.
7201 (remote_start_remote): Report all signals initially.
7202 (remote_resume): Do not call remote_pass_signals.
7203 (_initialize_remote): Install to_pass_signals callback instead of
7204 to_notice_signals callback.
7206 2011-04-27 Pedro Alves <pedro@codesourcery.com>
7208 * breakpoint.c (user_settable_breakpoint): Delete.
7209 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7210 (delete_command): Check user_breakpoint_p instead of looking at
7211 the breakpoint's type.
7212 (disable_command): Ditto.
7213 (enable_command): Ditto.
7214 (delete_trace_command): Use user_breakpoint_p instead of looking
7215 at the breakpoint number directly. When checking if there are
7216 user visible tracepoints, in order to know whether to ask the user
7217 for confirmation, check whether the breakpoint is actually a
7220 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7222 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7225 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7227 MI breakpoint notifications.
7229 * annotate.c (breakpoint_changed): Adjust parameter type.
7230 * breakpoint.c (set_breakpoint_condition): Adjust to change
7231 in breakpoint_modified type.
7232 (breakpoint_set_commands): Likewise.
7233 (do_map_commands_command): Likewise.
7234 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7235 changed after bumping hit count.
7236 (bpstat_stop_status): Likewise.
7237 (print_one_breakpoint_location): Don't wrap in tuple here.
7238 (print_one_breakpoint): Always print individual locations.
7239 For locations, use unnamed tuple.
7240 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7242 (create_catchpoint, create_syscall_event_catchpoint): Call
7243 breakpoint_created obsever.
7244 (mention): Don't call breakpoint_created observer.
7245 (create_breakpoint_sal): Call breakpoint_created observer.
7246 (create_breakpoint, watch_command_1): Likewise.
7247 (create_ada_exception_breakpoint): Likewise.
7248 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7249 (locations_are_equal): New.
7250 (update_breakpoint_locations): If locations were changed, notify.
7251 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7252 Call breakpoint_modified observer.
7254 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7255 (mi_cmd_break_insert): Don't set observers for modify and delete.
7256 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7257 (mi_breakpoint_created, mi_breakpoint_deleted)
7258 (mi_breakpoint_modified): New.
7259 (mi_interpreter_init): Hook the above.
7260 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7261 while -break-* commands are executing.
7262 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7263 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7265 (mi_ui_out_impl): Hook in mi_redirect.
7266 (mi_field_skip): True to the name, skip the field, don't output
7267 a field with an empty value.
7269 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7270 (gdbpy_breakpoint_deleted): Adjust.
7271 * tui/tui-hooks.c (tui_event_create_breakpoint)
7272 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7274 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7276 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7277 (procfs_remove_hw_watchpoint): Likewise.
7279 2011-04-26 Michael Walle <michael@walle.cc>
7281 * remote.c (remote_start_remote): Ack packet after sending the
7284 2011-04-26 Yao Qi <yao@codesourcery.com>
7286 * linux-nat.c: Move common macros to ...
7287 Include linux-ptrace.h.
7288 * common/linux-ptrace.h: ... here. New.
7290 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7292 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7293 !objfile_has_partial_symbols. New comment.
7294 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7295 SYM_READ_PSYMBOLS is not present. Extend the comment.
7296 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7298 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7300 * defs.h (ENUM_BITFIELD): Remove.
7302 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7303 Eli Zaretskii <eliz@gnu.org>
7305 * NEWS: Document the new gdbserver --once option.
7307 2011-04-21 Jie Zhang <jzhang918@gmail.com>
7309 * MAINTAINERS: Update my email address.
7311 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7313 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7314 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7315 function call if __STDC_ISO_10646__ macro is defined.
7316 (intermediate_encoding): New prototype.
7317 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7318 to generate compile time error for unsupported gdb_wchar_t size.
7319 (ENDIAN_SUFFIX): New macro.
7320 (intermediate_encoding): New function.
7322 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7324 * ada-lang.c (struct add_partial_datum): Update the comment for
7325 expand_partial_symbol_name.
7326 (ada_add_partial_symbol_completions): Rename to ...
7327 (ada_expand_partial_symbol_name): ... here, change return type, update
7328 function comment, call symbol_completion_match instead of
7329 symbol_completion_add.
7330 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7331 and ada_expand_partial_symbol_name.
7332 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7334 (dw2_map_symbol_names): Remove.
7335 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7336 * psymtab.c (map_symbol_names_psymtab): Remove.
7337 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7338 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7340 (psym_functions): Unlist map_symbol_names_psymtab.
7341 (map_partial_symbol_names): Rename to ...
7342 (expand_partial_symbol_names): ... here, change the FUN type, call
7343 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7344 * psymtab.h (map_partial_symbol_names): Rename to ...
7345 (expand_partial_symbol_names): ... here, change the FUN type.
7346 * symfile.h (struct quick_symbol_functions): Update the description of
7347 expand_symtabs_matching. Remove map_symbol_names.
7348 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7349 (struct add_name_data): Update the comment for
7350 expand_partial_symbol_name.
7351 (add_partial_symbol_name): Rename to ...
7352 (expand_partial_symbol_name): ... here. Replace
7353 completion_list_add_name call by strncmp.
7354 (default_make_symbol_completion_list_break_on): Use now
7355 expand_partial_symbol_names and expand_partial_symbol_name.
7356 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7358 2011-04-20 Tom Tromey <tromey@redhat.com>
7360 * dwarf2read.c (save_gdb_index_command): Replace format
7361 documentation with a pointer to the manual.
7363 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7365 * regcache.c: Include remote.h.
7366 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7367 (regcache_dump): Handle regcache_dump_remote.
7368 (maintenance_print_remote_registers): New function.
7369 (_initialize_regcache): Install "maint print remote-registers"
7371 * remote.c (map_regcache_remote_table): New function, factored out
7373 (init_remote_state): ... here.
7374 (remote_register_number_and_offset): New.
7375 * remote.h (remote_register_number_and_offset): Declare.
7377 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7379 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7380 null_ptid, assume and allow a NULL address space, instead of
7381 asking the target for the ptid's address space.
7382 * infrun.c (ptid_is_pid): Remove assertion.
7384 2011-04-19 Tom Tromey <tromey@redhat.com>
7386 * windows-tdep.c (windows_xfer_shared_library):
7387 * windows-nat.c (get_module_name, windows_make_so):
7388 * v850-tdep.c (v850_handle_pushm):
7389 * utils.c (null_cleanup, gdb_realpath):
7390 * ui-out.c (get_next_header):
7391 * tracepoint.c (clear_traceframe_info):
7392 * symtab.c (lookup_symtab):
7393 * serial.h (struct serial_ops):
7394 * mipsread.c (read_alphacoff_dynamic_symtab):
7395 * infcmd.c (print_return_value):
7396 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7397 * f-exp.y (parse_number):
7398 * exceptions.c (catch_exceptions):
7399 * dummy-frame.c (dummy_frame_this_id):
7400 * defs.h (struct cleanup):
7401 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7402 * arm-tdep.c (arm_push_dummy_call):
7403 * amd64-tdep.h (amd64_collect_xsave):
7404 * amd64-tdep.c (amd64_collect_xsave):
7405 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7406 * README (typing): Remove duplicate words.
7407 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7408 * infrun.c (siginfo_value_read): Fix typo.
7409 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7410 * top.c (source_line_number): Add comma.
7412 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7414 * thread.c (any_live_thread_of_process): Prioritize threads
7415 that are not executing.
7416 * gdbthread.h (any_live_thread_of_process): Update comment
7417 as per above change.
7419 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7421 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7422 (scan_xcoff_symtab): Likewise.
7424 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7426 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7429 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7430 Pedro Alves <pedro@codesourcery.com>
7432 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7433 variables to simplify code and avoid == operator at end of
7434 line as this is against GNU coding standards.
7436 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7438 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7439 lm_name to name_lm to avoid conflict with lm_name function.
7441 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7443 ARI fixes: Use only lowercase function name for static functions.
7444 * nto-tdep.c (LM_ADDR): Rename to...
7445 (lm_addr): New function name.
7446 (nto_relocate_section_addresses): Adapt to change above.
7447 * solib-sunos.c (LM_ADDR): Rename to...
7448 (lm_addr): New function name.
7449 (LM_NEXT): Rename to...
7450 (lm_next): New function name.
7451 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7452 function name changes above.
7453 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7454 (lm_addr_from_link_map): New function name.
7455 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7456 (has_lm_dynamic_from_link_map): New function name.
7457 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7458 (lm_dynamic_from_link_map): New function name.
7459 (LM_ADDR_CHECK): Rename to...
7460 (lm_addr_check): New function name.
7461 (LM_NEXT): Rename to...
7462 (lm_next): New function name.
7463 (LM_PREV): Rename to...
7464 (lm_prev): New function name.
7465 (LM_NAME): Rename to...
7466 (lm_name): New function name.
7467 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7468 (ignore_first_link_map_entry): New function name.
7469 (svr4_keep_data_in_core): Adapt to function name changes above.
7470 (svr4_current_sos): Likewise.
7471 (enable_break): Likewise.
7472 (svr4_relocate_section_addresses): Likewise.
7474 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7477 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7478 sprintf. Simplify code and avoid loosing memory.
7479 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7480 (call0_frame_cache): Remove && operator from end of line.
7482 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7484 Fix libraries displacement if they change whether they were prelinked.
7485 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7486 does not match. Comment why.
7488 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7490 * corelow.c: Include wrapper.h.
7491 (core_open): Call now gdb_target_find_new_threads.
7492 * wrapper.c: Include target.h.
7493 (gdb_target_find_new_threads): New.
7494 * wrapper.h (gdb_target_find_new_threads): New declaration.
7496 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7498 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7499 even if !TARGET_HAS_EXECUTION.
7501 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7503 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7504 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7505 bfd_get_synthetic_symtab.
7506 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7507 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7508 parameter parent, remove the call to add_separate_debug_objfile.
7509 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7510 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7511 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7512 parent, new comment for it, call add_separate_debug_objfile for it.
7513 (symbol_file_add_separate): Pass objfile as the parameter parent,
7514 remove the call to add_separate_debug_objfile.
7515 (symbol_file_add_from_bfd): New parameter parent, pass it.
7516 (symbol_file_add): Pass NULL to the new parameter parent.
7517 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7519 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7521 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7524 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7526 Fix Python access to inlined frames.
7527 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7528 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7530 2011-04-15 Tom Tromey <tromey@redhat.com>
7532 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7534 2011-04-15 Gary Benson <gbenson@redhat.com>
7536 * MAINTAINERS: Add myself to write-after-approval section.
7538 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7540 * remote-sim.c (sim_command_completer): New function.
7541 (_initialize_remote_sim): Set completer to sim_command_completer.
7543 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7545 * breakpoint.c (print_exception_catchpoint): Rename to ...
7546 (print_it_exception_catchpoint): ... this.
7547 (gnu_v3_exception_catchpoint_ops): Update with new name
7548 for print_it_exception_catchpoint.
7550 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7552 * MAINTAINERS: Add myself for write after approval privileges.
7554 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7556 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7558 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7560 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7562 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7564 * breakpoint.c (save_breakpoints): Verify whether
7565 breakpoint_ops.print_recreate is defined before calling it.
7567 2011-04-11 Gary Benson <gbenson@redhat.com>
7569 Fix failure with --enable-maintainer-mode.
7570 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7572 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7575 * symtab.c (search_symbols): Reorder the KIND description in the
7576 function comment. Remove the unused 4th element of types, types2,
7577 types3 and types4. New gdb_assert on KIND.
7578 (symtab_symbol_info): Remove the unused 4th element of classnames.
7579 New gdb_assert on KIND.
7580 * symtab.h (enum search_domain): New warning in the enum comment.
7581 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7584 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7586 Fix crash of gdb save-index on a STABS file.
7587 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7590 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7592 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7593 * dwarf2read.c: Include ctype.h.
7594 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7596 (dwarf2_add_field): Fix new_field->accessibility by calling
7597 dwarf2_default_access_attribute. Restructure setting accessibility
7599 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7600 is_private and is_protected by calling
7601 dwarf2_default_access_attribute.
7603 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7605 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7606 to the initialization.
7608 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7610 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7613 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7615 Remove support for old Cygwin 1.5 versions.
7616 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7617 function on old Cygwin version.
7618 * windows-nat.c: Remove cygwin version check and always define
7619 __USEWIDE for Cygwin compilation.
7621 2011-04-07 Yao Qi <yao@codesourcery.com>
7623 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7625 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7626 (arm_copy_svc): Remove parameters INSN and TO.
7627 (decode_svc_copro): Update caller.
7628 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7629 from function pointer `copy_svc_os'.
7631 2011-04-07 Yao Qi <yao@codesourcery.com>
7633 * arm-tdep.c (cleanup_branch): Set a correct return address in
7634 LR for ARM and Thumb.
7636 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7639 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7640 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7641 in the function comment, a new note on values compatibility.
7642 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7643 * symtab.h (SYMBOL_HASH_NEXT): New.
7645 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7647 * ppc-linux-nat.c (check_condition): Add len output parameter.
7648 Set it based on the memory region referenced in the condition
7649 expression. Update all callers.
7651 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7653 Fix crash regression on systems featuring .gdb_index.
7654 * objfiles.c (free_objfile): Move the
7655 forget_cached_source_info_for_objfile call earlier. Comment it.
7656 Extend the comment for objfile_free_data.
7658 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7660 Fix regression of displaying the debug format.
7661 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7664 2011-04-04 Tom Tromey <tromey@redhat.com>
7666 * cli/cli-interp.c (struct captured_execute_command_args):
7668 (do_captured_execute_command): Remove.
7669 (safe_execute_command): Use TRY_CATCH.
7670 * cli/cli-script.c (struct wrapped_read_command_file_args):
7672 (wrapped_read_command_file): Remove.
7673 (script_from_file): Use TRY_CATCH.
7674 * exceptions.c (catch_exception): Remove.
7675 * exceptions.h (catch_exception): Remove.
7676 (deprecated_throw_reason): Update comment.
7677 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7678 argument to 'context'.
7679 (mi_execute_command): Use TRY_CATCH.
7680 * remote.c (struct start_remote_args): Remove.
7681 (remote_start_remote): Update; change arguments.
7682 (remote_open_1): Use TRY_CATCH.
7684 2011-04-04 Tom Tromey <tromey@redhat.com>
7686 * tracepoint.c (scope_info): Update.
7687 * symtab.c (decode_line_spec): Update.
7688 * python/python.c (gdbpy_decode_line): Update.
7689 * linespec.h (decode_line_1): Update.
7690 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7691 (decode_compound, find_method, symtab_from_filename)
7692 (decode_variable): Likewise.
7693 * cli/cli-cmds.c (edit_command): Update.
7694 (list_command): Update.
7695 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7697 (create_breakpoint): Update.
7698 (until_break_command): Update.
7699 (addr_string_to_sals): Update.
7700 (decode_line_spec_1): Update.
7702 2011-04-04 Tom Tromey <tromey@redhat.com>
7704 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7705 (do_captured_parse_breakpoint): Remove.
7706 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7707 Use TRY_CATCH directly.
7709 2011-04-04 Tom Tromey <tromey@redhat.com>
7711 * symtab.h (free_symtab): Remove.
7712 (forget_cached_source_info_for_objfile): Declare.
7713 * symmisc.c (free_symtab): Remove.
7714 * source.c (forget_cached_source_info_for_objfile): New function.
7715 (forget_cached_source_info): Use it.
7716 * objfiles.c (free_objfile): Simplify check before calling
7717 clear_current_source_symtab_and_line. Call
7718 forget_cached_source_info_for_objfile.
7720 2011-04-04 Tom Tromey <tromey@redhat.com>
7722 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7723 (new_symtab): Don't set `free_code' on symtab.
7724 (new_linetable): Properly handle size==0.
7725 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7726 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7728 * jv-lang.c (struct jv_per_objfile_data): New.
7729 (jv_per_objfile_free): Free the data.
7730 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7731 (get_java_class_symtab): Set the `dict' field on the
7732 jv_per_objfile_data.
7733 (free_class_block): Remove.
7734 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7737 2011-04-04 Tom Tromey <tromey@redhat.com>
7739 * symfile.c (reread_symbols): Update.
7740 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7742 * objfiles.c (allocate_objfile): Update.
7743 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7745 * cp-namespace.c (lookup_symbol_file): Don't call
7746 lookup_possible_namespace_symbol.
7747 (initialize_namespace_symtab, get_possible_namespace_block)
7748 (free_namespace_block, cp_check_possible_namespace_symbols)
7749 (check_possible_namespace_symbols_loop)
7750 (check_one_possible_namespace_symbol)
7751 (lookup_possible_namespace_symbol): Remove.
7752 (maintenance_cplus_namespace): Replace with notice.
7753 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7755 2011-04-04 Tom Tromey <tromey@redhat.com>
7757 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7758 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7759 * symmisc.c (free_symtab): Don't free debugformat.
7760 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7761 (record_debugformat, record_producer): Document.
7762 * buildsym.c (end_symtab): Don't save debugformat and producer
7764 (end_symtab): Don't free debugformat and producer fields.
7765 (record_debugformat): Don't call xstrdup.
7766 (record_producer): Likewise.
7768 2011-04-04 Tom Tromey <tromey@redhat.com>
7770 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7771 (source_line_charpos, source_charpos_line): Remove.
7773 2011-04-04 Tom Tromey <tromey@redhat.com>
7775 * symtab.h (domain_enum): Split in two...
7776 (enum search_domain): New.
7777 (search_symbols): Update.
7778 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7779 redundant declarations.
7780 (search_symbols): Change 'kind' argument to search_domain.
7782 (print_symbol_info): Likewise.
7783 (symtab_symbol_info): Likewise.
7784 * symfile.h (struct quick_symbol_functions)
7785 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7786 <expand_symtabs_matching>: Likewise.
7787 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7788 (expand_symtabs_matching_via_partial): Update.
7789 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7790 (dw2_expand_symtabs_for_function): Update.
7791 * block.h: Moved anonymous enum...
7792 * defs.h (enum block_enum): ... here. Now named.
7794 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7796 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7797 * version.in: Bump version to 7.3.50.20110403-cvs.
7799 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7801 * NEWS: Create a new section for the next release branch.
7802 Rename the section of the current branch, now that it has
7805 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7807 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7808 for "fpscr" in target description.
7810 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7812 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7813 initialize it. Delay HASH initialization. Strip the part after open
7814 parenthesis for languages with qualifiers. Call do_cleanups.
7816 2011-04-01 Tom Tromey <tromey@redhat.com>
7818 * utils.c (report_command_stats): Don't print `-' for negative
7821 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7823 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7824 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7827 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7829 * breakpoint.h (bpdisp_text): Add declaration.
7830 * breakpoint.c (bpdisp_text): Make non-static.
7831 * ada-lang.c: #include "mi/mi-common.h".
7832 (print_it_exception): Rewrite to improve GDB/MI output.
7834 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7836 * arm-tdep.h (struct address_space): Add forward declaration.
7838 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7840 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7841 * arm-tdep.c (arm_override_mode): New global.
7842 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7843 execution mode heuristics.
7844 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7845 second single-step breakpoint if needed, using
7846 arm_insert_single_step_breakpoint.
7847 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7848 ARM execution mode, do not call thumb_get_next_pc_raw.
7849 (arm_get_next_pc): Encode execution mode in return value. Call
7850 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7851 (arm_insert_single_step_breakpoint): New function.
7852 (arm_software_single_step): Call it.
7853 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7854 argument to return execution mode of sigreturn target.
7855 (arm_linux_syscall_next_pc): Use it.
7856 (arm_linux_copy_svc): Update call.
7857 (arm_linux_software_single_step): Call
7858 arm_insert_single_step_breakpoint.
7860 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7862 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7865 2011-03-31 Tom Tromey <tromey@redhat.com>
7867 * varobj.c (update_dynamic_varobj_children): Properly handle
7868 errors from iterator.
7870 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7872 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7873 struct linkage name twice.
7875 2011-03-31 Tom Tromey <tromey@redhat.com>
7877 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7878 missing ">" to message.
7880 2011-03-31 Tom Tromey <tromey@redhat.com>
7882 * varobj.c (instantiate_pretty_printer): Remove duplicate
7885 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7887 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7888 if neither saved value nor register available (e.g. signal frame).
7890 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7892 * macroexp.c (expand): Avoid uninitialized variable
7895 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7897 * breakpoint.c (break_range_command): Fix typo in comment.
7899 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7900 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7902 Implement support for PowerPC BookE ranged breakpoints.
7903 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7904 * breakpoint.h (struct bp_target_info) <length>: New member
7906 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7907 instead of struct breakpoint as argument, and also add ASPACE
7908 and BP_ADDR arguments. Update all callers.
7909 (struct breakpoint_ops) <print_one_detail>: New method.
7910 (struct breakpoint) <addr_string_range_end>: New member variable.
7911 * breakpoint.c (breakpoint_location_address_match): Add function
7913 (insert_bp_location): Set bl->target_info.length.
7914 (breakpoint_here_p): Call breakpoint_location_address_match.
7915 (moribund_breakpoint_here_p): Likewise.
7916 (regular_breakpoint_inserted_here_p): Likewise.
7917 (breakpoint_thread_match): Likewise.
7918 (bpstat_stop_status): Likewise.
7919 (bpstat_check_location): Move call to
7920 breakpoint_ops.breakpoint_hit to the top.
7921 (print_one_breakpoint_location): Call
7922 breakpoint_ops.print_one_detail if available.
7923 (breakpoint_address_match_range): New function.
7924 (breakpoint_location_address_match): Likewise.
7925 (breakpoint_locations_match): Compare the length field of the
7927 (hw_breakpoint_used_count): Count resources used by all locations
7928 in a breakpoint, and use breakpoint_ops.resources_needed if
7930 (breakpoint_hit_ranged_breakpoint): New function.
7931 (resources_needed_ranged_breakpoint): Likewise.
7932 (print_it_ranged_breakpoint): Likewise.
7933 (print_one_ranged_breakpoint): Likewise.
7934 (print_one_detail_ranged_breakpoint): Likewise.
7935 (print_mention_ranged_breakpoint): Likewise.
7936 (print_recreate_ranged_breakpoint): Likewise.
7937 (ranged_breakpoint_ops): New structure.
7938 (find_breakpoint_range_end): New function.
7939 (break_range_command): Likewise.
7940 (delete_breakpoint): Free addr_string_range_end.
7941 (update_breakpoint_locations): Add SALS_END argument. Update
7942 all callers. Calculate breakpoint length if a non-zero SALS_END
7943 is given. Call breakpoint_locations_match instead of
7944 breakpoint_address_match.
7945 (reset_breakpoint): Find SaL of the end of the range if B is a
7947 (_initialize_breakpoint): Register break-range command.
7948 * defs.h (print_core_address): Add function prototype.
7949 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7951 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7952 (ppc_linux_remove_hw_breakpoint): Likewise.
7953 (_initialize_ppc_linux_nat): Initialize
7954 to_ranged_break_num_registers.
7955 * target.c (update_current_target): Add comment about
7956 to_ranged_break_num_registers.
7957 (target_ranged_break_num_registers): New function.
7958 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7960 (target_ranged_break_num_registers): Add function prototype.
7961 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7962 * utils.c (print_core_address): ... here.
7964 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7966 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7967 variable compiler warning.
7969 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7971 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7973 (re_set_breakpoint): ... to here ...
7974 (addr_string_to_sals): ... and here.
7976 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7978 * Makefile.in (SFILES): Add missing C sources.
7979 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7980 Add missing headers.
7982 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7984 * .gitignore: New file.
7986 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7988 * NEWS: Mention new cfi device simulation.
7990 2011-03-29 Tom Tromey <tromey@redhat.com>
7992 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7993 otherwise anonymous types.
7994 (dwarf2_name): Likewise.
7995 * valops.c (value_struct_elt_for_reference): Refine artificial
7996 type logic. Call error if j==-1.
7998 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
8000 Fix false GCC warning.
8001 * infcall.c (find_function_addr): Initialize funaddr.
8003 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
8005 Fix mingw compilation with --enable-targets=all.
8006 * remote-mips.c (gdb_usleep.h): Include header.
8007 (mips_enter_debug): Use gdb_usleep instead of sleep.
8009 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8011 Support resolution of STT_GNU_IFUNC via breakpoints.
8012 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
8013 bp_gnu_ifunc_resolver_return.
8014 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
8015 the loop. Support bp_gnu_ifunc_resolver and
8016 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
8017 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
8019 (bptype_string, print_one_breakpoint_location): Support
8020 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
8021 (user_settable_breakpoint): Return true also for
8022 bp_gnu_ifunc_resolver.
8023 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
8024 bp_gnu_ifunc_resolver_return.
8025 (set_breakpoint_location_function): New parameter explicit_loc,
8026 describe it. Call find_pc_partial_function_gnu_ifunc with new
8027 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
8028 EXPLICIT_LOC is not set.
8029 (set_raw_breakpoint): Set EXPLICIT_LOC for
8030 set_breakpoint_location_function.
8031 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
8032 set_breakpoint_location_function.
8033 (mention): Support bp_gnu_ifunc_resolver and
8034 bp_gnu_ifunc_resolver_return.
8035 (add_location_to_breakpoint): Set EXPLICIT_LOC for
8036 set_breakpoint_location_function.
8037 (update_breakpoint_locations): Remove static.
8038 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
8039 bp_gnu_ifunc_resolver_return.
8040 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
8041 bp_gnu_ifunc_resolver_return.
8042 (update_breakpoint_locations): New declaration.
8043 * elfread.c: Include gdbthread.h and regcache.h.
8044 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8046 (elf_gnu_ifunc_fns): Install them.
8047 * minsyms.c (stub_gnu_ifunc_resolver_stop)
8048 (stub_gnu_ifunc_resolver_return_stop): New functions.
8049 (stub_gnu_ifunc_fns): Install them.
8050 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8051 and gnu_ifunc_resolver_return_stop.
8052 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8054 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8056 STT_GNU_IFUNC reader implementation.
8057 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8058 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8059 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8060 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8061 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8062 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8063 (elf_gnu_ifunc_resolve_addr): New.
8064 (elf_symfile_read): Call elf_rel_plt_read.
8065 (elf_gnu_ifunc_fns): New.
8066 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8067 Install elf_gnu_ifunc_fns.
8068 * infcall.c (find_function_return_type): New function.
8069 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8070 * minsyms.c (stub_gnu_ifunc_resolve_addr)
8071 (stub_gnu_ifunc_resolve_name): New functions.
8072 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8073 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8074 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8076 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8078 Code cleanup for later STT_GNU_IFUNC support.
8079 * infcall.c (find_function_addr): Remove variable code, use explicit
8080 dereferences for it. Move VALUE_TYPE initialization later.
8082 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8084 GDB find_pc_partial_function support for STT_GNU_IFUNC.
8085 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8086 (clear_pc_function_cache): Clear it.
8087 (find_pc_partial_function): Rename to ...
8088 (find_pc_partial_function_gnu_ifunc): ... this function. New
8089 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
8090 (find_pc_partial_function): New wrapper for this function.
8091 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8093 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8095 GDB internal type support for STT_GNU_IFUNC.
8096 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8097 (elf_symtab_read): Set mst_text_gnu_ifunc for
8098 BSF_GNU_INDIRECT_FUNCTION.
8099 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8100 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8101 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8102 nodebug_got_plt_symbol.
8103 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8104 (TYPE_GNU_IFUNC): New.
8105 (struct main_type): New field flag_gnu_ifunc.
8106 (struct builtin_type): New field builtin_func_func.
8107 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8108 nodebug_got_plt_symbol.
8109 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8110 (in_gnu_ifunc_stub): New.
8111 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8113 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
8114 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
8115 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8117 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8118 * symtab.c (search_symbols): Likewise.
8119 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8120 and mst_slot_got_plt.
8121 (in_gnu_ifunc_stub): New declaration.
8123 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8125 Support a ring of related breakpoints.
8126 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8127 other functions, add gdb_assert.
8128 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8129 watchpoint_del_at_next_stop.
8130 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8131 (bpstat_stop_status): Handle ring in related_breakpoint.
8132 (set_raw_breakpoint_without_location): Initialize ring in
8134 (delete_breakpoint): Handle ring in related_breakpoint, use
8135 watchpoint_del_at_next_stop.
8136 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8138 2011-03-28 Tom Tromey <tromey@redhat.com>
8141 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8142 with `language_minimal'.
8144 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8146 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8147 instead of checking for STT_ARM_TFUNC symbol type.
8149 2011-03-25 Tom Tromey <tromey@redhat.com>
8151 * linespec.c (symbol_found): Restore line-based result for
8152 non-LOC_LABEL symbols.
8154 2011-03-25 Kai Tietz <ktietz@redhat.com>
8156 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8157 instead of strcmp for comparison.
8158 (tui_source_is_displayed): Likewise.
8159 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8161 2011-03-24 Mark Wielaard <mjw@redhat.com>
8163 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8165 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8166 (find_partial_die_in_comp_unit): Likewise in comment.
8167 (read_attribute_value): Likewise.
8168 (lookup_die_type): Likewise.
8169 (dwarf_form_name): Likewise.
8170 (dump_die_shallow): Likewise.
8171 (follow_die_ref_or_sig): Likewise.
8173 2011-03-24 Tom Tromey <tromey@redhat.com>
8175 PR breakpoints/11816:
8176 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8177 (decode_compound): Update.
8178 (find_function_symbol): New function.
8179 (decode_dollar): Update.
8180 (decode_label): Add 'function_symbol' parameter. Handle
8181 function-relative labels.
8182 (decode_variable): Update.
8183 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8184 not its line. Set `special_display' and canonical name for
8187 2011-03-24 Tom Tromey <tromey@redhat.com>
8189 * linespec.h (struct linespec_result) <special_display>: New
8191 * breakpoint.h (struct breakpoint) <display_canonical>: New
8193 * breakpoint.c (print_breakpoint_location): Respect
8195 (create_breakpoint_sal): Add 'display_canonical' parameter.
8196 (create_breakpoints_sal): Update.
8197 (create_breakpoint): Update.
8199 2011-03-24 Tom Tromey <tromey@redhat.com>
8201 * symtab.c (decode_line_spec): Update.
8202 * linespec.c (build_canonical_line_spec): Change type of
8204 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8205 (find_method, decode_all_digits, decode_dollar, decode_label)
8206 (symbol_found): Likewise.
8207 (init_linespec_result): New function.
8208 * breakpoint.c (struct captured_parse_breakpoint_args)
8209 <canonical_p>: New field, replaces addr_string_p.
8210 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8212 (parse_breakpoint_sals): Likewise.
8213 (do_captured_parse_breakpoint): Update.
8214 (create_breakpoint): Use struct linespec_result.
8215 (until_break_command): Update.
8216 (breakpoint_re_set_one): Update.
8217 (decode_line_spec_1): Update.
8218 * linespec.h (struct linespec_result): New.
8219 (init_linespec_result): Declare.
8221 2011-03-23 Pedro Alves <pedro@codesourcery.com>
8223 * regcache.c (regcache_raw_read): If the target didn't supply a
8224 given raw register, mark it as unavailable.
8226 2011-03-23 Kai Tietz <ktietz@redhat.com>
8228 * breakpoint.c (clear_command): Use filename_cmp
8229 instead of strcmp for comparison.
8230 * buildsym.c (watch_main_source_file_lossage): Likewise.
8231 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8232 checking just for slash.
8233 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8234 strrchr and filename_cmp instead of strcmp for filenames.
8235 (add_old_header_file): Use filename_cmp
8236 instead of strcmp for comparison.
8237 * exec.c (exec_set_section_address): Likewise.
8238 * macrotab.c (macro_lookup_inclusion): Likewise.
8239 (macro_lookup_inclusion): Likewise.
8240 * elfread.c (_initialize_elfread): Likewise.
8241 (elfstab_offset_sections): Likewise.
8242 (elfstab_offset_sections): Use lbasename instead of
8244 * mdebugread.c (parse_partial_symbols): Likewise.
8245 (arse_partial_symbols): Use filename_(n)cmp instead of
8246 str(n)cmp for comparison.
8247 * minsyms.c (lookup_minimal_symbol): Likewise.
8248 * psymtab.c (read_psymtabs_with_filename): Likewise.
8249 * solib.c (solib_read_symbols): Likewise.
8250 (reload_shared_libraries_1): Likewise.
8251 * symmisc.c (maintenance_print_symbols): Likewise.
8252 * symfile.c (separate_debug_file_exists): Likewise.
8253 (reread_symbols): Likewise.
8254 (find_separate_debug_file_by_debuglink): Likewise.
8255 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8256 * source.c (add_path): Likewise.
8257 * symtab.c (filename_seen): Likewise.
8258 (file_matches): Likewise.
8259 (print_symbol_info): Likewise.
8260 (maybe_add_partial_symtab_filename): Likewise.
8261 (make_source_files_completion_list): Likewise.
8262 * xml-syscall.c (init_sysinfo): Likewise.
8263 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8264 IS_DIR_SEPARATOR for checking for trailing path separator.
8266 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8268 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8269 label abort_expression.
8270 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8271 DWARF_VALUE_OPTIMIZED_OUT.
8273 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8276 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8277 to linkage_name. Invert its value. Update the function comment.
8278 (c_type_print_varspec_suffix): Invert it at the caller.
8279 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8281 2011-03-22 Pedro Alves <pedro@codesourcery.com>
8283 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8284 errors when reading the `stop_pc'.
8285 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8288 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8290 * NEWS: Document gdb.Write stream keyword.
8292 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8295 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8296 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8297 (dwarf2_add_field): Fix new_field->accessibility for
8298 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8300 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8304 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8305 other error classes. Do not print stack trace.
8307 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8309 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8310 (dwarf2_add_field): Fix new_field->accessibility for
8311 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8313 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8315 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8316 encountering a load via a non-SP register.
8318 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8320 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8321 field in returned unwinder.
8323 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8325 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8327 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8329 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8332 2012-03-18 Pedro Alves <pedro@codesourcery.com>
8334 * frame.c (frame_unwind_register): Throw an error if unwinding the
8336 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8337 an unwind stop reason.
8338 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8339 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8340 UNWIND_UNAVAILABLE>: New.
8341 * inline-frame.c (inline_frame_unwind): Install
8342 default_frame_unwind_stop_reason.
8343 * frame-unwind.c: Include "exceptions.h".
8344 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8345 (default_frame_unwind_stop_reason): New.
8346 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8347 (default_frame_unwind_stop_reason): Declare.
8348 (struct frame_unwind) <stop_reason>: New function pointer.
8350 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8351 * dwarf2-frame.c: Include exceptions.h.
8352 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8353 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8354 computing the CFA. If such an error was thrown, set
8355 unavailable_retaddr.
8356 (dwarf2_frame_unwind_stop_reason): New.
8357 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8359 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8360 (dwarf2_signal_frame_unwind): Ditto.
8362 * amd64-tdep.c: Include "exceptions.h".
8363 (struct amd64_frame_cache): New field "base_p".
8364 (amd64_init_frame_cache): Clear it.
8365 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8366 Avoid reading registers with functions that throw if the register
8367 is not necessary to compute the frame base.
8368 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8369 swallowing NOT_AVAILABLE_ERROR.
8370 (amd64_frame_unwind_stop_reason): New.
8371 (amd64_frame_this_id): Don't build a frame id if the frame base
8373 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8374 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8375 base_p if the frame base was computable.
8376 (amd64_sigtramp_frame_unwind_stop_reason): New.
8377 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8378 frame base was unavailable.
8379 (amd64_sigtramp_frame_unwind): Install
8380 amd64_sigtramp_frame_unwind_stop_reason.
8381 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8382 base_p if the frame base was computable.
8383 (amd64_epilogue_frame_unwind_stop_reason): New.
8384 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8385 frame base was unavailable.
8386 (amd64_epilogue_frame_unwind): Install
8387 amd64_epilogue_frame_unwind_stop_reason.
8388 * i386-tdep.c: Include "exceptions.h".
8389 (struct i386_frame_cache): New field "base_p".
8390 (i386_init_frame_cache): Clear it.
8391 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8392 Avoid reading registers with functions that throw if the register
8393 is not necessary to compute the frame base.
8394 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8395 swallowing NOT_AVAILABLE_ERROR.
8396 (i386_frame_unwind_stop_reason): New.
8397 (i386_frame_this_id): Don't build a frame id if the frame base was
8399 (i386_frame_prev_register): Handle unavailable SP.
8400 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8401 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8402 base_p if the frame base was computable.
8403 (i386_epilogue_frame_unwind_stop_reason): New.
8404 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8405 base was unavailable.
8406 (i386_epilogue_frame_unwind): Install
8407 i386_epilogue_frame_unwind_stop_reason.
8408 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8409 base_p if the frame base was computable.
8410 (i386_sigtramp_frame_unwind_stop_reason): New.
8411 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8412 base was unavailable.
8413 (i386_sigtramp_frame_unwind): Install
8414 i386_sigtramp_frame_unwind_stop_reason.
8415 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8416 type's size, not the register's.
8417 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8419 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8420 default_frame_unwind_stop_reason.
8421 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8422 (alpha_heuristic_frame_unwind): Ditto.
8423 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8424 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8425 * avr-tdep.c (avr_frame_unwind): Ditto.
8426 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8428 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8429 * frv-tdep.c (frv_frame_unwind): Ditto.
8430 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8431 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8432 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8433 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8434 (hppa_stub_frame_unwind): Ditto.
8435 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8436 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8437 (ia64_libunwind_frame_unwind)
8438 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8439 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8440 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8441 * m32c-tdep.c (m32c_unwind): Ditto.
8442 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8443 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8444 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8445 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8446 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8447 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8448 * mep-tdep.c (mep_frame_unwind): Ditto.
8449 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8450 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8451 (mips_stub_frame_unwind): Ditto.
8452 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8453 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8454 * mt-tdep.c (mt_frame_unwind): Ditto.
8455 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8456 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8457 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8458 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8459 (s390_sigtramp_frame_unwind): Ditto.
8460 * score-tdep.c (score_prologue_unwind): Ditto.
8461 * sh-tdep.c (sh_frame_unwind): Ditto.
8462 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8463 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8464 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8465 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8466 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8467 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8468 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8469 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8470 (sparc64obsd_trapframe_unwind): Ditto.
8471 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8472 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8473 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8474 * v850-tdep.c (v850_frame_unwind): Ditto.
8475 * vax-tdep.c (vax_frame_unwind): Ditto.
8476 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8477 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8478 * xtensa-tdep.c (xtensa_unwind): Ditto.
8480 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8482 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8483 there's always a frame. Use get_frame_pc_if_available instead of
8484 get_frame_pc, and if there's no PC available, don't look up a
8487 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8489 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8492 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8494 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8497 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8499 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8500 * frame.c (frame_unwind_caller_pc_if_available): New.
8501 * stack.c (frame_info): Handle unavailable PC.
8503 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8505 * frame.c (frame_unwind_pc): Rename to ...
8506 (frame_unwind_pc_if_available): ... this. New `pc' output
8507 parameter. Change return type to int. Gracefully handle
8508 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8509 happened, or 1 otherwise.
8510 (frame_unwind_pc): Reimplement on top of
8511 frame_unwind_pc_if_available.
8512 (get_frame_func): Rename to ...
8513 (get_frame_func_if_available): New `pc' output parameter. Change
8514 return type to int. Gracefully handle the PC not being available.
8515 (get_frame_func): Reimplement on top of
8516 get_frame_func_if_available.
8517 (select_frame): Handle the PC being unavailable.
8518 (get_prev_frame): Handle the PC being unavailable.
8519 (get_frame_pc_if_available): New.
8520 (get_frame_address_in_block_if_available): New.
8521 (find_frame_sal): Handle the frame PC not being available.
8522 * frame.h (get_frame_pc_if_available): Declare.
8523 (get_frame_address_in_block_if_available): Declare.
8524 (get_frame_func_if_available): Declare.
8525 * stack.c (print_frame_info): Handle the PC being unavailable.
8526 (find_frame_funname): Ditto.
8527 (print_frame): Handle the PC being unavailable.
8528 (get_frame_language): Ditto.
8529 * blockframe.c (get_frame_block): Ditto.
8530 * macroscope.c (default_macro_scope): Ditto.
8531 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8533 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8535 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8536 NOT_AVAILABLE_ERROR when evaluating the location expression.
8538 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8540 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8541 returning that the register piece is unavailable/optimized out.
8542 (write_pieced_value): Handle get_frame_register_bytes returning
8543 that the register piece is unavailable/optimized out when doing a
8544 read-modify write of a bitfield.
8545 * findvar.c (value_from_register): Handle get_frame_register_bytes
8546 returning that the register piece is unavailable/optimized out.
8547 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8548 and `unavailablep'. Throw error on bad debug info. Use
8549 frame_register instead of frame_register_read, to fill in the new
8551 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8553 * valops.c: (value_assign): Adjust, and handle
8554 get_frame_register_bytes failing.
8555 * spu-tdep.c: Include exceptions.h.
8556 (spu_software_single_step): Adjust, and handle
8557 get_frame_register_bytes failing.
8558 (spu_get_longjmp_target): Ditto.
8559 * gdbarch.sh (register_to_value): Change to return int. New
8560 parameters `optimizedp' and `unavailablep'.
8561 * gdbarch.h, gdbarch.c: Regenerate.
8562 * i386-tdep.c (i386_register_to_value): Adjust to new
8563 gdbarch_register_to_value interface.
8564 * i387-tdep.c (i387_register_to_value): Ditto.
8565 * i387-tdep.h (i387_register_to_value): Ditto.
8566 * alpha-tdep.c (alpha_register_to_value): Ditto.
8567 * ia64-tdep.c (ia64_register_to_value): Ditto.
8568 * m68k-tdep.c (m68k_register_to_value): Ditto.
8569 * mips-tdep.c (mips_register_to_value): Ditto.
8570 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8572 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8574 * findvar.c (value_of_register): Mark the value as unavailable, if
8575 the register is unavailable.
8576 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8577 (frame_register): New `unavailablep' parameter.
8578 (frame_register_read): Update comment.
8579 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8580 Set it if the register is unavailable. If the register is
8581 unavailable, clear the output buffer.
8582 (frame_register): New `unavailablep' parameter. Pass it down.
8583 (frame_unwind_register): Adjust.
8584 (put_frame_register): Adjust.
8585 (frame_register_read): Adjust. Also return false if the register
8587 (frame_register_unwind_location): Adjust.
8588 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8589 is unavailable, mark the value accordingly.
8590 * stack.c (frame_info): Handle unavailable registers.
8592 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8594 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8595 simplify, using regcache_cooked_read.
8597 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8599 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8600 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8601 (regcache_raw_read_unsigned, regcache_raw_read_part)
8602 (regcache_cooked_read, regcache_cooked_read_signed)
8603 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8604 (regcache_cooked_read_ftype): Change return to enum
8606 * regcache.c: Include exceptions.h
8607 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8608 (do_cooked_read): Change return to enum register_status. Always
8609 forward to regcache_cooked_read.
8610 (regcache_raw_read): Change return to enum register_status. If
8611 the register is not REG_VALID, memset the buffer. Return the
8613 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8614 return the register's status.
8615 (regcache_raw_read_unsigned): Ditto.
8616 (regcache_cooked_read): Change return to enum register_status.
8617 Assert that with read-only regcaches, the register's status must
8618 be known. If the regcache is read-only, and the register is not
8619 REG_VALID, memset the buffer. Return the register's status.
8620 (regcache_cooked_read_signed): Change return to enum
8621 register_status. Handle non-REG_VALID registers and return the
8623 (regcache_cooked_read_unsigned): Change return to enum
8624 register_status. Handle non-REG_VALID registers and return the
8626 (regcache_xfer_part, regcache_raw_read_part)
8627 (regcache_cooked_read_part): Change return to enum
8628 register_status. Return the register's status.
8629 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8631 (regcache_dump): Handle unavailable cooked registers.
8632 * frame.c (do_frame_register_read): Adjust interface to match
8633 regcache_cooked_read_ftype.
8634 * gdbarch.sh (pseudo_register_read): Change return to enum
8636 * gdbarch.h, gdbarch.c: Regenerate.
8638 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8640 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8641 register_status. If reading a raw register indicates the raw
8642 register is not valid, return the raw register's status,
8643 otherwise, return REG_VALID.
8644 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8645 register_status. Handle non-REG_VALID raw registers and return
8646 the register's status.
8647 * arm-tdep.c (arm_neon_quad_read)
8648 (arm_pseudo_read): Change return to enum register_status. Handle
8649 non-REG_VALID raw registers and return the register's status.
8650 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8651 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8652 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8653 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8654 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8656 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8657 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8658 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8659 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8660 (m32c_pseudo_register_read): Change return to enum
8661 register_status. Adjust.
8662 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8663 enum register_status. Return the register's status.
8664 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8665 register_status. Return the register's status.
8666 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8667 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8668 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8669 * rs6000-tdep.c (move_ev_register_func): New typedef.
8670 (e500_move_ev_register): Use it. Change return to enum
8671 register_status. Return the register's status.
8672 (do_regcache_raw_read): New function.
8673 (do_regcache_raw_write): New function.
8674 (e500_pseudo_register_read): Change return to enum
8675 register_status. Return the register's status. Use
8676 do_regcache_raw_read.
8677 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8678 (dfp_pseudo_register_read): Change return to enum register_status.
8679 Return the register's status.
8680 (vsx_pseudo_register_read): Ditto.
8681 (efpr_pseudo_register_read): Ditto.
8682 (rs6000_pseudo_register_read): Ditto.
8683 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8684 register_status. Return the register's status.
8685 * sh64-tdep.c (pseudo_register_read_portions): New function.
8686 (sh64_pseudo_register_read): Change return to enum
8687 register_status. Use pseudo_register_read_portions. Return the
8689 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8690 register_status. Return the register's status.
8691 * sh-tdep.c (pseudo_register_read_portions): New function.
8692 (sh_pseudo_register_read): Change return to enum register_status.
8693 Use pseudo_register_read_portions. Return the register's status.
8694 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8695 enum register_status. Return the register's status.
8696 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8697 * spu-tdep.c (spu_pseudo_register_read_spu)
8698 (spu_pseudo_register_read): Ditto.
8699 * xtensa-tdep.c (xtensa_register_read_masked)
8700 (xtensa_pseudo_register_read): Ditto.
8701 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8703 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8705 * python/py-value.c (valpy_getitem): Fix formatting of error function
8708 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8710 ARI fixes: Add missing internationalization markups throughout
8712 * darwin-nat-info.c: Ditto.
8715 * mi/mi-main.c: Ditto.
8717 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8719 ARI fixes: Add missing internationalization markups throughout
8722 * cp-name-parser.y: Ditto.
8725 * objc-exp.y: Ditto.
8728 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8730 ARI fixes: Messages should have no trailing new lines.
8731 * darwin-nat.c (mach_check_error): Remove trailing new line from
8732 warning function call message.
8733 * record.c (bfdcore_read): Idem for error call.
8735 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8737 * common/signals.c (target_signal_from_host): Add _ markup to error
8738 function call message.
8739 (target_signal_to_host): Add _ markup and remove trailing new line
8740 from warning call message.
8741 (target_signal_from_command): Add _ markup to error function call
8744 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8748 * python/python.c (gdbpy_write): Accept a stream argument and
8749 operate to the appropriate stream.
8750 (gdbpy_flush): Likewise.
8751 (_initialize_python): Add stream constants.
8752 (finish_python_initialization): Add GdbOutputErrorFile class.
8754 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8756 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8758 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8760 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8761 to store_signed_integer. Add debug message when relocating CALL
8762 instructions. Fix formatting of debug message.
8763 * i386-tdep.c (i386_relocate_instruction): Ditto.
8765 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8767 * target.h (struct target_ops): Remove to_lookup_symbol field.
8768 (target_lookup_symbol): Delete macro.
8769 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8770 (update_current_target, setup_target_debug): Remove handling
8771 of to_lookup_symbol target_ops field.
8772 * ada-tasks.c (get_known_tasks_addr): Remove use of
8773 target_lookup_symbol.
8774 * coffread.c (coff_symtab_read): Likewise.
8775 * dbxread.c (read_dbx_symtab): Ditto.
8777 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8780 * configure.ac: Add getthrds declaration check.
8781 * configure, config.in: Regenerate.
8782 * aix-thread.c (getthrds): Declare only if not already declared
8783 in procinfo.h. More declaration out of get_signaled_thread to
8786 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8788 * python/py-symtab.c: Populate symtab_object_methods,
8790 (stpy_is_valid): New function.
8791 (salpy_is_valid): Ditto.
8792 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8793 (sympy_is_valid): New function.
8794 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8795 (objfpy_is_valid): New function.
8796 * python/py-inferior.c: Populate inferior_object_methods.
8797 (infpy_is_valid): New function.
8798 * python/py-infthread.c: Populate thread_object_methods.
8799 (thpy_is_valid): New function.
8800 * python/py-block.c: Declare block_object_methods. Populate. Declare
8801 block_iterator_object_methods. Populate.
8802 (blpy_is_valid): New function.
8803 (blpy_iter_is_valid): Ditto.
8805 2011-03-16 Keith Seitz <keiths@redhat.com>
8807 * linespec.c (find_methods): Canonicalize NAME before looking
8809 (name_end): New function.
8810 (keep_name_info): New function.
8811 (decode_line_1): Use keep_name_info.
8812 (decode_compound): Likewise.
8813 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8814 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8817 * linespec.c (locate_first_half): Keep overload information, too.
8818 (decode_compound): Use a string to represent break characters
8820 If P points to a break character, do not increment it.
8821 For C++ and Java, keep overload information and relevant keywords.
8822 If we cannot find a symbol, search the minimal symbols.
8825 * linespec.c (decode_compound): Rename SAVED_ARG to
8827 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8829 Pass a valid block to lookup_symbol.
8830 (lookup_prefix_sym): Likewise.
8831 (find_method): Construct search name based on SYM_CLASS instead
8833 * psymtab.c (lookup_partial_symbol): Add language parameter.
8834 (lookup_symbol_aux_psymtabs): Likewise.
8835 Don't assume that the psymtab we found was the right one. Search
8836 for the desired symbol in the symtab to be certain.
8837 (psymtab_search_name): New function.
8838 (lookup_partial_symbol): Use psymtab_search_name.
8839 Add language parameter.
8840 (read_symtabs_for_function): Add language parameter and pass to
8841 lookup_partial_symbol.
8842 (find_symbol_file_from_partial): Likewise.
8844 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8847 * dwarf2read.c (noop_record_line): New function.
8848 (dwarf_decode_lines): Ignore line tables for GCd functions.
8850 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8852 Fix ARI warnings about new lines at the end of messages, which
8853 are unneeded as there is a new line added at the end of the message
8855 * darwin-nat.c (darwin_stop_inferior): Ditto.
8856 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8857 * dfp.c (decimal_to_number): Ditto.
8858 * exec.c (print_section_info): Ditto.
8859 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8860 * osdata.c (get_osdata): Ditto.
8861 * record.c (bfdcore_write): Ditto.
8862 * remote-mips.c (mips_readchar): Ditto.
8863 * remote.c (read_ptid): Ditto.
8864 * ser-mingw.c (ser_windows_raw): Ditto.
8865 * tracepoint.c (add_local_symbols): Ditto.
8866 * windows-nat.c (fake_create_process): Ditto.
8868 2011-03-16 Tom Tromey <tromey@redhat.com>
8870 * tracepoint.c (stop_tracing): Don't declare.
8871 * event-top.c (after_char_processing_hook): Add `(void)'.
8873 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8875 * NEWS: Add Parameter sub-classing description.
8877 2011-03-16 Kai Tietz <ktietz@redhat.com>
8879 * MAINTAINERS: Update my e-mail address.
8881 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8883 * MAINTAINERS: Add myself for write after approval privileges.
8885 2011-03-15 Michael Snyder <msnyder@vmware.com>
8887 * frame.c (find_frame_sal): Assert sym is not null.
8889 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8891 * objc-lang.c (selectors_info): Check strchr for null result.
8893 * stabsread.c (define_symbol): Guard against bad stabstring input.
8895 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8897 Remove trailing spaces and tabulations from pascal language
8902 p-valprint.c: Ditto.
8904 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8906 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8907 than LOW. Comment it.
8908 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8909 HIGHPC not strictly higher than LOWPC.
8911 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8913 Fix formatting of function declarations returning a pointer in
8915 * varobj.c (varobj_add_child): Ditto.
8916 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8917 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8919 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8921 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8922 for the "generic" vector ABI used with GCC 4.3 and later.
8923 (ppc64_sysv_abi_return_value): Likewise.
8925 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8927 * infcall.c (call_function_by_hand): Function return value is
8928 always a non_lval, even when using struct_return.
8930 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8932 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8933 (map_display_numbers): New.
8934 (do_delete_display): New.
8935 (undisplay_command): Use map_display_numbers.
8936 (do_enable_disable_display): New.
8937 (enable_disable_display_command): New function.
8938 (enable_display): Delete.
8939 (enable_display_command): New.
8940 (disable_display_command): Reimplement.
8941 (_initialize_printcmd): Adjust "enable display" command to use
8942 `enable_display_command' as callback.
8944 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8946 * NEWS: Add Python breakpoint 'stop' operation.
8948 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8950 * NEWS: Delete duplicate entry. Fix typo.
8952 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8954 Fix ARI warning about function names in first column.
8955 Put prototype declaration on same line as return type.
8956 * objc-exp.y: Ditto.
8958 * python/py-stopevent.h: Ditto.
8959 For long function names, split parameters to
8960 allow function name on same line as return type.
8961 * solib-pa64.c: Ditto.
8964 For long function declaration, use single line.
8965 * hppa-tdep.h: Ditto.
8966 * inferior.h: Ditto.
8968 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8970 * python/python.h: Declare gdbpy_should_stop and
8971 gdbpy_breakpoint_has_py_cond.
8972 * python/python.c: Add python.h to includes. Remove python.h from
8973 HAVE_PYTHON definition
8974 (gdbpy_should_stop): New dummy function.
8975 (gdbpy_breakpoint_has_py_cond): New dummy function.
8976 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8977 sub-classing capabilities.
8978 (gdbpy_should_stop): New function.
8979 (gdbpy_breakpoint_has_py_cond): New function.
8980 (local_setattro): New function.
8981 * breakpoint.c (condition_command): Add check for Python 'stop'
8983 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8984 operation function as part of stop/continue tests.
8986 2011-03-14 Tom Tromey <tromey@redhat.com>
8989 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8990 (needs_frame_dwarf_call): Likewise.
8992 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8994 Fix ARI warning about functions without parameters that do not
8996 * breakpoint.c (all_tracepoints): Replace () by (void).
8997 * f-exp.y (match_string_literal): Ditto.
8999 * m2-exp.y (yylex): Ditto.
9000 * mep-tdep.c (current_me_module): Ditto.
9001 (current_options): Ditto.
9002 (current_cop_data_bus_width): Ditto.
9003 (current_cr_names): Ditto.
9004 (current_cr_is_float): Ditto.
9005 (current_ccr_names): Ditto.
9006 * objc-exp.y (yylex): Ditto.
9007 * p-exp.y (yylex): Ditto.
9008 * remote.c (send_interrupt_sequence): Ditto.
9009 * tracepoint.c (current_trace_status): Ditto.
9010 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
9011 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
9013 2011-03-11 Michael Snyder <msnyder@vmware.com>
9015 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
9016 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
9017 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
9018 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
9019 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
9021 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
9022 (delete_async_event_handler): Ditto.
9024 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
9026 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
9028 * top.c (set_verbose): Assert showcmd was found.
9030 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
9032 * xtensa-tdep.c (warning_once): Correct style issues.
9034 2011-03-11 Yao Qi <yao@codesourcery.com>
9036 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
9038 2011-03-11 Andreas Schwab <schwab@redhat.com>
9040 * common/aclocal.m4: Remove.
9042 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9044 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9045 (xtensa_write_register, xtensa_read_register): Likewise.
9046 (xtensa_hextochar): Removed.
9047 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9049 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9051 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
9052 (xtensa_call0_frame_cache_t): Update comments. New fields added.
9053 (xtensa_alloc_frame_cache): Add initialization for new fields.
9054 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9055 (warning_once): New function.
9056 (xtensa_insn_kind): New item c0opc_and.
9057 (call0_classify_opcode): Add the case for AND instruction.
9058 (call0_track_op): Change arguments. New local variable litbase.
9059 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
9060 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9062 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
9063 (call0_analyze_prologue): Update the comments. Change arguments.
9064 Add the variety of updates to handle extended prologues, which now can
9065 conduct dynamic stack adjustments.
9066 (call0_frame_cache): Likewise.
9067 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9068 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9070 2011-03-10 Michael Snyder <msnyder@vmware.com>
9072 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9073 (cmd_qtframe): Ditto.
9074 (cmd_qtbuffer): Ditto.
9075 (cmd_bigqtbuffer): Ditto.
9077 2011-03-10 Tom Tromey <tromey@redhat.com>
9079 * tracepoint.c (trace_actions_command): Update.
9080 * thread.c (thread_apply_command): Update.
9081 * reverse.c (delete_bookmark_command): Update.
9082 (bookmarks_info): Update.
9083 * printcmd.c (undisplay_command): Update.
9084 * memattr.c (mem_enable_command): Update.
9085 (mem_disable_command): Update.
9086 (mem_delete_command): Update.
9087 * inferior.c (detach_inferior_command): Update.
9088 (kill_inferior_command): Update.
9089 (remove_inferior_command): Update.
9090 * cli/cli-utils.h (struct get_number_or_range_state): New.
9091 (init_number_or_range): Declare.
9092 (get_number_or_range): Update.
9093 * cli/cli-utils.c (init_number_or_range): New function.
9094 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
9096 (number_is_in_list): Update.
9097 * breakpoint.h (get_tracepoint_by_number): Update.
9098 * breakpoint.c (map_breakpoint_numbers): Update for change to
9099 get_number_or_range.
9100 (find_location_by_number): Use get_number, not
9101 get_number_or_range.
9102 (trace_pass_set_count): New function.
9103 (trace_pass_command): Update for change to get_number_or_range.
9105 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9108 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
9110 * python/py-param.c (add_setshow_generic): Add set/show callback
9111 parameters. Register Python object context.
9112 (get_show_value): New function.
9113 (get_set_value): New function.
9114 (call_doc_function): New function.
9115 (get_doc_string): Move behind get_show_value/get_set_value.
9117 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
9119 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9121 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9123 * xtensa-tdep.c (xtensa_read_register): Add comment.
9124 (xtensa_write_register): Likewise.
9125 (xtensa_hextochar): Add comment and update to match coding conventions.
9126 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9127 (execute_l32e, execute_s32e, execute_code): Update comments.
9128 (xtensa_exception_handler_t): Update to match coding conventions.
9129 (xtensa_insn_kind): Likewise.
9131 2011-03-09 Michael Snyder <msnyder@vmware.com>
9133 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9135 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9137 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9139 2011-03-09 Tom Tromey <tromey@redhat.com>
9141 * thread.c (restore_selected_frame): Handle frame_level == -1.
9142 (make_cleanup_restore_current_thread): Use
9143 get_selected_frame_if_set.
9144 * frame.h (get_selected_frame_if_set): Declare.
9145 * frame.c (get_selected_frame_if_set): New function.
9147 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9149 * cli/cli-cmds.c (shell_escape): Use lbasename.
9150 * coffread.c (coff_start_symtab): Constify parameter.
9151 (complete_symtab): Constify `name' parameter.
9152 (coff_symtab_read): Constify `filestring' local.
9153 (coff_getfilename): Constify return and `result' local.
9155 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9156 * linux-fork.c (info_checkpoints_command): Use lbasename.
9157 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9158 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9159 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9160 * procfs.c (procfs_make_note_section): Use lbasename.
9161 * tui/tui-io.c (printable_part): Constity return and parameter.
9163 (print_filename): Constify parameters, and local `s'.
9164 (tui_rl_display_match_list): Constify local `temp'.
9166 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9169 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9170 Fix DWARF-3+ DW_AT_accessibility default assumption.
9171 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9172 cu->header.version >= 3.
9174 2011-03-09 Yao Qi <yao@codesourcery.com>
9176 * common/Makefile.in: Remove.
9177 * common/configure: Remove.
9178 * common/configure.ac: Remove.
9180 2011-03-09 Yao Qi <yao@codesourcery.com>
9183 2011-02-11 Yao Qi <yao@codesourcery.com>
9185 * common/Makefile.in: Add copyright header.
9187 2011-02-11 Yao Qi <yao@codesourcery.com>
9189 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9191 * configure.ac: Add common to sub dir.
9192 * configure: Regenerate.
9194 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9196 * xtensa-tdep.c (call0_ret): New function.
9197 (xtensa_skip_prologue): Speed up analysis.
9199 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9201 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9202 while executing MI command -data-list-changed-registers.
9204 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9206 * xtensa-tdep.c (xtensa_read_register): New function.
9207 (xtensa_write_register): New function.
9208 (xtensa_find_register_by_name): New function.
9209 (xtensa_windowed_frame_cache): Update comments in type description.
9210 (xtensa_frame_cache): Likewise.
9211 (xtensa_window_interrupt_insn): New function.
9212 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9213 (xtensa_insn_kind): Add new instructions.
9214 (rwx_special_register): New function.
9215 (call0_classify_opcode): Add new instructions to the analysis.
9216 (a0_saved, a7_saved, a11_saved): New variables.
9217 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9218 (execute_l32e): New function.
9219 (execute_s32e): New function.
9220 (xtensa_exception_handler_t): New type.
9221 (execute_code): New function.
9222 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9223 analysis for Xtensa Window Exception handlers.
9225 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9227 * xtensa-tdep.c (TX_PS): New.
9228 (windowing_enabled): Update to count for Call0 ABI.
9229 (xtensa_hextochar): New.
9230 (xtensa_init_reggroups): Make algorithm generic.
9231 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9233 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9235 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9237 2011-03-08 Michael Snyder <msnyder@vmware.com>
9239 * i386-tdep.c (i386_follow_jump): Check return value of
9241 (i386_analyze_struct_return): Ditto.
9242 (i386_skip_probe): Ditto.
9243 (i386_match_insn): Ditto.
9244 (i386_skip_noop): Ditto.
9245 (i386_analyze_frame_setup): Ditto.
9246 (i386_analyze_register_saves): Ditto.
9247 (i386_skip_prologue): Ditto.
9248 (i386_skip_main_prologue): Ditto.
9250 * target.c (read_whatever_is_readable): Fix memory leak.
9252 * i386-tdep.c (i386_process_record): Document fall through.
9254 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9256 Fix DWARF-3+ DW_AT_accessibility default assumption.
9257 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9258 cu->header.version >= 3.
9260 2011-03-08 Pedro Alves <pedro@codesourcery.com>
9262 * remote.c (remote_check_symbols): Skip if the target has no
9265 2011-03-08 Joel Brobecker <brobecker@adacore.com>
9267 * target.c (read_whatever_is_readable): Reformat comment,
9268 with a minor typo fix. Minor reformatting of the code.
9270 2011-03-08 Yao Qi <yao@codesourcery.com>
9272 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9273 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9274 Use cached result instead of calling displaced_in_arm_mode again.
9275 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9276 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9277 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9278 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9279 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9280 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9281 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9282 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9283 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9284 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9285 (arm_catch_kernel_helper_return): Likewise.
9286 * gdb/arm-tdep.h : Update function declarations.
9288 2011-03-07 Michael Snyder <msnyder@vmware.com>
9290 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9292 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9294 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9296 * elfread.c (elf_symtab_read): Stop memory leak.
9298 * main.c (captured_main): Fix memory leak.
9300 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9302 * ada-lang.c (compare_names): Call is_name_suffix with string1
9305 2011-03-07 Tom Tromey <tromey@redhat.com>
9307 * xcoffread.c (xcoff_sym_fns): Update.
9308 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9309 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9310 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9311 (symbol_file_add_with_addrs_or_offsets): Likewise.
9312 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9313 * somread.c (som_sym_fns): Update.
9314 * psymtab.h (require_partial_symbols): Declare.
9315 * psymtab.c (require_partial_symbols): New function.
9316 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9317 (ALL_OBJFILE_PSYMTABS): Undef.
9318 (ALL_PSYMTABS): Move from psympriv.h.
9319 (lookup_partial_symtab, find_pc_sect_psymtab)
9320 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9321 (find_last_source_symtab_from_partial)
9322 (forget_cached_source_info_partial)
9323 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9324 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9325 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9326 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9327 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9328 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9329 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9330 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9331 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9333 * mipsread.c (ecoff_sym_fns): Update.
9334 * machoread.c (macho_sym_fns): Update.
9335 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9336 (read_psyms): New function.
9337 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9338 (elf_sym_fns_lazy_psyms): New global.
9339 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9340 dwarf2_build_psymtabs.
9341 * dbxread.c (aout_sym_fns): Update.
9342 * coffread.c (coff_sym_fns): Update.
9344 2011-03-07 Tom Tromey <tromey@redhat.com>
9346 * infrun.c (print_exited_reason): Include inferior id and pid in
9349 2011-03-07 Tom Tromey <tromey@redhat.com>
9351 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9353 (target_has_execution_1): Update.
9354 (target_has_execution_current): Declare.
9355 (target_has_execution): Call target_has_execution_current.
9356 (default_child_has_execution): Update.
9357 * target.c (default_child_has_execution): Add 'the_ptid'
9359 (target_has_execution_1): Likewise.
9360 (target_has_execution_current): New function.
9361 (add_target): Update.
9362 (init_dummy_target): Update.
9363 * remote-m32r-sdi.c (m32r_has_execution): New function.
9364 (init_m32r_ops): Use it.
9365 * record.c (record_core_has_execution): Now static. Add
9366 'the_ptid' parameter.
9367 * inferior.c (have_live_inferiors): Don't save current thread.
9368 Use target_has_execution_1.
9370 2011-03-07 Yao Qi <yao@codesourcery.com>
9372 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9374 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9376 * elfread.c (elf_symtab_read): Minor reformatting.
9378 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9380 * objc-lang.c (selectors_info): Minor reformatting.
9382 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9384 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9386 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9387 Michael Snyder <msnyder@vmware.com>
9389 * ada-valprint.c (ada_val_print_array): Move the declaration of
9390 "byte_order" and "elttype" inside the block where these variables
9391 are actually used. Remove some special handling for the case
9392 where "elttype" and "eltlen" are null. Replace by a comment
9393 and a couple of assertion checks.
9395 2011-03-05 Michael Snyder <msnyder@vmware.com>
9397 * source.c (add_path): Replace semicolon at end of block.
9398 * dwarf2expr.c (execute_stack_op): Ditto.
9400 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9402 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9403 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9404 (bfin-*-*): Likewise.
9406 2011-03-05 Michael Snyder <msnyder@vmware.com>
9408 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9409 * mdebugread.c (parse_symbol): Ditto.
9410 * parse.c (parse_exp_in_context): Ditto.
9411 * source.c (add_path): Ditto.
9412 * utils.c (gnu_debuglink_crc32): Ditto.
9413 * varobj.c (variable_language): Ditto.
9415 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9417 2011-03-04 Michael Snyder <msnyder@vmware.com>
9419 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9421 * symfile.c (simple_overlay_update): Check for null return value
9422 from lookup_minimal_symbol.
9424 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9426 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9428 * eval.c (parse_and_eval_address_1): Remove function.
9429 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9430 instead of parse_and_eval_address_1.
9431 * value.h (parse_and_eval_address_1): Remove prototype.
9433 2011-03-04 Michael Snyder <msnyder@vmware.com>
9435 * remote.c (putpkt_binary): Document that case stmt falls through.
9437 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9439 * breakpointc (print_it_typical): Move NULL check from here...
9440 (print_bp_stop_message): ... to here.
9442 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9444 * breakpoint.c (enable_command): Use break instead of continue,
9445 and fill in a missing break.
9446 (disable_command): Ditto.
9448 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9450 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9451 (terminal_save_ours): Remove misleading comment.
9452 (inflow_inferior_data_cleanup): Free ttystate.
9453 (inflow_inferior_exit): Likewise.
9454 (copy_terminal_info): Copy ttystate.
9456 * serial.c (serial_copy_tty_state): New function.
9457 * serial.h (serial_copy_tty_state): Add prototype.
9458 (struct serial_ops): Add copy_tty_state callback.
9459 * ser-base.c (ser_base_copy_tty_state): New function.
9460 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9461 * ser-go32.c (dos_copy_tty_state): New function.
9462 (dos_ops): Install copy_tty_state callback.
9463 * ser-mingw.c (_initialize_ser_windows): Likewise.
9464 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9465 * ser-unix.c (hardwire_copy_tty_state): New function.
9466 (_initialize_ser_hardwire): Install it.
9468 2011-03-04 Michael Snyder <msnyder@vmware.com>
9470 * breakpoint.c (create_breakpoint): Add missing break statement.
9472 Reverting this patch:
9473 * infcall.c (call_function_by_hand): Add break statements for lint.
9475 Reverting this patch:
9476 * cli/cli-script.c (script_from_file): Add break for lint.
9478 2011-03-04 Michael Snyder <msnyder@vmware.com>
9480 * solib.c (reload_shared_libraries_1): Close memory leak.
9482 2011-03-03 Tom Tromey <tromey@redhat.com>
9485 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9488 2011-03-03 Michael Snyder <msnyder@vmware.com>
9490 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9491 fields of struct 'st' to zero.
9493 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9494 sal.pspace before calling set_current_source_symtab_and_line.
9496 2011-03-03 Yao Qi <yao@codesourcery.com>
9498 * Makefile.in (configure-common): Remove. Let Makefile
9499 in dir common to rebuild itself.
9500 (common/Makefile): Likewise.
9502 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9504 * utils.c (parse_escape): Add i18n markup in error message.
9506 2011-03-03 Yao Qi <yao@codesourcery.com>
9508 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9510 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9511 (displaced_write_reg, displaced_read_reg): Likewise.
9512 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9513 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9514 (cleanup_branch): Replace magic number 14 and 15 with
9515 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9517 2011-03-02 Michael Snyder <msnyder@vmware.com>
9519 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9521 * cli/cli-script.c (script_from_file): Add break for lint.
9523 * mdebugread.c (parse_partial_symbols): Fix indent.
9525 * target-descriptions.c (tdesc_gdb_type): No need to call
9526 xstrdup, callee saves a copy.
9528 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9530 * infcall.c (call_function_by_hand): Add break statements for lint.
9532 * utils.c (parse_escape): Escape the escape char.
9534 * python/py-inferior.c (build_inferior_list): Error out if
9535 PyList_Append fails.
9536 (gdbpy_inferiors): Error out if build_inferior_list fails.
9538 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9541 * record.c (record_restore): Move printf to before error return.
9543 2011-03-02 Yao Qi <yao@codesourcery.com>
9545 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9546 is_thumb and insn_size.
9547 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9548 on both ARM and Thumb mode.
9549 (arm_process_displaced_insn): Set is_thumb and insn_size.
9550 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9551 (arm_displaced_step_fixup): Likewise.
9553 2011-03-01 Michael Snyder <msnyder@vmware.com>
9555 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9557 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9559 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9561 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9563 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9566 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9567 which shadows function parameter.
9569 * tracepoint.c (create_tsv_from_upload): Superfluous call
9570 to xstrdup. Callee already calls xstrdup.
9572 * linespec.c (decode_line_1): Remove unnecessary null check.
9574 * tracepoint.c (scope_info): Fix mem leak, remove underused
9577 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9578 superfluous null check.
9580 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9581 (value_of_builtin_frame_fp_reg): Ditto.
9583 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9585 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9588 * linespec.c (decode_line_1): Check for null before dereference.
9590 * reverse.c (record_restore): Move null-check to before pointer
9593 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9595 * objc-lang.c (selectors_info): Add explanitory comment.
9596 (classes_info): Ditto.
9598 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9600 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9601 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9602 versions of the trampoline. Handle Thumb vs. ARM addresses.
9603 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9604 (arm_linux_init_abi): Install it.
9605 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9606 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9608 2011-02-28 Michael Snyder <msnyder@vmware.com>
9610 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9611 a little bigger, to avoid possibility of an overflow.
9613 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9614 buffers a little bigger, to avoid possibility of an overflow.
9616 * coffread.c (coff_getfilename): Add check to avoid overflow.
9618 * objc-lang.c (selectors_info): Add a small safety margin to
9620 (classes_info): Error out on too long REGEXP.
9622 * infrun.c (handle_inferior_event): Remove unused function call.
9624 * fork-child.c (fork_inferior): Remove ifdef'd code and
9627 * linux-thread-db.c (attach_thread): Discard unused value.
9629 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9631 * remote.c (remote_get_noisy_reply): Discard unused value.
9632 (remote_vcont_resume): Ditto.
9633 (remote_stop_ns): Ditto.
9635 * linespec.c (decode_objc): Delete unused variable.
9637 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9639 * dwarf2read.c (add_partial_symbol): Discard unused values.
9640 (read_base_type): Delete unused variable.
9642 * dbxread.c (read_dbx_symtab): Discard unused value.
9644 * eval.c (evaluate_subexp_standard): Delete unused variable,
9645 and discard unused values.
9647 * infcmd.c (_initialize_infcmd): Discard unused values.
9649 * stabsread.c (rs6000_builtin_type): Missing break statement.
9651 * dbxread.c (process_one_symbol): Discard unused value.
9653 * coffread.c (coff_end_symtab): Delete unused variable.
9655 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9656 (dwarf2_add_typedef): Delete unused variable.
9657 (read_namespace): Ditto.
9658 (dwarf_decode_macros): Ditto.
9660 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9662 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9664 * p-valprint.c (pascal_val_print): Discard unused value.
9666 * utils.c (nquery): Call va_end before return;
9670 * proc-service.c (ps_plog): Call va_end before return.
9672 2011-02-28 Tom Tromey <tromey@redhat.com>
9674 * python/python.c (gdbpy_value_cst): New global.
9675 (_initialize_python): Initialize it.
9676 * python/python-internal.h (gdbpy_value_cst): Declare.
9677 * python/py-value.c (convert_value_from_python): Use
9680 2011-02-28 Michael Snyder <msnyder@vmware.com>
9682 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9684 * breakpoint.c (catch_syscall_completer): Free malloced list.
9686 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9688 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9689 (lval_func_check_synthetic_pointer): Ditto.
9690 (lval_func_free_closure): Fix use-after-free.
9692 2011-02-28 Tom Tromey <tromey@redhat.com>
9694 * psymtab.c (expand_partial_symbol_tables): Use
9695 ALL_OBJFILE_PSYMTABS.
9697 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9699 * objc-lang.c (selectors_info): Error on too long REGEXP.
9701 2011-02-28 Michael Snyder <msnyder@vmware.com>
9703 * python/py-param.c (set_parameter_value): Add missing
9706 * linux-record.c (record_linux_system_call): Add missing
9709 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9711 * breakpoint.c (print_one_breakpoint_location): Remove unused
9712 argument PRINT_ADDRESS_BITS. Update callers.
9713 (print_one_breakpoint): Likewise.
9715 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9717 * breakpoint.c (wrap_indent_at_field): New function.
9718 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9719 Allocate ui_stream locally instead of using STB argument.
9720 (print_one_breakpoint_location): Update call.
9721 * ui-out.c (ui_out_query_field): New function.
9722 * ui-out.h (ui_out_query_field): Add prototype.
9724 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9726 From Michael Snyder <msnyder@vmware.com>
9727 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9729 2011-02-27 Michael Snyder <msnyder@vmware.com>
9731 * objc-lang.c (selectors_info): Prevent string overrun.
9733 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9736 * symtab.c (rbreak_command): Move variable 'file_name' to
9739 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9740 param with a local variable of the same name.
9742 2011-02-27 Michael Snyder <msnyder@vmware.com>
9744 * value.c (value_from_history_ref): New function.
9745 * value.h (value_from_history_ref): Export.
9746 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9747 to parse value history references.
9748 * cli/cli-utils.h (get_number_trailer): Update comment.
9750 2011-02-27 Michael Snyder <msnyder@vmware.com>
9752 * inferior.c (detach_inferior_command): Use get_number_or_range.
9753 (kill_inferior_command): Ditto.
9754 (remove_inferior_command): Ditto.
9755 (initialize_inferiors): Make command names plural.
9756 Update help strings.
9758 2011-02-27 Michael Snyder <msnyder@vmware.com>
9760 * darwin-nat-info.c: Fix comment typo.
9761 * dwarf2expr.h: Ditto.
9762 * fbsd-nat.c: Ditto.
9763 * fbsd-nat.h: Ditto.
9764 * frame-unwind.h: Ditto.
9766 * hppa-hpux-tdep.c: Ditto.
9767 * i386-linux-nat.c: Ditto.
9768 * linux-nat.c: Ditto.
9769 * nbsd-nat.c: Ditto.
9770 * nbsd-nat.h: Ditto.
9771 * ppc-linux-tdep.c: Ditto.
9774 * tui/tui-winsource.c: Ditto.
9776 2011-02-26 Michael Snyder <msnyder@vmware.com>
9778 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9780 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9782 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9783 with a local variable of the same name.
9785 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9786 param with a local variable of the same name.
9787 (i387_supply_xsave): Ditto.
9789 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9790 that it does not shadow a function parameter.
9792 * i386-nat.c (i386_length_and_rw_bits): Document that case
9793 statement is meant to fall through.
9795 * expprint.c (dump_subexp_body_standard): Document that case
9796 statement is meant to fall through.
9798 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9799 dead if statement. Condition can't be false.
9801 2011-02-25 Michael Snyder <msnyder@vmware.com>
9803 * arm-tdep.c: Fix typos in comments.
9804 * bsd-uthread.c: Ditto.
9805 * completer.c: Ditto.
9807 * cp-namespace.c: Ditto.
9808 * cp-support.c: Ditto.
9809 * cris-tdep.c: Ditto.
9811 * dwarf2read.c: Ditto.
9813 * gdbtypes.h: Ditto.
9814 * inferior.h: Ditto.
9815 * mdebugread.c: Ditto.
9816 * mips-tdep.c: Ditto.
9817 * ppc-linux-nat.c: Ditto.
9818 * ppc-linux-tdep.c: Ditto.
9819 * printcmd.c: Ditto.
9820 * sol-thread.c: Ditto.
9821 * solib-frv.c: Ditto.
9823 * sparc64-tdep.c: Ditto.
9824 * spu-tdep.c: Ditto.
9825 * stabsread.c: Ditto.
9830 * python/py-block.c: Ditto.
9831 * python/py-symbol.c: Ditto.
9832 * python/py-symtab.c: Ditto.
9833 * python/py-value.c: Ditto.
9834 * tui/tui-win.c: Ditto.
9836 2011-02-25 Michael Snyder <msnyder@vmware.com>
9838 * inferior.c (print_inferior): Accept a string instead of an int
9839 for requested_inferiors, and use get_number_or_range to parse it.
9840 (info_inferiors_command): Pass args string to print_inferior.
9841 (initialize_inferiors): Change help string for info inferiors.
9842 * inferior.h (print_inferior): Export prototype change.
9844 2011-02-25 Tom Tromey <tromey@redhat.com>
9846 * common/ax.def (invalid2): Set to 0x31.
9848 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9850 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9852 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9854 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9856 2011-02-24 Michael Snyder <msnyder@vmware.com>
9858 * Makefile.in (clean): Make clean should remove generated files
9859 observer.h and observer.inc.
9861 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9863 Revert the following patch (not approved yet):
9864 2011-02-21 Hui Zhu <teawater@gmail.com>
9865 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9866 * ax-gdb.c (gen_printf_expr_callback): New function.
9867 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9868 * ax-general.c (ax_memcpy): New function.
9869 (ax_print): Handle "printf".
9871 * ax.h (ax_memcpy): Forward declare.
9872 * common/ax.def (invalid2): Removed.
9873 (printf): New entry.
9874 * printcmd.c (printcmd.h): New include.
9875 (string_printf): New function.
9876 (ui_printf): Removed.
9877 (printf_command): Remove static. Call string_printf.
9878 (eval_command): Call string_printf.
9879 * printcmd.h: New file.
9880 * tracepoint.c (validate_actionline,
9881 encode_actions_1): handle printf_command.
9883 2011-02-23 Tom Tromey <tromey@redhat.com>
9885 * ax-general.c (ax_pick): Add missing newline.
9887 2011-02-23 Michael Snyder <msnyder@vmware.com>
9889 * breakpoint.c (breakpoint_1): Change first argument from an int
9890 to a char pointer, so that the function now accepts a list of
9891 breakpoints rather than just one. Use new function
9892 'number_is_in_list' to implement.
9893 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9894 (watchpoints_info): Ditto.
9895 (tracepoints_info): Ditto.
9896 (maintenance_info_breakpoints): Ditto.
9897 (_initialize_breakpoint): Update help strings to reflect the fact
9898 that these functions can now take more than one argument.
9899 * cli/cli-utils.c (number_is_in_list): New function.
9900 * cli/cli-utils.h (number_is_in_list): Export.
9902 2011-02-23 Michael Snyder <msnyder@vmware.com>
9904 * memattr.c (mem_enable_command): Use get_number_or_range.
9905 (mem_disable_command): Ditto.
9906 (mem_delete_command): Ditto.
9907 (_initialize_mem): Tweak usage message to reflect multiple
9910 2011-02-22 Doug Evans <dje@google.com>
9912 Add gdb.lookup_global_symbol python function.
9914 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9915 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9916 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9918 2011-02-22 Tom Tromey <tromey@redhat.com>
9920 * language.c (language_class_name_from_physname): Rename
9921 'curr_language' argument to 'lang'; use in body.
9923 2011-02-22 Michael Snyder <msnyder@vmware.com>
9925 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9927 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9929 * frame-unwind.h: Fix comment to mention the this frame, not the
9932 2011-02-22 Tom Tromey <tromey@redhat.com>
9934 * symfile.c (auto_solib_limit): Remove.
9935 * symfile.h (auto_solib_limit): Remove.
9937 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9939 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9941 2011-02-21 Michael Snyder <msnyder@vmware.com>
9943 * gdbthread.h (print_thread_info): Change prototype.
9944 * thread.c (print_thread_info): Accept char* instead of int for
9945 requested_threads argument. Use new function number_is_in_list
9946 to determine which threads to list.
9947 (info_threads_command): Pass char* to print_thread_info.
9948 * cli/cli-utils.c (number_is_in_list): New function.
9949 * cli/cli-utils.h (number_is_in_list): Export.
9950 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9952 (print_one_inferior): Ditto.
9953 (mi_cmd_list_thread_groups): Ditto.
9955 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9957 * common/Makefile.in (CFLAGS): New.
9958 (COMPILE): Add $(CFLAGS).
9960 2011-02-21 Tom Tromey <tromey@redhat.com>
9962 * breakpoint.c (catch_syscall_command_1): Fix typo.
9964 2011-02-21 Tom Tromey <tromey@redhat.com>
9966 * reverse.c: Include cli-utils.h.
9967 * printcmd.c: Include cli-utils.h.
9968 (string_printf): Use skip_spaces.
9969 * cli/cli-utils.h: New file.
9970 * cli/cli-utils.c: New file.
9971 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9972 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9973 * breakpoint.h (get_number, get_number_or_range): Move to
9975 * breakpoint.c: Include cli-utils.h.
9976 (get_number_trailer, get_number, get_number_or_range)
9977 (ep_skip_leading_whitespace): Move to cli-utils.c.
9978 (create_breakpoint_sal, find_condition_and_thread)
9979 (decode_static_tracepoint_spec, watch_command_1)
9980 (watch_maybe_just_location, ep_parse_optional_if_clause)
9981 (catch_fork_command_1, catch_exec_command_1)
9982 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9983 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9984 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9985 (HFILES_NO_SRCDIR): Add cli-utils.h.
9986 (cli-utils.o): New target.
9988 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9990 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9991 before calling discard_all_inferiors.
9993 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9995 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9996 (struct builtin_opencl_type): Remove.
9997 (builtin_opencl_type): Change return type to "struct type **".
9998 (lookup_opencl_vector_type): Update caller.
9999 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
10000 (build_opencl_types): Install plain array of "struct type *"
10001 instead of "struct builtin_opencl_type".
10003 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10004 Ulrich Weigand <uweigand@de.ibm.com>
10006 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
10007 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
10008 (struct arm_linux_hwbp_cap): New type.
10009 (arm_linux_get_hwbp_cap): New function.
10010 (arm_linux_get_hw_breakpoint_count): Likewise.
10011 (arm_linux_get_hw_watchpoint_count): Likewise.
10012 (arm_linux_can_use_hw_breakpoint): Likewise.
10013 (arm_hwbp_type): New type.
10014 (arm_hwbp_control_t): Likewise.
10015 (struct arm_linux_hw_breakpoint): Likewise.
10016 (struct arm_linux_thread_points): Likewise.
10017 (arm_threads): New global variable.
10018 (arm_linux_find_breakpoints_by_tid): New function.
10019 (arm_hwbp_control_initialize): Likewise.
10020 (arm_hwbp_control_is_enabled): Likewise.
10021 (arm_hwbp_control_disable): Likewise.
10022 (arm_linux_hw_breakpoint_initialize): Likewise.
10023 (arm_linux_get_hwbp_type): Likewise.
10024 (arm_linux_hw_watchpoint_initialize): Likewise.
10025 (arm_linux_hw_breakpoint_equal): Likewise.
10026 (arm_linux_insert_hw_breakpoint1): Likewise.
10027 (arm_linux_remove_hw_breakpoint1): Likewise.
10028 (arm_linux_insert_hw_breakpoint): Likewise.
10029 (arm_linux_remove_hw_breakpoint): Likewise.
10030 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
10031 (arm_linux_insert_watchpoint): Likewise.
10032 (arm_linux_remove_watchpoint): Likewise.
10033 (arm_linux_stopped_data_address): Likewise.
10034 (arm_linux_stopped_by_watchpoint): Likewise.
10035 (arm_linux_watchpoint_addr_within_range): Likewise.
10036 (arm_linux_new_thread): Likewise.
10037 (arm_linux_thread_exit): Likewise.
10038 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
10039 related target callbacks. Register arm_linux_new_thread and
10040 arm_linux_thread_exit.
10041 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
10042 * arm-tdep.c (arm_pc_is_thumb): Make global.
10043 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10045 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10047 * breakpoint.c (update_watchpoint): Do not attempt to recreate
10048 per-frame locations while within a function epilogue.
10050 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10052 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10053 to GNU coding standards.
10055 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10057 Allow use of mingw native on Windows 95 OS.
10058 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
10059 (ser_windows_close): Only call CancelIo if function exists.
10060 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10061 to check for existence of CancelIo function in kernel32 DLL.
10063 2011-02-21 Hui Zhu <teawater@gmail.com>
10065 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10066 * ax-gdb.c (gen_printf_expr_callback): New function.
10067 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10068 * ax-general.c (ax_memcpy): New function.
10069 (ax_print): Handle "printf".
10071 * ax.h (ax_memcpy): Forward declare.
10072 * common/ax.def (invalid2): Removed.
10073 (printf): New entry.
10074 * printcmd.c (printcmd.h): New include.
10075 (string_printf): New function.
10076 (ui_printf): Removed.
10077 (printf_command): Remove static. Call string_printf.
10078 (eval_command): Call string_printf.
10079 * printcmd.h: New file.
10080 * tracepoint.c (validate_actionline,
10081 encode_actions_1): handle printf_command.
10083 2011-02-19 Michael Snyder <msnyder@vmware.com>
10085 * reverse.c (delete_one_bookmark): Argument is now bookmark
10086 id rather than pointer to bookmark struct.
10087 (delete_bookmark_command): Use get_number_or_range.
10088 (goto_bookmark_command): Parse with get_number instead of strtoul.
10089 (bookmark_1): New function. Print info for one bookmark.
10090 (bookmarks_info): Use get_number_or_range and bookmark_1.
10092 2011-02-18 Michael Snyder <msnyder@vmware.com>
10094 * thread.c (info_threads_command): Re-implement using
10095 get_number_or_range.
10096 (thread_apply_command): Ditto.
10098 2011-02-18 Tom Tromey <tromey@redhat.com>
10100 * common/ax.def: New file.
10101 * ax.h (enum agent_op): Use ax.def.
10102 * ax-general.c (aop_map): Use ax.def.
10104 2011-02-18 Tom Tromey <tromey@redhat.com>
10106 * ax-general.c (aop_map): Add pick and rot.
10107 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10108 <DW_OP_rot>: Implement.
10109 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10110 (ax_pick): Declare.
10111 * ax-general.c (ax_pick): New function.
10113 2011-02-18 Tom Tromey <tromey@redhat.com>
10115 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10117 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10118 Tom Tromey <tromey@redhat.com>
10120 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10121 make_symbol_overload_list_block with NULL BLOCK.
10122 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10124 2011-02-18 Pedro Alves <pedro@codesourcery.com>
10126 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10127 * breakpoint.h (get_number_or_range): Declare.
10128 * printcmd.c (ALL_DISPLAYS): Declare.
10129 (delete_display): Reimplement taking a display pointer.
10130 (undisplay_command): Accept a range of displays to delete, using
10131 get_number_or_range.
10133 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10135 * c-valprint.c (c_val_print): Add embedded_offset to address
10136 for arrays of unspecified length.
10137 * p-valprint.c (pascal_val_print): Likewise.
10139 2011-02-18 Yao Qi <yao@codesourcery.com>
10141 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10142 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10143 (thumb_process_displaced_insn): New.
10144 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10145 call to arm_process_displaced_insn.
10146 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10148 2011-02-17 Tom Tromey <tromey@redhat.com>
10150 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10151 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10152 compile_dwarf_to_ax. No longer static. Call
10153 dwarf2_compile_cfa_to_ax.
10154 (locexpr_tracepoint_var_ref): Update.
10155 (loclist_tracepoint_var_ref): Update.
10156 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10157 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10158 argument; add 'gdbarch' and 'pc'.
10159 (dwarf2_compile_cfa_to_ax): New function.
10160 (dwarf2_frame_cache): Update.
10162 2011-02-17 Joel Brobecker <brobecker@adacore.com>
10164 * ada-lang.c (ada_type_of_array): Fix the size of the array
10165 in the case of an unconstrained packed array.
10167 2011-02-17 Yao Qi <yao@codesourcery.com>
10169 * common/Makefile.in: Add more targets for make.
10171 2011-02-16 Tom Tromey <tromey@redhat.com>
10173 * dwarf2loc.c (unimplemented): Fix typo.
10175 2011-02-16 Tom Tromey <tromey@redhat.com>
10177 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10178 (compile_dwarf_to_ax) <default>: Use unimplemented.
10179 <DW_OP_deref>: Update.
10180 (disassemble_dwarf_expression): Update.
10181 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10182 (decode_locdesc): Update.
10183 * dwarf2expr.h (dwarf_stack_op_name): Update.
10185 2011-02-16 Tom Tromey <tromey@redhat.com>
10187 * ax.h (struct aop_map) <name>: Now const.
10189 2011-02-16 Tom Tromey <tromey@redhat.com>
10191 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10194 2011-02-16 Yao Qi <yao@codesourcery.com>
10196 * infrun.c (get_displaced_step_closure_by_addr): New.
10197 * inferior.h: Declare it.
10198 * arm-tdep.c: (arm_pc_is_thumb): Call
10199 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10202 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10203 Jan Kratochvil <jan.kratochvil@redhat.com>
10206 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10208 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10209 Jan Kratochvil <jan.kratochvil@redhat.com>
10211 * value.c (value_contents_copy_raw): Extend describing comment.
10212 Assert that the destination contents we're overwriting are wholly
10214 (value_contents_copy): Extend describing comment.
10216 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10217 Jan Kratochvil <jan.kratochvil@redhat.com>
10219 * value.c (value_available_contents_eq): Remove redundant local
10220 variables. Fix available contents comparision.
10221 * value.h (value_available_contents_eq): Extend describing
10224 2011-02-16 Yao Qi <yao@codesourcery.com>
10226 * thread.c (info_threads_command): Add missing i18n markup and remove
10229 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10231 * breakpoint.c (longjmp_names): New variable.
10232 (struct breakpoint_objfile_data): New type.
10233 (breakpoint_objfile_key): New variable.
10234 (msym_not_found): New variable.
10235 (msym_not_found_p): New predicate.
10236 (get_breakpoint_objfile_data): New function.
10237 (create_overlay_event_breakpoint): Check per-objfile cache for
10239 (create_longjmp_master_breakpoint): Likewise.
10240 (create_std_terminate_master_breakpoint): Likewise.
10241 (create_exception_master_breakpoint): Likewise.
10242 (_initialize_breakpoint): Register per-objfile data key.
10244 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10246 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10248 (create_longjmp_master_breakpoint): Loop over longjmp names.
10249 (create_std_terminate_master_breakpoint): Const-propagate parameter
10251 (update_breakpoints_after_exec): Adjust.
10252 (breakpoint_re_set): Adjust.
10254 2011-02-15 Michael Snyder <msnyder@vmware.com>
10256 * thread.c (info_threads_command): Process arg as thread id,
10257 or list of thread ids.
10258 (thread_find_command): New command.
10259 (_initialize_thread): Document argument for info threads.
10260 Document 'thread find' command.
10261 * NEWS: Document new command "thread find".
10263 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10265 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10266 * aclocal.m4: Regenerated with aclocal-1.11.1.
10267 * common/configure: Regenerate with autoconf-2.64.
10269 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
10271 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10272 bool data type to a size of one byte.
10274 2011-02-15 Pedro Alves <pedro@codesourcery.com>
10275 Jan Kratochvil <jan.kratochvil@redhat.com>
10277 * target.c (memory_xfer_live_readonly_partial): Document where to
10278 look for interface description.
10280 2011-02-15 Yao Qi <yao@codesourcery.com>
10283 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10284 order to store PC value on stack instead of text section.
10286 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10288 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10289 the EFP register set size.
10290 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10291 data from the VMX register.
10292 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10293 and write data from/to the VMX register.
10295 2011-02-14 Michael Snyder <msnyder@vmware.com>
10297 * command.h (enum command_class): New class 'no_set_class', for
10298 "show" commands without a corresponding "set" command.
10299 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10300 * copying.c (_initialize_copying): Ditto for "show copying" and
10302 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10304 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10305 which there is no corresponding "set" command (eg. "show copying").
10307 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10308 Jan Kratochvil <jan.kratochvil@redhat.com>
10310 * exec.c (section_table_available_memory): Change `len' parameter
10312 * exec.h (section_table_available_memory): Ditto.
10313 * value.h (read_value_memory): Rename the `offset' parameter to
10316 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10317 Jan Kratochvil <jan.kratochvil@redhat.com>
10319 * memrange.c (compare_mem_ranges): Mention sort order in
10320 describing comment.
10321 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10322 * tracepoint.c (traceframe_available_memory): Extend comment to
10323 mention what happens to RESULT when the target does not support
10326 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10327 Jan Kratochvil <jan.kratochvil@redhat.com>
10329 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10332 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10334 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10335 No longer handle NULL values.
10337 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10339 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10340 * value.c: Include "exceptions.h".
10341 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10343 * cp-abi.c: Include gdb_assert.h.
10344 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10345 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10347 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10348 parameters. No longer returns -1 on error.
10349 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10351 * cp-valprint.c: Include exceptions.h.
10352 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10353 the baseclass_offset. Handle unavailable base classes. Use
10354 val_print_invalid_address.
10355 * p-valprint.c: Include exceptions.h.
10356 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10357 when fetching the baseclass_offset. No longer expect
10358 baseclass_offset returning -1. Handle unavailable base classes.
10359 Use val_print_invalid_address.
10360 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10361 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10362 `embedded_offset' and `val' parameters. Adjust.
10363 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10364 parameter, and change its type to gdb_byte pointer. Add
10365 `embedded_offset' and `val' parameters. Adjust. No longer expect
10366 baseclass_offset returning -1.
10367 (value_dynamic_cast): Use value_contents_for_printing rather than
10368 value_contents. Adjust.
10369 (search_struct_field): No longer expect baseclass_offset returning
10371 (search_struct_method): If reading memory from the target is
10372 necessary, wrap it in a new value to pass to baseclass_offset. No
10373 longer expect baseclass_offset returning -1.
10374 (find_method_list): No longer expect baseclass_offset returning
10375 -1. Use value_contents_for_printing rather than value_contents.
10376 * valprint.c (val_print_invalid_address): New function.
10377 * valprint.h (val_print_invalid_address): Declare.
10378 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10379 and `val' parameters. No longer expect baseclass_offset returning
10381 * gnu-v2-abi.c: Include "exceptions.h".
10382 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10383 parameters. Handle unavailable memory. Recurse through
10384 gnuv2_baseclass_offset directly, rather than through
10385 baseclass_offset. No longer returns -1 on not found, instead
10387 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10388 `val' parameters. Adjust.
10390 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10392 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10393 almost but not quite adjacent.
10395 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10397 * value.h (value_entirely_available): Declare.
10398 * value.c (value_entirely_available): New function.
10399 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10400 real type if the pointer is unavailable.
10402 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10404 * valops.c (value_repeat): Use read_value_memory instead of
10407 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10409 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10410 * value.c (value_contents_copy_raw, value_contents_copy): New
10412 (value_primitive_field): Use value_contents_copy_raw instead of
10414 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10416 (value_array, value_slice): Ditto.
10417 * valarith.c (value_subscripted_rvalue): Use
10418 value_contents_copy_raw instead of memcpy.
10420 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10422 <unavailable> references.
10424 * valops.c (get_value_at): Use value_from_contents_and_address,
10425 avoiding read_memory.
10427 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10429 * c-valprint.c (c_val_print): Print a string with unavailable
10430 contents as an array.
10432 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10434 * value.h (unpack_bits_as_long): Delete declaration.
10435 (unpack_value_bits_as_long): Declare.
10436 (unpack_value_field_as_long): Declare.
10437 (value_field_bitfield): Declare.
10438 * value.c (unpack_bits_as_long): Rename to...
10439 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10440 value parameters. Return the extracted result in a new output
10441 parameter. If the value contents are unavailable, return false,
10442 otherwise return true.
10443 (unpack_value_bits_as_long): New.
10444 (unpack_field_as_long): Rename to...
10445 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10446 Add embedded_offset and value parameters. Return the extracted
10447 result in a new output parameter. If the value contents are
10448 unavailable, return false, otherwise return true.
10449 (unpack_value_field_as_long): New.
10450 (unpack_field_as_long_1): New.
10451 (unpack_field_as_long): Reimplement as wrapper around
10452 unpack_value_field_as_long_1.
10453 (value_field_bitfield): New function.
10454 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10455 unpack_value_bits_as_long. Mark the value as unavailable, if it
10457 * jv-valprint.c (java_print_value_fields): Use
10458 value_field_bitfield.
10459 * p-valprint.c (pascal_object_print_value_fields): Use
10460 value_field_bitfield.
10461 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10463 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10465 * value.c (get_internalvar_integer): Also return the int value of
10466 TYPE_CODE_INT INTERNALVAR_VALUE values.
10467 (set_internalvar): Don't special case TYPE_CODE_INT.
10469 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10471 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10472 INTERNALVAR_POINTER.
10474 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10475 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10476 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10478 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10480 * value.h (value_available_contents_eq): Declare.
10481 * value.c (find_first_range_overlap): New function.
10482 (value_available_contents_eq): New function.
10483 * valprint.c (val_print_array_elements): Use
10484 value_available_contents_eq.
10485 * ada-valprint.c (val_print_packed_array_elements): Use
10486 value_available_contents_eq.
10487 * jv-valprint.c (java_value_print): Use
10488 value_available_contents_eq.
10490 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10492 * target.c (target_read_live_memory): New function.
10493 (memory_xfer_live_readonly_partial): New.
10494 (memory_xfer_partial): If reading from a traceframe, fallback to
10495 reading unavailable read-only memory from read-only regions of
10496 live target memory.
10497 * tracepoint.c (disconnect_tracing): Adjust.
10498 (set_current_traceframe): New, factored out from
10499 set_traceframe_number.
10500 (set_traceframe_number): Reimplement to only change the traceframe
10501 number on the GDB side.
10502 (do_restore_current_traceframe_cleanup): Adjust.
10503 (make_cleanup_restore_traceframe_number): New.
10504 (cur_traceframe_number): New global.
10505 (tfile_open): Set cur_traceframe_number to no traceframe.
10506 (set_tfile_traceframe): New function.
10507 (tfile_trace_find): If looking up a traceframe using any method
10508 other than by number, make sure the current tfile traceframe
10509 matches gdb's current traceframe. Update the current tfile
10510 traceframe if the lookup succeeded.
10511 (tfile_fetch_registers, tfile_xfer_partial)
10512 (tfile_get_trace_state_variable_value): Make sure the remote
10513 traceframe matches gdb's current traceframe.
10514 * remote.c (remote_traceframe_number): New global.
10515 (remote_open_1): Set it to -1.
10516 (set_remote_traceframe): New function.
10517 (remote_fetch_registers, remote_store_registers)
10518 (remote_xfer_memory, remote_xfer_partial)
10519 (remote_get_trace_state_variable_value): Make sure the remote
10520 traceframe matches gdb's current traceframe.
10521 (remote_trace_find): If looking up a traceframe using any method
10522 other than by number, make sure the current remote traceframe
10523 matches gdb's current traceframe. Update the current remote
10524 traceframe if the lookup succeeded.
10525 * infrun.c (fetch_inferior_event): Adjust.
10526 * tracepoint.h (set_current_traceframe): Declare.
10527 (get_traceframe_number, set_traceframe_number): Add describing
10530 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10532 Mark pieces of values as unavailable if the corresponding memory
10535 * valops.c: Include tracepoint.h.
10536 (value_fetch_lazy): Use read_value_memory.
10537 (read_value_memory): New.
10538 * value.h (read_value_memory): Declare.
10539 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10540 * exec.c (section_table_available_memory): New function.
10541 * exec.h (section_table_available_memory): Declare.
10543 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10545 * Makefile.in (SFILES): Add memrange.c.
10546 (HFILES_NO_SRCDIR): Add memrange.h.
10547 (COMMON_OBS): Add memrange.o.
10548 * memrange.c: New file.
10549 * memrange.h: New file.
10550 * tracepoint.c: Include memrange.h.
10551 (struct mem_range): Delete.
10552 (mem_range_s): Delete.
10553 (traceframe_available_memory): New function.
10554 * tracepoint.h (traceframe_available_memory): Declare.
10556 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10558 * target.h (struct traceframe_info): Forward declare.
10559 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10560 (struct target_ops) <to_traceframe_info>: New field.
10561 (target_traceframe_info): New.
10562 * target.c (update_current_target): Inherit and default
10563 to_traceframe_info.
10564 * remote.c (PACKET_qXfer_traceframe_info): New.
10565 (remote_protocol_features): Register qXfer:traceframe-info:read.
10566 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10567 (remote_traceframe_info): New.
10568 (init_remote_ops): Install it.
10569 (_initialize_remote): Install "set/show remote traceframe-info"
10571 * tracepoint.h (parse_traceframe_info): Declare.
10572 * tracepoint.c (struct mem_range): New.
10573 (mem_range_s): New typedef.
10574 (struct traceframe_info): New.
10575 (traceframe_info): New global.
10576 (free_traceframe_info): New function.
10577 (clear_traceframe_info): New function.
10578 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10580 (build_traceframe_info): New function.
10581 (tfile_traceframe_info): New function.
10582 (init_tfile_ops): Install tfile_traceframe_info.
10583 (traceframe_info_start_memory, free_result): New functions.
10584 (memory_attributes, traceframe_info_elements): New globals.
10585 (parse_traceframe_info, get_traceframe_info): New functions.
10586 * features/traceframe-info.dtd: New file.
10587 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10589 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10591 Base support for <unavailable> value contents.
10593 * value.h (value_bytes_available): Declare.
10594 (mark_value_bytes_unavailable): Declare.
10595 * value.c (struct range): New struct.
10596 (range_s): New typedef.
10597 (ranges_overlap): New function.
10598 (range_lessthan): New function.
10599 (ranges_contain_p): New function.
10600 (struct value) <unavailable>: New field.
10601 (value_bytes_available): New function.
10602 (mark_value_bytes_unavailable): New function.
10603 (require_not_optimized_out): Constify parameter.
10604 (require_available): New function.
10605 (value_contents_all, value_contents): Require all bytes be
10607 (value_free): Free `unavailable'.
10608 (value_copy): Copy `unavailable'.
10609 * valprint.h (val_print_unavailable): Declare.
10610 * valprint.c (valprint_check_validity): Rename `offset' parameter
10611 to `embedded_offset'. If printing a scalar, check whether the
10612 value chunk is available.
10613 (val_print_unavailable): New.
10614 (val_print_scalar_formatted): Check whether the value is
10616 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10617 pretty-printing unavailable values.
10619 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10621 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10622 * c-typeprint.c (c_type_print_args): Update the function comment. New
10623 variable param_type, initialize it. Remove const/volatile qualifiers
10624 for language_cplus and !show_artificial. Use param_type.
10626 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10628 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10629 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10630 * symtab.h (struct symtab) <next>: Comment extension.
10632 2011-02-12 Yao Qi <yao@codesourcery.com>
10634 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10636 2011-02-11 Yao Qi <yao@codesourcery.com>
10638 * common/Makefile.in: Add copyright header.
10640 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10642 * infrun.c (proceed): Move switching out and in of tfind mode from
10644 (fetch_inferior_event): ... to here.
10646 2011-02-11 Yao Qi <yao@codesourcery.com>
10648 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10650 * configure.ac: Add common to sub dir.
10651 * configure: Regenerate.
10653 2011-02-11 Yao Qi <yao@codesourcery.com>
10657 * common/Makefile.in: New.
10658 * common/configure.ac: New.
10659 * common/aclocal.m4: New.
10660 * common/configure: Generate.
10662 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10664 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10665 side of the parenthesis.
10668 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10669 * vec.h (VEC_block_remove): Fix comment.
10671 2011-02-08 Michael Snyder <msnyder@vmware.com>
10673 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10675 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10677 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10678 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10681 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10684 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10686 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10687 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10689 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10691 * dwarf2read.c (read_subroutine_type): Set special calling
10692 convention flag for functions compiled by IBM XL C for OpenCL.
10693 * ppc-sysv-tdep.c: Include "dwarf2.h"
10694 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10695 calling convention.
10696 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10697 IBM OpenCL vector types calling convention.
10698 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10699 (ppc_sysv_abi_broken_return_value): Likewise.
10700 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10701 types calling convention.
10702 (ppc64_sysv_abi_return_value): Likewise.
10703 * spu-tdep.c: Include "dwarf2.h"
10704 (spu_return_value): Implement IBM OpenCL vector types calling
10707 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10709 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10710 correct ABI for AltiVec vector arguments.
10712 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10714 * valprint.c (val_print): Extend comment.
10715 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10716 interface explanation to val_print.
10717 (ada_val_print_array): Adjust comment to current interface.
10718 (print_field_values): Adjust comment to current interface.
10719 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10720 explanation to val_print.
10721 * f-valprint.c (f_val_print): Ditto.
10722 * jv-valprint.c (java_val_print): Ditto.
10723 * m2-valprint.c (m2_val_print): Ditto.
10724 * p-valprint.c (pascal_val_print): Ditto.
10726 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10728 * breakpoint.c (parse_breakpoint_sals): Fix description.
10730 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10731 Oguz Kayral <oguzkayral@gmail.com>
10733 * python/py-inferior.c (python_on_normal_stop): New function.
10734 (python_on_resume): New function.
10735 (python_inferior_exit): New function.
10736 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10737 inferior_exit observers.
10738 * python/py-evtregistry.c: New file.
10739 * python/py-threadevent.c : New file.
10740 * python/py-event.c: New file.
10741 * python/py-evts.c: New file.
10742 * python/py-continueevent.c: New file.
10743 * python/py-bpevent.c: New file.
10744 * python/py-signalevent.c: New file.
10745 * python/py-exetiedevent.c: New file.
10746 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10747 Move struct breakpoint_object from here...
10748 * python/python-internal.h: ... to here.
10749 * python/py-event.h: New file.
10750 * python/py-events.h: New file.
10751 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10752 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10753 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10754 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10755 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10756 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10757 Add build rules for all the above.
10759 2011-02-04 Tom Tromey <tromey@redhat.com>
10761 * dwarf2read.c (dwarf2_section_empty_p): New function.
10762 (dwarf2_read_section): Use dwarf2_section_empty_p.
10763 (dwarf2_section_size): New function.
10764 (dwarf2_get_section_info): Unconditionally read section.
10765 (dwarf2_read_index): Use dwarf2_section_empty_p.
10766 (partial_read_comp_unit_head): Use dwarf2_section_size.
10767 (dwarf2_symbol_mark_computed): Likewise.
10769 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10771 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10773 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10775 * mips-linux-tdep.c: Include xml-syscall.h.
10776 (mips_linux_get_syscall_number): New function.
10777 (mips_linux_init_abi): Add calls to
10778 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10779 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10780 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10781 * syscalls/mips-n32-linux.xml: New file.
10782 * syscalls/mips-n64-linux.xml: New file.
10783 * syscalls/mips-o32-linux.xml: New file.
10785 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10787 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10788 Complain about inverted range entries.
10789 (dwarf2_record_block_ranges): Likewise.
10791 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10794 * breakpoint.c (update_watchpoint): Fix name of the
10795 update_global_location_list function.
10796 (print_one_breakpoint): Fix typo.
10797 (_initialize_breakpoint): Remove extra space in hbreak help
10799 * breakpoint.h (struct bp_location) <length>: Fix field
10802 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10804 * regcache.c (registers_changed_ptid): Don't explictly always
10805 clear `current_regcache'. Only clear current_thread_ptid and
10806 current_thread_arch when PTID matches. Only reinit the frame
10807 cache if PTID matches the current inferior_ptid. Move alloca(0)
10809 (registers_changed): ... here.
10811 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10813 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10814 starts with __stack_chk_guard as stack guard symbol.
10816 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10818 * disasm.c (compare_lines): Handle the end of sequence markers
10819 within the line table to better support disassembling over
10820 compilation unit boundaries.
10822 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10824 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10825 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10826 implementation even if no symbols are available.
10827 (thumb_analyze_prologue): Update call to skip_prologue_function.
10828 (arm_analyze_prologue): Likewise.
10830 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10832 * arm-tdep.c: Include "observer.h".
10833 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10834 (arm_exidx_data_key): New static variable.
10835 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10836 (struct arm_exidx_data): Likewise.
10837 (arm_exidx_data_free): New function.
10838 (arm_compare_exidx_entries): Likewise.
10839 (arm_obj_section_from_vma): Likewise.
10840 (arm_exidx_new_objfile): Likewise.
10841 (arm_find_exidx_entry): Likewise.
10842 (arm_exidx_fill_cache): Likewise.
10843 (arm_exidx_unwind_sniffer): Likewise.
10844 (arm_exidx_unwind): New global variable.
10845 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10846 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10847 observer. Register arm_exidx_data_key as objfile data.
10849 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10851 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10852 due to accessing uninitialized variable. Fix indentation.
10854 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10856 * c-valprint.c (c_value_print): When doing virtual base pointer
10857 adjustment, create a new value with adjusted contents rather than
10858 changing the contents of the value being printed (and getting it
10861 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10863 * xml-support.c (xml_find_attribute): New.
10864 (xinclude_start_include): Use it.
10865 * xml-support.h (xml_find_attribute): Declare.
10866 * memory-map.c (memory_map_start_memory)
10867 (memory_map_start_property): Use xml_find_attribute.
10868 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10869 xml_find_attribute.
10870 * remote.c (start_thread): Use xml_find_attribute.
10871 * solib-target.c (library_list_start_segment)
10872 (library_list_start_section, library_list_start_library)
10873 (library_list_start_list): Use xml_find_attribute.
10874 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10875 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10876 (tdesc_start_field): Use xml_find_attribute.
10878 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10880 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10881 (BUILD_OCL_VTYPES): Update.
10883 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10885 * configure.ac: Work around non-GNU sed limitation when computing
10886 python version number.
10887 * configure: Regenerate.
10889 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10891 Fix debug printing of TYPE_INSTANCE.
10892 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10893 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10895 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10897 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10898 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10899 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10900 * ada-operator.inc: Rename the file to ...
10901 * ada-operator.def: ... here, wrap all the entries by macro OP.
10902 * expprint.c (op_name_standard): Remove all the entries. Include
10903 "std-operator.def" instead.
10904 * expression.h (enum exp_opcode): Include "std-operator.def" and
10905 "ada-operator.def". Move all the entries ...
10906 * std-operator.def: ... here, wrap all the entries by macro OP.
10908 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10910 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10911 * breakpoint.c (remove_jit_event_breakpoints): New function.
10912 * jit.c (jit_descriptor_addr): Delete.
10913 (registering_code): Delete.
10914 (clear_int): Delete.
10915 (jit_inferior_data): New variable.
10916 (struct jit_inferior_data): New type.
10917 (get_jit_inferior_data): New function.
10918 (jit_inferior_data_cleanup): New function.
10919 (jit_read_descriptor): Adjust.
10920 (jit_register_code): Adjust.
10921 (jit_breakpoint_re_set_internal): New function; move code here ...
10922 (jit_inferior_init): ... from here.
10923 (jit_breakpoint_re_set): Adjust.
10924 (jit_reset_inferior_data_and_breakpoints): New function.
10925 (jit_inferior_created_observer): Adjust.
10926 (jit_inferior_exit_hook): Adjust.
10927 (jit_executable_changed_observer): New function.
10928 (jit_event_handler): Adjust.
10929 (_initialize_jit): Adjust.
10931 2011-01-31 Michael Snyder <msnyder@vmware.com>
10933 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10936 2011-01-31 Tom Tromey <tromey@redhat.com>
10939 * python/python.c (execute_gdb_command): Call
10940 prevent_dont_repeat.
10941 * top.c (suppress_dont_repeat): New global.
10942 (dont_repeat): Use it.
10943 (prevent_dont_repeat): New function.
10944 * command.h (prevent_dont_repeat): Declare.
10946 2011-01-31 Tom Tromey <tromey@redhat.com>
10948 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10949 * python/py-breakpoint.c (bppy_set_silent): Use
10950 breakpoint_set_silent.
10951 (bppy_set_thread): Use breakpoint_set_thread.
10952 (bppy_set_task): Use breakpoint_set_task.
10953 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10954 (breakpoint_set_task): Declare.
10955 (make_breakpoint_silent): Remove.
10956 * breakpoint.c (breakpoint_set_silent): New function.
10957 (breakpoint_set_thread): Likewise.
10958 (breakpoint_set_task): Likewise.
10959 (make_breakpoint_silent): Remove.
10961 2011-01-31 Tom Tromey <tromey@redhat.com>
10963 * breakpoint.h (user_breakpoint_p): Declare.
10964 * breakpoint.c (user_breakpoint_p): New function.
10965 (breakpoint_1): Use it.
10966 (save_breakpoints): Likewise.
10968 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10970 * configure.ac: Add handling of Python distribution on Windows.
10971 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10972 sysconfig variables are not defined, then do not use them.
10973 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10974 instead. On Windows, return all paths using forward-slashes
10975 rather than backslashes.
10977 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10979 * configure.ac: Remove fallback behavior for building
10980 against Python. Remove tweaking of Python include path.
10981 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10982 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10983 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10984 Always restore CPPFLAGS and LIBS after linking test.
10985 * configure: Regenerated.
10986 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10987 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10988 * python/python-internal.h: Adjust includes of Python .h files.
10990 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10992 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10995 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10997 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
11000 2011-01-31 Yao Qi <yao@codesourcery.com>
11002 * arm-linux-nat.c: Update calls to regcache_register_status
11003 instead of regcache_valid_p.
11004 * aix-thread.c: Likewise.
11005 * i386gnu-nat.c: Likewise.
11007 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11010 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
11011 touching TYPE_FIELD_ARTIFICIAL.
11013 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
11015 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
11018 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11020 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
11021 selected, don't try iterating over the traceframe's blocks.
11022 (tfile_has_stack): If there's no traceframe selected, then there's
11024 (tfile_has_registers): If there's no traceframe selected, then
11025 there's no registers.
11027 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11029 * target.c (memory_xfer_partial): No need to restore shadows if we
11030 haven't read anything.
11032 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11034 * mips-tdep.c (mips_print_register): Use get_frame_register_value
11035 and val_print_scalar_formatted.
11037 2011-01-27 Pedro Alves <pedro@codesourcery.com>
11039 * tracepoint.c (tfile_read): New.
11040 (tfile_open): Use it.
11041 (tfile_get_traceframe_address): Use it.
11042 (tfile_trace_find): Use it.
11043 (walk_blocks_callback_func): New typedef.
11044 (match_blocktype): New function.
11045 (traceframe_walk_blocks): New function.
11046 (traceframe_find_block_type): New function.
11047 (tfile_fetch_registers, tfile_xfer_partial)
11048 (tfile_get_trace_state_variable_value): Use
11049 traceframe_find_block_type and tfile_read.
11051 2011-01-26 Kevin Buettner <kevinb@redhat.com>
11053 * remote-mips.c: Add internationalization mark ups. Remove
11054 trailing \n from already marked up strings.
11056 2011-01-26 Tom Tromey <tromey@redhat.com>
11058 * python/py-prettyprint.c (print_string_repr): Clear
11059 'addressprint' option when calling val_print_string.
11060 (print_children): Handle Val_pretty_default. Clear 'addressprint'
11061 option when calling val_print_string.
11063 2011-01-26 Tom Tromey <tromey@redhat.com>
11065 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11067 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11069 (gdb_py_longest, gdb_py_ulongest): New typedefs.
11070 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11071 (gdb_py_long_as_ulongest): New defines.
11072 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11073 (gdb_py_int_as_long): Declare.
11074 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11075 GDB_PY_LL_ARG, gdb_py_object_from_longest.
11076 (valpy_long): Add comment.
11077 * python/py-utils.c (get_addr_from_python): Use
11078 gdb_py_long_as_ulongest. Handle overflow properly.
11079 (gdb_py_object_from_longest): New function.
11080 (gdb_py_object_from_ulongest): Likewise.
11081 (gdb_py_int_as_long): Likewise.
11082 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11083 * python/py-symtab.c (salpy_get_pc): Use
11084 gdb_py_long_from_ulongest.
11085 (salpy_get_line): Use PyInt_FromLong.
11086 * python/py-param.c (set_parameter_value): Use
11087 gdb_py_int_as_long.
11088 * python/py-lazy-string.c (stpy_get_address): Use
11089 gdb_py_long_from_ulongest.
11090 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11091 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11092 * python/py-breakpoint.c (bppy_set_thread): Use
11093 gdb_py_int_as_long.
11094 (bppy_set_task): Likewise.
11095 (bppy_set_ignore_count): Likewise.
11096 (bppy_set_hit_count): Likewise.
11097 * python/py-block.c (blpy_get_start): Use
11098 gdb_py_object_from_ulongest.
11099 (blpy_get_end): Likewise.
11100 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11102 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
11105 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11106 * gdb/solib.c (solib_read_symbols): Check for addr_low in
11107 equality test for objfile, initialize addr_low if needed.
11109 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11111 * tui/tui-regs.c (tui_register_format): Remove dead code.
11113 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11115 * printcmd.c (print_formatted): Use val_print_scalar_formatted
11116 instead of print_scalar_formatted.
11117 (print_scalar_formatted): Don't handle 's' format strings here,
11118 and add an assertion that we never see such format here.
11119 * valprint.h (val_print_scalar_formatted): Declare.
11120 * valprint.c (val_print_scalar_formatted): New.
11121 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11122 instead of print_scalar_formatted.
11123 * jv-valprint.c (java_val_print): Ditto.
11124 * p-valprint.c (pascal_val_print): Ditto.
11125 * ada-valprint.c (ada_val_print_1): Ditto.
11126 * f-valprint.c (f_val_print): Ditto.
11127 * infcmd.c (registers_info): Ditto.
11128 * m2-valprint.c (m2_val_print): Ditto.
11130 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11132 * m2-valprint.c (print_unbounded_array): Pass
11133 value_contents_for_printing rather than value_contents, to
11134 m2_print_array_contents. Also pass in the value.
11136 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11138 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11139 (save_gdb_index_command): Switch to .gdb_index version 4.
11141 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11143 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11144 than frame_register, and always pass a valid value to val_print.
11146 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11148 Centralize printing "<optimized out>".
11150 * valprint.h (val_print_optimized_out): Declare.
11151 * cp-valprint.c (cp_print_value_fields): Use
11152 val_print_optimized_out.
11153 * jv-valprint.c (java_print_value_fields): Ditto.
11154 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11155 * printcmd.c (print_formatted): Ditto.
11156 * valprint.c (valprint_check_validity): Ditto.
11157 (value_check_printable): Ditto.
11158 (val_print_optimized_out): New.
11160 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11162 * infcmd.c (default_print_registers_info): Allocate values so to
11163 never pass a NULL value to val_print.
11165 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11167 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11168 boolean. Make sure to always pass a value that matches the
11169 contents buffer to callees. Preserve `address' for following
11171 * value.c (value_contents_for_printing_const): New.
11172 (value_address): Constify value argument.
11173 * value.h (value_contents_for_printing_const): Declare.
11174 (value_address): Constify value argument.
11176 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11178 * regcache.c (struct regcache_descr): Rename
11179 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11180 and sizeof_cooked_register_valid_p to
11181 sizeof_cooked_register_status.
11182 (init_regcache_descr): Adjust.
11183 (struct regcache): Rename register_valid_p field to
11185 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11186 (do_cooked_read): Adjust.
11187 (regcache_valid_p): Rename to ...
11188 (regcache_register_status): ... this. Adjust.
11189 (regcache_invalidate): Adjust.
11190 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11192 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11193 as unavailable, not valid.
11194 (regcache_dump): Adjust.
11195 * regcache.h (enum register_status): New.
11196 (regcache_register_status): Declare.
11197 (regcache_invalidate): Delete declaration.
11198 * corelow.c (get_core_registers): Adjust.
11199 * tracepoint.c (tfile_fetch_registers): Adjust.
11200 * trad-frame.c (REG_VALUE): Rename to ...
11201 (TF_REG_VALUE): ... this.
11202 (REG_UNKNOWN): Rename to ...
11203 (TF_REG_UNKNOWN): ... this.
11204 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11205 * mi/mi-main.c (register_changed_p): Adjust.
11207 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11209 * regcache.c (struct regcache_descr): Remove outdated comment.
11210 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11212 (regcache_xmalloc): Rename to ...
11213 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11214 Allocate the regcache type accordingly.
11215 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11216 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11217 cooked registers, not raw.
11218 (regcache_dup_no_passthrough): Delete.
11219 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11220 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11221 mention obsolete write_register_bytes.
11222 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11224 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11226 Stop remote_read_bytes from handling partial reads itself.
11228 * remote-fileio.c: Include target.h.
11229 (remote_fileio_write_bytes): Delete.
11230 (remote_fileio_func_open, remote_fileio_func_write)
11231 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11232 target_read_memory.
11233 (remote_fileio_func_stat): Use target_read_memory and
11234 target_write_memory.
11235 (remote_fileio_func_gettimeofday): Use target_write_memory.
11236 (remote_fileio_func_system): Use target_read_memory.
11237 * remote.c (remote_write_bytes): Make it static.
11238 (remote_read_bytes): Don't handle partial reads here.
11239 * remote.h (remote_read_bytes): Delete declaration.
11241 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11243 Simplify XML parsing a bit.
11245 * xml-support.h (gdb_xml_parse_quick): Declare.
11246 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11247 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11249 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11250 gdb_xml_create_parser_and_cleanup_1.
11251 (gdb_xml_parse_quick): New.
11252 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11253 * osdata.c (osdata_parse): Ditto.
11254 * remote.c (remote_threads_info): Ditto.
11255 * solib-target.c (solib_target_parse_libraries): Ditto.
11256 * xml-syscall.c (syscall_parse_xml): Ditto.
11257 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11259 2011-01-24 Kevin Buettner <kevinb@redhat.com>
11261 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11262 with remote-mips.o added to gdb_target_obs.
11263 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11265 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11267 * ada-valprint.c (val_print_packed_array_elements): Pass the
11268 correct struct value to val_print.
11269 (ada_val_print_1): Ditto.
11271 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11273 Don't lose embedded_offset in printing routines throughout.
11275 * valprint.h (val_print_array_elements): Change prototype.
11276 * valprint.c (val_print_array_elements): Add `embedded_offset'
11277 parameter, and adjust to pass it down to val_print, while passing
11278 `valaddr' or `address' unmodified. Take embedded_offset into
11279 account when checking repetitions.
11280 * c-valprint.c (c_val_print): Pass embedded_offset to
11281 val_print_array_elements instead of adjusting `valaddr' and
11283 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11284 embedded_offset to val_print_array_elements instead of adjusting
11286 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11287 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11288 val_print_array_elements and pascal_object_print_value_fields
11289 instead of adjusting `valaddr'.
11290 (pascal_object_print_value_fields): Add `offset' parameter, and
11292 (pascal_object_print_value): Add `offset' parameter, and adjust to
11294 (pascal_object_print_static_field): Use
11295 value_contents_for_printing/value_embedded_offset, rather than
11297 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11298 parameter, and adjust to use it. Use
11299 value_contents_for_printing/value_embedded_offset, rather than
11301 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11302 (ada_val_print_array): Add `offset' parameter, and adjust to use
11304 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11305 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11306 Instead work with offsets. Use
11307 value_contents_for_printing/value_embedded_offset, rather than
11308 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11309 and use value_from_pointer to extract a target pointer, rather
11310 than value_from_longest.
11311 (print_variant_part): Add `offset' parameter. Replace
11312 `outer_valaddr' parameter by a new `outer_offset' parameter.
11313 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11314 (ada_value_print): Use
11315 value_contents_for_printing/value_embedded_offset, rather than
11317 (print_record): Add `offset' parameter, and adjust to pass it
11319 (print_field_values): Add `offset' parameter. Replace
11320 `outer_valaddr' parameter by a new `outer_offset' parameter.
11321 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11322 Use value_contents_for_printing/value_embedded_offset, rather than
11324 * d-valprint.c (dynamic_array_type): Use
11325 value_contents_for_printing/value_embedded_offset, rather than
11327 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11328 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11329 (java_print_value_fields): Take `offset' into account. Don't
11330 re-adjust `valaddr'. Instead pass down adjusted offsets.
11331 (java_val_print): Take `embedded_offset' into account. Pass it to
11332 java_print_value_fields.
11333 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11334 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11335 down adjusted offsets.
11336 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11337 (f_val_print): Take `embedded_offset' into account.
11339 2011-01-21 Joel Brobecker <brobecker@adacore.com>
11341 * inflow.c: Include "gdbcmd.h".
11342 (interactive_mode): New static global, moved here from top.c.
11343 (show_interactive_mode): New function, moved here from top.c.
11344 use gdb_has_a_terminal instead of input_from_terminal_p to
11345 determine the current mode.
11346 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11348 (_initialize_inflow): Add the "set/show interactive-mode"
11349 commands. Moved here from top.c, after having adjusted slightly
11351 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11353 (input_from_terminal_p): Remove handling of "interactive-mode"
11354 setting, moved to infow.c.
11355 (init_main): Remove creation of the "set/show interactive-mode"
11356 commands, moved to inflow.c.
11358 2011-01-19 Joel Brobecker <brobecker@adacore.com>
11360 * NEWS: Add entry for native ia64-hpux support.
11362 2011-01-19 Tom Tromey <tromey@redhat.com>
11365 * thread.c (free_thread): Free 'name'.
11366 (print_thread_info): Emit thread name. Change CLI output.
11367 (thread_name_command): New function.
11368 (do_captured_thread_select): Emit newline.
11369 (_initialize_thread): Register 'thread name' command.
11370 * target.h (struct target_ops) <to_thread_name>: New field.
11371 (target_thread_name): New macro.
11372 * target.c (update_current_target): Handle to_thread_name.
11373 * python/py-infthread.c (thpy_get_name): New function.
11374 (thpy_set_name): Likewise.
11375 (thread_object_getset): Add "name".
11376 * linux-nat.c (linux_nat_thread_name): New function.
11377 (linux_nat_add_target): Set to_thread_name.
11378 * gdbthread.h (struct thread_info) <name>: New field.
11380 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11382 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11383 (ada_val_print_1): Likewise.
11385 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11387 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11388 upper limit address is not greater than the function end address
11389 when the upper limit could not be computed using the debugging
11392 2011-01-17 Tom Tromey <tromey@redhat.com>
11394 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11396 * utils.c: Include gdb_regex.h.
11397 (do_regfree_cleanup): New function.
11398 (make_regfree_cleanup): Likewise.
11399 (get_regcomp_error): Likewise.
11400 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11402 2011-01-17 Tom Tromey <tromey@redhat.com>
11404 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11405 re_compile_fastmap.
11407 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11409 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11410 for internal variables.
11411 (last_was_structop): New static variable.
11412 (COMPLETE): New token.
11413 (field_exp): New rule to group all '.' suffix handling.
11414 Add mark_struct_expression calls when approriate to be able
11415 to correctly find fields for completion.
11416 (yylex): Adapt to handle field completion and set INTVAR when
11419 2011-01-14 Yao Qi <yao@codesourcery.com>
11421 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11422 save_reggroup, restore_reggroup and all_reggroup.
11424 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11426 * ada-valprint. (ada_printchar): Use the correct type length
11427 in call to ada_emit_char.
11428 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11430 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11432 * solib-som.h (hpux_major_release): Declare variable here.
11433 * solib-som.c: Remove <sys/utsname.h> header.
11434 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11435 (hpux_major_release): Make global, change default value to
11436 DEFAULT_HPUX_MAJOR_RELEASE.
11437 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11438 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11439 Add "solib-som.h" header.
11440 (set_hpux_major_release): New function.
11441 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11443 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11445 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11447 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11449 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11450 new-line at end of warning message.
11451 (ia64_hpux_store_register): Remove trailing new-line at end of
11453 * ia64-hpux-tdep.c: Rephrase comment.
11454 * solib-ia64-hpux.c (struct dld_info): Change type of field
11455 dld_flags from "long long" to ULONGEST.
11457 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11459 * target.h (deprecated_child_ops): Delete declaration.
11460 * target.c (deprecated_child_ops): Delete definition.
11462 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11464 * Makefile.in (hpux-thread.o): Delete rule.
11465 * configure.ac: Don't check for HPUX DCE threads support.
11466 * configure, config.in: Regenerate.
11467 * hppa-hpux-nat.c (child_suppress_run): Delete.
11468 (hppa_hpux_child_can_run): Delete.
11469 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11470 * hpux-thread.c: Delete.
11472 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11474 * hpux-thread.c (hpux_pid_to_str): Delete.
11476 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11478 * ada-valprint.c (ada_emit_char): Remove strange code.
11479 Check that c is <= UCHAR_MAX before passing it to isascii.
11480 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11482 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11484 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11485 to the case where instream is stdin.
11487 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11489 * ia64-tdep.h (struct regcache): Forward declare.
11490 (struct ia64_infcall_ops): New struct type.
11491 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11493 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11494 Renames ia64_find_global_pointer.
11495 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11496 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11497 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11499 (ia64_infcall_ops): New static global constant.
11500 (ia64_gdbarch_init): Set tdep->infcall_ops.
11501 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11502 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11503 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11504 (ia64_hpux_dummy_code): New static global constant.
11505 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11506 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11507 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11509 (ia64_hpux_infcall_ops): New static global constant.
11510 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11511 for inferior function calls to work properly on ia64-hpux.
11513 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11515 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11516 * ia64-tdep.h (struct frame_info): forward declaration.
11517 (struct gdbarch_tdep): Add field size_of_register_frame.
11518 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11519 to determine the size of the register frame.
11520 (ia64_size_of_register_frame): New function.
11521 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11522 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11523 (IA64_HPUX_UREG_REASON): New macro.
11524 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11526 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11527 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11528 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11531 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11533 Add support for ia64-hpux.
11534 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11535 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11537 * configure.host: Add handling for ia64-hpux hosts. Add associated
11539 * configure.tgt: Add handling for ia64-hpux targets.
11540 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11541 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11542 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11544 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11546 [ttrace] Compute thread list immediately after attach.
11547 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11549 (inf_ttrace_attach): Use it.
11551 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11553 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11554 if we could not determine the frame's function address. Instead,
11555 use the frame's PC, and then continue.
11557 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11559 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11560 not already defined.
11562 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11564 * ia64-tdep.c (ia64_struct_type_p): New function.
11565 (ia64_extract_return_value): Handle integral values that are
11566 less than 8 bytes long.
11567 (ia64_push_dummy_call): Likewise.
11569 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11571 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11572 floatformat_ia64_ext.
11573 (floatformat_ia64_ext_big): New static const.
11574 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11576 2011-01-12 Tom Tromey <tromey@redhat.com>
11578 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11580 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11581 (mi_cmd_thread_list_ids): Likewise.
11582 (mi_cmd_data_list_changed_registers): Likewise.
11583 (mi_cmd_data_list_register_values): Likewise.
11584 (mi_cmd_data_write_register_values): Likewise.
11585 (mi_cmd_data_evaluate_expression): Likewise.
11586 (mi_cmd_data_read_memory): Likewise.
11587 (mi_cmd_data_read_memory_bytes): Likewise.
11588 (mi_cmd_data_write_memory): Likewise.
11589 (mi_cmd_enable_timings): Likewise.
11590 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11591 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11592 (mi_cmd_var_delete): Likewise.
11593 (mi_cmd_var_set_format): Likewise.
11594 (mi_cmd_var_show_format): Likewise.
11595 (mi_cmd_var_info_num_children): Likewise.
11596 (mi_cmd_var_list_children): Likewise.
11597 (mi_cmd_var_info_type): Likewise.
11598 (mi_cmd_var_info_expression): Likewise.
11599 (mi_cmd_var_show_attributes): Likewise.
11600 (mi_cmd_var_assign): Likewise.
11601 (mi_cmd_var_update): Likewise.
11602 (mi_cmd_enable_pretty_printing): Likewise.
11603 (mi_cmd_var_set_update_range): Likewise.
11604 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11606 (mi_cmd_target_file_put): Likewise.
11607 (mi_cmd_target_file_delete): Likewise.
11608 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11610 (mi_cmd_stack_info_depth): Likewise.
11611 (mi_cmd_stack_list_locals): Likewise.
11612 (mi_cmd_stack_list_args): Likewise.
11613 (mi_cmd_stack_select_frame): Likewise.
11614 (mi_cmd_stack_select_frame): Likewise.
11615 (mi_cmd_stack_info_frame): Likewise.
11616 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11618 (mi_cmd_file_list_exec_source_files): Likewise.
11619 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11620 (mi_cmd_env_cd): Likewise.
11621 (mi_cmd_env_path): Likewise.
11622 (mi_cmd_env_dir): Likewise.
11623 (mi_cmd_inferior_tty_show): Likewise.
11624 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11625 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11626 (mi_cmd_break_watch): Likewise.
11628 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11630 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11631 (ppc_linux_insert_hw_breakpoint): Likewise.
11632 (ppc_linux_remove_hw_breakpoint): Likewise.
11633 (ppc_linux_insert_watchpoint): Likewise.
11635 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11636 Jan Kratochvil <jan.kratochvil@redhat.com>
11638 PR fortran/11104 and DWARF unbound arrays detection.
11639 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11640 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11641 unspecified upper bound.
11642 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11643 variables array_size_array, tmp_type and offset_item. New variable
11644 array. Remove call to f77_get_upperbound. New variables array_type
11645 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11646 the final call to deprecated_set_value_type.
11648 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11650 Make value allocations more lazy.
11651 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11652 instead of allocate_value and set_value_lazy when possible.
11653 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11654 instead of allocate_value and set_value_lazy.
11655 * findvar.c (value_of_register_lazy): Likewise.
11656 (read_var_value): Remove V preallocation, call just check_typedef in
11657 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11658 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11659 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11660 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11661 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11662 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11663 the end, remove set_value_lazy there.
11664 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11665 instead of allocate_value and set_value_lazy when possible.
11666 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11667 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11668 of allocate_value and set_value_lazy.
11669 (value_from_contents_and_address): Use allocate_value_lazy instead of
11670 allocate_value and set_value_lazy when possible.
11672 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11674 * disasm.c (dump_insns): Support dumping opcodes for MI.
11675 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11676 dumping of instruction opcodes.
11678 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11680 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11683 2011-01-11 Tom Tromey <tromey@redhat.com>
11685 * thread.c (do_captured_thread_select): Emit newline before
11688 2011-01-11 Michael Snyder <msnyder@vmware.com>
11690 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11691 * score-tdep.c: Ditto.
11692 * score-tdep.h: Ditto.
11693 * ser-base.c: Ditto.
11694 * ser-go32.c: Ditto.
11697 * ser-mingw.c: Ditto.
11698 * ser-pipe.c: Ditto.
11699 * ser-tcp.c: Ditto.
11700 * ser-unix.c: Ditto.
11701 * sh64-tdep.c: Ditto.
11702 * shnbsd-nat.c: Ditto.
11703 * sh-tdep.c: Ditto.
11704 * sh-tdep.h: Ditto.
11706 * solib-darwin.c: Ditto.
11707 * solib-frv.c: Ditto.
11709 * solib-irix.c: Ditto.
11710 * solib-osf.c: Ditto.
11711 * solib-pa64.c: Ditto.
11712 * solib-som.c: Ditto.
11713 * solib-spu.c: Ditto.
11714 * solib-sunos.c: Ditto.
11715 * solib-svr4.c: Ditto.
11717 * sol-thread.c: Ditto.
11718 * somread.c: Ditto.
11721 * sparc64-linux-tdep.c: Ditto.
11722 * sparc64-tdep.c: Ditto.
11723 * sparc-linux-nat.c: Ditto.
11724 * sparc-linux-tdep.c: Ditto.
11725 * sparc-sol2-nat.c: Ditto.
11726 * sparc-sol2-tdep.c: Ditto.
11727 * sparc-tdep.c: Ditto.
11728 * sparc-tdep.h: Ditto.
11729 * spu-tdep.c: Ditto.
11730 * stabsread.c: Ditto.
11731 * stabsread.h: Ditto.
11733 * symfile.c: Ditto.
11734 * symfile.h: Ditto.
11735 * symmisc.c: Ditto.
11739 * target-descriptions.c: Ditto.
11740 * target-descriptions.h: Ditto.
11742 * target-memory.c: Ditto.
11743 * terminal.h: Ditto.
11746 * tracepoint.c: Ditto.
11747 * tracepoint.h: Ditto.
11748 * trad-frame.h: Ditto.
11749 * typeprint.c: Ditto.
11751 2011-01-11 Michael Snyder <msnyder@vmware.com>
11753 * ui-file.c: Comment cleanup, mostly periods and spaces.
11754 * ui-file.h: Ditto.
11758 * v850-tdep.c: Ditto.
11759 * valarith.c: Ditto.
11761 * valprint.c: Ditto.
11762 * valprint.h: Ditto.
11767 * vax-tdep.c: Ditto.
11770 * version.h: Ditto.
11771 * windows-nat.c: Ditto.
11772 * windows-tdep.c: Ditto.
11773 * xcoffread.c: Ditto.
11774 * xcoffsolib.c: Ditto.
11775 * xml-support.c: Ditto.
11776 * xstormy16-tdep.c: Ditto.
11777 * xtensa-tdep.c: Ditto.
11778 * xtensa-tdep.h: Ditto.
11780 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11782 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11783 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11785 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11786 Thiago Jung Bauermann <bauerman@br.ibm.com>
11788 Implement support for PowerPC BookE ranged watchpoints.
11790 (struct breakpoint_ops) <resources_needed>: New method.
11791 Initialize to NULL in all existing breakpoint_ops instances.
11792 (struct breakpoint) <exact>: New field.
11793 (target_exact_watchpoints): Declare external global.
11794 * breakpoint.c (target_exact_watchpoints): New global flag.
11795 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11796 b->enable_state to bp_enabled before calling
11797 hw_watchpoint_used_count.
11798 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11799 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11801 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11802 if the watchpoint is exact.
11803 (resources_needed_watchpoint): New function.
11804 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11805 (watch_command_1): Set b->exact if the user asked for an exact
11806 watchpoint and one can be set.
11807 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11808 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11809 the user asks for an exact watchpoint and one can be set. Return
11810 number of needed debug registers to watch the expression.
11811 * gdbtypes.c (is_scalar_type): New function, based on
11812 valprint.c:scalar_type_p.
11813 (is_scalar_type_recursive): New function.
11814 * gdbtypes.h (is_scalar_type_recursive): Declare.
11815 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11816 handle regions when ranged watchpoints are available.
11817 (create_watchpoint_request): New function.
11818 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11819 create_watchpoint_request.
11820 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11821 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11822 `set powerpc' and `show powerpc' commands.
11823 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11824 Mention documentation comment in the target macro.
11825 (target_region_ok_for_hw_watchpoint): Document return value.
11827 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11829 * breakpoint.c (update_watchpoint): Decide on using a software or
11830 hardware watchpoint after the bp_locations are created.
11832 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11834 Convert hardware watchpoints to use breakpoint_ops.
11835 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11836 <insert_location>: ... this. Return int instead of void.
11837 Accept pointer to struct bp_location instead of pointer to
11838 struct breakpoint. Adapt all implementations.
11839 (breakpoint_ops) <remove>: Rename to...
11840 <remove_location>: ... this. Accept pointer to struct bp_location
11841 instead of pointer to struct breakpoint. Adapt all implementations.
11842 * breakpoint.c (insert_catchpoint): Delete function.
11843 (insert_bp_location): Call the watchpoint or catchpoint's
11844 breakpoint_ops.insert method.
11845 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11846 breakpoint_ops.remove method.
11847 (insert_watchpoint, remove_watchpoint): New functions.
11848 (watchpoint_breakpoint_ops): New structure.
11849 (watch_command_1): Initialize the OPS field.
11850 * inf-child.c (inf_child_insert_fork_catchpoint)
11851 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11852 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11853 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11855 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11856 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11857 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11858 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11859 * target.c (update_current_target): Change default implementation of
11860 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11861 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11862 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11863 to_set_syscall_catchpoint to return_one.
11864 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11865 (debug_to_insert_exec_catchpoint): Report return value.
11866 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11867 (to_insert_exec_catchpoint): Change declaration to return int instead
11870 2011-01-11 Michael Snyder <msnyder@vmware.com>
11872 * arm-tdep.c: Internationalization.
11874 * charset.c: Ditto.
11875 * fork-child.c: Ditto.
11876 * nto-procfs.c: Ditto.
11877 * ppc-sysv-tdep.c: Ditto.
11879 * remote-mips.c: Ditto.
11881 * rs6000-nat.c: Ditto.
11882 * rs6000-tdep.c: Ditto.
11886 * xml-support.c: Ditto.
11887 * mi/mi-cmd-break.c: Ditto.
11888 * mi/mi-cmd-var.c: Ditto.
11889 * mi/mi-interp.c: Ditto.
11890 * mi/mi-main.c: Ditto.
11892 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11894 * remote-sim.c (gdbsim_store_register): Update API to
11895 sim_store_register to check more error conditions.
11897 2011-01-10 Michael Snyder <msnyder@vmware.com>
11899 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11900 * nto-tdep.c: Ditto.
11901 * nto-tdep.h: Ditto.
11902 * objc-exp.y: Ditto.
11903 * objc-lang.c: Ditto.
11904 * objfiles.c: Ditto.
11905 * objfiles.h: Ditto.
11906 * observer.c: Ditto.
11907 * opencl-lang.c: Ditto.
11910 * parser-defs.h: Ditto.
11913 * posix-hdep.c: Ditto.
11914 * ppcbug-rom.c: Ditto.
11915 * ppc-linux-nat.c: Ditto.
11916 * ppc-linux-tdep.c: Ditto.
11917 * ppc-linux-tdep.h: Ditto.
11918 * ppcnbsd-tdep.c: Ditto.
11919 * ppcobsd-tdep.c: Ditto.
11920 * ppcobsd-tdep.h: Ditto.
11921 * ppc-sysv-tdep.c: Ditto.
11922 * ppc-tdep.h: Ditto.
11923 * printcmd.c: Ditto.
11924 * proc-abi.c: Ditto.
11925 * proc-flags.c: Ditto.
11927 * proc-utils.h: Ditto.
11928 * progspace.h: Ditto.
11929 * prologue-value.c: Ditto.
11930 * prologue-value.h: Ditto.
11931 * psympriv.h: Ditto.
11932 * psymtab.c: Ditto.
11933 * p-typeprint.c: Ditto.
11934 * p-valprint.c: Ditto.
11935 * ravenscar-sparc-thread.c: Ditto.
11936 * ravenscar-thread.c: Ditto.
11937 * ravenscar-thread.h: Ditto.
11939 * regcache.c: Ditto.
11940 * regcache.h: Ditto.
11942 * remote-fileio.c: Ditto.
11943 * remote-fileio.h: Ditto.
11945 * remote-m32r-sdi.c: Ditto.
11946 * remote-mips.c: Ditto.
11947 * remote-sim.c: Ditto.
11948 * rs6000-aix-tdep.c: Ditto.
11949 * rs6000-nat.c: Ditto.
11950 * rs6000-tdep.c: Ditto.
11952 2011-01-10 Michael Snyder <msnyder@vmware.com>
11954 * charset.c (validate): Internationalization.
11955 * coffread.c (read_one_sym): Ditto.
11956 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11957 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11958 * inflow.c (new_tty): Ditto.
11959 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11960 * m32c-tdep.c (m32c_return_value): Ditto.
11961 * mep-tdep.c (mep_store_return_value): Ditto.
11962 * score-tdep.c (score7_fetch_insn): Ditto.
11963 * ser-mingw.c (pipe_windows_open): Ditto.
11964 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11965 * spu-tdep.c (spu_register_type): Ditto.
11966 * tracepoint.c (trace_find_command): Ditto.
11967 * valarith.c (value_pos): Ditto.
11969 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11971 * ada-valprint.c (printstr): Minor comment reformatting.
11973 2011-01-08 Michael Snyder <msnyder@vmware.com>
11975 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11978 2011-01-08 Michael Snyder <msnyder@vmware.com>
11980 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11981 * hppa-hpux-tdep.c: Ditto.
11982 * hppa-linux-nat.c: Ditto.
11983 * hppa-linux-tdep.c: Ditto.
11984 * hppanbsd-tdep.c: Ditto.
11985 * hppa-tdep.c: Ditto.
11986 * hppa-tdep.h: Ditto.
11987 * hpux-thread.c: Ditto.
11988 * i386-cygwin-tdep.c: Ditto.
11989 * i386-darwin-nat.c: Ditto.
11990 * i386gnu-nat.c: Ditto.
11991 * i386-linux-nat.c: Ditto.
11992 * i386-linux-tdep.c: Ditto.
11993 * i386-nat.c: Ditto.
11994 * i386-nat.h: Ditto.
11995 * i386nbsd-tdep.c: Ditto.
11996 * i386-sol2-nat.c: Ditto.
11997 * i386-stub.c: Ditto.
11998 * i386-tdep.c: Ditto.
11999 * i386-tdep.h: Ditto.
12000 * i387-tdep.c: Ditto.
12001 * ia64-linux-nat.c: Ditto.
12002 * ia64-linux-tdep.c: Ditto.
12003 * ia64-tdep.c: Ditto.
12004 * infcall.c: Ditto.
12005 * infcall.h: Ditto.
12007 * inferior.c: Ditto.
12008 * inferior.h: Ditto.
12009 * infloop.c: Ditto.
12012 * interps.c: Ditto.
12013 * interps.h: Ditto.
12014 * iq2000-tdep.c: Ditto.
12015 * irix5-nat.c: Ditto.
12019 * jv-lang.c: Ditto.
12020 * jv-lang.h: Ditto.
12021 * jv-typeprint.c: Ditto.
12022 * jv-valprint.c: Ditto.
12023 * language.c: Ditto.
12024 * language.h: Ditto.
12025 * linespec.c: Ditto.
12026 * linux-fork.c: Ditto.
12027 * linux-nat.c: Ditto.
12028 * linux-thread-db.c: Ditto.
12029 * lm32-tdep.c: Ditto.
12031 2011-01-08 Michael Snyder <msnyder@vmware.com>
12033 * m2-exp.y: Comment cleanup, mostly periods and spaces.
12034 * m2-lang.c: Ditto.
12035 * m2-typeprint.c: Ditto.
12036 * m2-valprint.c: Ditto.
12037 * m32c-tdep.c: Ditto.
12038 * m32r-linux-nat.c: Ditto.
12039 * m32r-rom.c: Ditto.
12040 * m32r-tdep.c: Ditto.
12041 * m32r-tdep.h: Ditto.
12042 * m68hc11-tdep.c: Ditto.
12043 * m58klinux-nat.c: Ditto.
12044 * m68k-tdep.c: Ditto.
12045 * m88k-tdep.c: Ditto.
12046 * m88k-tdep.h: Ditto.
12047 * machoread.c: Ditto.
12048 * macrocmd.c: Ditto.
12049 * macroexp.c: Ditto.
12050 * macrotab.c: Ditto.
12053 * mdebugread.c: Ditto.
12054 * mdebugread.h: Ditto.
12055 * memattr.c: Ditto.
12056 * memattr.h: Ditto.
12057 * memory-map.h: Ditto.
12058 * mep-tdep.c: Ditto.
12059 * microblaze-rom.c: Ditto.
12060 * microblaze-tdep.c: Ditto.
12061 * minsyms.c: Ditto.
12062 * mips-irix-tdep.c: Ditto.
12063 * mips-linux-nat.c: Ditto.
12064 * mips-linux-tdep.c: Ditto.
12065 * mips-linux-tdep.h: Ditto.
12066 * mipsnbsd-nat.c: Ditto.
12067 * mipsnbsd-tdep.c: Ditto.
12068 * mipsread.c: Ditto.
12069 * mips-tdep.c: Ditto.
12070 * mips-tdep.h: Ditto.
12071 * mn10300-linux-tdep.c: Ditto.
12072 * mn10300-tdep.c: Ditto.
12073 * mn10300-tdep.h: Ditto.
12074 * monitor.c: Ditto.
12075 * monitor.h: Ditto.
12076 * moxie-tdep.c: Ditto.
12077 * moxie-tdep.h: Ditto.
12078 * mt-tdep.c: Ditto.
12080 2011-01-08 Mike Frysinger <vapier@gentoo.org>
12082 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12084 2011-01-08 Robert Millan <rmh@gnu.org>
12086 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12088 2011-01-07 Michael Snyder <msnyder@vmware.com>
12090 * charset.c (_initialize_charset): Fix typo in string.
12092 2011-01-07 Michael Snyder <msnyder@vmware.com>
12094 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12096 * tui/tui-layout.c (tui_set_layout_for_display_command):
12097 Split line so that operator goes to beginning of line.
12098 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12099 assignment out of if statement.
12101 2011-01-07 Michael Snyder <msnyder@vmware.com>
12103 * ada-lang.c: Comment cleanup, mostly periods and spaces.
12104 * ada-lang.h: Ditto.
12105 * ada-tasks.c: Ditto.
12106 * ada-valprint.c: Ditto.
12107 * aix-threads.c: Ditto.
12108 * alpha-linux-nat.c: Ditto.
12109 * alpha-linux-tdep.c: Ditto.
12110 * alpha-mdebug-tdep.c: Ditto.
12111 * alpha-nat.c: Ditto.
12112 * alpha-osf1-tdep.c: Ditto.
12113 * alpha-tdep.c: Ditto.
12114 * alphabsd-nat.c: Ditto.
12115 * alphabsd-tdep.c: Ditto.
12116 * amd64-darwin-tdep.c: Ditto.
12117 * amd64-linux-nat.c: Ditto.
12118 * amd64-linux-tdep.c: Ditto.
12119 * amd64-sol2-tdep.c: Ditto.
12120 * amd64-tdep.c: Ditto.
12121 * amd64-fbsd-tdep.c: Ditto.
12122 * amd64-nbsd-tdep.c: Ditto.
12123 * amd64-obsd-tdep.c: Ditto.
12124 * amd64-linux-nat.c: Ditto.
12125 * amd64-linux-tdep.c: Ditto.
12126 * arm-tdep.c: Ditto.
12127 * arm-tdep.h: Ditto.
12128 * armnbsd-nat.c: Ditto.
12129 * avr-tdep.c: Ditto.
12130 * bfin-tdep.c: Ditto.
12131 * bsd-kvm.c: Ditto.
12132 * c-typeprintc: Ditto.
12133 * c-valprint.c: Ditto.
12134 * coff-pe-read.h: Ditto.
12135 * coffreead.c: Ditto.
12136 * cris-tdep.c: Ditto.
12138 * darwin-nat-info.c: Ditto.
12139 * darwin-nat.c: Ditto.
12140 * dbug-rom.c: Ditto.
12141 * dbxread.c: Ditto.
12144 * dec-thread.c: Ditto.
12146 * demangle.c: Ditto.
12147 * dicos-tdep.c: Ditto.
12148 * dictionary.c: Ditto.
12149 * dictionary.h: Ditto.
12150 * dink32-rom.c: Ditto.
12152 * doublest.c: Ditto.
12154 * dummy-frame.c: Ditto.
12155 * dwarf2-frame.c: Ditto.
12156 * dwarf2expr.c: Ditto.
12157 * dwarf2loc.c: Ditto.
12158 * dwarf2read.c: Ditto.
12159 * elfread.c: Ditto.
12160 * environ.c: Ditto.
12162 * event-top.h: Ditto.
12163 * exceptions.c: Ditto.
12164 * exceptions.h: Ditto.
12166 * expprint.c: Ditto.
12167 * expression.h: Ditto.
12171 * f-typeprint.c: Ditto.
12172 * f-valprint.c: Ditto.
12173 * fbsd-nat.c: Ditto.
12174 * findvar.c: Ditto.
12175 * fork-child.c: Ditto.
12178 * frv-linux-tdep.c: Ditto.
12179 * frv-tdep.c: Ditto.
12181 * gdb-stabs.h: Ditto.
12182 * gdb_assert.h: Ditto.
12183 * gdb_string.h: Ditto.
12184 * gdb_thread_db.h: Ditto.
12185 * gdb_wait.h: Ditto.
12186 * gdbarch.sh: Ditto.
12187 * gdbcore.h: Ditto.
12188 * gdbthread.h: Ditto.
12189 * gdbtypes.c: Ditto.
12190 * gdbtypes.h: Ditto.
12191 * gnu-nat.c: Ditto.
12192 * gnu-nat.h: Ditto.
12193 * gnu-v2-abi.c: Ditto.
12194 * gnu-v3-abi.c: Ditto.
12195 * go32-nat.c: Ditto.
12196 * gdbarch.c: Regenerate.
12197 * gdbarch.h: Regenerate.
12199 2011-01-07 Michael Snyder <msnyder@vmware.com>
12201 * ax-gdb.c: Adjust some long output strings.
12202 * breakpoint.c: Ditto.
12203 * charset.c: Ditto.
12205 * infcall.c: Ditto.
12207 * linux-nat.c: Ditto.
12208 * solib-pa64.c: Ditto.
12209 * solib-som.c: Ditto.
12211 2011-01-06 Tom Tromey <tromey@redhat.com>
12215 * python/python.c (GdbMethods): Add "newest_frame" method.
12216 * python/python-internal.h (gdbpy_newest_frame): Declare.
12217 * python/py-frame.c (gdbpy_newest_frame): New function.
12219 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12221 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12222 * jit.c (jit_debug): New variable.
12223 (show_jit_debug): New function.
12224 (struct target_buffer): Use ULONGEST.
12225 (bfd_open_from_target_memory): Likewise.
12226 (jit_register_code, jit_inferior_init): Add debug output.
12227 (_initialize_jit): Register "debug jit" command.
12229 2011-01-06 Tom Tromey <tromey@redhat.com>
12231 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12232 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12235 2011-01-06 Tom Tromey <tromey@redhat.com>
12237 * python/py-frame.c (frapy_block): Use get_frame_block.
12239 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12241 Do not stop on SIGPRIO signals by default
12242 * infrun.c (_initialize_infrun): Unset signal_stop and
12243 signal_print for TARGET_SIGNAL_PRIO.
12245 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12247 * ada-tasks.c: Fix style violation in comment.
12249 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12251 * linespec.c (decode_compound, find_method): Remove trailing \n
12252 at end of error string.
12253 * solib-irix.c (irix_current_sos): Likewise.
12254 * varobj.c (uninstall_variable): Likewise.
12256 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12258 * copyright.py: New script.
12259 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12260 Launch emacs without exec'ing. Call copyright.py afterwards.
12262 2011-01-05 Michael Snyder <msnyder@vmware.com>
12264 * addrmap.c: Shorten lines of >= 80 columns.
12265 * arch-utils.c: Ditto.
12266 * arch-utils.h: Ditto.
12268 * ax-general.c: Ditto.
12270 * blockframe.c: Ditto.
12271 * breakpoint.c: Ditto.
12272 * buildsym.c: Ditto.
12274 * c-typeprint.c: Ditto.
12275 * charset.c: Ditto.
12276 * coffread.c: Ditto.
12277 * command.h: Ditto.
12278 * corelow.c: Ditto.
12280 * cp-namespace.c: Ditto.
12281 * cp-support.c: Ditto.
12282 * dbug-rom.c: Ditto.
12283 * dbxread.c: Ditto.
12287 * dictionary.c: Ditto.
12289 * doublest.c: Ditto.
12290 * dwarf2-frame.c: Ditto.
12291 * dwarf2expr.c: Ditto.
12292 * dwarf2loc.c: Ditto.
12293 * dwarf2read.c: Ditto.
12294 * elfread.c: Ditto.
12296 * event-loop.c: Ditto.
12297 * event-loop.h: Ditto.
12298 * exceptions.h: Ditto.
12300 * expprint.c: Ditto.
12301 * expression.h: Ditto.
12303 * f-valprint.c: Ditto.
12304 * findcmd.c: Ditto.
12305 * frame-base.c: Ditto.
12306 * frame-unwind.c: Ditto.
12307 * frame-unwind.h: Ditto.
12311 * gdb-stabs.h: Ditto.
12312 * gdb_assert.h: Ditto.
12313 * gdb_dirent.h: Ditto.
12314 * gdb_obstack.h: Ditto.
12315 * gdbcore.h: Ditto.
12316 * gdbtypes.c: Ditto.
12317 * gdbtypes.h: Ditto.
12318 * inf-ttrace.c: Ditto.
12319 * infcall.c: Ditto.
12323 * inline-frame.h: Ditto.
12324 * language.c: Ditto.
12325 * language.h: Ditto.
12326 * libunwind-frame.c: Ditto.
12327 * libunwind-frame.h: Ditto.
12328 * linespec.c: Ditto.
12329 * linux-nat.c: Ditto.
12330 * linux-nat.h: Ditto.
12331 * linux-thread-db.c: Ditto.
12332 * machoread.c: Ditto.
12333 * macroexp.c: Ditto.
12334 * macrotab.c: Ditto.
12337 * mdebugread.c: Ditto.
12338 * memattr.c: Ditto.
12339 * minsyms.c: Ditto.
12340 * monitor.c: Ditto.
12341 * monitor.h: Ditto.
12342 * objfiles.c: Ditto.
12343 * objfiles.h: Ditto.
12345 * p-typeprint.c: Ditto.
12346 * p-valprint.c: Ditto.
12348 * printcmd.c: Ditto.
12349 * proc-events.c: Ditto.
12351 * progspace.c: Ditto.
12352 * progspace.h: Ditto.
12353 * psympriv.h: Ditto.
12354 * psymtab.c: Ditto.
12356 * regcache.c: Ditto.
12357 * regcache.h: Ditto.
12358 * remote-fileio.c: Ditto.
12360 * ser-mingw.c: Ditto.
12361 * ser-tcp.c: Ditto.
12362 * ser-unix.c: Ditto.
12365 * solib-frv.c: Ditto.
12366 * solib-irix.c: Ditto.
12367 * solib-osf.c: Ditto.
12368 * solib-pa64.c: Ditto.
12369 * solib-som.c: Ditto.
12370 * solib-sunos.c: Ditto.
12371 * solib-svr4.c: Ditto.
12372 * solib-target.c: Ditto.
12374 * somread.c: Ditto.
12376 * stabsread.c: Ditto.
12377 * stabsread.c: Ditto.
12380 * symfile-mem.c: Ditto.
12381 * symfile.c: Ditto.
12382 * symfile.h: Ditto.
12383 * symmisc.c: Ditto.
12386 * target-descriptions.c: Ditto.
12387 * target-memory.c: Ditto.
12390 * terminal.h: Ditto.
12393 * tracepoint.c: Ditto.
12394 * tracepoint.h: Ditto.
12395 * ui-file.c: Ditto.
12396 * ui-file.h: Ditto.
12398 * user-regs.c: Ditto.
12399 * user-regs.h: Ditto.
12401 * valarith.c: Ditto.
12403 * valprint.c: Ditto.
12404 * valprint.h: Ditto.
12409 * xcoffread.c: Ditto.
12410 * xcoffsolib.c: Ditto.
12411 * xcoffsolib.h: Ditto.
12412 * xml-syscall.c: Ditto.
12413 * xml-tdesc.c: Ditto.
12415 2011-01-05 Michael Snyder <msnyder@vmware.com>
12417 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12418 * cli/cli-decode.c: Ditto.
12419 * cli/cli-dump.c: Ditto.
12420 * cli/cli-logging.c: Ditto.
12421 * cli/cli-script.c: Ditto.
12422 * cli/cli-setshow.c: Ditto.
12423 * common/signals.c: Ditto.
12424 * mi/mi-cmd-break.c: Ditto.
12425 * mi/mi-cmd-disas.c: Ditto.
12426 * mi/mi-cmd-stack.c: Ditto.
12427 * mi/mi-cmd-var.c: Ditto.
12428 * mi/mi-cmds.c: Ditto.
12429 * mi/mi-common.h: Ditto.
12430 * mi/mi-console.c: Ditto.
12431 * mi/mi-interp.c: Ditto.
12432 * mi/mi-main.c: Ditto.
12433 * osf-share/cma_attr.c: Ditto.
12434 * osf-share/cma_deb_core.h: Ditto.
12435 * osf-share/cma_debug_client.h: Ditto.
12436 * osf-share/cma_handle.h: Ditto.
12437 * osf-share/cma_mutex.h: Ditto.
12438 * osf-share/cma_stack_int.h: Ditto.
12439 * osf-share/cma_tcb_defs.h: Ditto.
12440 * python/py-auto-load.c: Ditto.
12441 * python/py-breakpoint.c: Ditto.
12442 * python/py-cmd.c: Ditto.
12443 * python/py-frame.c: Ditto.
12444 * python/py-objfile.c: Ditto.
12445 * python/py-param.c: Ditto.
12446 * python/py-progspace.c: Ditto.
12447 * python/py-symbol.c: Ditto.
12448 * python/py-value.c: Ditto.
12449 * python/python-internal.h: Ditto.
12450 * python/python.c: Ditto.
12451 * tui/tui-data.c: Ditto.
12452 * tui/tui-disasm.c: Ditto.
12453 * tui/tui-hooks.c: Ditto.
12454 * tui/tui-io.c: Ditto.
12455 * tui/tui-layout.c: Ditto.
12456 * tui/tui-regs.c: Ditto.
12457 * tui/tui-source.c: Ditto.
12458 * tui/tui-stack.c: Ditto.
12459 * tui/tui-win.c: Ditto.
12460 * tui/tui-windata.c: Ditto.
12461 * tui/tui-winsource.c: Ditto.
12463 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12465 * configure.ac, gdb.1: Copyright year update.
12467 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12469 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12470 this_pc_in_block, morestack_msym and morestack_name. Check for
12471 "__morestack" minimal symbol there.
12473 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12475 * symfile.c (find_sym_fns): Add call to dont_repeat.
12477 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12479 Copyright year update in most files (performed by copyright.sh).
12481 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12483 * top.c (print_gdb_version): Update copyright year in version output.
12485 For older changes see ChangeLog-2010.
12491 version-control: never