1 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
5 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9 Build gdb directly from *.o files not using libgdb.a.
10 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11 (COMMON_OBS): Remove solib-target.o.
12 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
13 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
14 (LIBGDB_OBS, libgdb.a): Move it above.
15 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
16 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
17 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
18 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
19 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
20 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
21 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
22 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
23 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
24 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
25 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
26 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
27 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
28 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
29 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
30 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
31 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
32 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
33 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
34 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
35 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
36 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
37 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
38 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
39 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
40 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
41 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
43 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
45 Remove the gdbtui binary.
46 * .gitignore (/gdbtui): Remove.
47 * Makefile.in (TUI): Remove.
48 (SUBDIR_TUI_OBS): Remove tui-main.o.
49 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
50 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
52 (all_object_files): Remove tui-main.o.
53 * NEWS: New note for the gdbtui removal.
55 * configure.ac: No longer add all-tui, clean-tui, install-tui and
56 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
57 CONFIG_UNINSTALL respectively.
58 * gdb.c (main): Remove args.interpreter_p initialization.
59 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
60 * main.h (struct captured_main_args): Remove interpreter_p.
61 * tui/tui-main.c: Remove.
63 2012-01-01 Doug Evans <dje@google.com>
65 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
66 (dwarf2_physname, read_import_statement): Ditto.
67 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
68 (process_structure_scope read_subroutine_type): Ditto.
69 (read_typedef, load_partial_dies, read_partial_die): Ditto.
70 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
71 (dwarf2_fetch_die_location_block): Ditto.
72 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
74 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
76 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
77 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
78 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
80 * dwarf2read.c (load_cu): Move assert to more useful location.
82 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
85 * dwarf2read.c (dwarf2_per_objfile): Add comment.
86 (dwarf2_elf_names): Minor reformat.
87 (dwarf2_per_cu_data): Tweak comment.
88 (dwarf2_read_section): Fix comment.
89 (create_all_comp_units): Fix comment.
90 (load_full_comp_unit): Fix comment.
91 (process_full_comp_unit): Fix comment.
92 (read_signatured_type): Fix comment.
94 2011-12-30 Doug Evans <dje@google.com>
96 * dwarf2read.c (read_typedef): Guard against self-referential typedefs.
98 2011-12-28 Jan Kratochvil <jan.kratochvil@redhat.com>
100 * gdbarch.sh (max_insn_length): Extend the comment by unit.
101 * gdbarch.h: Regenerate.
103 2011-12-28 Joel Brobecker <brobecker@adacore.com>
105 * varobj.c (varobj_update): Minor reformatting, putting the function
106 name at the start of the next line.
108 2011-12-27 Doug Evans <dje@google.com>
110 * dwarf2read.c (struct dwarf2_cu): Delete members first_fn, last_fn,
112 (struct function_range): Delete.
113 (initialize_cu_func_list, add_to_cu_func_list): Delete. All callers
115 (check_cu_functions): Ditto.
117 2011-12-27 Mark Kettenis <kettenis@gnu.org>
119 * inf-ptrace.c [PT_IO && PIOD_READ_AUXV]
120 (inf_ptrace_xfer_partial): Implement TARGET_OBJECT_AUXV.
121 (inf_ptrace_auxv_parse): New function.
122 (inf_ptrace_target): Initialize to_auxv_parse field.
124 2011-12-27 Joel Brobecker <brobecker@adacore.com>
126 * ada-lang.c (should_use_wild_match): New function.
127 (ada_lookup_simple_minsym): Use should_use_wild_match.
128 Minor simplification. Add comment.
129 (ada_lookup_symbol_list): Use should_use_wild_match.
130 Minor simplification.
132 2011-12-27 Joel Brobecker <brobecker@adacore.com>
134 * py-finishbreakpoint.c (bpfinishpy_init): Replace call to
135 sprintf by call to xsnprintf.
137 2011-12-27 Joel Brobecker <brobecker@adacore.com>
139 * linespec.c (struct collect_minsyms) [list_mode]: New field.
140 (add_minsym): Ignore data symbols if not in list mode.
141 (search_minsyms_for_name): Set local.list_mode.
143 2011-12-27 Joel Brobecker <brobecker@adacore.com>
145 * utils.c (gdb_realpath): Add better support for Windows hosts.
147 2011-12-23 Kevin Pouget <kevin.pouget@st.com>
149 Introduce gdb.FinishBreakpoint in Python.
150 * NEWS: Add entry for FinishBreakpoint.
151 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-finishbreakpoint.o.
152 (SUBDIR_PYTHON_SRCS): Add python/py-finishbreakpoint.c.
153 Add build rule for this file.
154 * infcmd.c (print_return_value): Split to create get_return_value.
155 (get_return_value): New function based on print_return_value. Handle
156 case where stop_registers are not set.
157 * inferior.h (get_return_value): New prototype.
158 * python/py-breakpoint.c (bppy_pending_object): Make non-static.
159 (gdbpy_breakpoint_created): Set is_py_finish_bp is necessary.
160 (struct breakpoint_object): Move to python-internal.h
161 (BPPY_REQUIRE_VALID): Likewise.
162 (BPPY_SET_REQUIRE_VALID): Likewise.
163 (gdbpy_breakpoint_created): Initialize is_finish_bp.
164 (gdbpy_should_stop): Add pre/post hooks before/after calling stop
166 * python/python-internal.h (breakpoint_object_type): Add as extern.
167 (bppy_pending_object): Likewise.
168 (typedef struct breakpoint_object) Removed.
169 (struct breakpoint_object): Moved from py-breakpoint.c.
170 Add field is_finish_bp.
171 (BPPY_REQUIRE_VALID): Moved from py-breakpoint.c.
172 (BPPY_SET_REQUIRE_VALID): Likewise.
173 (frame_object_to_frame_info): New prototype.
174 (gdbpy_initialize_finishbreakpoints): New prototype.
175 (bpfinishpy_is_finish_bp): Likewise.
176 (bpfinishpy_pre_stop_hook): Likewise.
177 (bpfinishpy_post_stop_hook): Likewise.
178 * python/py-finishbreakpoint.c: New file.
179 * python/py-frame.c(frame_object_to_frame_info): Make non-static and
180 accept PyObject instead of frame_object.
181 (frapy_is_valid): Don't cast to frame_object.
182 (frapy_name): Likewise.
183 (frapy_type): Likewise.
184 (frapy_unwind_stop_reason): Likewise.
185 (frapy_pc): Likewise.
186 (frapy_block): Likewise.
187 (frapy_function): Likewise.
188 (frapy_older): Likewise.
189 (frapy_newer): Likewise.
190 (frapy_find_sal): Likewise.
191 (frapy_read_var): Likewise.
192 (frapy_select): Likewise.
193 * python/python.c (gdbpy_is_stopped_at_finish_bp): New noop function.
194 (_initialize_python): Add gdbpy_initialize_finishbreakpoints.
195 * python/python.h: Include breakpoint.h
196 (gdbpy_is_stopped_at_finish_bp): New prototype.
198 2011-12-22 Tom Tromey <tromey@redhat.com>
201 * value.h (release_value_or_incref): Declare.
202 * value.c (struct value) <released>: New field.
203 (free_all_values, release_value, value_release_to_mark): Update
205 (release_value_or_incref): New function.
206 * python/py-value.c (valpy_new): Use release_value_or_incref.
207 (value_to_value_object): Likewise.
208 * varobj.c (install_new_value): Move value_incref earlier.
210 2011-12-22 Tom Tromey <tromey@redhat.com>
212 * value.c (struct value) <modifiable, lazy, optimized_out,
213 initialized, stack>: Now bitfields. Move to top.
214 <reference_count>: Move earlier.
216 2011-12-21 Tom Tromey <tromey@redhat.com>
218 * minsyms.h: Rearrange. Document header and all functions.
219 * minsyms.c: Move some comments to minsyms.h.
221 2011-12-21 Tom Tromey <tromey@redhat.com>
223 * symtab.h: Include minsyms.h.
224 (prim_record_minimal_symbol, prim_record_minimal_symbol_full)
225 (prim_record_minimal_symbol_and_info, msymbol_hash_iw)
226 (msymbol_hash, SYMBOL_HASH_NEXT, msymbol_objfile)
227 (lookup_minimal_symbol, lookup_minimal_symbol_text)
228 (lookup_minimal_symbol_solib_trampoline)
229 (lookup_minimal_symbol_by_pc_name, lookup_minimal_symbol_by_pc)
230 (iterate_over_minimal_symbols, lookup_minimal_symbol_and_objfile)
231 (lookup_minimal_symbol_by_pc_section)
232 (lookup_solib_trampoline_symbol_by_pc)
233 (init_minimal_symbol_collection)
234 (make_cleanup_discard_minimal_symbols, install_minimal_symbols)
235 (msymbols_sort): Move to minsyms.h.
236 * objfiles.c (terminate_minimal_symbol_table): Move to minsyms.c.
237 * minsyms.c (terminate_minimal_symbol_table): Move from
239 * minsyms.h: New file.
241 2011-12-21 Tom Tromey <tromey@redhat.com>
243 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence): Use
244 ALL_OBJFILE_MSYMBOLS.
245 (hppa_hpux_find_dummy_bpaddr): Likewise.
246 * jit.c (jit_object_close_impl): Use
247 terminate_minimal_symbol_table.
249 2011-12-21 Tom Tromey <tromey@redhat.com>
251 * elfread.c (elf_symtab_read): Put the filename in the filename
254 2011-12-21 Tom Tromey <tromey@redhat.com>
256 * symtab.h (struct minimal_symbol) <filename>: Now const.
258 2011-12-21 Ulrich Weigand <ulrich.weigand@linaro.org>
261 * arm-tdep.c (arm_return_value): Handle complex types.
263 2011-12-21 Andreas Schwab <schwab@linux-m68k.org>
265 * ppc-linux-nat.c (create_watchpoint_request): Only use ranged
266 watchpoints when supported.
268 2011-12-21 Jan Kratochvil <jan.kratochvil@redhat.com>
270 * symfile.c (objfilep): New typedef and new DEF_VEC_P.
271 (reread_symbols): Remove variable reread_one, new variables
272 new_objfiles, all_cleanups and ix. Use new_objfiles instead of
273 reread_one. Push changed objfiles to new_objfiles, call
274 observer_notify_new_objfile for them later.
276 2011-12-21 Joel Brobecker <brobecker@adacore.com>
278 * psymtab.c (expand_symtabs_matching_via_partial): Match
279 the partial symbols using their SYMBOL_SEARCH_NAME.
280 * symfile.h (struct quick_symbol_functions): Udate the
281 documentation of expand_symtabs_matching.
282 * dwarf2read.c (write_psymbols): Use SYMBOL_SEARCH_NAME instead
283 of SYMBOL_NATURAL_NAME in index entry.
285 2011-12-21 Joel Brobecker <brobecker@adacore.com>
287 * linespec.c (locate_first_half): Add handling of Ada operators
288 when the current language is Ada.
290 2011-12-21 Joel Brobecker <brobecker@adacore.com>
292 * objfiles.c (insert_section_p): Do not detect overlay sections
293 if overlay debugging is off.
295 2011-12-21 Joel Brobecker <brobecker@adacore.com>
297 * ada-lang.c (is_name_suffix): Add handling of "TKB" suffixes.
298 Update function documentation.
299 * dictionary.c (dict_hash): Ignore "TKB" suffixes in hash
302 2011-12-20 Pedro Alves <alves.ped@gmail.com>
303 Jan Kratochvil <jan.kratochvil@redhat.com>
305 * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
307 * amd64-linux-nat.c (update_debug_registers_callback): Instantiate
308 `lwp->arch_private' if NULL.
309 (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
311 * i386-linux-nat.c (update_debug_registers_callback): Instantiate
312 `lwp->arch_private' if NULL.
313 (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
316 2011-12-19 Doug Evans <dje@google.com>
318 * python/py-auto-load.c (info_auto_load_scripts): Pass address of
319 scripts vector to collect_matching_scripts.
320 (collect_matching_scripts): Update.
322 2011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com>
324 * symfile.c (reread_symbols): Move free_objfile_separate_debug,
325 preserve_values, sym_finish and clear_objfile_data calls before BFD
326 close. Move free_objfile_separate_debug as the very first call. New
327 comment on the ordering.
329 2011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
331 * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
334 2011-12-19 Tom Tromey <tromey@redhat.com>
336 * symtab.h (add_minsym_to_hash_table): Don't declare.
337 * minsyms.c (add_minsym_to_hash_table): Now static.
339 2011-12-19 Joel Brobecker <brobecker@adacore.com>
341 * elfread.c (elf_symtab_read): Ignore undefined symbols with
342 nonzero addresses if they do not correspond to a .plt section
343 when one is available in the objfile.
345 2011-12-17 Andreas Schwab <schwab@linux-m68k.org>
347 * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
350 2011-12-17 Mark Kettenis <kettenis@gnu.org>
352 * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
353 regset_from_core_section.
354 (amd64obsd_core_init_abi): New function that sets
355 regset_from_core_section.
356 (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
357 traditional core dumps.
359 2011-12-17 Mark Kettenis <kettenis@gnu.org>
361 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
362 trampoline to be introduced in OpenBSD 5.0.
364 2011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
366 Fix build regression from the PR threads/10729 fix.
367 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
370 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
372 * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
373 `optarg' to `oind' and `oarg', respectively(-Wshadow).
374 (mi_cmd_data_read_memory): Ditto.
375 (mi_cmd_data_read_memory_bytes): Ditto.
376 (mi_cmd_data_write_memory): Ditto.
378 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
380 * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
381 `oind' and `oarg', respectively(-Wshadow).
382 (mi_valid_noargs): Ditto.
384 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
386 * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
387 `oind' and `oarg', respectively(-Wshadow).
389 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
391 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
392 `optarg' to `oind' and `oarg', respectively(-Wshadow).
393 (mi_cmd_target_file_put): Ditto.
394 (mi_cmd_target_file_delete): Ditto.
396 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
398 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
399 `optarg' to `oind' and `oarg', respectively(-Wshadow).
400 (mi_cmd_env_dir): Ditto.
402 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
404 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
405 `optarg' to `oind' and `oarg', respectively(-Wshadow).
407 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
409 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
410 `optparg' to `oind' and `oarg', respectively(-Wshadow).
411 (mi_cmd_break_watch): Ditto.
413 2011-12-16 Tom Tromey <tromey@redhat.com>
415 * linespec.c (collect_symbols): Call maybe_add_address after
416 calling symbol_to_sal.
417 (minsym_found): Call maybe_add_address here.
418 (search_minsyms_for_name): Don't call maybe_add_address.
420 2011-12-16 Tom Tromey <tromey@redhat.com>
422 * linespec.c (struct collect_info) <objfile>: Remove field.
423 (decode_objc): Update.
424 (find_method): Update.
425 (decode_variable): Update.
426 (struct minsym_and_objfile): New.
427 (struct collect_minsyms): New.
428 (classify_mtype): New function.
429 (compare_msyms): Likewise.
430 (add_minsym): Likewise.
431 (check_minsym): Remove.
432 (search_minsyms_for_name): Sort minsyms and apply only those with
435 2011-12-16 Tom Tromey <tromey@redhat.com>
437 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
439 2011-12-16 Pedro Alves <pedro@codesourcery.com>
441 * inf-loop.c: Include top.h.
442 (inferior_event_handler): Call check_frame_language.
443 * top.c (check_frame_language_change): New, factored out from ...
444 (execute_command): ... this. Use check_frame_language_change.
445 * top.h (check_frame_language_change): Declare.
447 2011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
449 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
452 2011-12-16 Doug Evans <dje@google.com>
454 * NEWS: Add entry for stdio gdbserver.
456 2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
458 * python/python.c: Define python_excp_enums.
459 (eval_python_from_control_command): Do not call gdbpy_print_stack.
460 (python_command): Ditto.
461 (gdbpy_print_stack): Rewrite to use new enum constants.
462 (maint_set_python): Remove function.
463 (maint_show_python): Ditto.
464 (_initialize_python): Do not add "maint" commands. Add "set/show
465 python print-stack commands".
466 * NEWS: Update to reflect removal for "maint set/show
469 2011-12-15 Doug Evans <dje@google.com>
471 * exceptions.c (catcher_list_size): New function.
472 (last_message): Delete.
473 (exception_messages, exception_messages_size): New static globals.
474 (throw_it): Use exception_messages array to handle nested calls.
476 2011-12-15 Tom Tromey <tromey@redhat.com>
478 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
481 2011-12-14 Doug Evans <dje@google.com>
483 * defs.h (wait_to_die_with_timeout): Declare.
484 * utils.c: #include "gdb_wait.h".
485 (sigalrm_handler, wait_to_die_with_timeout): New functions.
486 * ser-pipe.c: Don't #include "gdb_wait.h".
487 (pipe_close): Give child a chance to die on its own after closing
488 its stdin before SIGTERM'ing it.
490 2011-12-14 Joel Brobecker <brobecker@adacore.com>
491 Tom Tromey <tromey@redhat.com>
493 * ada-lang.c (add_nonlocal_symbols): Initialize data to
494 all zeros. Remove setting of data.arg_sym to NULL.
496 2011-12-14 Pedro Alves <pedro@codesourcery.com>
500 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
502 (linux_nat_prepare_to_resume): New global.
504 (purge_lwp_list): Use it.
505 (add_lwp): Call linux_nat_new_thread even on the first LWP.
506 Adjust to interface change.
507 (delete_lwp): Call lwp_free instead of xfree.
508 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
509 (linux_handle_syscall_trap, linux_handle_extended_wait)
510 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
511 linux_nat_prepare_to_resume before resuming.
512 (linux_stop_lwp): New.
513 (linux_nat_set_new_thread): Adjust.
514 (linux_nat_set_prepare_to_resume): New.
515 * linux-nat.h (struct arch_lwp_info): Forward declare.
516 (struct lwp_info) <arch_private>: New field.
517 (linux_stop_lwp): Declare.
518 (linux_nat_set_new_thread): Adjust.
519 (linux_nat_set_prepare_to_resume): New.
521 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
522 (struct i386_debug_reg_state): Move to i386-nat.h.
523 (dr_mirror): Comment.
524 (i386_debug_reg_state): New.
525 (i386_update_inferior_debug_regs): Simplify.
526 (i386_stopped_data_address): Use the debug register state from the
527 inferior, not from the local cache.
528 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
529 unset_status fields. New get_addr and get_control fields.
530 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
531 (DR_NADDR, DR_STATUS): New.
532 (struct i386_debug_reg_state): Moved from i386-nat.c.
534 * amd64-linux-nat.c (struct arch_lwp_info): New.
535 (amd64_linux_dr): Delete global.
536 (amd64_linux_dr_get_addr): New.
537 (amd64_linux_dr_get_control): New.
538 (amd64_linux_dr_unset_status): Delete.
539 (amd64_linux_dr_set_addr): Reimplement.
540 (amd64_linux_dr_reset_addr): Delete.
541 (update_debug_registers_callback): New.
542 (amd64_linux_dr_set_control): Reimplement.
543 (amd64_linux_dr_set_addr): Reimplement.
544 (amd64_linux_prepare_to_resume): New.
545 (amd64_linux_new_thread): Change parameter to an lwp pointer.
547 (_initialize_amd64_linux_nat): No longer install
548 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
549 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
550 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
551 amd64_linux_prepare_to_resume.
552 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
553 (DR_CONTROL): Delete.
554 (struct arch_lwp_info): New.
555 (i386_linux_dr): Delete global.
556 (i386_linux_dr_set_control): Reimplement.
557 (i386_linux_dr_get_addr): New.
558 (i386_linux_dr_set_addr): Reimplement.
559 (i386_linux_dr_get_control): New.
560 (update_debug_registers_callback): New.
561 (i386_linux_dr_unset_status): Delete.
562 (i386_linux_dr_set_addr): Reimplement.
563 (i386_linux_prepare_to_resume): New.
564 (i386_linux_new_thread): Change parameter to an lwp pointer.
566 (_initialize_i386_linux_nat): No longer install
567 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
568 i386_linux_dr_get_control as i386_dr_low.get_control. Install
569 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
570 i386_linux_prepare_to_resume.
572 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
574 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
575 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
576 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
577 * s390-nat.c (s390_fix_watch_points): Likewise.
579 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
580 (DR_CONTROL): Delete.
581 (i386_darwin_dr_reset_addr): Delete.
582 (i386_darwin_dr_get_addr): New.
583 (i386_darwin_dr_get_control): New.
585 (go32_get_dr7, go32_get_dr): New.
586 (init_go32_ops): No longer install i386_dr_low.reset_addr.
587 Install go32_get_dr7 as i386_dr_low.get_control. Install
588 go32_get_dr as i386_dr_low.get_addr.
589 * i386bsd-nat.c (i386bsd_dr_get): New.
590 (i386bsd_dr_reset_addr): Delete.
591 (i386bsd_dr_get_addr): New.
592 (i386bsd_dr_get_status): Use i386bsd_dr_get.
593 (i386bsd_dr_get_control): New.
594 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
595 (i386bsd_dr_get_addr): New.
596 (i386bsd_dr_get_control): New.
597 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
598 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
599 i386bsd_dr_get_control as i386_dr_low.get_control. Install
600 i386bsd_dr_get_addr as i386_dr_low.get_addr.
601 * windows-nat.c (init_windows_ops): No longer install
602 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
603 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
604 as i386_dr_low.get_addr.
605 (cygwin_get_dr): New.
606 (cygwin_get_dr7): New.
608 2011-12-14 Pedro Alves <pedro@codesourcery.com>
610 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
611 target_write_raw_memory.
612 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
613 target_write_raw_memory.
614 * microblaze-linux-tdep.c
615 (microblaze_linux_memory_remove_breakpoint): Use
616 target_write_raw_memory.
617 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
618 target_write_raw_memory.
620 2011-12-14 Joel Brobecker <brobecker@adacore.com>
622 * linespec.c (decode_line_internal): Make static.
624 2011-12-14 Yao Qi <yao@codesourcery.com>
626 * breakpoint.c (create_breakpoint): Set canonical.addr_string
627 for static tracepoint.
629 2011-12-13 Joel Brobecker <brobecker@adacore.com>
631 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
632 * version.in: Bump version to 7.4.50.20111213-cvs.
634 2011-12-13 Joel Brobecker <brobecker@adacore.com>
636 * NEWS: Create a new section for the next release branch.
637 Rename the section of the current branch, now that it has
640 2011-12-11 Joel Brobecker <brobecker@adacore.com>
642 * ada-lang.c (ada_exception_support_info_sniffer): Improve
645 2011-12-11 Joel Brobecker <brobecker@adacore.com>
647 * ada-lang.c (struct ada_inferior_data) [exception_info]:
649 (exception_info): Delete.
650 (ada_exception_support_info_sniffer): Get exception_support_info
651 data from our per-inferior data. Adjust code accordingly.
652 (ada_unhandled_exception_name_addr_from_raise): Likewise.
653 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
654 (ada_executable_changed_observer): Delete.
655 (_initialize_ada_language): Remove call to
656 observer_attach_executable_changed.
658 2011-12-11 Joel Brobecker <brobecker@adacore.com>
660 * ada-lang.c (ada_has_this_exception_support): Raise an error
661 if we could find the Ada exception hook in the Ada runtime,
662 but no debugging info for that hook.
664 2011-12-11 Joel Brobecker <brobecker@adacore.com>
666 * ada-lang.c (ada_has_this_exception_support): New function,
667 extracted out of ada_exception_sal and ada_exception_sal.
668 (ada_exception_support_info_sniffer): Simplify by using
669 ada_has_this_exception_support.
670 (ada_exception_sal): Replace unnecessary checks by assertions.
671 Minor simplifications.
673 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
675 * breakpoint.c (update_global_location_list): Remove nested
676 definition of `b'(-Wshadow).
678 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
680 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
681 `error_flag'(-Wshadow).
683 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
685 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
688 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
690 * annotate.c (annotate_array_section_begin): Rename `index' to
693 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
695 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
698 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
700 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
701 `syscall' to `syscall_number'(-Wshadow).
703 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
705 * ada-lang.c (remove_extra_symbols): Rename `remove' to
706 `remove_p'(-Wshadow).
708 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
710 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
713 2011-12-10 Doug Evans <dje@google.com>
715 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
716 debug_types_section. All uses updated.
717 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
718 to is_debug_types_section.
720 * python/py-auto-load.c (source_section_scripts): Call xfree
723 2011-12-10 Hui Zhu <teawater@gmail.com>
724 Yao Qi <yao@codesourcery.com>
726 * tracepoint.c (start_tracing): Clear `inserted' flag.
728 2011-12-10 Hui Zhu <teawater@gmail.com>
730 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
732 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
734 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
737 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
739 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
740 `marker' variables to `sal2' and `tpmarker' respectively
743 2011-12-09 Andrew Pinski <apinski@cavium.com>
745 * linespec.c (hash_address_entry): Use iterative_hash_object on each
746 field rather than the struct itself.
748 2011-12-09 Tom Tromey <tromey@redhat.com>
750 * breakpoint.c (compare_breakpoints): New function.
751 (clear_command): Remove duplicate breakpoints. Properly clean
754 2011-12-08 Maciej W. Rozycki <macro@mips.com>
755 Maciej W. Rozycki <macro@codesourcery.com>
757 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
758 address chunks retrieved from decoded lui/addiu pairs.
760 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
762 * mips-tdep.c (extended_offset): Correct calculation.
763 (unpack_mips16): Correct bitfield positions used for extraction
764 of the immediate argument; fix sign-extension of same.
765 (extended_mips16_next_pc): Correct B instruction's offset
766 calculation. Correct register decoding of the BEQZ and BNEZ
767 as well as jump-register instructions. Handle compact jumps.
769 2011-12-08 Tom Tromey <tromey@redhat.com>
771 * objfiles.h (struct objfile): Remove obsolete comment.
772 * objfiles.c (build_objfile_section_table): Remove obsolete
775 2011-12-07 Stan Shebs <stan@codesourcery.com>
777 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
778 maintainer of the tic6x target.
780 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
782 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
783 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
784 (arm_deal_with_atomic_sequence_raw): Likewise.
785 (arm_deal_with_atomic_sequence): Likewise.
786 (arm_software_single_step): Call it.
787 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
789 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
791 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
793 * s390-tdep.h: Likewise.
795 2011-12-07 Tristan Gingold <gingold@adacore.com>
797 * machoread.c (macho_symtab_read): Do not consider N_OPT as
798 a debugging stab. Improve complaint message.
800 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
802 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
803 load adjustment if still within the prologue.
805 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
807 * mips-tdep.c (mips32_next_pc): Fix floating point condition
810 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
812 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
813 of BLTZ* and BGEZ* instructions.
815 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
817 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
818 performed to determine whether an address refers to standard
820 (mips16_next_pc): Use mips_pc_is_mips16 instead of
823 2011-12-06 Pedro Alves <pedro@codesourcery.com>
825 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
826 (breakpoint_xfer_memory): ... this. Change prototype. Handle
828 * breakpoint.h (breakpoint_restore_shadows): Delete.
829 (breakpoint_xfer_memory): Declare.
830 * mem-break.c (default_memory_insert_breakpoint)
831 (default_memory_remove_breakpoint): Use target_write_raw_memory.
832 (memory_xfer_partial): Rename to ...
833 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
835 (memory_xfer_partial): New.
836 (target_write_raw_memory): New.
837 * target.h (target_write_raw_memory): New.
839 2011-12-06 Doug Evans <dje@google.com>
841 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
843 2011-12-06 Joel Brobecker <brobecker@acacore.com>
845 * language.h (struct language_defn): Add new component
846 la_symbol_name_compare.
847 * symfile.h (struct quick_symbol_functions): Update the profile
848 of parameter "name_matcher" for the expand_symtabs_matching
849 method. Update the documentation accordingly.
850 * ada-lang.h (ada_name_for_lookup): Add declaration.
851 * ada-lang.c (ada_name_for_lookup): New function, extracted out
852 from ada_iterate_over_symbols.
853 (ada_iterate_over_symbols): Do not encode symbol name anymore.
854 (ada_expand_partial_symbol_name): Adjust profile.
855 (ada_language_defn): Add value for la_symbol_name_compare field.
856 * linespec.c: #include "ada-lang.h".
857 (iterate_name_matcher): Add language parameter. Replace call
858 to strcmp_iw by call to language->la_symbol_name_compare.
859 (decode_variable): Encode COPY if current language is Ada.
860 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
861 of name_matcher parameter. Adjust call to name_matcher.
862 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
863 (expand_partial_symbol_names): Update profile of parameter "fun".
864 * psymtab.h (expand_partial_symbol_names): Update profile of
866 * symtab.c (demangle_for_lookup): Update function documentation.
867 (search_symbols_name_matches): Add language parameter.
868 (expand_partial_symbol_name): Likewise.
869 * c-lang.c (c_language_defn, cplus_language_defn)
870 (asm_language_defn, minimal_language_defn): Add value for
871 la_symbol_name_compare field.
872 * d-lang.c (d_language_defn): Likewise.
873 * f-lang.c (f_language_defn): Ditto.
874 * jv-lang.c (java_language_defn): Ditto.
875 * m2-lang.c (m2_language_defn): Ditto.
876 * objc-lang.c (objc_language_defn): Ditto.
877 * opencl-lang.c (opencl_language_defn): Ditto.
878 * p-lang.c (pascal_language_defn): Ditto.
879 * language.c (unknown_language_defn, auto_language_defn)
880 (local_language_defn): Ditto.
882 2011-12-06 Tom Tromey <tromey@redhat.com>
884 * linespec.c (iterate_over_all_matching_symtabs): Use
885 LA_ITERATE_OVER_SYMBOLS.
886 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
887 (find_function_symbols, decode_variable): Remove Ada special
889 * language.h (struct language_defn) <la_iterate_over_symbols>: New
891 (LA_ITERATE_OVER_SYMBOLS): New macro.
892 * language.c (unknown_language_defn, auto_language_defn)
893 (local_language_defn): Update.
894 * c-lang.c (c_language_defn, cplus_language_defn)
895 (asm_language_defn, minimal_language_defn): Update.
896 * d-lang.c (d_language_defn): Update.
897 * f-lang.c (f_language_defn): Update.
898 * jv-lang.c (java_language_defn): Update.
899 * m2-lang.c (m2_language_defn): Update.
900 * objc-lang.c (objc_language_defn): Update.
901 * opencl-lang.c (opencl_language_defn): Update.
902 * p-lang.c (pascal_language_defn): Update.
903 * ada-lang.c (ada_iterate_over_symbols): New function.
904 (ada_language_defn): Update.
906 2011-12-06 Tom Tromey <tromey@redhat.com>
907 Joel Brobecker <brobecker@acacore.com>
909 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
910 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
911 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
912 PR shlibs/8929, PR shlibs/7393:
913 * python/py-type.c (compare_maybe_null_strings): Rename from
915 (check_types_equal): Update.
916 * utils.c (compare_strings): New function.
917 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
919 * tracepoint.c (scope_info): Update.
920 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
921 * symtab.h (iterate_over_minimal_symbols)
922 (iterate_over_some_symtabs, iterate_over_symtabs)
923 (find_pcs_for_symtab_line, iterate_over_symbols)
924 (demangle_for_lookup): Declare.
925 (expand_line_sal): Remove.
926 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
927 (lookup_symtab_callback): New functions.
928 (lookup_symtab): Rewrite.
929 (demangle_for_lookup): New function, extract from
930 lookup_symbol_in_language.
931 (lookup_symbol_in_language): Use it.
932 (iterate_over_symbols): New function.
933 (find_line_symtab): Update.
934 (find_pcs_for_symtab_line): New functions.
935 (find_line_common): Add 'start' argument.
936 (decode_line_spec): Update. Change argument to 'flags', change
938 (append_expanded_sal): Remove.
939 (append_exact_match_to_sals): Remove.
940 (expand_line_sal): Remove.
941 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
943 <map_symtabs_matching_filename>: New field.
944 * stack.c (func_command): Only look in the current program space.
945 Use DECODE_LINE_FUNFIRSTLINE.
946 * source.c (line_info): Set pspace on sal. Check program space in
947 the loop. Use DECODE_LINE_LIST_MODE.
948 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
949 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
950 * python/python.c (gdbpy_decode_line): Update.
951 * psymtab.c (partial_map_expand_apply): New function.
952 (partial_map_symtabs_matching_filename): Rename from
953 lookup_partial_symbol. Update arguments.
954 (lookup_symtab_via_partial_symtab): Remove.
955 (psym_functions): Update.
956 * objc-lang.h (parse_selector, parse_method): Don't declare.
958 * objc-lang.c (parse_selector, parse_method): Now static.
959 (find_methods): Change arguments. Fill in a vector of symbol
961 (uniquify_strings): New function.
962 (find_imps): Change arguments.
963 * minsyms.c (iterate_over_minimal_symbols): New function.
964 * linespec.h (enum decode_line_flags): New.
965 (struct linespec_sals): New.
966 (struct linespec_result) <canonical>: Remove.
967 <pre_expanded, addr_string, sals>: New fields.
968 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
969 (decode_line_full): Declare.
970 (decode_line_1): Update.
971 * linespec.c (struct address_entry, struct linespec_state, struct
972 collect_info): New types.
973 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
974 (eq_address_entry, maybe_add_address): New functions.
975 (total_number_of_methods): Remove.
976 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
978 (find_methods): Change arguments. Don't canonicalize input.
980 (add_matching_methods, add_constructors)
981 (build_canonical_line_spec): Remove.
982 (filter_results, convert_results_to_lsals): New functions.
983 (decode_line_2): Change arguments. Rewrite for new data
985 (decode_line_internal): Rename from decode_line_1. Change
986 arguments. Add cleanups. Update for new data structures.
987 (linespec_state_constructor, linespec_state_destructor)
988 (decode_line_full, decode_line_1): New functions.
989 (decode_indirect): Change arguments. Update.
990 (locate_first_half): Use skip_spaces.
991 (decode_objc): Change arguments. Update for new data structures.
993 (decode_compound): Change arguments. Add cleanups. Remove
994 fallback code, replace with error.
995 (struct decode_compound_collector): New type.
996 (collect_one_symbol): New function.
997 (lookup_prefix_sym): Change arguments. Update.
998 (compare_symbol_name, add_all_symbol_names_from_pspace)
999 (find_superclass_methods ): New functions.
1000 (find_method): Rewrite.
1001 (struct symtab_collector): New type.
1002 (add_symtabs_to_list, collect_symtabs_from_filename): New
1004 (symtabs_from_filename): Change API. Rename from
1005 symtab_from_filename.
1006 (collect_function_symbols): New function.
1007 (find_function_symbols): Change API. Rename from
1008 find_function_symbol. Rewrite.
1009 (decode_all_digits): Change arguments. Rewrite.
1010 (decode_dollar): Change arguments. Use decode_variable.
1011 (decode_label): Change arguments. Rewrite.
1012 (collect_symbols): New function.
1013 (minsym_found): Change arguments. Rewrite.
1014 (check_minsym, search_minsyms_for_name)
1015 (add_matching_symbols_to_info): New function.
1016 (decode_variable): Change arguments. Iterate over all symbols.
1017 (symbol_found): Remove.
1018 (symbol_to_sal): New function.
1019 (init_linespec_result, destroy_linespec_result)
1020 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
1022 (decode_digits_list_mode, decode_digits_ordinary): New functions.
1023 * dwarf2read.c (dw2_map_expand_apply): New function.
1024 (dw2_map_symtabs_matching_filename): Rename from
1025 dw2_lookup_symtab. Change arguments.
1026 (dwarf2_gdb_index_functions): Update.
1027 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
1028 * defs.h (compare_strings): Declare.
1029 * cli/cli-cmds.c (compare_strings): Move to utils.c.
1030 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
1032 (compare_symtabs, filter_sals): New functions.
1033 * breakpoint.h (struct bp_location) <line_number, source_file>:
1035 (struct breakpoint) <line_number, source_file>: Remove.
1036 <filter>: New field.
1037 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
1038 (momentary_breakpoint_from_master, add_location_to_breakpoint):
1039 Update for changes to locations.
1040 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
1042 (create_breakpoint_sal): Add 'filter' argument.
1043 (remove_sal, expand_line_sal_maybe): Remove.
1044 (create_breakpoints_sal): Remove 'sals' argument. Handle
1045 pre-expanded sals and the filter.
1046 (parse_breakpoint_sals): Use decode_line_full.
1047 (check_fast_tracepoint_sals): Use get_sal_arch.
1048 (create_breakpoint): Create a linespec_sals. Update.
1049 (break_range_command): Use decode_line_full. Update.
1050 (until_break_command): Update.
1051 (clear_command): Update match conditions for linespec.c changes.
1052 Use DECODE_LINE_LIST_MODE.
1053 (say_where): Update for changes to locations.
1054 (bp_location_dtor): Free 'source_file'.
1055 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
1056 (update_static_tracepoint): Update for changes to locations.
1057 (update_breakpoint_locations): Disable ranged breakpoint if too
1058 many locations match. Update.
1059 (addr_string_to_sals): Use decode_line_full. Resolve all sal
1061 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
1062 (decode_line_spec_1): Update. Change argument name to 'flags',
1063 change interpretation.
1064 * block.h (block_containing_function): Declare.
1065 * block.c (block_containing_function): New function.
1066 * skip.c (skip_function_command): Update.
1067 (skip_re_set): Update.
1068 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
1069 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
1072 2011-12-06 Tom Tromey <tromey@redhat.com>
1074 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
1075 breakpoint's pspace to be NULL.
1076 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
1077 * breakpoint.c (init_raw_breakpoint): Conditionally set
1078 breakpoint's pspace.
1079 (init_breakpoint_sal): Don't set breakpoint's pspace.
1080 (prepare_re_set_context): Conditionally switch program space.
1081 (addr_string_to_sals): Check executing_startup on location's
1084 2011-12-06 Tom Tromey <tromey@redhat.com>
1086 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
1087 * breakpoint.c (should_be_inserted): Explicitly check if program
1088 space is executing startup.
1089 (describe_other_breakpoints): Update.
1090 (disable_breakpoints_before_startup): Change executing_startup
1091 earlier. Remove loop.
1092 (enable_breakpoints_after_startup): Likewise.
1093 (init_breakpoint_sal): Don't use bp_startup_disabled.
1094 (create_breakpoint): Don't use bp_startup_disabled.
1095 (update_global_location_list): Use should_be_inserted.
1096 (bkpt_re_set): Update.
1098 2011-12-06 Tom Tromey <tromey@redhat.com>
1100 * python/lib/gdb/command/pretty_printers.py
1101 (InfoPrettyPrinter.invoke1): Remove extra double quote.
1103 2011-12-06 Tom Tromey <tromey@redhat.com>
1105 * NEWS: Add MI news.
1107 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
1109 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
1110 (S390_LAST_BREAK_REGNUM): Likewise.
1111 (S390_SYSTEM_CALL_REGNUM): Likewise.
1112 (S390_NUM_REGS): Update.
1114 (s390_regmap_last_break): Add declaration.
1115 (s390x_regmap_last_break): Likewise.
1116 (s390_regmap_system_call): Likewise.
1118 (tdesc_s390_linux32v1): Add declaration.
1119 (tdesc_s390_linux32v2): Likewise.
1120 (tdesc_s390_linux64v1): Likewise.
1121 (tdesc_s390_linux64v2): Likewise.
1122 (tdesc_s390x_linux64v1): Likewise.
1123 (tdesc_s390x_linux64v2): Likewise.
1125 * s390-tdep.c: Include new target description files
1126 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
1127 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
1128 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
1129 (s390_cannot_store_register): New function.
1130 (s390_write_pc): Likewise.
1131 (s390_dwarf_regmap): Add fields for new registers.
1132 (s390_regmap_gregset): Likewise.
1133 (s390x_regmap_gregset): Likewise.
1134 (s390_regmap_fpregset): Likewise.
1135 (s390_regmap_upper): Likewise.
1136 (s390_regmap_last_break): New variable.
1137 (s390x_regmap_last_break): Likewise.
1138 (s390_regmap_system_call): Likewise.
1139 (s390_last_break_regset): Likewise.
1140 (s390x_last_break_regset): Likewise.
1141 (s390_system_call_regset): Likewise.
1142 (s390_upper_regset_sections): Rename to ...
1143 (s390_linux64_regset_sections): ... this.
1144 (s390_linux32_regset_sections): New variable.
1145 (s390x_linux64_regset_sections): Likewise.
1146 (s390_linux32v1_regset_sections): Likewise.
1147 (s390_linux32v2_regset_sections): Likewise.
1148 (s390_linux64v1_regset_sections): Likewise.
1149 (s390_linux64v2_regset_sections): Likewise.
1150 (s390x_linux64v1_regset_sections): Likewise.
1151 (s390x_linux64v2_regset_sections): Likewise.
1152 (s390_regset_from_core_section): Handle .reg-s390-last-break and
1153 .reg-s390-system-call core file sections.
1154 (s390_core_read_description): Check for presence of
1155 .reg-s390-last-break and .reg-s390-system-call core file
1156 sections and return appropriate target description.
1157 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
1158 "last_break" and "system_call" in target description. Install
1159 appropriate gdbarch_core_regset_sections array.
1160 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
1161 (_initialize_s390_tdep): Initialize additional target descriptions.
1163 * s390-nat.c: Include "elf/common.h".
1164 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
1165 (have_regset_last_break): New static variable.
1166 (have_regset_system_call): Likewise.
1167 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
1168 (s390_native_collect): Likewise.
1169 (fetch_regset, store_regset, check_regset): New functions.
1170 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
1171 and S390_SYSTEM_CALL_REGNUM.
1172 (s390_linux_store_inferior_registers): Likewise.
1173 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
1174 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
1176 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
1177 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
1178 (s390-linux32v1-expedite): Define.
1179 (s390-linux32v2-expedite): Likewise.
1180 (s390-linux64v1-expedite): Likewise.
1181 (s390-linux64v2-expedite): Likewise.
1182 (s390x-linux64v1-expedite): Likewise.
1183 (s390x-linux64v2-expedite): Likewise.
1185 * features/s390-linux32.xml: Add orig_r2 register.
1186 * features/s390-linux64.xml: Likewise.
1187 * features/s390x-linux64.xml: Likewise.
1188 * features/s390-linux32v1.xml: New file.
1189 * features/s390-linux32v2.xml: Likewise.
1190 * features/s390-linux64v1.xml: Likewise.
1191 * features/s390-linux64v2.xml: Likewise.
1192 * features/s390x-linux64v1.xml: Likewise.
1193 * features/s390x-linux64v2.xml: Likewise.
1195 * features/s390-linux32.c: Regenerate.
1196 * features/s390-linux64.c: Likewise.
1197 * features/s390x-linux64.c: Likewise.
1198 * features/s390-linux32v1.c: New generated file.
1199 * features/s390-linux32v2.c: Likewise.
1200 * features/s390-linux64v1.c: Likewise.
1201 * features/s390-linux64v2.c: Likewise.
1202 * features/s390x-linux64v1.c: Likewise.
1203 * features/s390x-linux64v2.c: Likewise.
1205 * regformats/s390-linux32.dat: Regenerate.
1206 * regformats/s390-linux64.dat: Regenerate.
1207 * regformats/s390x-linux64.dat: Regenerate.
1208 * regformats/s390-linux32v1.dat: New generated file.
1209 * regformats/s390-linux32v2.dat: Likewise.
1210 * regformats/s390-linux64v1.dat: Likewise.
1211 * regformats/s390-linux64v2.dat: Likewise.
1212 * regformats/s390x-linux64v1.dat: Likewise.
1213 * regformats/s390x-linux64v2.dat: Likewise.
1215 2011-12-05 Pedro Alves <pedro@codesourcery.com>
1217 * linux-nat.c (resume_stopped_resumed_lwps): Call
1220 2011-12-05 Pedro Alves <pedro@codesourcery.com>
1222 * breakpoint.c: Include record.h.
1223 (breakpoints_always_inserted_mode): Return false when the record
1226 2011-12-05 Pedro Alves <pedro@codesourcery.com>
1228 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
1229 Reinstate perror_with_name call on ptrace error. Remove #if 0.
1230 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
1231 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
1233 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1235 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
1238 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1240 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
1242 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
1244 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
1245 of `tdep'(-Wshadow).
1247 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1249 Fix compilation --without-expat.
1250 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
1252 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
1254 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
1255 Jan Kratochvil <jan.kratochvil@redhat.com>
1257 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
1258 * features/library-list-svr4.dtd: New file.
1259 * remote.c (PACKET_qXfer_libraries_svr4): New.
1260 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
1261 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
1262 * solib-svr4.c (struct svr4_library_list): New.
1263 [HAVE_LIBEXPAT]: Include xml-support.h.
1264 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
1265 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
1266 [HAVE_LIBEXPAT] (svr4_library_list_children)
1267 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
1268 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
1269 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
1270 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
1271 (svr4_read_so_list): Extend the corruption message by addresses.
1272 (svr4_current_sos): New variable library_list, call
1273 svr4_current_sos_via_xfer_libraries.
1274 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
1276 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1279 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
1280 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
1282 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1284 PR breakpoints/13346
1285 * dwarf2read.c (process_psymtab_comp_unit): Set
1286 PSYMTABS_ADDRMAP_SUPPORTED.
1287 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
1288 validity. New field psymtabs_addrmap_supported.
1289 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
1290 psymtabs_addrmap_supported.
1291 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
1292 !PSYMTABS_ADDRMAP_SUPPORTED.
1293 (dump_psymtab, maintenance_info_psymtabs): Print also
1294 psymtabs_addrmap_supported.
1296 2011-12-01 Doug Evans <dje@google.com>
1298 * python/py-type.c (type_object_methods): Fix "array" doc string.
1300 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
1302 * source.c (print_source_lines_base): Fix missing braces on else
1303 clause leading to additional output.
1305 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1307 * s390-nat.c (SUBOFF): Remove.
1308 (s390_native_supply, s390_native_collect): New functions.
1309 (supply_gregset, supply_fpregset): Use s390_native_supply.
1310 (fill_gregset, fill_fpregset): Use s390_native_collect.
1312 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1313 (s390_unwind_pseudo_register): New function.
1314 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1315 registers instead of PC and CC.
1316 (s390_backchain_frame_unwind_cache): Likewise.
1317 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1319 (s390_trad_frame_prev_register): New function.
1320 (s390_frame_prev_register): Use it.
1321 (s390_sigtramp_frame_prev_register): Likewise.
1322 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1323 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
1324 special callback to unwind any pseudo.
1326 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1327 * features/s390-core64.xml: Likewise.
1328 * features/s390x-core64.xml: Likewise.
1329 * features/s390-linux32.c: Regenerate.
1330 * features/s390-linux64.c: Likewise.
1331 * features/s390x-linux64.c: Likewise.
1333 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1335 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1337 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1339 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1340 instruction. Add more diagnostic output.
1342 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
1344 * MAINTAINERS (Write After Approval): Add myself to the list.
1346 2011-11-29 Sanjoy Das <sdas@igalia.com>
1348 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1349 (jit_bfd_try_read_symtab): Fix comments.
1351 2011-11-28 DJ Delorie <dj@redhat.com>
1353 * NEWS: Mention RL78 simulator.
1355 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1357 * symfile.h (struct quick_symbol_functions): Fix the documentation
1358 of field map_matching_symbols, as symbols are sorted using
1359 strcmp_iw_ordered, not strcmp_iw.
1361 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
1363 * symfile.h (struct quick_symbol_functions): Update the
1364 documentation for field map_matching_symbols.
1366 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1368 * ada-lang.c (compare_names): Fix wrong return value in case
1369 string1 starts with the same contents as string2, followed
1370 by an underscore that do not start a symbol name suffix.
1372 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
1377 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1378 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1379 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1381 * python/py-type.c (typy_strip_typedefs): Ditto.
1382 (typy_legacy_template_argument): Ditto.
1383 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1384 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1386 2011-11-27 Joel Brobecker <brobecker@acacore.com>
1388 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1389 local variable. Avoid use of sprintf_vma.
1391 2011-11-27 Sanjoy Das <sdas@igalia.com>
1393 Fix regression in jit.exp.
1394 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1395 (jit_register_code): Set the jit_objfile_data field to the correct
1398 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1400 * alpha-tdep.c (br_opcode): New.
1401 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1402 (alpha_deal_with_atomic_sequence): New function.
1403 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1404 with alpha_deal_with_atomic_sequence.
1406 2011-11-24 Tristan Gingold <gingold@adacore.com>
1408 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1409 fields. Add oso_sym, end_sym and nbr_syms.
1410 (macho_register_oso): Change interface.
1411 (macho_symtab_add_minsym): New function.
1412 (macho_symtab_read): Rewritten.
1413 (get_archive_prefix_len): Remove trailing blanks.
1414 (oso_el_compare_name): Add comment.
1415 (struct macho_sym_hash_entry): New structure.
1416 (macho_relocate_common_syms): Remove.
1417 (macho_sym_hash_newfunc): New function.
1418 (macho_resolve_oso_sym_with_minsym): Likewise.
1419 (macho_add_oso_symfile): Rewritten.
1420 (macho_symfile_read_all_oso): Remove trailing blanks.
1421 Adjust code to free oso vector.
1422 (macho_symfile_read): Likewise.
1423 Move code to initialize minimal symbol
1425 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1427 * mips-tdep.c (extended_offset): Fix formatting.
1429 2011-11-23 Doug Evans <dje@google.com>
1431 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1432 (dw2_expand_symtabs_with_filename): Ditto.
1433 (dw2_expand_symtabs_matching): Ditto.
1434 (dw2_map_symbol_filenames): Ditto.
1436 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1438 * ada-lang.c (assign_aggregate): Minor reformatting.
1440 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1442 * ada-lang.c (assign_aggregate): Remove declaration of local
1443 variable `i' which is shadowing another variable with the same
1444 name declared in the outer scope.
1446 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1448 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1449 calls throughout this file.
1451 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1453 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1456 2011-11-22 Tom Tromey <tromey@redhat.com>
1459 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1460 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1461 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1462 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1463 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1464 (print_it_catch_syscall, print_it_catch_exec)
1465 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1466 (bpstat_print): Add 'kind' argument. Handle
1467 TARGET_WAITKIND_LOADED.
1468 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1469 handle TARGET_WAITKIND_LOADED here.
1470 * breakpoint.h (bpstat_print): Update.
1472 2011-11-22 Tom Tromey <tromey@redhat.com>
1474 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1476 2011-11-22 Tom Tromey <tromey@redhat.com>
1478 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1479 Use static_assert to check the size of
1480 async_reason_string_lookup.
1481 * common/gdb_assert.h (static_assert): New macro.
1483 2011-11-22 Alan Modra <amodra@gmail.com>
1485 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1486 destination calculation. Don't expect >> to sign extend. Don't
1487 add a break if branch lands inside the sequence anywhere.
1489 2011-11-21 Keith Seitz <keiths@redhat.com>
1491 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1492 -var-evaluate-expression of an enumeration and fix expected result.
1493 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1495 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1497 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1498 the case where osdata->items is empty. Rename column names to a
1499 canonical form to avoid problems with unusual column names.
1501 2011-11-21 Yao Qi <yao@codesourcery.com>
1503 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1505 2011-11-20 Stan Shebs <stan@codesourcery.com>
1507 * NEWS: Mention tracepoint additions.
1508 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1509 * breakpoint.c (print_one_breakpoint_location): Identify
1510 tracepoints as such when reporting hit counts, report
1512 (create_tracepoint_from_upload): Copy status info.
1513 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1514 add fields user_name, notes, start_time, stop_time.
1515 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1516 * tracepoint.c (trace_user): New global.
1517 (trace_notes): New global.
1518 (trace_stop_notes): New global.
1519 (start_tracing): Add argument and trace note handling.
1520 (stop_tracing): Ditto.
1521 (trace_start_command): Add notes argument.
1522 (trace_stop_command): Ditto.
1523 (trace_status_command): Report additional status info.
1524 (trace_status_mi): Similarly.
1525 (trace_save): Update, record tracepoint status.
1526 (set_disconnected_tracing): Call target method directly.
1527 (send_disconnected_tracing_value): Remove.
1528 (set_trace_user): New function.
1529 (set_trace_notes): New function.
1530 (set_trace_stop_notes): New function.
1531 (parse_trace_status): Handle additional status.
1532 (parse_tracepoint_status): New function.
1533 (parse_tracepoint_definition): Call it.
1534 (tfile_get_tracepoint_status): New function.
1535 (init_tfile_ops): Use it.
1536 (_initialize_tracepoint): Add new setshows.
1537 * target.h (struct target_ops): New methods to_get_tracepoint_status
1538 and to_set_trace_notes.
1539 (target_get_tracepoint_status): New macro.
1540 (target_set_trace_notes): New macro.
1541 * target.c (update_current_target): Add new methods.
1542 * remote.c (remote_get_tracepoint_status): New function.
1543 (remote_set_trace_notes): New function.
1544 (init_remote_ops): Add them.
1545 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1546 (mi_cmd_trace_stop): Ditto.
1548 2011-11-20 Sanjoy Das <sdas@igalia.com>
1550 * jit.c: Include regcache.h.
1551 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1552 (jit_unwind_reg_set_impl, free_reg_value_impl)
1553 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1554 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1555 (jit_frame_prev_register, jit_dealloc_cache)
1556 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1557 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1558 jit_prepend_unwinder.
1559 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1561 2011-11-20 Sanjoy Das <sdas@igalia.com>
1563 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1564 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1565 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1566 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1567 (finalize_symtab, jit_object_close_impl)
1568 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1569 (free_objfile_data): New functions.
1570 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1573 2011-11-20 Sanjoy Das <sdas@igalia.com>
1575 * jit.c: Include gdb-dlfcn.h.
1576 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1577 (jit_reader_load, jit_reader_load_command)
1578 (jit_reader_unload_command): New functions.
1579 (_initialize_jit): Add commands "jit-reader-load" and
1580 "jit-reader-unload".
1582 2011-11-20 Sanjoy Das <sdas@igalia.com>
1584 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1585 * config.in: Add new #define HAVE_LIBDL.
1586 * configure.ac: Add check for -ldl.
1587 * configure: Re-generated by autoconf.
1588 * gdb-dlfcn.c: New file.
1589 * gdb-dlfcn.h: New file.
1591 2011-11-20 Sanjoy Das <sdas@igalia.com>
1593 * config.in: Add new #defines: JIT_READER_DIR and
1594 JIT_READER_DIR_RELOCATABLE.
1595 * configure.ac: New GDB directory entry for jit-reader-dir.
1596 * configure: Re-generated by autoconf.
1597 * jit.c: New static variable: const char *jit_reader_dir.
1598 (_initialize_jit): Relocate jit_reader_dir.
1600 2011-11-20 Sanjoy Das <sdas@igalia.com>
1602 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1604 * configure.ac: Generate a correct value for TARGET_PTR for
1605 jit-reader.h. Tell configure to generate jit-reader.h from
1607 * configure: Re-generated by autoconf.
1608 * jit-reader.in: New file.
1609 * jit.c: Include jit-reader.h.
1611 2011-11-20 Sanjoy Das <sdas@igalia.com>
1613 * MAINTAINERS (Write After Approval): Add myself to the list.
1615 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1617 * findvar.c (read_frame_register_value): Respect value_offset
1618 of the register value. Remove big-endian special case.
1620 2011-11-18 Tom Tromey <tromey@redhat.com>
1623 * remote.c (putpkt_for_catch_errors): New function.
1624 (remote_kill): Use it.
1626 2011-11-18 Yao Qi <yao@codesourcery.com>
1628 * breakpoint.c (create_breakpoint): Produce query message according to
1630 Allocate tracepoint per correct type.
1631 Don't check SALs for pending fast tracepoints.
1632 * tracepoint.c (process_tracepoint_on_disconnect): New.
1633 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1635 2011-11-18 Yao Qi <yao@codesourcery.com>
1637 * breakpoint.c (install_breakpoint): Add one more parameter so that
1638 update_global_location_list is called conditionally.
1639 (create_fork_vfork_event_catchpoint): Update.
1640 (create_syscall_event_catchpoint): Update.
1641 (create_breakpoint_sal): Update.
1642 (create_breakpoint_sal): Update. Call do_cleanups before
1644 * ada-lang.c (create_ada_exception_catchpoint): Update.
1645 * breakpoint.h (install_breakpoint): Update declaration.
1647 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1649 * spu-tdep.c (spu_return_value): Fix handling of
1650 TYPE_CALLING_CONVENTION annotation.
1652 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1654 * skip.c (skip_function_command): Work around uninitialized
1657 2011-11-16 David S. Miller <davem@davemloft.net>
1659 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1660 'tv_usec' to long for printf since these fields have a type which
1663 2011-11-15 Doug Evans <dje@google.com>
1665 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1667 2011-11-15 Paul Koning <paul_koning@dell.com>
1669 * python/py-type.c (typy_get_composite): New function.
1670 (typy_nonzero): New function.
1671 (typy_values): Rename from typy_fields.
1672 (typy_fields): New function.
1673 (typy_length): Raise exception if not struct, union, or enum type.
1674 (typy_getitem): Ditto.
1675 (typy_has_key): Ditto.
1676 (typy_make_iter): Ditto.
1678 2011-11-15 Doug Evans <dje@google.com>
1681 * NEWS: Mention new parameter basenames-may-differ.
1682 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1683 ! basenames_may_differ.
1684 * psymtab.c (lookup_partial_symtab): Ditto.
1685 * symtab.c (lookup_symtab): Ditto.
1686 (basenames_may_differ): New global.
1687 (_initialize_symtab): New parameter basenames-may-differ.
1688 * symtab.h (basenames_may_differ): Declare.
1690 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1691 Luis Machado <lgustavo@codesourcery.com>
1693 * auxv.c: Include observer.h.
1694 (auxv_inferior_data_cleanup): New.
1695 (invalidate_auxv_cache_inf): New.
1696 (invalidate_auxv_cache): New.
1697 (get_auxv_inferior_data): New.
1698 (auxv_inferior_data): New static global.
1699 (auxv_info): New structure.
1700 (target_auxv_search): Use get_auxv_inferior_data instead of
1701 target_read_alloc and don't free cached buffers.
1702 (fprint_target_auxv): Likewise
1703 (_initialize_auxv): Register per-inferior auxv cache and register
1704 observers to invalidate auxv cache when needed.
1706 2011-11-14 Doug Evans <dje@google.com>
1708 PR gdb/7200 Make "!" an alias for "shell".
1709 * NEWS: Add mention.
1710 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1711 adding "!" command, always add it.
1712 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1713 command of length one.
1715 2011-11-14 Stan Shebs <stan@codesourcery.com>
1716 Kwok Cheung Yeung <kcy@codesourcery.com>
1718 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1719 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1720 the minimum instruction size for fast tracepoints.
1721 * target.h (struct target_ops): Add new method
1722 to_get_min_fast_tracepoint_insn_len.
1723 (target_get_min_fast_tracepoint_insn_len): New.
1724 * target.c (update_current_target): Set up new target operation.
1725 * remote.c (remote_write_bytes_aux): Fix typo.
1726 (remote_get_min_fast_tracepoint_insn_len): New.
1727 (init_remote_ops): Initialize new field.
1729 2011-11-14 Tom Tromey <tromey@redhat.com>
1731 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1732 (encode_actions): Likewise.
1734 2011-11-14 Yao Qi <yao@codesourcery.com>
1736 * remote.c (struct remote_state): <install_in_trace> new field.
1737 (PACKET_InstallInTrace): New enum value.
1738 (remote_install_in_trace_feature): Support InstallInTrace.
1739 (remote_supports_install_in_trace): Likewise.
1740 (remote_protocol_features): Likewise.
1741 (_initialize_remote): Likewise.
1742 (remote_can_download_tracepoint): New.
1743 * target.h (struct target): New field
1744 `to_can_download_tracepoint'.
1745 (target_can_download_tracepoint): New macro.
1746 * target.c (update_current_target): Update.
1747 * breakpoint.h (struct bp_location): Add comment on field
1749 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1751 (remove_breakpoints): Don't remove tracepoints.
1752 (tracepoint_locations_match ): New.
1753 (breakpoint_locations_match): Call it.
1754 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1755 (download_tracepoint_locations): New.
1756 (update_global_location_list): Call it.
1757 * tracepoint.c (find_matching_tracepoint): Delete.
1758 (find_matching_tracepoint_location): Renamed from
1759 find_matching_tracepoint. Return bp_location rather than
1761 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1762 tracepoint is found.
1764 2011-11-14 Yao Qi <yao@codesourcery.com>
1766 * target.h (struct target): <to_download_tracepoint> Change type
1767 of parameter from tracepoint to bp_location.
1768 * target.c (update_current_target): Update.
1769 * tracepoint.c (start_tracing): Update.
1770 * remote.c (remote_download_tracepoint): Remove loop for each location
1773 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1775 * i386-nat.c (i386_insert_hw_breakpoint): Call
1776 i386_update_inferior_debug_regs.
1777 (i386_remove_hw_breakpoint): Likewise.
1779 2011-11-14 Yao Qi <yao@codesourcery.com>
1781 * breakpoint.c (init_raw_breakpoint): Call
1782 add_location_to_breakpoint to replace duplicated code.
1783 (add_location_to_breakpoint): Adjust the breakpoint's
1784 address prior to allocating a location.
1786 2011-11-12 Matt Rice <ratmice@gmail.com>
1788 * macrocmd.c (macro_no_macro_info): New function.
1789 (macro_expand_command): Use macro_no_macro_info.
1790 (macro_expand_once_command): Ditto.
1791 (info_macro_command): Add argument processing,
1792 move info_definitions_command here.
1793 (_initialize_macrocmd): Remove info definitions command.
1794 Add arguments to info macro help text.
1795 * NEWS: Replace info definitions command with new info macro options.
1797 2011-11-11 Keith Seitz <keiths@redhat.com>
1800 * linespec.c (locate_first_half): Keep ':' if it looks
1801 like it could be part of a Windows path starting with
1804 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1806 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1807 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1809 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1811 * target.c (target_waitstatus_to_string): Handle
1812 TARGET_WAITKIND_NO_RESUMED.
1814 2011-11-10 Doug Evans <dje@google.com>
1816 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1818 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1819 (map_partial_symbol_filenames): Ditto. All callers updated.
1820 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1821 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1822 parameter need_fullname.
1824 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1825 * source.c (symtab_to_fullname): Ditto.
1827 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1828 * gdb-demangle.h: ... here. New file.
1829 * demangle.c: #include "gdb-demangle.h".
1830 (_initialize_demangler): Use initialize_file_ftype for prototype.
1831 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1832 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1834 * utils.c: Update. #include "gdb-demangle.h".
1835 * symtab.h (asm_demangle): Delete.
1836 (demangle): Move declaration next to use.
1837 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1838 * dwarf2read.c: #include "gdb-demangle.h".
1839 * gnu-v2-abi.c: Ditto.
1840 * jv-typeprint.c: Ditto.
1841 * mdebugread.c: Ditto.
1842 * p-typeprint.c: Ditto.
1843 * stabsread.c: Ditto.
1844 * printcmd.c: Ditto.
1845 (asm_demangle): Delete declaration.
1846 * tui/tui-stack.c: #include "gdb-demangle.h".
1848 * python/py-type.c (typy_fields_items): Call check_typedef.
1850 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1852 * findvar.c (read_frame_register_value): Read the correct bytes
1853 from registers on big-endian architectures.
1855 2011-11-10 Tom Tromey <tromey@redhat.com>
1857 * procfs.c (load_syscalls): Make a cleanup.
1858 (open_procinfo_files): fd==0 is ok.
1860 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1862 * procfs.c (iterate_over_mappings): Call do_cleanups before
1865 2011-11-09 Doug Evans <dje@google.com>
1867 * gdbtypes.c (check_typedef): Document that this function can
1870 2011-11-09 Tom Tromey <tromey@redhat.com>
1873 * valops.c (value_full_object): Return early if real type is
1874 smaller than the enclosing type.
1876 2011-11-08 Yao Qi <yao@codesourcery.com>
1878 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1880 2011-11-08 Meador Inge <meadori@codesourcery.com>
1882 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1883 register when the frame can't be determined.
1884 * arm-tdep.c (arm_analyze_prologue): Ditto.
1886 2011-11-07 Stan Shebs <stan@codesourcery.com>
1888 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1890 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1892 * infrun.c (handle_inferior_event): Minor reformatting.
1894 2011-11-05 Doug Evans <dje@google.com>
1896 * source.c (forget_cached_source_info_for_objfile): Move call to
1897 objfile->sf->qf->forget_cached_source_info outside of
1898 ALL_OBJFILE_SYMTABS loop.
1899 (forget_cached_source_info): Delete unused variable `s'.
1901 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1903 * i386-nat.c (dr_ref_count): Remove unused variable.
1905 2011-11-05 Doug Evans <dje@google.com>
1907 * main.c (captured_main): Set lim_at_start before calling
1908 make_command_stats_cleanup.
1910 2011-11-04 Doug Evans <dje@google.com>
1912 * utils.c: #include "timeval-utils.h".
1913 (cmd_stats): Rename start_time to start_cpu_time.
1914 New member start_wall_time.
1915 (report_command_stats): Report wall time.
1916 (make_command_stats_cleanup): Record start wall time.
1918 2011-11-04 Tom Tromey <tromey@redhat.com>
1920 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1922 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1924 * coff-pe-read.c: Include defs.h before bfd.h.
1926 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1930 * python/python.c (python_run_simple_file): Expand tilde in path.
1932 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1936 * python/py-type.c (typy_lookup_type): Do not return a type in
1937 an exception handler.
1939 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1940 Eli Zaretskii <eliz@gnu.org>
1942 * linux-nat.c (_initialize_linux_nat): Improve help
1943 for `info proc stat', `info proc status', `info proc cwd',
1944 `info proc cmdline' and `info proc exe'.
1946 2011-11-02 Stan Shebs <stan@codesourcery.com>
1948 String collection for tracepoints.
1949 * NEWS: Mention string collection.
1950 * common/ax.def (tracenz): New bytecode.
1951 * ax-gdb.h (trace_string_kludge): Declare.
1952 * ax-gdb.c: Include valprint.h and c-lang.h.
1953 (trace_string_kludge): New global.
1954 (gen_traced_pop): Add string case.
1955 (agent_command): Add string case.
1956 * tracepoint.h (decode_agent_options): Declare.
1957 * tracepoint.c: Include cli-utils.h.
1958 (decode_agent_options): New function.
1959 (validate_actionline): Call it.
1960 (encode_actions_1): Ditto.
1961 * target.h (struct target_ops): New method to_supports_string_tracing.
1962 (target_supports_string_tracing): New macro.
1963 * target.c (update_current_target): Add to_supports_string_tracing.
1964 * remote.c (struct remote_state): New field string_tracing.
1965 (remote_string_tracing_feature): New function.
1966 (remote_protocol_features): New feature tracenz.
1967 (remote_supports_string_tracing): New function.
1968 (init_remote_ops): Set to_supports_string_tracing.
1970 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1971 Jan Kratochvil <jan.kratochvil@redhat.com>
1973 * linux-nat.c: Include cli/cli-utils.h.
1974 (enum info_proc_what): New.
1975 (linux_nat_info_proc_cmd): Rename to ...
1976 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1977 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1978 status_f and stat_f from WHAT. Throw error on extra parameters.
1979 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1980 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1981 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1982 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1983 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1984 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1985 `info proc cmdline', `info proc exe' and `info proc all' as real
1986 subcommands of `info proc'.
1988 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1990 * Makefile.in: (SFILES): Add skip.c.
1991 (HFILES_NO_SRCDIR): Add skip.h.
1992 (COMMON_OBS): Add skip.o.
1993 * skip.h, skip.c: New.
1994 * breakpoint.h (set_default_breakpoint): Remove.
1995 (get_sal_arch): Declare.
1996 * breakpoint.c: Remove default_breakpoint_valid,
1997 default_breakpoint_address, default_breakpoint_symtab,
1998 default_breakpoint_line, default_breakpoint_pspace variables.
1999 (get_sal_arch): Make public.
2000 (set_default_breakpoint): Remove.
2001 (parse_breakpoint_sals, create_breakpoint, clear_command,
2002 decode_line_spec_1): Remove uses of default_breakpoint variables;
2003 replaced with function calls into stack.c.
2004 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
2005 * cli/cli-cmds.c: Add skiplist.
2006 (init_cmd_lists): Initialize skiplist.
2007 (init_cli_cmds): Fix comment (classes of commands appear in
2008 alphabetical order).
2009 * infrun.c (handle_inferior_event): Add check that we don't step into
2010 a function whose pc is marked for skip.
2011 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
2012 last_displayed_addr, last_displayed_symtab, last_displayed_line
2014 (set_last_displayed_sal): New static function.
2015 (print_frame_info): Switch call to set_default_breakpoint to call to
2016 set_last_displayed_sal.
2017 (clear_last_displayed_sal, last_displayed_sal_is_valid,
2018 get_last_displayed_pspace, get_last_displayed_addr,
2019 get_last_displayed_symtab, get_last_displayed_line,
2020 get_last_displayed_sal): New public functions.
2021 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
2022 get_last_displayed_pspace, get_last_displayed_addr,
2023 get_last_displayed_symtab, get_last_displayed_line,
2024 get_last_displayed_sal): Declare.
2026 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
2028 * MAINTAINERS (Write After Approval): Add myself to the list.
2030 2011-10-29 Yao Qi <yao@codesourcery.com>
2032 * infcmd.c (disconnect_command): Call disconnect_tracing.
2034 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2037 * symtab.c (skip_prologue_sal): Code reformatting.
2039 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2042 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
2043 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
2046 2011-10-28 Pedro Alves <pedro@codesourcery.com>
2048 * linux-nat.c (linux_nat_filter_event): Remove `options'
2049 parameter, and dead code that used it. If we're handling a
2050 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
2051 in our lwp list, re-add it.
2052 (check_zombie_leaders): New.
2053 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
2054 wait for children with WNOHANG, and always wait for all children.
2055 Don't check for no resumed children upfront. Simplify wait loop.
2056 Check for zombie thread group leaders after handling all wait
2057 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
2058 unwaited-for children left.
2059 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
2060 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
2061 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
2062 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
2064 2011-10-28 Sterling Augustine <saugustine@google.com>
2066 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
2067 * symtab.c (free_completion_list): New function.
2068 (do_free_completion_list): Likewise.
2069 (default_make_symbol_completion_list_break_on): New variable
2070 back_to. Call make_cleanup and discard_cleanups.
2071 (make_source_files_completion_list): Likewise.
2073 2011-10-28 Paul Koning <paul_koning@dell.com>
2075 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
2076 * NEWS: Mention deep_items.
2078 2011-10-28 Alen Skondro <askondro@gmail.com>
2080 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
2083 2011-10-27 Meador Inge <meadori@codesourcery.com>
2085 * MAINTAINERS (Write After Approval): Add myself to the list.
2087 2011-10-27 Joel Brobecker <brobecker@adacore.com>
2089 * value.h (read_frame_register_value): Add declaration.
2090 * findvar.c (read_frame_register_value): New function.
2091 (value_from_register): Use read_frame_register_value
2092 instead of get_frame_register_value + value_contents_copy
2093 to get value contents.
2095 2011-10-27 Doug Evans <dje@google.com>
2097 * cli/cli-cmds.c (source_script_with_search): Pass full path to
2098 source_script_from_stream if it may have been found on the search path.
2099 * python/py-auto-load.c (source_section_scripts): Pass full path to
2100 source_python_script_for_objfile.
2101 * python/python.c (source_python_script): Delete stream parameter.
2102 All callers updated.
2103 (source_python_script_for_objfile): Ditto.
2104 * python/python-internal.h (source_python_script_for_objfile): Update.
2105 * python/python.h (source_python_script): Update.
2107 2011-10-27 Tom Tromey <tromey@redhat.com>
2109 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
2110 (ada_sals_for_line): Remove declarations.
2112 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
2114 Move unwind reasons to an external .def file
2115 * frame.c (frame_stop_reason_string): Rewrite using
2116 unwind_stop_reasons.def.
2117 * frame.h (enum unwind_stop_reason): Likewise.
2118 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
2119 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
2120 constants for bound-checking.
2121 * unwind_stop_reasons.def: New file.
2122 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
2123 instead of a distinct value.
2125 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
2129 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
2130 (convert_values_to_python): Return on Python tuple allocation
2131 failure. Return NULL on value conversion error.
2133 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
2135 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
2136 (bppy_set_task): Ditto.
2137 (bppy_delete_breakpoint): Ditto.
2138 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
2139 (gdbpy_lookup_global_symbol): Ditto.
2140 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
2141 * python/py-frame.c (frapy_is_valid): Ditto.
2142 (frame_info_to_frame_object): Ditto.
2143 * python/py-type.c (typy_lookup_type): Ditto.
2144 (typy_getitem): Ditto.
2145 (typy_has_key): Ditto.
2146 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
2148 2011-10-26 Joel Brobecker <brobecker@adacore.com>
2150 * gdbarch.h: Regenerate.
2152 2011-10-26 Meador Inge <meadori@codesourcery.com>
2154 * gdbarch.sh (function_list): Use 'pstring' when printing
2156 * gdbarch.c: Regenerate.
2158 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2160 * regcache.c (registers_changed_ptid): Invalidate thread architecture
2161 and frame caches if PTID refers to all threads of a process.
2163 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2165 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
2166 to create_breakpoint.
2168 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
2170 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
2171 (ppc_sysv_abi_push_dummy_call): Use it.
2172 (do_ppc_sysv_return_value): Likewise.
2173 (ppc64_sysv_abi_push_dummy_call): Likewise.
2174 (ppc64_sysv_abi_return_value): Likewise.
2176 2011-10-26 Paul Koning <paul_koning@dell.com>
2178 * python/lib/gdb/types.py (deepitems): New function.
2180 2011-10-25 Paul Koning <paul_koning@dell.com>
2184 * python/py-value.c (value_to_value_object): Remove fetching of
2185 the value if it was lazy.
2186 (valpy_get_is_lazy): New function.
2187 (valpy_fetch_lazy): New function.
2189 2011-10-24 Joel Brobecker <brobecker@adacore.com>
2191 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
2192 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
2194 2011-10-24 Pedro Alves <pedro@codesourcery.com>
2196 * linux-nat.c (linux_handle_extended_wait): When handling a clone
2197 event, in non-stop, if not stopping, make sure the new lwp has
2198 last_resume_kind set to resume_continue. Assert that when we're
2199 resuming the new lwp, its last_resume_kind is resume_continue.
2201 2011-10-24 Pedro Alves <pedro@codesourcery.com>
2203 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
2204 already set when marking the event thread as not executing in
2207 2011-10-24 Pedro Alves <pedro@codesourcery.com>
2209 * infrun.c (handle_inferior_event): Add debug output for
2210 TARGET_WAITKIND_NO_HISTORY.
2212 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
2214 * NEWS: Move set/show extended-prompt to "New Options". Expand
2215 description. Fix typos.
2217 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
2221 * python/py-param.c (call_doc_function): Correctly deference on
2224 2011-10-21 Joel Brobecker <brobecker@adacore.com>
2226 * ada-tasks.c (print_ada_task_info): Fix computation of
2227 number of tasks displayed in command output.
2229 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2230 Ulrich Weigand <uweigand@de.ibm.com>
2232 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
2233 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
2234 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
2235 gdbarch_pc_regnum and frame_unwind_register_unsigned by
2238 2011-10-20 Cary Coutant <ccoutant@google.com>
2240 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
2242 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
2243 flag. Adjust all callers.
2244 (process_psymtab_comp_unit): Remove adjustment for type section.
2246 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
2248 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
2249 arguments by adding OBJFILE. Instead of getting objfile from
2250 symbol's symtab, use new argument OBJFILE.
2251 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
2252 arguments by adding OBJFILE.
2253 * gdb/dwarf2read.c (new_symbol_full): Change call to
2254 cp_scan_for_anonymous_namespaces to match new signature.
2255 * gdb/stabsread.c (define_symbol): Change call to
2256 cp_scan_for_anonymous_namespaces to match new signature.
2258 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2263 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
2265 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
2266 leak. Delete unused variables.
2268 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
2272 * python/py-frame.c (frapy_read_var): Use const struct *block.
2273 * python/py-type.c (typy_lookup_typename): Likewise.
2274 (typy_lookup_type): Likewise.
2275 (typy_legacy_template_argument): Likewise.
2276 (typy_template_argument): Likewise.
2277 (gdbpy_lookup_type): Likewise.
2278 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2279 * python/py-block.c (blpy_block_object): Likewise.
2280 (blpy_iter): Likewise.
2281 (blpy_get_start): Likewise.
2282 (blpy_get_end): Likewise.
2283 (blpy_get_function): Likewise.
2284 (blpy_get_superblock): Likewise.
2285 (set_block): Likewise.
2286 (block_to_block_object): Likewise.
2287 (block_object_to_block): Likewise.
2288 (blpy_is_valid): Likewise.
2289 (blpy_get_global_block): New function.
2290 (blpy_get_static_block): New function.
2291 (blpy_is_global): New function.
2292 (blpy_is_static): New function.
2293 * blockframe.c (block_innermost_frame): Likewise.
2294 * valops.c (value_of_variable): Likewise.
2295 * frame.h: Update prototypes.
2296 * python/python-internal.h: Likewise.
2297 * value.h: Likewise.
2299 2011-10-19 Cary Coutant <ccoutant@google.com>
2301 * dwarf2read.c (create_debug_types_hash_table): Fix size of
2304 2011-10-19 Cary Coutant <ccoutant@google.com>
2306 * dwarf2read.c (peek_abbrev_code): New function.
2307 (dw2_get_file_names): Check for dummy compilation units.
2308 (create_debug_types_hash_table): Likewise.
2309 (process_psymtab_comp_unit): Likewise.
2310 (load_partial_comp_unit): Likewise.
2311 (load_full_comp_unit): Likewise.
2313 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
2315 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2316 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2317 pt_phdr if PT_PHDR was found.
2319 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
2321 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2322 type or "<unnamed type"> when there is no name assigned.
2323 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2324 avoid a sigint when no name is assigned.
2326 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2329 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2330 * dwarf2expr.c (ctx_no_read_reg): New function.
2331 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2332 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2333 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2334 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2336 2011-10-16 Doug Evans <dje@google.com>
2338 * NEWS: Document python gdb.printing.register_pretty_printer's new
2339 `replace' parameter.
2341 2011-10-14 Keith Seitz <keiths@redhat.com>
2344 * eval.c (evaluate_subexp_standard): Do not construct
2345 an array of types; pass the value array directly to
2346 find_overload_match.
2347 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2348 (rank_function): Take an array of values instead of types.
2349 (rank_one_type): Add struct value * parameter.
2350 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2351 (rank_function): For each argument, pass the argument's
2352 value to rank_one_type.
2353 (rank_one_type): Add VALUE parameter.
2354 If the parameter type is a pointer and the argument type
2355 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2357 Update all calls to rank_one_type, passing NULL for new
2359 * valarith.c (value_user_defined_cpp_op): Do not construct
2360 an array of types; pass the value array directly to
2361 find_overload_match.
2362 * valops.c (find_overload_method_list): Take an array of
2363 values instead of types.
2364 Save the type of OBJP for later use.
2365 Update calls to find_oload_champ, and find_oload_champ_namespace.
2366 (find_oload_champ_namespace): Take an array of values instead
2368 (find_oload_champ_namespace_loop): Likewise.
2369 (find_oload_champ): Likewise.
2370 (classify_oload_match): Inspect all arguments
2371 until INCOMPATIBLE is found. Return the worst badness found
2373 (compare_parameters): Update call to rank_one_type.
2374 * value.h (find_overload_match): Take an array of values instead
2377 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2379 Drop lazy lm_info reading.
2380 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2381 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2382 (lm_info_read): New function.
2383 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2384 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2385 lm_dynamic_from_link_map.
2386 (lm_next, lm_prev, lm_name): Remove.
2387 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2388 initialization incl. read_memory. No longer use lm_name.
2389 (svr4_free_so): Drop lm_info->lm freeing.
2390 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2391 explicit lm_addr and lm initialization.
2392 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2393 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2396 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2397 Paul Pluzhnikov <ppluzhnikov@google.com>
2399 * defs.h (struct so_list): New forward declaration.
2400 (make_cleanup_free_so): New declaration.
2401 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2402 (svr4_free_so): Move the function here from downwards. Handle NULL
2404 (svr4_free_library_list): New.
2405 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2406 Use more cleanups. Use new parameter ignore_first instead of
2407 ignore_first_link_map_entry.
2408 (svr4_current_sos): New variable ignore_first, initialize it. New
2409 variable back_to, use it for svr4_free_library_list protection.
2410 (svr4_free_so): Remove - move upwards.
2411 * utils.c: Include solist.h.
2412 (do_free_so, make_cleanup_free_so): New functions.
2414 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2416 Fix internal error regression.
2417 * value.c (value_primitive_field): Handle value_optimized_out. Move
2418 packed bitfields comment.
2420 2011-10-13 Tom Tromey <tromey@redhat.com>
2422 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2425 2011-10-13 Tom Tromey <tromey@redhat.com>
2427 * python/py-type.c (typy_has_key): Make 'field' const.
2429 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2431 * remote.c (remote_save_trace_data): Invert comparison.
2433 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2435 * tracepoint.c (trace_save_command): Use filename instead of
2438 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2440 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2443 2011-10-13 Yao Qi <yao@codesourcery.com>
2446 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2447 whether insn is a 32-bit Thumb-2 instruction.
2448 (thumb_in_function_epilogue_p): Likewise.
2449 (thumb_get_next_pc_raw): Likewise.
2450 (arm_breakpoint_from_pc): Likewise.
2452 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2454 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2455 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2456 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2457 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2458 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2460 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2462 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2463 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2464 clear DATA on zero SIZE.
2466 2011-10-12 Doug Evans <dje@google.com>
2468 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2469 header->first_die_offset here. All callers updated.
2471 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2473 Fix compatibility with texinfo versions older than 4.12.
2474 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2475 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2476 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2477 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2478 * configure: Regenerate.
2479 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2480 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2481 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2483 2011-10-12 Gary Benson <gbenson@redhat.com>
2485 * breakpoint.h (pc_at_non_inline_function): Declare.
2486 * breakpoint.c (is_non_inline_function,
2487 pc_at_non_inline_function): New functions.
2488 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2489 if the stop is at a location where functions cannot be inlined.
2491 2011-10-12 Pedro Alves <pedro@codesourcery.com>
2493 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2494 the core wanted them stopped, or if they now have a pending event
2496 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2497 down to stop_and_resume_callback.
2498 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2499 having new pending events after calling linux_nat_filter_event.
2501 2011-10-11 Sterling Augustine <saugustine@google.com>
2503 * dwarf2read.c: Undo inadvertent changes in previous commit.
2505 2011-10-11 Sterling Augustine <saugustine@google.com>
2507 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2510 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2512 * symfile.c (separate_debug_file_exists): Fix condition.
2514 2011-10-11 David S. Miller <davem@davemloft.net>
2516 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2518 * regcache.h (regcache_restore): Remove declaration.
2520 * gdbarch.sh: New field 'long_long_align_bit'.
2521 * gdbarch.c, gdbarch.h: Regenerate.
2522 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2523 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2525 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2527 Revert this part of:
2528 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2529 Support @entry in input expressions.
2530 * c-exp.y (ENTRY, unknown_cpp_name): New.
2531 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2532 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2533 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2534 (name_not_typename: ENTRY): New.
2535 (yylex): Recognize ENTRY.
2537 Reimplement @entry in input expressions.
2538 * c-exp.y (ENTRY): New.
2539 (variable: name_not_typename ENTRY): New.
2540 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2542 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2544 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2545 parent and child's pids as soon as we detect a clone event.
2546 Adjust another debug message.
2548 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2550 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2551 not zombie instead of reading the whole file.
2553 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2555 Fix separate debuginfo warning with "remote:" access.
2556 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2557 * symfile.c (get_file_crc): New function with the code moved from ...
2558 (separate_debug_file_exists): ... this function, specifically variables
2559 buffer and count. New variable verified_as_different, set it. Remove
2560 file_crc initialization. Verify also if both files are not the same
2561 manually, if needed.
2563 2011-10-11 Yao Qi <yao@codesourcery.com>
2565 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2568 2011-10-10 Doug Evans <dje@google.com>
2570 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2571 libthread_db when we load libpthread or the main symbol file.
2572 (thread_db_inferior_created): New function.
2573 (_initialize_thread_db): Attach inferior_created observer.
2574 * linux-nat.c (linux_child_post_attach): Remove call to
2575 check_for_thread_db.
2576 (linux_child_post_startup_inferior): Ditto.
2577 * objfiles.h (OBJF_MAINLINE): Define.
2578 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2579 allocate_objfile when appropriate.
2581 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2584 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2585 Remove unused variables.
2586 (get_linux_version): Remove function.
2587 (_initialize_arm_linux_nat): Do not call it.
2589 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2591 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2592 new clone lwp if the core asked it to stop. Don't pass on
2593 unexpected signals to the new clone; leave them pending instead.
2595 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2597 * linux-nat.c (resume_lwp): Remove redundant debug output.
2599 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2601 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2602 last_resume_kind before clearing it, and use the copy instead to
2603 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2604 resume_clear_callback in the non-stop path too.
2606 2011-10-09 Yao Qi <yao@codesourcery.com>
2608 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2609 Honor OPTIONS and VAL's type.
2610 (common_val_print, value_print): Update to pass one more parameter.
2612 2011-10-09 Doug Evans <dje@google.com>
2614 Add new "alias" command.
2615 * NEWS: Mention new command.
2616 * command.h (valid_user_defined_cmd_name_p): Declare.
2617 * defs.h (make_cleanup_dyn_string_delete): Declare.
2618 * utils.c: #include "dyn-string.h".
2619 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2620 * cli/cli-cmds.c: #include "dyn-string.h".
2621 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2622 (init_cli_cmds): Add new command.
2623 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2625 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2627 Fix compatibility with older GCCs.
2628 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2629 * stack.c (read_frame_arg): Initialize val_deref.
2631 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2633 Entry values NEWS entries, DWARF disassembly support.
2634 * NEWS: New entry values entry.
2635 (set print entry-values, show print entry-values)
2636 (set debug entry-values, show debug entry-values): New entries.
2637 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2638 indent. Remove variable start. Move header printing out. Respect
2639 INDENT. Support DW_OP_GNU_entry_value.
2640 (locexpr_describe_location_1): Move the header printing here, extend
2641 the disassemble_dwarf_expression passed parameters.
2643 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2645 Display @entry parameter values even for references.
2646 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2647 coerce_ref_if_computed.
2648 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2649 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2650 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2651 existing push_dwarf_reg_entry_value call. Add new detection calling
2652 dwarf_block_to_dwarf_reg_deref. Update the error message.
2653 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2655 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2656 parameter deref_size, describe it in the comment.
2657 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2658 (dwarf_block_to_dwarf_reg_deref): New declaration.
2659 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2660 deref_size, describe it in the function comment. New variables
2661 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2662 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2663 describe it in the function comment. Fetch the alternative block
2664 accoring to DEREF_SIZE.
2665 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2666 (entry_data_value_free_closure, entry_data_value_funcs): New.
2667 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2668 outer_val, target_val, val and addr. Try to fetch and create also
2669 referenced value content.
2670 (pieced_value_funcs): NULL value for coerce_ref.
2671 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2672 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2673 coerce_ref_if_computed.
2674 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2675 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2676 * stack.c (read_frame_arg): Compare also dereferenced values.
2677 * value.c (value_computed_funcs): Make the parameter v const, use
2678 value_lval_const for it.
2679 (value_lval_const, coerce_ref_if_computed): New function.
2680 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2681 * value.h (struct lval_funcs): New field coerce_ref.
2682 (value_computed_funcs): Make the parameter v const.
2683 (value_lval_const, coerce_ref_if_computed): New declarations.
2685 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2687 Support @entry in input expressions.
2688 * c-exp.y (ENTRY, unknown_cpp_name): New.
2689 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2690 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2691 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2692 (name_not_typename: ENTRY): New.
2693 (yylex): Recognize ENTRY.
2694 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2695 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2697 * parse.c (operator_length_standard): Likewise.
2698 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2700 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2702 Display referenced values in backtraces.
2703 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2704 * stack.c (print_frame_arg): Likewise.
2706 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2708 Make some lval_funcs methods to default on NULL.
2709 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2711 (value_assign): Check if lval_computed write method is NULL.
2712 * value.h (struct lval_funcs): Comment NULL values for read and write
2715 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2717 Display @entry parameter values (without references).
2718 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2720 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2722 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2724 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2725 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2727 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2728 (loclist_read_variable_at_entry): New function.
2729 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2730 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2731 DW_AT_location, call dwarf_block_to_sp_offset for it.
2732 * frame.h (print_entry_values_no, print_entry_values_only)
2733 (print_entry_values_preferred, print_entry_values_if_needed)
2734 (print_entry_values_both, print_entry_values_compact)
2735 (print_entry_values_default, print_entry_values): New declarations.
2736 (struct frame_arg): New field entry_kind.
2737 (read_frame_arg): New parameter entryargp.
2738 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2739 arg->entry_kind. Optionally print the `@entry' suffix.
2740 (list_args_or_locals): New variable entryarg, initialize it.
2741 Initialize also entry_kind of arg and entryarg. Conditionalize
2742 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2743 xfree for entryarg.error.
2744 * stack.c (print_entry_values_no, print_entry_values_only)
2745 (print_entry_values_preferred, print_entry_values_if_needed)
2746 (print_entry_values_both, print_entry_values_compact)
2747 (print_entry_values_default, print_entry_values_choices)
2748 (print_entry_values): New variables.
2749 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2750 print the `@entry' suffix, possibly in combination for
2751 print_entry_values_compact.
2752 (read_frame_arg): New parameter entryargp, new variables entryval,
2753 entryval_error and val_equal. Read in also entryargp, respect
2754 print_entry_values, compare the values using val_equal, fill in also
2755 argp->entry_kind (together with entryargp->entry_kind).
2756 (print_frame_args): New variable entryarg, initialize it.
2757 Conditionalize print_frame_arg for arg, add print_frame_arg for
2758 entryarg. Call xfree for entryarg.error.
2759 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2760 * symtab.h (struct symbol_computed_ops): New field
2761 read_variable_at_entry.
2763 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2766 * frame.h (struct frame_arg): New definition.
2767 (read_frame_arg): New declaration.
2768 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2769 (list_args_or_locals): ... the code here. New variable arg, call
2770 read_frame_arg and list_arg_or_local with it. Unify the
2771 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2773 * stack.c (print_frame_arg): New functiom from the code of
2775 (read_frame_arg): New function.
2776 (print_frame_args): Remove variable val. New variable arg, call
2777 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2779 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2781 Protect entry values against self tail calls.
2782 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2783 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2785 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2787 Recognize virtual tail call frames.
2788 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2789 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2790 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2791 * dwarf2-frame-tailcall.c: New file.
2792 * dwarf2-frame-tailcall.h: New file.
2793 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2794 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2795 REGS.PREV only after CIE execution.
2796 (struct dwarf2_frame_cache): New field tailcall_cache.
2797 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2798 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2799 parts, try to find entry_cfa_sp_offset. Call
2800 dwarf2_tailcall_sniffer_first.
2801 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2803 (dwarf2_frame_dealloc_cache): New function.
2804 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2805 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2806 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2807 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2808 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2809 * dwarf2loc.c (func_addr_to_tail_call_list)
2810 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2811 (call_site_find_chain_1, call_site_find_chain): New.
2812 * dwarf2loc.h (struct call_site_chain): New.
2813 (call_site_find_chain): New declaration.
2814 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2815 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2816 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2817 * stack.c (frame_info): Support also TAILCALL_FRAME.
2819 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2821 Tail call sites reader implementation.
2822 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2823 fill in TYPE_TAIL_CALL_LIST.
2824 * gdbtypes.h (struct func_type): New field tail_call_list.
2825 (struct call_site): New field tail_call_next.
2826 (TYPE_TAIL_CALL_LIST): New definition.
2828 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2830 Implement basic support for DW_TAG_GNU_call_site.
2831 * block.c: Include gdbtypes.h and exceptions.h.
2832 (call_site_for_pc): New function.
2833 * block.h (call_site_for_pc): New declaration.
2834 * defs.h: Include hashtab.h.
2835 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2837 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2838 ctx_no_push_dwarf_reg_entry_value.
2839 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2840 (dwarf_block_to_dwarf_reg): New function.
2841 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2842 (ctx_no_push_dwarf_reg_entry_value): New function.
2843 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2844 push_dwarf_reg_entry_value.
2845 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2847 * dwarf2loc.c: Include gdbcmd.h.
2848 (dwarf_expr_ctx_funcs): New forward declaration.
2849 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2850 (dwarf_expr_reg_to_entry_parameter)
2851 (dwarf_expr_push_dwarf_reg_entry_value): New.
2852 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2853 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2854 (needs_dwarf_reg_entry_value): New function.
2855 (needs_frame_ctx_funcs): Install it.
2856 (_initialize_dwarf2loc): New function.
2857 * dwarf2loc.h (entry_values_debug): New declaration.
2858 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2859 (read_call_site_scope): New forward declaration.
2860 (process_full_comp_unit): Copy call_site_htab.
2861 (process_die): Support DW_TAG_GNU_call_site.
2862 (read_call_site_scope): New function.
2863 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2864 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2865 (cleanup_htab): Delete.
2866 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2867 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2868 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2869 FIELD_LOC_KIND_DWARF_BLOCK.
2870 * gdbtypes.h (enum field_loc_kind): New entry
2871 FIELD_LOC_KIND_DWARF_BLOCK.
2872 (struct main_type): New loc entry dwarf_block.
2873 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2874 (TYPE_FIELD_DWARF_BLOCK): New.
2875 * python/py-type.c: Include dwarf2loc.h.
2876 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2877 internal_error call on unknown FIELD_LOC_KIND.
2878 * symtab.h (struct symtab): New field call_site_htab.
2879 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2880 (core_addr_hash, core_addr_eq): New functions.
2882 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2885 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2886 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2887 calling_convention under func_stuff there.
2888 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2889 (init_type) <TYPE_CODE_FUNC>: Likewise.
2890 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2891 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2892 * gdbtypes.h (enum type_specific_kind): Change
2893 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2894 (struct main_type) <type_specific>: Change calling_convention to
2895 func_stuff. Move calling_convention to ...
2896 (struct func_type): ... this new struct.
2897 (INIT_FUNC_SPECIFIC): New #define.
2898 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2900 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2902 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2903 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2904 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2905 ctx->ref_addr_size. Handle its invalid value.
2906 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2907 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2908 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2909 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2910 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2911 (dwarf2_per_cu_ref_addr_size): New function.
2913 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2916 * dwarf2read.c (per_cu_header_read_in): New function.
2917 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2918 variables cu_header_local and cu_headerp.
2920 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2922 Fix initial language detection with -readnow.
2923 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2924 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2925 searches only for global symbols.
2927 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2929 Fix printed anonymous struct name.
2930 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2931 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2932 (anonymous_struct_prefix): New function.
2933 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2934 (dwarf2_name): Strip for anonymous structs any prefixes.
2936 2011-10-07 Doug Evans <dje@google.com>
2938 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2941 * python/lib/gdb/printing.py: Whitespace cleanup.
2943 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2946 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2948 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2949 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2950 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2951 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2952 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2953 (arm_linux_remove_watchpoint): Adjust.
2954 * i386-linux-nat.c (i386_linux_dr_set_control)
2955 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2956 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2957 (ia64_linux_remove_watchpoint): Adjust.
2958 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2959 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2960 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2961 (ppc_linux_insert_mask_watchpoint)
2962 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2963 (ppc_linux_remove_watchpoint): Adjust.
2964 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2967 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2969 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2970 (clear_win32_environment): New function for Cygwin to clear out
2972 (windows_create_inferior): Prepare new environment from in_env
2975 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2978 * python/py-value.c (valpy_call): Check that arguments are
2980 (is_intlike): Remove call to CHECK_TYPEDEF.
2981 (valpy_nonzero): Catch GDB exceptions.
2982 (valpy_absolute): Ditto.
2983 (valpy_lazy_string): Ditto.
2984 (valpy_call): Ditto.
2985 (valpy_get_is_optimized_out): Ditto.
2986 (valpy_long): Ditto.
2987 (valpy_float): Ditto.
2988 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2989 (valpy_richcompare): Ditto.
2991 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2993 * inferior.h (disable_randomization): Declare.
2994 * infrun.c (disable_randomization): New global variable.
2995 (show_disable_randomization): New function.
2996 (set_disable_randomization): Likewise.
2997 (_initialize_infrun): Install set/show disable-randomization
2999 * linux-nat.c (disable_randomization): Remove.
3000 (show_disable_randomization): Likewise.
3001 (set_disable_randomization): Likewise.
3002 (_initialize_linux_nat): No longer install set/show
3003 disable-randomization commands here.
3004 (linux_nat_supports_disable_randomization): New function.
3005 (linux_nat_add_target): Install it.
3006 * remote.c (PACKET_QDisableRandomization): New enum value.
3007 (remote_protocol_packets): Support QDisableRandomization.
3008 (_initialize_remote): Likewise.
3009 (remote_supports_disable_randomization): New function.
3010 (init_remote_ops): Install it.
3011 (extended_remote_supports_disable_randomization): New function.
3012 (init_extended_remote_ops): Install it.
3013 (extended_remote_disable_randomization): New function.
3014 (extended_remote_create_inferior_1): Call it.
3015 * target.h (struct target_ops): Add to_supports_disable_randomization.
3016 (target_supports_disable_randomization): Add prototype.
3017 * target.c (target_supports_disable_randomization): New function.
3018 (find_default_supports_disable_randomization): Likewise.
3019 (init_dummy_target): Install it.
3021 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
3023 Allow Python notification of new object-file loadings.
3024 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
3025 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
3026 Add build rule for this file.
3027 * python/py-event.h (emit_new_objfile_event): New prototype.
3028 (newobjfile): New Python event emitter.
3029 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
3030 Python event registry.
3031 * python/py-inferior.c: Include objfiles.h
3032 (python_new_objfile): New function.
3033 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
3035 * python/py-newobjfileevent.c: New file.
3036 * python-internal.h (gdbpy_initialize_new_objfile_event): New
3038 * python/python.c (_initialize_python): Add
3039 gdbpy_initialize_new_objfile_event call.
3040 * NEWS: Add item for new Python event "gdb.newobjfile"
3042 2011-10-05 Tristan Gingold <gingold@adacore.com>
3044 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
3045 Extract the ravenscar task name from the symbol for the atcb.
3047 2011-10-04 Paul Koning <paul_koning@dell.com>
3049 * python/py-type.c (typy_make_iter): Add forward declaration.
3050 (typy_fields_items): Use the gdb.Type iterator.
3052 2011-10-04 Paul Koning <paul_koning@dell.com>
3054 * NEWS: Add entry for Python gdb.Type mapping methods.
3056 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
3058 PR python/12691: Add the inferior to Python exited event
3059 * python/py-exitedevent.c (create_exited_event_object): Add inferior
3061 * python/py-event.h (emit_exited_event): Likewise
3062 * python/-inferior.c (python_inferior_exit): Likewise
3064 2011-10-03 Joel Brobecker <brobecker@adacore.com>
3066 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
3067 in output of -ada-task-info GDB/MI command.
3069 2011-10-03 Joel Brobecker <brobecker@adacore.com>
3071 * ada-lang.h (struct inferior): Declare.
3072 (print_ada_task_info): Add declaration.
3073 * ada-tasks.c (print_ada_task_info): Make non-static.
3074 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
3075 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
3076 * mi/mi-main.c: #include "ada-lang.h".
3077 (mi_cmd_list_features): Add "ada-task-info" to the list
3078 of supported features.
3079 (mi_cmd_ada_task_info): New function.
3081 2011-10-03 Joel Brobecker <brobecker@adacore.com>
3083 * python/python.c (python_run_simple_file): New function.
3084 (source_python_script, source_python_script_for_objfile):
3085 Replace call to PyRun_SimpleFile by call to
3086 python_run_simple_file.
3088 2011-10-03 Paul Koning <paul_koning@dell.com>
3090 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
3091 (value_to_value_object): Fetch value if it was lazy.
3093 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3096 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
3097 Rearrange the code for it.
3099 2011-10-02 Joel Brobecker <brobecker@adacore.com>
3101 * breakpoint.c (bkpt_print_recreate): Add call to
3102 print_recreate_thread.
3104 2011-09-29 Mike Frysinger <vapier@gentoo.org>
3106 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
3107 PTRACE_GETFDPIC_INTERP): Define.
3109 2011-09-28 Yao Qi <yao@codesourcery.com>
3111 * symfile.c (add_symbol_file_command): Update message on usage.
3113 2011-09-28 Paul Koning <paul_koning@dell.com>
3115 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
3116 (typy_length, typy_get, typy_has_key, typy_make_iter)
3117 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
3118 (typy_iterator_iter, typy_iterator_iternext)
3119 (typy_iterator_dealloc): New functions to implement standard
3120 Python mapping methods on gdb.Type object.
3121 (gdb.TypeIterator): New Python type.
3122 * python/python-internal.h (gdbpy_iter_kind): New enum.
3124 2011-09-28 David S. Miller <davem@davemloft.net>
3126 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
3127 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
3128 * sparc-tdep.c (sparc_complex_floating_p): New function.
3129 (sparc32_store_arguments): Handle complex floats.
3130 (sparc32_extract_return_value): Likewise.
3131 (sparc32_store_return_value): Likewise.
3132 (sparc32_stabs_argument_has_addr): Likewise.
3133 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
3134 (sparc64_store_floating_fields): Handle complex floats.
3135 (sparc64_store_arguments): Likewise.
3136 (sparc64_store_return_value): Likewise.
3138 2011-09-28 Eli Zaretskii <eliz@gnu.org>
3140 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
3141 before the change on 2006-12-09.
3142 (windows_create_inferior) [!__CYGWIN__]: Restore code that
3143 generates the environment block for CreateProcessA, modulo the
3144 Cygwin-specific parts that are not needed here.
3146 2011-09-27 Tristan Gingold <gingold@adacore.com>
3148 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
3149 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
3150 (darwin_solib_get_all_image_info_addr_at_init): New function.
3151 (darwin_solib_read_all_image_info_addr): Likewise.
3152 (darwin_solib_create_inferior_hook): Use the above two functions.
3153 * darwin-nat.c (darwin_execvp): Renames retval to res.
3154 (darwin_read_write_inferior): Update comment.
3155 (darwin_read_dyld_info): New function.
3156 (darwin_xfer_partial): Handle DYLD_INFO.
3158 2011-09-27 Stan Shebs <stan@codesourcery.com>
3160 Add return address collection for tracepoints.
3161 * tracepoint.c (encode_actions_1): Add case for $_ret.
3162 (validate_actionline): Check for $_ret.
3163 (trace_dump_actions): Ditto.
3164 * ax-gdb.h (gen_trace_for_return_address): Declare.
3165 * ax-gdb.c: Include arch-utils.h.
3166 (gen_trace_for_return_address): New function.
3167 (agent_command): Add return address special case.
3168 * amd64-tdep.c: Include ax.h and ax-gdb.h.
3169 (amd64_gen_return_address): New function.
3170 (amd64_init_abi): Call it.
3171 * i386-tdep.c: Include ax.h and ax-gdb.h.
3172 (i386_gen_return_address): New function.
3173 (i386_init_abi): Call it.
3174 * arch-utils.h (default_gen_return_address): Declare.
3175 * arch-utils.c (default_gen_return_address): New function.
3176 * gdbarch.sh (gen_return_address): New method.
3177 * gdbarch.h, gdbarch.c: Regenerate.
3179 2011-09-23 Joseph Myers <joseph@codesourcery.com>
3182 * i386-tdep.c (i386_frame_align): New.
3183 (i386_gdbarch_init): Use i386_frame_align.
3185 2011-09-23 Yao Qi <yao@codesourcery.com>
3187 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
3190 2011-09-22 Tristan Gingold <gingold@adacore.com>
3192 * fork-child.c (fork_inferior): Add exec_fun parameter.
3193 Call exec_fun or execvp.
3194 * inferior.h: Adjust prototype.
3195 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
3196 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
3197 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
3198 * procfs.c (procfs_create_inferior): Ditto.
3199 * darwin-nat.c (darwin_execvp): New function.
3200 (darwin_create_inferior): Use it.
3202 2011-09-22 Yao Qi <yao@codesourcery.com>
3204 * infrun.c (context_switch): Print debug message when switching to
3207 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
3209 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
3210 complex and vector types.
3211 (s390_return_value_convention): Likewise.
3213 (s390_value_from_register): Call check_typedef.
3214 (extend_simple_arg): Likewise.
3215 (alignment_of): Likewise.
3216 (s390_push_dummy_call): Likewise.
3217 (s390_return_value): Likewise.
3219 2011-09-21 Joseph Myers <joseph@codesourcery.com>
3221 * event-top.c (async_disconnect): If an exception is thrown from
3222 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
3224 * top.c (quit_cover): Return void and take no arguments.
3225 * top.h (quit_cover): Update prototype.
3227 2011-09-20 Joseph Myers <joseph@codesourcery.com>
3229 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
3230 current_uiout, not uiout.
3232 2011-09-19 Doug Evans <dje@google.com>
3234 * python/py-auto-load.c (source_section_scripts): Fix file
3236 * python/python.c (source_python_script_for_objfile): Tweak comments.
3238 2011-09-18 Yao Qi <yao@codesourcery.com>
3239 Ulrich Weigand <ulrich.weigand@linaro.org>
3241 Support displaced stepping for Thumb 16-bit insns.
3242 * arm-tdep.c (THUMB_NOP) Define.
3243 (thumb_copy_unmodified_16bit): New.
3244 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
3245 (thumb_copy_alu_reg): New.
3246 (arm_copy_svc): Move some common code to ...
3247 (install_svc): ... here. New.
3248 (thumb_copy_svc): New.
3249 (install_pc_relative): New.
3250 (thumb_copy_pc_relative_16bit): New.
3251 (thumb_decode_pc_relative_16bit): New.
3252 (thumb_copy_16bit_ldr_literal): New.
3253 (thumb_copy_cbnz_cbz): New.
3254 (cleanup_pop_pc_16bit_all): New.
3255 (thumb_copy_pop_pc_16bit): New.
3256 (thumb_process_displaced_16bit_insn): New.
3257 (thumb_process_displaced_32bit_insn): New.
3258 (thumb_process_displaced_insn): process thumb instruction.
3260 Support displaced stepping for Thumb 32-bit insns.
3261 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
3262 (thumb2_copy_preload): New.
3263 (thumb2_copy_copro_load_store): New.
3264 (thumb2_copy_b_bl_blx): New.
3265 (thumb2_copy_alu_imm): New.
3266 (thumb2_copy_load_reg_imm): New.
3267 (thumb2_copy_load_literal): New
3268 (thumb2_copy_block_xfer): New.
3269 (thumb_32bit_copy_undef): New.
3270 (thumb_32bit_copy_unpred): New.
3271 (thumb2_decode_ext_reg_ld_st): New.
3272 (thumb2_decode_svc_copro): New.
3273 (decode_thumb_32bit_store_single_data_item): New.
3274 (thumb_copy_pc_relative_32bit): New.
3275 (thumb_decode_pc_relative_32bit): New.
3276 (decode_thumb_32bit_ld_mem_hints): New.
3277 (thumb2_copy_table_branch): New
3278 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
3281 2011-09-18 Yao Qi <yao@codesourcery.com>
3283 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
3284 (install_b_bl_blx): Likewise.
3286 2011-09-17 Yao Qi <yao@codesourcery.com>
3288 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
3289 (install_load_store): ... this. New.
3290 Change parameter BYTE to SIZE.
3291 (arm_copy_ldr_str_ldrb_strb): Update caller.
3292 (arm_decode_ld_st_word_ubyte): Update caller.
3294 2011-09-17 Yao Qi <yao@codesourcery.com>
3296 * infrun.c (displaced_step_fixup): Move some code ...
3297 (displaced_step_restore): ... here. New function.
3298 (handle_inferior_event): Cleanup displaced stepping state for both
3299 child and parent when get forked or vforked event.
3300 * regcache.c (get_thread_arch_aspace_regcache): New function.
3301 get_thread_arch_regcache (): Call it.
3303 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3305 * ada-tasks.c (print_ada_task_info): New function, merging
3306 short_task_info and info_tasks together. Reimplement using
3307 ui-out instead of printing to stdout directly. Move the code
3308 building and checking the task list here, instead of leaving it
3309 in info_tasks_command.
3310 (info_task): Move the code building and checking the task
3311 list here, instead of leaving it in info_tasks_command.
3312 (info_tasks_command): Delete code building and checking
3313 the task list - moved elsewhere. Update calls to info_tasks
3316 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3318 * ada-tasks.c (info_task): Delete parameter `from_tty'.
3320 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3322 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3324 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3326 * ada-lang.h (ada_build_task_list): Remove parameter
3328 * ada-tasks.c (ada_build_task_list): Remove parameter
3329 `warn_if_null'. Adjust implementation and documentation.
3330 (valid_task_id, ada_get_environment_task)
3331 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3332 (info_tasks_command): Adjust implementation.
3333 (task_command): Likewise.
3334 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3335 to ada_build_task_list.
3337 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3339 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3340 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3341 (ada_tasks_inferior_data_handle): New static global.
3342 (get_ada_tasks_inferior_data): New function.
3343 (ada_get_task_number, get_task_number_from_id, valid_task_id)
3344 (ada_get_environment_task, iterate_over_live_ada_tasks)
3345 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3347 (ada_set_current_inferior_known_tasks_addr): New function.
3348 (read_known_tasks, ada_build_task_list, short_task_info)
3349 (info_tasks, info_task, info_tasks_command, task_command_1)
3350 (task_command, ada_task_list_changed): Adjust.
3351 (ada_tasks_invalidate_inferior_data): New function.
3352 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3353 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3354 * ada-lang.h (struct inferior): Add declaration.
3355 (ada_task_list_changed): Update profile.
3356 * remote-wtx-pd.c: #include "inferior.h".
3357 (switch_to_pd_internal): Update call to ada_task_list_changed.
3359 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3361 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3362 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3363 (atcb_fieldno): Delete these static globals.
3364 (struct ada_tasks_pspace_data): New struct.
3365 (ada_tasks_pspace_data_handle): New static global.
3366 (get_ada_tasks_pspace_data): New function.
3367 (ada_tasks_invalidate_pspace_data): New function.
3368 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3369 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3370 (_initialize_tasks): Create this module's per-progspace
3373 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3375 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3377 2011-09-16 Tristan Gingold <gingold@adacore.com>
3379 * fork-child.c (fork_inferior): Update comment. Use alloca
3380 instead of xmalloc for argv. Move len and shell_command
3381 declarations in the block where they are used.
3382 Only call execvp. Factorize failure code.
3384 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3387 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3388 `exp_element' instead of an element of the same and make the function
3390 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3391 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3392 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3393 Change argument of `write_exp_elt' function call.
3394 Remove extra spaces from comments.
3395 * parser-defs.h (write_exp_elt): Remove prototype.
3397 2011-09-15 Paul Koning <paul_koning@dell.com>
3399 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3400 count of item appended to list.
3401 * python/py-type.c (typy_fields): Likewise.
3403 2011-09-15 Paul Koning <paul_koning@dell.com>
3405 * MAINTAINERS (Write After Approval): Add myself to the list.
3407 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3410 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3411 processes with multiple threads.
3412 (inf_has_multiple_thread_cb): New function.
3413 (inf_has_multiple_threads): New function.
3415 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3417 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3418 * python/py-inferior.c (GdbMethods): New Python method definition.
3420 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3422 Handle multiple breakpoint hits in Python interface:
3423 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3424 variable to breakpoints.
3425 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3426 bps instead of single breakpoint. Fix some space typos.
3427 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3428 variable to breakpoints.
3430 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3432 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3433 note if the breakpoint is internal.
3435 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3437 * MAINTAINERS (Write After Approval): Add myself to the list
3439 2011-09-14 Pedro Alves <pedro@codesourcery.com>
3441 * infrun.c (prepare_for_detach, wait_for_inferior)
3442 (fetch_inferior_event): Don't flush the register cache.
3443 * remote.c (struct stop_reply) <regcache>: Add comment.
3445 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3447 Remove excessive DWARF expressions memory duplication.
3448 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3450 (indirect_pieced_value): Remove variable result. Remove variable
3451 back_to and its use for baton.data.
3452 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3454 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3455 Update the function comment.
3457 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3459 * inferior.h (ALL_INFERIORS): New.
3460 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3461 for a stopped thread.
3462 (thread_db_find_new_threads): Look for threads in all inferiors.
3464 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3466 * breakpoint.c (update_watchpoint): Handle the case of the
3467 watchpoint to update not being in the breakpoint list yet.
3468 (hw_watchpoint_use_count): New, factored out from
3469 hw_watchpoint_used_count.
3470 (hw_watchpoint_used_count): Rename to ...
3471 (hw_watchpoint_used_count_others): ... this. Add `except'
3472 parameter. Don't count resources of `except'. Use
3473 hw_watchpoint_use_count.
3475 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3477 * gdbthread.h (enum thread_state): Moved here.
3478 (struct thread_info): Rename `executing_' field to `executing' and
3479 `state_' to `state'.
3480 * thread.c (enum thread_state): Moved to gdbthread.h.
3481 (new_thread, add_thread_silent, delete_thread_1)
3482 (any_live_thread_of_process, thread_alive, set_running)
3483 (set_running, is_thread_state, any_running, is_executing)
3484 (set_executing, finish_thread_state, print_thread_info)
3485 (do_captured_thread_select): Adjust.
3487 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3489 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3490 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3492 2011-09-12 Pedro Alves <pedro@codesourcery.com>
3493 Matt Rice <ratmice@gmail.com>
3497 * interps.c (struct interp) <interpreter_out>: Delete field.
3498 (interp_new): Remove the data and uiout parameters and adjust.
3499 (interp_set): Only set the current_uiout from the interpreter's
3500 uiout after initializing the interpreter. Adjust call to
3502 (interp_ui_out): Adjust to call procs->ui_out_proc.
3503 (interp_data, interp_name): New.
3504 * interps.h (interp_init_ftype): Add `self' parameter.
3505 (interp_ui_out_ftype): New typedef.
3506 (struct interp_procs) <ui_out_proc>: New method pointer.
3507 (interp_new): Remove the data and uiout parameters.
3508 (interp_data, interp_name): Declare.
3509 * tui/tui-interp.c (tui_init): Adjust prototype.
3511 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3512 tui_out here. Adjust call to interp_new.
3513 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3514 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3516 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3517 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3518 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3519 Initialize mi->uiout depending on the mi_version as extracted from
3520 the interpreter's name.
3522 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3523 interp_new. Don't allocate the ui_out's of the interpreters here.
3525 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3527 * solib.c (solib_used): New function.
3528 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3529 by another so_list object before freeing it.
3531 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3534 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3537 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3540 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3541 (amd64_skip_xmm_prologue): ... this new function. Describe its
3542 parameters. No longer use amd64_prologue_line_bug.
3543 * defs.h (producer_is_gcc_ge_4): New declaration.
3544 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3545 (process_full_comp_unit): Update its caller. Remove
3546 amd64_prologue_line_bug initialization.
3547 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3548 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3550 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3552 * linux-nat.h (enum resume_kind): New.
3553 (struct lwp_info) <last_resume_kind>: New field.
3554 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3555 resume_stop on the new lwp.
3556 (add_lwp): Set last_resume_kind as resume_continue by default.
3557 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3558 (resume_lwp): New, factored out from resume_callback. Also check
3559 for pending status in lp->waitstatus.
3560 (resume_callback): Reimplement.
3561 (resume_clear_callback): Set last_resume_kind as resume_stop.
3562 (resume_set_callback): Set last_resume_kind as resume_continue.
3563 (linux_nat_resume, linux_handle_extended_wait): Set
3565 (running_callback): Also check lp->waitstatus for pending events.
3566 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3568 (stop_and_resume_callback): Don't re-resume if the core wanted the
3569 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3570 using an invalidated pointer.
3571 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3572 SIGSTOPs if the core wanted the LWP to stop.
3573 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3574 wanted the lwp to stop. If the core wanted the lwp to stop, and
3575 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3576 of TARGET_SIGNAL_STOP.
3577 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3578 here. Instead, signal the lwp, and set the last_resume_kind to
3581 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3583 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3584 -1 (error), if the lwp exits right after attaching.
3586 2011-09-08 Doug Evans <dje@google.com>
3588 * py-cmd.c: Some minor formatting fixes.
3589 (gdbpy_parse_command_name): Rename text arg to name, make const.
3590 All callers updated.
3591 * python-internal.h (gdbpy_parse_command_name): Update.
3593 * cli/cli-decode.c (add_cmd): Add comment.
3595 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3597 PR breakpoints/12435
3598 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3599 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3600 * dwarf2read.c (process_full_comp_unit): Initialize
3601 amd64_prologue_line_bug.
3602 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3604 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3606 Fix TUI screen corruption.
3607 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3610 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3612 * findvar.c (read_var_value): Never return NULL, throw an error
3613 instead. Update the function comment. State symbol name in the error
3615 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3617 * stack.c (print_frame_args): Likewise.
3618 * valops.c (value_of_variable): Likewise.
3620 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3622 * stack.c (print_frame_args): New variable except. Wrap
3623 read_var_value and common_val_print into TRY_CATCH.
3625 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3627 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3628 caller to value_of_this.
3629 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3631 * valops.c (value_of_this): Remove parameter complain and variable ret.
3632 Update function comment. Never return NULL by this code.
3633 (value_of_this_silent): New function.
3634 * value.h (value_of_this): Remove parameter complain.
3635 (value_of_this_silent): New declaration.
3637 2011-09-07 Yao Qi <yao@codesourcery.com>
3639 * gdbthread.h (struct thread_info): Remove fields
3640 `stepping_through_solib_after_catch' and
3641 `stepping_through_solib_catchpoints'.
3642 * infrun.c (init_thread_stepping_state): Update.
3643 (process_event_stop_test, currently_stepping): Update.
3644 (currently_stepping_or_nexting_callback): Update.
3646 2011-09-07 Yao Qi <yao@codesourcery.com>
3648 * gdbthread.h (struct thread_info): Comment on field
3649 `step_after_step_resume_breakpoint'.
3651 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3653 * remote.c (remote_console_output): Reindent.
3655 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3657 * frame.c (has_stack_frames): Check for currently selected
3660 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3662 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3663 (set_async_annotation_level, set_async_prompt, pop_prompt)
3664 (push_prompt, new_async_prompt): Delete declarations.
3665 * top.h (get_prompt, set_prompt): Change prototype.
3666 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3668 * top.c (command_loop):
3669 (top_prompt): New global.
3670 (get_prefix, set_prefix, get_suffix, ): Delete.
3671 (get_prompt, set_prompt): Rewrite.
3672 (show_new_async_prompt): Rename to ...
3673 (show_prompt): ... this.
3674 (init_main): Adjust. Don't handle --annotate=2 here.
3675 * event-top.c (new_async_prompt): Delete.
3676 (the_prompts): Delete.
3677 (more_to_come): Make static.
3678 (display_gdb_prompt): Use top_level_prompt() to compute the top
3679 level prompt, and don't notify the before_prompt observers
3680 directly here. Always trick readline into not trying to display
3681 the prompt if sync_execution and displaying the primary prompt.
3682 If displaying a local/secondary prompt, always show it, even if
3683 sync_execution is set.
3684 (change_annotation_level): Delete.
3685 (top_level_prompt): New, based on change_annotation_level.
3686 (push_prompt, pop_prompt): Delete.
3687 (async_disable_stdin): No longer pushes prompt.
3688 (command_line_handler): No longer pushes or pops prompt. If more
3689 input is expected, call display_gdb_prompt with an explicit empty
3691 (async_stop_sig): Adjust.
3692 (set_async_annotation_level, set_async_prompt): Delete.
3693 * python/python.c (before_prompt_hook): Adjust.
3695 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3699 * infrun.c (fetch_inferior_event): Check if there's a selected
3700 thread before checking if the selected thread is executing.
3702 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3704 * inf-loop.c (execute_command): Don't check if the current thread
3705 if running before synchronously waiting for command completion.
3706 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3708 (normal_stop): Call async_enable_stdin here.
3709 * inf-loop.c (inferior_event_handler): Don't call
3710 async_enable_stdin, nor handle "set exec-done-display" here.
3712 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3716 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3718 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3720 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3722 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3724 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3726 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3728 2011-09-02 Matt Rice <ratmice@gmail.com>
3731 * event-top.c (cli_command_loop): Replace readline setup with
3732 direct call to display_gdb_prompt.
3733 (display_gdb_prompt): Do not call observer mechanism during
3734 synchronous execution.
3736 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3738 * linux-nat.c (in_pid_list_p): New.
3739 (linux_record_stopped_pid): Delete.
3740 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3741 already attached to the LWP. Return an indication if so.
3742 (linux_nat_filter_event): Adjust.
3743 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3744 returning an indication to ignore this thread.
3746 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3748 * top.c: Include interps.h.
3749 (execute_command): If the target can async, but the interpreter is
3750 in sync mode, synchronously wait for the command to finish before
3752 (execute_command_to_string): Force the interpreter to sync mode.
3753 * infrun.c: Include interps.h.
3754 (fetch_inferior_event): Don't restore the prompt yet if the
3755 interpreter is in sync mode.
3756 * interps.c (interpreter_async): New global.
3757 * interps.h (interpreter_async): Declare.
3758 * inf-loop.c: Include interps.h.
3759 (inferior_event_handler): Don't print the language change or run
3760 breakpoint commands yet if the interpreter in is sync mode.
3761 * main.c (captured_command_loop): Flip the interpreter to async
3763 * cli/cli-script.c: Include interps.h.
3764 (execute_user_command, while_command, if_command): Force the
3765 interpreter to sync mode.
3766 * python/python.c: Include interps.h.
3767 (python_command, execute_gdb_command): Force the interpreter to
3770 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3772 * value.c (show_convenience): Catch errors thrown while printing
3773 each internal variable.
3774 * infrun.c (validate_siginfo_access): New function.
3775 (siginfo_value_read, siginfo_value_write): Call it.
3777 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3780 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3781 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3784 2011-08-29 Yao Qi <yao@codesourcery.com>
3786 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3788 (enable_break2): Update caller.
3789 * solib-frv.c (bfd_lookup_symbol): Removed.
3791 (enable_break2): Update caller.
3792 * solib-pa64.c (bfd_lookup_symbol): Removed.
3794 * solib-svr4.c (bfd_lookup_symbol): Removed.
3795 (cmp_name_and_sec_flags): New.
3796 (enable_break): Update caller.
3797 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3798 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3799 (gdb_bfd_lookup_symbol): New.
3800 * solib.h: Functions declarations.
3802 2011-08-29 Yao Qi <yao@codesourcery.com>
3804 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3807 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3809 Fix TUI stepi on code without symbols.
3810 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3813 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3816 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3817 and the static keyword.
3818 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3819 Make prefix an array.
3820 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3821 * mi/mi-main.c (get_register): Remove stb initialization and the static
3824 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3826 Code cleanup - make mi_opt const.
3827 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3829 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3830 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3831 (mi_cmd_env_dir): Likewise.
3832 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3833 (mi_cmd_target_file_put): Likewise.
3834 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3835 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3836 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3837 (mi_valid_noargs): Make opts const.
3838 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3839 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3840 (mi_cmd_data_read_memory): Likewise.
3841 (mi_cmd_data_read_memory_bytes): Likewise.
3842 (mi_cmd_data_write_memory): Likewise.
3844 2011-08-26 Matt Rice <ratmice@gmail.com>
3846 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3847 bcache_xmalloc, replace bcache_xmalloc with call to
3848 psymbol_bcache_init for psymbol_cache.
3849 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3851 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3853 * inf-loop.c (inferior_event_handler): Add exception_print in
3856 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3858 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3859 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3860 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3861 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3862 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3863 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3864 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3865 * infrun.c (fetch_inferior_event): Call
3866 make_bpstat_clear_actions_cleanup.
3867 * top.c (execute_command): New variable cleanup_if_error, call
3868 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3869 * utils.c (do_bpstat_clear_actions_cleanup)
3870 (make_bpstat_clear_actions_cleanup): New functions.
3872 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3874 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3875 either the parent or the child forks. Rename a couple locals.
3877 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3879 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3880 library call. Avoid reading the `status' local if all waitpid
3883 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3885 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3886 opening /proc/PID/task always succeeds.
3888 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3890 * linespec.c (symtab_from_filename): Check for the end of string.
3892 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3895 * varobj.c (cplus_describe_child): Add the keyword
3896 'class' to the output of the method when dealing
3897 with a cast to a base class.
3899 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3901 No functionality change.
3902 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3903 function comment a reference, new variables tp and bs, move here code
3904 from throw_exception.
3905 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3906 describe it in the comment.
3907 * exceptions.c (throw_exception): Remove variable tp, move the code for
3908 bpstat_clear_actions to bpstat_clear_actions.
3910 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3912 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3913 * linux-nat.c: Include linux-procfs.h.
3914 (linux_proc_get_tgid): Move to ...
3915 * common/linux-procfs.c: ... here. New file.
3916 * common/linux-procfs.h: New file.
3917 * linux-thread-db.c: Include linux-procfs.h.
3918 * Makefile.in: Update dependencies.
3919 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3920 * config/arm/linux.mh: Likewise.
3921 * config/i386/linux.mh: Likewise.
3922 * config/i386/linux64.mh: Likewise.
3923 * config/ia64/linux.mh: Likewise.
3924 * config/m32r/linux.mh: Likewise.
3925 * config/m68k/linux.mh: Likewise.
3926 * config/mips/linux.mh: Likewise.
3927 * config/pa/linux.mh: Likewise.
3928 * config/pa/linux.mh: Likewise.
3929 * config/powerpc/linux.mh: Likewise.
3930 * config/powerpc/ppc64-linux.mh: Likewise.
3931 * config/powerpc/spu-linux.mh: Likewise.
3932 * config/sparc/linux.mh: Likewise.
3933 * config/sparc/linux64.mh: Likewise.
3934 * config/xtensa/linux.mh: Likewise.
3936 2011-08-24 Hui Zhu <teawater@gmail.com>
3938 * tracepoint.c (cond_string_is_same): New function.
3939 (find_matching_tracepoint): Add condition check
3940 by cond_string_is_same.
3942 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3944 Fix build error in Darwin port.
3945 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3947 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3950 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3951 (command_line_is_silent): New function.
3952 (bpstat_do_actions_1): No longer use commands_left, use
3953 command_line_is_silent for commands.
3954 (bpstat_alloc): Remove clearing of commands_left.
3955 (bpstat_stop_status): Remove initialization of commands_left, use
3956 command_line_is_silent.
3957 * breakpoint.h (struct bpstats): Remove commands_left.
3959 2011-08-18 Keith Seitz <keiths@redhat.com>
3962 * cp-name-parser.y (struct demangle_info): Remove unused
3965 (allocate_info): Change return type to struct demangle_info *.
3966 Always allocate a new demangle_info.
3967 Remove unused PREV pointer.
3968 (cp_new_demangle_parse_info): New function.
3969 (cp_demangled_name_parse_free): New function.
3970 (do_demangled_name_parse_free_cleanup): New function.
3971 (make_cleanup_cp_demangled_name_parse_free): New function.
3972 (cp_demangled_name_to_comp): Change return type to
3973 struct demangle_parse_info *.
3974 Allocate a new storage for each call.
3975 (main): Update usage for cp_demangled_name_to_comp
3977 * cp-support.h (struct demangle_parse_info): New structure.
3978 (cp_demangled_name_to_comp): Update API change for
3980 (cp_new_demangle_parse_info): Declare.
3981 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3982 (cp_demangled_name_parse_free): Declare.
3983 * cp-support.c (cp_canonicalize_string): Update API
3984 change for cp_demangled_name_to_comp.
3985 (mangled_name_to_comp): Likewise.
3986 Return struct demangle_parse_info, too.
3987 (cp_class_name_from_physname): Update mangled_name_to_comp
3989 (method_name_from_physname): Likewise.
3990 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3991 (cp_remove_params): Likewise.
3992 * python/py-type.c (typy_legacy_template_argument): Likewise.
3994 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3995 (cp_merge_demangle_parse_infos): Declare.
3996 * cp-support.c (ignore_typedefs): New file global.
3997 (copy_string_to_obstack): New function.
3998 (inspect_type): New function.
3999 (replace_typedefs): New function.
4000 (replace_typedefs_qualified_name): New function.
4001 (cp_canonicalize_string_no_typedefs): New function.
4002 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
4003 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
4004 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
4005 instead of cp_canonicalize_string.
4006 (find_method): Likewise.
4007 (decode_compound): Before looking up the name, call
4008 cp_canonicalize_string_no_typedefs.
4009 (decode_variable): Likewise.
4011 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
4012 Tom Tromey <tromey@redhat.com>
4013 Matt Rice <ratmice@gmail.com>
4015 * python/lib/gdb/prompt.py: New file.
4016 * python/lib/gdb/command/prompt.py: New file.
4017 * NEWS: Document set extended-prompt and gdb.prompt library
4019 2011-08-16 Yao Qi <yao@codesourcery.com>
4021 * tic6x-linux-tdep.c: Move const arrays definition from here...
4022 * tic6x-tdep.c: to here ...
4024 2011-08-14 Yao Qi <yao@codesourcery.com>
4026 * NEWS: New port to Texas Instruments TMS320C6x.
4028 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
4029 Bernd Schmidt <bernds@codesourcery.com>
4030 Yao Qi <yao@codesourcery.com>
4032 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
4033 * solib-dsbt.c: New file. Support DSBT shared object.
4034 * tic6x-linux-tdep.c: New file.
4035 * tic6x-tdep.c: New file.
4036 * tic6x-tdep.h: New file.
4038 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
4039 Yao Qi <yao@codesourcery.com>
4041 * remote.c (PACKET_qXfer_fdpic): New enum value.
4042 (remote_protocol_features): Add qXfer:fdpic:read packet.
4043 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
4044 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
4045 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
4047 2011-08-14 Yao Qi <yao@codesourcery.com>
4049 Target description for tic6x.
4050 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
4051 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
4052 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
4053 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
4054 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
4055 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
4056 * features/tic6x-c64xp-linux.xml: New.
4057 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
4058 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
4059 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
4060 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
4061 * regformats/tic6x-c64xp.dat,
4062 regformats/tic6x-c62x-linux.dat: Generated.
4063 * regformats/tic6x-c64x-linux.dat,
4064 regformats/tic6x-c64xp-linux.dat: Generated.
4065 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
4066 features/tic6x-*.c files.
4067 Add regformats/tic6x-*.dat files.
4069 2011-08-12 Doug Evans <dje@google.com>
4071 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
4072 * python/py-symbol.c (sympy_get_type): New function.
4073 (symbol_object_getset): Add "type".
4075 2011-08-12 Pedro Alves <pedro@codesourcery.com>
4079 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
4081 (tui_show_register_group): Don't store a byte buffer in the data
4083 (tui_register_format): Skip registers with an empty name.
4084 (tui_get_register): Store a struct value in the data element's
4085 value field instead of a byte buffer holding the raw register
4086 contents. Account for optimized-out and unavailable registers
4087 when comparing register contents.
4089 2011-08-09 Pedro Alves <pedro@codesourcery.com>
4091 * printcmd.c (current_display_number): Update comment.
4092 (disable_current_display_cleanup): Delete.
4093 (do_one_display): Use make_cleanup_restore_integer. Gracefully
4094 catch errors thrown while evaluating and printing the display.
4096 2011-08-09 Tom Tromey <tromey@redhat.com>
4098 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
4100 2011-08-09 Pedro Alves <pedro@codesourcery.com>
4102 * elfread.c (elf_symtab_read): Rework comments.
4103 * maint.c (maintenance_command): Ditto.
4104 * somread.c (som_symtab_read): Ditto.
4105 * solib.c (solib_find, solib_map_sections, update_solib_list)
4106 (solib_add, info_sharedlibrary_command, solib_name_from_address)
4107 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
4108 (sharedlibrary_command, no_shared_libraries): Ditto.
4109 * solib-irix.c (locate_base, disable_break, enable_break)
4110 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
4111 (irix_current_sos, irix_open_symbol_file_object)
4112 (irix_special_symbol_handling): Ditto.
4113 * solib-sunos.c (locate_base, first_link_map_member)
4114 (sunos_current_sos, disable_break, enable_break)
4115 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
4117 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
4118 (open_symbol_file_object, svr4_current_sos, enable_break)
4119 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
4121 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
4122 (frv_current_sos, enable_break, frv_special_symbol_handling)
4123 (frv_solib_create_inferior_hook): Ditto.
4124 * solist.h (struct target_so_ops): Extend the comments of the
4125 special_symbol_handling, current_sos and open_symbol_file_object
4128 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
4130 * python/lib/gdb/__init__.py: Auto-load files in command and
4131 function directories.
4132 * python/python.c (finish_python_initialization): Use
4134 * python/lib/gdb/command/pretty_printers.py: Self register
4136 * NEWS: Document auto-loading.
4138 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4140 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
4141 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
4142 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
4144 2011-08-08 Tom Tromey <tromey@redhat.com>
4146 * breakpoint.c (clean_up_filters): Remove.
4147 (catch_syscall_split_args): Use VEC_cleanup.
4149 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4151 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
4152 (main): Uncomment "Demangling error\n".
4154 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
4156 * solib-target.c (segment_attributes): Make them static.
4157 (section_attributes, library_children, library_attributes): Likewise.
4158 (library_list_children, library_list_attributes): Likesise.
4159 (library_list_elements): Likewise.
4161 2011-08-05 Pedro Alves <pedro@codesourcery.com>
4163 * exceptions.c (throw_exception): Don't disable the current
4165 * printcmd.c (disable_current_display_cleanup): New function.
4166 (do_one_display): Install a cleanup to disable the current display
4167 if doing the display throws.
4169 2011-08-05 Eli Zaretskii <eliz@gnu.org>
4171 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
4172 initialization of the tp_new member to the corresponding
4173 gdbpy_initialize_* function.
4174 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
4175 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
4176 * python/py-function.c (gdbpy_initialize_functions): Likewise.
4177 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
4178 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
4180 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4182 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
4183 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
4184 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
4185 references to current_uiout.
4187 2011-08-04 Pedro Alves <pedro@codesourcery.com>
4189 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
4190 (start_event_loop): Use TRY_CATCH instead of catch_errors.
4191 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
4192 * top.c (gdb_readline_wrapper): Adjust.
4193 * tui/tui-interp.c (tui_command_loop):
4194 (_initialize_tui_interp): Don't install it.
4196 2011-08-04 Pedro Alves <pedro@codesourcery.com>
4198 * ui-out.h (uiout): Rename to ...
4199 (current_uiout): ... this.
4200 * ui-out.c (uiout): Rename to ...
4201 (current_uiout): ... this.
4202 * ada-lang.c (print_it_exception, print_one_exception)
4203 (print_mention_exception): Adjust.
4204 * breakpoint.c (watchpoint_check): Adjust.
4205 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
4206 (default_collect_info, watchpoints_info, print_one_catch_fork)
4207 (print_one_catch_vfork, print_one_catch_syscall)
4208 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
4209 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
4210 (print_it_watchpoint, print_mention_watchpoint)
4211 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
4212 (print_it_exception_catchpoint, print_one_exception_catchpoint)
4213 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
4214 (bkpt_print_mention, momentary_bkpt_print_it)
4215 (tracepoint_print_mention, update_static_tracepoint)
4216 (tracepoints_info, save_breakpoints): Adjust.
4217 * cli-out.c (field_separator): Adjust.
4218 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
4219 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
4220 * frame.c (get_current_frame): Adjust.
4221 * infcmd.c (run_command_1, print_return_value): Adjust.
4222 * inferior.c (inferior_command, info_inferiors_command): Adjust.
4223 * infrun.c (print_end_stepping_range_reason): Adjust.
4224 (print_signal_exited_reason, print_exited_reason): Adjust.
4225 (print_signal_received_reason, print_no_history_reason): Adjust.
4226 * interps.c (interp_set): Adjust.
4227 * osdata.c (info_osdata_command): Adjust.
4228 * progspace.c (maintenance_info_program_spaces_command): Adjust.
4229 * remote-fileio.c (remote_fileio_request): Adjust.
4230 * remote.c (show_remote_cmd): Adjust.
4231 * solib.c (info_sharedlibrary_command): Adjust.
4232 * source.c (print_source_lines_base): Adjust.
4233 * stack.c (print_stack_frame): Adjust.
4234 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
4235 * symfile-mem.c (add_vsyscall_page): Adjust.
4236 * symfile.c (load_progress, generic_load)
4237 (print_transfer_performance): Adjust.
4238 * thread.c (info_threads_command, restore_selected_frame)
4239 (thread_command): Adjust.
4240 * top.c (make_cleanup_restore_ui_file): Adjust.
4241 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
4242 (print_one_static_tracepoint_marker): Adjust.
4243 * cli/cli-cmds.c (print_disassembly): Adjust.
4244 * cli/cli-decode.c (print_doc_line): Adjust.
4245 * cli/cli-interp.c (safe_execute_command): Adjust.
4246 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
4247 (handle_redirections): Adjust.
4248 * cli/cli-script.c (show_user_1): Adjust.
4249 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
4250 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
4251 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
4252 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
4253 (mi_cmd_env_dir): Adjust.
4254 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
4255 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
4256 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
4257 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
4258 (list_args_or_locals): Adjust.
4259 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4260 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
4261 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
4262 (mi_cmd_var_list_children, mi_cmd_var_info_type)
4263 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
4264 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
4265 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
4266 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
4267 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
4268 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
4269 (list_available_thread_groups, mi_cmd_list_thread_groups)
4270 (mi_cmd_data_list_register_names)
4271 (mi_cmd_data_list_changed_registers)
4272 (mi_cmd_data_list_register_values, get_register)
4273 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
4274 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
4275 (mi_cmd_list_target_features, mi_cmd_add_inferior)
4276 (mi_execute_command, mi_load_progress): Adjust.
4277 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
4278 * python/py-auto-load.c (print_script, info_auto_load_scripts):
4280 * python/py-breakpoint.c (bppy_get_commands): Adjust.
4281 * tui/tui-interp.c (tui_command_loop): Adjust.
4282 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
4284 2011-08-04 Pedro Alves <pedro@codesourcery.com>
4286 * exceptions.c (struct catcher): Remove saved_uiout field.
4287 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
4288 no longer save/resvore the global ui_out builder.
4289 (catch_exceptions_with_msg): Save/override/restore the global
4290 ui_out builder manually instead of relying on TRY_CATCH to do it.
4291 (catch_errors): Save/restore the global ui_out builder manually
4292 instead of relying on TRY_CATCH to do it.
4293 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
4295 (TRY_CATCH): Adjust.
4296 * cli/cli-interp.c (safe_execute_command): Save/override/restore
4297 the global ui_out builder manually instead of relying on TRY_CATCH
4300 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4302 * breakpoint.c (update_global_location_list): Ensure
4303 invariant 'first loc marked not duplicated and inserted,
4304 following locs marked duplicated/not inserted' is respected
4305 for multiple locations at the same address.
4306 (unduplicated_should_be_inserted) New function.
4307 (swap_insertion) New function.
4309 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4311 * stack.c (print_frame_arguments_choices): Comment typo fix.
4313 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4316 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4317 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4318 argument. Update callers.
4320 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4323 * doublest.c (convert_doublest_to_floatformat): Pass correct
4324 mantissa length to put_field.
4326 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4328 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4329 exception_print code path.
4330 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
4331 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
4332 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
4334 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4337 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4338 Remove, merge them into ...
4339 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
4340 variable args and its initialization.
4341 (struct print_args_args, print_args_stub): Remove, merge them into
4343 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4345 (do_gdb_disassembly): ... here. Remove variable args and its
4347 (print_frame): Remove variable args and its initialization, new
4348 variable gdbarch and numargs (from print_args_stub), inline here
4349 print_args_stub with a TRY_CATCH.
4350 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4352 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
4353 New variable e, remove variable btargs and its initialization.
4355 2011-08-01 Tristan Gingold <gingold@adacore.com>
4357 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4359 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4361 * breakpoint.c (insert_bp_location): Document return value.
4362 (insert_breakpoint_locations): Fix documentation.
4363 (remove_breakpoints): Add documentation.
4365 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4367 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4368 argument. Update callers.
4370 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4372 * stack.c (print_frame_info): Comment typo fix.
4374 2011-07-29 Sterling Augustine <saugustine@google.com>
4376 * MAINTAINERS (Write After Approval): Add myself to the list.
4378 2011-07-29 Tom Tromey <tromey@redhat.com>
4380 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4381 (library_list_start_segment): Update.
4382 (library_list_start_section): Update.
4384 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4386 * varobj.c (value_get_print_value): Move hint check later into the
4387 function. Comment function. Free thevalue before reusing it.
4389 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4390 Pedro Alves <pedro@codesourcery.com>
4392 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4394 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4395 Assert the result kind.
4396 * value.h (value_one): Remove parameter lv.
4398 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4400 Fix crash on lval_computed values.
4401 * valops.c (value_zero): Use not_lval for lval_computed.
4403 2011-07-27 Tom Tromey <tromey@redhat.com>
4405 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4406 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4408 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4410 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4411 "ptype" by their typedefs difference.
4413 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4415 * dwarf2expr.c (ctx_no_read_reg): New function.
4416 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4417 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4418 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4419 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4421 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4423 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4424 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4426 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4427 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4428 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4429 (ctx_no_get_base_type): Move the functions here.
4430 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4431 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4432 (ctx_no_get_base_type): New declarations.
4434 2011-07-27 Tom Tromey <tromey@redhat.com>
4436 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4438 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4439 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4441 2011-07-26 Sterling Augustine <saugustine@google.com>
4443 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4445 (dump_bfd_file): Likewise.
4447 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4449 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4450 (remote_hw_watchpoint_length_limit): New variable.
4451 (_initialize_remote) add set,show cmds for this new variable.
4452 * gdb.texinfo: document these new commands.
4453 * NEWS: Mention these new commands.
4455 2011-07-26 Pedro Alves <pedro@codesourcery.com>
4457 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4458 true for software watchpoints.
4460 2011-07-26 Joel Brobecker <brobecker@adacore.com>
4464 2011-07-26 Tom Tromey <tromey@redhat.com>
4466 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4467 * dwarf2read.c (read_indirect_string_at_offset): New function.
4468 (read_indirect_string): Use it.
4469 (dwarf_decode_macro_bytes): New function, taken from
4470 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4471 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4472 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4474 (struct dwarf2_per_objfile) <macro>: New field.
4475 (dwarf2_elf_names): Add .debug_macro.
4476 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4477 (dwarf2_locate_sections): Handle new section.
4478 (read_file_scope): Handle DW_AT_GNU_macros.
4479 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4481 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4483 * NEWS: Mention dcache configuration.
4484 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4485 (dcache_size, dcache_line_size): New variables.
4486 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4487 (struct dcache_block): Make it expandable.
4488 (struct dcache_struct): New field.
4489 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4490 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4491 (dcache_poke_byte, dcache_print_line): Adjust.
4492 (set_dcache_size, set_dcache_line_size): New functions.
4493 (set_dcache_command, show_dcache_command): New functions.
4494 (_initialize_dcache): Add new commands.
4496 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4498 * progspace.h (struct program_space): Add solib_add_generation.
4499 * infcmd.c (post_create_inferior): Only call solib_add if not
4501 * solib.c (solib_add): Increment solib_add_generation.
4503 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4505 Fix implicit pointer offsets.
4506 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4509 2011-07-25 Tom Tromey <tromey@redhat.com>
4511 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4513 (ada_exception_sal): Make 'ops' const.
4514 (ada_decode_exception_location): Likewise.
4515 (ada_decode_assert_location): Likewise.
4516 (catch_assert_command): Update.
4517 (catch_ada_exception_command): Update.
4518 (create_ada_exception_catchpoint): Make 'ops' const.
4519 * breakpoint.c (set_raw_breakpoint_without_location)
4520 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4522 (create_internal_breakpoint): Update.
4523 (init_raw_breakpoint_without_location): Make 'ops' const.
4524 (init_raw_breakpoint, init_catchpoint)
4525 (create_fork_vfork_event_catchpoint)
4526 (create_syscall_event_catchpoint, init_breakpoint_sal)
4527 (create_breakpoint_sal, create_breakpoints_sal)
4528 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4529 * breakpoint.h (struct breakpoint) <ops>: Now const.
4530 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4533 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4535 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4537 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4539 * breakpoint.h (print_recreate_thread): Declare.
4540 (struct breakpoint): Move step_count, pass_count,
4541 number_on_target, static_trace_marker_id,
4542 static_trace_marker_id_idx ...
4543 (struct tracepoint): ... to this new struct.
4544 (get_tracepoint, get_tracepoint_by_number_on_target)
4545 (get_tracepoint_by_number): Change return type to struct
4547 * breakpoint.c (is_tracepoint_type): New, factored out from
4549 (is_tracepoint): Adjust.
4550 (print_one_breakpoint_location): Cast to struct tracepoint as
4551 necessary, and adjust.
4552 (print_recreate_catch_fork, print_recreate_catch_vfork)
4553 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4554 print_recreate_thread.
4555 (init_breakpoint_sal): New, factored out from
4556 create_breakpoint_sal.
4557 (create_breakpoint_sal): Reimplement.
4558 (create_breakpoint): Allocate a struct tracecepoint if the caller
4559 wanted a tracepoint. Use init_breakpoint_sal and
4561 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4562 (print_recreate_masked_watchpoint)
4563 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4564 (tracepoint_print_one_detail): Adjust.
4565 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4566 Dump the pass count here.
4567 (update_static_tracepoint): Adjust.
4568 (addr_string_to_sals): Adjust.
4569 (create_tracepoint_from_upload): Adjust. Change return type to
4570 struct tracepoint pointer.
4571 (trace_pass_set_count): Change parameter type to struct tracepoint
4572 pointer, and adjust.
4573 (trace_pass_command): Adjust.
4574 (get_tracepoint, get_tracepoint_by_number_on_target)
4575 (get_tracepoint_by_number): Change return type to struct
4576 tracepoint pointer, and adjust.
4577 (print_recreate_thread): New, factored out from save_breakpoints.
4578 (save_breakpoints): Don't print thread and task and passcount
4580 * remote.c (remote_download_tracepoint): Adjust.
4581 * tracepoint.c (trace_actions_command, validate_actionline)
4582 (start_tracing, tfind_1, trace_find_tracepoint_command)
4583 (trace_dump_command): Adjust.
4584 (find_matching_tracepoint): Change return type to struct
4585 tracepoint pointer, and adjust.
4586 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4587 (tfile_trace_find, tfile_fetch_registers): Adjust.
4588 * tracepoint.h (create_tracepoint_from_upload): Change return type
4589 to struct tracepoint pointer.
4590 * ada-lang.c (print_recreate_exception): Call
4591 print_recreate_thread.
4592 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4594 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4596 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4597 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4598 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4599 watchpoint_thread, watchpoint_triggered ...
4600 (struct watchpoint): ... to this new struct.
4601 (is_watchpoint): Declare.
4602 (install_breakpoint): Add new `internal' parameter.
4603 * breakpoint.c (is_watchpoint): Delete declaration.
4604 (set_breakpoint_condition): Handle watchpoints.
4605 (is_watchpoint): Make public.
4606 (watchpoint_in_thread_scope): Change parameter type to struct
4608 (watchpoint_del_at_next_stop): Change parameter type to struct
4609 watchpoint. Remove assertion. Adjust.
4610 (update_watchpoint): Ditto.
4611 (insert_breakpoints, breakpoint_init_inferior)
4612 (watchpoints_triggered, watchpoint_check)
4613 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4614 (bpstat_stop_status, print_one_breakpoint_location)
4615 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4616 to struct watchpoint as necessary, and adjust.
4617 (install_breakpoint): Add `internal' argument. If true, don't
4618 mention the new breakpoint. Use set_breakpoint_number.
4619 (create_fork_vfork_event_catchpoint)
4620 (create_syscall_event_catchpoint): Adjust.
4621 (dtor_watchpoint): New.
4622 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4623 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4624 (print_it_watchpoint, print_mention_watchpoint)
4625 (print_recreate_watchpoint, insert_masked_watchpoint)
4626 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4627 (print_one_detail_masked_watchpoint)
4628 (print_mention_masked_watchpoint)
4629 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4630 necessary, and adjust.
4631 (watch_command_1): Allocate and initialize a struct watchpoint
4632 instead of a struct breakpoint. Use install_breakpoint.
4633 (catch_exec_command_1): Adjust.
4634 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4636 (delete_breakpoint, enable_breakpoint_disp)
4637 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4638 as necessary, and adjust.
4639 (initialize_breakpoint_ops): Install dtor_watchpoint as
4640 watchpoints' dtor method.
4641 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4642 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4643 to struct watchpoint as necessary, and adjust.
4645 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4647 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4648 the the base class ops table.
4649 (catch_exception_breakpoint_ops)
4650 (catch_exception_unhandled_breakpoint_ops)
4651 (catch_assert_breakpoint_ops): Don't statically initialize.
4652 (initialize_ada_catchpoint_ops): New.
4653 (_initialize_ada_language): Call it.
4654 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4655 (bkpt_breakpoint_ops): Forward declare.
4656 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4657 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4658 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4659 (masked_watchpoint_breakpoint_ops)
4660 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4661 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4662 base class ops table.
4663 (null_re_set, null_check_status, null_works_in_software_mode)
4664 (null_resources_needed, null_print_one_detail): Delete.
4665 (bkpt_dtor): Rename to ...
4666 (base_breakpoint_dtor): ... this. Make static.
4667 (bkpt_allocate_location): Rename to ...
4668 (base_breakpoint_allocate_location): ... this. Make static.
4669 (base_breakpoint_re_set): New.
4670 (internal_error_pure_virtual_called): New.
4671 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4672 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4673 (base_breakpoint_works_in_software_mode)
4674 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4675 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4676 (base_breakpoint_print_recreate): New functions.
4677 (base_breakpoint_ops): New global.
4678 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4679 (bkpt_breakpoint_hit): Make static.
4680 (bkpt_check_status): Delete.
4681 (bkpt_resources_needed): Make static.
4682 (bkpt_works_in_software_mode): Delete.
4683 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4685 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4686 (momentary_breakpoint_ops): Don't statically initialize.
4687 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4689 (tracepoint_insert_location, tracepoint_remove_location)
4690 (tracepoint_check_status, tracepoint_works_in_software_mode)
4691 (tracepoint_print_it): Delete.
4692 (tracepoint_breakpoint_ops): Don't statically initialize.
4693 (initialize_breakpoint_ops): New.
4694 (_initialize_breakpoint): Call it.
4695 * breakpoint.h (null_re_set, null_works_in_software_mode)
4696 (null_resources_needed, null_check_status, null_print_one_detail):
4697 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4698 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4699 (bkpt_check_status, bkpt_resources_needed)
4700 (bkpt_works_in_software_mode, bkpt_print_it)
4701 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4702 Delete declarations.
4703 (initialize_breakpoint_ops): Declare.
4705 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4707 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4708 (momentary_bkpt_print_it): Simplify.
4710 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4712 Split internal, momentary and user breakpoints breakpoint_ops
4715 * breakpoint.c (internal_breakpoint_ops)
4716 (momentary_breakpoint_ops): Forward declare.
4717 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4718 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4719 (create_overlay_event_breakpoint)
4720 (create_std_terminate_master_breakpoint)
4721 (create_exception_master_breakpoint): Create breakpoints with
4722 internal_breakpoint_ops vtable.
4723 (set_longjmp_breakpoint): Create momentary breakpoints with
4724 momentary_breakpoint_ops vtable, using
4725 momentary_breakpoint_from_master.
4726 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4727 (create_solib_event_breakpoint): Create breakpoints with
4728 internal_breakpoint_ops vtable.
4729 (set_momentary_breakpoint): Create breakpoints with
4730 momentary_breakpoint_ops vtable.
4731 (momentary_breakpoint_from_master): New, factored out from
4732 clone_momentary_breakpoint.
4733 (clone_momentary_breakpoint): Adjust.
4734 (watch_command_1): Create scope breakpoints with
4735 momentary_breakpoint_ops vtable.
4736 (bkpt_re_set): Remove handling of internal and momentary
4738 (bkpt_print_mention, bkpt_print_recreate): New.
4739 (bkpt_breakpoint_ops): Adjust.
4740 (internal_bkpt_re_set, internal_bkpt_check_status)
4741 (internal_bkpt_print_it, internal_bkpt_print_mention)
4742 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4743 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4744 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4745 (momentary_bkpt_print_recreate): New.
4746 (momentary_breakpoint_ops): New.
4748 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4750 Implement most breakpoint_ops methods for all breakpoint types,
4751 and move the default handlings to the proper callbacks.
4753 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4754 works_in_software_mode method.
4755 (insert_bp_location): Go through breakpoint_ops->insert_location
4756 for software and hardware watchpoints.
4757 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4759 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4760 for software and hardware watchpoints.
4761 (print_it_typical): Delete.
4762 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4764 (watchpoint_check): Adjust comment.
4765 (bpstat_check_location): Simply always call the breakpoint's
4766 breakpoint_hit method.
4767 (bpstat_stop_status): Always call the breakpoint's check_status
4768 method. Remove special cases for watchpoints and internal event
4769 breakpoints from here (moved to the check_status implementations).
4770 (print_one_breakpoint_location): Assume b->ops is never NULL.
4771 Remove static tracepoint marker id printing from here (moved to
4772 the print_one_detail callback implementation of tracepoints).
4773 (init_bp_location): Assert OPS is never NULL.
4774 (allocate_bp_location): Always call the breakpoint's
4775 allocate_location method, and remove the default code from here.
4776 (free_bp_location): Always call the location's dtor method, and
4777 remove the default code from here.
4778 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4779 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4780 parameter. Pass it down.
4781 (set_raw_breakpoint): Ditto.
4782 (print_it_catch_fork): Adjust to take a bpstat as argument.
4783 (catch_fork_breakpoint_ops): Install methods.
4784 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4785 (catch_vfork_breakpoint_ops): Install methods.
4786 (dtor_catch_syscall): Call the base dtor.
4787 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4788 (catch_syscall_breakpoint_ops): Install methods.
4789 (dtor_catch_exec): Call the base dtor.
4790 (print_it_catch_exec): Adjust to take a bpstat as argument.
4791 (catch_exec_breakpoint_ops): Install methods.
4792 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4793 the breakpoint's resources_needed method, and remove the default
4795 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4797 (clone_momentary_breakpoint): Clone the original's ops.
4798 (mention): Always call the breakpoint's print_mention method, and
4799 remove the default code from here.
4800 (create_breakpoint_sal): Adjust to pass the ops to
4801 set_raw_breakpoint rather than setting it manually.
4802 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4803 ops to set_raw_breakpoint_without_location rather than setting it
4805 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4806 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4807 (ranged_breakpoint_ops): Install methods.
4808 (break_range_command): Adjust to pass the ops to
4809 set_raw_breakpoint rather than setting it manually.
4810 (re_set_watchpoint, breakpoint_hit_watchpoint)
4811 (check_status_watchpoint, resources_needed_watchpoint)
4812 (works_in_software_mode_watchpoint, print_it_watchpoint)
4813 (print_mention_watchpoint, print_recreate_watchpoint): New
4815 (watchpoint_breakpoint_ops): Install new methods.
4816 (print_it_masked_watchpoint): New function.
4817 (masked_watchpoint_breakpoint_ops): Install new methods.
4818 (watch_command_1): Adjust to pass the right breakpoint_ops to
4819 set_raw_breakpoint_without_location rather than setting it
4820 manually later. Record the current pspace.
4821 (print_it_exception_catchpoint): Adjust to take a bpstat as
4823 (gnu_v3_exception_catchpoint_ops): Install new methods.
4824 (say_where): New function.
4825 (null_re_set, null_check_status, null_works_in_software_mode)
4826 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4828 (bp_location_ops): New global.
4829 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4830 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4831 (bkpt_check_status, bkpt_resources_needed)
4832 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4833 (bkpt_print_recreate): New functions.
4834 (bkpt_breakpoint_ops): New global.
4835 (tracepoint_re_set, tracepoint_insert_location)
4836 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4837 (tracepoint_check_status, tracepoint_works_in_software_mode)
4838 (tracepoint_print_it, tracepoint_print_one_detail)
4839 (tracepoint_print_mention, tracepoint_print_recreate): New
4841 (tracepoint_breakpoint_ops): New global.
4842 (delete_breakpoint): Always call the breakpoint's dtor method, and
4843 remove the default handling from here.
4844 (breakpoint_re_set_default): Make static.
4845 (breakpoint_re_set_one): Always call the breakpoints re_set
4846 method, and remove the default handling from here.
4847 (trace_command, ftrace_command, strace_command)
4848 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4849 to create_breakpoint.
4850 (save_breakpoints): Always call the breakpoint's print_recreate
4851 method, and remove the default handling from here.
4853 * ada-lang.c (dtor_exception): Call the base dtor.
4854 (re_set_exception): Call the base method.
4855 (print_it_exception, print_it_catch_exception): Adjust to take a
4857 (catch_exception_breakpoint_ops): Install methods.
4858 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4860 (catch_exception_unhandled_breakpoint_ops): Install methods.
4861 (print_it_catch_assert): Adjust to take a bpstat as argument.
4862 (catch_assert_breakpoint_ops): Install methods.
4864 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4865 to take a bpstat as argument.
4866 (enum print_stop_action): Add describing comments to each enum
4868 (breakpoint_re_set_default): Delete declaration.
4869 (null_re_set, null_works_in_software_mode, null_resources_needed)
4870 (null_check_status, null_print_one_detail): Declare.
4871 (bkpt_breakpoint_ops): Declare.
4872 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4873 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4874 (bkpt_check_status, bkpt_resources_needed)
4875 (bkpt_works_in_software_mode, bkpt_print_it)
4876 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4879 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4880 bkpt_breakpoint_ops.
4881 * python/py-breakpoint.c (bppy_init): Ditto.
4883 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4885 * MAINTAINERS (Write After Approval): Add myself to the list.
4887 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4889 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4891 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4893 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4894 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4895 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4897 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4898 (struct i386_debug_reg_state): New.
4899 (i386_init_dregs): New.
4901 (i386_cleanup_dregs): Use i386_init_dregs.
4902 (i386_show_dr): Add state parameter and adjust.
4903 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4905 (i386_remove_aligned_watchpoint): Likewise.
4906 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4907 (i386_update_inferior_debug_regs): New.
4908 (i386_insert_watchpoint): Work on a local mirror of the debug
4909 registers, and only update the inferior on success.
4910 (i386_remove_watchpoint): Ditto.
4911 (i386_region_ok_for_watchpoint): Adjust.
4912 (i386_stopped_data_address): Adjust.
4913 (i386_insert_hw_breakpoint): Adjust.
4914 (i386_remove_hw_breakpoint): Adjust.
4916 2011-07-22 Tom Tromey <tromey@redhat.com>
4918 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4919 from amd64_pseudo_register_read. Change arguments. Call
4920 mark_value_bytes_unavailable when needed.
4921 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4922 set_gdbarch_pseudo_register_read.
4923 * sentinel-frame.c (sentinel_frame_prev_register): Use
4924 regcache_cooked_read_value.
4925 * regcache.h (regcache_cooked_read_value): Declare.
4926 * regcache.c (regcache_cooked_read_value): New function.
4927 (regcache_cooked_read): Call
4928 gdbarch_pseudo_register_read_value if available.
4929 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4930 (i386_pseudo_register_read): Remove.
4931 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4932 i386_pseudo_register_read. Change arguments. Call
4933 mark_value_bytes_unavailable when needed.
4934 (i386_pseudo_register_read_value): New function.
4935 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4936 not set_gdbarch_pseudo_register_read.
4937 * gdbarch.sh (pseudo_register_read_value): New method.
4938 * gdbarch.c, gdbarch.h: Rebuild.
4939 * findvar.c (value_from_register): Call get_frame_register_value.
4941 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4943 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4945 (display_gdb_prompt): Likewise.
4946 (change_annotation_level): Likewise.
4947 (push_prompt): Likewise.
4948 (pop_prompt): Likewise.
4949 (handle_stop_sig): Use get_prompt with a level.
4950 * top.c (command_loop): Use get_prompt with a level.
4951 (set_async_annotation_level): Use set_prompt with a level.
4952 (get_prefix): New function.
4953 (set_prefix): Ditto.
4954 (set_suffix): Ditto.
4955 (get_suffix): Ditto.
4956 (get_prompt): Accept a level argument.
4957 (set_prompt): Accept a level argument. Free old prompts. Set
4958 new_async_prompt if level is 0.
4959 (init_main): Use set_prompt with a level. Do not set
4961 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4962 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4963 Modify set_prompt, get_prompt to account for levels.
4964 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4966 * python/python.c (before_prompt_hook): Use set_prompt.
4968 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4970 * defs.h: Add guard against inclusion in gdbserver.
4971 (struct ptid, ptid_t): Move to common/ptid.h.
4972 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4973 xsnprintf, internal_error): Move to common/common-utils.h.
4975 * gdb_assert.h: Move into common/ sub-directory.
4976 * gdb_locale.h: Ditto.
4977 * gdb_dirent.h: Ditto.
4978 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4979 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4980 Move into common/ptid.h.
4981 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4982 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4983 Change nomem to malloc_failure.
4984 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4985 * utils.c (nomem): Rename to malloc_failure.
4986 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4987 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4988 (gdb_buildargv): Change nomem to malloc_failure.
4989 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4990 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4991 ptid_is_pid): Move into common/ptid.c.
4992 (initialize_infrun): Delete initialization of null_ptid and
4994 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4995 linux_common_xfer_osdata.
4996 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4997 common/ptid.c and common/buffer.c.
4998 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4999 common/ptid.h, common/buffer.h and common/linux-osdata.h.
5000 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
5001 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
5003 * common/gdb_assert.h: New.
5004 * common/gdb_dirent.h: New.
5005 * common/gdb_locale.h: New.
5006 * common/buffer.c: New.
5007 * common/buffer.h: New.
5008 * common/ptid.c: New.
5009 * common/ptid.h: New.
5010 * common/xml-utils.c: New.
5011 * common/xml-utils.h: New.
5012 * common/common-utils.c: New.
5013 * common/common-utils.h: New.
5014 * common/linux-osdata.c: New.
5015 * common/linux-osdata.h: New.
5016 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
5017 * config/arm/linux.mh (NATDEPFILES): Ditto.
5018 * config/i386/linux.mh (NATDEPFILES): Ditto.
5019 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5020 * config/ia64/linux.mh (NATDEPFILES): Ditto.
5021 * config/m32r/linux.mh (NATDEPFILES): Ditto.
5022 * config/m68k/linux.mh (NATDEPFILES): Ditto.
5023 * config/mips/linux.mh (NATDEPFILES): Ditto.
5024 * config/pa/linux.mh (NATDEPFILES): Ditto.
5025 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
5026 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
5027 * config/s390/s390.mh (NATDEPFILES): Ditto.
5028 * config/sparc/linux.mh (NATDEPFILES): Ditto.
5029 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
5030 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
5032 2011-07-21 Matt Rice <ratmice@gmail.com>
5034 * NEWS: Add info macros and info definitions commands.
5036 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
5038 * NEWS: Document Python prompt substitution hook.
5040 2011-07-18 Matt Rice <ratmice@gmail.com>
5043 * macrotab.h (macro_callback_fn): Add new arguments to callback.
5044 * macrotab.c (foreach_macro): Ditto.
5045 (foreach_macro_in_scope): Ditto.
5046 * macrocmd.c (print_macro_callback): New function.
5047 (info_macro_command): Move some code to print_macro_definition.
5048 (print_macro_definition): New function.
5049 (print_one_macro): Add new arguments to callback.
5050 (info_definitions_command): New function.
5051 (info_macros_command): Ditto.
5052 (_initialize_macrocmd): Add info macros and info definitions commands.
5053 * symtab.c (add_macro_name): Add new arguments to callback.
5055 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
5056 Tom Tromey <tromey@redhat.com>
5058 * top.c (set_prompt): Rewrite to free previous prompt, free
5059 asynch_new_prompt and set both on new prompts.
5060 * event-top.c (display_gdb_prompt): Add prompt substitution
5062 * python/python.c (before_prompt_hook): New function.
5064 2011-07-20 Matt Rice <ratmice@gmail.com>
5066 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
5067 arguments to store_unsigned_integer.
5069 2011-07-20 Tom Tromey <tromey@redhat.com>
5071 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
5072 in some declaration-only cases.
5074 2011-07-18 Tom Tromey <tromey@redhat.com>
5077 * dwarf2read.c (dwarf2_section_info_def): New typedef.
5078 (struct dwarf2_per_objfile) <types>: Change to a VEC.
5079 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
5080 <debug_type_section>: New field.
5081 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
5082 (load_cu): Use appropriate section.
5083 (create_signatured_type_table_from_index): Add 'section'
5085 (dwarf2_read_index): Only allow a single .debug_types section.
5086 (dw2_get_file_names): Use appropriate section.
5087 (read_type_comp_unit_head): Add 'section' argument.
5088 (create_debug_types_hash_table): Loop over all .debug_types
5090 (init_cu_die_reader): Use appropriate section.
5091 (process_psymtab_comp_unit, load_partial_comp_unit)
5092 (load_full_comp_unit, read_die_and_children, find_partial_die)
5093 (lookup_die_type, determine_prefix, follow_die_offset): Update.
5094 (lookup_signatured_type_at_offset): Add 'section' argument.
5095 (read_signatured_type_at_offset): Add 'sect' argument.
5096 (read_signatured_type): Use appropriate section.
5097 (set_die_type, get_die_type_at_offset): Update.
5098 (dwarf2_per_objfile_free): Free all .debug_types sections, and
5100 (write_psymtabs_to_index): Don't allow index with more than one
5101 .debug_types section.
5103 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5105 Fix crash if referenced CU is aged out.
5106 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
5107 xfree of block.data.
5108 (indirect_pieced_value): New variable back_to, use to for xfree of
5110 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
5112 * dwarf2read.c (dwarf2_find_base_address): New prototype.
5113 (load_cu): New function from ...
5114 (dw2_do_instantiate_symtab): ... the code here ...
5115 (process_full_comp_unit): ... and here.
5116 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
5119 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5121 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
5124 2011-07-19 Gary Benson <gbenson@redhat.com>
5126 * infrun.c (struct execution_control_state): New member
5127 stop_func_filled_in.
5128 (clear_stop_func, fill_in_stop_func): New functions.
5129 (handle_inferior_event): Call clear_stop_func rather than
5130 manipulating the execution control state directly.
5131 Call fill_in_stop_func lazily as required rather than
5132 directly calling find_pc_partial_function in all cases.
5134 2011-07-18 Tom Tromey <tromey@redhat.com>
5136 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
5137 checking for variable-sized array.
5139 2011-07-18 Jean-Charles Delay <delay@adacore.com>
5141 * varobj.h (varobj_languages): Add vlang_ada definition to the list
5142 of supported languages.
5143 * varobj.c: Add top definitions and basic implementation of the
5144 following callbacks: ada_number_of_children, ada_name_of_variable,
5145 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
5146 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
5147 (languages): Register Ada-specific callbacks.
5148 (variable_language): Add the Ada case in the language setter switch.
5150 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5152 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
5154 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5157 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
5158 (execute_stack_op): Use dwarf2_frame_ctx_funcs
5159 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
5160 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
5161 get_frame_cfa, get_tls_address and dwarf_call via funcs.
5162 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
5163 (struct dwarf_expr_context_funcs): New, move here methods from ...
5164 (struct dwarf_expr_context): ... here. New fields funcs.
5165 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
5166 (dwarf_expr_ctx_funcs): New.
5167 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
5168 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
5169 (needs_frame_ctx_funcs): New.
5170 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
5172 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
5174 * MAINTAINERS (Write After Approval): Add myself to the list.
5176 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
5178 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
5179 that CIE pointer of an FDE really points to a CIE .
5181 2011-07-15 Hui Zhu <teawater@gmail.com>
5183 * remote.c (remote_get_trace_status): Add comments.
5185 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5187 Code cleanup - constify struct lval_funcs.
5188 * dwarf2loc.c (pieced_value_funcs): Make it const.
5189 * infrun.c (siginfo_value_funcs): Likewise.
5190 * opencl-lang.c (opencl_value_funcs): Likewise.
5191 * valops.c (value_assign, value_ind): Make the funcs variable const.
5192 * value.c (struct value): Make location.computed.funcs target const.
5193 Rearrange the comments.
5194 (allocate_computed_value): Make the funcs parameter target const.
5195 (value_computed_funcs): Return the funcs target const.
5196 (value_free, value_copy, set_value_component_location): Make the funcs
5198 * value.h (allocate_computed_value): Make the funcs parameter target
5200 (value_computed_funcs): Return the funcs target const.
5201 * windows-tdep.c (tlb_value_funcs): Make it const.
5203 2011-07-14 Hui Zhu <teawater@gmail.com>
5205 * remote.c (remote_get_trace_status): Initialize p.
5207 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5210 * remote.c (remote_get_trace_status): New variable ex. Put
5211 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
5213 2011-07-13 Tom Tromey <tromey@redhat.com>
5215 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
5216 value_from_contents for final conversion.
5218 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5221 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
5222 Indent prototypes so they do not get into tags.
5224 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5226 Code cleanup making also optimized out values lazy.
5227 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
5228 allocate_optimized_out_value. Twice.
5229 (loclist_read_variable) Use allocate_optimized_out_value. Once.
5230 * findvar.c (read_var_value): Likewise.
5231 * value.c (allocate_optimized_out_value): New function.
5232 * value.h (allocate_optimized_out_value): New declaration.
5234 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5236 Fix occasional crash of CTRL-C during DWARF read in.
5237 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
5239 2011-07-11 Tom Tromey <tromey@redhat.com>
5241 * regcache.c (struct regcache_descr): Fix typo.
5242 * i387-tdep.c (i387_supply_xsave): Fix typo.
5244 2011-07-11 Tom Tromey <tromey@redhat.com>
5246 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
5247 (read_file_scope, read_type_unit_scope): Use it.
5249 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5251 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
5254 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
5257 * python/python.c: Set gdbpy_should_print_stack default to off.
5258 (set_python): Deprecate maint set python print-stack to
5260 (_initialize_python): Deprecate maint set/show python print-stack.
5261 Add new prefix command, python. Add new setting, print-backtrace.
5262 * NEWS: Document set python print-stack. Document default change.
5264 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
5266 * python/py-inferior.c (infpy_dealloc): New function.
5267 (inferior_to_inferior_object): Return a new object, or a
5268 new reference to the existing object.
5269 (find_thread_object): Cleanup references to inferior.
5270 (delete_thread_object): Ditto.
5271 * python/py-infthread.c (create_thread_object): Do not increment
5272 inferior reference count.
5274 2011-07-08 Tom Tromey <tromey@redhat.com>
5276 * dwarf2loc.c (locexpr_regname): New function.
5277 (locexpr_describe_location_piece): Use it.
5278 (disassemble_dwarf_expression): Add per_cu argument. Use
5280 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
5281 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
5283 (locexpr_describe_location_1): Add per_cu argument.
5284 (locexpr_describe_location): Update.
5285 (loclist_describe_location): Update.
5287 2011-07-08 Tom Tromey <tromey@redhat.com>
5289 * dwarf2expr.c (execute_stack_op): Add QUIT.
5291 2011-07-07 Hui Zhu <teawater@gmail.com>
5294 2011-07-06 Hui Zhu <teawater@gmail.com>
5295 * remote.c (remote_start_remote): Add TRY_CATCH for
5296 remote_get_trace_status.
5297 * tracepoint.c (disconnect_tracing): Ditto.
5299 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
5301 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5302 variables as signed, not unsigned.
5304 2011-07-06 Joel Brobecker <brobecker@adacore.com>
5306 * jit.c (jit_inferior_init): Reformat forward declaration.
5308 2011-07-06 Matt Rice <ratmice@gmail.com>
5310 * MAINTAINERS (Write After Approval): Add myself to the list.
5312 2011-07-06 Hui Zhu <teawater@gmail.com>
5314 * remote.c (remote_start_remote): Add TRY_CATCH for
5315 remote_get_trace_status.
5316 * tracepoint.c (disconnect_tracing): Ditto.
5318 2011-07-05 Tom Tromey <tromey@redhat.com>
5320 * symtab.c (operator_chars): Now static.
5321 * linespec.c (operator_chars): Don't declare.
5323 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5325 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5327 2011-07-05 Tom Tromey <tromey@redhat.com>
5329 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5330 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5331 (TYPE_CPLUS_REALLY_JAVA): New macro.
5332 * dwarf2read.c (process_structure_scope): Set
5333 TYPE_CPLUS_REALLY_JAVA.
5335 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5337 * ada-lang.c: Fix typos.
5338 * amd64-tdep.c: Likewise.
5339 * breakpoint.c: Likewise.
5340 * cli/cli-decode.c: Likewise.
5341 * findcmd.c: Likewise.
5342 * inline-frame.c: Likewise.
5343 * mi/mi-main.c: Likewise.
5344 * minsyms.c: Likewise.
5345 * monitor.c: Likewise.
5346 * monitor.h: Likewise.
5347 * prologue-value.c: Likewise.
5348 * reverse.c: Likewise.
5349 * s390-tdep.c: Likewise.
5351 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5353 * jit.c (jit_inferior_init): Forward declare.
5354 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5356 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5358 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5360 2011-07-04 Tristan Gingold <gingold@adacore.com>
5362 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5363 (tcb_fieldno): Add activation_link field.
5364 (get_known_tasks_addr): Moved and rewritten.
5365 (get_tcb_types_info): Set activation_link field.
5366 (read_known_tasks_array): Add parameter. Rewritten.
5367 (read_known_tasks_list): New function.
5368 (read_known_tasks): New function.
5369 (ada_build_task_list): Call read_known_tasks instead of
5370 read_known_tasks_array.
5371 * ravenscar-thread.c: Add first_task_name constant.
5372 (has_ravenscar_runtime): Check for task list too.
5374 2011-07-04 Tristan Gingold <gingold@adacore.com>
5376 * ada-tasks.c: Renames fieldno to actb_fieldno.
5377 (ada_get_task_number): Indentation.
5378 (get_tcb_types_info): Remove all parameters. Write directly
5380 (ptid_from_atcb_common): Adjust.
5381 (read_atcb): Adjust.
5383 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5385 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5387 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5389 * ui-out.c (ui_out_field_core_addr): Mention that the function
5390 description is in the header file.
5391 * ui-out.h (ui_out_field_core_addr): Document function.
5393 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5395 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5396 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5398 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5400 * symtab.c (expand_line_sal): Remove empty line.
5402 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
5404 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5405 same way as ELFOSABI_NONE.
5406 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5408 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5410 * breakpoint.c: Fix typos in comments.
5411 * linespec.c: Likewise.
5412 * symtab.c: Likewise.
5414 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5416 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5417 section in separate object files.
5419 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5421 Fix false GCC warning.
5422 * linespec.c (decode_line_1): Initialize values.
5424 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5426 * linespec.c (find_method): Accept the function type automatically only
5427 if it was specified with parameter types.
5429 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5431 Stop on first linespec terminator instead of eating what we can.
5432 * linespec.c (is_linespec_boundary): New function.
5433 (name_end): Remove function.
5434 (keep_name_info): New parameter on_boundary, replace the body.
5435 (decode_line_1): Provide the parameter to keep_name_info.
5436 (decode_compound): Likewise. Drop the trailing java return type
5439 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5441 Fall back linespec to minimal symbols.
5442 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5443 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5444 (find_method, symbol_found): Change error to cplusplus_error.
5446 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5448 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5450 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5451 Tom Tromey <tromey@redhat.com>
5453 * dwarf2read.c (check_physname): New variable.
5454 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5455 (show_check_physname): New function.
5456 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5458 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5460 * machoread.c (macho_symfile_read): Delete OBE comment.
5462 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5464 * machoread.c (struct macho_oso_data): Delete.
5465 (current_oso): Delete.
5466 (macho_relocate_common_syms): New function, mostly extracted
5468 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5469 Remove code that sets and unset current_oso.
5470 (macho_symfile_relocate): Delete handling of common symbols,
5471 now moved to macho_relocate_common_syms.
5473 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5475 * darwin-nat.c (darwin_ptrace): Add documentation.
5476 Set errno to zero before calling ptrace. If ptrace returns
5477 -1 and errno is zero, then change then return zero.
5478 (darwin_kill_inferior): Issue a warning instead of triggering
5479 a failed assertion when the PT_KILL ptrace operations returned
5482 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5484 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5485 only when inf->private->no_ptrace.
5487 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5489 * ada-lang.c (print_it_exception): Print temporary catchpoints
5490 as "Temporary catchpoint".
5491 (print_mention_exception): Likewise.
5493 2011-07-01 Tom Tromey <tromey@redhat.com>
5495 * jv-lang.c (java_language_defn): Use java_printchar,
5497 (java_get_encoding): New function.
5498 (java_emit_char): Use generic_emit_char.
5499 (java_printchar): New function.
5500 (java_printstr): Likewise.
5502 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5504 * ada-typeprint.c (print_record_type): If unable to decode
5505 the name of the parent type, use the encoded name.
5507 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5509 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5510 pointer to constrained packed array type output.
5511 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5512 packed array output.
5514 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5516 * ada-typeprint.c (print_array_type): removed if condition on show
5517 being negative for bounds printing.
5519 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5521 * ada-lang.c (ada_identical_enum_types_p): New function.
5522 (symbols_are_identical_enums): New function.
5523 (remove_extra_symbols): Do nothing if NSYMS < 2.
5524 Use symbols_are_identical_enums.
5526 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5528 * ada-valprint.c (ada_value_print): Handle typedefs.
5530 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5532 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5534 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5536 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5537 (decode_constrained_packed_array): Likewise.
5538 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5540 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5542 * ada-exp.y (convert_char_literal): Handle typedef types.
5544 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5546 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5548 2011-06-30 Tom Tromey <tromey@redhat.com>
5550 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5551 * valops.c (find_overload_match): Call do_cleanups on early exit
5553 * solib.c (solib_find): Call do_cleanups on early exit path.
5555 2011-06-30 Tom Tromey <tromey@redhat.com>
5557 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5558 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5559 return paths. Defer final do_cleanups until last return.
5560 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5563 2011-06-30 Tom Tromey <tromey@redhat.com>
5565 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5567 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
5569 * MAINTAINERS (Write After Approval): Add myself to the list.
5571 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5573 Disable epilogue unwinders on recent GCCs.
5574 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5575 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5576 * dwarf2read.c (process_full_comp_unit): Initialize
5577 EPILOGUE_UNWIND_VALID.
5578 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5579 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5580 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5582 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5584 Code cleanup - reformatting.
5585 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5586 (producer_is_gcc_ge_4): ... here, change the return value.
5587 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5590 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5592 Fix non-only rename list for Fortran modules import.
5593 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5594 cp_add_using_directive caller.
5595 (cp_add_using_directive): New parameter excludes, describe it. New
5596 variables ix and param. Compare if also excludes match. Allocate NEW
5597 with variable size, initialize EXCLUDES there.
5598 (cp_lookup_symbol_imports): New variable excludep, test
5599 current->EXCLUDES with it.
5600 * cp-support.h: Include vec.h.
5601 (struct using_direct): New field excludes, describe it.
5602 (DEF_VEC_P (const_char_ptr)): New.
5603 (cp_add_using_directive): New parameter excludes.
5604 * defs.h (const_char_ptr): New typedef.
5605 * dwarf2read.c (read_import_statement): New variables child_die,
5606 excludes and cleanups, read in excludes.
5607 (read_namespace): Adjust the cp_add_using_directive caller.
5609 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5612 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5613 negative comparisons.
5615 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
5617 * mi/mi-main.c (mi_cmd_list_features): Emit
5618 breakpoint-notifications.
5620 2011-06-29 Tom Tromey <tromey@redhat.com>
5623 * valprint.h (generic_emit_char, generic_printstr): Declare.
5624 * valprint.c (wchar_printable, append_string_as_wide)
5625 (print_wchar): Move from c-lang.c.
5626 (generic_emit_char): New function; mostly taken from c_emit_char.
5627 (generic_printstr): New function; mostly taken from c_printstr.
5628 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5629 represented as arrays.
5630 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5632 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5633 identically to TYPE_CODE_INT.
5634 * f-lang.c (f_get_encoding): New function.
5635 (f_emit_char): Use generic_emit_char.
5636 (f_printchar): Replace comment.
5637 (f_printstr): Use generic_printstr.
5638 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5639 "character" types specially.
5640 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5642 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5644 (c_emit_char): Call generic_emit_char.
5645 (c_printstr): Call generic_printstr.
5647 2011-06-29 Gary Benson <gbenson@redhat.com>
5649 * breakpoint.c (bpstat_what): Removed duplicated case.
5651 2011-06-28 Tom Tromey <tromey@redhat.com>
5653 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5655 2011-06-27 Tom Tromey <tromey@redhat.com>
5657 * valops.c (find_overload_match): Call do_cleanups before early
5659 * top.c (execute_command): Call do_cleanups before early return.
5660 (command_loop): Likewise.
5661 * stack.c (backtrace_command): Make a null cleanup early. Don't
5662 conditionally call do_cleanups.
5663 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5665 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5666 so cleanups are always run.
5667 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5668 * findcmd.c (parse_find_args): Call do_cleanups on early return
5670 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5671 Don't conditionally call do_cleanups.
5672 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5675 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5677 * MAINTAINERS (Write After Approval): Use default email address.
5679 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5681 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5683 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5685 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5686 saved_regs_mask and copied_regs_mask fields.
5687 (sparc_record_save_insn): New prototype.
5688 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5689 (sparc_record_save_insn): New function.
5690 (sparc_analyze_prologue): Add head comment. Recognize store insns
5691 of call-saved registers. Use OFFSET consistently. Recognize flat
5692 frames and cache their settings.
5693 (sparc32_skip_prologue): Handle flat frames.
5694 (sparc_frame_cache): Add frame_offset to the base address.
5695 (sparc32_frame_cache): Adjust to new frame description.
5696 (sparc32_frame_prev_register): Likewise.
5697 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5698 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5699 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5700 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5701 frame by calling sparc_record_save_insn.
5702 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5703 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5704 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5706 2011-06-27 Tristan Gingold <gingold@adacore.com>
5708 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5709 field by map_addr and map_len.
5710 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5711 (munmap_section_buffer): Likewise.
5713 2011-06-24 Tom Tromey <tromey@redhat.com>
5715 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5716 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5717 * python/python.c (gdbpy_parameter): Make 'arg' const.
5718 (execute_gdb_command): Likewise.
5719 (gdbpy_decode_line): Likewise. Copy it.
5720 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5721 (gdbpy_write): Make 'arg' const.
5722 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5724 (gdbpy_lookup_type): Likewise.
5725 * python/py-prettyprint.c (print_children): Make 'name' const.
5726 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5727 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5729 * python/py-function.c (fnpy_init): Make 'name' const.
5730 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5731 (gdbpy_string_to_argv): Make 'input' const.
5732 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5734 * gdbtypes.h (lookup_typename): Update.
5735 * gdbtypes.c (lookup_typename): Make 'name' const.
5736 (lookup_struct): Likewise.
5737 (lookup_union): Likewise.
5738 (lookup_enum): Likewise.
5740 2011-06-24 Tom Tromey <tromey@redhat.com>
5742 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5743 gdb_thread_db.h. Move all common/ entries to be together.
5744 (TAGS): Don't depend on DEPFILES.
5746 2011-06-23 Yao Qi <yao@codesourcery.com>
5748 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5749 * remote.c (remote_start_remote): ... here.
5750 * monitor.c (monitor_open): ... here.
5752 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5754 * gdbtypes.c (append_composite_type_field_aligned): Fix
5755 calculation of bit position based on alignment.
5757 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5759 * breakpoint.c (bpstat_stop_status): Call the check_status
5760 breakpoint_ops method.
5761 (print_one_breakpoint_location): Also print the condition for Ada
5762 exception catchpoints.
5763 (allocate_bp_location): New, factored out from
5764 allocate_bp_location.
5765 (allocate_bp_location): Adjust. Call the owner breakpoint's
5766 allocate_location method, if there is one.
5767 (free_bp_location): Call the locations's dtor method, if there is
5769 (init_raw_breakpoint_without_location): New breakpoint_ops
5771 (set_raw_breakpoint_without_location): Adjust.
5772 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5773 (set_raw_breakpoint): Adjust.
5774 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5775 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5776 re_set and check_status methods.
5777 (init_catchpoint): Don't memset, initialize thread, addr_string
5778 and enable_state. Pass the ops down to init_raw_breakpoint.
5779 (install_catchpoint): Rename to ...
5780 (install_breakpoint): ... this, and make extern.
5781 (create_fork_vfork_event_catchpoint): Adjust.
5782 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5783 re_set and check_status methods.
5784 (create_syscall_event_catchpoint): Adjust.
5785 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5786 (masked_watchpoint_breakpoint_ops): Install NULL
5787 allocate_location, re_set and check_status methods.
5788 (catch_exec_command_1): Adjust.
5789 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5790 re_set and check_status methods.
5791 (create_ada_exception_breakpoint): Rename to ...
5792 (init_ada_exception_breakpoint): ... this. Add a struct
5793 breakpoint parameter, and delete the exp_string, cond_string and
5794 cond parameters. Use init_raw_breakpoint, and don't install or
5795 mention the breakpoint yet. Don't clear breakpoint fields that
5796 init_raw_breakpoint already clears.
5797 (re_set_breakpoint): Delete, split into ...
5798 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5800 (breakpoint_re_set_one): Call the breakpoint's
5801 breakpoint_ops->re_set implementation, if there's one. Adjust.
5802 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5803 (struct bp_location_ops): New type.
5804 (struct bp_location): New field `ops'.
5805 (struct breakpoint_ops): New `allocate_location', `re_set' and
5806 `check_status' fields. Make `breakpoint_hit''s description match
5808 (init_bp_location): Declare.
5809 (breakpoint_re_set_default): Declare.
5810 (create_ada_exception_breakpoint): Rename to ...
5811 (init_ada_exception_breakpoint): ... this. Add a struct
5812 breakpoint parameter, and delete the exp_string, cond_string and
5814 (install_breakpoint): Declare.
5815 * ada-lang.c: Include exceptions.h.
5816 <Ada exceptions description>: Update.
5817 (struct ada_catchpoint_location): New type.
5818 (ada_catchpoint_location_dtor): New function.
5819 (ada_catchpoint_location_ops): New global.
5820 (ada_catchpoint): New type.
5821 (create_excep_cond_exprs): New function.
5822 (dtor_exception, allocate_location_exception, re_set_exception)
5823 (should_stop_exception, check_status_exception): New functions.
5824 (print_one_exception, print_mention_exception)
5825 (print_recreate_exception): Adjust.
5826 (dtor_catch_exception, allocate_location_catch_exception)
5827 (re_set_catch_exception, check_status_catch_exception): New
5829 (catch_exception_breakpoint_ops): Install them.
5830 (dtor_catch_exception_unhandled)
5831 (allocate_location_catch_exception_unhandled)
5832 (re_set_catch_exception_unhandled)
5833 (check_status_catch_exception_unhandled): New functions.
5834 (catch_exception_unhandled_breakpoint_ops): Install them.
5835 (dtor_catch_assert, allocate_location_catch_assert)
5836 (re_set_catch_assert, check_status_catch_assert): New functions.
5837 (catch_assert_breakpoint_ops): Install them.
5838 (ada_exception_catchpoint_p): Delete.
5839 (catch_ada_exception_command_split)
5840 (ada_exception_catchpoint_cond_string): Rename exp_string
5841 parameter to excep_string. Adjust.
5842 (ada_parse_catchpoint_condition): Delete.
5843 (ada_exception_sal): Rename the exp_string parameter to
5844 excep_string. Delete the cond_string and cond parameters.
5846 (ada_decode_exception_location): Rename the exp_string parameter
5847 to excep_string. Delete the cond_string and cond parameters.
5849 (create_ada_exception_catchpoint): New function.
5850 (catch_ada_exception_command, ada_decode_assert_location)
5851 (catch_assert_command): Adjust.
5852 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5854 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5856 * ada-lang.c: Include arch-utils.h.
5857 (ada_decode_exception_location): Make static.
5858 (catch_ada_exception_command): Moved here from breakpoint.c.
5859 (ada_decode_assert_location): Make static.
5860 (catch_assert_command): Moved here from breakpoint.c.
5861 (_initialize_ada_lang): Install the exception and assert
5862 catchpoint commands here.
5863 * ada-lang.h (ada_decode_exception_location)
5864 (ada_decode_assert_location): Delete declarations.
5865 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5867 (create_ada_exception_breakpoint): Make extern.
5868 (catch_ada_exception_command, catch_assert_command): Moved to
5870 (add_catch_command): Make extern.
5871 (_initilize_breakpoint): Don't install the exception and assert
5872 catchpoint commands here.
5873 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5875 (add_catch_command, create_ada_exception_breakpoint): Declare.
5877 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5879 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5880 the breakpoint to the breakpoint chain here.
5881 (set_raw_breakpoint_without_location): Add the breakpoint to the
5882 breakpoint chain here.
5883 (init_raw_breakpoint): Adjust comments.
5884 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5886 (init_catchpoint): Don't set the catchpoint's breakpoint number
5888 (install_catchpoint): New function.
5889 (create_fork_vfork_event_catchpoint)
5890 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5891 use install_catchpoint.
5893 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5895 * breakpoint.c (create_catchpoint_without_mention)
5896 (create_catchpoint): Delete.
5898 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5900 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5901 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5902 reference to exec_pathname.
5903 (struct exec_catchpoint): New type.
5904 (dtor_catch_exec): New function.
5905 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5906 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5907 (catch_exec_command_1): Adjust to use init_catchpoint.
5908 (delete_breakpoint): Remove reference to exec_pathname.
5910 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5912 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5913 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5914 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5915 reference to syscalls_to_be_caught.
5916 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5918 (struct syscall_catchpoint): New type.
5919 (dtor_catch_syscall): New function.
5920 (insert_catch_syscall, remove_catch_syscall)
5921 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5922 (print_recreate_catch_syscall): Adjust.
5923 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5924 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5925 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5926 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5927 (masked_watchpoint_breakpoint_ops)
5928 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5929 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5930 there is one. Remove references to syscalls_to_be_caught.
5931 (catching_syscall_number): Adjust.
5932 * ada-lang.c (catch_exception_breakpoint_ops)
5933 (catch_exception_unhandled_breakpoint_ops)
5934 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5936 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5938 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5940 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5941 reference to forked_inferior_pid.
5942 (struct fork_catchpoint): New type.
5943 (breakpoint_hit_catch_fork, print_it_catch_fork)
5944 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5945 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5946 (create_fork_vfork_event_catchpoint): Adjust to use
5949 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5951 * breakpoint.c (add_to_breakpoint_chain)
5952 (init_raw_breakpoint_without_location): New functions, factored
5954 (set_raw_breakpoint_without_location): ... this one.
5955 (init_raw_breakpoint): New function, factored out from
5956 set_raw_breakpoint and adjusted to use
5957 init_raw_breakpoint_without_location.
5958 (set_raw_breakpoint): Adjust.
5959 (init_catchpoint): New function, factored out from
5960 create_catchpoint_without_mention and adjusted to use
5961 init_raw_breakpoint.
5962 (create_catchpoint_without_mention): Adjust.
5964 2011-06-22 Tom Tromey <tromey@redhat.com>
5966 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5967 argument of 0 specially.
5969 2011-06-22 Yao Qi <yao@codesourcery.com>
5971 * infrun.c (handle_inferior_event): Remove write-only local variable
5972 `sw_single_step_trap_p'.
5974 2011-06-20 Tom Tromey <tromey@redhat.com>
5976 * symtab.c (lookup_language_this): End loop if block is NULL.
5978 2011-06-17 Tom Tromey <tromey@redhat.com>
5980 * valops.c (value_of_this): Use lookup_language_this.
5981 * symtab.h (lookup_language_this): Declare.
5982 * symtab.c (lookup_language_this): New function.
5983 (lookup_symbol_aux): Use lookup_language_this.
5984 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5986 2011-06-17 Tom Tromey <tromey@redhat.com>
5988 * value.h (value_of_this): Update.
5989 (value_of_local): Remove.
5990 * valops.c (value_of_this): Rename from value_of_local. Change
5992 * p-exp.y (exp): Update.
5993 (variable): Likewise.
5994 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5996 2011-06-17 Tom Tromey <tromey@redhat.com>
5998 * valops.c (value_of_local): Complain if NAME is NULL.
5999 * std-operator.def (OP_OBJC_SELF): Remove.
6000 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
6001 * objc-exp.y (name_not_typename): Use OP_THIS.
6002 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
6004 <OP_OBJC_SELF>: Remove.
6005 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
6007 2011-06-16 Tristan Gingold <gingold@adacore.com>
6009 * python/py-events.h (gdb_py_events): Make it extern.
6010 * python/py-evtregistry.c (gdb_py_events): Declare.
6012 2011-06-16 Hui Zhu <teawater@gmail.com>
6014 * remote.c (remote_trace_set_readonly_regions): Add check for
6015 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
6018 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
6020 * arm-linux-tdep.c: Include "auxv.h".
6022 (ARM_LINUX_SIZEOF_VFP): Define.
6023 (arm_linux_supply_vfp): New function.
6024 (arm_linux_collect_vfp): Likewise.
6025 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
6026 (arm_linux_fpa_regset_sections): New variable.
6027 (arm_linux_vfp_regset_sections): Likewise.
6028 (arm_linux_core_read_description): New function.
6029 (arm_linux_init_abi): Install arm_linux_core_read_description and
6030 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
6031 appropriate for the architecture.
6032 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
6033 (tdesc_arm_with_m): Declare.
6034 (tdesc_arm_with_iwmmxt): Likewise.
6035 (tdesc_arm_with_vfpv2): Likewise.
6036 (tdesc_arm_with_vfpv3): Likewise.
6037 (tdesc_arm_with_neon): Likewise.
6038 * arm-linux-nat.c: Move features/*.c includes ...
6039 * arm-tdep.c: ... here.
6040 * arm-linux-nat.c (arm_linux_read_description): Move initializing
6041 target description data structures ...
6042 * arm-tdep.c (_initialize_arm_tdep): ... here.
6043 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
6044 HWCAP_VFPv3D16): Move definitions ...
6045 * arm-linux-tdep.h: ... here.
6047 2011-06-15 Hui Zhu <teawater@gmail.com>
6049 * remote.c (remote_trace_set_readonly_regions): Add a check for
6052 2011-06-14 Tom Tromey <tromey@redhat.com>
6054 * coffread.c (coffread_objfile): Rename from current_objfile.
6055 * dbxread.c (dbxread_objfile): Rename from current_objfile.
6056 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
6058 2011-06-14 Tom Tromey <tromey@redhat.com>
6060 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
6061 (class_symtab): Remove.
6062 (jv_dynamics_progspace_key): New global.
6063 (jv_per_objfile_free): Reset program space data. Update assert.
6064 Don't clear globals.
6065 (get_dynamics_objfile): Use and set program space data.
6066 (get_java_class_symtab): Use get_dynamics_objfile.
6067 (add_class_symbol): Likewise.
6068 (java_link_class_type): Likewise.
6069 (java_object_type, jv_clear_object_type, set_java_object_type):
6071 (get_java_object_type): Update. Don't cache result.
6072 (is_object_type): Don't call set_java_object_type.
6073 (_initialize_java_language): Don't set jv_type_objfile_data_key;
6074 initialize jv_dynamics_progspace_key.
6076 2011-06-14 Tom Tromey <tromey@redhat.com>
6078 * symtab.h (current_objfile): Don't declare.
6079 * objfiles.h (current_objfile): Don't declare.
6080 * objfiles.c (current_objfile): Remove.
6081 * mdebugread.c (current_objfile): New file-scope global.
6082 * dbxread.c (current_objfile): New file-scope global.
6083 * coffread.c (current_objfile): New file-scope global.
6085 2011-06-13 Pedro Alves <pedro@codesourcery.com>
6087 * top.h (line): Rename to ...
6088 (saved_command_line): ... this.
6089 (linesize): Rename to ...
6090 (saved_command_line_size): ... this.
6091 * top.c (line): Rename to ...
6092 (saved_command_line): ... this.
6093 (linesize): Rename to ...
6094 (saved_command_line_size): ... this.
6095 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
6096 * event-top.c (command_line_handler): Adjust.
6097 * main.c (captured_main): Adjust.
6099 2011-06-12 Mark Kettenis <kettenis@gnu.org>
6101 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
6102 get_frame_func instead of get_frame_pc to determine the code
6103 address used to construct the frame ID.
6104 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
6105 (i386_epilogue_frame_this_id): Likewise.
6106 (i386_epilogue_frame_prev_register): New function.
6107 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
6108 (i386_stack_tramp_frame_sniffer): Fix coding style.
6109 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
6110 (i386_gdbarch_init): Fix comments.
6112 2011-06-12 Mark Kettenis <kettenis@gnu.org>
6114 * i386-tdep.c (i386_match_insn_block): Use length of the proper
6115 instruction when walking back through the instruction stream.
6117 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6119 * symtab.c (output_partial_symbol_filename): Exchange the filename and
6120 fullname parameters order.
6122 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6125 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
6127 * psymtab.c (map_symbol_filenames_psymtab)
6128 (map_partial_symbol_filenames): Likewise.
6129 * psymtab.h: Include symfile.h.
6130 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
6131 * symfile.h (symbol_filename_ftype): New.
6132 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
6133 map_symbol_filenames, clarify more the naming in comment.
6135 2011-06-07 Doug Evans <dje@google.com>
6137 * cc-with-index.sh: Fix typos in comment.
6138 Look for ../../gdb, for fullname.exp.
6140 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6141 Pedro Alves <pedro@codesourcery.com>
6143 * cli/cli-cmds.c (shell_escape): Use waitpid.
6144 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
6146 2011-06-07 Tristan Gingold <gingold@adacore.com>
6148 * xcoffread.c (dwarf2_xcoff_names): New variable.
6149 (aix_process_linenos): Add a guard.
6150 (xcoff_symfile_finish): Free dwarf2.
6151 (xcoff_initial_scan): Add dwarf2 support.
6153 2011-06-06 Pedro Alves <pedro@codesourcery.com>
6155 * infcall.c (run_inferior_call): Don't mask async. Instead force
6156 a synchronous wait, if the target can async.
6158 * target.h (struct target_ops): Delete to_async_mask.
6159 (target_async_mask): Delete.
6160 * target.c (update_current_target): Delete references to to_async_mask.
6161 * linux-nat.c (linux_nat_async_mask_value): Delete.
6162 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
6163 to linux_nat_async_mask_value.
6164 (linux_nat_async_mask): Delete.
6165 (linux_nat_async, linux_nat_close): Remove references to
6166 linux_nat_async_mask_value.
6167 * record.c (record_async_mask_value): Delete.
6168 (record_async): Remove references to record_async_mask_value.
6169 (record_async_mask): Delete.
6170 (record_can_async_p, record_is_async_p): Remove references to
6171 record_async_mask_value.
6172 (init_record_ops, init_record_core_ops): Remove references to
6174 * remote.c (remote_async_mask_value): Delete.
6175 (init_remote_ops): Remove reference to remote_async_mask.
6176 (remote_can_async_p, remote_is_async_p): Remove references to
6177 remote_async_mask_value.
6178 (remote_async): Remove references to remote_async_mask_value.
6179 (remote_async_mask): Delete.
6181 * infrun.c (fetch_inferior_event): Don't claim registers changed
6182 if the current thread is already not executing.
6184 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
6186 From Stephen Kitt <steve@sk2.org>
6187 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
6188 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
6190 2011-06-03 Joel Brobecker <brobecker@adacore.com>
6192 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
6193 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
6195 2011-06-03 Tom Tromey <tromey@redhat.com>
6197 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
6199 * python/py-exitedevent.c (create_exited_event_object): Change
6200 type of 'exit_code'. Optionally add exit_code attribute.
6201 (emit_exited_event): Change type of 'exit_code'.
6202 * python/py-event.h (emit_exited_event): Update.
6203 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
6204 * infrun.c (handle_inferior_event): Set exit code fields on
6206 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
6208 * inferior.c (exit_inferior_1): Initialize new fields.
6210 2011-06-03 Tom Tromey <tromey@redhat.com>
6212 * dwarf2expr.c (get_signed_type): New function.
6213 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
6215 2011-06-02 Keith Seitz <keiths@redhat.com>
6217 * objc-lang.c (find_methods): Increment objfile_csym earlier.
6219 2011-06-02 Pedro Alves <pedro@codesourcery.com>
6221 * top.h (simplified_command_loop): Delete declaration.
6223 2011-06-01 Mike Frysinger <vapier@gentoo.org>
6225 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
6226 gdb_sysroot to the "len" variable. Append both to "arg_buf".
6228 2011-06-01 Yao Qi <yao@codesourcery.com>
6230 * objfiles.h (obj_section_addr): Update reference to objfile from
6232 (obj_section_endaddr): Likewise.
6234 2011-06-01 Daniel Jacobowitz <drow@false.org>
6236 * MAINTAINERS: Update my email address and affiliation. Also
6237 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
6239 2010-05-31 Keith Seitz <keiths@redhat.com>
6242 * linespec.c (get_search_block): New function.
6243 (find_methods): Add FILE_SYMTATB parameter and use it and
6244 get_search_block to pass an appropriate block to
6245 lookup_symbol_in_namespace.
6246 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
6247 Check if *ARGPTR starts with a filename first.
6248 If it does, call locate_first_half again to locate the next
6249 "first half" of the linespec.
6250 Pass FILE_SYMTATB to decode_objc and decode_compound.
6251 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
6252 (locate_first_half): Stop on the first colon seen.
6253 (decode_compound): Add FILE_SYMTAB parameter.
6254 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
6255 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
6256 get_search_block with lookup_symbol.
6257 (find_method): Add FILE_SYMTAB parameter and pass it to
6259 (decode_objc): Use get_search_block.
6261 2010-05-31 Keith Seitz <keiths@redhat.com>
6264 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
6265 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
6266 and CP_ANONYMOUS_NAMESPACE_LEN.
6267 (cp_is_anonymous): Likewise.
6268 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
6269 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
6270 * dwarf2read.c (namespace_name): Likewise.
6271 (fixup_partial_die): Likewise.
6272 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
6273 seen in the input, keep it.
6275 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6277 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
6278 * inf-loop.h (inferior_event_handler_wrapper): Delete.
6279 * inf-loop.c (inferior_event_handler_wrapper): Delete.
6280 (inferior_event_handler): Don't handle INF_QUIT_REQ.
6281 * remote.c (_initialize_remote): Register
6282 async_remote_interrupt_twice directly as
6283 sigint_remote_twice_token event.
6285 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6287 * target.h (enum inferior_event_type): Delete INF_ERROR.
6288 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
6290 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6292 * interps.c (interp_set): Don't cancel continuations.
6294 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
6296 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
6298 2011-05-30 Pedro Alves <pedro@codesourcery.com>
6300 * continuations.h (continuation_ftype): Add `err' parameter.
6301 Document parameters.
6302 (do_all_continuations, do_all_continuations_thread)
6303 (do_all_intermediate_continuations)
6304 (do_all_intermediate_continuations_thread)
6305 (do_all_inferior_continuations): Add `err' parameter.
6306 * continuations.c (do_my_continuations_1, do_my_continuations)
6307 (do_all_inferior_continuations, do_all_continuations_ptid)
6308 (do_all_continuations_thread_callback)
6309 (do_all_continuations_thread, do_all_continuations)
6310 (do_all_intermediate_continuations_thread_callback)
6311 (do_all_intermediate_continuations_thread)
6312 (do_all_intermediate_continuations): Add `err' parameter, and pass
6313 it down all the way to the continuations proper.
6314 * inf-loop.c (inferior_event_handler): If fetching an inferior
6315 event throws an error, don't pop the target, and still call the
6316 continuations, but with `err' set. Adjust all other continuation
6318 * breakpoint.c (until_break_command_continuation): Add `err'
6320 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
6321 issue another step if `err' is set.
6322 (struct until_next_continuation_args): New.
6323 (until_next_continuation): Add `err' parameter. Adjust.
6324 (until_next_command): Adjust.
6325 (struct finish_command_continuation_args): Add `thread' field.
6326 (finish_command_continuation): Add `err' parameter. Handle it.
6327 (finish_forward): Adjust.
6328 (attach_command_continuation): Add `err' parameter. Handle it.
6329 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6330 cancel the continuations.
6331 * interps.c (interp_set): Adjust to cancel the continuations.
6332 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6333 continuations rather than discarding.
6334 (free_thread): Don't clear thread inferior resources here.
6335 (delete_thread_1): Do it here instead. And do it before removing
6336 the thread from the threads list. Tag the thread as exited before
6337 clearing thread inferior resources.
6339 2011-05-30 Joel Brobecker <brobecker@adacore.com>
6341 * infcall.c (call_function_by_hand): Rephrase error message.
6343 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6345 * defs.h (struct thread_info, struct inferior): Delete forward
6347 * breakpoint.h (struct thread_info): New forward declaration.
6348 * observer.sh (struct inferior): New forward declaration.
6349 * python/python-internal.h (struct inferior): New forward
6352 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6354 * defs.h (struct continuation, continuation_ftype)
6355 (continuation_free_arg_ftype, add_continuation)
6356 (do_all_continuations, do_all_continuations_thread)
6357 (discard_all_continuations, discard_all_continuations_thread)
6358 (add_intermediate_continuation, do_all_intermediate_continuations)
6359 (do_all_intermediate_continuations_thread)
6360 (discard_all_intermediate_continuations)
6361 (discard_all_intermediate_continuations_thread)
6362 (add_inferior_continuation, do_all_inferior_continuations)
6363 (discard_all_inferior_continuations): Move to ...
6364 * continuations.h: ... this new file.
6365 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6366 infcmd.c, inferior.c, infrun.c, interps.c: Include
6369 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6370 Doug Evans <dje@google.com>
6372 Fix PR 10970, PR 12702.
6373 * linux-nat.c (linux_lwp_is_zombie): New function.
6374 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
6375 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
6377 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6379 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6381 (add_continuation, add_intermediate_continuation)
6382 (add_inferior_continuation): Use them.
6383 * continuations.c (struct continuation): Use them.
6384 (make_continuation_ftype): Delete.
6385 (make_continuation, add_inferior_continuation, add_continuation)
6386 (add_intermediate_continuation): Use continuation_ftype and
6387 continuation_free_arg_ftype. Rename parameters to shorter names.
6389 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6391 * continuations.c (make_continuation): Make it return void.
6392 (do_my_continuations): Rename to ...
6393 (do_my_continuations_1): ... this. Remove old_chain parameter and
6395 (do_my_continuations): New.
6396 (discard_my_continuations): Rename to ...
6397 (discard_my_continuations_1): ... this. Remove old_chain
6398 parameter and adjust.
6399 (discard_my_continuations): New.
6400 (add_inferior_continuation): Simplify.
6401 (do_all_inferior_continuations): Reimplement on top
6402 do_my_continuations.
6403 (discard_all_inferior_continuations): Simplify.
6404 (add_continuation): Simplify.
6405 (do_all_continuations_ptid): Simplify.
6406 (discard_all_continuations_thread_callback): Simplify.
6407 (add_intermediate_continuation): Simplify.
6408 (discard_all_intermediate_continuations_thread_callback):
6411 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6413 * utils.c (struct continuation, add_continuation)
6414 (add_inferior_continuation)
6415 (do_all_inferior_continuations, discard_all_inferior_continuations)
6416 (restore_thread_cleanup, do_all_continuations_ptid)
6417 (do_all_continuations_thread_callback)
6418 (do_all_continuations_thread, do_all_continuations)
6419 (discard_all_continuations_thread_callback)
6420 (discard_all_continuations_thread, discard_all_continuations)
6421 (add_intermediate_continuation)
6422 (do_all_intermediate_continuations_thread_callback)
6423 (do_all_intermediate_continuations_thread)
6424 (do_all_intermediate_continuations)
6425 (discard_all_intermediate_continuations_thread_callback)
6426 (discard_all_intermediate_continuations_thread)
6427 (discard_all_intermediate_continuations): Move to ...
6428 * continuations.c: ... this new file, and adjust to no longer
6429 implement continuations on top of cleanups.
6430 * Makefile.in (SFILES): Add continuations.c.
6431 (COMMON_OBS): Add continuations.o.
6433 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6435 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6436 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6437 Internal error on invalid values.
6438 * reverse.c: Don't handle EXEC_ERROR.
6439 * mi/mi-main.c: Don't handle EXEC_ERROR.
6441 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6443 * record.c: Include event-loop.h, inf-loop.h.
6444 (record_beneath_to_async): New global.
6445 (tmp_to_async): New global.
6446 (record_async_inferior_event_token): New global.
6447 (record_open_1): Don't error out if async is enabled.
6448 (record_open): Handle to_async. Create an async event source in
6450 (record_close): Delete the async event source.
6451 (record_resumed): New global.
6452 (record_execution_dir): New global.
6453 (record_resume, record_core_resume): Set them. Register the
6454 target on the event loop.
6455 (record_wait): Rename to ...
6456 (record_wait_1): ... this. Add more debug output. Handle
6457 TARGET_WNOHANG, and the target beneath returning
6458 TARGET_WAITKIND_IGNORE.
6459 (record_wait): Reimplement on top of record_wait_1.
6460 (record_async_mask_value): New global.
6461 (record_async, record_async_mask, record_can_async_p)
6462 (record_is_async_p, record_execution_direction): New functions.
6463 (init_record_ops, init_record_core_ops): Install new methods.
6464 * infrun.c (fetch_inferior_event): Temporarily switch the global
6465 execution direction to the direction the target was going.
6466 (execution_direction): Change type to int.
6467 * target.c (default_execution_direction): New function.
6468 (update_current_target): Inherit and de_fault
6469 to_execution_direction.
6470 * target.h (struct target_ops) <to_execution_direction>: New
6472 (target_execution_direction): New macro.
6473 * inferior.h (execution_direction): Change type to int.
6475 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6477 * infcall.c (call_function_by_hand): Don't allow calling functions
6478 in reverse execution mode.
6480 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6482 * infcmd.c (finish_command): Allow async finish in reverse.
6484 2011-05-26 Yao Qi <yao@codesourcery.com>
6486 * gdb_thread_db.h: Delete. Move to ...
6487 * common/gdb_thread_db.h: ... here.
6489 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6491 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6492 function's entry point instead of a manually managed momentary
6493 breakpoint, and only ever issue one proceed call.
6494 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6495 doing a reverse-finish, switch to stepi mode, to do another step.
6496 (insert_step_resume_breakpoint_at_sal): Make public.
6497 (normal_stop): No need to save function value return registers if
6499 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6501 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6503 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6504 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6505 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6507 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6508 step-resume breakpoints.
6509 (print_it_typical): Handle bp_hp_step_resume.
6510 (bpstat_what): Ditto.
6511 (bptype_string): Ditto.
6512 (print_one_breakpoint_location): Ditto.
6513 (allocate_bp_location): Ditto.
6515 (breakpoint_re_set_one): Ditto.
6516 * infrun.c (handle_inferior_event): Adjust. Split
6517 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6518 BPSTAT_WHAT_HP_STEP_RESUME.
6519 (insert_step_resume_breakpoint_at_sal): Rename to ...
6520 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6521 parameter. Handle it.
6522 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6523 insert_step_resume_breakpoint_at_sal_1.
6524 (insert_step_resume_breakpoint_at_frame): Rename to ...
6525 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6526 set a high-priority step-resume breakpoint.
6527 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6528 (insert_step_resume_breakpoint_at_caller): Ditto.
6530 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6532 * breakpoint.c (iterate_over_related_breakpoints): New.
6533 (do_map_delete_breakpoint): New.
6534 (delete_command): Pass do_map_delete_breakpoint to
6535 map_breakpoint_numbers.
6536 (do_disable_breakpoint): New.
6537 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6539 (do_enable_breakpoint): Rename to ...
6540 (enable_breakpoint_disp): ... this.
6541 (enable_breakpoint): Adjust.
6542 (do_enable_breakpoint): New.
6543 (enable_once_breakpoint): Delete.
6544 (do_map_enable_breakpoint): New.
6545 (do_map_enable_once_breakpoint): New.
6546 (enable_once_command, enable_delete_command)
6547 (delete_trace_command): Iterate over the breakpoint's related
6550 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6552 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6553 for ALPHA_ZERO_REGNUM.
6554 (alpha_supply_int_regs): Explicitly supply zero as the value for
6555 ALPHA_ZERO_REGNUM in the register cache.
6556 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6558 2011-05-26 Yao Qi <yao@codesourcery.com>
6560 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6562 2011-05-26 Tristan Gingold <gingold@adacore.com>
6564 * symfile.h (struct dwarf2_section_names): New type.
6565 (struct dwarf2_debug_sections): New type.
6566 (dwarf2_has_info): Add parameter.
6567 * dwarf2read.c (dwarf2_elf_names): New variable.
6568 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6569 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6570 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6571 (dwarf2_has_info): Add names parameter. Pass names
6572 to dwarf2_locate_sections.
6573 (section_is_p): Rewrite using the names parameter.
6574 (dwarf2_locate_sections): Use section names from the names parameter.
6575 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6576 * elfread.c (read_psyms): Ditto.
6577 * machoread.c (macho_symfile_read): Ditto.
6579 2011-05-25 Andreas Schwab <schwab@redhat.com>
6582 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6584 2011-05-24 Keith Seitz <keiths@redhat.com>
6587 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6588 (decode_compound): Unconditionally call keep_name_info.
6590 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6592 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6593 scope, clear its command list.
6594 (map_breakpoint_numbers): Don't walk the related breakpoints list
6597 2011-05-24 Tom Tromey <tromey@redhat.com>
6599 * MAINTAINERS: Move Jim Blandy to past maintainers.
6601 2011-05-24 Tristan Gingold <gingold@adacore.com>
6603 * symfile.h (enum dwarf2_section_enum): New type.
6604 (dwarf2_get_section_info): New prototype.
6605 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6606 section_name by sect. Use a switch to select the info.
6607 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6608 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6610 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6612 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6613 shared library event breakpoint if there's no execution.
6615 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6617 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6618 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6620 2011-05-23 Tom Tromey <tromey@redhat.com>
6622 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6625 2011-05-23 Doug Evans <dje@google.com>
6627 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6628 entry for RuntimeError to doc string.
6630 2011-05-23 Jerome Guitton <guitton@adacore.com>
6632 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6633 sequence for probing loops.
6635 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6637 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6640 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6642 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6643 zero as the value for %g0 in the register cache.
6644 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6645 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6647 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6649 * infrun.c (proceed): Set previous_inferior_ptid here.
6650 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6651 inferior_ptid, not null_ptid.
6652 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6653 (fetch_inferior_event): Nor here.
6655 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6657 * inf-loop.c (inferior_event_handler): Only output a message if
6660 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6662 * MAINTAINERS: Update my e-mail address.
6664 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6666 * infrun.c (proceed): Switch the inferior event loop to
6667 INF_EXEC_COMPLETE if the target refused to resume from a
6670 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6672 * infcmd.c: Include "inf-loop.h".
6673 (step_once): When stepping into an inline subroutine, pretend the
6674 target has run. If the target can async, switch the inferior
6675 event loop to INF_EXEC_COMPLETE.
6676 * inferior.h (user_visible_resume_ptid): Declare.
6677 * infrun.c (user_visible_resume_ptid): New function, factored out
6680 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6681 that the current thread is running. Merge async and sync
6684 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6686 * infcmd.c (step_1): Simplify synchronous case.
6688 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6690 * tracepoint.c: Include exceptions.h.
6691 (TFILE_PID): Move higher in file.
6692 (tfile_open): Delay pushing the tfile target until we're assured
6693 the tfile header is present in the file. Wrap reading the initial
6694 newline-terminated lines in TRY_CATCH. Pop the target if the
6695 initial setup failed. Add the tfile's thread immediately
6696 aftwards, before any non-essential setup. Don't skip
6697 post_create_inferior if there are no traceframes present in the
6699 (tfile_close): Remove redundant check for null before xfree call.
6700 (tfile_thread_alive): New function.
6701 (init_tfile_ops): Register it as to_thread_alive callback.
6703 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6705 * tracepoint.c (tfile_open): Delete #if 0'd code.
6707 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6709 Fix -readnow for -gdwarf-4 unused type units.
6710 * dwarf2read.c (struct signatured_type): Remove the field offset.
6711 (create_signatured_type_table_from_index): Remove its initialization.
6712 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6713 instead. Add a complaint call.
6714 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6715 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6716 (lookup_signatured_type_at_offset, read_signatured_type)
6717 (write_one_signatured_type): Update the field for per_cu.
6719 2011-05-19 Tom Tromey <tromey@redhat.com>
6721 * python/py-inferior.c (python_inferior_exit): Use
6723 (python_on_resume): Likewise.
6725 2011-05-19 Matt Rice <ratmice@gmail.com>
6727 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6729 2011-05-19 Hui Zhu <teawater@gmail.com>
6731 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6733 2011-05-19 Hui Zhu <teawater@gmail.com>
6735 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6737 2011-05-18 Tom Tromey <tromey@redhat.com>
6739 * dwarf2read.c (dwarf2_add_field): Constify.
6740 * value.c (value_static_field): Constify.
6741 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6743 * ax-gdb.c (gen_static_field): Constify
6745 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6747 * linux-nat.c (kill_callback): Use SIGKILL first.
6749 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6751 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6753 2011-05-18 Tom Tromey <tromey@redhat.com>
6755 * value.c (value_fn_field): Constify.
6756 * symtab.c (gdb_mangle_name): Constify.
6757 * stabsread.c (update_method_name_from_physname): Make 'physname'
6759 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6760 const. Use explicit fputc_filtered loop.
6761 (pascal_type_print_base): Constify.
6762 * p-lang.h (pascal_type_print_method_args): Update.
6763 * linespec.c (add_matching_methods): Constify.
6764 (add_constructors): Likewise.
6765 * jv-typeprint.c (java_type_print_base): Constify.
6766 * gdbtypes.h (struct cplus_struct_type)
6767 <fn_fieldlist.fn_field.physname>: Now const.
6768 * dwarf2read.c (compute_delayed_physnames): Constify.
6769 (dwarf2_add_member_fn): Likewise.
6770 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6772 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6774 * infrun.c (resume): Mention which is the current thread, and its
6775 current PC in debug output.
6776 (prepare_to_proceed): Mention the thread switching in debug
6779 2011-05-18 Tom Tromey <tromey@redhat.com>
6781 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6782 path check. Use xmalloc and cleanups.
6783 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6785 2011-05-17 Tom Tromey <tromey@redhat.com>
6787 * cp-valprint.c (cp_print_value_fields): Catch errors from
6790 2011-05-17 Tom Tromey <tromey@redhat.com>
6792 * dwarf2read.c (dwarf2_get_die_type): Call
6793 get_die_type_at_offset.
6794 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6795 get_base_type function.
6797 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6799 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6802 2011-05-16 Doug Evans <dje@google.com>
6804 * python/py-auto-load.c (source_section_scripts): Mention objfile
6807 2011-05-15 Doug Evans <dje@google.com>
6809 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6810 (try_thread_db_load_from_pdir): Call it. If unable to find
6811 libthread_db in directory of libpthread, see if we're looking at
6812 the separate-debug-info copy.
6814 * python/py-autoload.c (print_script): Print "Missing" instead of
6815 "No" for missing scripts.
6816 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6818 2011-05-13 Doug Evans <dje@google.com>
6820 * ui-file.c (stdio_file_write_async_safe): Add comment.
6822 2011-05-14 Hui Zhu <teawater@gmail.com>
6824 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6826 2011-05-13 Doug Evans <dje@google.com>
6828 Support $pdir and $sdir in libthread-db-search-path.
6829 * NEWS: Mention $sdir,$pdir.
6830 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6831 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6832 (try_thread_db_load_from_sdir): New function.
6833 (try_thread_db_load_from_dir): New function.
6834 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6835 system directories if search of libthread-db-search-path fails,
6836 that is now done via $sdir.
6837 (has_libpthread): New function.
6838 (thread_db_load): Remove search for libthread_db in directory of
6839 libpthread, that is now done via $pdir.
6841 * NEWS: Mention "info auto-load-scripts".
6842 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6843 script_not_found_warning_printed.
6844 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6845 all callers updated. Initialize script_not_found_warning_printed.
6846 (get_auto_load_pspace_data_for_loading): New function.
6847 (maybe_add_script): New function.
6848 (source_section_scripts): Simplify. Only print one warning regardless
6849 of the number of auto-load scripts not found.
6850 (clear_section_scripts): Clear script_not_found_warning_printed.
6851 (auto_load_objfile_script): Record script in hash table.
6852 (count_matching_scripts): New function.
6853 (maybe_print_script): Renamed from maybe_print_section_script, all
6854 callers updated. Rewrite to use ui_out_*.
6855 (info_auto_load_scripts): Renamed from
6856 maintenance_print_section_scripts, all callers updated.
6857 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6858 renamed as "info auto-load-scripts".
6860 2011-05-13 Tom Tromey <tromey@redhat.com>
6862 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6863 (read_sleb128): Likewise.
6865 2011-05-13 Tom Tromey <tromey@redhat.com>
6867 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6870 2011-05-13 Doug Evans <dje@google.com>
6872 * linux-nat.c (debug_linux_nat_async): Delete.
6873 Replace all references to use debug_linux_nat instead.
6874 (show_debug_linux_nat_async): Delete.
6875 (sigchld_handler): Call ui_file_write_async_safe instead of
6877 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6878 * ui-file.c (struct ui_file): New member to_write_async_safe.
6879 (null_file_write_async_safe): New function.
6880 (ui_file_write_async_safe): New function.
6881 (set_ui_file_write_async_safe): New function.
6882 (ui_file_new): Initialize to_write_async_safe.
6883 (stdio_file_write_async_safe): New function.
6884 (struct stdio_file): New member fd.
6885 (stdio_file_new): Initialize to_write_async_safe, fd.
6886 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6888 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6889 (set_ui_file_write_async_safe): Declare.
6890 (ui_file_write_async_safe): Declare.
6892 2011-05-13 Tom Tromey <tromey@redhat.com>
6894 * utils.c (do_value_free): New function.
6895 (make_cleanup_value_free): Likewise.
6896 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6898 (dwarf2_loc_desc_needs_frame): Call
6899 make_cleanup_value_free_to_mark.
6900 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6901 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6903 (new_dwarf_expr_context): Don't call value_mark.
6904 * dwarf2-frame.c (execute_stack_op): Call
6905 make_cleanup_value_free_to_mark.
6906 * defs.h (make_cleanup_value_free): Declare.
6908 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6910 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6911 prepare_execute_command.
6912 * top.c (prepare_execute_command): Return cleanup.
6913 (execute_command): Use cleanup from prepare_execute_command.
6914 * top.h (prepare_execute_command): Change prototype to return
6916 * defs.h (struct value): Add opaque declaration.
6917 (make_cleanup_value_free_to_mark): Add prototype.
6918 * utils.c (do_value_free_to_mark): New function.
6919 (make_cleanup_value_free_to_mark): Likewise.
6921 2011-05-12 Tom Tromey <tromey@redhat.com>
6923 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6924 cast left-hand-side to unsigned.
6926 2011-05-12 Tom Tromey <tromey@redhat.com>
6929 * value.h (value_from_contents): Declare.
6930 * value.c (value_from_contents): New function.
6931 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6932 (dwarf2_get_die_type): New function.
6933 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6934 (allocate_piece_closure): Acquire reference to values.
6935 (read_pieced_value): Update for value-based expressions.
6936 (write_pieced_value): Likewise.
6937 (free_pieced_value_closure): Call value_free as needed.
6938 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6939 Update for value-based expressions.
6940 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6941 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6942 <get_base_type>: New field.
6943 (struct dwarf_expr_piece) <v.value>: Change type.
6944 <v.regno>: New field.
6945 (struct dwarf_expr_context) <mark>: New field.
6946 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6947 (dwarf_expr_pop, dwarf_expr_push): Remove.
6948 (dwarf_expr_push_address): Declare.
6949 * dwarf2expr.c (dwarf_arch_cookie): New global.
6950 (struct dwarf_gdbarch_types): New.
6951 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6953 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6955 (dwarf_expr_push_address): New function.
6956 (dwarf_expr_pop): Now static.
6957 (dwarf_expr_fetch): Change return type.
6958 (dwarf_require_integral): New function.
6959 (dwarf_expr_fetch): Simplify.
6960 (add_piece): Update.
6961 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6963 (execute_stack_op) <sign_ext>: Remove.
6964 Use values for DWARF stack.
6965 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6966 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6968 (_initialize_dwarf2expr): New function.
6969 (add_piece): Update.
6970 (new_dwarf_expr_context): Set new field.
6971 (free_dwarf_expr_context): Call value_free_to_mark.
6972 * dwarf2-frame.c (no_base_type): New function.
6973 (execute_stack_op): Set get_base_type field. Update.
6975 2011-05-12 Tom Tromey <tromey@redhat.com>
6977 * dwarf2read.c (read_common_block): Fix formatting.
6979 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6981 * breakpoint.c (disable_breakpoint): Disable all locations
6982 associated with a tracepoint on target if a trace experiment is
6984 (disable_command): Disable a specific tracepoint location on target if
6985 a trace experiment is running.
6986 (do_enable_breakpoint): Enable all locations associated with a
6987 tracepoint on target if a trace experiment is running.
6988 (enable_command) Enable a specific tracepoint location on target if a
6989 trace experiment is running.
6990 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6991 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6992 to_disable_tracepoint.
6993 * target.h: Add declaration of struct bp_location.
6994 (struct target_ops): Add new functions
6995 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6996 to_disable_tracepoint to target operations.
6997 (target_supports_enable_disable_tracepoint): New macro.
6998 (target_enable_tracepoint): New macro.
6999 (target_disable_tracepoint): New macro.
7000 * remote.c (struct remote_state): Add new field.
7001 (remote_enable_disable_tracepoint_feature): New.
7002 (remote_protocol_features): Add new entry.
7003 (remote_supports_enable_disable_tracepoint): New.
7004 (remote_enable_tracepoint): New.
7005 (remote_disable_tracepoint): New.
7006 (init_remote_ops): Add remote_enable_tracepoint,
7007 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
7008 to remote operations.
7009 * tracepoint.c (start_tracing): Allow tracing to start without any
7010 tracepoints enabled with just a warning if they can be re-enabled
7012 * NEWS: Add news item for the new behaviour of the enable and disable
7013 GDB commands when applied to tracepoints.
7014 Add news items for the new remote packets QTEnable and QTDisable.
7016 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7018 * config.in: Regenerate.
7019 * configure: Regenerate.
7020 * configure.ac <--with-system-readline> (for readline_echoing_p):
7022 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
7023 (tui_old_rl_echoing_p): ... here.
7024 (tui_setup_io): Rename extern declaration readline_echoing_p to
7025 _rl_echoing_p. Adjust assignments for the both renames.
7027 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
7029 * symtab.c (lookup_symtab): Run cleanup before returning.
7031 2011-05-11 Tom Tromey <tromey@redhat.com>
7033 * dwarf2read.c (handle_data_member_location): New function.
7034 (dwarf2_add_field): Use it.
7035 (read_common_block): Likewise.
7037 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7039 Make addrs->SECTINDEX always defined.
7040 * symfile.c (relative_addr_info_to_section_offsets): Check for
7041 SECTINDEX -1, not for zero ADDR.
7042 (addrs_section_compar): Remove checking for invalid SECTINDEX.
7043 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
7044 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
7047 2011-05-10 Doug Evans <dje@google.com>
7049 * linux-thread-db.c: Whitespace cleanup.
7050 (try_thread_db_load_1): Fix comment.
7052 * linux-thread-db.c (set_libthread_db_search_path): New function.
7053 (_initialize_thread_db): Add setter for libthread-db-search-path.
7055 2011-05-09 Doug Evans <dje@google.com>
7057 * NEWS: Mention --with-iconv-bin.
7058 * configure.ac: New option --with-iconv-bin.
7059 * configure: Regenerate.
7060 * config.in: Regenerate.
7061 * defs.h (relocate_gdb_directory): Declare.
7062 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
7063 removed progname parameter, and exported. All callers updated.
7064 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
7066 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
7067 adding missing call to restore_child_signals_mask.
7069 2011-05-09 Pedro Alves <pedro@codesourcery.com>
7071 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
7073 * infrun.c (proceed, start_remote): Adjust.
7074 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
7075 and adjust to not handle it.
7076 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
7077 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
7078 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
7079 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
7080 * windows-nat.c (do_initial_windows_stuff): Adjust.
7081 * infcmd.c (attach_command): Adjust.
7082 (notice_new_inferior): Adjust.
7084 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7086 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
7087 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
7088 * spu-tdep.c (op_selb): Use correct value.
7090 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
7092 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
7093 "parent" parameter to symbol_file_add_from_bfd call.
7095 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7096 Thiago Jung Bauermann <bauerman@br.ibm.com>
7098 Implement support for PowerPC BookE masked watchpoints.
7099 * NEWS: Mention masked watchpoint support. Create "Changed commands"
7101 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
7102 method. Initialize to NULL in all existing breakpoint_ops instances.
7103 (struct breakpoint) <hw_wp_mask>: New field.
7104 * breakpoint.c (is_masked_watchpoint): Add prototype.
7105 (update_watchpoint): Don't set b->val for masked watchpoints. Call
7106 breakpoint's breakpoint_ops.works_in_software_mode if available.
7107 (watchpoints_triggered): Handle the case of a hardware masked
7109 (watchpoint_check): Likewise.
7110 (works_in_software_mode_watchpoint): New function.
7111 (insert_masked_watchpoint, remove_masked_watchpoint)
7112 (resources_needed_masked_watchpoint)
7113 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
7114 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
7115 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
7117 (masked_watchpoint_breakpoint_ops): New structure.
7118 (watch_command_1): Check for the existence of the `mask' parameter.
7119 Set b->ops according to the type of hardware watchpoint being created.
7120 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
7121 (ppc_linux_remove_mask_watchpoint)
7122 (ppc_linux_masked_watch_num_registers): New functions.
7123 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
7124 to_remove_mask_watchpoint and to_masked_watch_num_registers.
7125 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
7126 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
7127 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
7128 (target_masked_watch_num_registers): New functions.
7129 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
7130 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
7132 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
7133 (target_masked_watch_num_registers): Add prototypes.
7135 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7138 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
7139 (producer_is_gcc_ge_4_0): New function.
7140 (process_full_comp_unit): Set also symtab->locations_valid. Move the
7141 symtab->language code.
7142 (var_decode_location): Set cu->has_loclist.
7143 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
7144 skip. Intialize force_skip from locations_valid. Move the prologue
7145 skipping code into two passes.
7146 * symtab.h (struct symtab): Make the primary field a bitfield. New
7147 field locations_valid.
7149 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7151 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
7152 (classify_inner_name): Call cp_lookup_nested_type with
7154 * cp-namespace.c (cp_lookup_nested_type): New variable
7155 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
7156 type_name_no_tag_or_error with saved_parent_type.
7157 * dwarf2read.c (load_partial_dies): Read in any children of
7158 DW_TAG_typedef with complaint in such case.
7159 * gdbtypes.c (type_name_no_tag_or_error): New function.
7160 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
7161 * valops.c (destructor_name_p): New comment for parameter type. Remove
7162 type const. Make dname and cp const. Call type_name_no_tag_or_error.
7163 * value.h (destructor_name_p): Remove type const.
7165 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7167 * symtab.c (compare_symbol_name): New function.
7168 (completion_list_add_name, expand_partial_symbol_name): Call it,
7169 remove the variable ncmp.
7170 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
7173 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
7175 Demote to sw watchpoint only in update_watchpoint.
7176 * breakpoint.c (update_watchpoint): Change between software and
7177 hardware watchpoint for all kinds of watchpoints, not just
7178 read/write ones. Determine b->exact value here instead of
7179 in watch_command_1. Error out if there are not enough resources
7180 for a read or access hardware watchpoint.
7181 (watch_command_1): Remove logic of checking whether there are
7182 enough resources available, since update_watchpoint will do that
7183 work now. Don't set b->exact here. Catch exceptions thrown by
7184 update_watchpoint and delete the watchpoint.
7185 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
7186 Use target_exact_watchpoints instead.
7187 (delete_breakpoint): Notify observers only if deleted watchpoint
7188 has a breakpoint number assigned to it.
7190 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
7192 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7194 2011-05-05 Jerome Guitton <guitton@adacore.com>
7196 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
7198 (i386_stack_tramp_frame_unwind): New static global.
7199 (i386_match_pattern): New function, extracted from i386_match_insn.
7200 (i386_match_insn): Use i386_match_pattern.
7201 (i386_match_insn_block): New function.
7202 (i386_tramp_chain_in_reg_insns)
7203 (i386_tramp_chain_on_stack_insns): New static variables.
7204 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
7207 2011-05-04 Joseph Myers <joseph@codesourcery.com>
7209 * configure.host (xscale*): Don't handle target.
7210 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
7213 2011-05-04 Yao Qi <yao@codesourcery.com>
7215 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
7217 2011-05-03 Joel Brobecker <brobecker@adacore.com>
7220 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
7221 | * elfread.c (elf_symtab_read): Stop memory leak.
7223 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
7225 * nto-tdep.c (nto_target): Replace deprecated call to
7226 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
7228 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7230 Fix false GCC warning.
7231 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
7233 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
7235 * breakpoint.c (update_watchpoint): Move code to change
7236 the enable state of breakpoint from here ...
7237 (do_enable_breakpoint): ... to here.
7239 2011-04-26 Andrew Gontarek <andrewg@cray.com>
7241 * valprint.c (val_print_array_elements): Fixed poor performance
7242 of printing very large arrays with repeat_count_threshold set
7243 to unlimited. New comment.
7245 2011-04-29 Tom Tromey <tromey@redhat.com>
7247 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
7248 (mi_parse): Likewise.
7249 * breakpoint.c (break_range_command): Use sizeof char*, not
7251 (create_breakpoint): Likewise.
7252 (parse_breakpoint_sals): Likewise.
7254 2011-04-29 Pedro Alves <pedro@codesourcery.com>
7256 * linux-nat.c (linux_child_remove_fork_catchpoint)
7257 (linux_child_remove_vfork_catchpoint)
7258 (linux_child_remove_exec_catchpoint): New functions.
7259 (linux_target_install_ops): Install them.
7261 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
7265 * varobj.c (install_default_visualizer): Do not install a
7266 visualizer if the varobj is CPLUS_FAKE_CHILD.
7267 (construct_visualizer): Likewise.
7269 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7271 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
7272 case insensitive comparison.
7274 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
7276 * infrun.c (proceed): Revert previous change.
7277 (resume): Instead, handle the case of signal delivery while stepping
7278 off a breakpoint location here, and only if software single-stepping
7279 is used. Handle nested signals.
7281 2011-04-28 Yao Qi <yao@codesourcery.com>
7283 * arm-tdep.c (copy_unmodified): Rename to ...
7284 (arm_copy_unmodified): .. this. New.
7285 (copy_preload): Move common part to ...
7286 (install_preload): .. this. New.
7287 (arm_copy_preload): New.
7288 (copy_preload_reg): Move common part to ...
7289 (install_preload_reg): ... this. New.
7290 (arm_copy_preload_reg): New.
7291 (copy_b_bl_blx): Move common part to ...
7292 (install_b_bl_blx): .. this. New.
7293 (arm_copy_b_bl_blx): New.
7294 (copy_bx_blx_reg): Move common part to ...
7295 (install_bx_blx_reg): ... this. New.
7296 (arm_copy_bx_blx_reg): New.
7297 (copy_alu_reg): Move common part to ...
7298 (install_alu_reg): ... this. New.
7299 (arm_copy_alu_reg): New.
7300 (copy_alu_shifted_reg): Move common part to ...
7301 (install_alu_shifted_reg): ... this. New.
7302 (copy_ldr_str_ldrb_strb): Move common part to ...
7303 (install_ldr_str_ldrb_strb): ... this. New.
7304 (arm_copy_ldr_str_ldrb_strb): New.
7305 (copy_copro_load_store): Move some common part to ...
7306 (install_copy_copro_load_store): ... this. New.
7307 (arm_copy_copro_load_store): New.
7309 (arm_copy_svc): Renamed from copy_svc.
7310 (copy_undef): Delete.
7311 (arm_copy_undef): Renamed from copy_undef.
7312 (decode_ext_reg_ld_st): Delete.
7313 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7314 (decode_svc_copro): Delete.
7315 (arm_decode_svc_copro): Renamed from decode_svc_copro.
7316 (copy_copro_load_store, copy_alu_imm): update callers.
7317 (copy_extra_ld_st, copy_block_xfer): Likewise.
7318 (decode_misc_memhint_neon, decode_unconditional): Likewise.
7319 (decode_miscellaneous, decode_dp_misc): Likewise.
7320 (decode_ld_st_word_ubyte, decode_media): Likewise.
7321 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7322 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7323 (decode_unconditional, decode_miscellaneous): Likewise.
7324 (decode_media, decode_b_bl_ldmstm): Likewise.
7325 (arm_process_displaced_insn): Likewise..
7326 (decode_misc_memhint_neon): Delete.
7327 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7328 (decode_miscellaneous): Delete.
7329 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7330 (decode_dp_misc): Delete.
7331 (arm_decode_dp_misc): Renamed from decode_dp_misc.
7332 (decode_ld_st_word_ubyte): Delete.
7333 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7334 (decode_media): Delete.
7335 (arm_decode_media): Renamed from decode_media.
7336 (decode_b_bl_ldmstm): Delete.
7337 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7338 (decode_ext_reg_ld_st): Delete.
7339 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7340 (decode_unconditional): Delete.
7341 (arm_decode_unconditional): Renamed from decode_unconditional.
7343 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7345 Case insensitive lookups implementation.
7346 * dwarf2read.c: Include ctype.h.
7347 (struct mapped_index): New field version.
7348 (mapped_index_string_hash): New parameter index_version. New comment
7349 for it. Call tolower appropriately.
7350 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7351 Choose the right index version for mapped_index_string_hash.
7352 (dwarf2_read_index): Support also the index version 5. Initialize the
7353 new struct mapped_index field version.
7354 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7355 (find_slot): Explain the version needs. Pass INT_MAX for the new
7357 (write_psymtabs_to_index): Produce version 5.
7358 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7359 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
7360 * psymtab.c (lookup_partial_symbol): Find the
7361 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7363 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7365 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7366 (completion_list_add_name): New variable ncmp, initialize it, use it.
7367 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7368 * utils.c (strcmp_iw): Support case_sensitive_off.
7369 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7370 New function comment part. New variables saved_string1,
7371 saved_string2 and case_pass. Add a proper second pass.
7373 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7375 Replace re_comp/re_exec by regcomp/regexec.
7376 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7377 (search_symbols_name_matches): Use them, use regexec.
7378 (search_symbols): New variable retval_chain, adjust the use of
7379 old_chain against it. Replace re_comp by regcomp. Use the new struct
7380 search_symbols_data fields, use regexec instead of re_exec.
7382 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7384 Format the code for the next patch.
7385 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7386 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7387 New variables c1 and c2.
7389 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7391 * infrun.c (proceed): Do not single-step into signal delivery
7392 when stepping off a breakpoint location.
7393 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7394 (insert_step_resume_breakpoint_at_caller): Likewise.
7395 (insert_step_resume_breakpoint_at_sal): Likewise.
7396 (insert_longjmp_resume_breakpoint): Likewise.
7398 2011-04-27 Yao Qi <yao@codesourcery.com>
7400 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7402 2011-04-27 Joel Brobecker <brobecker@adacore.com>
7404 * procfs.c (procfs_pass_signals): Fix advance declaration.
7406 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7408 * target.h (struct target_ops): Remove to_notice_signals;
7409 add to_pass_signals.
7410 (target_notice_signals): Remove.
7411 (target_pass_signals): Add prototype.
7412 * target.c (update_current_target): Remove to_notice_signals;
7413 mention to_pass_signals.
7414 (target_pass_signals): New function.
7415 (debug_to_notice_signals): Remove.
7416 (setup_target_debug): Do not install debug_to_notice_signals.
7418 * infrun.c (signal_pass): New global.
7419 (resume): Call target_pass_signals.
7420 (handle_inferior_event): Report all signals while stepping over
7421 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7422 are re-inserted when stepping over a signal handler.
7423 (signal_cache_update): New function.
7424 (signal_stop_update): Call it.
7425 (signal_print_update): Likewise.
7426 (signal_pass_update): Likewise.
7427 (handle_command): Call signal_cache_update and target_pass_signals
7428 instead of target_notice_signals.
7429 (_initialize_infrun): Initialize signal_pass.
7431 * linux-nat.c (pass_mask): New global.
7432 (linux_nat_pass_signals): New function.
7433 (linux_nat_create_inferior): Report all signals initially.
7434 (linux_nat_attach): Likewise.
7435 (linux_nat_resume): Use pass_mask to decide whether to directly
7436 handle an inferior signal.
7437 (linux_nat_wait_1): Likewise.
7438 (linux_nat_add_target): Install to_pass_signals callback.
7440 * nto-procfs.c (notice_signals): Remove.
7441 (procfs_resume): Do not call notice_signals.
7442 (procfs_notice_signals): Remove.
7443 (procfs_pass_signals): New function.
7444 (init_procfs_ops): Install to_pass_signals callback instead of
7445 to_notice_signals callback.
7446 (_initialize_procfs): Report all signals initially.
7448 * procfs.c (procfs_notice_signals): Remove.
7449 (procfs_pass_signals): New function.
7450 (procfs_target): Install to_pass_signals callback instead of
7451 to_notice_signals callback.
7452 (register_gdb_signals): Remove.
7453 (procfs_debug_inferior): Report all signals initially.
7454 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7456 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7457 parameters; use them instead of calling signal_..._state routines.
7458 (remote_notice_signals): Remove.
7459 (remote_start_remote): Report all signals initially.
7460 (remote_resume): Do not call remote_pass_signals.
7461 (_initialize_remote): Install to_pass_signals callback instead of
7462 to_notice_signals callback.
7464 2011-04-27 Pedro Alves <pedro@codesourcery.com>
7466 * breakpoint.c (user_settable_breakpoint): Delete.
7467 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7468 (delete_command): Check user_breakpoint_p instead of looking at
7469 the breakpoint's type.
7470 (disable_command): Ditto.
7471 (enable_command): Ditto.
7472 (delete_trace_command): Use user_breakpoint_p instead of looking
7473 at the breakpoint number directly. When checking if there are
7474 user visible tracepoints, in order to know whether to ask the user
7475 for confirmation, check whether the breakpoint is actually a
7478 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7480 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7483 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7485 MI breakpoint notifications.
7487 * annotate.c (breakpoint_changed): Adjust parameter type.
7488 * breakpoint.c (set_breakpoint_condition): Adjust to change
7489 in breakpoint_modified type.
7490 (breakpoint_set_commands): Likewise.
7491 (do_map_commands_command): Likewise.
7492 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7493 changed after bumping hit count.
7494 (bpstat_stop_status): Likewise.
7495 (print_one_breakpoint_location): Don't wrap in tuple here.
7496 (print_one_breakpoint): Always print individual locations.
7497 For locations, use unnamed tuple.
7498 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7500 (create_catchpoint, create_syscall_event_catchpoint): Call
7501 breakpoint_created obsever.
7502 (mention): Don't call breakpoint_created observer.
7503 (create_breakpoint_sal): Call breakpoint_created observer.
7504 (create_breakpoint, watch_command_1): Likewise.
7505 (create_ada_exception_breakpoint): Likewise.
7506 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7507 (locations_are_equal): New.
7508 (update_breakpoint_locations): If locations were changed, notify.
7509 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7510 Call breakpoint_modified observer.
7512 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7513 (mi_cmd_break_insert): Don't set observers for modify and delete.
7514 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7515 (mi_breakpoint_created, mi_breakpoint_deleted)
7516 (mi_breakpoint_modified): New.
7517 (mi_interpreter_init): Hook the above.
7518 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7519 while -break-* commands are executing.
7520 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7521 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7523 (mi_ui_out_impl): Hook in mi_redirect.
7524 (mi_field_skip): True to the name, skip the field, don't output
7525 a field with an empty value.
7527 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7528 (gdbpy_breakpoint_deleted): Adjust.
7529 * tui/tui-hooks.c (tui_event_create_breakpoint)
7530 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7532 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7534 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7535 (procfs_remove_hw_watchpoint): Likewise.
7537 2011-04-26 Michael Walle <michael@walle.cc>
7539 * remote.c (remote_start_remote): Ack packet after sending the
7542 2011-04-26 Yao Qi <yao@codesourcery.com>
7544 * linux-nat.c: Move common macros to ...
7545 Include linux-ptrace.h.
7546 * common/linux-ptrace.h: ... here. New.
7548 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7550 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7551 !objfile_has_partial_symbols. New comment.
7552 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7553 SYM_READ_PSYMBOLS is not present. Extend the comment.
7554 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7556 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7558 * defs.h (ENUM_BITFIELD): Remove.
7560 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7561 Eli Zaretskii <eliz@gnu.org>
7563 * NEWS: Document the new gdbserver --once option.
7565 2011-04-21 Jie Zhang <jzhang918@gmail.com>
7567 * MAINTAINERS: Update my email address.
7569 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7571 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7572 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7573 function call if __STDC_ISO_10646__ macro is defined.
7574 (intermediate_encoding): New prototype.
7575 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7576 to generate compile time error for unsupported gdb_wchar_t size.
7577 (ENDIAN_SUFFIX): New macro.
7578 (intermediate_encoding): New function.
7580 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7582 * ada-lang.c (struct add_partial_datum): Update the comment for
7583 expand_partial_symbol_name.
7584 (ada_add_partial_symbol_completions): Rename to ...
7585 (ada_expand_partial_symbol_name): ... here, change return type, update
7586 function comment, call symbol_completion_match instead of
7587 symbol_completion_add.
7588 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7589 and ada_expand_partial_symbol_name.
7590 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7592 (dw2_map_symbol_names): Remove.
7593 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7594 * psymtab.c (map_symbol_names_psymtab): Remove.
7595 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7596 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7598 (psym_functions): Unlist map_symbol_names_psymtab.
7599 (map_partial_symbol_names): Rename to ...
7600 (expand_partial_symbol_names): ... here, change the FUN type, call
7601 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7602 * psymtab.h (map_partial_symbol_names): Rename to ...
7603 (expand_partial_symbol_names): ... here, change the FUN type.
7604 * symfile.h (struct quick_symbol_functions): Update the description of
7605 expand_symtabs_matching. Remove map_symbol_names.
7606 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7607 (struct add_name_data): Update the comment for
7608 expand_partial_symbol_name.
7609 (add_partial_symbol_name): Rename to ...
7610 (expand_partial_symbol_name): ... here. Replace
7611 completion_list_add_name call by strncmp.
7612 (default_make_symbol_completion_list_break_on): Use now
7613 expand_partial_symbol_names and expand_partial_symbol_name.
7614 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7616 2011-04-20 Tom Tromey <tromey@redhat.com>
7618 * dwarf2read.c (save_gdb_index_command): Replace format
7619 documentation with a pointer to the manual.
7621 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7623 * regcache.c: Include remote.h.
7624 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7625 (regcache_dump): Handle regcache_dump_remote.
7626 (maintenance_print_remote_registers): New function.
7627 (_initialize_regcache): Install "maint print remote-registers"
7629 * remote.c (map_regcache_remote_table): New function, factored out
7631 (init_remote_state): ... here.
7632 (remote_register_number_and_offset): New.
7633 * remote.h (remote_register_number_and_offset): Declare.
7635 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7637 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7638 null_ptid, assume and allow a NULL address space, instead of
7639 asking the target for the ptid's address space.
7640 * infrun.c (ptid_is_pid): Remove assertion.
7642 2011-04-19 Tom Tromey <tromey@redhat.com>
7644 * windows-tdep.c (windows_xfer_shared_library):
7645 * windows-nat.c (get_module_name, windows_make_so):
7646 * v850-tdep.c (v850_handle_pushm):
7647 * utils.c (null_cleanup, gdb_realpath):
7648 * ui-out.c (get_next_header):
7649 * tracepoint.c (clear_traceframe_info):
7650 * symtab.c (lookup_symtab):
7651 * serial.h (struct serial_ops):
7652 * mipsread.c (read_alphacoff_dynamic_symtab):
7653 * infcmd.c (print_return_value):
7654 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7655 * f-exp.y (parse_number):
7656 * exceptions.c (catch_exceptions):
7657 * dummy-frame.c (dummy_frame_this_id):
7658 * defs.h (struct cleanup):
7659 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7660 * arm-tdep.c (arm_push_dummy_call):
7661 * amd64-tdep.h (amd64_collect_xsave):
7662 * amd64-tdep.c (amd64_collect_xsave):
7663 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7664 * README (typing): Remove duplicate words.
7665 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7666 * infrun.c (siginfo_value_read): Fix typo.
7667 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7668 * top.c (source_line_number): Add comma.
7670 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7672 * thread.c (any_live_thread_of_process): Prioritize threads
7673 that are not executing.
7674 * gdbthread.h (any_live_thread_of_process): Update comment
7675 as per above change.
7677 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7679 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7680 (scan_xcoff_symtab): Likewise.
7682 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7684 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7687 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7688 Pedro Alves <pedro@codesourcery.com>
7690 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7691 variables to simplify code and avoid == operator at end of
7692 line as this is against GNU coding standards.
7694 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7696 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7697 lm_name to name_lm to avoid conflict with lm_name function.
7699 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7701 ARI fixes: Use only lowercase function name for static functions.
7702 * nto-tdep.c (LM_ADDR): Rename to...
7703 (lm_addr): New function name.
7704 (nto_relocate_section_addresses): Adapt to change above.
7705 * solib-sunos.c (LM_ADDR): Rename to...
7706 (lm_addr): New function name.
7707 (LM_NEXT): Rename to...
7708 (lm_next): New function name.
7709 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7710 function name changes above.
7711 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7712 (lm_addr_from_link_map): New function name.
7713 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7714 (has_lm_dynamic_from_link_map): New function name.
7715 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7716 (lm_dynamic_from_link_map): New function name.
7717 (LM_ADDR_CHECK): Rename to...
7718 (lm_addr_check): New function name.
7719 (LM_NEXT): Rename to...
7720 (lm_next): New function name.
7721 (LM_PREV): Rename to...
7722 (lm_prev): New function name.
7723 (LM_NAME): Rename to...
7724 (lm_name): New function name.
7725 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7726 (ignore_first_link_map_entry): New function name.
7727 (svr4_keep_data_in_core): Adapt to function name changes above.
7728 (svr4_current_sos): Likewise.
7729 (enable_break): Likewise.
7730 (svr4_relocate_section_addresses): Likewise.
7732 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7735 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7736 sprintf. Simplify code and avoid loosing memory.
7737 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7738 (call0_frame_cache): Remove && operator from end of line.
7740 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7742 Fix libraries displacement if they change whether they were prelinked.
7743 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7744 does not match. Comment why.
7746 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7748 * corelow.c: Include wrapper.h.
7749 (core_open): Call now gdb_target_find_new_threads.
7750 * wrapper.c: Include target.h.
7751 (gdb_target_find_new_threads): New.
7752 * wrapper.h (gdb_target_find_new_threads): New declaration.
7754 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7756 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7757 even if !TARGET_HAS_EXECUTION.
7759 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7761 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7762 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7763 bfd_get_synthetic_symtab.
7764 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7765 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7766 parameter parent, remove the call to add_separate_debug_objfile.
7767 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7768 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7769 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7770 parent, new comment for it, call add_separate_debug_objfile for it.
7771 (symbol_file_add_separate): Pass objfile as the parameter parent,
7772 remove the call to add_separate_debug_objfile.
7773 (symbol_file_add_from_bfd): New parameter parent, pass it.
7774 (symbol_file_add): Pass NULL to the new parameter parent.
7775 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7777 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7779 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7782 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7784 Fix Python access to inlined frames.
7785 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7786 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7788 2011-04-15 Tom Tromey <tromey@redhat.com>
7790 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7792 2011-04-15 Gary Benson <gbenson@redhat.com>
7794 * MAINTAINERS: Add myself to write-after-approval section.
7796 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7798 * remote-sim.c (sim_command_completer): New function.
7799 (_initialize_remote_sim): Set completer to sim_command_completer.
7801 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7803 * breakpoint.c (print_exception_catchpoint): Rename to ...
7804 (print_it_exception_catchpoint): ... this.
7805 (gnu_v3_exception_catchpoint_ops): Update with new name
7806 for print_it_exception_catchpoint.
7808 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7810 * MAINTAINERS: Add myself for write after approval privileges.
7812 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7814 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7816 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7818 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7820 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7822 * breakpoint.c (save_breakpoints): Verify whether
7823 breakpoint_ops.print_recreate is defined before calling it.
7825 2011-04-11 Gary Benson <gbenson@redhat.com>
7827 Fix failure with --enable-maintainer-mode.
7828 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7830 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7833 * symtab.c (search_symbols): Reorder the KIND description in the
7834 function comment. Remove the unused 4th element of types, types2,
7835 types3 and types4. New gdb_assert on KIND.
7836 (symtab_symbol_info): Remove the unused 4th element of classnames.
7837 New gdb_assert on KIND.
7838 * symtab.h (enum search_domain): New warning in the enum comment.
7839 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7842 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7844 Fix crash of gdb save-index on a STABS file.
7845 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7848 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7850 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7851 * dwarf2read.c: Include ctype.h.
7852 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7854 (dwarf2_add_field): Fix new_field->accessibility by calling
7855 dwarf2_default_access_attribute. Restructure setting accessibility
7857 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7858 is_private and is_protected by calling
7859 dwarf2_default_access_attribute.
7861 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7863 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7864 to the initialization.
7866 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7868 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7871 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7873 Remove support for old Cygwin 1.5 versions.
7874 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7875 function on old Cygwin version.
7876 * windows-nat.c: Remove cygwin version check and always define
7877 __USEWIDE for Cygwin compilation.
7879 2011-04-07 Yao Qi <yao@codesourcery.com>
7881 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7883 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7884 (arm_copy_svc): Remove parameters INSN and TO.
7885 (decode_svc_copro): Update caller.
7886 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7887 from function pointer `copy_svc_os'.
7889 2011-04-07 Yao Qi <yao@codesourcery.com>
7891 * arm-tdep.c (cleanup_branch): Set a correct return address in
7892 LR for ARM and Thumb.
7894 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7897 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7898 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7899 in the function comment, a new note on values compatibility.
7900 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7901 * symtab.h (SYMBOL_HASH_NEXT): New.
7903 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7905 * ppc-linux-nat.c (check_condition): Add len output parameter.
7906 Set it based on the memory region referenced in the condition
7907 expression. Update all callers.
7909 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7911 Fix crash regression on systems featuring .gdb_index.
7912 * objfiles.c (free_objfile): Move the
7913 forget_cached_source_info_for_objfile call earlier. Comment it.
7914 Extend the comment for objfile_free_data.
7916 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7918 Fix regression of displaying the debug format.
7919 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7922 2011-04-04 Tom Tromey <tromey@redhat.com>
7924 * cli/cli-interp.c (struct captured_execute_command_args):
7926 (do_captured_execute_command): Remove.
7927 (safe_execute_command): Use TRY_CATCH.
7928 * cli/cli-script.c (struct wrapped_read_command_file_args):
7930 (wrapped_read_command_file): Remove.
7931 (script_from_file): Use TRY_CATCH.
7932 * exceptions.c (catch_exception): Remove.
7933 * exceptions.h (catch_exception): Remove.
7934 (deprecated_throw_reason): Update comment.
7935 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7936 argument to 'context'.
7937 (mi_execute_command): Use TRY_CATCH.
7938 * remote.c (struct start_remote_args): Remove.
7939 (remote_start_remote): Update; change arguments.
7940 (remote_open_1): Use TRY_CATCH.
7942 2011-04-04 Tom Tromey <tromey@redhat.com>
7944 * tracepoint.c (scope_info): Update.
7945 * symtab.c (decode_line_spec): Update.
7946 * python/python.c (gdbpy_decode_line): Update.
7947 * linespec.h (decode_line_1): Update.
7948 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7949 (decode_compound, find_method, symtab_from_filename)
7950 (decode_variable): Likewise.
7951 * cli/cli-cmds.c (edit_command): Update.
7952 (list_command): Update.
7953 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7955 (create_breakpoint): Update.
7956 (until_break_command): Update.
7957 (addr_string_to_sals): Update.
7958 (decode_line_spec_1): Update.
7960 2011-04-04 Tom Tromey <tromey@redhat.com>
7962 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7963 (do_captured_parse_breakpoint): Remove.
7964 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7965 Use TRY_CATCH directly.
7967 2011-04-04 Tom Tromey <tromey@redhat.com>
7969 * symtab.h (free_symtab): Remove.
7970 (forget_cached_source_info_for_objfile): Declare.
7971 * symmisc.c (free_symtab): Remove.
7972 * source.c (forget_cached_source_info_for_objfile): New function.
7973 (forget_cached_source_info): Use it.
7974 * objfiles.c (free_objfile): Simplify check before calling
7975 clear_current_source_symtab_and_line. Call
7976 forget_cached_source_info_for_objfile.
7978 2011-04-04 Tom Tromey <tromey@redhat.com>
7980 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7981 (new_symtab): Don't set `free_code' on symtab.
7982 (new_linetable): Properly handle size==0.
7983 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7984 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7986 * jv-lang.c (struct jv_per_objfile_data): New.
7987 (jv_per_objfile_free): Free the data.
7988 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7989 (get_java_class_symtab): Set the `dict' field on the
7990 jv_per_objfile_data.
7991 (free_class_block): Remove.
7992 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7995 2011-04-04 Tom Tromey <tromey@redhat.com>
7997 * symfile.c (reread_symbols): Update.
7998 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
8000 * objfiles.c (allocate_objfile): Update.
8001 * cp-support.h (cp_check_possible_namespace_symbols): Don't
8003 * cp-namespace.c (lookup_symbol_file): Don't call
8004 lookup_possible_namespace_symbol.
8005 (initialize_namespace_symtab, get_possible_namespace_block)
8006 (free_namespace_block, cp_check_possible_namespace_symbols)
8007 (check_possible_namespace_symbols_loop)
8008 (check_one_possible_namespace_symbol)
8009 (lookup_possible_namespace_symbol): Remove.
8010 (maintenance_cplus_namespace): Replace with notice.
8011 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
8013 2011-04-04 Tom Tromey <tromey@redhat.com>
8015 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
8016 * symtab.h (struct symtab) <producer, debugformat>: Now const.
8017 * symmisc.c (free_symtab): Don't free debugformat.
8018 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
8019 (record_debugformat, record_producer): Document.
8020 * buildsym.c (end_symtab): Don't save debugformat and producer
8022 (end_symtab): Don't free debugformat and producer fields.
8023 (record_debugformat): Don't call xstrdup.
8024 (record_producer): Likewise.
8026 2011-04-04 Tom Tromey <tromey@redhat.com>
8028 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
8029 (source_line_charpos, source_charpos_line): Remove.
8031 2011-04-04 Tom Tromey <tromey@redhat.com>
8033 * symtab.h (domain_enum): Split in two...
8034 (enum search_domain): New.
8035 (search_symbols): Update.
8036 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
8037 redundant declarations.
8038 (search_symbols): Change 'kind' argument to search_domain.
8040 (print_symbol_info): Likewise.
8041 (symtab_symbol_info): Likewise.
8042 * symfile.h (struct quick_symbol_functions)
8043 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
8044 <expand_symtabs_matching>: Likewise.
8045 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
8046 (expand_symtabs_matching_via_partial): Update.
8047 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
8048 (dw2_expand_symtabs_for_function): Update.
8049 * block.h: Moved anonymous enum...
8050 * defs.h (enum block_enum): ... here. Now named.
8052 2011-04-03 Joel Brobecker <brobecker@adacore.com>
8054 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
8055 * version.in: Bump version to 7.3.50.20110403-cvs.
8057 2011-04-03 Joel Brobecker <brobecker@adacore.com>
8059 * NEWS: Create a new section for the next release branch.
8060 Rename the section of the current branch, now that it has
8063 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8065 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
8066 for "fpscr" in target description.
8068 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8070 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
8071 initialize it. Delay HASH initialization. Strip the part after open
8072 parenthesis for languages with qualifiers. Call do_cleanups.
8074 2011-04-01 Tom Tromey <tromey@redhat.com>
8076 * utils.c (report_command_stats): Don't print `-' for negative
8079 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
8081 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
8082 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
8085 2011-04-01 Joel Brobecker <brobecker@adacore.com>
8087 * breakpoint.h (bpdisp_text): Add declaration.
8088 * breakpoint.c (bpdisp_text): Make non-static.
8089 * ada-lang.c: #include "mi/mi-common.h".
8090 (print_it_exception): Rewrite to improve GDB/MI output.
8092 2011-04-01 Pedro Alves <pedro@codesourcery.com>
8094 * arm-tdep.h (struct address_space): Add forward declaration.
8096 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
8098 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
8099 * arm-tdep.c (arm_override_mode): New global.
8100 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
8101 execution mode heuristics.
8102 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
8103 second single-step breakpoint if needed, using
8104 arm_insert_single_step_breakpoint.
8105 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
8106 ARM execution mode, do not call thumb_get_next_pc_raw.
8107 (arm_get_next_pc): Encode execution mode in return value. Call
8108 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
8109 (arm_insert_single_step_breakpoint): New function.
8110 (arm_software_single_step): Call it.
8111 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
8112 argument to return execution mode of sigreturn target.
8113 (arm_linux_syscall_next_pc): Use it.
8114 (arm_linux_copy_svc): Update call.
8115 (arm_linux_software_single_step): Call
8116 arm_insert_single_step_breakpoint.
8118 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
8120 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
8123 2011-03-31 Tom Tromey <tromey@redhat.com>
8125 * varobj.c (update_dynamic_varobj_children): Properly handle
8126 errors from iterator.
8128 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
8130 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
8131 struct linkage name twice.
8133 2011-03-31 Tom Tromey <tromey@redhat.com>
8135 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
8136 missing ">" to message.
8138 2011-03-31 Tom Tromey <tromey@redhat.com>
8140 * varobj.c (instantiate_pretty_printer): Remove duplicate
8143 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
8145 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
8146 if neither saved value nor register available (e.g. signal frame).
8148 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8150 * macroexp.c (expand): Avoid uninitialized variable
8153 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8155 * breakpoint.c (break_range_command): Fix typo in comment.
8157 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
8158 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
8160 Implement support for PowerPC BookE ranged breakpoints.
8161 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
8162 * breakpoint.h (struct bp_target_info) <length>: New member
8164 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
8165 instead of struct breakpoint as argument, and also add ASPACE
8166 and BP_ADDR arguments. Update all callers.
8167 (struct breakpoint_ops) <print_one_detail>: New method.
8168 (struct breakpoint) <addr_string_range_end>: New member variable.
8169 * breakpoint.c (breakpoint_location_address_match): Add function
8171 (insert_bp_location): Set bl->target_info.length.
8172 (breakpoint_here_p): Call breakpoint_location_address_match.
8173 (moribund_breakpoint_here_p): Likewise.
8174 (regular_breakpoint_inserted_here_p): Likewise.
8175 (breakpoint_thread_match): Likewise.
8176 (bpstat_stop_status): Likewise.
8177 (bpstat_check_location): Move call to
8178 breakpoint_ops.breakpoint_hit to the top.
8179 (print_one_breakpoint_location): Call
8180 breakpoint_ops.print_one_detail if available.
8181 (breakpoint_address_match_range): New function.
8182 (breakpoint_location_address_match): Likewise.
8183 (breakpoint_locations_match): Compare the length field of the
8185 (hw_breakpoint_used_count): Count resources used by all locations
8186 in a breakpoint, and use breakpoint_ops.resources_needed if
8188 (breakpoint_hit_ranged_breakpoint): New function.
8189 (resources_needed_ranged_breakpoint): Likewise.
8190 (print_it_ranged_breakpoint): Likewise.
8191 (print_one_ranged_breakpoint): Likewise.
8192 (print_one_detail_ranged_breakpoint): Likewise.
8193 (print_mention_ranged_breakpoint): Likewise.
8194 (print_recreate_ranged_breakpoint): Likewise.
8195 (ranged_breakpoint_ops): New structure.
8196 (find_breakpoint_range_end): New function.
8197 (break_range_command): Likewise.
8198 (delete_breakpoint): Free addr_string_range_end.
8199 (update_breakpoint_locations): Add SALS_END argument. Update
8200 all callers. Calculate breakpoint length if a non-zero SALS_END
8201 is given. Call breakpoint_locations_match instead of
8202 breakpoint_address_match.
8203 (reset_breakpoint): Find SaL of the end of the range if B is a
8205 (_initialize_breakpoint): Register break-range command.
8206 * defs.h (print_core_address): Add function prototype.
8207 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
8209 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
8210 (ppc_linux_remove_hw_breakpoint): Likewise.
8211 (_initialize_ppc_linux_nat): Initialize
8212 to_ranged_break_num_registers.
8213 * target.c (update_current_target): Add comment about
8214 to_ranged_break_num_registers.
8215 (target_ranged_break_num_registers): New function.
8216 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8218 (target_ranged_break_num_registers): Add function prototype.
8219 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
8220 * utils.c (print_core_address): ... here.
8222 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
8224 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
8225 variable compiler warning.
8227 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
8229 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
8231 (re_set_breakpoint): ... to here ...
8232 (addr_string_to_sals): ... and here.
8234 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
8236 * Makefile.in (SFILES): Add missing C sources.
8237 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
8238 Add missing headers.
8240 2011-03-29 Mike Frysinger <vapier@gentoo.org>
8242 * .gitignore: New file.
8244 2011-03-29 Mike Frysinger <vapier@gentoo.org>
8246 * NEWS: Mention new cfi device simulation.
8248 2011-03-29 Tom Tromey <tromey@redhat.com>
8250 * dwarf2read.c (fixup_partial_die): Handle linkage name on
8251 otherwise anonymous types.
8252 (dwarf2_name): Likewise.
8253 * valops.c (value_struct_elt_for_reference): Refine artificial
8254 type logic. Call error if j==-1.
8256 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
8258 Fix false GCC warning.
8259 * infcall.c (find_function_addr): Initialize funaddr.
8261 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
8263 Fix mingw compilation with --enable-targets=all.
8264 * remote-mips.c (gdb_usleep.h): Include header.
8265 (mips_enter_debug): Use gdb_usleep instead of sleep.
8267 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8269 Support resolution of STT_GNU_IFUNC via breakpoints.
8270 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
8271 bp_gnu_ifunc_resolver_return.
8272 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
8273 the loop. Support bp_gnu_ifunc_resolver and
8274 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
8275 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
8277 (bptype_string, print_one_breakpoint_location): Support
8278 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
8279 (user_settable_breakpoint): Return true also for
8280 bp_gnu_ifunc_resolver.
8281 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
8282 bp_gnu_ifunc_resolver_return.
8283 (set_breakpoint_location_function): New parameter explicit_loc,
8284 describe it. Call find_pc_partial_function_gnu_ifunc with new
8285 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
8286 EXPLICIT_LOC is not set.
8287 (set_raw_breakpoint): Set EXPLICIT_LOC for
8288 set_breakpoint_location_function.
8289 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
8290 set_breakpoint_location_function.
8291 (mention): Support bp_gnu_ifunc_resolver and
8292 bp_gnu_ifunc_resolver_return.
8293 (add_location_to_breakpoint): Set EXPLICIT_LOC for
8294 set_breakpoint_location_function.
8295 (update_breakpoint_locations): Remove static.
8296 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
8297 bp_gnu_ifunc_resolver_return.
8298 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
8299 bp_gnu_ifunc_resolver_return.
8300 (update_breakpoint_locations): New declaration.
8301 * elfread.c: Include gdbthread.h and regcache.h.
8302 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8304 (elf_gnu_ifunc_fns): Install them.
8305 * minsyms.c (stub_gnu_ifunc_resolver_stop)
8306 (stub_gnu_ifunc_resolver_return_stop): New functions.
8307 (stub_gnu_ifunc_fns): Install them.
8308 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8309 and gnu_ifunc_resolver_return_stop.
8310 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8312 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8314 STT_GNU_IFUNC reader implementation.
8315 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8316 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8317 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8318 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8319 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8320 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8321 (elf_gnu_ifunc_resolve_addr): New.
8322 (elf_symfile_read): Call elf_rel_plt_read.
8323 (elf_gnu_ifunc_fns): New.
8324 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8325 Install elf_gnu_ifunc_fns.
8326 * infcall.c (find_function_return_type): New function.
8327 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8328 * minsyms.c (stub_gnu_ifunc_resolve_addr)
8329 (stub_gnu_ifunc_resolve_name): New functions.
8330 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8331 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8332 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8334 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8336 Code cleanup for later STT_GNU_IFUNC support.
8337 * infcall.c (find_function_addr): Remove variable code, use explicit
8338 dereferences for it. Move VALUE_TYPE initialization later.
8340 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8342 GDB find_pc_partial_function support for STT_GNU_IFUNC.
8343 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8344 (clear_pc_function_cache): Clear it.
8345 (find_pc_partial_function): Rename to ...
8346 (find_pc_partial_function_gnu_ifunc): ... this function. New
8347 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
8348 (find_pc_partial_function): New wrapper for this function.
8349 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8351 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8353 GDB internal type support for STT_GNU_IFUNC.
8354 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8355 (elf_symtab_read): Set mst_text_gnu_ifunc for
8356 BSF_GNU_INDIRECT_FUNCTION.
8357 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8358 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8359 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8360 nodebug_got_plt_symbol.
8361 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8362 (TYPE_GNU_IFUNC): New.
8363 (struct main_type): New field flag_gnu_ifunc.
8364 (struct builtin_type): New field builtin_func_func.
8365 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8366 nodebug_got_plt_symbol.
8367 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8368 (in_gnu_ifunc_stub): New.
8369 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8371 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
8372 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
8373 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8375 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8376 * symtab.c (search_symbols): Likewise.
8377 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8378 and mst_slot_got_plt.
8379 (in_gnu_ifunc_stub): New declaration.
8381 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8383 Support a ring of related breakpoints.
8384 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8385 other functions, add gdb_assert.
8386 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8387 watchpoint_del_at_next_stop.
8388 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8389 (bpstat_stop_status): Handle ring in related_breakpoint.
8390 (set_raw_breakpoint_without_location): Initialize ring in
8392 (delete_breakpoint): Handle ring in related_breakpoint, use
8393 watchpoint_del_at_next_stop.
8394 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8396 2011-03-28 Tom Tromey <tromey@redhat.com>
8399 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8400 with `language_minimal'.
8402 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8404 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8405 instead of checking for STT_ARM_TFUNC symbol type.
8407 2011-03-25 Tom Tromey <tromey@redhat.com>
8409 * linespec.c (symbol_found): Restore line-based result for
8410 non-LOC_LABEL symbols.
8412 2011-03-25 Kai Tietz <ktietz@redhat.com>
8414 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8415 instead of strcmp for comparison.
8416 (tui_source_is_displayed): Likewise.
8417 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8419 2011-03-24 Mark Wielaard <mjw@redhat.com>
8421 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8423 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8424 (find_partial_die_in_comp_unit): Likewise in comment.
8425 (read_attribute_value): Likewise.
8426 (lookup_die_type): Likewise.
8427 (dwarf_form_name): Likewise.
8428 (dump_die_shallow): Likewise.
8429 (follow_die_ref_or_sig): Likewise.
8431 2011-03-24 Tom Tromey <tromey@redhat.com>
8433 PR breakpoints/11816:
8434 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8435 (decode_compound): Update.
8436 (find_function_symbol): New function.
8437 (decode_dollar): Update.
8438 (decode_label): Add 'function_symbol' parameter. Handle
8439 function-relative labels.
8440 (decode_variable): Update.
8441 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8442 not its line. Set `special_display' and canonical name for
8445 2011-03-24 Tom Tromey <tromey@redhat.com>
8447 * linespec.h (struct linespec_result) <special_display>: New
8449 * breakpoint.h (struct breakpoint) <display_canonical>: New
8451 * breakpoint.c (print_breakpoint_location): Respect
8453 (create_breakpoint_sal): Add 'display_canonical' parameter.
8454 (create_breakpoints_sal): Update.
8455 (create_breakpoint): Update.
8457 2011-03-24 Tom Tromey <tromey@redhat.com>
8459 * symtab.c (decode_line_spec): Update.
8460 * linespec.c (build_canonical_line_spec): Change type of
8462 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8463 (find_method, decode_all_digits, decode_dollar, decode_label)
8464 (symbol_found): Likewise.
8465 (init_linespec_result): New function.
8466 * breakpoint.c (struct captured_parse_breakpoint_args)
8467 <canonical_p>: New field, replaces addr_string_p.
8468 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8470 (parse_breakpoint_sals): Likewise.
8471 (do_captured_parse_breakpoint): Update.
8472 (create_breakpoint): Use struct linespec_result.
8473 (until_break_command): Update.
8474 (breakpoint_re_set_one): Update.
8475 (decode_line_spec_1): Update.
8476 * linespec.h (struct linespec_result): New.
8477 (init_linespec_result): Declare.
8479 2011-03-23 Pedro Alves <pedro@codesourcery.com>
8481 * regcache.c (regcache_raw_read): If the target didn't supply a
8482 given raw register, mark it as unavailable.
8484 2011-03-23 Kai Tietz <ktietz@redhat.com>
8486 * breakpoint.c (clear_command): Use filename_cmp
8487 instead of strcmp for comparison.
8488 * buildsym.c (watch_main_source_file_lossage): Likewise.
8489 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8490 checking just for slash.
8491 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8492 strrchr and filename_cmp instead of strcmp for filenames.
8493 (add_old_header_file): Use filename_cmp
8494 instead of strcmp for comparison.
8495 * exec.c (exec_set_section_address): Likewise.
8496 * macrotab.c (macro_lookup_inclusion): Likewise.
8497 (macro_lookup_inclusion): Likewise.
8498 * elfread.c (_initialize_elfread): Likewise.
8499 (elfstab_offset_sections): Likewise.
8500 (elfstab_offset_sections): Use lbasename instead of
8502 * mdebugread.c (parse_partial_symbols): Likewise.
8503 (arse_partial_symbols): Use filename_(n)cmp instead of
8504 str(n)cmp for comparison.
8505 * minsyms.c (lookup_minimal_symbol): Likewise.
8506 * psymtab.c (read_psymtabs_with_filename): Likewise.
8507 * solib.c (solib_read_symbols): Likewise.
8508 (reload_shared_libraries_1): Likewise.
8509 * symmisc.c (maintenance_print_symbols): Likewise.
8510 * symfile.c (separate_debug_file_exists): Likewise.
8511 (reread_symbols): Likewise.
8512 (find_separate_debug_file_by_debuglink): Likewise.
8513 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8514 * source.c (add_path): Likewise.
8515 * symtab.c (filename_seen): Likewise.
8516 (file_matches): Likewise.
8517 (print_symbol_info): Likewise.
8518 (maybe_add_partial_symtab_filename): Likewise.
8519 (make_source_files_completion_list): Likewise.
8520 * xml-syscall.c (init_sysinfo): Likewise.
8521 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8522 IS_DIR_SEPARATOR for checking for trailing path separator.
8524 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8526 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8527 label abort_expression.
8528 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8529 DWARF_VALUE_OPTIMIZED_OUT.
8531 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8534 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8535 to linkage_name. Invert its value. Update the function comment.
8536 (c_type_print_varspec_suffix): Invert it at the caller.
8537 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8539 2011-03-22 Pedro Alves <pedro@codesourcery.com>
8541 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8542 errors when reading the `stop_pc'.
8543 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8546 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8548 * NEWS: Document gdb.Write stream keyword.
8550 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8553 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8554 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8555 (dwarf2_add_field): Fix new_field->accessibility for
8556 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8558 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8562 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8563 other error classes. Do not print stack trace.
8565 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8567 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8568 (dwarf2_add_field): Fix new_field->accessibility for
8569 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8571 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8573 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8574 encountering a load via a non-SP register.
8576 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8578 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8579 field in returned unwinder.
8581 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8583 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8585 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8587 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8590 2012-03-18 Pedro Alves <pedro@codesourcery.com>
8592 * frame.c (frame_unwind_register): Throw an error if unwinding the
8594 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8595 an unwind stop reason.
8596 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8597 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8598 UNWIND_UNAVAILABLE>: New.
8599 * inline-frame.c (inline_frame_unwind): Install
8600 default_frame_unwind_stop_reason.
8601 * frame-unwind.c: Include "exceptions.h".
8602 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8603 (default_frame_unwind_stop_reason): New.
8604 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8605 (default_frame_unwind_stop_reason): Declare.
8606 (struct frame_unwind) <stop_reason>: New function pointer.
8608 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8609 * dwarf2-frame.c: Include exceptions.h.
8610 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8611 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8612 computing the CFA. If such an error was thrown, set
8613 unavailable_retaddr.
8614 (dwarf2_frame_unwind_stop_reason): New.
8615 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8617 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8618 (dwarf2_signal_frame_unwind): Ditto.
8620 * amd64-tdep.c: Include "exceptions.h".
8621 (struct amd64_frame_cache): New field "base_p".
8622 (amd64_init_frame_cache): Clear it.
8623 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8624 Avoid reading registers with functions that throw if the register
8625 is not necessary to compute the frame base.
8626 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8627 swallowing NOT_AVAILABLE_ERROR.
8628 (amd64_frame_unwind_stop_reason): New.
8629 (amd64_frame_this_id): Don't build a frame id if the frame base
8631 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8632 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8633 base_p if the frame base was computable.
8634 (amd64_sigtramp_frame_unwind_stop_reason): New.
8635 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8636 frame base was unavailable.
8637 (amd64_sigtramp_frame_unwind): Install
8638 amd64_sigtramp_frame_unwind_stop_reason.
8639 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8640 base_p if the frame base was computable.
8641 (amd64_epilogue_frame_unwind_stop_reason): New.
8642 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8643 frame base was unavailable.
8644 (amd64_epilogue_frame_unwind): Install
8645 amd64_epilogue_frame_unwind_stop_reason.
8646 * i386-tdep.c: Include "exceptions.h".
8647 (struct i386_frame_cache): New field "base_p".
8648 (i386_init_frame_cache): Clear it.
8649 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8650 Avoid reading registers with functions that throw if the register
8651 is not necessary to compute the frame base.
8652 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8653 swallowing NOT_AVAILABLE_ERROR.
8654 (i386_frame_unwind_stop_reason): New.
8655 (i386_frame_this_id): Don't build a frame id if the frame base was
8657 (i386_frame_prev_register): Handle unavailable SP.
8658 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8659 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8660 base_p if the frame base was computable.
8661 (i386_epilogue_frame_unwind_stop_reason): New.
8662 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8663 base was unavailable.
8664 (i386_epilogue_frame_unwind): Install
8665 i386_epilogue_frame_unwind_stop_reason.
8666 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8667 base_p if the frame base was computable.
8668 (i386_sigtramp_frame_unwind_stop_reason): New.
8669 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8670 base was unavailable.
8671 (i386_sigtramp_frame_unwind): Install
8672 i386_sigtramp_frame_unwind_stop_reason.
8673 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8674 type's size, not the register's.
8675 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8677 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8678 default_frame_unwind_stop_reason.
8679 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8680 (alpha_heuristic_frame_unwind): Ditto.
8681 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8682 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8683 * avr-tdep.c (avr_frame_unwind): Ditto.
8684 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8686 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8687 * frv-tdep.c (frv_frame_unwind): Ditto.
8688 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8689 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8690 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8691 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8692 (hppa_stub_frame_unwind): Ditto.
8693 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8694 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8695 (ia64_libunwind_frame_unwind)
8696 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8697 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8698 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8699 * m32c-tdep.c (m32c_unwind): Ditto.
8700 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8701 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8702 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8703 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8704 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8705 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8706 * mep-tdep.c (mep_frame_unwind): Ditto.
8707 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8708 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8709 (mips_stub_frame_unwind): Ditto.
8710 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8711 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8712 * mt-tdep.c (mt_frame_unwind): Ditto.
8713 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8714 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8715 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8716 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8717 (s390_sigtramp_frame_unwind): Ditto.
8718 * score-tdep.c (score_prologue_unwind): Ditto.
8719 * sh-tdep.c (sh_frame_unwind): Ditto.
8720 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8721 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8722 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8723 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8724 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8725 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8726 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8727 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8728 (sparc64obsd_trapframe_unwind): Ditto.
8729 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8730 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8731 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8732 * v850-tdep.c (v850_frame_unwind): Ditto.
8733 * vax-tdep.c (vax_frame_unwind): Ditto.
8734 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8735 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8736 * xtensa-tdep.c (xtensa_unwind): Ditto.
8738 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8740 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8741 there's always a frame. Use get_frame_pc_if_available instead of
8742 get_frame_pc, and if there's no PC available, don't look up a
8745 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8747 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8750 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8752 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8755 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8757 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8758 * frame.c (frame_unwind_caller_pc_if_available): New.
8759 * stack.c (frame_info): Handle unavailable PC.
8761 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8763 * frame.c (frame_unwind_pc): Rename to ...
8764 (frame_unwind_pc_if_available): ... this. New `pc' output
8765 parameter. Change return type to int. Gracefully handle
8766 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8767 happened, or 1 otherwise.
8768 (frame_unwind_pc): Reimplement on top of
8769 frame_unwind_pc_if_available.
8770 (get_frame_func): Rename to ...
8771 (get_frame_func_if_available): New `pc' output parameter. Change
8772 return type to int. Gracefully handle the PC not being available.
8773 (get_frame_func): Reimplement on top of
8774 get_frame_func_if_available.
8775 (select_frame): Handle the PC being unavailable.
8776 (get_prev_frame): Handle the PC being unavailable.
8777 (get_frame_pc_if_available): New.
8778 (get_frame_address_in_block_if_available): New.
8779 (find_frame_sal): Handle the frame PC not being available.
8780 * frame.h (get_frame_pc_if_available): Declare.
8781 (get_frame_address_in_block_if_available): Declare.
8782 (get_frame_func_if_available): Declare.
8783 * stack.c (print_frame_info): Handle the PC being unavailable.
8784 (find_frame_funname): Ditto.
8785 (print_frame): Handle the PC being unavailable.
8786 (get_frame_language): Ditto.
8787 * blockframe.c (get_frame_block): Ditto.
8788 * macroscope.c (default_macro_scope): Ditto.
8789 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8791 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8793 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8794 NOT_AVAILABLE_ERROR when evaluating the location expression.
8796 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8798 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8799 returning that the register piece is unavailable/optimized out.
8800 (write_pieced_value): Handle get_frame_register_bytes returning
8801 that the register piece is unavailable/optimized out when doing a
8802 read-modify write of a bitfield.
8803 * findvar.c (value_from_register): Handle get_frame_register_bytes
8804 returning that the register piece is unavailable/optimized out.
8805 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8806 and `unavailablep'. Throw error on bad debug info. Use
8807 frame_register instead of frame_register_read, to fill in the new
8809 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8811 * valops.c: (value_assign): Adjust, and handle
8812 get_frame_register_bytes failing.
8813 * spu-tdep.c: Include exceptions.h.
8814 (spu_software_single_step): Adjust, and handle
8815 get_frame_register_bytes failing.
8816 (spu_get_longjmp_target): Ditto.
8817 * gdbarch.sh (register_to_value): Change to return int. New
8818 parameters `optimizedp' and `unavailablep'.
8819 * gdbarch.h, gdbarch.c: Regenerate.
8820 * i386-tdep.c (i386_register_to_value): Adjust to new
8821 gdbarch_register_to_value interface.
8822 * i387-tdep.c (i387_register_to_value): Ditto.
8823 * i387-tdep.h (i387_register_to_value): Ditto.
8824 * alpha-tdep.c (alpha_register_to_value): Ditto.
8825 * ia64-tdep.c (ia64_register_to_value): Ditto.
8826 * m68k-tdep.c (m68k_register_to_value): Ditto.
8827 * mips-tdep.c (mips_register_to_value): Ditto.
8828 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8830 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8832 * findvar.c (value_of_register): Mark the value as unavailable, if
8833 the register is unavailable.
8834 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8835 (frame_register): New `unavailablep' parameter.
8836 (frame_register_read): Update comment.
8837 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8838 Set it if the register is unavailable. If the register is
8839 unavailable, clear the output buffer.
8840 (frame_register): New `unavailablep' parameter. Pass it down.
8841 (frame_unwind_register): Adjust.
8842 (put_frame_register): Adjust.
8843 (frame_register_read): Adjust. Also return false if the register
8845 (frame_register_unwind_location): Adjust.
8846 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8847 is unavailable, mark the value accordingly.
8848 * stack.c (frame_info): Handle unavailable registers.
8850 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8852 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8853 simplify, using regcache_cooked_read.
8855 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8857 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8858 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8859 (regcache_raw_read_unsigned, regcache_raw_read_part)
8860 (regcache_cooked_read, regcache_cooked_read_signed)
8861 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8862 (regcache_cooked_read_ftype): Change return to enum
8864 * regcache.c: Include exceptions.h
8865 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8866 (do_cooked_read): Change return to enum register_status. Always
8867 forward to regcache_cooked_read.
8868 (regcache_raw_read): Change return to enum register_status. If
8869 the register is not REG_VALID, memset the buffer. Return the
8871 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8872 return the register's status.
8873 (regcache_raw_read_unsigned): Ditto.
8874 (regcache_cooked_read): Change return to enum register_status.
8875 Assert that with read-only regcaches, the register's status must
8876 be known. If the regcache is read-only, and the register is not
8877 REG_VALID, memset the buffer. Return the register's status.
8878 (regcache_cooked_read_signed): Change return to enum
8879 register_status. Handle non-REG_VALID registers and return the
8881 (regcache_cooked_read_unsigned): Change return to enum
8882 register_status. Handle non-REG_VALID registers and return the
8884 (regcache_xfer_part, regcache_raw_read_part)
8885 (regcache_cooked_read_part): Change return to enum
8886 register_status. Return the register's status.
8887 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8889 (regcache_dump): Handle unavailable cooked registers.
8890 * frame.c (do_frame_register_read): Adjust interface to match
8891 regcache_cooked_read_ftype.
8892 * gdbarch.sh (pseudo_register_read): Change return to enum
8894 * gdbarch.h, gdbarch.c: Regenerate.
8896 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8898 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8899 register_status. If reading a raw register indicates the raw
8900 register is not valid, return the raw register's status,
8901 otherwise, return REG_VALID.
8902 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8903 register_status. Handle non-REG_VALID raw registers and return
8904 the register's status.
8905 * arm-tdep.c (arm_neon_quad_read)
8906 (arm_pseudo_read): Change return to enum register_status. Handle
8907 non-REG_VALID raw registers and return the register's status.
8908 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8909 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8910 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8911 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8912 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8914 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8915 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8916 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8917 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8918 (m32c_pseudo_register_read): Change return to enum
8919 register_status. Adjust.
8920 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8921 enum register_status. Return the register's status.
8922 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8923 register_status. Return the register's status.
8924 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8925 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8926 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8927 * rs6000-tdep.c (move_ev_register_func): New typedef.
8928 (e500_move_ev_register): Use it. Change return to enum
8929 register_status. Return the register's status.
8930 (do_regcache_raw_read): New function.
8931 (do_regcache_raw_write): New function.
8932 (e500_pseudo_register_read): Change return to enum
8933 register_status. Return the register's status. Use
8934 do_regcache_raw_read.
8935 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8936 (dfp_pseudo_register_read): Change return to enum register_status.
8937 Return the register's status.
8938 (vsx_pseudo_register_read): Ditto.
8939 (efpr_pseudo_register_read): Ditto.
8940 (rs6000_pseudo_register_read): Ditto.
8941 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8942 register_status. Return the register's status.
8943 * sh64-tdep.c (pseudo_register_read_portions): New function.
8944 (sh64_pseudo_register_read): Change return to enum
8945 register_status. Use pseudo_register_read_portions. Return the
8947 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8948 register_status. Return the register's status.
8949 * sh-tdep.c (pseudo_register_read_portions): New function.
8950 (sh_pseudo_register_read): Change return to enum register_status.
8951 Use pseudo_register_read_portions. Return the register's status.
8952 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8953 enum register_status. Return the register's status.
8954 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8955 * spu-tdep.c (spu_pseudo_register_read_spu)
8956 (spu_pseudo_register_read): Ditto.
8957 * xtensa-tdep.c (xtensa_register_read_masked)
8958 (xtensa_pseudo_register_read): Ditto.
8959 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8961 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8963 * python/py-value.c (valpy_getitem): Fix formatting of error function
8966 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8968 ARI fixes: Add missing internationalization markups throughout
8970 * darwin-nat-info.c: Ditto.
8973 * mi/mi-main.c: Ditto.
8975 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8977 ARI fixes: Add missing internationalization markups throughout
8980 * cp-name-parser.y: Ditto.
8983 * objc-exp.y: Ditto.
8986 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8988 ARI fixes: Messages should have no trailing new lines.
8989 * darwin-nat.c (mach_check_error): Remove trailing new line from
8990 warning function call message.
8991 * record.c (bfdcore_read): Idem for error call.
8993 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8995 * common/signals.c (target_signal_from_host): Add _ markup to error
8996 function call message.
8997 (target_signal_to_host): Add _ markup and remove trailing new line
8998 from warning call message.
8999 (target_signal_from_command): Add _ markup to error function call
9002 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
9006 * python/python.c (gdbpy_write): Accept a stream argument and
9007 operate to the appropriate stream.
9008 (gdbpy_flush): Likewise.
9009 (_initialize_python): Add stream constants.
9010 (finish_python_initialization): Add GdbOutputErrorFile class.
9012 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
9014 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9016 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
9018 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
9019 to store_signed_integer. Add debug message when relocating CALL
9020 instructions. Fix formatting of debug message.
9021 * i386-tdep.c (i386_relocate_instruction): Ditto.
9023 2011-03-17 Joel Brobecker <brobecker@gnat.com>
9025 * target.h (struct target_ops): Remove to_lookup_symbol field.
9026 (target_lookup_symbol): Delete macro.
9027 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
9028 (update_current_target, setup_target_debug): Remove handling
9029 of to_lookup_symbol target_ops field.
9030 * ada-tasks.c (get_known_tasks_addr): Remove use of
9031 target_lookup_symbol.
9032 * coffread.c (coff_symtab_read): Likewise.
9033 * dbxread.c (read_dbx_symtab): Ditto.
9035 2011-03-17 Joel Brobecker <brobecker@gnat.com>
9038 * configure.ac: Add getthrds declaration check.
9039 * configure, config.in: Regenerate.
9040 * aix-thread.c (getthrds): Declare only if not already declared
9041 in procinfo.h. More declaration out of get_signaled_thread to
9044 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
9046 * python/py-symtab.c: Populate symtab_object_methods,
9048 (stpy_is_valid): New function.
9049 (salpy_is_valid): Ditto.
9050 * python/py-symbol.c: Declare symbol_object_methods. Populate.
9051 (sympy_is_valid): New function.
9052 * python/py-objfile.c: Declare objfile_object_methods. Populate.
9053 (objfpy_is_valid): New function.
9054 * python/py-inferior.c: Populate inferior_object_methods.
9055 (infpy_is_valid): New function.
9056 * python/py-infthread.c: Populate thread_object_methods.
9057 (thpy_is_valid): New function.
9058 * python/py-block.c: Declare block_object_methods. Populate. Declare
9059 block_iterator_object_methods. Populate.
9060 (blpy_is_valid): New function.
9061 (blpy_iter_is_valid): Ditto.
9063 2011-03-16 Keith Seitz <keiths@redhat.com>
9065 * linespec.c (find_methods): Canonicalize NAME before looking
9067 (name_end): New function.
9068 (keep_name_info): New function.
9069 (decode_line_1): Use keep_name_info.
9070 (decode_compound): Likewise.
9071 * cli/cli-utils.h (remove_trailing_whitespace): New function.
9072 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
9075 * linespec.c (locate_first_half): Keep overload information, too.
9076 (decode_compound): Use a string to represent break characters
9078 If P points to a break character, do not increment it.
9079 For C++ and Java, keep overload information and relevant keywords.
9080 If we cannot find a symbol, search the minimal symbols.
9083 * linespec.c (decode_compound): Rename SAVED_ARG to
9085 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
9087 Pass a valid block to lookup_symbol.
9088 (lookup_prefix_sym): Likewise.
9089 (find_method): Construct search name based on SYM_CLASS instead
9091 * psymtab.c (lookup_partial_symbol): Add language parameter.
9092 (lookup_symbol_aux_psymtabs): Likewise.
9093 Don't assume that the psymtab we found was the right one. Search
9094 for the desired symbol in the symtab to be certain.
9095 (psymtab_search_name): New function.
9096 (lookup_partial_symbol): Use psymtab_search_name.
9097 Add language parameter.
9098 (read_symtabs_for_function): Add language parameter and pass to
9099 lookup_partial_symbol.
9100 (find_symbol_file_from_partial): Likewise.
9102 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
9105 * dwarf2read.c (noop_record_line): New function.
9106 (dwarf_decode_lines): Ignore line tables for GCd functions.
9108 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9110 Fix ARI warnings about new lines at the end of messages, which
9111 are unneeded as there is a new line added at the end of the message
9113 * darwin-nat.c (darwin_stop_inferior): Ditto.
9114 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
9115 * dfp.c (decimal_to_number): Ditto.
9116 * exec.c (print_section_info): Ditto.
9117 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
9118 * osdata.c (get_osdata): Ditto.
9119 * record.c (bfdcore_write): Ditto.
9120 * remote-mips.c (mips_readchar): Ditto.
9121 * remote.c (read_ptid): Ditto.
9122 * ser-mingw.c (ser_windows_raw): Ditto.
9123 * tracepoint.c (add_local_symbols): Ditto.
9124 * windows-nat.c (fake_create_process): Ditto.
9126 2011-03-16 Tom Tromey <tromey@redhat.com>
9128 * tracepoint.c (stop_tracing): Don't declare.
9129 * event-top.c (after_char_processing_hook): Add `(void)'.
9131 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
9133 * NEWS: Add Parameter sub-classing description.
9135 2011-03-16 Kai Tietz <ktietz@redhat.com>
9137 * MAINTAINERS: Update my e-mail address.
9139 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
9141 * MAINTAINERS: Add myself for write after approval privileges.
9143 2011-03-15 Michael Snyder <msnyder@vmware.com>
9145 * frame.c (find_frame_sal): Assert sym is not null.
9147 * dbxread.c (process_one_symbol): Assert 'name' is not null.
9149 * objc-lang.c (selectors_info): Check strchr for null result.
9151 * stabsread.c (define_symbol): Guard against bad stabstring input.
9153 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
9155 Remove trailing spaces and tabulations from pascal language
9160 p-valprint.c: Ditto.
9162 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9164 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
9165 than LOW. Comment it.
9166 (read_partial_die): Call complaint for inappropriate zero LOWPC or
9167 HIGHPC not strictly higher than LOWPC.
9169 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
9171 Fix formatting of function declarations returning a pointer in
9173 * varobj.c (varobj_add_child): Ditto.
9174 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
9175 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
9177 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
9179 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
9180 for the "generic" vector ABI used with GCC 4.3 and later.
9181 (ppc64_sysv_abi_return_value): Likewise.
9183 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
9185 * infcall.c (call_function_by_hand): Function return value is
9186 always a non_lval, even when using struct_return.
9188 2011-03-15 Pedro Alves <pedro@codesourcery.com>
9190 * printcmd.c (ALL_DISPLAYS_SAFE): New.
9191 (map_display_numbers): New.
9192 (do_delete_display): New.
9193 (undisplay_command): Use map_display_numbers.
9194 (do_enable_disable_display): New.
9195 (enable_disable_display_command): New function.
9196 (enable_display): Delete.
9197 (enable_display_command): New.
9198 (disable_display_command): Reimplement.
9199 (_initialize_printcmd): Adjust "enable display" command to use
9200 `enable_display_command' as callback.
9202 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9204 * NEWS: Add Python breakpoint 'stop' operation.
9206 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9208 * NEWS: Delete duplicate entry. Fix typo.
9210 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
9212 Fix ARI warning about function names in first column.
9213 Put prototype declaration on same line as return type.
9214 * objc-exp.y: Ditto.
9216 * python/py-stopevent.h: Ditto.
9217 For long function names, split parameters to
9218 allow function name on same line as return type.
9219 * solib-pa64.c: Ditto.
9222 For long function declaration, use single line.
9223 * hppa-tdep.h: Ditto.
9224 * inferior.h: Ditto.
9226 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
9228 * python/python.h: Declare gdbpy_should_stop and
9229 gdbpy_breakpoint_has_py_cond.
9230 * python/python.c: Add python.h to includes. Remove python.h from
9231 HAVE_PYTHON definition
9232 (gdbpy_should_stop): New dummy function.
9233 (gdbpy_breakpoint_has_py_cond): New dummy function.
9234 * python/py-breakpoint.c (bppy_init): Rewrite to allow
9235 sub-classing capabilities.
9236 (gdbpy_should_stop): New function.
9237 (gdbpy_breakpoint_has_py_cond): New function.
9238 (local_setattro): New function.
9239 * breakpoint.c (condition_command): Add check for Python 'stop'
9241 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
9242 operation function as part of stop/continue tests.
9244 2011-03-14 Tom Tromey <tromey@redhat.com>
9247 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
9248 (needs_frame_dwarf_call): Likewise.
9250 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
9252 Fix ARI warning about functions without parameters that do not
9254 * breakpoint.c (all_tracepoints): Replace () by (void).
9255 * f-exp.y (match_string_literal): Ditto.
9257 * m2-exp.y (yylex): Ditto.
9258 * mep-tdep.c (current_me_module): Ditto.
9259 (current_options): Ditto.
9260 (current_cop_data_bus_width): Ditto.
9261 (current_cr_names): Ditto.
9262 (current_cr_is_float): Ditto.
9263 (current_ccr_names): Ditto.
9264 * objc-exp.y (yylex): Ditto.
9265 * p-exp.y (yylex): Ditto.
9266 * remote.c (send_interrupt_sequence): Ditto.
9267 * tracepoint.c (current_trace_status): Ditto.
9268 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
9269 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
9271 2011-03-11 Michael Snyder <msnyder@vmware.com>
9273 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
9274 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
9275 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
9276 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
9277 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
9279 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
9280 (delete_async_event_handler): Ditto.
9282 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
9284 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
9286 * top.c (set_verbose): Assert showcmd was found.
9288 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
9290 * xtensa-tdep.c (warning_once): Correct style issues.
9292 2011-03-11 Yao Qi <yao@codesourcery.com>
9294 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
9296 2011-03-11 Andreas Schwab <schwab@redhat.com>
9298 * common/aclocal.m4: Remove.
9300 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9302 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9303 (xtensa_write_register, xtensa_read_register): Likewise.
9304 (xtensa_hextochar): Removed.
9305 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9307 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9309 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
9310 (xtensa_call0_frame_cache_t): Update comments. New fields added.
9311 (xtensa_alloc_frame_cache): Add initialization for new fields.
9312 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9313 (warning_once): New function.
9314 (xtensa_insn_kind): New item c0opc_and.
9315 (call0_classify_opcode): Add the case for AND instruction.
9316 (call0_track_op): Change arguments. New local variable litbase.
9317 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
9318 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9320 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
9321 (call0_analyze_prologue): Update the comments. Change arguments.
9322 Add the variety of updates to handle extended prologues, which now can
9323 conduct dynamic stack adjustments.
9324 (call0_frame_cache): Likewise.
9325 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9326 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9328 2011-03-10 Michael Snyder <msnyder@vmware.com>
9330 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9331 (cmd_qtframe): Ditto.
9332 (cmd_qtbuffer): Ditto.
9333 (cmd_bigqtbuffer): Ditto.
9335 2011-03-10 Tom Tromey <tromey@redhat.com>
9337 * tracepoint.c (trace_actions_command): Update.
9338 * thread.c (thread_apply_command): Update.
9339 * reverse.c (delete_bookmark_command): Update.
9340 (bookmarks_info): Update.
9341 * printcmd.c (undisplay_command): Update.
9342 * memattr.c (mem_enable_command): Update.
9343 (mem_disable_command): Update.
9344 (mem_delete_command): Update.
9345 * inferior.c (detach_inferior_command): Update.
9346 (kill_inferior_command): Update.
9347 (remove_inferior_command): Update.
9348 * cli/cli-utils.h (struct get_number_or_range_state): New.
9349 (init_number_or_range): Declare.
9350 (get_number_or_range): Update.
9351 * cli/cli-utils.c (init_number_or_range): New function.
9352 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
9354 (number_is_in_list): Update.
9355 * breakpoint.h (get_tracepoint_by_number): Update.
9356 * breakpoint.c (map_breakpoint_numbers): Update for change to
9357 get_number_or_range.
9358 (find_location_by_number): Use get_number, not
9359 get_number_or_range.
9360 (trace_pass_set_count): New function.
9361 (trace_pass_command): Update for change to get_number_or_range.
9363 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9366 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
9368 * python/py-param.c (add_setshow_generic): Add set/show callback
9369 parameters. Register Python object context.
9370 (get_show_value): New function.
9371 (get_set_value): New function.
9372 (call_doc_function): New function.
9373 (get_doc_string): Move behind get_show_value/get_set_value.
9375 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
9377 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9379 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9381 * xtensa-tdep.c (xtensa_read_register): Add comment.
9382 (xtensa_write_register): Likewise.
9383 (xtensa_hextochar): Add comment and update to match coding conventions.
9384 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9385 (execute_l32e, execute_s32e, execute_code): Update comments.
9386 (xtensa_exception_handler_t): Update to match coding conventions.
9387 (xtensa_insn_kind): Likewise.
9389 2011-03-09 Michael Snyder <msnyder@vmware.com>
9391 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9393 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9395 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9397 2011-03-09 Tom Tromey <tromey@redhat.com>
9399 * thread.c (restore_selected_frame): Handle frame_level == -1.
9400 (make_cleanup_restore_current_thread): Use
9401 get_selected_frame_if_set.
9402 * frame.h (get_selected_frame_if_set): Declare.
9403 * frame.c (get_selected_frame_if_set): New function.
9405 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9407 * cli/cli-cmds.c (shell_escape): Use lbasename.
9408 * coffread.c (coff_start_symtab): Constify parameter.
9409 (complete_symtab): Constify `name' parameter.
9410 (coff_symtab_read): Constify `filestring' local.
9411 (coff_getfilename): Constify return and `result' local.
9413 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9414 * linux-fork.c (info_checkpoints_command): Use lbasename.
9415 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9416 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9417 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9418 * procfs.c (procfs_make_note_section): Use lbasename.
9419 * tui/tui-io.c (printable_part): Constity return and parameter.
9421 (print_filename): Constify parameters, and local `s'.
9422 (tui_rl_display_match_list): Constify local `temp'.
9424 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9427 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9428 Fix DWARF-3+ DW_AT_accessibility default assumption.
9429 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9430 cu->header.version >= 3.
9432 2011-03-09 Yao Qi <yao@codesourcery.com>
9434 * common/Makefile.in: Remove.
9435 * common/configure: Remove.
9436 * common/configure.ac: Remove.
9438 2011-03-09 Yao Qi <yao@codesourcery.com>
9441 2011-02-11 Yao Qi <yao@codesourcery.com>
9443 * common/Makefile.in: Add copyright header.
9445 2011-02-11 Yao Qi <yao@codesourcery.com>
9447 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9449 * configure.ac: Add common to sub dir.
9450 * configure: Regenerate.
9452 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9454 * xtensa-tdep.c (call0_ret): New function.
9455 (xtensa_skip_prologue): Speed up analysis.
9457 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9459 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9460 while executing MI command -data-list-changed-registers.
9462 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9464 * xtensa-tdep.c (xtensa_read_register): New function.
9465 (xtensa_write_register): New function.
9466 (xtensa_find_register_by_name): New function.
9467 (xtensa_windowed_frame_cache): Update comments in type description.
9468 (xtensa_frame_cache): Likewise.
9469 (xtensa_window_interrupt_insn): New function.
9470 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9471 (xtensa_insn_kind): Add new instructions.
9472 (rwx_special_register): New function.
9473 (call0_classify_opcode): Add new instructions to the analysis.
9474 (a0_saved, a7_saved, a11_saved): New variables.
9475 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9476 (execute_l32e): New function.
9477 (execute_s32e): New function.
9478 (xtensa_exception_handler_t): New type.
9479 (execute_code): New function.
9480 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9481 analysis for Xtensa Window Exception handlers.
9483 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9485 * xtensa-tdep.c (TX_PS): New.
9486 (windowing_enabled): Update to count for Call0 ABI.
9487 (xtensa_hextochar): New.
9488 (xtensa_init_reggroups): Make algorithm generic.
9489 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9491 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9493 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9495 2011-03-08 Michael Snyder <msnyder@vmware.com>
9497 * i386-tdep.c (i386_follow_jump): Check return value of
9499 (i386_analyze_struct_return): Ditto.
9500 (i386_skip_probe): Ditto.
9501 (i386_match_insn): Ditto.
9502 (i386_skip_noop): Ditto.
9503 (i386_analyze_frame_setup): Ditto.
9504 (i386_analyze_register_saves): Ditto.
9505 (i386_skip_prologue): Ditto.
9506 (i386_skip_main_prologue): Ditto.
9508 * target.c (read_whatever_is_readable): Fix memory leak.
9510 * i386-tdep.c (i386_process_record): Document fall through.
9512 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9514 Fix DWARF-3+ DW_AT_accessibility default assumption.
9515 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9516 cu->header.version >= 3.
9518 2011-03-08 Pedro Alves <pedro@codesourcery.com>
9520 * remote.c (remote_check_symbols): Skip if the target has no
9523 2011-03-08 Joel Brobecker <brobecker@adacore.com>
9525 * target.c (read_whatever_is_readable): Reformat comment,
9526 with a minor typo fix. Minor reformatting of the code.
9528 2011-03-08 Yao Qi <yao@codesourcery.com>
9530 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9531 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9532 Use cached result instead of calling displaced_in_arm_mode again.
9533 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9534 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9535 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9536 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9537 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9538 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9539 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9540 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9541 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9542 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9543 (arm_catch_kernel_helper_return): Likewise.
9544 * gdb/arm-tdep.h : Update function declarations.
9546 2011-03-07 Michael Snyder <msnyder@vmware.com>
9548 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9550 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9552 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9554 * elfread.c (elf_symtab_read): Stop memory leak.
9556 * main.c (captured_main): Fix memory leak.
9558 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9560 * ada-lang.c (compare_names): Call is_name_suffix with string1
9563 2011-03-07 Tom Tromey <tromey@redhat.com>
9565 * xcoffread.c (xcoff_sym_fns): Update.
9566 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9567 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9568 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9569 (symbol_file_add_with_addrs_or_offsets): Likewise.
9570 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9571 * somread.c (som_sym_fns): Update.
9572 * psymtab.h (require_partial_symbols): Declare.
9573 * psymtab.c (require_partial_symbols): New function.
9574 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9575 (ALL_OBJFILE_PSYMTABS): Undef.
9576 (ALL_PSYMTABS): Move from psympriv.h.
9577 (lookup_partial_symtab, find_pc_sect_psymtab)
9578 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9579 (find_last_source_symtab_from_partial)
9580 (forget_cached_source_info_partial)
9581 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9582 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9583 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9584 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9585 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9586 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9587 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9588 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9589 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9591 * mipsread.c (ecoff_sym_fns): Update.
9592 * machoread.c (macho_sym_fns): Update.
9593 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9594 (read_psyms): New function.
9595 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9596 (elf_sym_fns_lazy_psyms): New global.
9597 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9598 dwarf2_build_psymtabs.
9599 * dbxread.c (aout_sym_fns): Update.
9600 * coffread.c (coff_sym_fns): Update.
9602 2011-03-07 Tom Tromey <tromey@redhat.com>
9604 * infrun.c (print_exited_reason): Include inferior id and pid in
9607 2011-03-07 Tom Tromey <tromey@redhat.com>
9609 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9611 (target_has_execution_1): Update.
9612 (target_has_execution_current): Declare.
9613 (target_has_execution): Call target_has_execution_current.
9614 (default_child_has_execution): Update.
9615 * target.c (default_child_has_execution): Add 'the_ptid'
9617 (target_has_execution_1): Likewise.
9618 (target_has_execution_current): New function.
9619 (add_target): Update.
9620 (init_dummy_target): Update.
9621 * remote-m32r-sdi.c (m32r_has_execution): New function.
9622 (init_m32r_ops): Use it.
9623 * record.c (record_core_has_execution): Now static. Add
9624 'the_ptid' parameter.
9625 * inferior.c (have_live_inferiors): Don't save current thread.
9626 Use target_has_execution_1.
9628 2011-03-07 Yao Qi <yao@codesourcery.com>
9630 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9632 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9634 * elfread.c (elf_symtab_read): Minor reformatting.
9636 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9638 * objc-lang.c (selectors_info): Minor reformatting.
9640 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9642 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9644 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9645 Michael Snyder <msnyder@vmware.com>
9647 * ada-valprint.c (ada_val_print_array): Move the declaration of
9648 "byte_order" and "elttype" inside the block where these variables
9649 are actually used. Remove some special handling for the case
9650 where "elttype" and "eltlen" are null. Replace by a comment
9651 and a couple of assertion checks.
9653 2011-03-05 Michael Snyder <msnyder@vmware.com>
9655 * source.c (add_path): Replace semicolon at end of block.
9656 * dwarf2expr.c (execute_stack_op): Ditto.
9658 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9660 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9661 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9662 (bfin-*-*): Likewise.
9664 2011-03-05 Michael Snyder <msnyder@vmware.com>
9666 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9667 * mdebugread.c (parse_symbol): Ditto.
9668 * parse.c (parse_exp_in_context): Ditto.
9669 * source.c (add_path): Ditto.
9670 * utils.c (gnu_debuglink_crc32): Ditto.
9671 * varobj.c (variable_language): Ditto.
9673 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9675 2011-03-04 Michael Snyder <msnyder@vmware.com>
9677 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9679 * symfile.c (simple_overlay_update): Check for null return value
9680 from lookup_minimal_symbol.
9682 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9684 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9686 * eval.c (parse_and_eval_address_1): Remove function.
9687 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9688 instead of parse_and_eval_address_1.
9689 * value.h (parse_and_eval_address_1): Remove prototype.
9691 2011-03-04 Michael Snyder <msnyder@vmware.com>
9693 * remote.c (putpkt_binary): Document that case stmt falls through.
9695 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9697 * breakpointc (print_it_typical): Move NULL check from here...
9698 (print_bp_stop_message): ... to here.
9700 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9702 * breakpoint.c (enable_command): Use break instead of continue,
9703 and fill in a missing break.
9704 (disable_command): Ditto.
9706 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9708 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9709 (terminal_save_ours): Remove misleading comment.
9710 (inflow_inferior_data_cleanup): Free ttystate.
9711 (inflow_inferior_exit): Likewise.
9712 (copy_terminal_info): Copy ttystate.
9714 * serial.c (serial_copy_tty_state): New function.
9715 * serial.h (serial_copy_tty_state): Add prototype.
9716 (struct serial_ops): Add copy_tty_state callback.
9717 * ser-base.c (ser_base_copy_tty_state): New function.
9718 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9719 * ser-go32.c (dos_copy_tty_state): New function.
9720 (dos_ops): Install copy_tty_state callback.
9721 * ser-mingw.c (_initialize_ser_windows): Likewise.
9722 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9723 * ser-unix.c (hardwire_copy_tty_state): New function.
9724 (_initialize_ser_hardwire): Install it.
9726 2011-03-04 Michael Snyder <msnyder@vmware.com>
9728 * breakpoint.c (create_breakpoint): Add missing break statement.
9730 Reverting this patch:
9731 * infcall.c (call_function_by_hand): Add break statements for lint.
9733 Reverting this patch:
9734 * cli/cli-script.c (script_from_file): Add break for lint.
9736 2011-03-04 Michael Snyder <msnyder@vmware.com>
9738 * solib.c (reload_shared_libraries_1): Close memory leak.
9740 2011-03-03 Tom Tromey <tromey@redhat.com>
9743 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9746 2011-03-03 Michael Snyder <msnyder@vmware.com>
9748 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9749 fields of struct 'st' to zero.
9751 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9752 sal.pspace before calling set_current_source_symtab_and_line.
9754 2011-03-03 Yao Qi <yao@codesourcery.com>
9756 * Makefile.in (configure-common): Remove. Let Makefile
9757 in dir common to rebuild itself.
9758 (common/Makefile): Likewise.
9760 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9762 * utils.c (parse_escape): Add i18n markup in error message.
9764 2011-03-03 Yao Qi <yao@codesourcery.com>
9766 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9768 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9769 (displaced_write_reg, displaced_read_reg): Likewise.
9770 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9771 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9772 (cleanup_branch): Replace magic number 14 and 15 with
9773 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9775 2011-03-02 Michael Snyder <msnyder@vmware.com>
9777 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9779 * cli/cli-script.c (script_from_file): Add break for lint.
9781 * mdebugread.c (parse_partial_symbols): Fix indent.
9783 * target-descriptions.c (tdesc_gdb_type): No need to call
9784 xstrdup, callee saves a copy.
9786 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9788 * infcall.c (call_function_by_hand): Add break statements for lint.
9790 * utils.c (parse_escape): Escape the escape char.
9792 * python/py-inferior.c (build_inferior_list): Error out if
9793 PyList_Append fails.
9794 (gdbpy_inferiors): Error out if build_inferior_list fails.
9796 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9799 * record.c (record_restore): Move printf to before error return.
9801 2011-03-02 Yao Qi <yao@codesourcery.com>
9803 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9804 is_thumb and insn_size.
9805 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9806 on both ARM and Thumb mode.
9807 (arm_process_displaced_insn): Set is_thumb and insn_size.
9808 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9809 (arm_displaced_step_fixup): Likewise.
9811 2011-03-01 Michael Snyder <msnyder@vmware.com>
9813 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9815 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9817 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9819 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9821 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9824 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9825 which shadows function parameter.
9827 * tracepoint.c (create_tsv_from_upload): Superfluous call
9828 to xstrdup. Callee already calls xstrdup.
9830 * linespec.c (decode_line_1): Remove unnecessary null check.
9832 * tracepoint.c (scope_info): Fix mem leak, remove underused
9835 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9836 superfluous null check.
9838 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9839 (value_of_builtin_frame_fp_reg): Ditto.
9841 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9843 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9846 * linespec.c (decode_line_1): Check for null before dereference.
9848 * reverse.c (record_restore): Move null-check to before pointer
9851 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9853 * objc-lang.c (selectors_info): Add explanitory comment.
9854 (classes_info): Ditto.
9856 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9858 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9859 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9860 versions of the trampoline. Handle Thumb vs. ARM addresses.
9861 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9862 (arm_linux_init_abi): Install it.
9863 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9864 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9866 2011-02-28 Michael Snyder <msnyder@vmware.com>
9868 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9869 a little bigger, to avoid possibility of an overflow.
9871 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9872 buffers a little bigger, to avoid possibility of an overflow.
9874 * coffread.c (coff_getfilename): Add check to avoid overflow.
9876 * objc-lang.c (selectors_info): Add a small safety margin to
9878 (classes_info): Error out on too long REGEXP.
9880 * infrun.c (handle_inferior_event): Remove unused function call.
9882 * fork-child.c (fork_inferior): Remove ifdef'd code and
9885 * linux-thread-db.c (attach_thread): Discard unused value.
9887 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9889 * remote.c (remote_get_noisy_reply): Discard unused value.
9890 (remote_vcont_resume): Ditto.
9891 (remote_stop_ns): Ditto.
9893 * linespec.c (decode_objc): Delete unused variable.
9895 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9897 * dwarf2read.c (add_partial_symbol): Discard unused values.
9898 (read_base_type): Delete unused variable.
9900 * dbxread.c (read_dbx_symtab): Discard unused value.
9902 * eval.c (evaluate_subexp_standard): Delete unused variable,
9903 and discard unused values.
9905 * infcmd.c (_initialize_infcmd): Discard unused values.
9907 * stabsread.c (rs6000_builtin_type): Missing break statement.
9909 * dbxread.c (process_one_symbol): Discard unused value.
9911 * coffread.c (coff_end_symtab): Delete unused variable.
9913 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9914 (dwarf2_add_typedef): Delete unused variable.
9915 (read_namespace): Ditto.
9916 (dwarf_decode_macros): Ditto.
9918 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9920 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9922 * p-valprint.c (pascal_val_print): Discard unused value.
9924 * utils.c (nquery): Call va_end before return;
9928 * proc-service.c (ps_plog): Call va_end before return.
9930 2011-02-28 Tom Tromey <tromey@redhat.com>
9932 * python/python.c (gdbpy_value_cst): New global.
9933 (_initialize_python): Initialize it.
9934 * python/python-internal.h (gdbpy_value_cst): Declare.
9935 * python/py-value.c (convert_value_from_python): Use
9938 2011-02-28 Michael Snyder <msnyder@vmware.com>
9940 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9942 * breakpoint.c (catch_syscall_completer): Free malloced list.
9944 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9946 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9947 (lval_func_check_synthetic_pointer): Ditto.
9948 (lval_func_free_closure): Fix use-after-free.
9950 2011-02-28 Tom Tromey <tromey@redhat.com>
9952 * psymtab.c (expand_partial_symbol_tables): Use
9953 ALL_OBJFILE_PSYMTABS.
9955 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9957 * objc-lang.c (selectors_info): Error on too long REGEXP.
9959 2011-02-28 Michael Snyder <msnyder@vmware.com>
9961 * python/py-param.c (set_parameter_value): Add missing
9964 * linux-record.c (record_linux_system_call): Add missing
9967 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9969 * breakpoint.c (print_one_breakpoint_location): Remove unused
9970 argument PRINT_ADDRESS_BITS. Update callers.
9971 (print_one_breakpoint): Likewise.
9973 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9975 * breakpoint.c (wrap_indent_at_field): New function.
9976 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9977 Allocate ui_stream locally instead of using STB argument.
9978 (print_one_breakpoint_location): Update call.
9979 * ui-out.c (ui_out_query_field): New function.
9980 * ui-out.h (ui_out_query_field): Add prototype.
9982 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9984 From Michael Snyder <msnyder@vmware.com>
9985 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9987 2011-02-27 Michael Snyder <msnyder@vmware.com>
9989 * objc-lang.c (selectors_info): Prevent string overrun.
9991 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9994 * symtab.c (rbreak_command): Move variable 'file_name' to
9997 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9998 param with a local variable of the same name.
10000 2011-02-27 Michael Snyder <msnyder@vmware.com>
10002 * value.c (value_from_history_ref): New function.
10003 * value.h (value_from_history_ref): Export.
10004 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
10005 to parse value history references.
10006 * cli/cli-utils.h (get_number_trailer): Update comment.
10008 2011-02-27 Michael Snyder <msnyder@vmware.com>
10010 * inferior.c (detach_inferior_command): Use get_number_or_range.
10011 (kill_inferior_command): Ditto.
10012 (remove_inferior_command): Ditto.
10013 (initialize_inferiors): Make command names plural.
10014 Update help strings.
10016 2011-02-27 Michael Snyder <msnyder@vmware.com>
10018 * darwin-nat-info.c: Fix comment typo.
10019 * dwarf2expr.h: Ditto.
10020 * fbsd-nat.c: Ditto.
10021 * fbsd-nat.h: Ditto.
10022 * frame-unwind.h: Ditto.
10024 * hppa-hpux-tdep.c: Ditto.
10025 * i386-linux-nat.c: Ditto.
10026 * linux-nat.c: Ditto.
10027 * nbsd-nat.c: Ditto.
10028 * nbsd-nat.h: Ditto.
10029 * ppc-linux-tdep.c: Ditto.
10031 * ui-file.h: Ditto.
10032 * tui/tui-winsource.c: Ditto.
10034 2011-02-26 Michael Snyder <msnyder@vmware.com>
10036 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
10038 * maint.c (maintenance_do_deprecate): Plug a memory leak.
10040 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
10041 with a local variable of the same name.
10043 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
10044 param with a local variable of the same name.
10045 (i387_supply_xsave): Ditto.
10047 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
10048 that it does not shadow a function parameter.
10050 * i386-nat.c (i386_length_and_rw_bits): Document that case
10051 statement is meant to fall through.
10053 * expprint.c (dump_subexp_body_standard): Document that case
10054 statement is meant to fall through.
10056 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
10057 dead if statement. Condition can't be false.
10059 2011-02-25 Michael Snyder <msnyder@vmware.com>
10061 * arm-tdep.c: Fix typos in comments.
10062 * bsd-uthread.c: Ditto.
10063 * completer.c: Ditto.
10064 * corelow.c: Ditto.
10065 * cp-namespace.c: Ditto.
10066 * cp-support.c: Ditto.
10067 * cris-tdep.c: Ditto.
10068 * dbxread.c: Ditto.
10069 * dwarf2read.c: Ditto.
10071 * gdbtypes.h: Ditto.
10072 * inferior.h: Ditto.
10073 * mdebugread.c: Ditto.
10074 * mips-tdep.c: Ditto.
10075 * ppc-linux-nat.c: Ditto.
10076 * ppc-linux-tdep.c: Ditto.
10077 * printcmd.c: Ditto.
10078 * sol-thread.c: Ditto.
10079 * solib-frv.c: Ditto.
10081 * sparc64-tdep.c: Ditto.
10082 * spu-tdep.c: Ditto.
10083 * stabsread.c: Ditto.
10084 * symfile.c: Ditto.
10087 * vax-nat.c: Ditto.
10088 * python/py-block.c: Ditto.
10089 * python/py-symbol.c: Ditto.
10090 * python/py-symtab.c: Ditto.
10091 * python/py-value.c: Ditto.
10092 * tui/tui-win.c: Ditto.
10094 2011-02-25 Michael Snyder <msnyder@vmware.com>
10096 * inferior.c (print_inferior): Accept a string instead of an int
10097 for requested_inferiors, and use get_number_or_range to parse it.
10098 (info_inferiors_command): Pass args string to print_inferior.
10099 (initialize_inferiors): Change help string for info inferiors.
10100 * inferior.h (print_inferior): Export prototype change.
10102 2011-02-25 Tom Tromey <tromey@redhat.com>
10104 * common/ax.def (invalid2): Set to 0x31.
10106 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10108 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
10110 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
10111 use L and plongest.
10112 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
10114 2011-02-24 Michael Snyder <msnyder@vmware.com>
10116 * Makefile.in (clean): Make clean should remove generated files
10117 observer.h and observer.inc.
10119 2011-02-24 Joel Brobecker <brobecker@adacore.com>
10121 Revert the following patch (not approved yet):
10122 2011-02-21 Hui Zhu <teawater@gmail.com>
10123 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10124 * ax-gdb.c (gen_printf_expr_callback): New function.
10125 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10126 * ax-general.c (ax_memcpy): New function.
10127 (ax_print): Handle "printf".
10129 * ax.h (ax_memcpy): Forward declare.
10130 * common/ax.def (invalid2): Removed.
10131 (printf): New entry.
10132 * printcmd.c (printcmd.h): New include.
10133 (string_printf): New function.
10134 (ui_printf): Removed.
10135 (printf_command): Remove static. Call string_printf.
10136 (eval_command): Call string_printf.
10137 * printcmd.h: New file.
10138 * tracepoint.c (validate_actionline,
10139 encode_actions_1): handle printf_command.
10141 2011-02-23 Tom Tromey <tromey@redhat.com>
10143 * ax-general.c (ax_pick): Add missing newline.
10145 2011-02-23 Michael Snyder <msnyder@vmware.com>
10147 * breakpoint.c (breakpoint_1): Change first argument from an int
10148 to a char pointer, so that the function now accepts a list of
10149 breakpoints rather than just one. Use new function
10150 'number_is_in_list' to implement.
10151 (breakpoints_info): Pass char * instead of int to breakpoint_1.
10152 (watchpoints_info): Ditto.
10153 (tracepoints_info): Ditto.
10154 (maintenance_info_breakpoints): Ditto.
10155 (_initialize_breakpoint): Update help strings to reflect the fact
10156 that these functions can now take more than one argument.
10157 * cli/cli-utils.c (number_is_in_list): New function.
10158 * cli/cli-utils.h (number_is_in_list): Export.
10160 2011-02-23 Michael Snyder <msnyder@vmware.com>
10162 * memattr.c (mem_enable_command): Use get_number_or_range.
10163 (mem_disable_command): Ditto.
10164 (mem_delete_command): Ditto.
10165 (_initialize_mem): Tweak usage message to reflect multiple
10168 2011-02-22 Doug Evans <dje@google.com>
10170 Add gdb.lookup_global_symbol python function.
10172 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
10173 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
10174 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
10176 2011-02-22 Tom Tromey <tromey@redhat.com>
10178 * language.c (language_class_name_from_physname): Rename
10179 'curr_language' argument to 'lang'; use in body.
10181 2011-02-22 Michael Snyder <msnyder@vmware.com>
10183 * cli/cli-utils.c (number_is_in_list): Check for zero return.
10185 2011-02-22 Pedro Alves <pedro@codesourcery.com>
10187 * frame-unwind.h: Fix comment to mention the this frame, not the
10190 2011-02-22 Tom Tromey <tromey@redhat.com>
10192 * symfile.c (auto_solib_limit): Remove.
10193 * symfile.h (auto_solib_limit): Remove.
10195 2011-02-22 Joel Brobecker <brobecker@adacore.com>
10197 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
10199 2011-02-21 Michael Snyder <msnyder@vmware.com>
10201 * gdbthread.h (print_thread_info): Change prototype.
10202 * thread.c (print_thread_info): Accept char* instead of int for
10203 requested_threads argument. Use new function number_is_in_list
10204 to determine which threads to list.
10205 (info_threads_command): Pass char* to print_thread_info.
10206 * cli/cli-utils.c (number_is_in_list): New function.
10207 * cli/cli-utils.h (number_is_in_list): Export.
10208 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
10210 (print_one_inferior): Ditto.
10211 (mi_cmd_list_thread_groups): Ditto.
10213 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10215 * common/Makefile.in (CFLAGS): New.
10216 (COMPILE): Add $(CFLAGS).
10218 2011-02-21 Tom Tromey <tromey@redhat.com>
10220 * breakpoint.c (catch_syscall_command_1): Fix typo.
10222 2011-02-21 Tom Tromey <tromey@redhat.com>
10224 * reverse.c: Include cli-utils.h.
10225 * printcmd.c: Include cli-utils.h.
10226 (string_printf): Use skip_spaces.
10227 * cli/cli-utils.h: New file.
10228 * cli/cli-utils.c: New file.
10229 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
10230 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
10231 * breakpoint.h (get_number, get_number_or_range): Move to
10233 * breakpoint.c: Include cli-utils.h.
10234 (get_number_trailer, get_number, get_number_or_range)
10235 (ep_skip_leading_whitespace): Move to cli-utils.c.
10236 (create_breakpoint_sal, find_condition_and_thread)
10237 (decode_static_tracepoint_spec, watch_command_1)
10238 (watch_maybe_just_location, ep_parse_optional_if_clause)
10239 (catch_fork_command_1, catch_exec_command_1)
10240 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
10241 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
10242 (SUBDIR_CLI_SRCS): Add cli-utils.c.
10243 (HFILES_NO_SRCDIR): Add cli-utils.h.
10244 (cli-utils.o): New target.
10246 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10248 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
10249 before calling discard_all_inferiors.
10251 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10253 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
10254 (struct builtin_opencl_type): Remove.
10255 (builtin_opencl_type): Change return type to "struct type **".
10256 (lookup_opencl_vector_type): Update caller.
10257 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
10258 (build_opencl_types): Install plain array of "struct type *"
10259 instead of "struct builtin_opencl_type".
10261 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
10262 Ulrich Weigand <uweigand@de.ibm.com>
10264 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
10265 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
10266 (struct arm_linux_hwbp_cap): New type.
10267 (arm_linux_get_hwbp_cap): New function.
10268 (arm_linux_get_hw_breakpoint_count): Likewise.
10269 (arm_linux_get_hw_watchpoint_count): Likewise.
10270 (arm_linux_can_use_hw_breakpoint): Likewise.
10271 (arm_hwbp_type): New type.
10272 (arm_hwbp_control_t): Likewise.
10273 (struct arm_linux_hw_breakpoint): Likewise.
10274 (struct arm_linux_thread_points): Likewise.
10275 (arm_threads): New global variable.
10276 (arm_linux_find_breakpoints_by_tid): New function.
10277 (arm_hwbp_control_initialize): Likewise.
10278 (arm_hwbp_control_is_enabled): Likewise.
10279 (arm_hwbp_control_disable): Likewise.
10280 (arm_linux_hw_breakpoint_initialize): Likewise.
10281 (arm_linux_get_hwbp_type): Likewise.
10282 (arm_linux_hw_watchpoint_initialize): Likewise.
10283 (arm_linux_hw_breakpoint_equal): Likewise.
10284 (arm_linux_insert_hw_breakpoint1): Likewise.
10285 (arm_linux_remove_hw_breakpoint1): Likewise.
10286 (arm_linux_insert_hw_breakpoint): Likewise.
10287 (arm_linux_remove_hw_breakpoint): Likewise.
10288 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
10289 (arm_linux_insert_watchpoint): Likewise.
10290 (arm_linux_remove_watchpoint): Likewise.
10291 (arm_linux_stopped_data_address): Likewise.
10292 (arm_linux_stopped_by_watchpoint): Likewise.
10293 (arm_linux_watchpoint_addr_within_range): Likewise.
10294 (arm_linux_new_thread): Likewise.
10295 (arm_linux_thread_exit): Likewise.
10296 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
10297 related target callbacks. Register arm_linux_new_thread and
10298 arm_linux_thread_exit.
10299 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
10300 * arm-tdep.c (arm_pc_is_thumb): Make global.
10301 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10303 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10305 * breakpoint.c (update_watchpoint): Do not attempt to recreate
10306 per-frame locations while within a function epilogue.
10308 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10310 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10311 to GNU coding standards.
10313 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10315 Allow use of mingw native on Windows 95 OS.
10316 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
10317 (ser_windows_close): Only call CancelIo if function exists.
10318 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10319 to check for existence of CancelIo function in kernel32 DLL.
10321 2011-02-21 Hui Zhu <teawater@gmail.com>
10323 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10324 * ax-gdb.c (gen_printf_expr_callback): New function.
10325 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10326 * ax-general.c (ax_memcpy): New function.
10327 (ax_print): Handle "printf".
10329 * ax.h (ax_memcpy): Forward declare.
10330 * common/ax.def (invalid2): Removed.
10331 (printf): New entry.
10332 * printcmd.c (printcmd.h): New include.
10333 (string_printf): New function.
10334 (ui_printf): Removed.
10335 (printf_command): Remove static. Call string_printf.
10336 (eval_command): Call string_printf.
10337 * printcmd.h: New file.
10338 * tracepoint.c (validate_actionline,
10339 encode_actions_1): handle printf_command.
10341 2011-02-19 Michael Snyder <msnyder@vmware.com>
10343 * reverse.c (delete_one_bookmark): Argument is now bookmark
10344 id rather than pointer to bookmark struct.
10345 (delete_bookmark_command): Use get_number_or_range.
10346 (goto_bookmark_command): Parse with get_number instead of strtoul.
10347 (bookmark_1): New function. Print info for one bookmark.
10348 (bookmarks_info): Use get_number_or_range and bookmark_1.
10350 2011-02-18 Michael Snyder <msnyder@vmware.com>
10352 * thread.c (info_threads_command): Re-implement using
10353 get_number_or_range.
10354 (thread_apply_command): Ditto.
10356 2011-02-18 Tom Tromey <tromey@redhat.com>
10358 * common/ax.def: New file.
10359 * ax.h (enum agent_op): Use ax.def.
10360 * ax-general.c (aop_map): Use ax.def.
10362 2011-02-18 Tom Tromey <tromey@redhat.com>
10364 * ax-general.c (aop_map): Add pick and rot.
10365 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10366 <DW_OP_rot>: Implement.
10367 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10368 (ax_pick): Declare.
10369 * ax-general.c (ax_pick): New function.
10371 2011-02-18 Tom Tromey <tromey@redhat.com>
10373 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10375 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10376 Tom Tromey <tromey@redhat.com>
10378 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10379 make_symbol_overload_list_block with NULL BLOCK.
10380 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10382 2011-02-18 Pedro Alves <pedro@codesourcery.com>
10384 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10385 * breakpoint.h (get_number_or_range): Declare.
10386 * printcmd.c (ALL_DISPLAYS): Declare.
10387 (delete_display): Reimplement taking a display pointer.
10388 (undisplay_command): Accept a range of displays to delete, using
10389 get_number_or_range.
10391 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10393 * c-valprint.c (c_val_print): Add embedded_offset to address
10394 for arrays of unspecified length.
10395 * p-valprint.c (pascal_val_print): Likewise.
10397 2011-02-18 Yao Qi <yao@codesourcery.com>
10399 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10400 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10401 (thumb_process_displaced_insn): New.
10402 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10403 call to arm_process_displaced_insn.
10404 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10406 2011-02-17 Tom Tromey <tromey@redhat.com>
10408 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10409 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10410 compile_dwarf_to_ax. No longer static. Call
10411 dwarf2_compile_cfa_to_ax.
10412 (locexpr_tracepoint_var_ref): Update.
10413 (loclist_tracepoint_var_ref): Update.
10414 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10415 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10416 argument; add 'gdbarch' and 'pc'.
10417 (dwarf2_compile_cfa_to_ax): New function.
10418 (dwarf2_frame_cache): Update.
10420 2011-02-17 Joel Brobecker <brobecker@adacore.com>
10422 * ada-lang.c (ada_type_of_array): Fix the size of the array
10423 in the case of an unconstrained packed array.
10425 2011-02-17 Yao Qi <yao@codesourcery.com>
10427 * common/Makefile.in: Add more targets for make.
10429 2011-02-16 Tom Tromey <tromey@redhat.com>
10431 * dwarf2loc.c (unimplemented): Fix typo.
10433 2011-02-16 Tom Tromey <tromey@redhat.com>
10435 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10436 (compile_dwarf_to_ax) <default>: Use unimplemented.
10437 <DW_OP_deref>: Update.
10438 (disassemble_dwarf_expression): Update.
10439 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10440 (decode_locdesc): Update.
10441 * dwarf2expr.h (dwarf_stack_op_name): Update.
10443 2011-02-16 Tom Tromey <tromey@redhat.com>
10445 * ax.h (struct aop_map) <name>: Now const.
10447 2011-02-16 Tom Tromey <tromey@redhat.com>
10449 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10452 2011-02-16 Yao Qi <yao@codesourcery.com>
10454 * infrun.c (get_displaced_step_closure_by_addr): New.
10455 * inferior.h: Declare it.
10456 * arm-tdep.c: (arm_pc_is_thumb): Call
10457 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10460 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10461 Jan Kratochvil <jan.kratochvil@redhat.com>
10464 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10466 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10467 Jan Kratochvil <jan.kratochvil@redhat.com>
10469 * value.c (value_contents_copy_raw): Extend describing comment.
10470 Assert that the destination contents we're overwriting are wholly
10472 (value_contents_copy): Extend describing comment.
10474 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10475 Jan Kratochvil <jan.kratochvil@redhat.com>
10477 * value.c (value_available_contents_eq): Remove redundant local
10478 variables. Fix available contents comparision.
10479 * value.h (value_available_contents_eq): Extend describing
10482 2011-02-16 Yao Qi <yao@codesourcery.com>
10484 * thread.c (info_threads_command): Add missing i18n markup and remove
10487 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10489 * breakpoint.c (longjmp_names): New variable.
10490 (struct breakpoint_objfile_data): New type.
10491 (breakpoint_objfile_key): New variable.
10492 (msym_not_found): New variable.
10493 (msym_not_found_p): New predicate.
10494 (get_breakpoint_objfile_data): New function.
10495 (create_overlay_event_breakpoint): Check per-objfile cache for
10497 (create_longjmp_master_breakpoint): Likewise.
10498 (create_std_terminate_master_breakpoint): Likewise.
10499 (create_exception_master_breakpoint): Likewise.
10500 (_initialize_breakpoint): Register per-objfile data key.
10502 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10504 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10506 (create_longjmp_master_breakpoint): Loop over longjmp names.
10507 (create_std_terminate_master_breakpoint): Const-propagate parameter
10509 (update_breakpoints_after_exec): Adjust.
10510 (breakpoint_re_set): Adjust.
10512 2011-02-15 Michael Snyder <msnyder@vmware.com>
10514 * thread.c (info_threads_command): Process arg as thread id,
10515 or list of thread ids.
10516 (thread_find_command): New command.
10517 (_initialize_thread): Document argument for info threads.
10518 Document 'thread find' command.
10519 * NEWS: Document new command "thread find".
10521 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10523 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10524 * aclocal.m4: Regenerated with aclocal-1.11.1.
10525 * common/configure: Regenerate with autoconf-2.64.
10527 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
10529 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10530 bool data type to a size of one byte.
10532 2011-02-15 Pedro Alves <pedro@codesourcery.com>
10533 Jan Kratochvil <jan.kratochvil@redhat.com>
10535 * target.c (memory_xfer_live_readonly_partial): Document where to
10536 look for interface description.
10538 2011-02-15 Yao Qi <yao@codesourcery.com>
10541 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10542 order to store PC value on stack instead of text section.
10544 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10546 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10547 the EFP register set size.
10548 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10549 data from the VMX register.
10550 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10551 and write data from/to the VMX register.
10553 2011-02-14 Michael Snyder <msnyder@vmware.com>
10555 * command.h (enum command_class): New class 'no_set_class', for
10556 "show" commands without a corresponding "set" command.
10557 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10558 * copying.c (_initialize_copying): Ditto for "show copying" and
10560 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10562 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10563 which there is no corresponding "set" command (eg. "show copying").
10565 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10566 Jan Kratochvil <jan.kratochvil@redhat.com>
10568 * exec.c (section_table_available_memory): Change `len' parameter
10570 * exec.h (section_table_available_memory): Ditto.
10571 * value.h (read_value_memory): Rename the `offset' parameter to
10574 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10575 Jan Kratochvil <jan.kratochvil@redhat.com>
10577 * memrange.c (compare_mem_ranges): Mention sort order in
10578 describing comment.
10579 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10580 * tracepoint.c (traceframe_available_memory): Extend comment to
10581 mention what happens to RESULT when the target does not support
10584 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10585 Jan Kratochvil <jan.kratochvil@redhat.com>
10587 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10590 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10592 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10593 No longer handle NULL values.
10595 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10597 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10598 * value.c: Include "exceptions.h".
10599 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10601 * cp-abi.c: Include gdb_assert.h.
10602 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10603 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10605 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10606 parameters. No longer returns -1 on error.
10607 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10609 * cp-valprint.c: Include exceptions.h.
10610 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10611 the baseclass_offset. Handle unavailable base classes. Use
10612 val_print_invalid_address.
10613 * p-valprint.c: Include exceptions.h.
10614 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10615 when fetching the baseclass_offset. No longer expect
10616 baseclass_offset returning -1. Handle unavailable base classes.
10617 Use val_print_invalid_address.
10618 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10619 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10620 `embedded_offset' and `val' parameters. Adjust.
10621 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10622 parameter, and change its type to gdb_byte pointer. Add
10623 `embedded_offset' and `val' parameters. Adjust. No longer expect
10624 baseclass_offset returning -1.
10625 (value_dynamic_cast): Use value_contents_for_printing rather than
10626 value_contents. Adjust.
10627 (search_struct_field): No longer expect baseclass_offset returning
10629 (search_struct_method): If reading memory from the target is
10630 necessary, wrap it in a new value to pass to baseclass_offset. No
10631 longer expect baseclass_offset returning -1.
10632 (find_method_list): No longer expect baseclass_offset returning
10633 -1. Use value_contents_for_printing rather than value_contents.
10634 * valprint.c (val_print_invalid_address): New function.
10635 * valprint.h (val_print_invalid_address): Declare.
10636 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10637 and `val' parameters. No longer expect baseclass_offset returning
10639 * gnu-v2-abi.c: Include "exceptions.h".
10640 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10641 parameters. Handle unavailable memory. Recurse through
10642 gnuv2_baseclass_offset directly, rather than through
10643 baseclass_offset. No longer returns -1 on not found, instead
10645 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10646 `val' parameters. Adjust.
10648 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10650 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10651 almost but not quite adjacent.
10653 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10655 * value.h (value_entirely_available): Declare.
10656 * value.c (value_entirely_available): New function.
10657 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10658 real type if the pointer is unavailable.
10660 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10662 * valops.c (value_repeat): Use read_value_memory instead of
10665 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10667 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10668 * value.c (value_contents_copy_raw, value_contents_copy): New
10670 (value_primitive_field): Use value_contents_copy_raw instead of
10672 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10674 (value_array, value_slice): Ditto.
10675 * valarith.c (value_subscripted_rvalue): Use
10676 value_contents_copy_raw instead of memcpy.
10678 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10680 <unavailable> references.
10682 * valops.c (get_value_at): Use value_from_contents_and_address,
10683 avoiding read_memory.
10685 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10687 * c-valprint.c (c_val_print): Print a string with unavailable
10688 contents as an array.
10690 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10692 * value.h (unpack_bits_as_long): Delete declaration.
10693 (unpack_value_bits_as_long): Declare.
10694 (unpack_value_field_as_long): Declare.
10695 (value_field_bitfield): Declare.
10696 * value.c (unpack_bits_as_long): Rename to...
10697 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10698 value parameters. Return the extracted result in a new output
10699 parameter. If the value contents are unavailable, return false,
10700 otherwise return true.
10701 (unpack_value_bits_as_long): New.
10702 (unpack_field_as_long): Rename to...
10703 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10704 Add embedded_offset and value parameters. Return the extracted
10705 result in a new output parameter. If the value contents are
10706 unavailable, return false, otherwise return true.
10707 (unpack_value_field_as_long): New.
10708 (unpack_field_as_long_1): New.
10709 (unpack_field_as_long): Reimplement as wrapper around
10710 unpack_value_field_as_long_1.
10711 (value_field_bitfield): New function.
10712 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10713 unpack_value_bits_as_long. Mark the value as unavailable, if it
10715 * jv-valprint.c (java_print_value_fields): Use
10716 value_field_bitfield.
10717 * p-valprint.c (pascal_object_print_value_fields): Use
10718 value_field_bitfield.
10719 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10721 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10723 * value.c (get_internalvar_integer): Also return the int value of
10724 TYPE_CODE_INT INTERNALVAR_VALUE values.
10725 (set_internalvar): Don't special case TYPE_CODE_INT.
10727 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10729 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10730 INTERNALVAR_POINTER.
10732 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10733 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10734 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10736 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10738 * value.h (value_available_contents_eq): Declare.
10739 * value.c (find_first_range_overlap): New function.
10740 (value_available_contents_eq): New function.
10741 * valprint.c (val_print_array_elements): Use
10742 value_available_contents_eq.
10743 * ada-valprint.c (val_print_packed_array_elements): Use
10744 value_available_contents_eq.
10745 * jv-valprint.c (java_value_print): Use
10746 value_available_contents_eq.
10748 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10750 * target.c (target_read_live_memory): New function.
10751 (memory_xfer_live_readonly_partial): New.
10752 (memory_xfer_partial): If reading from a traceframe, fallback to
10753 reading unavailable read-only memory from read-only regions of
10754 live target memory.
10755 * tracepoint.c (disconnect_tracing): Adjust.
10756 (set_current_traceframe): New, factored out from
10757 set_traceframe_number.
10758 (set_traceframe_number): Reimplement to only change the traceframe
10759 number on the GDB side.
10760 (do_restore_current_traceframe_cleanup): Adjust.
10761 (make_cleanup_restore_traceframe_number): New.
10762 (cur_traceframe_number): New global.
10763 (tfile_open): Set cur_traceframe_number to no traceframe.
10764 (set_tfile_traceframe): New function.
10765 (tfile_trace_find): If looking up a traceframe using any method
10766 other than by number, make sure the current tfile traceframe
10767 matches gdb's current traceframe. Update the current tfile
10768 traceframe if the lookup succeeded.
10769 (tfile_fetch_registers, tfile_xfer_partial)
10770 (tfile_get_trace_state_variable_value): Make sure the remote
10771 traceframe matches gdb's current traceframe.
10772 * remote.c (remote_traceframe_number): New global.
10773 (remote_open_1): Set it to -1.
10774 (set_remote_traceframe): New function.
10775 (remote_fetch_registers, remote_store_registers)
10776 (remote_xfer_memory, remote_xfer_partial)
10777 (remote_get_trace_state_variable_value): Make sure the remote
10778 traceframe matches gdb's current traceframe.
10779 (remote_trace_find): If looking up a traceframe using any method
10780 other than by number, make sure the current remote traceframe
10781 matches gdb's current traceframe. Update the current remote
10782 traceframe if the lookup succeeded.
10783 * infrun.c (fetch_inferior_event): Adjust.
10784 * tracepoint.h (set_current_traceframe): Declare.
10785 (get_traceframe_number, set_traceframe_number): Add describing
10788 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10790 Mark pieces of values as unavailable if the corresponding memory
10793 * valops.c: Include tracepoint.h.
10794 (value_fetch_lazy): Use read_value_memory.
10795 (read_value_memory): New.
10796 * value.h (read_value_memory): Declare.
10797 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10798 * exec.c (section_table_available_memory): New function.
10799 * exec.h (section_table_available_memory): Declare.
10801 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10803 * Makefile.in (SFILES): Add memrange.c.
10804 (HFILES_NO_SRCDIR): Add memrange.h.
10805 (COMMON_OBS): Add memrange.o.
10806 * memrange.c: New file.
10807 * memrange.h: New file.
10808 * tracepoint.c: Include memrange.h.
10809 (struct mem_range): Delete.
10810 (mem_range_s): Delete.
10811 (traceframe_available_memory): New function.
10812 * tracepoint.h (traceframe_available_memory): Declare.
10814 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10816 * target.h (struct traceframe_info): Forward declare.
10817 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10818 (struct target_ops) <to_traceframe_info>: New field.
10819 (target_traceframe_info): New.
10820 * target.c (update_current_target): Inherit and default
10821 to_traceframe_info.
10822 * remote.c (PACKET_qXfer_traceframe_info): New.
10823 (remote_protocol_features): Register qXfer:traceframe-info:read.
10824 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10825 (remote_traceframe_info): New.
10826 (init_remote_ops): Install it.
10827 (_initialize_remote): Install "set/show remote traceframe-info"
10829 * tracepoint.h (parse_traceframe_info): Declare.
10830 * tracepoint.c (struct mem_range): New.
10831 (mem_range_s): New typedef.
10832 (struct traceframe_info): New.
10833 (traceframe_info): New global.
10834 (free_traceframe_info): New function.
10835 (clear_traceframe_info): New function.
10836 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10838 (build_traceframe_info): New function.
10839 (tfile_traceframe_info): New function.
10840 (init_tfile_ops): Install tfile_traceframe_info.
10841 (traceframe_info_start_memory, free_result): New functions.
10842 (memory_attributes, traceframe_info_elements): New globals.
10843 (parse_traceframe_info, get_traceframe_info): New functions.
10844 * features/traceframe-info.dtd: New file.
10845 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10847 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10849 Base support for <unavailable> value contents.
10851 * value.h (value_bytes_available): Declare.
10852 (mark_value_bytes_unavailable): Declare.
10853 * value.c (struct range): New struct.
10854 (range_s): New typedef.
10855 (ranges_overlap): New function.
10856 (range_lessthan): New function.
10857 (ranges_contain_p): New function.
10858 (struct value) <unavailable>: New field.
10859 (value_bytes_available): New function.
10860 (mark_value_bytes_unavailable): New function.
10861 (require_not_optimized_out): Constify parameter.
10862 (require_available): New function.
10863 (value_contents_all, value_contents): Require all bytes be
10865 (value_free): Free `unavailable'.
10866 (value_copy): Copy `unavailable'.
10867 * valprint.h (val_print_unavailable): Declare.
10868 * valprint.c (valprint_check_validity): Rename `offset' parameter
10869 to `embedded_offset'. If printing a scalar, check whether the
10870 value chunk is available.
10871 (val_print_unavailable): New.
10872 (val_print_scalar_formatted): Check whether the value is
10874 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10875 pretty-printing unavailable values.
10877 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10879 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10880 * c-typeprint.c (c_type_print_args): Update the function comment. New
10881 variable param_type, initialize it. Remove const/volatile qualifiers
10882 for language_cplus and !show_artificial. Use param_type.
10884 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10886 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10887 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10888 * symtab.h (struct symtab) <next>: Comment extension.
10890 2011-02-12 Yao Qi <yao@codesourcery.com>
10892 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10894 2011-02-11 Yao Qi <yao@codesourcery.com>
10896 * common/Makefile.in: Add copyright header.
10898 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10900 * infrun.c (proceed): Move switching out and in of tfind mode from
10902 (fetch_inferior_event): ... to here.
10904 2011-02-11 Yao Qi <yao@codesourcery.com>
10906 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10908 * configure.ac: Add common to sub dir.
10909 * configure: Regenerate.
10911 2011-02-11 Yao Qi <yao@codesourcery.com>
10915 * common/Makefile.in: New.
10916 * common/configure.ac: New.
10917 * common/aclocal.m4: New.
10918 * common/configure: Generate.
10920 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10922 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10923 side of the parenthesis.
10926 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10927 * vec.h (VEC_block_remove): Fix comment.
10929 2011-02-08 Michael Snyder <msnyder@vmware.com>
10931 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10933 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10935 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10936 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10939 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10942 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10944 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10945 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10947 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10949 * dwarf2read.c (read_subroutine_type): Set special calling
10950 convention flag for functions compiled by IBM XL C for OpenCL.
10951 * ppc-sysv-tdep.c: Include "dwarf2.h"
10952 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10953 calling convention.
10954 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10955 IBM OpenCL vector types calling convention.
10956 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10957 (ppc_sysv_abi_broken_return_value): Likewise.
10958 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10959 types calling convention.
10960 (ppc64_sysv_abi_return_value): Likewise.
10961 * spu-tdep.c: Include "dwarf2.h"
10962 (spu_return_value): Implement IBM OpenCL vector types calling
10965 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10967 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10968 correct ABI for AltiVec vector arguments.
10970 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10972 * valprint.c (val_print): Extend comment.
10973 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10974 interface explanation to val_print.
10975 (ada_val_print_array): Adjust comment to current interface.
10976 (print_field_values): Adjust comment to current interface.
10977 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10978 explanation to val_print.
10979 * f-valprint.c (f_val_print): Ditto.
10980 * jv-valprint.c (java_val_print): Ditto.
10981 * m2-valprint.c (m2_val_print): Ditto.
10982 * p-valprint.c (pascal_val_print): Ditto.
10984 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10986 * breakpoint.c (parse_breakpoint_sals): Fix description.
10988 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10989 Oguz Kayral <oguzkayral@gmail.com>
10991 * python/py-inferior.c (python_on_normal_stop): New function.
10992 (python_on_resume): New function.
10993 (python_inferior_exit): New function.
10994 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10995 inferior_exit observers.
10996 * python/py-evtregistry.c: New file.
10997 * python/py-threadevent.c : New file.
10998 * python/py-event.c: New file.
10999 * python/py-evts.c: New file.
11000 * python/py-continueevent.c: New file.
11001 * python/py-bpevent.c: New file.
11002 * python/py-signalevent.c: New file.
11003 * python/py-exetiedevent.c: New file.
11004 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
11005 Move struct breakpoint_object from here...
11006 * python/python-internal.h: ... to here.
11007 * python/py-event.h: New file.
11008 * python/py-events.h: New file.
11009 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
11010 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
11011 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
11012 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
11013 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
11014 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
11015 Add build rules for all the above.
11017 2011-02-04 Tom Tromey <tromey@redhat.com>
11019 * dwarf2read.c (dwarf2_section_empty_p): New function.
11020 (dwarf2_read_section): Use dwarf2_section_empty_p.
11021 (dwarf2_section_size): New function.
11022 (dwarf2_get_section_info): Unconditionally read section.
11023 (dwarf2_read_index): Use dwarf2_section_empty_p.
11024 (partial_read_comp_unit_head): Use dwarf2_section_size.
11025 (dwarf2_symbol_mark_computed): Likewise.
11027 2011-02-04 David Daney <ddaney@caviumnetworks.com>
11029 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
11031 2011-02-04 David Daney <ddaney@caviumnetworks.com>
11033 * mips-linux-tdep.c: Include xml-syscall.h.
11034 (mips_linux_get_syscall_number): New function.
11035 (mips_linux_init_abi): Add calls to
11036 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
11037 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11038 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
11039 * syscalls/mips-n32-linux.xml: New file.
11040 * syscalls/mips-n64-linux.xml: New file.
11041 * syscalls/mips-o32-linux.xml: New file.
11043 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
11045 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
11046 Complain about inverted range entries.
11047 (dwarf2_record_block_ranges): Likewise.
11049 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
11052 * breakpoint.c (update_watchpoint): Fix name of the
11053 update_global_location_list function.
11054 (print_one_breakpoint): Fix typo.
11055 (_initialize_breakpoint): Remove extra space in hbreak help
11057 * breakpoint.h (struct bp_location) <length>: Fix field
11060 2011-02-04 Pedro Alves <pedro@codesourcery.com>
11062 * regcache.c (registers_changed_ptid): Don't explictly always
11063 clear `current_regcache'. Only clear current_thread_ptid and
11064 current_thread_arch when PTID matches. Only reinit the frame
11065 cache if PTID matches the current inferior_ptid. Move alloca(0)
11067 (registers_changed): ... here.
11069 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
11071 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
11072 starts with __stack_chk_guard as stack guard symbol.
11074 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
11076 * disasm.c (compare_lines): Handle the end of sequence markers
11077 within the line table to better support disassembling over
11078 compilation unit boundaries.
11080 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11082 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
11083 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
11084 implementation even if no symbols are available.
11085 (thumb_analyze_prologue): Update call to skip_prologue_function.
11086 (arm_analyze_prologue): Likewise.
11088 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11090 * arm-tdep.c: Include "observer.h".
11091 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
11092 (arm_exidx_data_key): New static variable.
11093 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
11094 (struct arm_exidx_data): Likewise.
11095 (arm_exidx_data_free): New function.
11096 (arm_compare_exidx_entries): Likewise.
11097 (arm_obj_section_from_vma): Likewise.
11098 (arm_exidx_new_objfile): Likewise.
11099 (arm_find_exidx_entry): Likewise.
11100 (arm_exidx_fill_cache): Likewise.
11101 (arm_exidx_unwind_sniffer): Likewise.
11102 (arm_exidx_unwind): New global variable.
11103 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
11104 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
11105 observer. Register arm_exidx_data_key as objfile data.
11107 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11109 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
11110 due to accessing uninitialized variable. Fix indentation.
11112 2011-02-02 Pedro Alves <pedro@codesourcery.com>
11114 * c-valprint.c (c_value_print): When doing virtual base pointer
11115 adjustment, create a new value with adjusted contents rather than
11116 changing the contents of the value being printed (and getting it
11119 2011-02-02 Pedro Alves <pedro@codesourcery.com>
11121 * xml-support.c (xml_find_attribute): New.
11122 (xinclude_start_include): Use it.
11123 * xml-support.h (xml_find_attribute): Declare.
11124 * memory-map.c (memory_map_start_memory)
11125 (memory_map_start_property): Use xml_find_attribute.
11126 * osdata.c (osdata_start_osdata, osdata_start_column): Use
11127 xml_find_attribute.
11128 * remote.c (start_thread): Use xml_find_attribute.
11129 * solib-target.c (library_list_start_segment)
11130 (library_list_start_section, library_list_start_library)
11131 (library_list_start_list): Use xml_find_attribute.
11132 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
11133 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
11134 (tdesc_start_field): Use xml_find_attribute.
11136 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
11138 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
11139 (BUILD_OCL_VTYPES): Update.
11141 2011-02-02 Joel Brobecker <brobecker@adacore.com>
11143 * configure.ac: Work around non-GNU sed limitation when computing
11144 python version number.
11145 * configure: Regenerate.
11147 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11149 Fix debug printing of TYPE_INSTANCE.
11150 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
11151 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
11153 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11155 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
11156 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
11157 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
11158 * ada-operator.inc: Rename the file to ...
11159 * ada-operator.def: ... here, wrap all the entries by macro OP.
11160 * expprint.c (op_name_standard): Remove all the entries. Include
11161 "std-operator.def" instead.
11162 * expression.h (enum exp_opcode): Include "std-operator.def" and
11163 "ada-operator.def". Move all the entries ...
11164 * std-operator.def: ... here, wrap all the entries by macro OP.
11166 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
11168 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
11169 * breakpoint.c (remove_jit_event_breakpoints): New function.
11170 * jit.c (jit_descriptor_addr): Delete.
11171 (registering_code): Delete.
11172 (clear_int): Delete.
11173 (jit_inferior_data): New variable.
11174 (struct jit_inferior_data): New type.
11175 (get_jit_inferior_data): New function.
11176 (jit_inferior_data_cleanup): New function.
11177 (jit_read_descriptor): Adjust.
11178 (jit_register_code): Adjust.
11179 (jit_breakpoint_re_set_internal): New function; move code here ...
11180 (jit_inferior_init): ... from here.
11181 (jit_breakpoint_re_set): Adjust.
11182 (jit_reset_inferior_data_and_breakpoints): New function.
11183 (jit_inferior_created_observer): Adjust.
11184 (jit_inferior_exit_hook): Adjust.
11185 (jit_executable_changed_observer): New function.
11186 (jit_event_handler): Adjust.
11187 (_initialize_jit): Adjust.
11189 2011-01-31 Michael Snyder <msnyder@vmware.com>
11191 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
11194 2011-01-31 Tom Tromey <tromey@redhat.com>
11197 * python/python.c (execute_gdb_command): Call
11198 prevent_dont_repeat.
11199 * top.c (suppress_dont_repeat): New global.
11200 (dont_repeat): Use it.
11201 (prevent_dont_repeat): New function.
11202 * command.h (prevent_dont_repeat): Declare.
11204 2011-01-31 Tom Tromey <tromey@redhat.com>
11206 * infcmd.c (finish_backward): Use breakpoint_set_silent.
11207 * python/py-breakpoint.c (bppy_set_silent): Use
11208 breakpoint_set_silent.
11209 (bppy_set_thread): Use breakpoint_set_thread.
11210 (bppy_set_task): Use breakpoint_set_task.
11211 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
11212 (breakpoint_set_task): Declare.
11213 (make_breakpoint_silent): Remove.
11214 * breakpoint.c (breakpoint_set_silent): New function.
11215 (breakpoint_set_thread): Likewise.
11216 (breakpoint_set_task): Likewise.
11217 (make_breakpoint_silent): Remove.
11219 2011-01-31 Tom Tromey <tromey@redhat.com>
11221 * breakpoint.h (user_breakpoint_p): Declare.
11222 * breakpoint.c (user_breakpoint_p): New function.
11223 (breakpoint_1): Use it.
11224 (save_breakpoints): Likewise.
11226 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11228 * configure.ac: Add handling of Python distribution on Windows.
11229 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
11230 sysconfig variables are not defined, then do not use them.
11231 On Windows, if LIBPL is not defined, then use prefix + '/libs'
11232 instead. On Windows, return all paths using forward-slashes
11233 rather than backslashes.
11235 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11237 * configure.ac: Remove fallback behavior for building
11238 against Python. Remove tweaking of Python include path.
11239 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
11240 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
11241 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
11242 Always restore CPPFLAGS and LIBS after linking test.
11243 * configure: Regenerated.
11244 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
11245 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
11246 * python/python-internal.h: Adjust includes of Python .h files.
11248 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11250 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
11253 2011-01-31 Joel Brobecker <brobecker@adacore.com>
11255 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
11258 2011-01-31 Yao Qi <yao@codesourcery.com>
11260 * arm-linux-nat.c: Update calls to regcache_register_status
11261 instead of regcache_valid_p.
11262 * aix-thread.c: Likewise.
11263 * i386gnu-nat.c: Likewise.
11265 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11268 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
11269 touching TYPE_FIELD_ARTIFICIAL.
11271 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
11273 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
11276 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11278 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
11279 selected, don't try iterating over the traceframe's blocks.
11280 (tfile_has_stack): If there's no traceframe selected, then there's
11282 (tfile_has_registers): If there's no traceframe selected, then
11283 there's no registers.
11285 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11287 * target.c (memory_xfer_partial): No need to restore shadows if we
11288 haven't read anything.
11290 2011-01-28 Pedro Alves <pedro@codesourcery.com>
11292 * mips-tdep.c (mips_print_register): Use get_frame_register_value
11293 and val_print_scalar_formatted.
11295 2011-01-27 Pedro Alves <pedro@codesourcery.com>
11297 * tracepoint.c (tfile_read): New.
11298 (tfile_open): Use it.
11299 (tfile_get_traceframe_address): Use it.
11300 (tfile_trace_find): Use it.
11301 (walk_blocks_callback_func): New typedef.
11302 (match_blocktype): New function.
11303 (traceframe_walk_blocks): New function.
11304 (traceframe_find_block_type): New function.
11305 (tfile_fetch_registers, tfile_xfer_partial)
11306 (tfile_get_trace_state_variable_value): Use
11307 traceframe_find_block_type and tfile_read.
11309 2011-01-26 Kevin Buettner <kevinb@redhat.com>
11311 * remote-mips.c: Add internationalization mark ups. Remove
11312 trailing \n from already marked up strings.
11314 2011-01-26 Tom Tromey <tromey@redhat.com>
11316 * python/py-prettyprint.c (print_string_repr): Clear
11317 'addressprint' option when calling val_print_string.
11318 (print_children): Handle Val_pretty_default. Clear 'addressprint'
11319 option when calling val_print_string.
11321 2011-01-26 Tom Tromey <tromey@redhat.com>
11323 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11325 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11327 (gdb_py_longest, gdb_py_ulongest): New typedefs.
11328 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11329 (gdb_py_long_as_ulongest): New defines.
11330 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11331 (gdb_py_int_as_long): Declare.
11332 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11333 GDB_PY_LL_ARG, gdb_py_object_from_longest.
11334 (valpy_long): Add comment.
11335 * python/py-utils.c (get_addr_from_python): Use
11336 gdb_py_long_as_ulongest. Handle overflow properly.
11337 (gdb_py_object_from_longest): New function.
11338 (gdb_py_object_from_ulongest): Likewise.
11339 (gdb_py_int_as_long): Likewise.
11340 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11341 * python/py-symtab.c (salpy_get_pc): Use
11342 gdb_py_long_from_ulongest.
11343 (salpy_get_line): Use PyInt_FromLong.
11344 * python/py-param.c (set_parameter_value): Use
11345 gdb_py_int_as_long.
11346 * python/py-lazy-string.c (stpy_get_address): Use
11347 gdb_py_long_from_ulongest.
11348 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11349 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11350 * python/py-breakpoint.c (bppy_set_thread): Use
11351 gdb_py_int_as_long.
11352 (bppy_set_task): Likewise.
11353 (bppy_set_ignore_count): Likewise.
11354 (bppy_set_hit_count): Likewise.
11355 * python/py-block.c (blpy_get_start): Use
11356 gdb_py_object_from_ulongest.
11357 (blpy_get_end): Likewise.
11358 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11360 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
11363 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11364 * gdb/solib.c (solib_read_symbols): Check for addr_low in
11365 equality test for objfile, initialize addr_low if needed.
11367 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11369 * tui/tui-regs.c (tui_register_format): Remove dead code.
11371 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11373 * printcmd.c (print_formatted): Use val_print_scalar_formatted
11374 instead of print_scalar_formatted.
11375 (print_scalar_formatted): Don't handle 's' format strings here,
11376 and add an assertion that we never see such format here.
11377 * valprint.h (val_print_scalar_formatted): Declare.
11378 * valprint.c (val_print_scalar_formatted): New.
11379 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11380 instead of print_scalar_formatted.
11381 * jv-valprint.c (java_val_print): Ditto.
11382 * p-valprint.c (pascal_val_print): Ditto.
11383 * ada-valprint.c (ada_val_print_1): Ditto.
11384 * f-valprint.c (f_val_print): Ditto.
11385 * infcmd.c (registers_info): Ditto.
11386 * m2-valprint.c (m2_val_print): Ditto.
11388 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11390 * m2-valprint.c (print_unbounded_array): Pass
11391 value_contents_for_printing rather than value_contents, to
11392 m2_print_array_contents. Also pass in the value.
11394 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11396 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11397 (save_gdb_index_command): Switch to .gdb_index version 4.
11399 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11401 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11402 than frame_register, and always pass a valid value to val_print.
11404 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11406 Centralize printing "<optimized out>".
11408 * valprint.h (val_print_optimized_out): Declare.
11409 * cp-valprint.c (cp_print_value_fields): Use
11410 val_print_optimized_out.
11411 * jv-valprint.c (java_print_value_fields): Ditto.
11412 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11413 * printcmd.c (print_formatted): Ditto.
11414 * valprint.c (valprint_check_validity): Ditto.
11415 (value_check_printable): Ditto.
11416 (val_print_optimized_out): New.
11418 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11420 * infcmd.c (default_print_registers_info): Allocate values so to
11421 never pass a NULL value to val_print.
11423 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11425 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11426 boolean. Make sure to always pass a value that matches the
11427 contents buffer to callees. Preserve `address' for following
11429 * value.c (value_contents_for_printing_const): New.
11430 (value_address): Constify value argument.
11431 * value.h (value_contents_for_printing_const): Declare.
11432 (value_address): Constify value argument.
11434 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11436 * regcache.c (struct regcache_descr): Rename
11437 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11438 and sizeof_cooked_register_valid_p to
11439 sizeof_cooked_register_status.
11440 (init_regcache_descr): Adjust.
11441 (struct regcache): Rename register_valid_p field to
11443 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11444 (do_cooked_read): Adjust.
11445 (regcache_valid_p): Rename to ...
11446 (regcache_register_status): ... this. Adjust.
11447 (regcache_invalidate): Adjust.
11448 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11450 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11451 as unavailable, not valid.
11452 (regcache_dump): Adjust.
11453 * regcache.h (enum register_status): New.
11454 (regcache_register_status): Declare.
11455 (regcache_invalidate): Delete declaration.
11456 * corelow.c (get_core_registers): Adjust.
11457 * tracepoint.c (tfile_fetch_registers): Adjust.
11458 * trad-frame.c (REG_VALUE): Rename to ...
11459 (TF_REG_VALUE): ... this.
11460 (REG_UNKNOWN): Rename to ...
11461 (TF_REG_UNKNOWN): ... this.
11462 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11463 * mi/mi-main.c (register_changed_p): Adjust.
11465 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11467 * regcache.c (struct regcache_descr): Remove outdated comment.
11468 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11470 (regcache_xmalloc): Rename to ...
11471 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11472 Allocate the regcache type accordingly.
11473 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11474 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11475 cooked registers, not raw.
11476 (regcache_dup_no_passthrough): Delete.
11477 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11478 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11479 mention obsolete write_register_bytes.
11480 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11482 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11484 Stop remote_read_bytes from handling partial reads itself.
11486 * remote-fileio.c: Include target.h.
11487 (remote_fileio_write_bytes): Delete.
11488 (remote_fileio_func_open, remote_fileio_func_write)
11489 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11490 target_read_memory.
11491 (remote_fileio_func_stat): Use target_read_memory and
11492 target_write_memory.
11493 (remote_fileio_func_gettimeofday): Use target_write_memory.
11494 (remote_fileio_func_system): Use target_read_memory.
11495 * remote.c (remote_write_bytes): Make it static.
11496 (remote_read_bytes): Don't handle partial reads here.
11497 * remote.h (remote_read_bytes): Delete declaration.
11499 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11501 Simplify XML parsing a bit.
11503 * xml-support.h (gdb_xml_parse_quick): Declare.
11504 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11505 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11507 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11508 gdb_xml_create_parser_and_cleanup_1.
11509 (gdb_xml_parse_quick): New.
11510 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11511 * osdata.c (osdata_parse): Ditto.
11512 * remote.c (remote_threads_info): Ditto.
11513 * solib-target.c (solib_target_parse_libraries): Ditto.
11514 * xml-syscall.c (syscall_parse_xml): Ditto.
11515 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11517 2011-01-24 Kevin Buettner <kevinb@redhat.com>
11519 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11520 with remote-mips.o added to gdb_target_obs.
11521 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11523 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11525 * ada-valprint.c (val_print_packed_array_elements): Pass the
11526 correct struct value to val_print.
11527 (ada_val_print_1): Ditto.
11529 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11531 Don't lose embedded_offset in printing routines throughout.
11533 * valprint.h (val_print_array_elements): Change prototype.
11534 * valprint.c (val_print_array_elements): Add `embedded_offset'
11535 parameter, and adjust to pass it down to val_print, while passing
11536 `valaddr' or `address' unmodified. Take embedded_offset into
11537 account when checking repetitions.
11538 * c-valprint.c (c_val_print): Pass embedded_offset to
11539 val_print_array_elements instead of adjusting `valaddr' and
11541 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11542 embedded_offset to val_print_array_elements instead of adjusting
11544 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11545 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11546 val_print_array_elements and pascal_object_print_value_fields
11547 instead of adjusting `valaddr'.
11548 (pascal_object_print_value_fields): Add `offset' parameter, and
11550 (pascal_object_print_value): Add `offset' parameter, and adjust to
11552 (pascal_object_print_static_field): Use
11553 value_contents_for_printing/value_embedded_offset, rather than
11555 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11556 parameter, and adjust to use it. Use
11557 value_contents_for_printing/value_embedded_offset, rather than
11559 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11560 (ada_val_print_array): Add `offset' parameter, and adjust to use
11562 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11563 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11564 Instead work with offsets. Use
11565 value_contents_for_printing/value_embedded_offset, rather than
11566 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11567 and use value_from_pointer to extract a target pointer, rather
11568 than value_from_longest.
11569 (print_variant_part): Add `offset' parameter. Replace
11570 `outer_valaddr' parameter by a new `outer_offset' parameter.
11571 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11572 (ada_value_print): Use
11573 value_contents_for_printing/value_embedded_offset, rather than
11575 (print_record): Add `offset' parameter, and adjust to pass it
11577 (print_field_values): Add `offset' parameter. Replace
11578 `outer_valaddr' parameter by a new `outer_offset' parameter.
11579 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11580 Use value_contents_for_printing/value_embedded_offset, rather than
11582 * d-valprint.c (dynamic_array_type): Use
11583 value_contents_for_printing/value_embedded_offset, rather than
11585 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11586 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11587 (java_print_value_fields): Take `offset' into account. Don't
11588 re-adjust `valaddr'. Instead pass down adjusted offsets.
11589 (java_val_print): Take `embedded_offset' into account. Pass it to
11590 java_print_value_fields.
11591 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11592 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11593 down adjusted offsets.
11594 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11595 (f_val_print): Take `embedded_offset' into account.
11597 2011-01-21 Joel Brobecker <brobecker@adacore.com>
11599 * inflow.c: Include "gdbcmd.h".
11600 (interactive_mode): New static global, moved here from top.c.
11601 (show_interactive_mode): New function, moved here from top.c.
11602 use gdb_has_a_terminal instead of input_from_terminal_p to
11603 determine the current mode.
11604 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11606 (_initialize_inflow): Add the "set/show interactive-mode"
11607 commands. Moved here from top.c, after having adjusted slightly
11609 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11611 (input_from_terminal_p): Remove handling of "interactive-mode"
11612 setting, moved to infow.c.
11613 (init_main): Remove creation of the "set/show interactive-mode"
11614 commands, moved to inflow.c.
11616 2011-01-19 Joel Brobecker <brobecker@adacore.com>
11618 * NEWS: Add entry for native ia64-hpux support.
11620 2011-01-19 Tom Tromey <tromey@redhat.com>
11623 * thread.c (free_thread): Free 'name'.
11624 (print_thread_info): Emit thread name. Change CLI output.
11625 (thread_name_command): New function.
11626 (do_captured_thread_select): Emit newline.
11627 (_initialize_thread): Register 'thread name' command.
11628 * target.h (struct target_ops) <to_thread_name>: New field.
11629 (target_thread_name): New macro.
11630 * target.c (update_current_target): Handle to_thread_name.
11631 * python/py-infthread.c (thpy_get_name): New function.
11632 (thpy_set_name): Likewise.
11633 (thread_object_getset): Add "name".
11634 * linux-nat.c (linux_nat_thread_name): New function.
11635 (linux_nat_add_target): Set to_thread_name.
11636 * gdbthread.h (struct thread_info) <name>: New field.
11638 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11640 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11641 (ada_val_print_1): Likewise.
11643 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11645 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11646 upper limit address is not greater than the function end address
11647 when the upper limit could not be computed using the debugging
11650 2011-01-17 Tom Tromey <tromey@redhat.com>
11652 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11654 * utils.c: Include gdb_regex.h.
11655 (do_regfree_cleanup): New function.
11656 (make_regfree_cleanup): Likewise.
11657 (get_regcomp_error): Likewise.
11658 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11660 2011-01-17 Tom Tromey <tromey@redhat.com>
11662 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11663 re_compile_fastmap.
11665 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11667 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11668 for internal variables.
11669 (last_was_structop): New static variable.
11670 (COMPLETE): New token.
11671 (field_exp): New rule to group all '.' suffix handling.
11672 Add mark_struct_expression calls when approriate to be able
11673 to correctly find fields for completion.
11674 (yylex): Adapt to handle field completion and set INTVAR when
11677 2011-01-14 Yao Qi <yao@codesourcery.com>
11679 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11680 save_reggroup, restore_reggroup and all_reggroup.
11682 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11684 * ada-valprint. (ada_printchar): Use the correct type length
11685 in call to ada_emit_char.
11686 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11688 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11690 * solib-som.h (hpux_major_release): Declare variable here.
11691 * solib-som.c: Remove <sys/utsname.h> header.
11692 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11693 (hpux_major_release): Make global, change default value to
11694 DEFAULT_HPUX_MAJOR_RELEASE.
11695 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11696 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11697 Add "solib-som.h" header.
11698 (set_hpux_major_release): New function.
11699 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11701 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11703 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11705 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11707 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11708 new-line at end of warning message.
11709 (ia64_hpux_store_register): Remove trailing new-line at end of
11711 * ia64-hpux-tdep.c: Rephrase comment.
11712 * solib-ia64-hpux.c (struct dld_info): Change type of field
11713 dld_flags from "long long" to ULONGEST.
11715 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11717 * target.h (deprecated_child_ops): Delete declaration.
11718 * target.c (deprecated_child_ops): Delete definition.
11720 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11722 * Makefile.in (hpux-thread.o): Delete rule.
11723 * configure.ac: Don't check for HPUX DCE threads support.
11724 * configure, config.in: Regenerate.
11725 * hppa-hpux-nat.c (child_suppress_run): Delete.
11726 (hppa_hpux_child_can_run): Delete.
11727 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11728 * hpux-thread.c: Delete.
11730 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11732 * hpux-thread.c (hpux_pid_to_str): Delete.
11734 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11736 * ada-valprint.c (ada_emit_char): Remove strange code.
11737 Check that c is <= UCHAR_MAX before passing it to isascii.
11738 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11740 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11742 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11743 to the case where instream is stdin.
11745 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11747 * ia64-tdep.h (struct regcache): Forward declare.
11748 (struct ia64_infcall_ops): New struct type.
11749 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11751 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11752 Renames ia64_find_global_pointer.
11753 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11754 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11755 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11757 (ia64_infcall_ops): New static global constant.
11758 (ia64_gdbarch_init): Set tdep->infcall_ops.
11759 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11760 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11761 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11762 (ia64_hpux_dummy_code): New static global constant.
11763 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11764 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11765 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11767 (ia64_hpux_infcall_ops): New static global constant.
11768 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11769 for inferior function calls to work properly on ia64-hpux.
11771 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11773 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11774 * ia64-tdep.h (struct frame_info): forward declaration.
11775 (struct gdbarch_tdep): Add field size_of_register_frame.
11776 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11777 to determine the size of the register frame.
11778 (ia64_size_of_register_frame): New function.
11779 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11780 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11781 (IA64_HPUX_UREG_REASON): New macro.
11782 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11784 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11785 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11786 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11789 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11791 Add support for ia64-hpux.
11792 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11793 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11795 * configure.host: Add handling for ia64-hpux hosts. Add associated
11797 * configure.tgt: Add handling for ia64-hpux targets.
11798 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11799 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11800 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11802 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11804 [ttrace] Compute thread list immediately after attach.
11805 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11807 (inf_ttrace_attach): Use it.
11809 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11811 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11812 if we could not determine the frame's function address. Instead,
11813 use the frame's PC, and then continue.
11815 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11817 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11818 not already defined.
11820 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11822 * ia64-tdep.c (ia64_struct_type_p): New function.
11823 (ia64_extract_return_value): Handle integral values that are
11824 less than 8 bytes long.
11825 (ia64_push_dummy_call): Likewise.
11827 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11829 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11830 floatformat_ia64_ext.
11831 (floatformat_ia64_ext_big): New static const.
11832 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11834 2011-01-12 Tom Tromey <tromey@redhat.com>
11836 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11838 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11839 (mi_cmd_thread_list_ids): Likewise.
11840 (mi_cmd_data_list_changed_registers): Likewise.
11841 (mi_cmd_data_list_register_values): Likewise.
11842 (mi_cmd_data_write_register_values): Likewise.
11843 (mi_cmd_data_evaluate_expression): Likewise.
11844 (mi_cmd_data_read_memory): Likewise.
11845 (mi_cmd_data_read_memory_bytes): Likewise.
11846 (mi_cmd_data_write_memory): Likewise.
11847 (mi_cmd_enable_timings): Likewise.
11848 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11849 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11850 (mi_cmd_var_delete): Likewise.
11851 (mi_cmd_var_set_format): Likewise.
11852 (mi_cmd_var_show_format): Likewise.
11853 (mi_cmd_var_info_num_children): Likewise.
11854 (mi_cmd_var_list_children): Likewise.
11855 (mi_cmd_var_info_type): Likewise.
11856 (mi_cmd_var_info_expression): Likewise.
11857 (mi_cmd_var_show_attributes): Likewise.
11858 (mi_cmd_var_assign): Likewise.
11859 (mi_cmd_var_update): Likewise.
11860 (mi_cmd_enable_pretty_printing): Likewise.
11861 (mi_cmd_var_set_update_range): Likewise.
11862 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11864 (mi_cmd_target_file_put): Likewise.
11865 (mi_cmd_target_file_delete): Likewise.
11866 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11868 (mi_cmd_stack_info_depth): Likewise.
11869 (mi_cmd_stack_list_locals): Likewise.
11870 (mi_cmd_stack_list_args): Likewise.
11871 (mi_cmd_stack_select_frame): Likewise.
11872 (mi_cmd_stack_select_frame): Likewise.
11873 (mi_cmd_stack_info_frame): Likewise.
11874 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11876 (mi_cmd_file_list_exec_source_files): Likewise.
11877 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11878 (mi_cmd_env_cd): Likewise.
11879 (mi_cmd_env_path): Likewise.
11880 (mi_cmd_env_dir): Likewise.
11881 (mi_cmd_inferior_tty_show): Likewise.
11882 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11883 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11884 (mi_cmd_break_watch): Likewise.
11886 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11888 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11889 (ppc_linux_insert_hw_breakpoint): Likewise.
11890 (ppc_linux_remove_hw_breakpoint): Likewise.
11891 (ppc_linux_insert_watchpoint): Likewise.
11893 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11894 Jan Kratochvil <jan.kratochvil@redhat.com>
11896 PR fortran/11104 and DWARF unbound arrays detection.
11897 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11898 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11899 unspecified upper bound.
11900 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11901 variables array_size_array, tmp_type and offset_item. New variable
11902 array. Remove call to f77_get_upperbound. New variables array_type
11903 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11904 the final call to deprecated_set_value_type.
11906 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11908 Make value allocations more lazy.
11909 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11910 instead of allocate_value and set_value_lazy when possible.
11911 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11912 instead of allocate_value and set_value_lazy.
11913 * findvar.c (value_of_register_lazy): Likewise.
11914 (read_var_value): Remove V preallocation, call just check_typedef in
11915 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11916 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11917 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11918 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11919 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11920 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11921 the end, remove set_value_lazy there.
11922 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11923 instead of allocate_value and set_value_lazy when possible.
11924 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11925 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11926 of allocate_value and set_value_lazy.
11927 (value_from_contents_and_address): Use allocate_value_lazy instead of
11928 allocate_value and set_value_lazy when possible.
11930 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11932 * disasm.c (dump_insns): Support dumping opcodes for MI.
11933 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11934 dumping of instruction opcodes.
11936 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11938 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11941 2011-01-11 Tom Tromey <tromey@redhat.com>
11943 * thread.c (do_captured_thread_select): Emit newline before
11946 2011-01-11 Michael Snyder <msnyder@vmware.com>
11948 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11949 * score-tdep.c: Ditto.
11950 * score-tdep.h: Ditto.
11951 * ser-base.c: Ditto.
11952 * ser-go32.c: Ditto.
11955 * ser-mingw.c: Ditto.
11956 * ser-pipe.c: Ditto.
11957 * ser-tcp.c: Ditto.
11958 * ser-unix.c: Ditto.
11959 * sh64-tdep.c: Ditto.
11960 * shnbsd-nat.c: Ditto.
11961 * sh-tdep.c: Ditto.
11962 * sh-tdep.h: Ditto.
11964 * solib-darwin.c: Ditto.
11965 * solib-frv.c: Ditto.
11967 * solib-irix.c: Ditto.
11968 * solib-osf.c: Ditto.
11969 * solib-pa64.c: Ditto.
11970 * solib-som.c: Ditto.
11971 * solib-spu.c: Ditto.
11972 * solib-sunos.c: Ditto.
11973 * solib-svr4.c: Ditto.
11975 * sol-thread.c: Ditto.
11976 * somread.c: Ditto.
11979 * sparc64-linux-tdep.c: Ditto.
11980 * sparc64-tdep.c: Ditto.
11981 * sparc-linux-nat.c: Ditto.
11982 * sparc-linux-tdep.c: Ditto.
11983 * sparc-sol2-nat.c: Ditto.
11984 * sparc-sol2-tdep.c: Ditto.
11985 * sparc-tdep.c: Ditto.
11986 * sparc-tdep.h: Ditto.
11987 * spu-tdep.c: Ditto.
11988 * stabsread.c: Ditto.
11989 * stabsread.h: Ditto.
11991 * symfile.c: Ditto.
11992 * symfile.h: Ditto.
11993 * symmisc.c: Ditto.
11997 * target-descriptions.c: Ditto.
11998 * target-descriptions.h: Ditto.
12000 * target-memory.c: Ditto.
12001 * terminal.h: Ditto.
12004 * tracepoint.c: Ditto.
12005 * tracepoint.h: Ditto.
12006 * trad-frame.h: Ditto.
12007 * typeprint.c: Ditto.
12009 2011-01-11 Michael Snyder <msnyder@vmware.com>
12011 * ui-file.c: Comment cleanup, mostly periods and spaces.
12012 * ui-file.h: Ditto.
12016 * v850-tdep.c: Ditto.
12017 * valarith.c: Ditto.
12019 * valprint.c: Ditto.
12020 * valprint.h: Ditto.
12025 * vax-tdep.c: Ditto.
12028 * version.h: Ditto.
12029 * windows-nat.c: Ditto.
12030 * windows-tdep.c: Ditto.
12031 * xcoffread.c: Ditto.
12032 * xcoffsolib.c: Ditto.
12033 * xml-support.c: Ditto.
12034 * xstormy16-tdep.c: Ditto.
12035 * xtensa-tdep.c: Ditto.
12036 * xtensa-tdep.h: Ditto.
12038 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
12040 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
12041 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
12043 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
12044 Thiago Jung Bauermann <bauerman@br.ibm.com>
12046 Implement support for PowerPC BookE ranged watchpoints.
12048 (struct breakpoint_ops) <resources_needed>: New method.
12049 Initialize to NULL in all existing breakpoint_ops instances.
12050 (struct breakpoint) <exact>: New field.
12051 (target_exact_watchpoints): Declare external global.
12052 * breakpoint.c (target_exact_watchpoints): New global flag.
12053 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
12054 b->enable_state to bp_enabled before calling
12055 hw_watchpoint_used_count.
12056 (hw_watchpoint_used_count): Iterate over all bp_locations in a
12057 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
12059 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
12060 if the watchpoint is exact.
12061 (resources_needed_watchpoint): New function.
12062 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
12063 (watch_command_1): Set b->exact if the user asked for an exact
12064 watchpoint and one can be set.
12065 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
12066 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
12067 the user asks for an exact watchpoint and one can be set. Return
12068 number of needed debug registers to watch the expression.
12069 * gdbtypes.c (is_scalar_type): New function, based on
12070 valprint.c:scalar_type_p.
12071 (is_scalar_type_recursive): New function.
12072 * gdbtypes.h (is_scalar_type_recursive): Declare.
12073 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
12074 handle regions when ranged watchpoints are available.
12075 (create_watchpoint_request): New function.
12076 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
12077 create_watchpoint_request.
12078 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
12079 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
12080 `set powerpc' and `show powerpc' commands.
12081 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12082 Mention documentation comment in the target macro.
12083 (target_region_ok_for_hw_watchpoint): Document return value.
12085 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
12087 * breakpoint.c (update_watchpoint): Decide on using a software or
12088 hardware watchpoint after the bp_locations are created.
12090 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
12092 Convert hardware watchpoints to use breakpoint_ops.
12093 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
12094 <insert_location>: ... this. Return int instead of void.
12095 Accept pointer to struct bp_location instead of pointer to
12096 struct breakpoint. Adapt all implementations.
12097 (breakpoint_ops) <remove>: Rename to...
12098 <remove_location>: ... this. Accept pointer to struct bp_location
12099 instead of pointer to struct breakpoint. Adapt all implementations.
12100 * breakpoint.c (insert_catchpoint): Delete function.
12101 (insert_bp_location): Call the watchpoint or catchpoint's
12102 breakpoint_ops.insert method.
12103 (remove_breakpoint_1): Call the watchpoint or catchpoint's
12104 breakpoint_ops.remove method.
12105 (insert_watchpoint, remove_watchpoint): New functions.
12106 (watchpoint_breakpoint_ops): New structure.
12107 (watch_command_1): Initialize the OPS field.
12108 * inf-child.c (inf_child_insert_fork_catchpoint)
12109 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
12110 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
12111 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
12113 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
12114 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
12115 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
12116 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
12117 * target.c (update_current_target): Change default implementation of
12118 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
12119 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
12120 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
12121 to_set_syscall_catchpoint to return_one.
12122 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
12123 (debug_to_insert_exec_catchpoint): Report return value.
12124 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
12125 (to_insert_exec_catchpoint): Change declaration to return int instead
12128 2011-01-11 Michael Snyder <msnyder@vmware.com>
12130 * arm-tdep.c: Internationalization.
12132 * charset.c: Ditto.
12133 * fork-child.c: Ditto.
12134 * nto-procfs.c: Ditto.
12135 * ppc-sysv-tdep.c: Ditto.
12137 * remote-mips.c: Ditto.
12139 * rs6000-nat.c: Ditto.
12140 * rs6000-tdep.c: Ditto.
12144 * xml-support.c: Ditto.
12145 * mi/mi-cmd-break.c: Ditto.
12146 * mi/mi-cmd-var.c: Ditto.
12147 * mi/mi-interp.c: Ditto.
12148 * mi/mi-main.c: Ditto.
12150 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
12152 * remote-sim.c (gdbsim_store_register): Update API to
12153 sim_store_register to check more error conditions.
12155 2011-01-10 Michael Snyder <msnyder@vmware.com>
12157 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
12158 * nto-tdep.c: Ditto.
12159 * nto-tdep.h: Ditto.
12160 * objc-exp.y: Ditto.
12161 * objc-lang.c: Ditto.
12162 * objfiles.c: Ditto.
12163 * objfiles.h: Ditto.
12164 * observer.c: Ditto.
12165 * opencl-lang.c: Ditto.
12168 * parser-defs.h: Ditto.
12171 * posix-hdep.c: Ditto.
12172 * ppcbug-rom.c: Ditto.
12173 * ppc-linux-nat.c: Ditto.
12174 * ppc-linux-tdep.c: Ditto.
12175 * ppc-linux-tdep.h: Ditto.
12176 * ppcnbsd-tdep.c: Ditto.
12177 * ppcobsd-tdep.c: Ditto.
12178 * ppcobsd-tdep.h: Ditto.
12179 * ppc-sysv-tdep.c: Ditto.
12180 * ppc-tdep.h: Ditto.
12181 * printcmd.c: Ditto.
12182 * proc-abi.c: Ditto.
12183 * proc-flags.c: Ditto.
12185 * proc-utils.h: Ditto.
12186 * progspace.h: Ditto.
12187 * prologue-value.c: Ditto.
12188 * prologue-value.h: Ditto.
12189 * psympriv.h: Ditto.
12190 * psymtab.c: Ditto.
12191 * p-typeprint.c: Ditto.
12192 * p-valprint.c: Ditto.
12193 * ravenscar-sparc-thread.c: Ditto.
12194 * ravenscar-thread.c: Ditto.
12195 * ravenscar-thread.h: Ditto.
12197 * regcache.c: Ditto.
12198 * regcache.h: Ditto.
12200 * remote-fileio.c: Ditto.
12201 * remote-fileio.h: Ditto.
12203 * remote-m32r-sdi.c: Ditto.
12204 * remote-mips.c: Ditto.
12205 * remote-sim.c: Ditto.
12206 * rs6000-aix-tdep.c: Ditto.
12207 * rs6000-nat.c: Ditto.
12208 * rs6000-tdep.c: Ditto.
12210 2011-01-10 Michael Snyder <msnyder@vmware.com>
12212 * charset.c (validate): Internationalization.
12213 * coffread.c (read_one_sym): Ditto.
12214 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
12215 * h8300-tdep.c (H8300_extract_return_value): Ditto.
12216 * inflow.c (new_tty): Ditto.
12217 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
12218 * m32c-tdep.c (m32c_return_value): Ditto.
12219 * mep-tdep.c (mep_store_return_value): Ditto.
12220 * score-tdep.c (score7_fetch_insn): Ditto.
12221 * ser-mingw.c (pipe_windows_open): Ditto.
12222 * sh64-tdep.c (sh64_extract_return_value): Ditto.
12223 * spu-tdep.c (spu_register_type): Ditto.
12224 * tracepoint.c (trace_find_command): Ditto.
12225 * valarith.c (value_pos): Ditto.
12227 2011-01-10 Joel Brobecker <brobecker@adacore.com>
12229 * ada-valprint.c (printstr): Minor comment reformatting.
12231 2011-01-08 Michael Snyder <msnyder@vmware.com>
12233 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
12236 2011-01-08 Michael Snyder <msnyder@vmware.com>
12238 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
12239 * hppa-hpux-tdep.c: Ditto.
12240 * hppa-linux-nat.c: Ditto.
12241 * hppa-linux-tdep.c: Ditto.
12242 * hppanbsd-tdep.c: Ditto.
12243 * hppa-tdep.c: Ditto.
12244 * hppa-tdep.h: Ditto.
12245 * hpux-thread.c: Ditto.
12246 * i386-cygwin-tdep.c: Ditto.
12247 * i386-darwin-nat.c: Ditto.
12248 * i386gnu-nat.c: Ditto.
12249 * i386-linux-nat.c: Ditto.
12250 * i386-linux-tdep.c: Ditto.
12251 * i386-nat.c: Ditto.
12252 * i386-nat.h: Ditto.
12253 * i386nbsd-tdep.c: Ditto.
12254 * i386-sol2-nat.c: Ditto.
12255 * i386-stub.c: Ditto.
12256 * i386-tdep.c: Ditto.
12257 * i386-tdep.h: Ditto.
12258 * i387-tdep.c: Ditto.
12259 * ia64-linux-nat.c: Ditto.
12260 * ia64-linux-tdep.c: Ditto.
12261 * ia64-tdep.c: Ditto.
12262 * infcall.c: Ditto.
12263 * infcall.h: Ditto.
12265 * inferior.c: Ditto.
12266 * inferior.h: Ditto.
12267 * infloop.c: Ditto.
12270 * interps.c: Ditto.
12271 * interps.h: Ditto.
12272 * iq2000-tdep.c: Ditto.
12273 * irix5-nat.c: Ditto.
12277 * jv-lang.c: Ditto.
12278 * jv-lang.h: Ditto.
12279 * jv-typeprint.c: Ditto.
12280 * jv-valprint.c: Ditto.
12281 * language.c: Ditto.
12282 * language.h: Ditto.
12283 * linespec.c: Ditto.
12284 * linux-fork.c: Ditto.
12285 * linux-nat.c: Ditto.
12286 * linux-thread-db.c: Ditto.
12287 * lm32-tdep.c: Ditto.
12289 2011-01-08 Michael Snyder <msnyder@vmware.com>
12291 * m2-exp.y: Comment cleanup, mostly periods and spaces.
12292 * m2-lang.c: Ditto.
12293 * m2-typeprint.c: Ditto.
12294 * m2-valprint.c: Ditto.
12295 * m32c-tdep.c: Ditto.
12296 * m32r-linux-nat.c: Ditto.
12297 * m32r-rom.c: Ditto.
12298 * m32r-tdep.c: Ditto.
12299 * m32r-tdep.h: Ditto.
12300 * m68hc11-tdep.c: Ditto.
12301 * m58klinux-nat.c: Ditto.
12302 * m68k-tdep.c: Ditto.
12303 * m88k-tdep.c: Ditto.
12304 * m88k-tdep.h: Ditto.
12305 * machoread.c: Ditto.
12306 * macrocmd.c: Ditto.
12307 * macroexp.c: Ditto.
12308 * macrotab.c: Ditto.
12311 * mdebugread.c: Ditto.
12312 * mdebugread.h: Ditto.
12313 * memattr.c: Ditto.
12314 * memattr.h: Ditto.
12315 * memory-map.h: Ditto.
12316 * mep-tdep.c: Ditto.
12317 * microblaze-rom.c: Ditto.
12318 * microblaze-tdep.c: Ditto.
12319 * minsyms.c: Ditto.
12320 * mips-irix-tdep.c: Ditto.
12321 * mips-linux-nat.c: Ditto.
12322 * mips-linux-tdep.c: Ditto.
12323 * mips-linux-tdep.h: Ditto.
12324 * mipsnbsd-nat.c: Ditto.
12325 * mipsnbsd-tdep.c: Ditto.
12326 * mipsread.c: Ditto.
12327 * mips-tdep.c: Ditto.
12328 * mips-tdep.h: Ditto.
12329 * mn10300-linux-tdep.c: Ditto.
12330 * mn10300-tdep.c: Ditto.
12331 * mn10300-tdep.h: Ditto.
12332 * monitor.c: Ditto.
12333 * monitor.h: Ditto.
12334 * moxie-tdep.c: Ditto.
12335 * moxie-tdep.h: Ditto.
12336 * mt-tdep.c: Ditto.
12338 2011-01-08 Mike Frysinger <vapier@gentoo.org>
12340 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12342 2011-01-08 Robert Millan <rmh@gnu.org>
12344 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12346 2011-01-07 Michael Snyder <msnyder@vmware.com>
12348 * charset.c (_initialize_charset): Fix typo in string.
12350 2011-01-07 Michael Snyder <msnyder@vmware.com>
12352 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12354 * tui/tui-layout.c (tui_set_layout_for_display_command):
12355 Split line so that operator goes to beginning of line.
12356 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12357 assignment out of if statement.
12359 2011-01-07 Michael Snyder <msnyder@vmware.com>
12361 * ada-lang.c: Comment cleanup, mostly periods and spaces.
12362 * ada-lang.h: Ditto.
12363 * ada-tasks.c: Ditto.
12364 * ada-valprint.c: Ditto.
12365 * aix-threads.c: Ditto.
12366 * alpha-linux-nat.c: Ditto.
12367 * alpha-linux-tdep.c: Ditto.
12368 * alpha-mdebug-tdep.c: Ditto.
12369 * alpha-nat.c: Ditto.
12370 * alpha-osf1-tdep.c: Ditto.
12371 * alpha-tdep.c: Ditto.
12372 * alphabsd-nat.c: Ditto.
12373 * alphabsd-tdep.c: Ditto.
12374 * amd64-darwin-tdep.c: Ditto.
12375 * amd64-linux-nat.c: Ditto.
12376 * amd64-linux-tdep.c: Ditto.
12377 * amd64-sol2-tdep.c: Ditto.
12378 * amd64-tdep.c: Ditto.
12379 * amd64-fbsd-tdep.c: Ditto.
12380 * amd64-nbsd-tdep.c: Ditto.
12381 * amd64-obsd-tdep.c: Ditto.
12382 * amd64-linux-nat.c: Ditto.
12383 * amd64-linux-tdep.c: Ditto.
12384 * arm-tdep.c: Ditto.
12385 * arm-tdep.h: Ditto.
12386 * armnbsd-nat.c: Ditto.
12387 * avr-tdep.c: Ditto.
12388 * bfin-tdep.c: Ditto.
12389 * bsd-kvm.c: Ditto.
12390 * c-typeprintc: Ditto.
12391 * c-valprint.c: Ditto.
12392 * coff-pe-read.h: Ditto.
12393 * coffreead.c: Ditto.
12394 * cris-tdep.c: Ditto.
12396 * darwin-nat-info.c: Ditto.
12397 * darwin-nat.c: Ditto.
12398 * dbug-rom.c: Ditto.
12399 * dbxread.c: Ditto.
12402 * dec-thread.c: Ditto.
12404 * demangle.c: Ditto.
12405 * dicos-tdep.c: Ditto.
12406 * dictionary.c: Ditto.
12407 * dictionary.h: Ditto.
12408 * dink32-rom.c: Ditto.
12410 * doublest.c: Ditto.
12412 * dummy-frame.c: Ditto.
12413 * dwarf2-frame.c: Ditto.
12414 * dwarf2expr.c: Ditto.
12415 * dwarf2loc.c: Ditto.
12416 * dwarf2read.c: Ditto.
12417 * elfread.c: Ditto.
12418 * environ.c: Ditto.
12420 * event-top.h: Ditto.
12421 * exceptions.c: Ditto.
12422 * exceptions.h: Ditto.
12424 * expprint.c: Ditto.
12425 * expression.h: Ditto.
12429 * f-typeprint.c: Ditto.
12430 * f-valprint.c: Ditto.
12431 * fbsd-nat.c: Ditto.
12432 * findvar.c: Ditto.
12433 * fork-child.c: Ditto.
12436 * frv-linux-tdep.c: Ditto.
12437 * frv-tdep.c: Ditto.
12439 * gdb-stabs.h: Ditto.
12440 * gdb_assert.h: Ditto.
12441 * gdb_string.h: Ditto.
12442 * gdb_thread_db.h: Ditto.
12443 * gdb_wait.h: Ditto.
12444 * gdbarch.sh: Ditto.
12445 * gdbcore.h: Ditto.
12446 * gdbthread.h: Ditto.
12447 * gdbtypes.c: Ditto.
12448 * gdbtypes.h: Ditto.
12449 * gnu-nat.c: Ditto.
12450 * gnu-nat.h: Ditto.
12451 * gnu-v2-abi.c: Ditto.
12452 * gnu-v3-abi.c: Ditto.
12453 * go32-nat.c: Ditto.
12454 * gdbarch.c: Regenerate.
12455 * gdbarch.h: Regenerate.
12457 2011-01-07 Michael Snyder <msnyder@vmware.com>
12459 * ax-gdb.c: Adjust some long output strings.
12460 * breakpoint.c: Ditto.
12461 * charset.c: Ditto.
12463 * infcall.c: Ditto.
12465 * linux-nat.c: Ditto.
12466 * solib-pa64.c: Ditto.
12467 * solib-som.c: Ditto.
12469 2011-01-06 Tom Tromey <tromey@redhat.com>
12473 * python/python.c (GdbMethods): Add "newest_frame" method.
12474 * python/python-internal.h (gdbpy_newest_frame): Declare.
12475 * python/py-frame.c (gdbpy_newest_frame): New function.
12477 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12479 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12480 * jit.c (jit_debug): New variable.
12481 (show_jit_debug): New function.
12482 (struct target_buffer): Use ULONGEST.
12483 (bfd_open_from_target_memory): Likewise.
12484 (jit_register_code, jit_inferior_init): Add debug output.
12485 (_initialize_jit): Register "debug jit" command.
12487 2011-01-06 Tom Tromey <tromey@redhat.com>
12489 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12490 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12493 2011-01-06 Tom Tromey <tromey@redhat.com>
12495 * python/py-frame.c (frapy_block): Use get_frame_block.
12497 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12499 Do not stop on SIGPRIO signals by default
12500 * infrun.c (_initialize_infrun): Unset signal_stop and
12501 signal_print for TARGET_SIGNAL_PRIO.
12503 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12505 * ada-tasks.c: Fix style violation in comment.
12507 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12509 * linespec.c (decode_compound, find_method): Remove trailing \n
12510 at end of error string.
12511 * solib-irix.c (irix_current_sos): Likewise.
12512 * varobj.c (uninstall_variable): Likewise.
12514 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12516 * copyright.py: New script.
12517 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12518 Launch emacs without exec'ing. Call copyright.py afterwards.
12520 2011-01-05 Michael Snyder <msnyder@vmware.com>
12522 * addrmap.c: Shorten lines of >= 80 columns.
12523 * arch-utils.c: Ditto.
12524 * arch-utils.h: Ditto.
12526 * ax-general.c: Ditto.
12528 * blockframe.c: Ditto.
12529 * breakpoint.c: Ditto.
12530 * buildsym.c: Ditto.
12532 * c-typeprint.c: Ditto.
12533 * charset.c: Ditto.
12534 * coffread.c: Ditto.
12535 * command.h: Ditto.
12536 * corelow.c: Ditto.
12538 * cp-namespace.c: Ditto.
12539 * cp-support.c: Ditto.
12540 * dbug-rom.c: Ditto.
12541 * dbxread.c: Ditto.
12545 * dictionary.c: Ditto.
12547 * doublest.c: Ditto.
12548 * dwarf2-frame.c: Ditto.
12549 * dwarf2expr.c: Ditto.
12550 * dwarf2loc.c: Ditto.
12551 * dwarf2read.c: Ditto.
12552 * elfread.c: Ditto.
12554 * event-loop.c: Ditto.
12555 * event-loop.h: Ditto.
12556 * exceptions.h: Ditto.
12558 * expprint.c: Ditto.
12559 * expression.h: Ditto.
12561 * f-valprint.c: Ditto.
12562 * findcmd.c: Ditto.
12563 * frame-base.c: Ditto.
12564 * frame-unwind.c: Ditto.
12565 * frame-unwind.h: Ditto.
12569 * gdb-stabs.h: Ditto.
12570 * gdb_assert.h: Ditto.
12571 * gdb_dirent.h: Ditto.
12572 * gdb_obstack.h: Ditto.
12573 * gdbcore.h: Ditto.
12574 * gdbtypes.c: Ditto.
12575 * gdbtypes.h: Ditto.
12576 * inf-ttrace.c: Ditto.
12577 * infcall.c: Ditto.
12581 * inline-frame.h: Ditto.
12582 * language.c: Ditto.
12583 * language.h: Ditto.
12584 * libunwind-frame.c: Ditto.
12585 * libunwind-frame.h: Ditto.
12586 * linespec.c: Ditto.
12587 * linux-nat.c: Ditto.
12588 * linux-nat.h: Ditto.
12589 * linux-thread-db.c: Ditto.
12590 * machoread.c: Ditto.
12591 * macroexp.c: Ditto.
12592 * macrotab.c: Ditto.
12595 * mdebugread.c: Ditto.
12596 * memattr.c: Ditto.
12597 * minsyms.c: Ditto.
12598 * monitor.c: Ditto.
12599 * monitor.h: Ditto.
12600 * objfiles.c: Ditto.
12601 * objfiles.h: Ditto.
12603 * p-typeprint.c: Ditto.
12604 * p-valprint.c: Ditto.
12606 * printcmd.c: Ditto.
12607 * proc-events.c: Ditto.
12609 * progspace.c: Ditto.
12610 * progspace.h: Ditto.
12611 * psympriv.h: Ditto.
12612 * psymtab.c: Ditto.
12614 * regcache.c: Ditto.
12615 * regcache.h: Ditto.
12616 * remote-fileio.c: Ditto.
12618 * ser-mingw.c: Ditto.
12619 * ser-tcp.c: Ditto.
12620 * ser-unix.c: Ditto.
12623 * solib-frv.c: Ditto.
12624 * solib-irix.c: Ditto.
12625 * solib-osf.c: Ditto.
12626 * solib-pa64.c: Ditto.
12627 * solib-som.c: Ditto.
12628 * solib-sunos.c: Ditto.
12629 * solib-svr4.c: Ditto.
12630 * solib-target.c: Ditto.
12632 * somread.c: Ditto.
12634 * stabsread.c: Ditto.
12635 * stabsread.c: Ditto.
12638 * symfile-mem.c: Ditto.
12639 * symfile.c: Ditto.
12640 * symfile.h: Ditto.
12641 * symmisc.c: Ditto.
12644 * target-descriptions.c: Ditto.
12645 * target-memory.c: Ditto.
12648 * terminal.h: Ditto.
12651 * tracepoint.c: Ditto.
12652 * tracepoint.h: Ditto.
12653 * ui-file.c: Ditto.
12654 * ui-file.h: Ditto.
12656 * user-regs.c: Ditto.
12657 * user-regs.h: Ditto.
12659 * valarith.c: Ditto.
12661 * valprint.c: Ditto.
12662 * valprint.h: Ditto.
12667 * xcoffread.c: Ditto.
12668 * xcoffsolib.c: Ditto.
12669 * xcoffsolib.h: Ditto.
12670 * xml-syscall.c: Ditto.
12671 * xml-tdesc.c: Ditto.
12673 2011-01-05 Michael Snyder <msnyder@vmware.com>
12675 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12676 * cli/cli-decode.c: Ditto.
12677 * cli/cli-dump.c: Ditto.
12678 * cli/cli-logging.c: Ditto.
12679 * cli/cli-script.c: Ditto.
12680 * cli/cli-setshow.c: Ditto.
12681 * common/signals.c: Ditto.
12682 * mi/mi-cmd-break.c: Ditto.
12683 * mi/mi-cmd-disas.c: Ditto.
12684 * mi/mi-cmd-stack.c: Ditto.
12685 * mi/mi-cmd-var.c: Ditto.
12686 * mi/mi-cmds.c: Ditto.
12687 * mi/mi-common.h: Ditto.
12688 * mi/mi-console.c: Ditto.
12689 * mi/mi-interp.c: Ditto.
12690 * mi/mi-main.c: Ditto.
12691 * osf-share/cma_attr.c: Ditto.
12692 * osf-share/cma_deb_core.h: Ditto.
12693 * osf-share/cma_debug_client.h: Ditto.
12694 * osf-share/cma_handle.h: Ditto.
12695 * osf-share/cma_mutex.h: Ditto.
12696 * osf-share/cma_stack_int.h: Ditto.
12697 * osf-share/cma_tcb_defs.h: Ditto.
12698 * python/py-auto-load.c: Ditto.
12699 * python/py-breakpoint.c: Ditto.
12700 * python/py-cmd.c: Ditto.
12701 * python/py-frame.c: Ditto.
12702 * python/py-objfile.c: Ditto.
12703 * python/py-param.c: Ditto.
12704 * python/py-progspace.c: Ditto.
12705 * python/py-symbol.c: Ditto.
12706 * python/py-value.c: Ditto.
12707 * python/python-internal.h: Ditto.
12708 * python/python.c: Ditto.
12709 * tui/tui-data.c: Ditto.
12710 * tui/tui-disasm.c: Ditto.
12711 * tui/tui-hooks.c: Ditto.
12712 * tui/tui-io.c: Ditto.
12713 * tui/tui-layout.c: Ditto.
12714 * tui/tui-regs.c: Ditto.
12715 * tui/tui-source.c: Ditto.
12716 * tui/tui-stack.c: Ditto.
12717 * tui/tui-win.c: Ditto.
12718 * tui/tui-windata.c: Ditto.
12719 * tui/tui-winsource.c: Ditto.
12721 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12723 * configure.ac, gdb.1: Copyright year update.
12725 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12727 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12728 this_pc_in_block, morestack_msym and morestack_name. Check for
12729 "__morestack" minimal symbol there.
12731 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12733 * symfile.c (find_sym_fns): Add call to dont_repeat.
12735 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12737 Copyright year update in most files (performed by copyright.sh).
12739 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12741 * top.c (print_gdb_version): Update copyright year in version output.
12743 For older changes see ChangeLog-2010.
12749 version-control: never