1 2011-12-19 Doug Evans <dje@google.com>
3 * python/py-auto-load.c (info_auto_load_scripts): Pass address of
4 scripts vector to collect_matching_scripts.
5 (collect_matching_scripts): Update.
7 2011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9 * symfile.c (reread_symbols): Move free_objfile_separate_debug,
10 preserve_values, sym_finish and clear_objfile_data calls before BFD
11 close. Move free_objfile_separate_debug as the very first call. New
12 comment on the ordering.
14 2011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
16 * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
19 2011-12-19 Tom Tromey <tromey@redhat.com>
21 * symtab.h (add_minsym_to_hash_table): Don't declare.
22 * minsyms.c (add_minsym_to_hash_table): Now static.
24 2011-12-19 Joel Brobecker <brobecker@adacore.com>
26 * elfread.c (elf_symtab_read): Ignore undefined symbols with
27 nonzero addresses if they do not correspond to a .plt section
28 when one is available in the objfile.
30 2011-12-17 Andreas Schwab <schwab@linux-m68k.org>
32 * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
35 2011-12-17 Mark Kettenis <kettenis@gnu.org>
37 * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
38 regset_from_core_section.
39 (amd64obsd_core_init_abi): New function that sets
40 regset_from_core_section.
41 (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
42 traditional core dumps.
44 2011-12-17 Mark Kettenis <kettenis@gnu.org>
46 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
47 trampoline to be introduced in OpenBSD 5.0.
49 2011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
51 Fix build regression from the PR threads/10729 fix.
52 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
55 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
57 * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
58 `optarg' to `oind' and `oarg', respectively(-Wshadow).
59 (mi_cmd_data_read_memory): Ditto.
60 (mi_cmd_data_read_memory_bytes): Ditto.
61 (mi_cmd_data_write_memory): Ditto.
63 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
65 * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
66 `oind' and `oarg', respectively(-Wshadow).
67 (mi_valid_noargs): Ditto.
69 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
71 * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
72 `oind' and `oarg', respectively(-Wshadow).
74 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
76 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
77 `optarg' to `oind' and `oarg', respectively(-Wshadow).
78 (mi_cmd_target_file_put): Ditto.
79 (mi_cmd_target_file_delete): Ditto.
81 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
83 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
84 `optarg' to `oind' and `oarg', respectively(-Wshadow).
85 (mi_cmd_env_dir): Ditto.
87 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
89 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
90 `optarg' to `oind' and `oarg', respectively(-Wshadow).
92 2011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
94 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
95 `optparg' to `oind' and `oarg', respectively(-Wshadow).
96 (mi_cmd_break_watch): Ditto.
98 2011-12-16 Tom Tromey <tromey@redhat.com>
100 * linespec.c (collect_symbols): Call maybe_add_address after
101 calling symbol_to_sal.
102 (minsym_found): Call maybe_add_address here.
103 (search_minsyms_for_name): Don't call maybe_add_address.
105 2011-12-16 Tom Tromey <tromey@redhat.com>
107 * linespec.c (struct collect_info) <objfile>: Remove field.
108 (decode_objc): Update.
109 (find_method): Update.
110 (decode_variable): Update.
111 (struct minsym_and_objfile): New.
112 (struct collect_minsyms): New.
113 (classify_mtype): New function.
114 (compare_msyms): Likewise.
115 (add_minsym): Likewise.
116 (check_minsym): Remove.
117 (search_minsyms_for_name): Sort minsyms and apply only those with
120 2011-12-16 Tom Tromey <tromey@redhat.com>
122 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
124 2011-12-16 Pedro Alves <pedro@codesourcery.com>
126 * inf-loop.c: Include top.h.
127 (inferior_event_handler): Call check_frame_language.
128 * top.c (check_frame_language_change): New, factored out from ...
129 (execute_command): ... this. Use check_frame_language_change.
130 * top.h (check_frame_language_change): Declare.
132 2011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
134 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
137 2011-12-16 Doug Evans <dje@google.com>
139 * NEWS: Add entry for stdio gdbserver.
141 2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
143 * python/python.c: Define python_excp_enums.
144 (eval_python_from_control_command): Do not call gdbpy_print_stack.
145 (python_command): Ditto.
146 (gdbpy_print_stack): Rewrite to use new enum constants.
147 (maint_set_python): Remove function.
148 (maint_show_python): Ditto.
149 (_initialize_python): Do not add "maint" commands. Add "set/show
150 python print-stack commands".
151 * NEWS: Update to reflect removal for "maint set/show
154 2011-12-15 Doug Evans <dje@google.com>
156 * exceptions.c (catcher_list_size): New function.
157 (last_message): Delete.
158 (exception_messages, exception_messages_size): New static globals.
159 (throw_it): Use exception_messages array to handle nested calls.
161 2011-12-15 Tom Tromey <tromey@redhat.com>
163 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
166 2011-12-14 Doug Evans <dje@google.com>
168 * defs.h (wait_to_die_with_timeout): Declare.
169 * utils.c: #include "gdb_wait.h".
170 (sigalrm_handler, wait_to_die_with_timeout): New functions.
171 * ser-pipe.c: Don't #include "gdb_wait.h".
172 (pipe_close): Give child a chance to die on its own after closing
173 its stdin before SIGTERM'ing it.
175 2011-12-14 Joel Brobecker <brobecker@adacore.com>
176 Tom Tromey <tromey@redhat.com>
178 * ada-lang.c (add_nonlocal_symbols): Initialize data to
179 all zeros. Remove setting of data.arg_sym to NULL.
181 2011-12-14 Pedro Alves <pedro@codesourcery.com>
185 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
187 (linux_nat_prepare_to_resume): New global.
189 (purge_lwp_list): Use it.
190 (add_lwp): Call linux_nat_new_thread even on the first LWP.
191 Adjust to interface change.
192 (delete_lwp): Call lwp_free instead of xfree.
193 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
194 (linux_handle_syscall_trap, linux_handle_extended_wait)
195 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
196 linux_nat_prepare_to_resume before resuming.
197 (linux_stop_lwp): New.
198 (linux_nat_set_new_thread): Adjust.
199 (linux_nat_set_prepare_to_resume): New.
200 * linux-nat.h (struct arch_lwp_info): Forward declare.
201 (struct lwp_info) <arch_private>: New field.
202 (linux_stop_lwp): Declare.
203 (linux_nat_set_new_thread): Adjust.
204 (linux_nat_set_prepare_to_resume): New.
206 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
207 (struct i386_debug_reg_state): Move to i386-nat.h.
208 (dr_mirror): Comment.
209 (i386_debug_reg_state): New.
210 (i386_update_inferior_debug_regs): Simplify.
211 (i386_stopped_data_address): Use the debug register state from the
212 inferior, not from the local cache.
213 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
214 unset_status fields. New get_addr and get_control fields.
215 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
216 (DR_NADDR, DR_STATUS): New.
217 (struct i386_debug_reg_state): Moved from i386-nat.c.
219 * amd64-linux-nat.c (struct arch_lwp_info): New.
220 (amd64_linux_dr): Delete global.
221 (amd64_linux_dr_get_addr): New.
222 (amd64_linux_dr_get_control): New.
223 (amd64_linux_dr_unset_status): Delete.
224 (amd64_linux_dr_set_addr): Reimplement.
225 (amd64_linux_dr_reset_addr): Delete.
226 (update_debug_registers_callback): New.
227 (amd64_linux_dr_set_control): Reimplement.
228 (amd64_linux_dr_set_addr): Reimplement.
229 (amd64_linux_prepare_to_resume): New.
230 (amd64_linux_new_thread): Change parameter to an lwp pointer.
232 (_initialize_amd64_linux_nat): No longer install
233 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
234 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
235 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
236 amd64_linux_prepare_to_resume.
237 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
238 (DR_CONTROL): Delete.
239 (struct arch_lwp_info): New.
240 (i386_linux_dr): Delete global.
241 (i386_linux_dr_set_control): Reimplement.
242 (i386_linux_dr_get_addr): New.
243 (i386_linux_dr_set_addr): Reimplement.
244 (i386_linux_dr_get_control): New.
245 (update_debug_registers_callback): New.
246 (i386_linux_dr_unset_status): Delete.
247 (i386_linux_dr_set_addr): Reimplement.
248 (i386_linux_prepare_to_resume): New.
249 (i386_linux_new_thread): Change parameter to an lwp pointer.
251 (_initialize_i386_linux_nat): No longer install
252 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
253 i386_linux_dr_get_control as i386_dr_low.get_control. Install
254 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
255 i386_linux_prepare_to_resume.
257 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
259 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
260 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
261 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
262 * s390-nat.c (s390_fix_watch_points): Likewise.
264 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
265 (DR_CONTROL): Delete.
266 (i386_darwin_dr_reset_addr): Delete.
267 (i386_darwin_dr_get_addr): New.
268 (i386_darwin_dr_get_control): New.
270 (go32_get_dr7, go32_get_dr): New.
271 (init_go32_ops): No longer install i386_dr_low.reset_addr.
272 Install go32_get_dr7 as i386_dr_low.get_control. Install
273 go32_get_dr as i386_dr_low.get_addr.
274 * i386bsd-nat.c (i386bsd_dr_get): New.
275 (i386bsd_dr_reset_addr): Delete.
276 (i386bsd_dr_get_addr): New.
277 (i386bsd_dr_get_status): Use i386bsd_dr_get.
278 (i386bsd_dr_get_control): New.
279 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
280 (i386bsd_dr_get_addr): New.
281 (i386bsd_dr_get_control): New.
282 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
283 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
284 i386bsd_dr_get_control as i386_dr_low.get_control. Install
285 i386bsd_dr_get_addr as i386_dr_low.get_addr.
286 * windows-nat.c (init_windows_ops): No longer install
287 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
288 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
289 as i386_dr_low.get_addr.
290 (cygwin_get_dr): New.
291 (cygwin_get_dr7): New.
293 2011-12-14 Pedro Alves <pedro@codesourcery.com>
295 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
296 target_write_raw_memory.
297 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
298 target_write_raw_memory.
299 * microblaze-linux-tdep.c
300 (microblaze_linux_memory_remove_breakpoint): Use
301 target_write_raw_memory.
302 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
303 target_write_raw_memory.
305 2011-12-14 Joel Brobecker <brobecker@adacore.com>
307 * linespec.c (decode_line_internal): Make static.
309 2011-12-14 Yao Qi <yao@codesourcery.com>
311 * breakpoint.c (create_breakpoint): Set canonical.addr_string
312 for static tracepoint.
314 2011-12-13 Joel Brobecker <brobecker@adacore.com>
316 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
317 * version.in: Bump version to 7.4.50.20111213-cvs.
319 2011-12-13 Joel Brobecker <brobecker@adacore.com>
321 * NEWS: Create a new section for the next release branch.
322 Rename the section of the current branch, now that it has
325 2011-12-11 Joel Brobecker <brobecker@adacore.com>
327 * ada-lang.c (ada_exception_support_info_sniffer): Improve
330 2011-12-11 Joel Brobecker <brobecker@adacore.com>
332 * ada-lang.c (struct ada_inferior_data) [exception_info]:
334 (exception_info): Delete.
335 (ada_exception_support_info_sniffer): Get exception_support_info
336 data from our per-inferior data. Adjust code accordingly.
337 (ada_unhandled_exception_name_addr_from_raise): Likewise.
338 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
339 (ada_executable_changed_observer): Delete.
340 (_initialize_ada_language): Remove call to
341 observer_attach_executable_changed.
343 2011-12-11 Joel Brobecker <brobecker@adacore.com>
345 * ada-lang.c (ada_has_this_exception_support): Raise an error
346 if we could find the Ada exception hook in the Ada runtime,
347 but no debugging info for that hook.
349 2011-12-11 Joel Brobecker <brobecker@adacore.com>
351 * ada-lang.c (ada_has_this_exception_support): New function,
352 extracted out of ada_exception_sal and ada_exception_sal.
353 (ada_exception_support_info_sniffer): Simplify by using
354 ada_has_this_exception_support.
355 (ada_exception_sal): Replace unnecessary checks by assertions.
356 Minor simplifications.
358 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
360 * breakpoint.c (update_global_location_list): Remove nested
361 definition of `b'(-Wshadow).
363 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
365 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
366 `error_flag'(-Wshadow).
368 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
370 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
373 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
375 * annotate.c (annotate_array_section_begin): Rename `index' to
378 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
380 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
383 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
385 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
386 `syscall' to `syscall_number'(-Wshadow).
388 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
390 * ada-lang.c (remove_extra_symbols): Rename `remove' to
391 `remove_p'(-Wshadow).
393 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
395 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
398 2011-12-10 Doug Evans <dje@google.com>
400 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
401 debug_types_section. All uses updated.
402 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
403 to is_debug_types_section.
405 * python/py-auto-load.c (source_section_scripts): Call xfree
408 2011-12-10 Hui Zhu <teawater@gmail.com>
409 Yao Qi <yao@codesourcery.com>
411 * tracepoint.c (start_tracing): Clear `inserted' flag.
413 2011-12-10 Hui Zhu <teawater@gmail.com>
415 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
417 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
419 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
422 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
424 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
425 `marker' variables to `sal2' and `tpmarker' respectively
428 2011-12-09 Andrew Pinski <apinski@cavium.com>
430 * linespec.c (hash_address_entry): Use iterative_hash_object on each
431 field rather than the struct itself.
433 2011-12-09 Tom Tromey <tromey@redhat.com>
435 * breakpoint.c (compare_breakpoints): New function.
436 (clear_command): Remove duplicate breakpoints. Properly clean
439 2011-12-08 Maciej W. Rozycki <macro@mips.com>
440 Maciej W. Rozycki <macro@codesourcery.com>
442 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
443 address chunks retrieved from decoded lui/addiu pairs.
445 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
447 * mips-tdep.c (extended_offset): Correct calculation.
448 (unpack_mips16): Correct bitfield positions used for extraction
449 of the immediate argument; fix sign-extension of same.
450 (extended_mips16_next_pc): Correct B instruction's offset
451 calculation. Correct register decoding of the BEQZ and BNEZ
452 as well as jump-register instructions. Handle compact jumps.
454 2011-12-08 Tom Tromey <tromey@redhat.com>
456 * objfiles.h (struct objfile): Remove obsolete comment.
457 * objfiles.c (build_objfile_section_table): Remove obsolete
460 2011-12-07 Stan Shebs <stan@codesourcery.com>
462 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
463 maintainer of the tic6x target.
465 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
467 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
468 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
469 (arm_deal_with_atomic_sequence_raw): Likewise.
470 (arm_deal_with_atomic_sequence): Likewise.
471 (arm_software_single_step): Call it.
472 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
474 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
476 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
478 * s390-tdep.h: Likewise.
480 2011-12-07 Tristan Gingold <gingold@adacore.com>
482 * machoread.c (macho_symtab_read): Do not consider N_OPT as
483 a debugging stab. Improve complaint message.
485 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
487 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
488 load adjustment if still within the prologue.
490 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
492 * mips-tdep.c (mips32_next_pc): Fix floating point condition
495 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
497 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
498 of BLTZ* and BGEZ* instructions.
500 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
502 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
503 performed to determine whether an address refers to standard
505 (mips16_next_pc): Use mips_pc_is_mips16 instead of
508 2011-12-06 Pedro Alves <pedro@codesourcery.com>
510 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
511 (breakpoint_xfer_memory): ... this. Change prototype. Handle
513 * breakpoint.h (breakpoint_restore_shadows): Delete.
514 (breakpoint_xfer_memory): Declare.
515 * mem-break.c (default_memory_insert_breakpoint)
516 (default_memory_remove_breakpoint): Use target_write_raw_memory.
517 (memory_xfer_partial): Rename to ...
518 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
520 (memory_xfer_partial): New.
521 (target_write_raw_memory): New.
522 * target.h (target_write_raw_memory): New.
524 2011-12-06 Doug Evans <dje@google.com>
526 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
528 2011-12-06 Joel Brobecker <brobecker@acacore.com>
530 * language.h (struct language_defn): Add new component
531 la_symbol_name_compare.
532 * symfile.h (struct quick_symbol_functions): Update the profile
533 of parameter "name_matcher" for the expand_symtabs_matching
534 method. Update the documentation accordingly.
535 * ada-lang.h (ada_name_for_lookup): Add declaration.
536 * ada-lang.c (ada_name_for_lookup): New function, extracted out
537 from ada_iterate_over_symbols.
538 (ada_iterate_over_symbols): Do not encode symbol name anymore.
539 (ada_expand_partial_symbol_name): Adjust profile.
540 (ada_language_defn): Add value for la_symbol_name_compare field.
541 * linespec.c: #include "ada-lang.h".
542 (iterate_name_matcher): Add language parameter. Replace call
543 to strcmp_iw by call to language->la_symbol_name_compare.
544 (decode_variable): Encode COPY if current language is Ada.
545 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
546 of name_matcher parameter. Adjust call to name_matcher.
547 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
548 (expand_partial_symbol_names): Update profile of parameter "fun".
549 * psymtab.h (expand_partial_symbol_names): Update profile of
551 * symtab.c (demangle_for_lookup): Update function documentation.
552 (search_symbols_name_matches): Add language parameter.
553 (expand_partial_symbol_name): Likewise.
554 * c-lang.c (c_language_defn, cplus_language_defn)
555 (asm_language_defn, minimal_language_defn): Add value for
556 la_symbol_name_compare field.
557 * d-lang.c (d_language_defn): Likewise.
558 * f-lang.c (f_language_defn): Ditto.
559 * jv-lang.c (java_language_defn): Ditto.
560 * m2-lang.c (m2_language_defn): Ditto.
561 * objc-lang.c (objc_language_defn): Ditto.
562 * opencl-lang.c (opencl_language_defn): Ditto.
563 * p-lang.c (pascal_language_defn): Ditto.
564 * language.c (unknown_language_defn, auto_language_defn)
565 (local_language_defn): Ditto.
567 2011-12-06 Tom Tromey <tromey@redhat.com>
569 * linespec.c (iterate_over_all_matching_symtabs): Use
570 LA_ITERATE_OVER_SYMBOLS.
571 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
572 (find_function_symbols, decode_variable): Remove Ada special
574 * language.h (struct language_defn) <la_iterate_over_symbols>: New
576 (LA_ITERATE_OVER_SYMBOLS): New macro.
577 * language.c (unknown_language_defn, auto_language_defn)
578 (local_language_defn): Update.
579 * c-lang.c (c_language_defn, cplus_language_defn)
580 (asm_language_defn, minimal_language_defn): Update.
581 * d-lang.c (d_language_defn): Update.
582 * f-lang.c (f_language_defn): Update.
583 * jv-lang.c (java_language_defn): Update.
584 * m2-lang.c (m2_language_defn): Update.
585 * objc-lang.c (objc_language_defn): Update.
586 * opencl-lang.c (opencl_language_defn): Update.
587 * p-lang.c (pascal_language_defn): Update.
588 * ada-lang.c (ada_iterate_over_symbols): New function.
589 (ada_language_defn): Update.
591 2011-12-06 Tom Tromey <tromey@redhat.com>
592 Joel Brobecker <brobecker@acacore.com>
594 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
595 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
596 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
597 PR shlibs/8929, PR shlibs/7393:
598 * python/py-type.c (compare_maybe_null_strings): Rename from
600 (check_types_equal): Update.
601 * utils.c (compare_strings): New function.
602 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
604 * tracepoint.c (scope_info): Update.
605 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
606 * symtab.h (iterate_over_minimal_symbols)
607 (iterate_over_some_symtabs, iterate_over_symtabs)
608 (find_pcs_for_symtab_line, iterate_over_symbols)
609 (demangle_for_lookup): Declare.
610 (expand_line_sal): Remove.
611 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
612 (lookup_symtab_callback): New functions.
613 (lookup_symtab): Rewrite.
614 (demangle_for_lookup): New function, extract from
615 lookup_symbol_in_language.
616 (lookup_symbol_in_language): Use it.
617 (iterate_over_symbols): New function.
618 (find_line_symtab): Update.
619 (find_pcs_for_symtab_line): New functions.
620 (find_line_common): Add 'start' argument.
621 (decode_line_spec): Update. Change argument to 'flags', change
623 (append_expanded_sal): Remove.
624 (append_exact_match_to_sals): Remove.
625 (expand_line_sal): Remove.
626 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
628 <map_symtabs_matching_filename>: New field.
629 * stack.c (func_command): Only look in the current program space.
630 Use DECODE_LINE_FUNFIRSTLINE.
631 * source.c (line_info): Set pspace on sal. Check program space in
632 the loop. Use DECODE_LINE_LIST_MODE.
633 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
634 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
635 * python/python.c (gdbpy_decode_line): Update.
636 * psymtab.c (partial_map_expand_apply): New function.
637 (partial_map_symtabs_matching_filename): Rename from
638 lookup_partial_symbol. Update arguments.
639 (lookup_symtab_via_partial_symtab): Remove.
640 (psym_functions): Update.
641 * objc-lang.h (parse_selector, parse_method): Don't declare.
643 * objc-lang.c (parse_selector, parse_method): Now static.
644 (find_methods): Change arguments. Fill in a vector of symbol
646 (uniquify_strings): New function.
647 (find_imps): Change arguments.
648 * minsyms.c (iterate_over_minimal_symbols): New function.
649 * linespec.h (enum decode_line_flags): New.
650 (struct linespec_sals): New.
651 (struct linespec_result) <canonical>: Remove.
652 <pre_expanded, addr_string, sals>: New fields.
653 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
654 (decode_line_full): Declare.
655 (decode_line_1): Update.
656 * linespec.c (struct address_entry, struct linespec_state, struct
657 collect_info): New types.
658 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
659 (eq_address_entry, maybe_add_address): New functions.
660 (total_number_of_methods): Remove.
661 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
663 (find_methods): Change arguments. Don't canonicalize input.
665 (add_matching_methods, add_constructors)
666 (build_canonical_line_spec): Remove.
667 (filter_results, convert_results_to_lsals): New functions.
668 (decode_line_2): Change arguments. Rewrite for new data
670 (decode_line_internal): Rename from decode_line_1. Change
671 arguments. Add cleanups. Update for new data structures.
672 (linespec_state_constructor, linespec_state_destructor)
673 (decode_line_full, decode_line_1): New functions.
674 (decode_indirect): Change arguments. Update.
675 (locate_first_half): Use skip_spaces.
676 (decode_objc): Change arguments. Update for new data structures.
678 (decode_compound): Change arguments. Add cleanups. Remove
679 fallback code, replace with error.
680 (struct decode_compound_collector): New type.
681 (collect_one_symbol): New function.
682 (lookup_prefix_sym): Change arguments. Update.
683 (compare_symbol_name, add_all_symbol_names_from_pspace)
684 (find_superclass_methods ): New functions.
685 (find_method): Rewrite.
686 (struct symtab_collector): New type.
687 (add_symtabs_to_list, collect_symtabs_from_filename): New
689 (symtabs_from_filename): Change API. Rename from
690 symtab_from_filename.
691 (collect_function_symbols): New function.
692 (find_function_symbols): Change API. Rename from
693 find_function_symbol. Rewrite.
694 (decode_all_digits): Change arguments. Rewrite.
695 (decode_dollar): Change arguments. Use decode_variable.
696 (decode_label): Change arguments. Rewrite.
697 (collect_symbols): New function.
698 (minsym_found): Change arguments. Rewrite.
699 (check_minsym, search_minsyms_for_name)
700 (add_matching_symbols_to_info): New function.
701 (decode_variable): Change arguments. Iterate over all symbols.
702 (symbol_found): Remove.
703 (symbol_to_sal): New function.
704 (init_linespec_result, destroy_linespec_result)
705 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
707 (decode_digits_list_mode, decode_digits_ordinary): New functions.
708 * dwarf2read.c (dw2_map_expand_apply): New function.
709 (dw2_map_symtabs_matching_filename): Rename from
710 dw2_lookup_symtab. Change arguments.
711 (dwarf2_gdb_index_functions): Update.
712 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
713 * defs.h (compare_strings): Declare.
714 * cli/cli-cmds.c (compare_strings): Move to utils.c.
715 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
717 (compare_symtabs, filter_sals): New functions.
718 * breakpoint.h (struct bp_location) <line_number, source_file>:
720 (struct breakpoint) <line_number, source_file>: Remove.
722 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
723 (momentary_breakpoint_from_master, add_location_to_breakpoint):
724 Update for changes to locations.
725 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
727 (create_breakpoint_sal): Add 'filter' argument.
728 (remove_sal, expand_line_sal_maybe): Remove.
729 (create_breakpoints_sal): Remove 'sals' argument. Handle
730 pre-expanded sals and the filter.
731 (parse_breakpoint_sals): Use decode_line_full.
732 (check_fast_tracepoint_sals): Use get_sal_arch.
733 (create_breakpoint): Create a linespec_sals. Update.
734 (break_range_command): Use decode_line_full. Update.
735 (until_break_command): Update.
736 (clear_command): Update match conditions for linespec.c changes.
737 Use DECODE_LINE_LIST_MODE.
738 (say_where): Update for changes to locations.
739 (bp_location_dtor): Free 'source_file'.
740 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
741 (update_static_tracepoint): Update for changes to locations.
742 (update_breakpoint_locations): Disable ranged breakpoint if too
743 many locations match. Update.
744 (addr_string_to_sals): Use decode_line_full. Resolve all sal
746 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
747 (decode_line_spec_1): Update. Change argument name to 'flags',
748 change interpretation.
749 * block.h (block_containing_function): Declare.
750 * block.c (block_containing_function): New function.
751 * skip.c (skip_function_command): Update.
752 (skip_re_set): Update.
753 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
754 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
757 2011-12-06 Tom Tromey <tromey@redhat.com>
759 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
760 breakpoint's pspace to be NULL.
761 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
762 * breakpoint.c (init_raw_breakpoint): Conditionally set
764 (init_breakpoint_sal): Don't set breakpoint's pspace.
765 (prepare_re_set_context): Conditionally switch program space.
766 (addr_string_to_sals): Check executing_startup on location's
769 2011-12-06 Tom Tromey <tromey@redhat.com>
771 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
772 * breakpoint.c (should_be_inserted): Explicitly check if program
773 space is executing startup.
774 (describe_other_breakpoints): Update.
775 (disable_breakpoints_before_startup): Change executing_startup
776 earlier. Remove loop.
777 (enable_breakpoints_after_startup): Likewise.
778 (init_breakpoint_sal): Don't use bp_startup_disabled.
779 (create_breakpoint): Don't use bp_startup_disabled.
780 (update_global_location_list): Use should_be_inserted.
781 (bkpt_re_set): Update.
783 2011-12-06 Tom Tromey <tromey@redhat.com>
785 * python/lib/gdb/command/pretty_printers.py
786 (InfoPrettyPrinter.invoke1): Remove extra double quote.
788 2011-12-06 Tom Tromey <tromey@redhat.com>
792 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
794 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
795 (S390_LAST_BREAK_REGNUM): Likewise.
796 (S390_SYSTEM_CALL_REGNUM): Likewise.
797 (S390_NUM_REGS): Update.
799 (s390_regmap_last_break): Add declaration.
800 (s390x_regmap_last_break): Likewise.
801 (s390_regmap_system_call): Likewise.
803 (tdesc_s390_linux32v1): Add declaration.
804 (tdesc_s390_linux32v2): Likewise.
805 (tdesc_s390_linux64v1): Likewise.
806 (tdesc_s390_linux64v2): Likewise.
807 (tdesc_s390x_linux64v1): Likewise.
808 (tdesc_s390x_linux64v2): Likewise.
810 * s390-tdep.c: Include new target description files
811 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
812 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
813 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
814 (s390_cannot_store_register): New function.
815 (s390_write_pc): Likewise.
816 (s390_dwarf_regmap): Add fields for new registers.
817 (s390_regmap_gregset): Likewise.
818 (s390x_regmap_gregset): Likewise.
819 (s390_regmap_fpregset): Likewise.
820 (s390_regmap_upper): Likewise.
821 (s390_regmap_last_break): New variable.
822 (s390x_regmap_last_break): Likewise.
823 (s390_regmap_system_call): Likewise.
824 (s390_last_break_regset): Likewise.
825 (s390x_last_break_regset): Likewise.
826 (s390_system_call_regset): Likewise.
827 (s390_upper_regset_sections): Rename to ...
828 (s390_linux64_regset_sections): ... this.
829 (s390_linux32_regset_sections): New variable.
830 (s390x_linux64_regset_sections): Likewise.
831 (s390_linux32v1_regset_sections): Likewise.
832 (s390_linux32v2_regset_sections): Likewise.
833 (s390_linux64v1_regset_sections): Likewise.
834 (s390_linux64v2_regset_sections): Likewise.
835 (s390x_linux64v1_regset_sections): Likewise.
836 (s390x_linux64v2_regset_sections): Likewise.
837 (s390_regset_from_core_section): Handle .reg-s390-last-break and
838 .reg-s390-system-call core file sections.
839 (s390_core_read_description): Check for presence of
840 .reg-s390-last-break and .reg-s390-system-call core file
841 sections and return appropriate target description.
842 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
843 "last_break" and "system_call" in target description. Install
844 appropriate gdbarch_core_regset_sections array.
845 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
846 (_initialize_s390_tdep): Initialize additional target descriptions.
848 * s390-nat.c: Include "elf/common.h".
849 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
850 (have_regset_last_break): New static variable.
851 (have_regset_system_call): Likewise.
852 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
853 (s390_native_collect): Likewise.
854 (fetch_regset, store_regset, check_regset): New functions.
855 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
856 and S390_SYSTEM_CALL_REGNUM.
857 (s390_linux_store_inferior_registers): Likewise.
858 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
859 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
861 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
862 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
863 (s390-linux32v1-expedite): Define.
864 (s390-linux32v2-expedite): Likewise.
865 (s390-linux64v1-expedite): Likewise.
866 (s390-linux64v2-expedite): Likewise.
867 (s390x-linux64v1-expedite): Likewise.
868 (s390x-linux64v2-expedite): Likewise.
870 * features/s390-linux32.xml: Add orig_r2 register.
871 * features/s390-linux64.xml: Likewise.
872 * features/s390x-linux64.xml: Likewise.
873 * features/s390-linux32v1.xml: New file.
874 * features/s390-linux32v2.xml: Likewise.
875 * features/s390-linux64v1.xml: Likewise.
876 * features/s390-linux64v2.xml: Likewise.
877 * features/s390x-linux64v1.xml: Likewise.
878 * features/s390x-linux64v2.xml: Likewise.
880 * features/s390-linux32.c: Regenerate.
881 * features/s390-linux64.c: Likewise.
882 * features/s390x-linux64.c: Likewise.
883 * features/s390-linux32v1.c: New generated file.
884 * features/s390-linux32v2.c: Likewise.
885 * features/s390-linux64v1.c: Likewise.
886 * features/s390-linux64v2.c: Likewise.
887 * features/s390x-linux64v1.c: Likewise.
888 * features/s390x-linux64v2.c: Likewise.
890 * regformats/s390-linux32.dat: Regenerate.
891 * regformats/s390-linux64.dat: Regenerate.
892 * regformats/s390x-linux64.dat: Regenerate.
893 * regformats/s390-linux32v1.dat: New generated file.
894 * regformats/s390-linux32v2.dat: Likewise.
895 * regformats/s390-linux64v1.dat: Likewise.
896 * regformats/s390-linux64v2.dat: Likewise.
897 * regformats/s390x-linux64v1.dat: Likewise.
898 * regformats/s390x-linux64v2.dat: Likewise.
900 2011-12-05 Pedro Alves <pedro@codesourcery.com>
902 * linux-nat.c (resume_stopped_resumed_lwps): Call
905 2011-12-05 Pedro Alves <pedro@codesourcery.com>
907 * breakpoint.c: Include record.h.
908 (breakpoints_always_inserted_mode): Return false when the record
911 2011-12-05 Pedro Alves <pedro@codesourcery.com>
913 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
914 Reinstate perror_with_name call on ptrace error. Remove #if 0.
915 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
916 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
918 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
920 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
923 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
925 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
927 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
929 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
932 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
934 Fix compilation --without-expat.
935 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
937 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
939 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
940 Jan Kratochvil <jan.kratochvil@redhat.com>
942 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
943 * features/library-list-svr4.dtd: New file.
944 * remote.c (PACKET_qXfer_libraries_svr4): New.
945 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
946 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
947 * solib-svr4.c (struct svr4_library_list): New.
948 [HAVE_LIBEXPAT]: Include xml-support.h.
949 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
950 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
951 [HAVE_LIBEXPAT] (svr4_library_list_children)
952 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
953 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
954 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
955 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
956 (svr4_read_so_list): Extend the corruption message by addresses.
957 (svr4_current_sos): New variable library_list, call
958 svr4_current_sos_via_xfer_libraries.
959 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
961 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
964 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
965 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
967 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
970 * dwarf2read.c (process_psymtab_comp_unit): Set
971 PSYMTABS_ADDRMAP_SUPPORTED.
972 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
973 validity. New field psymtabs_addrmap_supported.
974 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
975 psymtabs_addrmap_supported.
976 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
977 !PSYMTABS_ADDRMAP_SUPPORTED.
978 (dump_psymtab, maintenance_info_psymtabs): Print also
979 psymtabs_addrmap_supported.
981 2011-12-01 Doug Evans <dje@google.com>
983 * python/py-type.c (type_object_methods): Fix "array" doc string.
985 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
987 * source.c (print_source_lines_base): Fix missing braces on else
988 clause leading to additional output.
990 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
992 * s390-nat.c (SUBOFF): Remove.
993 (s390_native_supply, s390_native_collect): New functions.
994 (supply_gregset, supply_fpregset): Use s390_native_supply.
995 (fill_gregset, fill_fpregset): Use s390_native_collect.
997 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
998 (s390_unwind_pseudo_register): New function.
999 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1000 registers instead of PC and CC.
1001 (s390_backchain_frame_unwind_cache): Likewise.
1002 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1004 (s390_trad_frame_prev_register): New function.
1005 (s390_frame_prev_register): Use it.
1006 (s390_sigtramp_frame_prev_register): Likewise.
1007 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1008 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
1009 special callback to unwind any pseudo.
1011 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1012 * features/s390-core64.xml: Likewise.
1013 * features/s390x-core64.xml: Likewise.
1014 * features/s390-linux32.c: Regenerate.
1015 * features/s390-linux64.c: Likewise.
1016 * features/s390x-linux64.c: Likewise.
1018 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1020 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1022 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1024 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1025 instruction. Add more diagnostic output.
1027 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
1029 * MAINTAINERS (Write After Approval): Add myself to the list.
1031 2011-11-29 Sanjoy Das <sdas@igalia.com>
1033 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1034 (jit_bfd_try_read_symtab): Fix comments.
1036 2011-11-28 DJ Delorie <dj@redhat.com>
1038 * NEWS: Mention RL78 simulator.
1040 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1042 * symfile.h (struct quick_symbol_functions): Fix the documentation
1043 of field map_matching_symbols, as symbols are sorted using
1044 strcmp_iw_ordered, not strcmp_iw.
1046 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
1048 * symfile.h (struct quick_symbol_functions): Update the
1049 documentation for field map_matching_symbols.
1051 2011-11-28 Joel Brobecker <brobecker@adacore.com>
1053 * ada-lang.c (compare_names): Fix wrong return value in case
1054 string1 starts with the same contents as string2, followed
1055 by an underscore that do not start a symbol name suffix.
1057 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
1062 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1063 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1064 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1066 * python/py-type.c (typy_strip_typedefs): Ditto.
1067 (typy_legacy_template_argument): Ditto.
1068 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1069 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1071 2011-11-27 Joel Brobecker <brobecker@acacore.com>
1073 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1074 local variable. Avoid use of sprintf_vma.
1076 2011-11-27 Sanjoy Das <sdas@igalia.com>
1078 Fix regression in jit.exp.
1079 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1080 (jit_register_code): Set the jit_objfile_data field to the correct
1083 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1085 * alpha-tdep.c (br_opcode): New.
1086 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1087 (alpha_deal_with_atomic_sequence): New function.
1088 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1089 with alpha_deal_with_atomic_sequence.
1091 2011-11-24 Tristan Gingold <gingold@adacore.com>
1093 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1094 fields. Add oso_sym, end_sym and nbr_syms.
1095 (macho_register_oso): Change interface.
1096 (macho_symtab_add_minsym): New function.
1097 (macho_symtab_read): Rewritten.
1098 (get_archive_prefix_len): Remove trailing blanks.
1099 (oso_el_compare_name): Add comment.
1100 (struct macho_sym_hash_entry): New structure.
1101 (macho_relocate_common_syms): Remove.
1102 (macho_sym_hash_newfunc): New function.
1103 (macho_resolve_oso_sym_with_minsym): Likewise.
1104 (macho_add_oso_symfile): Rewritten.
1105 (macho_symfile_read_all_oso): Remove trailing blanks.
1106 Adjust code to free oso vector.
1107 (macho_symfile_read): Likewise.
1108 Move code to initialize minimal symbol
1110 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1112 * mips-tdep.c (extended_offset): Fix formatting.
1114 2011-11-23 Doug Evans <dje@google.com>
1116 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1117 (dw2_expand_symtabs_with_filename): Ditto.
1118 (dw2_expand_symtabs_matching): Ditto.
1119 (dw2_map_symbol_filenames): Ditto.
1121 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1123 * ada-lang.c (assign_aggregate): Minor reformatting.
1125 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1127 * ada-lang.c (assign_aggregate): Remove declaration of local
1128 variable `i' which is shadowing another variable with the same
1129 name declared in the outer scope.
1131 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1133 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1134 calls throughout this file.
1136 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1138 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1141 2011-11-22 Tom Tromey <tromey@redhat.com>
1144 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1145 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1146 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1147 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1148 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1149 (print_it_catch_syscall, print_it_catch_exec)
1150 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1151 (bpstat_print): Add 'kind' argument. Handle
1152 TARGET_WAITKIND_LOADED.
1153 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1154 handle TARGET_WAITKIND_LOADED here.
1155 * breakpoint.h (bpstat_print): Update.
1157 2011-11-22 Tom Tromey <tromey@redhat.com>
1159 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1161 2011-11-22 Tom Tromey <tromey@redhat.com>
1163 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1164 Use static_assert to check the size of
1165 async_reason_string_lookup.
1166 * common/gdb_assert.h (static_assert): New macro.
1168 2011-11-22 Alan Modra <amodra@gmail.com>
1170 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1171 destination calculation. Don't expect >> to sign extend. Don't
1172 add a break if branch lands inside the sequence anywhere.
1174 2011-11-21 Keith Seitz <keiths@redhat.com>
1176 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1177 -var-evaluate-expression of an enumeration and fix expected result.
1178 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1180 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1182 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1183 the case where osdata->items is empty. Rename column names to a
1184 canonical form to avoid problems with unusual column names.
1186 2011-11-21 Yao Qi <yao@codesourcery.com>
1188 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1190 2011-11-20 Stan Shebs <stan@codesourcery.com>
1192 * NEWS: Mention tracepoint additions.
1193 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1194 * breakpoint.c (print_one_breakpoint_location): Identify
1195 tracepoints as such when reporting hit counts, report
1197 (create_tracepoint_from_upload): Copy status info.
1198 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1199 add fields user_name, notes, start_time, stop_time.
1200 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1201 * tracepoint.c (trace_user): New global.
1202 (trace_notes): New global.
1203 (trace_stop_notes): New global.
1204 (start_tracing): Add argument and trace note handling.
1205 (stop_tracing): Ditto.
1206 (trace_start_command): Add notes argument.
1207 (trace_stop_command): Ditto.
1208 (trace_status_command): Report additional status info.
1209 (trace_status_mi): Similarly.
1210 (trace_save): Update, record tracepoint status.
1211 (set_disconnected_tracing): Call target method directly.
1212 (send_disconnected_tracing_value): Remove.
1213 (set_trace_user): New function.
1214 (set_trace_notes): New function.
1215 (set_trace_stop_notes): New function.
1216 (parse_trace_status): Handle additional status.
1217 (parse_tracepoint_status): New function.
1218 (parse_tracepoint_definition): Call it.
1219 (tfile_get_tracepoint_status): New function.
1220 (init_tfile_ops): Use it.
1221 (_initialize_tracepoint): Add new setshows.
1222 * target.h (struct target_ops): New methods to_get_tracepoint_status
1223 and to_set_trace_notes.
1224 (target_get_tracepoint_status): New macro.
1225 (target_set_trace_notes): New macro.
1226 * target.c (update_current_target): Add new methods.
1227 * remote.c (remote_get_tracepoint_status): New function.
1228 (remote_set_trace_notes): New function.
1229 (init_remote_ops): Add them.
1230 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1231 (mi_cmd_trace_stop): Ditto.
1233 2011-11-20 Sanjoy Das <sdas@igalia.com>
1235 * jit.c: Include regcache.h.
1236 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1237 (jit_unwind_reg_set_impl, free_reg_value_impl)
1238 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1239 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1240 (jit_frame_prev_register, jit_dealloc_cache)
1241 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1242 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1243 jit_prepend_unwinder.
1244 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1246 2011-11-20 Sanjoy Das <sdas@igalia.com>
1248 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1249 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1250 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1251 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1252 (finalize_symtab, jit_object_close_impl)
1253 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1254 (free_objfile_data): New functions.
1255 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1258 2011-11-20 Sanjoy Das <sdas@igalia.com>
1260 * jit.c: Include gdb-dlfcn.h.
1261 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1262 (jit_reader_load, jit_reader_load_command)
1263 (jit_reader_unload_command): New functions.
1264 (_initialize_jit): Add commands "jit-reader-load" and
1265 "jit-reader-unload".
1267 2011-11-20 Sanjoy Das <sdas@igalia.com>
1269 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1270 * config.in: Add new #define HAVE_LIBDL.
1271 * configure.ac: Add check for -ldl.
1272 * configure: Re-generated by autoconf.
1273 * gdb-dlfcn.c: New file.
1274 * gdb-dlfcn.h: New file.
1276 2011-11-20 Sanjoy Das <sdas@igalia.com>
1278 * config.in: Add new #defines: JIT_READER_DIR and
1279 JIT_READER_DIR_RELOCATABLE.
1280 * configure.ac: New GDB directory entry for jit-reader-dir.
1281 * configure: Re-generated by autoconf.
1282 * jit.c: New static variable: const char *jit_reader_dir.
1283 (_initialize_jit): Relocate jit_reader_dir.
1285 2011-11-20 Sanjoy Das <sdas@igalia.com>
1287 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1289 * configure.ac: Generate a correct value for TARGET_PTR for
1290 jit-reader.h. Tell configure to generate jit-reader.h from
1292 * configure: Re-generated by autoconf.
1293 * jit-reader.in: New file.
1294 * jit.c: Include jit-reader.h.
1296 2011-11-20 Sanjoy Das <sdas@igalia.com>
1298 * MAINTAINERS (Write After Approval): Add myself to the list.
1300 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1302 * findvar.c (read_frame_register_value): Respect value_offset
1303 of the register value. Remove big-endian special case.
1305 2011-11-18 Tom Tromey <tromey@redhat.com>
1308 * remote.c (putpkt_for_catch_errors): New function.
1309 (remote_kill): Use it.
1311 2011-11-18 Yao Qi <yao@codesourcery.com>
1313 * breakpoint.c (create_breakpoint): Produce query message according to
1315 Allocate tracepoint per correct type.
1316 Don't check SALs for pending fast tracepoints.
1317 * tracepoint.c (process_tracepoint_on_disconnect): New.
1318 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1320 2011-11-18 Yao Qi <yao@codesourcery.com>
1322 * breakpoint.c (install_breakpoint): Add one more parameter so that
1323 update_global_location_list is called conditionally.
1324 (create_fork_vfork_event_catchpoint): Update.
1325 (create_syscall_event_catchpoint): Update.
1326 (create_breakpoint_sal): Update.
1327 (create_breakpoint_sal): Update. Call do_cleanups before
1329 * ada-lang.c (create_ada_exception_catchpoint): Update.
1330 * breakpoint.h (install_breakpoint): Update declaration.
1332 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1334 * spu-tdep.c (spu_return_value): Fix handling of
1335 TYPE_CALLING_CONVENTION annotation.
1337 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1339 * skip.c (skip_function_command): Work around uninitialized
1342 2011-11-16 David S. Miller <davem@davemloft.net>
1344 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1345 'tv_usec' to long for printf since these fields have a type which
1348 2011-11-15 Doug Evans <dje@google.com>
1350 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1352 2011-11-15 Paul Koning <paul_koning@dell.com>
1354 * python/py-type.c (typy_get_composite): New function.
1355 (typy_nonzero): New function.
1356 (typy_values): Rename from typy_fields.
1357 (typy_fields): New function.
1358 (typy_length): Raise exception if not struct, union, or enum type.
1359 (typy_getitem): Ditto.
1360 (typy_has_key): Ditto.
1361 (typy_make_iter): Ditto.
1363 2011-11-15 Doug Evans <dje@google.com>
1366 * NEWS: Mention new parameter basenames-may-differ.
1367 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1368 ! basenames_may_differ.
1369 * psymtab.c (lookup_partial_symtab): Ditto.
1370 * symtab.c (lookup_symtab): Ditto.
1371 (basenames_may_differ): New global.
1372 (_initialize_symtab): New parameter basenames-may-differ.
1373 * symtab.h (basenames_may_differ): Declare.
1375 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1376 Luis Machado <lgustavo@codesourcery.com>
1378 * auxv.c: Include observer.h.
1379 (auxv_inferior_data_cleanup): New.
1380 (invalidate_auxv_cache_inf): New.
1381 (invalidate_auxv_cache): New.
1382 (get_auxv_inferior_data): New.
1383 (auxv_inferior_data): New static global.
1384 (auxv_info): New structure.
1385 (target_auxv_search): Use get_auxv_inferior_data instead of
1386 target_read_alloc and don't free cached buffers.
1387 (fprint_target_auxv): Likewise
1388 (_initialize_auxv): Register per-inferior auxv cache and register
1389 observers to invalidate auxv cache when needed.
1391 2011-11-14 Doug Evans <dje@google.com>
1393 PR gdb/7200 Make "!" an alias for "shell".
1394 * NEWS: Add mention.
1395 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1396 adding "!" command, always add it.
1397 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1398 command of length one.
1400 2011-11-14 Stan Shebs <stan@codesourcery.com>
1401 Kwok Cheung Yeung <kcy@codesourcery.com>
1403 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1404 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1405 the minimum instruction size for fast tracepoints.
1406 * target.h (struct target_ops): Add new method
1407 to_get_min_fast_tracepoint_insn_len.
1408 (target_get_min_fast_tracepoint_insn_len): New.
1409 * target.c (update_current_target): Set up new target operation.
1410 * remote.c (remote_write_bytes_aux): Fix typo.
1411 (remote_get_min_fast_tracepoint_insn_len): New.
1412 (init_remote_ops): Initialize new field.
1414 2011-11-14 Tom Tromey <tromey@redhat.com>
1416 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1417 (encode_actions): Likewise.
1419 2011-11-14 Yao Qi <yao@codesourcery.com>
1421 * remote.c (struct remote_state): <install_in_trace> new field.
1422 (PACKET_InstallInTrace): New enum value.
1423 (remote_install_in_trace_feature): Support InstallInTrace.
1424 (remote_supports_install_in_trace): Likewise.
1425 (remote_protocol_features): Likewise.
1426 (_initialize_remote): Likewise.
1427 (remote_can_download_tracepoint): New.
1428 * target.h (struct target): New field
1429 `to_can_download_tracepoint'.
1430 (target_can_download_tracepoint): New macro.
1431 * target.c (update_current_target): Update.
1432 * breakpoint.h (struct bp_location): Add comment on field
1434 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1436 (remove_breakpoints): Don't remove tracepoints.
1437 (tracepoint_locations_match ): New.
1438 (breakpoint_locations_match): Call it.
1439 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1440 (download_tracepoint_locations): New.
1441 (update_global_location_list): Call it.
1442 * tracepoint.c (find_matching_tracepoint): Delete.
1443 (find_matching_tracepoint_location): Renamed from
1444 find_matching_tracepoint. Return bp_location rather than
1446 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1447 tracepoint is found.
1449 2011-11-14 Yao Qi <yao@codesourcery.com>
1451 * target.h (struct target): <to_download_tracepoint> Change type
1452 of parameter from tracepoint to bp_location.
1453 * target.c (update_current_target): Update.
1454 * tracepoint.c (start_tracing): Update.
1455 * remote.c (remote_download_tracepoint): Remove loop for each location
1458 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1460 * i386-nat.c (i386_insert_hw_breakpoint): Call
1461 i386_update_inferior_debug_regs.
1462 (i386_remove_hw_breakpoint): Likewise.
1464 2011-11-14 Yao Qi <yao@codesourcery.com>
1466 * breakpoint.c (init_raw_breakpoint): Call
1467 add_location_to_breakpoint to replace duplicated code.
1468 (add_location_to_breakpoint): Adjust the breakpoint's
1469 address prior to allocating a location.
1471 2011-11-12 Matt Rice <ratmice@gmail.com>
1473 * macrocmd.c (macro_no_macro_info): New function.
1474 (macro_expand_command): Use macro_no_macro_info.
1475 (macro_expand_once_command): Ditto.
1476 (info_macro_command): Add argument processing,
1477 move info_definitions_command here.
1478 (_initialize_macrocmd): Remove info definitions command.
1479 Add arguments to info macro help text.
1480 * NEWS: Replace info definitions command with new info macro options.
1482 2011-11-11 Keith Seitz <keiths@redhat.com>
1485 * linespec.c (locate_first_half): Keep ':' if it looks
1486 like it could be part of a Windows path starting with
1489 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1491 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1492 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1494 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1496 * target.c (target_waitstatus_to_string): Handle
1497 TARGET_WAITKIND_NO_RESUMED.
1499 2011-11-10 Doug Evans <dje@google.com>
1501 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1503 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1504 (map_partial_symbol_filenames): Ditto. All callers updated.
1505 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1506 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1507 parameter need_fullname.
1509 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1510 * source.c (symtab_to_fullname): Ditto.
1512 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1513 * gdb-demangle.h: ... here. New file.
1514 * demangle.c: #include "gdb-demangle.h".
1515 (_initialize_demangler): Use initialize_file_ftype for prototype.
1516 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1517 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1519 * utils.c: Update. #include "gdb-demangle.h".
1520 * symtab.h (asm_demangle): Delete.
1521 (demangle): Move declaration next to use.
1522 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1523 * dwarf2read.c: #include "gdb-demangle.h".
1524 * gnu-v2-abi.c: Ditto.
1525 * jv-typeprint.c: Ditto.
1526 * mdebugread.c: Ditto.
1527 * p-typeprint.c: Ditto.
1528 * stabsread.c: Ditto.
1529 * printcmd.c: Ditto.
1530 (asm_demangle): Delete declaration.
1531 * tui/tui-stack.c: #include "gdb-demangle.h".
1533 * python/py-type.c (typy_fields_items): Call check_typedef.
1535 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1537 * findvar.c (read_frame_register_value): Read the correct bytes
1538 from registers on big-endian architectures.
1540 2011-11-10 Tom Tromey <tromey@redhat.com>
1542 * procfs.c (load_syscalls): Make a cleanup.
1543 (open_procinfo_files): fd==0 is ok.
1545 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1547 * procfs.c (iterate_over_mappings): Call do_cleanups before
1550 2011-11-09 Doug Evans <dje@google.com>
1552 * gdbtypes.c (check_typedef): Document that this function can
1555 2011-11-09 Tom Tromey <tromey@redhat.com>
1558 * valops.c (value_full_object): Return early if real type is
1559 smaller than the enclosing type.
1561 2011-11-08 Yao Qi <yao@codesourcery.com>
1563 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1565 2011-11-08 Meador Inge <meadori@codesourcery.com>
1567 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1568 register when the frame can't be determined.
1569 * arm-tdep.c (arm_analyze_prologue): Ditto.
1571 2011-11-07 Stan Shebs <stan@codesourcery.com>
1573 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1575 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1577 * infrun.c (handle_inferior_event): Minor reformatting.
1579 2011-11-05 Doug Evans <dje@google.com>
1581 * source.c (forget_cached_source_info_for_objfile): Move call to
1582 objfile->sf->qf->forget_cached_source_info outside of
1583 ALL_OBJFILE_SYMTABS loop.
1584 (forget_cached_source_info): Delete unused variable `s'.
1586 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1588 * i386-nat.c (dr_ref_count): Remove unused variable.
1590 2011-11-05 Doug Evans <dje@google.com>
1592 * main.c (captured_main): Set lim_at_start before calling
1593 make_command_stats_cleanup.
1595 2011-11-04 Doug Evans <dje@google.com>
1597 * utils.c: #include "timeval-utils.h".
1598 (cmd_stats): Rename start_time to start_cpu_time.
1599 New member start_wall_time.
1600 (report_command_stats): Report wall time.
1601 (make_command_stats_cleanup): Record start wall time.
1603 2011-11-04 Tom Tromey <tromey@redhat.com>
1605 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1607 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1609 * coff-pe-read.c: Include defs.h before bfd.h.
1611 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1615 * python/python.c (python_run_simple_file): Expand tilde in path.
1617 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1621 * python/py-type.c (typy_lookup_type): Do not return a type in
1622 an exception handler.
1624 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1625 Eli Zaretskii <eliz@gnu.org>
1627 * linux-nat.c (_initialize_linux_nat): Improve help
1628 for `info proc stat', `info proc status', `info proc cwd',
1629 `info proc cmdline' and `info proc exe'.
1631 2011-11-02 Stan Shebs <stan@codesourcery.com>
1633 String collection for tracepoints.
1634 * NEWS: Mention string collection.
1635 * common/ax.def (tracenz): New bytecode.
1636 * ax-gdb.h (trace_string_kludge): Declare.
1637 * ax-gdb.c: Include valprint.h and c-lang.h.
1638 (trace_string_kludge): New global.
1639 (gen_traced_pop): Add string case.
1640 (agent_command): Add string case.
1641 * tracepoint.h (decode_agent_options): Declare.
1642 * tracepoint.c: Include cli-utils.h.
1643 (decode_agent_options): New function.
1644 (validate_actionline): Call it.
1645 (encode_actions_1): Ditto.
1646 * target.h (struct target_ops): New method to_supports_string_tracing.
1647 (target_supports_string_tracing): New macro.
1648 * target.c (update_current_target): Add to_supports_string_tracing.
1649 * remote.c (struct remote_state): New field string_tracing.
1650 (remote_string_tracing_feature): New function.
1651 (remote_protocol_features): New feature tracenz.
1652 (remote_supports_string_tracing): New function.
1653 (init_remote_ops): Set to_supports_string_tracing.
1655 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1656 Jan Kratochvil <jan.kratochvil@redhat.com>
1658 * linux-nat.c: Include cli/cli-utils.h.
1659 (enum info_proc_what): New.
1660 (linux_nat_info_proc_cmd): Rename to ...
1661 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1662 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1663 status_f and stat_f from WHAT. Throw error on extra parameters.
1664 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1665 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1666 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1667 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1668 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1669 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1670 `info proc cmdline', `info proc exe' and `info proc all' as real
1671 subcommands of `info proc'.
1673 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1675 * Makefile.in: (SFILES): Add skip.c.
1676 (HFILES_NO_SRCDIR): Add skip.h.
1677 (COMMON_OBS): Add skip.o.
1678 * skip.h, skip.c: New.
1679 * breakpoint.h (set_default_breakpoint): Remove.
1680 (get_sal_arch): Declare.
1681 * breakpoint.c: Remove default_breakpoint_valid,
1682 default_breakpoint_address, default_breakpoint_symtab,
1683 default_breakpoint_line, default_breakpoint_pspace variables.
1684 (get_sal_arch): Make public.
1685 (set_default_breakpoint): Remove.
1686 (parse_breakpoint_sals, create_breakpoint, clear_command,
1687 decode_line_spec_1): Remove uses of default_breakpoint variables;
1688 replaced with function calls into stack.c.
1689 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1690 * cli/cli-cmds.c: Add skiplist.
1691 (init_cmd_lists): Initialize skiplist.
1692 (init_cli_cmds): Fix comment (classes of commands appear in
1693 alphabetical order).
1694 * infrun.c (handle_inferior_event): Add check that we don't step into
1695 a function whose pc is marked for skip.
1696 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1697 last_displayed_addr, last_displayed_symtab, last_displayed_line
1699 (set_last_displayed_sal): New static function.
1700 (print_frame_info): Switch call to set_default_breakpoint to call to
1701 set_last_displayed_sal.
1702 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1703 get_last_displayed_pspace, get_last_displayed_addr,
1704 get_last_displayed_symtab, get_last_displayed_line,
1705 get_last_displayed_sal): New public functions.
1706 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1707 get_last_displayed_pspace, get_last_displayed_addr,
1708 get_last_displayed_symtab, get_last_displayed_line,
1709 get_last_displayed_sal): Declare.
1711 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1713 * MAINTAINERS (Write After Approval): Add myself to the list.
1715 2011-10-29 Yao Qi <yao@codesourcery.com>
1717 * infcmd.c (disconnect_command): Call disconnect_tracing.
1719 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1722 * symtab.c (skip_prologue_sal): Code reformatting.
1724 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1727 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1728 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1731 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1733 * linux-nat.c (linux_nat_filter_event): Remove `options'
1734 parameter, and dead code that used it. If we're handling a
1735 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1736 in our lwp list, re-add it.
1737 (check_zombie_leaders): New.
1738 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1739 wait for children with WNOHANG, and always wait for all children.
1740 Don't check for no resumed children upfront. Simplify wait loop.
1741 Check for zombie thread group leaders after handling all wait
1742 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1743 unwaited-for children left.
1744 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1745 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1746 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1747 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1749 2011-10-28 Sterling Augustine <saugustine@google.com>
1751 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1752 * symtab.c (free_completion_list): New function.
1753 (do_free_completion_list): Likewise.
1754 (default_make_symbol_completion_list_break_on): New variable
1755 back_to. Call make_cleanup and discard_cleanups.
1756 (make_source_files_completion_list): Likewise.
1758 2011-10-28 Paul Koning <paul_koning@dell.com>
1760 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1761 * NEWS: Mention deep_items.
1763 2011-10-28 Alen Skondro <askondro@gmail.com>
1765 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1768 2011-10-27 Meador Inge <meadori@codesourcery.com>
1770 * MAINTAINERS (Write After Approval): Add myself to the list.
1772 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1774 * value.h (read_frame_register_value): Add declaration.
1775 * findvar.c (read_frame_register_value): New function.
1776 (value_from_register): Use read_frame_register_value
1777 instead of get_frame_register_value + value_contents_copy
1778 to get value contents.
1780 2011-10-27 Doug Evans <dje@google.com>
1782 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1783 source_script_from_stream if it may have been found on the search path.
1784 * python/py-auto-load.c (source_section_scripts): Pass full path to
1785 source_python_script_for_objfile.
1786 * python/python.c (source_python_script): Delete stream parameter.
1787 All callers updated.
1788 (source_python_script_for_objfile): Ditto.
1789 * python/python-internal.h (source_python_script_for_objfile): Update.
1790 * python/python.h (source_python_script): Update.
1792 2011-10-27 Tom Tromey <tromey@redhat.com>
1794 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1795 (ada_sals_for_line): Remove declarations.
1797 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1799 Move unwind reasons to an external .def file
1800 * frame.c (frame_stop_reason_string): Rewrite using
1801 unwind_stop_reasons.def.
1802 * frame.h (enum unwind_stop_reason): Likewise.
1803 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1804 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1805 constants for bound-checking.
1806 * unwind_stop_reasons.def: New file.
1807 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1808 instead of a distinct value.
1810 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1814 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1815 (convert_values_to_python): Return on Python tuple allocation
1816 failure. Return NULL on value conversion error.
1818 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1820 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1821 (bppy_set_task): Ditto.
1822 (bppy_delete_breakpoint): Ditto.
1823 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1824 (gdbpy_lookup_global_symbol): Ditto.
1825 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1826 * python/py-frame.c (frapy_is_valid): Ditto.
1827 (frame_info_to_frame_object): Ditto.
1828 * python/py-type.c (typy_lookup_type): Ditto.
1829 (typy_getitem): Ditto.
1830 (typy_has_key): Ditto.
1831 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1833 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1835 * gdbarch.h: Regenerate.
1837 2011-10-26 Meador Inge <meadori@codesourcery.com>
1839 * gdbarch.sh (function_list): Use 'pstring' when printing
1841 * gdbarch.c: Regenerate.
1843 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1845 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1846 and frame caches if PTID refers to all threads of a process.
1848 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1850 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1851 to create_breakpoint.
1853 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1855 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1856 (ppc_sysv_abi_push_dummy_call): Use it.
1857 (do_ppc_sysv_return_value): Likewise.
1858 (ppc64_sysv_abi_push_dummy_call): Likewise.
1859 (ppc64_sysv_abi_return_value): Likewise.
1861 2011-10-26 Paul Koning <paul_koning@dell.com>
1863 * python/lib/gdb/types.py (deepitems): New function.
1865 2011-10-25 Paul Koning <paul_koning@dell.com>
1869 * python/py-value.c (value_to_value_object): Remove fetching of
1870 the value if it was lazy.
1871 (valpy_get_is_lazy): New function.
1872 (valpy_fetch_lazy): New function.
1874 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1876 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1877 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1879 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1881 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1882 event, in non-stop, if not stopping, make sure the new lwp has
1883 last_resume_kind set to resume_continue. Assert that when we're
1884 resuming the new lwp, its last_resume_kind is resume_continue.
1886 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1888 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1889 already set when marking the event thread as not executing in
1892 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1894 * infrun.c (handle_inferior_event): Add debug output for
1895 TARGET_WAITKIND_NO_HISTORY.
1897 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1899 * NEWS: Move set/show extended-prompt to "New Options". Expand
1900 description. Fix typos.
1902 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1906 * python/py-param.c (call_doc_function): Correctly deference on
1909 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1911 * ada-tasks.c (print_ada_task_info): Fix computation of
1912 number of tasks displayed in command output.
1914 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1915 Ulrich Weigand <uweigand@de.ibm.com>
1917 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1918 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1919 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1920 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1923 2011-10-20 Cary Coutant <ccoutant@google.com>
1925 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1927 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1928 flag. Adjust all callers.
1929 (process_psymtab_comp_unit): Remove adjustment for type section.
1931 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1933 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1934 arguments by adding OBJFILE. Instead of getting objfile from
1935 symbol's symtab, use new argument OBJFILE.
1936 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1937 arguments by adding OBJFILE.
1938 * gdb/dwarf2read.c (new_symbol_full): Change call to
1939 cp_scan_for_anonymous_namespaces to match new signature.
1940 * gdb/stabsread.c (define_symbol): Change call to
1941 cp_scan_for_anonymous_namespaces to match new signature.
1943 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1948 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1950 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1951 leak. Delete unused variables.
1953 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1957 * python/py-frame.c (frapy_read_var): Use const struct *block.
1958 * python/py-type.c (typy_lookup_typename): Likewise.
1959 (typy_lookup_type): Likewise.
1960 (typy_legacy_template_argument): Likewise.
1961 (typy_template_argument): Likewise.
1962 (gdbpy_lookup_type): Likewise.
1963 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1964 * python/py-block.c (blpy_block_object): Likewise.
1965 (blpy_iter): Likewise.
1966 (blpy_get_start): Likewise.
1967 (blpy_get_end): Likewise.
1968 (blpy_get_function): Likewise.
1969 (blpy_get_superblock): Likewise.
1970 (set_block): Likewise.
1971 (block_to_block_object): Likewise.
1972 (block_object_to_block): Likewise.
1973 (blpy_is_valid): Likewise.
1974 (blpy_get_global_block): New function.
1975 (blpy_get_static_block): New function.
1976 (blpy_is_global): New function.
1977 (blpy_is_static): New function.
1978 * blockframe.c (block_innermost_frame): Likewise.
1979 * valops.c (value_of_variable): Likewise.
1980 * frame.h: Update prototypes.
1981 * python/python-internal.h: Likewise.
1982 * value.h: Likewise.
1984 2011-10-19 Cary Coutant <ccoutant@google.com>
1986 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1989 2011-10-19 Cary Coutant <ccoutant@google.com>
1991 * dwarf2read.c (peek_abbrev_code): New function.
1992 (dw2_get_file_names): Check for dummy compilation units.
1993 (create_debug_types_hash_table): Likewise.
1994 (process_psymtab_comp_unit): Likewise.
1995 (load_partial_comp_unit): Likewise.
1996 (load_full_comp_unit): Likewise.
1998 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
2000 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2001 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2002 pt_phdr if PT_PHDR was found.
2004 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
2006 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2007 type or "<unnamed type"> when there is no name assigned.
2008 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2009 avoid a sigint when no name is assigned.
2011 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2014 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2015 * dwarf2expr.c (ctx_no_read_reg): New function.
2016 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2017 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2018 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2019 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2021 2011-10-16 Doug Evans <dje@google.com>
2023 * NEWS: Document python gdb.printing.register_pretty_printer's new
2024 `replace' parameter.
2026 2011-10-14 Keith Seitz <keiths@redhat.com>
2029 * eval.c (evaluate_subexp_standard): Do not construct
2030 an array of types; pass the value array directly to
2031 find_overload_match.
2032 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2033 (rank_function): Take an array of values instead of types.
2034 (rank_one_type): Add struct value * parameter.
2035 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2036 (rank_function): For each argument, pass the argument's
2037 value to rank_one_type.
2038 (rank_one_type): Add VALUE parameter.
2039 If the parameter type is a pointer and the argument type
2040 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2042 Update all calls to rank_one_type, passing NULL for new
2044 * valarith.c (value_user_defined_cpp_op): Do not construct
2045 an array of types; pass the value array directly to
2046 find_overload_match.
2047 * valops.c (find_overload_method_list): Take an array of
2048 values instead of types.
2049 Save the type of OBJP for later use.
2050 Update calls to find_oload_champ, and find_oload_champ_namespace.
2051 (find_oload_champ_namespace): Take an array of values instead
2053 (find_oload_champ_namespace_loop): Likewise.
2054 (find_oload_champ): Likewise.
2055 (classify_oload_match): Inspect all arguments
2056 until INCOMPATIBLE is found. Return the worst badness found
2058 (compare_parameters): Update call to rank_one_type.
2059 * value.h (find_overload_match): Take an array of values instead
2062 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2064 Drop lazy lm_info reading.
2065 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2066 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2067 (lm_info_read): New function.
2068 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2069 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2070 lm_dynamic_from_link_map.
2071 (lm_next, lm_prev, lm_name): Remove.
2072 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2073 initialization incl. read_memory. No longer use lm_name.
2074 (svr4_free_so): Drop lm_info->lm freeing.
2075 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2076 explicit lm_addr and lm initialization.
2077 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2078 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2081 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2082 Paul Pluzhnikov <ppluzhnikov@google.com>
2084 * defs.h (struct so_list): New forward declaration.
2085 (make_cleanup_free_so): New declaration.
2086 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2087 (svr4_free_so): Move the function here from downwards. Handle NULL
2089 (svr4_free_library_list): New.
2090 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2091 Use more cleanups. Use new parameter ignore_first instead of
2092 ignore_first_link_map_entry.
2093 (svr4_current_sos): New variable ignore_first, initialize it. New
2094 variable back_to, use it for svr4_free_library_list protection.
2095 (svr4_free_so): Remove - move upwards.
2096 * utils.c: Include solist.h.
2097 (do_free_so, make_cleanup_free_so): New functions.
2099 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2101 Fix internal error regression.
2102 * value.c (value_primitive_field): Handle value_optimized_out. Move
2103 packed bitfields comment.
2105 2011-10-13 Tom Tromey <tromey@redhat.com>
2107 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2110 2011-10-13 Tom Tromey <tromey@redhat.com>
2112 * python/py-type.c (typy_has_key): Make 'field' const.
2114 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2116 * remote.c (remote_save_trace_data): Invert comparison.
2118 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
2120 * tracepoint.c (trace_save_command): Use filename instead of
2123 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2125 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2128 2011-10-13 Yao Qi <yao@codesourcery.com>
2131 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2132 whether insn is a 32-bit Thumb-2 instruction.
2133 (thumb_in_function_epilogue_p): Likewise.
2134 (thumb_get_next_pc_raw): Likewise.
2135 (arm_breakpoint_from_pc): Likewise.
2137 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2139 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2140 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2141 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2142 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2143 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2145 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2147 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2148 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2149 clear DATA on zero SIZE.
2151 2011-10-12 Doug Evans <dje@google.com>
2153 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2154 header->first_die_offset here. All callers updated.
2156 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2158 Fix compatibility with texinfo versions older than 4.12.
2159 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2160 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2161 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2162 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2163 * configure: Regenerate.
2164 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2165 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2166 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2168 2011-10-12 Gary Benson <gbenson@redhat.com>
2170 * breakpoint.h (pc_at_non_inline_function): Declare.
2171 * breakpoint.c (is_non_inline_function,
2172 pc_at_non_inline_function): New functions.
2173 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2174 if the stop is at a location where functions cannot be inlined.
2176 2011-10-12 Pedro Alves <pedro@codesourcery.com>
2178 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2179 the core wanted them stopped, or if they now have a pending event
2181 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2182 down to stop_and_resume_callback.
2183 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2184 having new pending events after calling linux_nat_filter_event.
2186 2011-10-11 Sterling Augustine <saugustine@google.com>
2188 * dwarf2read.c: Undo inadvertent changes in previous commit.
2190 2011-10-11 Sterling Augustine <saugustine@google.com>
2192 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2195 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2197 * symfile.c (separate_debug_file_exists): Fix condition.
2199 2011-10-11 David S. Miller <davem@davemloft.net>
2201 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2203 * regcache.h (regcache_restore): Remove declaration.
2205 * gdbarch.sh: New field 'long_long_align_bit'.
2206 * gdbarch.c, gdbarch.h: Regenerate.
2207 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2208 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2210 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2212 Revert this part of:
2213 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2214 Support @entry in input expressions.
2215 * c-exp.y (ENTRY, unknown_cpp_name): New.
2216 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2217 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2218 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2219 (name_not_typename: ENTRY): New.
2220 (yylex): Recognize ENTRY.
2222 Reimplement @entry in input expressions.
2223 * c-exp.y (ENTRY): New.
2224 (variable: name_not_typename ENTRY): New.
2225 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2227 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2229 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2230 parent and child's pids as soon as we detect a clone event.
2231 Adjust another debug message.
2233 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2235 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2236 not zombie instead of reading the whole file.
2238 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2240 Fix separate debuginfo warning with "remote:" access.
2241 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2242 * symfile.c (get_file_crc): New function with the code moved from ...
2243 (separate_debug_file_exists): ... this function, specifically variables
2244 buffer and count. New variable verified_as_different, set it. Remove
2245 file_crc initialization. Verify also if both files are not the same
2246 manually, if needed.
2248 2011-10-11 Yao Qi <yao@codesourcery.com>
2250 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2253 2011-10-10 Doug Evans <dje@google.com>
2255 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2256 libthread_db when we load libpthread or the main symbol file.
2257 (thread_db_inferior_created): New function.
2258 (_initialize_thread_db): Attach inferior_created observer.
2259 * linux-nat.c (linux_child_post_attach): Remove call to
2260 check_for_thread_db.
2261 (linux_child_post_startup_inferior): Ditto.
2262 * objfiles.h (OBJF_MAINLINE): Define.
2263 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2264 allocate_objfile when appropriate.
2266 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2269 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2270 Remove unused variables.
2271 (get_linux_version): Remove function.
2272 (_initialize_arm_linux_nat): Do not call it.
2274 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2276 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2277 new clone lwp if the core asked it to stop. Don't pass on
2278 unexpected signals to the new clone; leave them pending instead.
2280 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2282 * linux-nat.c (resume_lwp): Remove redundant debug output.
2284 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2286 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2287 last_resume_kind before clearing it, and use the copy instead to
2288 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2289 resume_clear_callback in the non-stop path too.
2291 2011-10-09 Yao Qi <yao@codesourcery.com>
2293 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2294 Honor OPTIONS and VAL's type.
2295 (common_val_print, value_print): Update to pass one more parameter.
2297 2011-10-09 Doug Evans <dje@google.com>
2299 Add new "alias" command.
2300 * NEWS: Mention new command.
2301 * command.h (valid_user_defined_cmd_name_p): Declare.
2302 * defs.h (make_cleanup_dyn_string_delete): Declare.
2303 * utils.c: #include "dyn-string.h".
2304 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2305 * cli/cli-cmds.c: #include "dyn-string.h".
2306 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2307 (init_cli_cmds): Add new command.
2308 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2310 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2312 Fix compatibility with older GCCs.
2313 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2314 * stack.c (read_frame_arg): Initialize val_deref.
2316 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2318 Entry values NEWS entries, DWARF disassembly support.
2319 * NEWS: New entry values entry.
2320 (set print entry-values, show print entry-values)
2321 (set debug entry-values, show debug entry-values): New entries.
2322 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2323 indent. Remove variable start. Move header printing out. Respect
2324 INDENT. Support DW_OP_GNU_entry_value.
2325 (locexpr_describe_location_1): Move the header printing here, extend
2326 the disassemble_dwarf_expression passed parameters.
2328 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2330 Display @entry parameter values even for references.
2331 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2332 coerce_ref_if_computed.
2333 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2334 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2335 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2336 existing push_dwarf_reg_entry_value call. Add new detection calling
2337 dwarf_block_to_dwarf_reg_deref. Update the error message.
2338 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2340 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2341 parameter deref_size, describe it in the comment.
2342 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2343 (dwarf_block_to_dwarf_reg_deref): New declaration.
2344 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2345 deref_size, describe it in the function comment. New variables
2346 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2347 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2348 describe it in the function comment. Fetch the alternative block
2349 accoring to DEREF_SIZE.
2350 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2351 (entry_data_value_free_closure, entry_data_value_funcs): New.
2352 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2353 outer_val, target_val, val and addr. Try to fetch and create also
2354 referenced value content.
2355 (pieced_value_funcs): NULL value for coerce_ref.
2356 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2357 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2358 coerce_ref_if_computed.
2359 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2360 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2361 * stack.c (read_frame_arg): Compare also dereferenced values.
2362 * value.c (value_computed_funcs): Make the parameter v const, use
2363 value_lval_const for it.
2364 (value_lval_const, coerce_ref_if_computed): New function.
2365 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2366 * value.h (struct lval_funcs): New field coerce_ref.
2367 (value_computed_funcs): Make the parameter v const.
2368 (value_lval_const, coerce_ref_if_computed): New declarations.
2370 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2372 Support @entry in input expressions.
2373 * c-exp.y (ENTRY, unknown_cpp_name): New.
2374 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2375 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2376 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2377 (name_not_typename: ENTRY): New.
2378 (yylex): Recognize ENTRY.
2379 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2380 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2382 * parse.c (operator_length_standard): Likewise.
2383 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2385 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2387 Display referenced values in backtraces.
2388 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2389 * stack.c (print_frame_arg): Likewise.
2391 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2393 Make some lval_funcs methods to default on NULL.
2394 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2396 (value_assign): Check if lval_computed write method is NULL.
2397 * value.h (struct lval_funcs): Comment NULL values for read and write
2400 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2402 Display @entry parameter values (without references).
2403 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2405 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2407 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2409 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2410 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2412 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2413 (loclist_read_variable_at_entry): New function.
2414 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2415 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2416 DW_AT_location, call dwarf_block_to_sp_offset for it.
2417 * frame.h (print_entry_values_no, print_entry_values_only)
2418 (print_entry_values_preferred, print_entry_values_if_needed)
2419 (print_entry_values_both, print_entry_values_compact)
2420 (print_entry_values_default, print_entry_values): New declarations.
2421 (struct frame_arg): New field entry_kind.
2422 (read_frame_arg): New parameter entryargp.
2423 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2424 arg->entry_kind. Optionally print the `@entry' suffix.
2425 (list_args_or_locals): New variable entryarg, initialize it.
2426 Initialize also entry_kind of arg and entryarg. Conditionalize
2427 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2428 xfree for entryarg.error.
2429 * stack.c (print_entry_values_no, print_entry_values_only)
2430 (print_entry_values_preferred, print_entry_values_if_needed)
2431 (print_entry_values_both, print_entry_values_compact)
2432 (print_entry_values_default, print_entry_values_choices)
2433 (print_entry_values): New variables.
2434 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2435 print the `@entry' suffix, possibly in combination for
2436 print_entry_values_compact.
2437 (read_frame_arg): New parameter entryargp, new variables entryval,
2438 entryval_error and val_equal. Read in also entryargp, respect
2439 print_entry_values, compare the values using val_equal, fill in also
2440 argp->entry_kind (together with entryargp->entry_kind).
2441 (print_frame_args): New variable entryarg, initialize it.
2442 Conditionalize print_frame_arg for arg, add print_frame_arg for
2443 entryarg. Call xfree for entryarg.error.
2444 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2445 * symtab.h (struct symbol_computed_ops): New field
2446 read_variable_at_entry.
2448 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2451 * frame.h (struct frame_arg): New definition.
2452 (read_frame_arg): New declaration.
2453 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2454 (list_args_or_locals): ... the code here. New variable arg, call
2455 read_frame_arg and list_arg_or_local with it. Unify the
2456 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2458 * stack.c (print_frame_arg): New functiom from the code of
2460 (read_frame_arg): New function.
2461 (print_frame_args): Remove variable val. New variable arg, call
2462 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2464 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2466 Protect entry values against self tail calls.
2467 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2468 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2470 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2472 Recognize virtual tail call frames.
2473 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2474 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2475 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2476 * dwarf2-frame-tailcall.c: New file.
2477 * dwarf2-frame-tailcall.h: New file.
2478 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2479 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2480 REGS.PREV only after CIE execution.
2481 (struct dwarf2_frame_cache): New field tailcall_cache.
2482 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2483 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2484 parts, try to find entry_cfa_sp_offset. Call
2485 dwarf2_tailcall_sniffer_first.
2486 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2488 (dwarf2_frame_dealloc_cache): New function.
2489 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2490 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2491 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2492 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2493 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2494 * dwarf2loc.c (func_addr_to_tail_call_list)
2495 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2496 (call_site_find_chain_1, call_site_find_chain): New.
2497 * dwarf2loc.h (struct call_site_chain): New.
2498 (call_site_find_chain): New declaration.
2499 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2500 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2501 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2502 * stack.c (frame_info): Support also TAILCALL_FRAME.
2504 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2506 Tail call sites reader implementation.
2507 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2508 fill in TYPE_TAIL_CALL_LIST.
2509 * gdbtypes.h (struct func_type): New field tail_call_list.
2510 (struct call_site): New field tail_call_next.
2511 (TYPE_TAIL_CALL_LIST): New definition.
2513 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2515 Implement basic support for DW_TAG_GNU_call_site.
2516 * block.c: Include gdbtypes.h and exceptions.h.
2517 (call_site_for_pc): New function.
2518 * block.h (call_site_for_pc): New declaration.
2519 * defs.h: Include hashtab.h.
2520 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2522 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2523 ctx_no_push_dwarf_reg_entry_value.
2524 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2525 (dwarf_block_to_dwarf_reg): New function.
2526 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2527 (ctx_no_push_dwarf_reg_entry_value): New function.
2528 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2529 push_dwarf_reg_entry_value.
2530 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2532 * dwarf2loc.c: Include gdbcmd.h.
2533 (dwarf_expr_ctx_funcs): New forward declaration.
2534 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2535 (dwarf_expr_reg_to_entry_parameter)
2536 (dwarf_expr_push_dwarf_reg_entry_value): New.
2537 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2538 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2539 (needs_dwarf_reg_entry_value): New function.
2540 (needs_frame_ctx_funcs): Install it.
2541 (_initialize_dwarf2loc): New function.
2542 * dwarf2loc.h (entry_values_debug): New declaration.
2543 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2544 (read_call_site_scope): New forward declaration.
2545 (process_full_comp_unit): Copy call_site_htab.
2546 (process_die): Support DW_TAG_GNU_call_site.
2547 (read_call_site_scope): New function.
2548 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2549 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2550 (cleanup_htab): Delete.
2551 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2552 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2553 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2554 FIELD_LOC_KIND_DWARF_BLOCK.
2555 * gdbtypes.h (enum field_loc_kind): New entry
2556 FIELD_LOC_KIND_DWARF_BLOCK.
2557 (struct main_type): New loc entry dwarf_block.
2558 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2559 (TYPE_FIELD_DWARF_BLOCK): New.
2560 * python/py-type.c: Include dwarf2loc.h.
2561 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2562 internal_error call on unknown FIELD_LOC_KIND.
2563 * symtab.h (struct symtab): New field call_site_htab.
2564 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2565 (core_addr_hash, core_addr_eq): New functions.
2567 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2570 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2571 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2572 calling_convention under func_stuff there.
2573 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2574 (init_type) <TYPE_CODE_FUNC>: Likewise.
2575 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2576 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2577 * gdbtypes.h (enum type_specific_kind): Change
2578 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2579 (struct main_type) <type_specific>: Change calling_convention to
2580 func_stuff. Move calling_convention to ...
2581 (struct func_type): ... this new struct.
2582 (INIT_FUNC_SPECIFIC): New #define.
2583 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2585 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2587 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2588 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2589 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2590 ctx->ref_addr_size. Handle its invalid value.
2591 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2592 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2593 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2594 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2595 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2596 (dwarf2_per_cu_ref_addr_size): New function.
2598 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2601 * dwarf2read.c (per_cu_header_read_in): New function.
2602 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2603 variables cu_header_local and cu_headerp.
2605 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2607 Fix initial language detection with -readnow.
2608 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2609 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2610 searches only for global symbols.
2612 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2614 Fix printed anonymous struct name.
2615 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2616 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2617 (anonymous_struct_prefix): New function.
2618 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2619 (dwarf2_name): Strip for anonymous structs any prefixes.
2621 2011-10-07 Doug Evans <dje@google.com>
2623 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2626 * python/lib/gdb/printing.py: Whitespace cleanup.
2628 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2631 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2633 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2634 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2635 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2636 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2637 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2638 (arm_linux_remove_watchpoint): Adjust.
2639 * i386-linux-nat.c (i386_linux_dr_set_control)
2640 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2641 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2642 (ia64_linux_remove_watchpoint): Adjust.
2643 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2644 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2645 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2646 (ppc_linux_insert_mask_watchpoint)
2647 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2648 (ppc_linux_remove_watchpoint): Adjust.
2649 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2652 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2654 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2655 (clear_win32_environment): New function for Cygwin to clear out
2657 (windows_create_inferior): Prepare new environment from in_env
2660 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2663 * python/py-value.c (valpy_call): Check that arguments are
2665 (is_intlike): Remove call to CHECK_TYPEDEF.
2666 (valpy_nonzero): Catch GDB exceptions.
2667 (valpy_absolute): Ditto.
2668 (valpy_lazy_string): Ditto.
2669 (valpy_call): Ditto.
2670 (valpy_get_is_optimized_out): Ditto.
2671 (valpy_long): Ditto.
2672 (valpy_float): Ditto.
2673 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2674 (valpy_richcompare): Ditto.
2676 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2678 * inferior.h (disable_randomization): Declare.
2679 * infrun.c (disable_randomization): New global variable.
2680 (show_disable_randomization): New function.
2681 (set_disable_randomization): Likewise.
2682 (_initialize_infrun): Install set/show disable-randomization
2684 * linux-nat.c (disable_randomization): Remove.
2685 (show_disable_randomization): Likewise.
2686 (set_disable_randomization): Likewise.
2687 (_initialize_linux_nat): No longer install set/show
2688 disable-randomization commands here.
2689 (linux_nat_supports_disable_randomization): New function.
2690 (linux_nat_add_target): Install it.
2691 * remote.c (PACKET_QDisableRandomization): New enum value.
2692 (remote_protocol_packets): Support QDisableRandomization.
2693 (_initialize_remote): Likewise.
2694 (remote_supports_disable_randomization): New function.
2695 (init_remote_ops): Install it.
2696 (extended_remote_supports_disable_randomization): New function.
2697 (init_extended_remote_ops): Install it.
2698 (extended_remote_disable_randomization): New function.
2699 (extended_remote_create_inferior_1): Call it.
2700 * target.h (struct target_ops): Add to_supports_disable_randomization.
2701 (target_supports_disable_randomization): Add prototype.
2702 * target.c (target_supports_disable_randomization): New function.
2703 (find_default_supports_disable_randomization): Likewise.
2704 (init_dummy_target): Install it.
2706 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2708 Allow Python notification of new object-file loadings.
2709 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2710 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2711 Add build rule for this file.
2712 * python/py-event.h (emit_new_objfile_event): New prototype.
2713 (newobjfile): New Python event emitter.
2714 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2715 Python event registry.
2716 * python/py-inferior.c: Include objfiles.h
2717 (python_new_objfile): New function.
2718 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2720 * python/py-newobjfileevent.c: New file.
2721 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2723 * python/python.c (_initialize_python): Add
2724 gdbpy_initialize_new_objfile_event call.
2725 * NEWS: Add item for new Python event "gdb.newobjfile"
2727 2011-10-05 Tristan Gingold <gingold@adacore.com>
2729 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2730 Extract the ravenscar task name from the symbol for the atcb.
2732 2011-10-04 Paul Koning <paul_koning@dell.com>
2734 * python/py-type.c (typy_make_iter): Add forward declaration.
2735 (typy_fields_items): Use the gdb.Type iterator.
2737 2011-10-04 Paul Koning <paul_koning@dell.com>
2739 * NEWS: Add entry for Python gdb.Type mapping methods.
2741 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2743 PR python/12691: Add the inferior to Python exited event
2744 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2746 * python/py-event.h (emit_exited_event): Likewise
2747 * python/-inferior.c (python_inferior_exit): Likewise
2749 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2751 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2752 in output of -ada-task-info GDB/MI command.
2754 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2756 * ada-lang.h (struct inferior): Declare.
2757 (print_ada_task_info): Add declaration.
2758 * ada-tasks.c (print_ada_task_info): Make non-static.
2759 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2760 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2761 * mi/mi-main.c: #include "ada-lang.h".
2762 (mi_cmd_list_features): Add "ada-task-info" to the list
2763 of supported features.
2764 (mi_cmd_ada_task_info): New function.
2766 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2768 * python/python.c (python_run_simple_file): New function.
2769 (source_python_script, source_python_script_for_objfile):
2770 Replace call to PyRun_SimpleFile by call to
2771 python_run_simple_file.
2773 2011-10-03 Paul Koning <paul_koning@dell.com>
2775 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2776 (value_to_value_object): Fetch value if it was lazy.
2778 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2781 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2782 Rearrange the code for it.
2784 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2786 * breakpoint.c (bkpt_print_recreate): Add call to
2787 print_recreate_thread.
2789 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2791 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2792 PTRACE_GETFDPIC_INTERP): Define.
2794 2011-09-28 Yao Qi <yao@codesourcery.com>
2796 * symfile.c (add_symbol_file_command): Update message on usage.
2798 2011-09-28 Paul Koning <paul_koning@dell.com>
2800 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2801 (typy_length, typy_get, typy_has_key, typy_make_iter)
2802 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2803 (typy_iterator_iter, typy_iterator_iternext)
2804 (typy_iterator_dealloc): New functions to implement standard
2805 Python mapping methods on gdb.Type object.
2806 (gdb.TypeIterator): New Python type.
2807 * python/python-internal.h (gdbpy_iter_kind): New enum.
2809 2011-09-28 David S. Miller <davem@davemloft.net>
2811 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2812 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2813 * sparc-tdep.c (sparc_complex_floating_p): New function.
2814 (sparc32_store_arguments): Handle complex floats.
2815 (sparc32_extract_return_value): Likewise.
2816 (sparc32_store_return_value): Likewise.
2817 (sparc32_stabs_argument_has_addr): Likewise.
2818 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2819 (sparc64_store_floating_fields): Handle complex floats.
2820 (sparc64_store_arguments): Likewise.
2821 (sparc64_store_return_value): Likewise.
2823 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2825 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2826 before the change on 2006-12-09.
2827 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2828 generates the environment block for CreateProcessA, modulo the
2829 Cygwin-specific parts that are not needed here.
2831 2011-09-27 Tristan Gingold <gingold@adacore.com>
2833 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2834 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2835 (darwin_solib_get_all_image_info_addr_at_init): New function.
2836 (darwin_solib_read_all_image_info_addr): Likewise.
2837 (darwin_solib_create_inferior_hook): Use the above two functions.
2838 * darwin-nat.c (darwin_execvp): Renames retval to res.
2839 (darwin_read_write_inferior): Update comment.
2840 (darwin_read_dyld_info): New function.
2841 (darwin_xfer_partial): Handle DYLD_INFO.
2843 2011-09-27 Stan Shebs <stan@codesourcery.com>
2845 Add return address collection for tracepoints.
2846 * tracepoint.c (encode_actions_1): Add case for $_ret.
2847 (validate_actionline): Check for $_ret.
2848 (trace_dump_actions): Ditto.
2849 * ax-gdb.h (gen_trace_for_return_address): Declare.
2850 * ax-gdb.c: Include arch-utils.h.
2851 (gen_trace_for_return_address): New function.
2852 (agent_command): Add return address special case.
2853 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2854 (amd64_gen_return_address): New function.
2855 (amd64_init_abi): Call it.
2856 * i386-tdep.c: Include ax.h and ax-gdb.h.
2857 (i386_gen_return_address): New function.
2858 (i386_init_abi): Call it.
2859 * arch-utils.h (default_gen_return_address): Declare.
2860 * arch-utils.c (default_gen_return_address): New function.
2861 * gdbarch.sh (gen_return_address): New method.
2862 * gdbarch.h, gdbarch.c: Regenerate.
2864 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2867 * i386-tdep.c (i386_frame_align): New.
2868 (i386_gdbarch_init): Use i386_frame_align.
2870 2011-09-23 Yao Qi <yao@codesourcery.com>
2872 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2875 2011-09-22 Tristan Gingold <gingold@adacore.com>
2877 * fork-child.c (fork_inferior): Add exec_fun parameter.
2878 Call exec_fun or execvp.
2879 * inferior.h: Adjust prototype.
2880 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2881 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2882 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2883 * procfs.c (procfs_create_inferior): Ditto.
2884 * darwin-nat.c (darwin_execvp): New function.
2885 (darwin_create_inferior): Use it.
2887 2011-09-22 Yao Qi <yao@codesourcery.com>
2889 * infrun.c (context_switch): Print debug message when switching to
2892 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2894 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2895 complex and vector types.
2896 (s390_return_value_convention): Likewise.
2898 (s390_value_from_register): Call check_typedef.
2899 (extend_simple_arg): Likewise.
2900 (alignment_of): Likewise.
2901 (s390_push_dummy_call): Likewise.
2902 (s390_return_value): Likewise.
2904 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2906 * event-top.c (async_disconnect): If an exception is thrown from
2907 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2909 * top.c (quit_cover): Return void and take no arguments.
2910 * top.h (quit_cover): Update prototype.
2912 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2914 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2915 current_uiout, not uiout.
2917 2011-09-19 Doug Evans <dje@google.com>
2919 * python/py-auto-load.c (source_section_scripts): Fix file
2921 * python/python.c (source_python_script_for_objfile): Tweak comments.
2923 2011-09-18 Yao Qi <yao@codesourcery.com>
2924 Ulrich Weigand <ulrich.weigand@linaro.org>
2926 Support displaced stepping for Thumb 16-bit insns.
2927 * arm-tdep.c (THUMB_NOP) Define.
2928 (thumb_copy_unmodified_16bit): New.
2929 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2930 (thumb_copy_alu_reg): New.
2931 (arm_copy_svc): Move some common code to ...
2932 (install_svc): ... here. New.
2933 (thumb_copy_svc): New.
2934 (install_pc_relative): New.
2935 (thumb_copy_pc_relative_16bit): New.
2936 (thumb_decode_pc_relative_16bit): New.
2937 (thumb_copy_16bit_ldr_literal): New.
2938 (thumb_copy_cbnz_cbz): New.
2939 (cleanup_pop_pc_16bit_all): New.
2940 (thumb_copy_pop_pc_16bit): New.
2941 (thumb_process_displaced_16bit_insn): New.
2942 (thumb_process_displaced_32bit_insn): New.
2943 (thumb_process_displaced_insn): process thumb instruction.
2945 Support displaced stepping for Thumb 32-bit insns.
2946 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2947 (thumb2_copy_preload): New.
2948 (thumb2_copy_copro_load_store): New.
2949 (thumb2_copy_b_bl_blx): New.
2950 (thumb2_copy_alu_imm): New.
2951 (thumb2_copy_load_reg_imm): New.
2952 (thumb2_copy_load_literal): New
2953 (thumb2_copy_block_xfer): New.
2954 (thumb_32bit_copy_undef): New.
2955 (thumb_32bit_copy_unpred): New.
2956 (thumb2_decode_ext_reg_ld_st): New.
2957 (thumb2_decode_svc_copro): New.
2958 (decode_thumb_32bit_store_single_data_item): New.
2959 (thumb_copy_pc_relative_32bit): New.
2960 (thumb_decode_pc_relative_32bit): New.
2961 (decode_thumb_32bit_ld_mem_hints): New.
2962 (thumb2_copy_table_branch): New
2963 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2966 2011-09-18 Yao Qi <yao@codesourcery.com>
2968 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2969 (install_b_bl_blx): Likewise.
2971 2011-09-17 Yao Qi <yao@codesourcery.com>
2973 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2974 (install_load_store): ... this. New.
2975 Change parameter BYTE to SIZE.
2976 (arm_copy_ldr_str_ldrb_strb): Update caller.
2977 (arm_decode_ld_st_word_ubyte): Update caller.
2979 2011-09-17 Yao Qi <yao@codesourcery.com>
2981 * infrun.c (displaced_step_fixup): Move some code ...
2982 (displaced_step_restore): ... here. New function.
2983 (handle_inferior_event): Cleanup displaced stepping state for both
2984 child and parent when get forked or vforked event.
2985 * regcache.c (get_thread_arch_aspace_regcache): New function.
2986 get_thread_arch_regcache (): Call it.
2988 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2990 * ada-tasks.c (print_ada_task_info): New function, merging
2991 short_task_info and info_tasks together. Reimplement using
2992 ui-out instead of printing to stdout directly. Move the code
2993 building and checking the task list here, instead of leaving it
2994 in info_tasks_command.
2995 (info_task): Move the code building and checking the task
2996 list here, instead of leaving it in info_tasks_command.
2997 (info_tasks_command): Delete code building and checking
2998 the task list - moved elsewhere. Update calls to info_tasks
3001 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3003 * ada-tasks.c (info_task): Delete parameter `from_tty'.
3005 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3007 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3009 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3011 * ada-lang.h (ada_build_task_list): Remove parameter
3013 * ada-tasks.c (ada_build_task_list): Remove parameter
3014 `warn_if_null'. Adjust implementation and documentation.
3015 (valid_task_id, ada_get_environment_task)
3016 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3017 (info_tasks_command): Adjust implementation.
3018 (task_command): Likewise.
3019 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3020 to ada_build_task_list.
3022 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3024 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3025 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3026 (ada_tasks_inferior_data_handle): New static global.
3027 (get_ada_tasks_inferior_data): New function.
3028 (ada_get_task_number, get_task_number_from_id, valid_task_id)
3029 (ada_get_environment_task, iterate_over_live_ada_tasks)
3030 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3032 (ada_set_current_inferior_known_tasks_addr): New function.
3033 (read_known_tasks, ada_build_task_list, short_task_info)
3034 (info_tasks, info_task, info_tasks_command, task_command_1)
3035 (task_command, ada_task_list_changed): Adjust.
3036 (ada_tasks_invalidate_inferior_data): New function.
3037 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3038 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3039 * ada-lang.h (struct inferior): Add declaration.
3040 (ada_task_list_changed): Update profile.
3041 * remote-wtx-pd.c: #include "inferior.h".
3042 (switch_to_pd_internal): Update call to ada_task_list_changed.
3044 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3046 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3047 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3048 (atcb_fieldno): Delete these static globals.
3049 (struct ada_tasks_pspace_data): New struct.
3050 (ada_tasks_pspace_data_handle): New static global.
3051 (get_ada_tasks_pspace_data): New function.
3052 (ada_tasks_invalidate_pspace_data): New function.
3053 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3054 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3055 (_initialize_tasks): Create this module's per-progspace
3058 2011-09-16 Joel Brobecker <brobecker@adacore.com>
3060 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3062 2011-09-16 Tristan Gingold <gingold@adacore.com>
3064 * fork-child.c (fork_inferior): Update comment. Use alloca
3065 instead of xmalloc for argv. Move len and shell_command
3066 declarations in the block where they are used.
3067 Only call execvp. Factorize failure code.
3069 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3072 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3073 `exp_element' instead of an element of the same and make the function
3075 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3076 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3077 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3078 Change argument of `write_exp_elt' function call.
3079 Remove extra spaces from comments.
3080 * parser-defs.h (write_exp_elt): Remove prototype.
3082 2011-09-15 Paul Koning <paul_koning@dell.com>
3084 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3085 count of item appended to list.
3086 * python/py-type.c (typy_fields): Likewise.
3088 2011-09-15 Paul Koning <paul_koning@dell.com>
3090 * MAINTAINERS (Write After Approval): Add myself to the list.
3092 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3095 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3096 processes with multiple threads.
3097 (inf_has_multiple_thread_cb): New function.
3098 (inf_has_multiple_threads): New function.
3100 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3102 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3103 * python/py-inferior.c (GdbMethods): New Python method definition.
3105 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3107 Handle multiple breakpoint hits in Python interface:
3108 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3109 variable to breakpoints.
3110 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3111 bps instead of single breakpoint. Fix some space typos.
3112 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3113 variable to breakpoints.
3115 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3117 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3118 note if the breakpoint is internal.
3120 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
3122 * MAINTAINERS (Write After Approval): Add myself to the list
3124 2011-09-14 Pedro Alves <pedro@codesourcery.com>
3126 * infrun.c (prepare_for_detach, wait_for_inferior)
3127 (fetch_inferior_event): Don't flush the register cache.
3128 * remote.c (struct stop_reply) <regcache>: Add comment.
3130 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3132 Remove excessive DWARF expressions memory duplication.
3133 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3135 (indirect_pieced_value): Remove variable result. Remove variable
3136 back_to and its use for baton.data.
3137 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3139 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3140 Update the function comment.
3142 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3144 * inferior.h (ALL_INFERIORS): New.
3145 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3146 for a stopped thread.
3147 (thread_db_find_new_threads): Look for threads in all inferiors.
3149 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3151 * breakpoint.c (update_watchpoint): Handle the case of the
3152 watchpoint to update not being in the breakpoint list yet.
3153 (hw_watchpoint_use_count): New, factored out from
3154 hw_watchpoint_used_count.
3155 (hw_watchpoint_used_count): Rename to ...
3156 (hw_watchpoint_used_count_others): ... this. Add `except'
3157 parameter. Don't count resources of `except'. Use
3158 hw_watchpoint_use_count.
3160 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3162 * gdbthread.h (enum thread_state): Moved here.
3163 (struct thread_info): Rename `executing_' field to `executing' and
3164 `state_' to `state'.
3165 * thread.c (enum thread_state): Moved to gdbthread.h.
3166 (new_thread, add_thread_silent, delete_thread_1)
3167 (any_live_thread_of_process, thread_alive, set_running)
3168 (set_running, is_thread_state, any_running, is_executing)
3169 (set_executing, finish_thread_state, print_thread_info)
3170 (do_captured_thread_select): Adjust.
3172 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3174 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3175 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3177 2011-09-12 Pedro Alves <pedro@codesourcery.com>
3178 Matt Rice <ratmice@gmail.com>
3182 * interps.c (struct interp) <interpreter_out>: Delete field.
3183 (interp_new): Remove the data and uiout parameters and adjust.
3184 (interp_set): Only set the current_uiout from the interpreter's
3185 uiout after initializing the interpreter. Adjust call to
3187 (interp_ui_out): Adjust to call procs->ui_out_proc.
3188 (interp_data, interp_name): New.
3189 * interps.h (interp_init_ftype): Add `self' parameter.
3190 (interp_ui_out_ftype): New typedef.
3191 (struct interp_procs) <ui_out_proc>: New method pointer.
3192 (interp_new): Remove the data and uiout parameters.
3193 (interp_data, interp_name): Declare.
3194 * tui/tui-interp.c (tui_init): Adjust prototype.
3196 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3197 tui_out here. Adjust call to interp_new.
3198 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3199 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3201 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3202 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3203 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3204 Initialize mi->uiout depending on the mi_version as extracted from
3205 the interpreter's name.
3207 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3208 interp_new. Don't allocate the ui_out's of the interpreters here.
3210 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3212 * solib.c (solib_used): New function.
3213 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3214 by another so_list object before freeing it.
3216 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3219 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3222 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3225 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3226 (amd64_skip_xmm_prologue): ... this new function. Describe its
3227 parameters. No longer use amd64_prologue_line_bug.
3228 * defs.h (producer_is_gcc_ge_4): New declaration.
3229 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3230 (process_full_comp_unit): Update its caller. Remove
3231 amd64_prologue_line_bug initialization.
3232 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3233 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3235 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3237 * linux-nat.h (enum resume_kind): New.
3238 (struct lwp_info) <last_resume_kind>: New field.
3239 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3240 resume_stop on the new lwp.
3241 (add_lwp): Set last_resume_kind as resume_continue by default.
3242 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3243 (resume_lwp): New, factored out from resume_callback. Also check
3244 for pending status in lp->waitstatus.
3245 (resume_callback): Reimplement.
3246 (resume_clear_callback): Set last_resume_kind as resume_stop.
3247 (resume_set_callback): Set last_resume_kind as resume_continue.
3248 (linux_nat_resume, linux_handle_extended_wait): Set
3250 (running_callback): Also check lp->waitstatus for pending events.
3251 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3253 (stop_and_resume_callback): Don't re-resume if the core wanted the
3254 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3255 using an invalidated pointer.
3256 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3257 SIGSTOPs if the core wanted the LWP to stop.
3258 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3259 wanted the lwp to stop. If the core wanted the lwp to stop, and
3260 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3261 of TARGET_SIGNAL_STOP.
3262 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3263 here. Instead, signal the lwp, and set the last_resume_kind to
3266 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3268 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3269 -1 (error), if the lwp exits right after attaching.
3271 2011-09-08 Doug Evans <dje@google.com>
3273 * py-cmd.c: Some minor formatting fixes.
3274 (gdbpy_parse_command_name): Rename text arg to name, make const.
3275 All callers updated.
3276 * python-internal.h (gdbpy_parse_command_name): Update.
3278 * cli/cli-decode.c (add_cmd): Add comment.
3280 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3282 PR breakpoints/12435
3283 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3284 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3285 * dwarf2read.c (process_full_comp_unit): Initialize
3286 amd64_prologue_line_bug.
3287 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3289 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3291 Fix TUI screen corruption.
3292 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3295 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3297 * findvar.c (read_var_value): Never return NULL, throw an error
3298 instead. Update the function comment. State symbol name in the error
3300 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3302 * stack.c (print_frame_args): Likewise.
3303 * valops.c (value_of_variable): Likewise.
3305 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3307 * stack.c (print_frame_args): New variable except. Wrap
3308 read_var_value and common_val_print into TRY_CATCH.
3310 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3312 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3313 caller to value_of_this.
3314 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3316 * valops.c (value_of_this): Remove parameter complain and variable ret.
3317 Update function comment. Never return NULL by this code.
3318 (value_of_this_silent): New function.
3319 * value.h (value_of_this): Remove parameter complain.
3320 (value_of_this_silent): New declaration.
3322 2011-09-07 Yao Qi <yao@codesourcery.com>
3324 * gdbthread.h (struct thread_info): Remove fields
3325 `stepping_through_solib_after_catch' and
3326 `stepping_through_solib_catchpoints'.
3327 * infrun.c (init_thread_stepping_state): Update.
3328 (process_event_stop_test, currently_stepping): Update.
3329 (currently_stepping_or_nexting_callback): Update.
3331 2011-09-07 Yao Qi <yao@codesourcery.com>
3333 * gdbthread.h (struct thread_info): Comment on field
3334 `step_after_step_resume_breakpoint'.
3336 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3338 * remote.c (remote_console_output): Reindent.
3340 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3342 * frame.c (has_stack_frames): Check for currently selected
3345 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3347 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3348 (set_async_annotation_level, set_async_prompt, pop_prompt)
3349 (push_prompt, new_async_prompt): Delete declarations.
3350 * top.h (get_prompt, set_prompt): Change prototype.
3351 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3353 * top.c (command_loop):
3354 (top_prompt): New global.
3355 (get_prefix, set_prefix, get_suffix, ): Delete.
3356 (get_prompt, set_prompt): Rewrite.
3357 (show_new_async_prompt): Rename to ...
3358 (show_prompt): ... this.
3359 (init_main): Adjust. Don't handle --annotate=2 here.
3360 * event-top.c (new_async_prompt): Delete.
3361 (the_prompts): Delete.
3362 (more_to_come): Make static.
3363 (display_gdb_prompt): Use top_level_prompt() to compute the top
3364 level prompt, and don't notify the before_prompt observers
3365 directly here. Always trick readline into not trying to display
3366 the prompt if sync_execution and displaying the primary prompt.
3367 If displaying a local/secondary prompt, always show it, even if
3368 sync_execution is set.
3369 (change_annotation_level): Delete.
3370 (top_level_prompt): New, based on change_annotation_level.
3371 (push_prompt, pop_prompt): Delete.
3372 (async_disable_stdin): No longer pushes prompt.
3373 (command_line_handler): No longer pushes or pops prompt. If more
3374 input is expected, call display_gdb_prompt with an explicit empty
3376 (async_stop_sig): Adjust.
3377 (set_async_annotation_level, set_async_prompt): Delete.
3378 * python/python.c (before_prompt_hook): Adjust.
3380 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3384 * infrun.c (fetch_inferior_event): Check if there's a selected
3385 thread before checking if the selected thread is executing.
3387 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3389 * inf-loop.c (execute_command): Don't check if the current thread
3390 if running before synchronously waiting for command completion.
3391 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3393 (normal_stop): Call async_enable_stdin here.
3394 * inf-loop.c (inferior_event_handler): Don't call
3395 async_enable_stdin, nor handle "set exec-done-display" here.
3397 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3401 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3403 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3405 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3407 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3409 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3411 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3413 2011-09-02 Matt Rice <ratmice@gmail.com>
3416 * event-top.c (cli_command_loop): Replace readline setup with
3417 direct call to display_gdb_prompt.
3418 (display_gdb_prompt): Do not call observer mechanism during
3419 synchronous execution.
3421 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3423 * linux-nat.c (in_pid_list_p): New.
3424 (linux_record_stopped_pid): Delete.
3425 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3426 already attached to the LWP. Return an indication if so.
3427 (linux_nat_filter_event): Adjust.
3428 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3429 returning an indication to ignore this thread.
3431 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3433 * top.c: Include interps.h.
3434 (execute_command): If the target can async, but the interpreter is
3435 in sync mode, synchronously wait for the command to finish before
3437 (execute_command_to_string): Force the interpreter to sync mode.
3438 * infrun.c: Include interps.h.
3439 (fetch_inferior_event): Don't restore the prompt yet if the
3440 interpreter is in sync mode.
3441 * interps.c (interpreter_async): New global.
3442 * interps.h (interpreter_async): Declare.
3443 * inf-loop.c: Include interps.h.
3444 (inferior_event_handler): Don't print the language change or run
3445 breakpoint commands yet if the interpreter in is sync mode.
3446 * main.c (captured_command_loop): Flip the interpreter to async
3448 * cli/cli-script.c: Include interps.h.
3449 (execute_user_command, while_command, if_command): Force the
3450 interpreter to sync mode.
3451 * python/python.c: Include interps.h.
3452 (python_command, execute_gdb_command): Force the interpreter to
3455 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3457 * value.c (show_convenience): Catch errors thrown while printing
3458 each internal variable.
3459 * infrun.c (validate_siginfo_access): New function.
3460 (siginfo_value_read, siginfo_value_write): Call it.
3462 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3465 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3466 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3469 2011-08-29 Yao Qi <yao@codesourcery.com>
3471 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3473 (enable_break2): Update caller.
3474 * solib-frv.c (bfd_lookup_symbol): Removed.
3476 (enable_break2): Update caller.
3477 * solib-pa64.c (bfd_lookup_symbol): Removed.
3479 * solib-svr4.c (bfd_lookup_symbol): Removed.
3480 (cmp_name_and_sec_flags): New.
3481 (enable_break): Update caller.
3482 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3483 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3484 (gdb_bfd_lookup_symbol): New.
3485 * solib.h: Functions declarations.
3487 2011-08-29 Yao Qi <yao@codesourcery.com>
3489 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3492 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3494 Fix TUI stepi on code without symbols.
3495 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3498 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3501 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3502 and the static keyword.
3503 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3504 Make prefix an array.
3505 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3506 * mi/mi-main.c (get_register): Remove stb initialization and the static
3509 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3511 Code cleanup - make mi_opt const.
3512 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3514 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3515 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3516 (mi_cmd_env_dir): Likewise.
3517 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3518 (mi_cmd_target_file_put): Likewise.
3519 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3520 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3521 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3522 (mi_valid_noargs): Make opts const.
3523 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3524 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3525 (mi_cmd_data_read_memory): Likewise.
3526 (mi_cmd_data_read_memory_bytes): Likewise.
3527 (mi_cmd_data_write_memory): Likewise.
3529 2011-08-26 Matt Rice <ratmice@gmail.com>
3531 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3532 bcache_xmalloc, replace bcache_xmalloc with call to
3533 psymbol_bcache_init for psymbol_cache.
3534 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3536 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3538 * inf-loop.c (inferior_event_handler): Add exception_print in
3541 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3543 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3544 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3545 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3546 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3547 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3548 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3549 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3550 * infrun.c (fetch_inferior_event): Call
3551 make_bpstat_clear_actions_cleanup.
3552 * top.c (execute_command): New variable cleanup_if_error, call
3553 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3554 * utils.c (do_bpstat_clear_actions_cleanup)
3555 (make_bpstat_clear_actions_cleanup): New functions.
3557 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3559 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3560 either the parent or the child forks. Rename a couple locals.
3562 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3564 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3565 library call. Avoid reading the `status' local if all waitpid
3568 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3570 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3571 opening /proc/PID/task always succeeds.
3573 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3575 * linespec.c (symtab_from_filename): Check for the end of string.
3577 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3580 * varobj.c (cplus_describe_child): Add the keyword
3581 'class' to the output of the method when dealing
3582 with a cast to a base class.
3584 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3586 No functionality change.
3587 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3588 function comment a reference, new variables tp and bs, move here code
3589 from throw_exception.
3590 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3591 describe it in the comment.
3592 * exceptions.c (throw_exception): Remove variable tp, move the code for
3593 bpstat_clear_actions to bpstat_clear_actions.
3595 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3597 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3598 * linux-nat.c: Include linux-procfs.h.
3599 (linux_proc_get_tgid): Move to ...
3600 * common/linux-procfs.c: ... here. New file.
3601 * common/linux-procfs.h: New file.
3602 * linux-thread-db.c: Include linux-procfs.h.
3603 * Makefile.in: Update dependencies.
3604 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3605 * config/arm/linux.mh: Likewise.
3606 * config/i386/linux.mh: Likewise.
3607 * config/i386/linux64.mh: Likewise.
3608 * config/ia64/linux.mh: Likewise.
3609 * config/m32r/linux.mh: Likewise.
3610 * config/m68k/linux.mh: Likewise.
3611 * config/mips/linux.mh: Likewise.
3612 * config/pa/linux.mh: Likewise.
3613 * config/pa/linux.mh: Likewise.
3614 * config/powerpc/linux.mh: Likewise.
3615 * config/powerpc/ppc64-linux.mh: Likewise.
3616 * config/powerpc/spu-linux.mh: Likewise.
3617 * config/sparc/linux.mh: Likewise.
3618 * config/sparc/linux64.mh: Likewise.
3619 * config/xtensa/linux.mh: Likewise.
3621 2011-08-24 Hui Zhu <teawater@gmail.com>
3623 * tracepoint.c (cond_string_is_same): New function.
3624 (find_matching_tracepoint): Add condition check
3625 by cond_string_is_same.
3627 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3629 Fix build error in Darwin port.
3630 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3632 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3635 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3636 (command_line_is_silent): New function.
3637 (bpstat_do_actions_1): No longer use commands_left, use
3638 command_line_is_silent for commands.
3639 (bpstat_alloc): Remove clearing of commands_left.
3640 (bpstat_stop_status): Remove initialization of commands_left, use
3641 command_line_is_silent.
3642 * breakpoint.h (struct bpstats): Remove commands_left.
3644 2011-08-18 Keith Seitz <keiths@redhat.com>
3647 * cp-name-parser.y (struct demangle_info): Remove unused
3650 (allocate_info): Change return type to struct demangle_info *.
3651 Always allocate a new demangle_info.
3652 Remove unused PREV pointer.
3653 (cp_new_demangle_parse_info): New function.
3654 (cp_demangled_name_parse_free): New function.
3655 (do_demangled_name_parse_free_cleanup): New function.
3656 (make_cleanup_cp_demangled_name_parse_free): New function.
3657 (cp_demangled_name_to_comp): Change return type to
3658 struct demangle_parse_info *.
3659 Allocate a new storage for each call.
3660 (main): Update usage for cp_demangled_name_to_comp
3662 * cp-support.h (struct demangle_parse_info): New structure.
3663 (cp_demangled_name_to_comp): Update API change for
3665 (cp_new_demangle_parse_info): Declare.
3666 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3667 (cp_demangled_name_parse_free): Declare.
3668 * cp-support.c (cp_canonicalize_string): Update API
3669 change for cp_demangled_name_to_comp.
3670 (mangled_name_to_comp): Likewise.
3671 Return struct demangle_parse_info, too.
3672 (cp_class_name_from_physname): Update mangled_name_to_comp
3674 (method_name_from_physname): Likewise.
3675 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3676 (cp_remove_params): Likewise.
3677 * python/py-type.c (typy_legacy_template_argument): Likewise.
3679 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3680 (cp_merge_demangle_parse_infos): Declare.
3681 * cp-support.c (ignore_typedefs): New file global.
3682 (copy_string_to_obstack): New function.
3683 (inspect_type): New function.
3684 (replace_typedefs): New function.
3685 (replace_typedefs_qualified_name): New function.
3686 (cp_canonicalize_string_no_typedefs): New function.
3687 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3688 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3689 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3690 instead of cp_canonicalize_string.
3691 (find_method): Likewise.
3692 (decode_compound): Before looking up the name, call
3693 cp_canonicalize_string_no_typedefs.
3694 (decode_variable): Likewise.
3696 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3697 Tom Tromey <tromey@redhat.com>
3698 Matt Rice <ratmice@gmail.com>
3700 * python/lib/gdb/prompt.py: New file.
3701 * python/lib/gdb/command/prompt.py: New file.
3702 * NEWS: Document set extended-prompt and gdb.prompt library
3704 2011-08-16 Yao Qi <yao@codesourcery.com>
3706 * tic6x-linux-tdep.c: Move const arrays definition from here...
3707 * tic6x-tdep.c: to here ...
3709 2011-08-14 Yao Qi <yao@codesourcery.com>
3711 * NEWS: New port to Texas Instruments TMS320C6x.
3713 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3714 Bernd Schmidt <bernds@codesourcery.com>
3715 Yao Qi <yao@codesourcery.com>
3717 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3718 * solib-dsbt.c: New file. Support DSBT shared object.
3719 * tic6x-linux-tdep.c: New file.
3720 * tic6x-tdep.c: New file.
3721 * tic6x-tdep.h: New file.
3723 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3724 Yao Qi <yao@codesourcery.com>
3726 * remote.c (PACKET_qXfer_fdpic): New enum value.
3727 (remote_protocol_features): Add qXfer:fdpic:read packet.
3728 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3729 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3730 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3732 2011-08-14 Yao Qi <yao@codesourcery.com>
3734 Target description for tic6x.
3735 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3736 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3737 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3738 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3739 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3740 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3741 * features/tic6x-c64xp-linux.xml: New.
3742 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3743 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3744 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3745 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3746 * regformats/tic6x-c64xp.dat,
3747 regformats/tic6x-c62x-linux.dat: Generated.
3748 * regformats/tic6x-c64x-linux.dat,
3749 regformats/tic6x-c64xp-linux.dat: Generated.
3750 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3751 features/tic6x-*.c files.
3752 Add regformats/tic6x-*.dat files.
3754 2011-08-12 Doug Evans <dje@google.com>
3756 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3757 * python/py-symbol.c (sympy_get_type): New function.
3758 (symbol_object_getset): Add "type".
3760 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3764 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3766 (tui_show_register_group): Don't store a byte buffer in the data
3768 (tui_register_format): Skip registers with an empty name.
3769 (tui_get_register): Store a struct value in the data element's
3770 value field instead of a byte buffer holding the raw register
3771 contents. Account for optimized-out and unavailable registers
3772 when comparing register contents.
3774 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3776 * printcmd.c (current_display_number): Update comment.
3777 (disable_current_display_cleanup): Delete.
3778 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3779 catch errors thrown while evaluating and printing the display.
3781 2011-08-09 Tom Tromey <tromey@redhat.com>
3783 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3785 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3787 * elfread.c (elf_symtab_read): Rework comments.
3788 * maint.c (maintenance_command): Ditto.
3789 * somread.c (som_symtab_read): Ditto.
3790 * solib.c (solib_find, solib_map_sections, update_solib_list)
3791 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3792 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3793 (sharedlibrary_command, no_shared_libraries): Ditto.
3794 * solib-irix.c (locate_base, disable_break, enable_break)
3795 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3796 (irix_current_sos, irix_open_symbol_file_object)
3797 (irix_special_symbol_handling): Ditto.
3798 * solib-sunos.c (locate_base, first_link_map_member)
3799 (sunos_current_sos, disable_break, enable_break)
3800 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3802 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3803 (open_symbol_file_object, svr4_current_sos, enable_break)
3804 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3806 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3807 (frv_current_sos, enable_break, frv_special_symbol_handling)
3808 (frv_solib_create_inferior_hook): Ditto.
3809 * solist.h (struct target_so_ops): Extend the comments of the
3810 special_symbol_handling, current_sos and open_symbol_file_object
3813 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3815 * python/lib/gdb/__init__.py: Auto-load files in command and
3816 function directories.
3817 * python/python.c (finish_python_initialization): Use
3819 * python/lib/gdb/command/pretty_printers.py: Self register
3821 * NEWS: Document auto-loading.
3823 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3825 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3826 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3827 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3829 2011-08-08 Tom Tromey <tromey@redhat.com>
3831 * breakpoint.c (clean_up_filters): Remove.
3832 (catch_syscall_split_args): Use VEC_cleanup.
3834 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3836 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3837 (main): Uncomment "Demangling error\n".
3839 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3841 * solib-target.c (segment_attributes): Make them static.
3842 (section_attributes, library_children, library_attributes): Likewise.
3843 (library_list_children, library_list_attributes): Likesise.
3844 (library_list_elements): Likewise.
3846 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3848 * exceptions.c (throw_exception): Don't disable the current
3850 * printcmd.c (disable_current_display_cleanup): New function.
3851 (do_one_display): Install a cleanup to disable the current display
3852 if doing the display throws.
3854 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3856 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3857 initialization of the tp_new member to the corresponding
3858 gdbpy_initialize_* function.
3859 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3860 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3861 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3862 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3863 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3865 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3867 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3868 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3869 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3870 references to current_uiout.
3872 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3874 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3875 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3876 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3877 * top.c (gdb_readline_wrapper): Adjust.
3878 * tui/tui-interp.c (tui_command_loop):
3879 (_initialize_tui_interp): Don't install it.
3881 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3883 * ui-out.h (uiout): Rename to ...
3884 (current_uiout): ... this.
3885 * ui-out.c (uiout): Rename to ...
3886 (current_uiout): ... this.
3887 * ada-lang.c (print_it_exception, print_one_exception)
3888 (print_mention_exception): Adjust.
3889 * breakpoint.c (watchpoint_check): Adjust.
3890 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3891 (default_collect_info, watchpoints_info, print_one_catch_fork)
3892 (print_one_catch_vfork, print_one_catch_syscall)
3893 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3894 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3895 (print_it_watchpoint, print_mention_watchpoint)
3896 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3897 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3898 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3899 (bkpt_print_mention, momentary_bkpt_print_it)
3900 (tracepoint_print_mention, update_static_tracepoint)
3901 (tracepoints_info, save_breakpoints): Adjust.
3902 * cli-out.c (field_separator): Adjust.
3903 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3904 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3905 * frame.c (get_current_frame): Adjust.
3906 * infcmd.c (run_command_1, print_return_value): Adjust.
3907 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3908 * infrun.c (print_end_stepping_range_reason): Adjust.
3909 (print_signal_exited_reason, print_exited_reason): Adjust.
3910 (print_signal_received_reason, print_no_history_reason): Adjust.
3911 * interps.c (interp_set): Adjust.
3912 * osdata.c (info_osdata_command): Adjust.
3913 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3914 * remote-fileio.c (remote_fileio_request): Adjust.
3915 * remote.c (show_remote_cmd): Adjust.
3916 * solib.c (info_sharedlibrary_command): Adjust.
3917 * source.c (print_source_lines_base): Adjust.
3918 * stack.c (print_stack_frame): Adjust.
3919 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3920 * symfile-mem.c (add_vsyscall_page): Adjust.
3921 * symfile.c (load_progress, generic_load)
3922 (print_transfer_performance): Adjust.
3923 * thread.c (info_threads_command, restore_selected_frame)
3924 (thread_command): Adjust.
3925 * top.c (make_cleanup_restore_ui_file): Adjust.
3926 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3927 (print_one_static_tracepoint_marker): Adjust.
3928 * cli/cli-cmds.c (print_disassembly): Adjust.
3929 * cli/cli-decode.c (print_doc_line): Adjust.
3930 * cli/cli-interp.c (safe_execute_command): Adjust.
3931 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3932 (handle_redirections): Adjust.
3933 * cli/cli-script.c (show_user_1): Adjust.
3934 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3935 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3936 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3937 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3938 (mi_cmd_env_dir): Adjust.
3939 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3940 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3941 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3942 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3943 (list_args_or_locals): Adjust.
3944 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3945 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3946 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3947 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3948 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3949 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3950 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3951 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3952 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3953 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3954 (list_available_thread_groups, mi_cmd_list_thread_groups)
3955 (mi_cmd_data_list_register_names)
3956 (mi_cmd_data_list_changed_registers)
3957 (mi_cmd_data_list_register_values, get_register)
3958 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3959 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3960 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3961 (mi_execute_command, mi_load_progress): Adjust.
3962 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3963 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3965 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3966 * tui/tui-interp.c (tui_command_loop): Adjust.
3967 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3969 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3971 * exceptions.c (struct catcher): Remove saved_uiout field.
3972 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3973 no longer save/resvore the global ui_out builder.
3974 (catch_exceptions_with_msg): Save/override/restore the global
3975 ui_out builder manually instead of relying on TRY_CATCH to do it.
3976 (catch_errors): Save/restore the global ui_out builder manually
3977 instead of relying on TRY_CATCH to do it.
3978 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3980 (TRY_CATCH): Adjust.
3981 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3982 the global ui_out builder manually instead of relying on TRY_CATCH
3985 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3987 * breakpoint.c (update_global_location_list): Ensure
3988 invariant 'first loc marked not duplicated and inserted,
3989 following locs marked duplicated/not inserted' is respected
3990 for multiple locations at the same address.
3991 (unduplicated_should_be_inserted) New function.
3992 (swap_insertion) New function.
3994 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3996 * stack.c (print_frame_arguments_choices): Comment typo fix.
3998 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4001 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4002 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4003 argument. Update callers.
4005 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4008 * doublest.c (convert_doublest_to_floatformat): Pass correct
4009 mantissa length to put_field.
4011 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4013 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4014 exception_print code path.
4015 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
4016 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
4017 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
4019 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4022 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4023 Remove, merge them into ...
4024 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
4025 variable args and its initialization.
4026 (struct print_args_args, print_args_stub): Remove, merge them into
4028 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4030 (do_gdb_disassembly): ... here. Remove variable args and its
4032 (print_frame): Remove variable args and its initialization, new
4033 variable gdbarch and numargs (from print_args_stub), inline here
4034 print_args_stub with a TRY_CATCH.
4035 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4037 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
4038 New variable e, remove variable btargs and its initialization.
4040 2011-08-01 Tristan Gingold <gingold@adacore.com>
4042 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4044 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4046 * breakpoint.c (insert_bp_location): Document return value.
4047 (insert_breakpoint_locations): Fix documentation.
4048 (remove_breakpoints): Add documentation.
4050 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4052 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4053 argument. Update callers.
4055 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4057 * stack.c (print_frame_info): Comment typo fix.
4059 2011-07-29 Sterling Augustine <saugustine@google.com>
4061 * MAINTAINERS (Write After Approval): Add myself to the list.
4063 2011-07-29 Tom Tromey <tromey@redhat.com>
4065 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4066 (library_list_start_segment): Update.
4067 (library_list_start_section): Update.
4069 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4071 * varobj.c (value_get_print_value): Move hint check later into the
4072 function. Comment function. Free thevalue before reusing it.
4074 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4075 Pedro Alves <pedro@codesourcery.com>
4077 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4079 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4080 Assert the result kind.
4081 * value.h (value_one): Remove parameter lv.
4083 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4085 Fix crash on lval_computed values.
4086 * valops.c (value_zero): Use not_lval for lval_computed.
4088 2011-07-27 Tom Tromey <tromey@redhat.com>
4090 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4091 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4093 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4095 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4096 "ptype" by their typedefs difference.
4098 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4100 * dwarf2expr.c (ctx_no_read_reg): New function.
4101 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4102 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4103 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4104 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4106 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4108 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4109 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4111 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4112 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4113 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4114 (ctx_no_get_base_type): Move the functions here.
4115 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4116 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4117 (ctx_no_get_base_type): New declarations.
4119 2011-07-27 Tom Tromey <tromey@redhat.com>
4121 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4123 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4124 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4126 2011-07-26 Sterling Augustine <saugustine@google.com>
4128 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4130 (dump_bfd_file): Likewise.
4132 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4134 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4135 (remote_hw_watchpoint_length_limit): New variable.
4136 (_initialize_remote) add set,show cmds for this new variable.
4137 * gdb.texinfo: document these new commands.
4138 * NEWS: Mention these new commands.
4140 2011-07-26 Pedro Alves <pedro@codesourcery.com>
4142 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4143 true for software watchpoints.
4145 2011-07-26 Joel Brobecker <brobecker@adacore.com>
4149 2011-07-26 Tom Tromey <tromey@redhat.com>
4151 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4152 * dwarf2read.c (read_indirect_string_at_offset): New function.
4153 (read_indirect_string): Use it.
4154 (dwarf_decode_macro_bytes): New function, taken from
4155 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4156 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4157 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4159 (struct dwarf2_per_objfile) <macro>: New field.
4160 (dwarf2_elf_names): Add .debug_macro.
4161 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4162 (dwarf2_locate_sections): Handle new section.
4163 (read_file_scope): Handle DW_AT_GNU_macros.
4164 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4166 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4168 * NEWS: Mention dcache configuration.
4169 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4170 (dcache_size, dcache_line_size): New variables.
4171 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4172 (struct dcache_block): Make it expandable.
4173 (struct dcache_struct): New field.
4174 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4175 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4176 (dcache_poke_byte, dcache_print_line): Adjust.
4177 (set_dcache_size, set_dcache_line_size): New functions.
4178 (set_dcache_command, show_dcache_command): New functions.
4179 (_initialize_dcache): Add new commands.
4181 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4183 * progspace.h (struct program_space): Add solib_add_generation.
4184 * infcmd.c (post_create_inferior): Only call solib_add if not
4186 * solib.c (solib_add): Increment solib_add_generation.
4188 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4190 Fix implicit pointer offsets.
4191 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4194 2011-07-25 Tom Tromey <tromey@redhat.com>
4196 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4198 (ada_exception_sal): Make 'ops' const.
4199 (ada_decode_exception_location): Likewise.
4200 (ada_decode_assert_location): Likewise.
4201 (catch_assert_command): Update.
4202 (catch_ada_exception_command): Update.
4203 (create_ada_exception_catchpoint): Make 'ops' const.
4204 * breakpoint.c (set_raw_breakpoint_without_location)
4205 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4207 (create_internal_breakpoint): Update.
4208 (init_raw_breakpoint_without_location): Make 'ops' const.
4209 (init_raw_breakpoint, init_catchpoint)
4210 (create_fork_vfork_event_catchpoint)
4211 (create_syscall_event_catchpoint, init_breakpoint_sal)
4212 (create_breakpoint_sal, create_breakpoints_sal)
4213 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4214 * breakpoint.h (struct breakpoint) <ops>: Now const.
4215 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4218 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4220 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4222 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4224 * breakpoint.h (print_recreate_thread): Declare.
4225 (struct breakpoint): Move step_count, pass_count,
4226 number_on_target, static_trace_marker_id,
4227 static_trace_marker_id_idx ...
4228 (struct tracepoint): ... to this new struct.
4229 (get_tracepoint, get_tracepoint_by_number_on_target)
4230 (get_tracepoint_by_number): Change return type to struct
4232 * breakpoint.c (is_tracepoint_type): New, factored out from
4234 (is_tracepoint): Adjust.
4235 (print_one_breakpoint_location): Cast to struct tracepoint as
4236 necessary, and adjust.
4237 (print_recreate_catch_fork, print_recreate_catch_vfork)
4238 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4239 print_recreate_thread.
4240 (init_breakpoint_sal): New, factored out from
4241 create_breakpoint_sal.
4242 (create_breakpoint_sal): Reimplement.
4243 (create_breakpoint): Allocate a struct tracecepoint if the caller
4244 wanted a tracepoint. Use init_breakpoint_sal and
4246 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4247 (print_recreate_masked_watchpoint)
4248 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4249 (tracepoint_print_one_detail): Adjust.
4250 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4251 Dump the pass count here.
4252 (update_static_tracepoint): Adjust.
4253 (addr_string_to_sals): Adjust.
4254 (create_tracepoint_from_upload): Adjust. Change return type to
4255 struct tracepoint pointer.
4256 (trace_pass_set_count): Change parameter type to struct tracepoint
4257 pointer, and adjust.
4258 (trace_pass_command): Adjust.
4259 (get_tracepoint, get_tracepoint_by_number_on_target)
4260 (get_tracepoint_by_number): Change return type to struct
4261 tracepoint pointer, and adjust.
4262 (print_recreate_thread): New, factored out from save_breakpoints.
4263 (save_breakpoints): Don't print thread and task and passcount
4265 * remote.c (remote_download_tracepoint): Adjust.
4266 * tracepoint.c (trace_actions_command, validate_actionline)
4267 (start_tracing, tfind_1, trace_find_tracepoint_command)
4268 (trace_dump_command): Adjust.
4269 (find_matching_tracepoint): Change return type to struct
4270 tracepoint pointer, and adjust.
4271 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4272 (tfile_trace_find, tfile_fetch_registers): Adjust.
4273 * tracepoint.h (create_tracepoint_from_upload): Change return type
4274 to struct tracepoint pointer.
4275 * ada-lang.c (print_recreate_exception): Call
4276 print_recreate_thread.
4277 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4279 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4281 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4282 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4283 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4284 watchpoint_thread, watchpoint_triggered ...
4285 (struct watchpoint): ... to this new struct.
4286 (is_watchpoint): Declare.
4287 (install_breakpoint): Add new `internal' parameter.
4288 * breakpoint.c (is_watchpoint): Delete declaration.
4289 (set_breakpoint_condition): Handle watchpoints.
4290 (is_watchpoint): Make public.
4291 (watchpoint_in_thread_scope): Change parameter type to struct
4293 (watchpoint_del_at_next_stop): Change parameter type to struct
4294 watchpoint. Remove assertion. Adjust.
4295 (update_watchpoint): Ditto.
4296 (insert_breakpoints, breakpoint_init_inferior)
4297 (watchpoints_triggered, watchpoint_check)
4298 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4299 (bpstat_stop_status, print_one_breakpoint_location)
4300 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4301 to struct watchpoint as necessary, and adjust.
4302 (install_breakpoint): Add `internal' argument. If true, don't
4303 mention the new breakpoint. Use set_breakpoint_number.
4304 (create_fork_vfork_event_catchpoint)
4305 (create_syscall_event_catchpoint): Adjust.
4306 (dtor_watchpoint): New.
4307 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4308 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4309 (print_it_watchpoint, print_mention_watchpoint)
4310 (print_recreate_watchpoint, insert_masked_watchpoint)
4311 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4312 (print_one_detail_masked_watchpoint)
4313 (print_mention_masked_watchpoint)
4314 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4315 necessary, and adjust.
4316 (watch_command_1): Allocate and initialize a struct watchpoint
4317 instead of a struct breakpoint. Use install_breakpoint.
4318 (catch_exec_command_1): Adjust.
4319 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4321 (delete_breakpoint, enable_breakpoint_disp)
4322 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4323 as necessary, and adjust.
4324 (initialize_breakpoint_ops): Install dtor_watchpoint as
4325 watchpoints' dtor method.
4326 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4327 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4328 to struct watchpoint as necessary, and adjust.
4330 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4332 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4333 the the base class ops table.
4334 (catch_exception_breakpoint_ops)
4335 (catch_exception_unhandled_breakpoint_ops)
4336 (catch_assert_breakpoint_ops): Don't statically initialize.
4337 (initialize_ada_catchpoint_ops): New.
4338 (_initialize_ada_language): Call it.
4339 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4340 (bkpt_breakpoint_ops): Forward declare.
4341 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4342 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4343 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4344 (masked_watchpoint_breakpoint_ops)
4345 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4346 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4347 base class ops table.
4348 (null_re_set, null_check_status, null_works_in_software_mode)
4349 (null_resources_needed, null_print_one_detail): Delete.
4350 (bkpt_dtor): Rename to ...
4351 (base_breakpoint_dtor): ... this. Make static.
4352 (bkpt_allocate_location): Rename to ...
4353 (base_breakpoint_allocate_location): ... this. Make static.
4354 (base_breakpoint_re_set): New.
4355 (internal_error_pure_virtual_called): New.
4356 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4357 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4358 (base_breakpoint_works_in_software_mode)
4359 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4360 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4361 (base_breakpoint_print_recreate): New functions.
4362 (base_breakpoint_ops): New global.
4363 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4364 (bkpt_breakpoint_hit): Make static.
4365 (bkpt_check_status): Delete.
4366 (bkpt_resources_needed): Make static.
4367 (bkpt_works_in_software_mode): Delete.
4368 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4370 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4371 (momentary_breakpoint_ops): Don't statically initialize.
4372 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4374 (tracepoint_insert_location, tracepoint_remove_location)
4375 (tracepoint_check_status, tracepoint_works_in_software_mode)
4376 (tracepoint_print_it): Delete.
4377 (tracepoint_breakpoint_ops): Don't statically initialize.
4378 (initialize_breakpoint_ops): New.
4379 (_initialize_breakpoint): Call it.
4380 * breakpoint.h (null_re_set, null_works_in_software_mode)
4381 (null_resources_needed, null_check_status, null_print_one_detail):
4382 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4383 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4384 (bkpt_check_status, bkpt_resources_needed)
4385 (bkpt_works_in_software_mode, bkpt_print_it)
4386 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4387 Delete declarations.
4388 (initialize_breakpoint_ops): Declare.
4390 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4392 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4393 (momentary_bkpt_print_it): Simplify.
4395 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4397 Split internal, momentary and user breakpoints breakpoint_ops
4400 * breakpoint.c (internal_breakpoint_ops)
4401 (momentary_breakpoint_ops): Forward declare.
4402 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4403 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4404 (create_overlay_event_breakpoint)
4405 (create_std_terminate_master_breakpoint)
4406 (create_exception_master_breakpoint): Create breakpoints with
4407 internal_breakpoint_ops vtable.
4408 (set_longjmp_breakpoint): Create momentary breakpoints with
4409 momentary_breakpoint_ops vtable, using
4410 momentary_breakpoint_from_master.
4411 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4412 (create_solib_event_breakpoint): Create breakpoints with
4413 internal_breakpoint_ops vtable.
4414 (set_momentary_breakpoint): Create breakpoints with
4415 momentary_breakpoint_ops vtable.
4416 (momentary_breakpoint_from_master): New, factored out from
4417 clone_momentary_breakpoint.
4418 (clone_momentary_breakpoint): Adjust.
4419 (watch_command_1): Create scope breakpoints with
4420 momentary_breakpoint_ops vtable.
4421 (bkpt_re_set): Remove handling of internal and momentary
4423 (bkpt_print_mention, bkpt_print_recreate): New.
4424 (bkpt_breakpoint_ops): Adjust.
4425 (internal_bkpt_re_set, internal_bkpt_check_status)
4426 (internal_bkpt_print_it, internal_bkpt_print_mention)
4427 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4428 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4429 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4430 (momentary_bkpt_print_recreate): New.
4431 (momentary_breakpoint_ops): New.
4433 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4435 Implement most breakpoint_ops methods for all breakpoint types,
4436 and move the default handlings to the proper callbacks.
4438 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4439 works_in_software_mode method.
4440 (insert_bp_location): Go through breakpoint_ops->insert_location
4441 for software and hardware watchpoints.
4442 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4444 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4445 for software and hardware watchpoints.
4446 (print_it_typical): Delete.
4447 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4449 (watchpoint_check): Adjust comment.
4450 (bpstat_check_location): Simply always call the breakpoint's
4451 breakpoint_hit method.
4452 (bpstat_stop_status): Always call the breakpoint's check_status
4453 method. Remove special cases for watchpoints and internal event
4454 breakpoints from here (moved to the check_status implementations).
4455 (print_one_breakpoint_location): Assume b->ops is never NULL.
4456 Remove static tracepoint marker id printing from here (moved to
4457 the print_one_detail callback implementation of tracepoints).
4458 (init_bp_location): Assert OPS is never NULL.
4459 (allocate_bp_location): Always call the breakpoint's
4460 allocate_location method, and remove the default code from here.
4461 (free_bp_location): Always call the location's dtor method, and
4462 remove the default code from here.
4463 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4464 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4465 parameter. Pass it down.
4466 (set_raw_breakpoint): Ditto.
4467 (print_it_catch_fork): Adjust to take a bpstat as argument.
4468 (catch_fork_breakpoint_ops): Install methods.
4469 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4470 (catch_vfork_breakpoint_ops): Install methods.
4471 (dtor_catch_syscall): Call the base dtor.
4472 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4473 (catch_syscall_breakpoint_ops): Install methods.
4474 (dtor_catch_exec): Call the base dtor.
4475 (print_it_catch_exec): Adjust to take a bpstat as argument.
4476 (catch_exec_breakpoint_ops): Install methods.
4477 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4478 the breakpoint's resources_needed method, and remove the default
4480 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4482 (clone_momentary_breakpoint): Clone the original's ops.
4483 (mention): Always call the breakpoint's print_mention method, and
4484 remove the default code from here.
4485 (create_breakpoint_sal): Adjust to pass the ops to
4486 set_raw_breakpoint rather than setting it manually.
4487 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4488 ops to set_raw_breakpoint_without_location rather than setting it
4490 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4491 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4492 (ranged_breakpoint_ops): Install methods.
4493 (break_range_command): Adjust to pass the ops to
4494 set_raw_breakpoint rather than setting it manually.
4495 (re_set_watchpoint, breakpoint_hit_watchpoint)
4496 (check_status_watchpoint, resources_needed_watchpoint)
4497 (works_in_software_mode_watchpoint, print_it_watchpoint)
4498 (print_mention_watchpoint, print_recreate_watchpoint): New
4500 (watchpoint_breakpoint_ops): Install new methods.
4501 (print_it_masked_watchpoint): New function.
4502 (masked_watchpoint_breakpoint_ops): Install new methods.
4503 (watch_command_1): Adjust to pass the right breakpoint_ops to
4504 set_raw_breakpoint_without_location rather than setting it
4505 manually later. Record the current pspace.
4506 (print_it_exception_catchpoint): Adjust to take a bpstat as
4508 (gnu_v3_exception_catchpoint_ops): Install new methods.
4509 (say_where): New function.
4510 (null_re_set, null_check_status, null_works_in_software_mode)
4511 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4513 (bp_location_ops): New global.
4514 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4515 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4516 (bkpt_check_status, bkpt_resources_needed)
4517 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4518 (bkpt_print_recreate): New functions.
4519 (bkpt_breakpoint_ops): New global.
4520 (tracepoint_re_set, tracepoint_insert_location)
4521 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4522 (tracepoint_check_status, tracepoint_works_in_software_mode)
4523 (tracepoint_print_it, tracepoint_print_one_detail)
4524 (tracepoint_print_mention, tracepoint_print_recreate): New
4526 (tracepoint_breakpoint_ops): New global.
4527 (delete_breakpoint): Always call the breakpoint's dtor method, and
4528 remove the default handling from here.
4529 (breakpoint_re_set_default): Make static.
4530 (breakpoint_re_set_one): Always call the breakpoints re_set
4531 method, and remove the default handling from here.
4532 (trace_command, ftrace_command, strace_command)
4533 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4534 to create_breakpoint.
4535 (save_breakpoints): Always call the breakpoint's print_recreate
4536 method, and remove the default handling from here.
4538 * ada-lang.c (dtor_exception): Call the base dtor.
4539 (re_set_exception): Call the base method.
4540 (print_it_exception, print_it_catch_exception): Adjust to take a
4542 (catch_exception_breakpoint_ops): Install methods.
4543 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4545 (catch_exception_unhandled_breakpoint_ops): Install methods.
4546 (print_it_catch_assert): Adjust to take a bpstat as argument.
4547 (catch_assert_breakpoint_ops): Install methods.
4549 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4550 to take a bpstat as argument.
4551 (enum print_stop_action): Add describing comments to each enum
4553 (breakpoint_re_set_default): Delete declaration.
4554 (null_re_set, null_works_in_software_mode, null_resources_needed)
4555 (null_check_status, null_print_one_detail): Declare.
4556 (bkpt_breakpoint_ops): Declare.
4557 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4558 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4559 (bkpt_check_status, bkpt_resources_needed)
4560 (bkpt_works_in_software_mode, bkpt_print_it)
4561 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4564 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4565 bkpt_breakpoint_ops.
4566 * python/py-breakpoint.c (bppy_init): Ditto.
4568 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4570 * MAINTAINERS (Write After Approval): Add myself to the list.
4572 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4574 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4576 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4578 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4579 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4580 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4582 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4583 (struct i386_debug_reg_state): New.
4584 (i386_init_dregs): New.
4586 (i386_cleanup_dregs): Use i386_init_dregs.
4587 (i386_show_dr): Add state parameter and adjust.
4588 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4590 (i386_remove_aligned_watchpoint): Likewise.
4591 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4592 (i386_update_inferior_debug_regs): New.
4593 (i386_insert_watchpoint): Work on a local mirror of the debug
4594 registers, and only update the inferior on success.
4595 (i386_remove_watchpoint): Ditto.
4596 (i386_region_ok_for_watchpoint): Adjust.
4597 (i386_stopped_data_address): Adjust.
4598 (i386_insert_hw_breakpoint): Adjust.
4599 (i386_remove_hw_breakpoint): Adjust.
4601 2011-07-22 Tom Tromey <tromey@redhat.com>
4603 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4604 from amd64_pseudo_register_read. Change arguments. Call
4605 mark_value_bytes_unavailable when needed.
4606 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4607 set_gdbarch_pseudo_register_read.
4608 * sentinel-frame.c (sentinel_frame_prev_register): Use
4609 regcache_cooked_read_value.
4610 * regcache.h (regcache_cooked_read_value): Declare.
4611 * regcache.c (regcache_cooked_read_value): New function.
4612 (regcache_cooked_read): Call
4613 gdbarch_pseudo_register_read_value if available.
4614 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4615 (i386_pseudo_register_read): Remove.
4616 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4617 i386_pseudo_register_read. Change arguments. Call
4618 mark_value_bytes_unavailable when needed.
4619 (i386_pseudo_register_read_value): New function.
4620 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4621 not set_gdbarch_pseudo_register_read.
4622 * gdbarch.sh (pseudo_register_read_value): New method.
4623 * gdbarch.c, gdbarch.h: Rebuild.
4624 * findvar.c (value_from_register): Call get_frame_register_value.
4626 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4628 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4630 (display_gdb_prompt): Likewise.
4631 (change_annotation_level): Likewise.
4632 (push_prompt): Likewise.
4633 (pop_prompt): Likewise.
4634 (handle_stop_sig): Use get_prompt with a level.
4635 * top.c (command_loop): Use get_prompt with a level.
4636 (set_async_annotation_level): Use set_prompt with a level.
4637 (get_prefix): New function.
4638 (set_prefix): Ditto.
4639 (set_suffix): Ditto.
4640 (get_suffix): Ditto.
4641 (get_prompt): Accept a level argument.
4642 (set_prompt): Accept a level argument. Free old prompts. Set
4643 new_async_prompt if level is 0.
4644 (init_main): Use set_prompt with a level. Do not set
4646 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4647 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4648 Modify set_prompt, get_prompt to account for levels.
4649 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4651 * python/python.c (before_prompt_hook): Use set_prompt.
4653 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4655 * defs.h: Add guard against inclusion in gdbserver.
4656 (struct ptid, ptid_t): Move to common/ptid.h.
4657 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4658 xsnprintf, internal_error): Move to common/common-utils.h.
4660 * gdb_assert.h: Move into common/ sub-directory.
4661 * gdb_locale.h: Ditto.
4662 * gdb_dirent.h: Ditto.
4663 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4664 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4665 Move into common/ptid.h.
4666 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4667 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4668 Change nomem to malloc_failure.
4669 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4670 * utils.c (nomem): Rename to malloc_failure.
4671 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4672 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4673 (gdb_buildargv): Change nomem to malloc_failure.
4674 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4675 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4676 ptid_is_pid): Move into common/ptid.c.
4677 (initialize_infrun): Delete initialization of null_ptid and
4679 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4680 linux_common_xfer_osdata.
4681 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4682 common/ptid.c and common/buffer.c.
4683 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4684 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4685 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4686 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4688 * common/gdb_assert.h: New.
4689 * common/gdb_dirent.h: New.
4690 * common/gdb_locale.h: New.
4691 * common/buffer.c: New.
4692 * common/buffer.h: New.
4693 * common/ptid.c: New.
4694 * common/ptid.h: New.
4695 * common/xml-utils.c: New.
4696 * common/xml-utils.h: New.
4697 * common/common-utils.c: New.
4698 * common/common-utils.h: New.
4699 * common/linux-osdata.c: New.
4700 * common/linux-osdata.h: New.
4701 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4702 * config/arm/linux.mh (NATDEPFILES): Ditto.
4703 * config/i386/linux.mh (NATDEPFILES): Ditto.
4704 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4705 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4706 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4707 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4708 * config/mips/linux.mh (NATDEPFILES): Ditto.
4709 * config/pa/linux.mh (NATDEPFILES): Ditto.
4710 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4711 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4712 * config/s390/s390.mh (NATDEPFILES): Ditto.
4713 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4714 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4715 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4717 2011-07-21 Matt Rice <ratmice@gmail.com>
4719 * NEWS: Add info macros and info definitions commands.
4721 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4723 * NEWS: Document Python prompt substitution hook.
4725 2011-07-18 Matt Rice <ratmice@gmail.com>
4728 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4729 * macrotab.c (foreach_macro): Ditto.
4730 (foreach_macro_in_scope): Ditto.
4731 * macrocmd.c (print_macro_callback): New function.
4732 (info_macro_command): Move some code to print_macro_definition.
4733 (print_macro_definition): New function.
4734 (print_one_macro): Add new arguments to callback.
4735 (info_definitions_command): New function.
4736 (info_macros_command): Ditto.
4737 (_initialize_macrocmd): Add info macros and info definitions commands.
4738 * symtab.c (add_macro_name): Add new arguments to callback.
4740 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4741 Tom Tromey <tromey@redhat.com>
4743 * top.c (set_prompt): Rewrite to free previous prompt, free
4744 asynch_new_prompt and set both on new prompts.
4745 * event-top.c (display_gdb_prompt): Add prompt substitution
4747 * python/python.c (before_prompt_hook): New function.
4749 2011-07-20 Matt Rice <ratmice@gmail.com>
4751 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4752 arguments to store_unsigned_integer.
4754 2011-07-20 Tom Tromey <tromey@redhat.com>
4756 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4757 in some declaration-only cases.
4759 2011-07-18 Tom Tromey <tromey@redhat.com>
4762 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4763 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4764 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4765 <debug_type_section>: New field.
4766 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4767 (load_cu): Use appropriate section.
4768 (create_signatured_type_table_from_index): Add 'section'
4770 (dwarf2_read_index): Only allow a single .debug_types section.
4771 (dw2_get_file_names): Use appropriate section.
4772 (read_type_comp_unit_head): Add 'section' argument.
4773 (create_debug_types_hash_table): Loop over all .debug_types
4775 (init_cu_die_reader): Use appropriate section.
4776 (process_psymtab_comp_unit, load_partial_comp_unit)
4777 (load_full_comp_unit, read_die_and_children, find_partial_die)
4778 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4779 (lookup_signatured_type_at_offset): Add 'section' argument.
4780 (read_signatured_type_at_offset): Add 'sect' argument.
4781 (read_signatured_type): Use appropriate section.
4782 (set_die_type, get_die_type_at_offset): Update.
4783 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4785 (write_psymtabs_to_index): Don't allow index with more than one
4786 .debug_types section.
4788 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4790 Fix crash if referenced CU is aged out.
4791 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4792 xfree of block.data.
4793 (indirect_pieced_value): New variable back_to, use to for xfree of
4795 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4797 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4798 (load_cu): New function from ...
4799 (dw2_do_instantiate_symtab): ... the code here ...
4800 (process_full_comp_unit): ... and here.
4801 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4804 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4806 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4809 2011-07-19 Gary Benson <gbenson@redhat.com>
4811 * infrun.c (struct execution_control_state): New member
4812 stop_func_filled_in.
4813 (clear_stop_func, fill_in_stop_func): New functions.
4814 (handle_inferior_event): Call clear_stop_func rather than
4815 manipulating the execution control state directly.
4816 Call fill_in_stop_func lazily as required rather than
4817 directly calling find_pc_partial_function in all cases.
4819 2011-07-18 Tom Tromey <tromey@redhat.com>
4821 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4822 checking for variable-sized array.
4824 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4826 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4827 of supported languages.
4828 * varobj.c: Add top definitions and basic implementation of the
4829 following callbacks: ada_number_of_children, ada_name_of_variable,
4830 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4831 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4832 (languages): Register Ada-specific callbacks.
4833 (variable_language): Add the Ada case in the language setter switch.
4835 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4837 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4839 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4842 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4843 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4844 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4845 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4846 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4847 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4848 (struct dwarf_expr_context_funcs): New, move here methods from ...
4849 (struct dwarf_expr_context): ... here. New fields funcs.
4850 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4851 (dwarf_expr_ctx_funcs): New.
4852 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4853 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4854 (needs_frame_ctx_funcs): New.
4855 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4857 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4859 * MAINTAINERS (Write After Approval): Add myself to the list.
4861 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4863 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4864 that CIE pointer of an FDE really points to a CIE .
4866 2011-07-15 Hui Zhu <teawater@gmail.com>
4868 * remote.c (remote_get_trace_status): Add comments.
4870 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4872 Code cleanup - constify struct lval_funcs.
4873 * dwarf2loc.c (pieced_value_funcs): Make it const.
4874 * infrun.c (siginfo_value_funcs): Likewise.
4875 * opencl-lang.c (opencl_value_funcs): Likewise.
4876 * valops.c (value_assign, value_ind): Make the funcs variable const.
4877 * value.c (struct value): Make location.computed.funcs target const.
4878 Rearrange the comments.
4879 (allocate_computed_value): Make the funcs parameter target const.
4880 (value_computed_funcs): Return the funcs target const.
4881 (value_free, value_copy, set_value_component_location): Make the funcs
4883 * value.h (allocate_computed_value): Make the funcs parameter target
4885 (value_computed_funcs): Return the funcs target const.
4886 * windows-tdep.c (tlb_value_funcs): Make it const.
4888 2011-07-14 Hui Zhu <teawater@gmail.com>
4890 * remote.c (remote_get_trace_status): Initialize p.
4892 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4895 * remote.c (remote_get_trace_status): New variable ex. Put
4896 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4898 2011-07-13 Tom Tromey <tromey@redhat.com>
4900 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4901 value_from_contents for final conversion.
4903 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4906 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4907 Indent prototypes so they do not get into tags.
4909 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4911 Code cleanup making also optimized out values lazy.
4912 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4913 allocate_optimized_out_value. Twice.
4914 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4915 * findvar.c (read_var_value): Likewise.
4916 * value.c (allocate_optimized_out_value): New function.
4917 * value.h (allocate_optimized_out_value): New declaration.
4919 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4921 Fix occasional crash of CTRL-C during DWARF read in.
4922 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4924 2011-07-11 Tom Tromey <tromey@redhat.com>
4926 * regcache.c (struct regcache_descr): Fix typo.
4927 * i387-tdep.c (i387_supply_xsave): Fix typo.
4929 2011-07-11 Tom Tromey <tromey@redhat.com>
4931 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4932 (read_file_scope, read_type_unit_scope): Use it.
4934 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4936 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4939 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4942 * python/python.c: Set gdbpy_should_print_stack default to off.
4943 (set_python): Deprecate maint set python print-stack to
4945 (_initialize_python): Deprecate maint set/show python print-stack.
4946 Add new prefix command, python. Add new setting, print-backtrace.
4947 * NEWS: Document set python print-stack. Document default change.
4949 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4951 * python/py-inferior.c (infpy_dealloc): New function.
4952 (inferior_to_inferior_object): Return a new object, or a
4953 new reference to the existing object.
4954 (find_thread_object): Cleanup references to inferior.
4955 (delete_thread_object): Ditto.
4956 * python/py-infthread.c (create_thread_object): Do not increment
4957 inferior reference count.
4959 2011-07-08 Tom Tromey <tromey@redhat.com>
4961 * dwarf2loc.c (locexpr_regname): New function.
4962 (locexpr_describe_location_piece): Use it.
4963 (disassemble_dwarf_expression): Add per_cu argument. Use
4965 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4966 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4968 (locexpr_describe_location_1): Add per_cu argument.
4969 (locexpr_describe_location): Update.
4970 (loclist_describe_location): Update.
4972 2011-07-08 Tom Tromey <tromey@redhat.com>
4974 * dwarf2expr.c (execute_stack_op): Add QUIT.
4976 2011-07-07 Hui Zhu <teawater@gmail.com>
4979 2011-07-06 Hui Zhu <teawater@gmail.com>
4980 * remote.c (remote_start_remote): Add TRY_CATCH for
4981 remote_get_trace_status.
4982 * tracepoint.c (disconnect_tracing): Ditto.
4984 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4986 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4987 variables as signed, not unsigned.
4989 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4991 * jit.c (jit_inferior_init): Reformat forward declaration.
4993 2011-07-06 Matt Rice <ratmice@gmail.com>
4995 * MAINTAINERS (Write After Approval): Add myself to the list.
4997 2011-07-06 Hui Zhu <teawater@gmail.com>
4999 * remote.c (remote_start_remote): Add TRY_CATCH for
5000 remote_get_trace_status.
5001 * tracepoint.c (disconnect_tracing): Ditto.
5003 2011-07-05 Tom Tromey <tromey@redhat.com>
5005 * symtab.c (operator_chars): Now static.
5006 * linespec.c (operator_chars): Don't declare.
5008 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5010 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5012 2011-07-05 Tom Tromey <tromey@redhat.com>
5014 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5015 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5016 (TYPE_CPLUS_REALLY_JAVA): New macro.
5017 * dwarf2read.c (process_structure_scope): Set
5018 TYPE_CPLUS_REALLY_JAVA.
5020 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5022 * ada-lang.c: Fix typos.
5023 * amd64-tdep.c: Likewise.
5024 * breakpoint.c: Likewise.
5025 * cli/cli-decode.c: Likewise.
5026 * findcmd.c: Likewise.
5027 * inline-frame.c: Likewise.
5028 * mi/mi-main.c: Likewise.
5029 * minsyms.c: Likewise.
5030 * monitor.c: Likewise.
5031 * monitor.h: Likewise.
5032 * prologue-value.c: Likewise.
5033 * reverse.c: Likewise.
5034 * s390-tdep.c: Likewise.
5036 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5038 * jit.c (jit_inferior_init): Forward declare.
5039 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5041 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5043 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5045 2011-07-04 Tristan Gingold <gingold@adacore.com>
5047 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5048 (tcb_fieldno): Add activation_link field.
5049 (get_known_tasks_addr): Moved and rewritten.
5050 (get_tcb_types_info): Set activation_link field.
5051 (read_known_tasks_array): Add parameter. Rewritten.
5052 (read_known_tasks_list): New function.
5053 (read_known_tasks): New function.
5054 (ada_build_task_list): Call read_known_tasks instead of
5055 read_known_tasks_array.
5056 * ravenscar-thread.c: Add first_task_name constant.
5057 (has_ravenscar_runtime): Check for task list too.
5059 2011-07-04 Tristan Gingold <gingold@adacore.com>
5061 * ada-tasks.c: Renames fieldno to actb_fieldno.
5062 (ada_get_task_number): Indentation.
5063 (get_tcb_types_info): Remove all parameters. Write directly
5065 (ptid_from_atcb_common): Adjust.
5066 (read_atcb): Adjust.
5068 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5070 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5072 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5074 * ui-out.c (ui_out_field_core_addr): Mention that the function
5075 description is in the header file.
5076 * ui-out.h (ui_out_field_core_addr): Document function.
5078 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5080 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5081 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5083 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5085 * symtab.c (expand_line_sal): Remove empty line.
5087 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
5089 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5090 same way as ELFOSABI_NONE.
5091 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5093 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5095 * breakpoint.c: Fix typos in comments.
5096 * linespec.c: Likewise.
5097 * symtab.c: Likewise.
5099 2011-07-04 Joel Brobecker <brobecker@adacore.com>
5101 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5102 section in separate object files.
5104 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5106 Fix false GCC warning.
5107 * linespec.c (decode_line_1): Initialize values.
5109 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5111 * linespec.c (find_method): Accept the function type automatically only
5112 if it was specified with parameter types.
5114 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5116 Stop on first linespec terminator instead of eating what we can.
5117 * linespec.c (is_linespec_boundary): New function.
5118 (name_end): Remove function.
5119 (keep_name_info): New parameter on_boundary, replace the body.
5120 (decode_line_1): Provide the parameter to keep_name_info.
5121 (decode_compound): Likewise. Drop the trailing java return type
5124 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5126 Fall back linespec to minimal symbols.
5127 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5128 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5129 (find_method, symbol_found): Change error to cplusplus_error.
5131 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5133 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5135 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5136 Tom Tromey <tromey@redhat.com>
5138 * dwarf2read.c (check_physname): New variable.
5139 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5140 (show_check_physname): New function.
5141 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5143 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5145 * machoread.c (macho_symfile_read): Delete OBE comment.
5147 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5149 * machoread.c (struct macho_oso_data): Delete.
5150 (current_oso): Delete.
5151 (macho_relocate_common_syms): New function, mostly extracted
5153 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5154 Remove code that sets and unset current_oso.
5155 (macho_symfile_relocate): Delete handling of common symbols,
5156 now moved to macho_relocate_common_syms.
5158 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5160 * darwin-nat.c (darwin_ptrace): Add documentation.
5161 Set errno to zero before calling ptrace. If ptrace returns
5162 -1 and errno is zero, then change then return zero.
5163 (darwin_kill_inferior): Issue a warning instead of triggering
5164 a failed assertion when the PT_KILL ptrace operations returned
5167 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5169 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5170 only when inf->private->no_ptrace.
5172 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5174 * ada-lang.c (print_it_exception): Print temporary catchpoints
5175 as "Temporary catchpoint".
5176 (print_mention_exception): Likewise.
5178 2011-07-01 Tom Tromey <tromey@redhat.com>
5180 * jv-lang.c (java_language_defn): Use java_printchar,
5182 (java_get_encoding): New function.
5183 (java_emit_char): Use generic_emit_char.
5184 (java_printchar): New function.
5185 (java_printstr): Likewise.
5187 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5189 * ada-typeprint.c (print_record_type): If unable to decode
5190 the name of the parent type, use the encoded name.
5192 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5194 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5195 pointer to constrained packed array type output.
5196 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5197 packed array output.
5199 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5201 * ada-typeprint.c (print_array_type): removed if condition on show
5202 being negative for bounds printing.
5204 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5206 * ada-lang.c (ada_identical_enum_types_p): New function.
5207 (symbols_are_identical_enums): New function.
5208 (remove_extra_symbols): Do nothing if NSYMS < 2.
5209 Use symbols_are_identical_enums.
5211 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5213 * ada-valprint.c (ada_value_print): Handle typedefs.
5215 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5217 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5219 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5221 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5222 (decode_constrained_packed_array): Likewise.
5223 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5225 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5227 * ada-exp.y (convert_char_literal): Handle typedef types.
5229 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5231 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5233 2011-06-30 Tom Tromey <tromey@redhat.com>
5235 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5236 * valops.c (find_overload_match): Call do_cleanups on early exit
5238 * solib.c (solib_find): Call do_cleanups on early exit path.
5240 2011-06-30 Tom Tromey <tromey@redhat.com>
5242 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5243 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5244 return paths. Defer final do_cleanups until last return.
5245 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5248 2011-06-30 Tom Tromey <tromey@redhat.com>
5250 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5252 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
5254 * MAINTAINERS (Write After Approval): Add myself to the list.
5256 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5258 Disable epilogue unwinders on recent GCCs.
5259 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5260 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5261 * dwarf2read.c (process_full_comp_unit): Initialize
5262 EPILOGUE_UNWIND_VALID.
5263 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5264 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5265 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5267 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5269 Code cleanup - reformatting.
5270 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5271 (producer_is_gcc_ge_4): ... here, change the return value.
5272 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5275 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5277 Fix non-only rename list for Fortran modules import.
5278 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5279 cp_add_using_directive caller.
5280 (cp_add_using_directive): New parameter excludes, describe it. New
5281 variables ix and param. Compare if also excludes match. Allocate NEW
5282 with variable size, initialize EXCLUDES there.
5283 (cp_lookup_symbol_imports): New variable excludep, test
5284 current->EXCLUDES with it.
5285 * cp-support.h: Include vec.h.
5286 (struct using_direct): New field excludes, describe it.
5287 (DEF_VEC_P (const_char_ptr)): New.
5288 (cp_add_using_directive): New parameter excludes.
5289 * defs.h (const_char_ptr): New typedef.
5290 * dwarf2read.c (read_import_statement): New variables child_die,
5291 excludes and cleanups, read in excludes.
5292 (read_namespace): Adjust the cp_add_using_directive caller.
5294 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5297 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5298 negative comparisons.
5300 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
5302 * mi/mi-main.c (mi_cmd_list_features): Emit
5303 breakpoint-notifications.
5305 2011-06-29 Tom Tromey <tromey@redhat.com>
5308 * valprint.h (generic_emit_char, generic_printstr): Declare.
5309 * valprint.c (wchar_printable, append_string_as_wide)
5310 (print_wchar): Move from c-lang.c.
5311 (generic_emit_char): New function; mostly taken from c_emit_char.
5312 (generic_printstr): New function; mostly taken from c_printstr.
5313 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5314 represented as arrays.
5315 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5317 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5318 identically to TYPE_CODE_INT.
5319 * f-lang.c (f_get_encoding): New function.
5320 (f_emit_char): Use generic_emit_char.
5321 (f_printchar): Replace comment.
5322 (f_printstr): Use generic_printstr.
5323 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5324 "character" types specially.
5325 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5327 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5329 (c_emit_char): Call generic_emit_char.
5330 (c_printstr): Call generic_printstr.
5332 2011-06-29 Gary Benson <gbenson@redhat.com>
5334 * breakpoint.c (bpstat_what): Removed duplicated case.
5336 2011-06-28 Tom Tromey <tromey@redhat.com>
5338 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5340 2011-06-27 Tom Tromey <tromey@redhat.com>
5342 * valops.c (find_overload_match): Call do_cleanups before early
5344 * top.c (execute_command): Call do_cleanups before early return.
5345 (command_loop): Likewise.
5346 * stack.c (backtrace_command): Make a null cleanup early. Don't
5347 conditionally call do_cleanups.
5348 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5350 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5351 so cleanups are always run.
5352 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5353 * findcmd.c (parse_find_args): Call do_cleanups on early return
5355 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5356 Don't conditionally call do_cleanups.
5357 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5360 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5362 * MAINTAINERS (Write After Approval): Use default email address.
5364 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5366 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5368 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5370 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5371 saved_regs_mask and copied_regs_mask fields.
5372 (sparc_record_save_insn): New prototype.
5373 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5374 (sparc_record_save_insn): New function.
5375 (sparc_analyze_prologue): Add head comment. Recognize store insns
5376 of call-saved registers. Use OFFSET consistently. Recognize flat
5377 frames and cache their settings.
5378 (sparc32_skip_prologue): Handle flat frames.
5379 (sparc_frame_cache): Add frame_offset to the base address.
5380 (sparc32_frame_cache): Adjust to new frame description.
5381 (sparc32_frame_prev_register): Likewise.
5382 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5383 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5384 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5385 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5386 frame by calling sparc_record_save_insn.
5387 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5388 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5389 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5391 2011-06-27 Tristan Gingold <gingold@adacore.com>
5393 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5394 field by map_addr and map_len.
5395 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5396 (munmap_section_buffer): Likewise.
5398 2011-06-24 Tom Tromey <tromey@redhat.com>
5400 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5401 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5402 * python/python.c (gdbpy_parameter): Make 'arg' const.
5403 (execute_gdb_command): Likewise.
5404 (gdbpy_decode_line): Likewise. Copy it.
5405 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5406 (gdbpy_write): Make 'arg' const.
5407 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5409 (gdbpy_lookup_type): Likewise.
5410 * python/py-prettyprint.c (print_children): Make 'name' const.
5411 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5412 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5414 * python/py-function.c (fnpy_init): Make 'name' const.
5415 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5416 (gdbpy_string_to_argv): Make 'input' const.
5417 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5419 * gdbtypes.h (lookup_typename): Update.
5420 * gdbtypes.c (lookup_typename): Make 'name' const.
5421 (lookup_struct): Likewise.
5422 (lookup_union): Likewise.
5423 (lookup_enum): Likewise.
5425 2011-06-24 Tom Tromey <tromey@redhat.com>
5427 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5428 gdb_thread_db.h. Move all common/ entries to be together.
5429 (TAGS): Don't depend on DEPFILES.
5431 2011-06-23 Yao Qi <yao@codesourcery.com>
5433 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5434 * remote.c (remote_start_remote): ... here.
5435 * monitor.c (monitor_open): ... here.
5437 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5439 * gdbtypes.c (append_composite_type_field_aligned): Fix
5440 calculation of bit position based on alignment.
5442 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5444 * breakpoint.c (bpstat_stop_status): Call the check_status
5445 breakpoint_ops method.
5446 (print_one_breakpoint_location): Also print the condition for Ada
5447 exception catchpoints.
5448 (allocate_bp_location): New, factored out from
5449 allocate_bp_location.
5450 (allocate_bp_location): Adjust. Call the owner breakpoint's
5451 allocate_location method, if there is one.
5452 (free_bp_location): Call the locations's dtor method, if there is
5454 (init_raw_breakpoint_without_location): New breakpoint_ops
5456 (set_raw_breakpoint_without_location): Adjust.
5457 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5458 (set_raw_breakpoint): Adjust.
5459 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5460 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5461 re_set and check_status methods.
5462 (init_catchpoint): Don't memset, initialize thread, addr_string
5463 and enable_state. Pass the ops down to init_raw_breakpoint.
5464 (install_catchpoint): Rename to ...
5465 (install_breakpoint): ... this, and make extern.
5466 (create_fork_vfork_event_catchpoint): Adjust.
5467 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5468 re_set and check_status methods.
5469 (create_syscall_event_catchpoint): Adjust.
5470 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5471 (masked_watchpoint_breakpoint_ops): Install NULL
5472 allocate_location, re_set and check_status methods.
5473 (catch_exec_command_1): Adjust.
5474 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5475 re_set and check_status methods.
5476 (create_ada_exception_breakpoint): Rename to ...
5477 (init_ada_exception_breakpoint): ... this. Add a struct
5478 breakpoint parameter, and delete the exp_string, cond_string and
5479 cond parameters. Use init_raw_breakpoint, and don't install or
5480 mention the breakpoint yet. Don't clear breakpoint fields that
5481 init_raw_breakpoint already clears.
5482 (re_set_breakpoint): Delete, split into ...
5483 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5485 (breakpoint_re_set_one): Call the breakpoint's
5486 breakpoint_ops->re_set implementation, if there's one. Adjust.
5487 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5488 (struct bp_location_ops): New type.
5489 (struct bp_location): New field `ops'.
5490 (struct breakpoint_ops): New `allocate_location', `re_set' and
5491 `check_status' fields. Make `breakpoint_hit''s description match
5493 (init_bp_location): Declare.
5494 (breakpoint_re_set_default): Declare.
5495 (create_ada_exception_breakpoint): Rename to ...
5496 (init_ada_exception_breakpoint): ... this. Add a struct
5497 breakpoint parameter, and delete the exp_string, cond_string and
5499 (install_breakpoint): Declare.
5500 * ada-lang.c: Include exceptions.h.
5501 <Ada exceptions description>: Update.
5502 (struct ada_catchpoint_location): New type.
5503 (ada_catchpoint_location_dtor): New function.
5504 (ada_catchpoint_location_ops): New global.
5505 (ada_catchpoint): New type.
5506 (create_excep_cond_exprs): New function.
5507 (dtor_exception, allocate_location_exception, re_set_exception)
5508 (should_stop_exception, check_status_exception): New functions.
5509 (print_one_exception, print_mention_exception)
5510 (print_recreate_exception): Adjust.
5511 (dtor_catch_exception, allocate_location_catch_exception)
5512 (re_set_catch_exception, check_status_catch_exception): New
5514 (catch_exception_breakpoint_ops): Install them.
5515 (dtor_catch_exception_unhandled)
5516 (allocate_location_catch_exception_unhandled)
5517 (re_set_catch_exception_unhandled)
5518 (check_status_catch_exception_unhandled): New functions.
5519 (catch_exception_unhandled_breakpoint_ops): Install them.
5520 (dtor_catch_assert, allocate_location_catch_assert)
5521 (re_set_catch_assert, check_status_catch_assert): New functions.
5522 (catch_assert_breakpoint_ops): Install them.
5523 (ada_exception_catchpoint_p): Delete.
5524 (catch_ada_exception_command_split)
5525 (ada_exception_catchpoint_cond_string): Rename exp_string
5526 parameter to excep_string. Adjust.
5527 (ada_parse_catchpoint_condition): Delete.
5528 (ada_exception_sal): Rename the exp_string parameter to
5529 excep_string. Delete the cond_string and cond parameters.
5531 (ada_decode_exception_location): Rename the exp_string parameter
5532 to excep_string. Delete the cond_string and cond parameters.
5534 (create_ada_exception_catchpoint): New function.
5535 (catch_ada_exception_command, ada_decode_assert_location)
5536 (catch_assert_command): Adjust.
5537 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5539 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5541 * ada-lang.c: Include arch-utils.h.
5542 (ada_decode_exception_location): Make static.
5543 (catch_ada_exception_command): Moved here from breakpoint.c.
5544 (ada_decode_assert_location): Make static.
5545 (catch_assert_command): Moved here from breakpoint.c.
5546 (_initialize_ada_lang): Install the exception and assert
5547 catchpoint commands here.
5548 * ada-lang.h (ada_decode_exception_location)
5549 (ada_decode_assert_location): Delete declarations.
5550 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5552 (create_ada_exception_breakpoint): Make extern.
5553 (catch_ada_exception_command, catch_assert_command): Moved to
5555 (add_catch_command): Make extern.
5556 (_initilize_breakpoint): Don't install the exception and assert
5557 catchpoint commands here.
5558 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5560 (add_catch_command, create_ada_exception_breakpoint): Declare.
5562 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5564 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5565 the breakpoint to the breakpoint chain here.
5566 (set_raw_breakpoint_without_location): Add the breakpoint to the
5567 breakpoint chain here.
5568 (init_raw_breakpoint): Adjust comments.
5569 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5571 (init_catchpoint): Don't set the catchpoint's breakpoint number
5573 (install_catchpoint): New function.
5574 (create_fork_vfork_event_catchpoint)
5575 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5576 use install_catchpoint.
5578 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5580 * breakpoint.c (create_catchpoint_without_mention)
5581 (create_catchpoint): Delete.
5583 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5585 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5586 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5587 reference to exec_pathname.
5588 (struct exec_catchpoint): New type.
5589 (dtor_catch_exec): New function.
5590 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5591 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5592 (catch_exec_command_1): Adjust to use init_catchpoint.
5593 (delete_breakpoint): Remove reference to exec_pathname.
5595 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5597 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5598 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5599 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5600 reference to syscalls_to_be_caught.
5601 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5603 (struct syscall_catchpoint): New type.
5604 (dtor_catch_syscall): New function.
5605 (insert_catch_syscall, remove_catch_syscall)
5606 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5607 (print_recreate_catch_syscall): Adjust.
5608 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5609 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5610 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5611 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5612 (masked_watchpoint_breakpoint_ops)
5613 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5614 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5615 there is one. Remove references to syscalls_to_be_caught.
5616 (catching_syscall_number): Adjust.
5617 * ada-lang.c (catch_exception_breakpoint_ops)
5618 (catch_exception_unhandled_breakpoint_ops)
5619 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5621 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5623 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5625 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5626 reference to forked_inferior_pid.
5627 (struct fork_catchpoint): New type.
5628 (breakpoint_hit_catch_fork, print_it_catch_fork)
5629 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5630 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5631 (create_fork_vfork_event_catchpoint): Adjust to use
5634 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5636 * breakpoint.c (add_to_breakpoint_chain)
5637 (init_raw_breakpoint_without_location): New functions, factored
5639 (set_raw_breakpoint_without_location): ... this one.
5640 (init_raw_breakpoint): New function, factored out from
5641 set_raw_breakpoint and adjusted to use
5642 init_raw_breakpoint_without_location.
5643 (set_raw_breakpoint): Adjust.
5644 (init_catchpoint): New function, factored out from
5645 create_catchpoint_without_mention and adjusted to use
5646 init_raw_breakpoint.
5647 (create_catchpoint_without_mention): Adjust.
5649 2011-06-22 Tom Tromey <tromey@redhat.com>
5651 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5652 argument of 0 specially.
5654 2011-06-22 Yao Qi <yao@codesourcery.com>
5656 * infrun.c (handle_inferior_event): Remove write-only local variable
5657 `sw_single_step_trap_p'.
5659 2011-06-20 Tom Tromey <tromey@redhat.com>
5661 * symtab.c (lookup_language_this): End loop if block is NULL.
5663 2011-06-17 Tom Tromey <tromey@redhat.com>
5665 * valops.c (value_of_this): Use lookup_language_this.
5666 * symtab.h (lookup_language_this): Declare.
5667 * symtab.c (lookup_language_this): New function.
5668 (lookup_symbol_aux): Use lookup_language_this.
5669 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5671 2011-06-17 Tom Tromey <tromey@redhat.com>
5673 * value.h (value_of_this): Update.
5674 (value_of_local): Remove.
5675 * valops.c (value_of_this): Rename from value_of_local. Change
5677 * p-exp.y (exp): Update.
5678 (variable): Likewise.
5679 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5681 2011-06-17 Tom Tromey <tromey@redhat.com>
5683 * valops.c (value_of_local): Complain if NAME is NULL.
5684 * std-operator.def (OP_OBJC_SELF): Remove.
5685 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5686 * objc-exp.y (name_not_typename): Use OP_THIS.
5687 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5689 <OP_OBJC_SELF>: Remove.
5690 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5692 2011-06-16 Tristan Gingold <gingold@adacore.com>
5694 * python/py-events.h (gdb_py_events): Make it extern.
5695 * python/py-evtregistry.c (gdb_py_events): Declare.
5697 2011-06-16 Hui Zhu <teawater@gmail.com>
5699 * remote.c (remote_trace_set_readonly_regions): Add check for
5700 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5703 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5705 * arm-linux-tdep.c: Include "auxv.h".
5707 (ARM_LINUX_SIZEOF_VFP): Define.
5708 (arm_linux_supply_vfp): New function.
5709 (arm_linux_collect_vfp): Likewise.
5710 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5711 (arm_linux_fpa_regset_sections): New variable.
5712 (arm_linux_vfp_regset_sections): Likewise.
5713 (arm_linux_core_read_description): New function.
5714 (arm_linux_init_abi): Install arm_linux_core_read_description and
5715 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5716 appropriate for the architecture.
5717 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5718 (tdesc_arm_with_m): Declare.
5719 (tdesc_arm_with_iwmmxt): Likewise.
5720 (tdesc_arm_with_vfpv2): Likewise.
5721 (tdesc_arm_with_vfpv3): Likewise.
5722 (tdesc_arm_with_neon): Likewise.
5723 * arm-linux-nat.c: Move features/*.c includes ...
5724 * arm-tdep.c: ... here.
5725 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5726 target description data structures ...
5727 * arm-tdep.c (_initialize_arm_tdep): ... here.
5728 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5729 HWCAP_VFPv3D16): Move definitions ...
5730 * arm-linux-tdep.h: ... here.
5732 2011-06-15 Hui Zhu <teawater@gmail.com>
5734 * remote.c (remote_trace_set_readonly_regions): Add a check for
5737 2011-06-14 Tom Tromey <tromey@redhat.com>
5739 * coffread.c (coffread_objfile): Rename from current_objfile.
5740 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5741 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5743 2011-06-14 Tom Tromey <tromey@redhat.com>
5745 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5746 (class_symtab): Remove.
5747 (jv_dynamics_progspace_key): New global.
5748 (jv_per_objfile_free): Reset program space data. Update assert.
5749 Don't clear globals.
5750 (get_dynamics_objfile): Use and set program space data.
5751 (get_java_class_symtab): Use get_dynamics_objfile.
5752 (add_class_symbol): Likewise.
5753 (java_link_class_type): Likewise.
5754 (java_object_type, jv_clear_object_type, set_java_object_type):
5756 (get_java_object_type): Update. Don't cache result.
5757 (is_object_type): Don't call set_java_object_type.
5758 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5759 initialize jv_dynamics_progspace_key.
5761 2011-06-14 Tom Tromey <tromey@redhat.com>
5763 * symtab.h (current_objfile): Don't declare.
5764 * objfiles.h (current_objfile): Don't declare.
5765 * objfiles.c (current_objfile): Remove.
5766 * mdebugread.c (current_objfile): New file-scope global.
5767 * dbxread.c (current_objfile): New file-scope global.
5768 * coffread.c (current_objfile): New file-scope global.
5770 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5772 * top.h (line): Rename to ...
5773 (saved_command_line): ... this.
5774 (linesize): Rename to ...
5775 (saved_command_line_size): ... this.
5776 * top.c (line): Rename to ...
5777 (saved_command_line): ... this.
5778 (linesize): Rename to ...
5779 (saved_command_line_size): ... this.
5780 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5781 * event-top.c (command_line_handler): Adjust.
5782 * main.c (captured_main): Adjust.
5784 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5786 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5787 get_frame_func instead of get_frame_pc to determine the code
5788 address used to construct the frame ID.
5789 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5790 (i386_epilogue_frame_this_id): Likewise.
5791 (i386_epilogue_frame_prev_register): New function.
5792 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5793 (i386_stack_tramp_frame_sniffer): Fix coding style.
5794 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5795 (i386_gdbarch_init): Fix comments.
5797 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5799 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5800 instruction when walking back through the instruction stream.
5802 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5804 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5805 fullname parameters order.
5807 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5810 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5812 * psymtab.c (map_symbol_filenames_psymtab)
5813 (map_partial_symbol_filenames): Likewise.
5814 * psymtab.h: Include symfile.h.
5815 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5816 * symfile.h (symbol_filename_ftype): New.
5817 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5818 map_symbol_filenames, clarify more the naming in comment.
5820 2011-06-07 Doug Evans <dje@google.com>
5822 * cc-with-index.sh: Fix typos in comment.
5823 Look for ../../gdb, for fullname.exp.
5825 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5826 Pedro Alves <pedro@codesourcery.com>
5828 * cli/cli-cmds.c (shell_escape): Use waitpid.
5829 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5831 2011-06-07 Tristan Gingold <gingold@adacore.com>
5833 * xcoffread.c (dwarf2_xcoff_names): New variable.
5834 (aix_process_linenos): Add a guard.
5835 (xcoff_symfile_finish): Free dwarf2.
5836 (xcoff_initial_scan): Add dwarf2 support.
5838 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5840 * infcall.c (run_inferior_call): Don't mask async. Instead force
5841 a synchronous wait, if the target can async.
5843 * target.h (struct target_ops): Delete to_async_mask.
5844 (target_async_mask): Delete.
5845 * target.c (update_current_target): Delete references to to_async_mask.
5846 * linux-nat.c (linux_nat_async_mask_value): Delete.
5847 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5848 to linux_nat_async_mask_value.
5849 (linux_nat_async_mask): Delete.
5850 (linux_nat_async, linux_nat_close): Remove references to
5851 linux_nat_async_mask_value.
5852 * record.c (record_async_mask_value): Delete.
5853 (record_async): Remove references to record_async_mask_value.
5854 (record_async_mask): Delete.
5855 (record_can_async_p, record_is_async_p): Remove references to
5856 record_async_mask_value.
5857 (init_record_ops, init_record_core_ops): Remove references to
5859 * remote.c (remote_async_mask_value): Delete.
5860 (init_remote_ops): Remove reference to remote_async_mask.
5861 (remote_can_async_p, remote_is_async_p): Remove references to
5862 remote_async_mask_value.
5863 (remote_async): Remove references to remote_async_mask_value.
5864 (remote_async_mask): Delete.
5866 * infrun.c (fetch_inferior_event): Don't claim registers changed
5867 if the current thread is already not executing.
5869 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5871 From Stephen Kitt <steve@sk2.org>
5872 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5873 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5875 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5877 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5878 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5880 2011-06-03 Tom Tromey <tromey@redhat.com>
5882 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5884 * python/py-exitedevent.c (create_exited_event_object): Change
5885 type of 'exit_code'. Optionally add exit_code attribute.
5886 (emit_exited_event): Change type of 'exit_code'.
5887 * python/py-event.h (emit_exited_event): Update.
5888 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5889 * infrun.c (handle_inferior_event): Set exit code fields on
5891 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5893 * inferior.c (exit_inferior_1): Initialize new fields.
5895 2011-06-03 Tom Tromey <tromey@redhat.com>
5897 * dwarf2expr.c (get_signed_type): New function.
5898 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5900 2011-06-02 Keith Seitz <keiths@redhat.com>
5902 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5904 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5906 * top.h (simplified_command_loop): Delete declaration.
5908 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5910 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5911 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5913 2011-06-01 Yao Qi <yao@codesourcery.com>
5915 * objfiles.h (obj_section_addr): Update reference to objfile from
5917 (obj_section_endaddr): Likewise.
5919 2011-06-01 Daniel Jacobowitz <drow@false.org>
5921 * MAINTAINERS: Update my email address and affiliation. Also
5922 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5924 2010-05-31 Keith Seitz <keiths@redhat.com>
5927 * linespec.c (get_search_block): New function.
5928 (find_methods): Add FILE_SYMTATB parameter and use it and
5929 get_search_block to pass an appropriate block to
5930 lookup_symbol_in_namespace.
5931 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5932 Check if *ARGPTR starts with a filename first.
5933 If it does, call locate_first_half again to locate the next
5934 "first half" of the linespec.
5935 Pass FILE_SYMTATB to decode_objc and decode_compound.
5936 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5937 (locate_first_half): Stop on the first colon seen.
5938 (decode_compound): Add FILE_SYMTAB parameter.
5939 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5940 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5941 get_search_block with lookup_symbol.
5942 (find_method): Add FILE_SYMTAB parameter and pass it to
5944 (decode_objc): Use get_search_block.
5946 2010-05-31 Keith Seitz <keiths@redhat.com>
5949 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5950 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5951 and CP_ANONYMOUS_NAMESPACE_LEN.
5952 (cp_is_anonymous): Likewise.
5953 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5954 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5955 * dwarf2read.c (namespace_name): Likewise.
5956 (fixup_partial_die): Likewise.
5957 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5958 seen in the input, keep it.
5960 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5962 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5963 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5964 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5965 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5966 * remote.c (_initialize_remote): Register
5967 async_remote_interrupt_twice directly as
5968 sigint_remote_twice_token event.
5970 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5972 * target.h (enum inferior_event_type): Delete INF_ERROR.
5973 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5975 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5977 * interps.c (interp_set): Don't cancel continuations.
5979 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5981 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5983 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5985 * continuations.h (continuation_ftype): Add `err' parameter.
5986 Document parameters.
5987 (do_all_continuations, do_all_continuations_thread)
5988 (do_all_intermediate_continuations)
5989 (do_all_intermediate_continuations_thread)
5990 (do_all_inferior_continuations): Add `err' parameter.
5991 * continuations.c (do_my_continuations_1, do_my_continuations)
5992 (do_all_inferior_continuations, do_all_continuations_ptid)
5993 (do_all_continuations_thread_callback)
5994 (do_all_continuations_thread, do_all_continuations)
5995 (do_all_intermediate_continuations_thread_callback)
5996 (do_all_intermediate_continuations_thread)
5997 (do_all_intermediate_continuations): Add `err' parameter, and pass
5998 it down all the way to the continuations proper.
5999 * inf-loop.c (inferior_event_handler): If fetching an inferior
6000 event throws an error, don't pop the target, and still call the
6001 continuations, but with `err' set. Adjust all other continuation
6003 * breakpoint.c (until_break_command_continuation): Add `err'
6005 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
6006 issue another step if `err' is set.
6007 (struct until_next_continuation_args): New.
6008 (until_next_continuation): Add `err' parameter. Adjust.
6009 (until_next_command): Adjust.
6010 (struct finish_command_continuation_args): Add `thread' field.
6011 (finish_command_continuation): Add `err' parameter. Handle it.
6012 (finish_forward): Adjust.
6013 (attach_command_continuation): Add `err' parameter. Handle it.
6014 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6015 cancel the continuations.
6016 * interps.c (interp_set): Adjust to cancel the continuations.
6017 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6018 continuations rather than discarding.
6019 (free_thread): Don't clear thread inferior resources here.
6020 (delete_thread_1): Do it here instead. And do it before removing
6021 the thread from the threads list. Tag the thread as exited before
6022 clearing thread inferior resources.
6024 2011-05-30 Joel Brobecker <brobecker@adacore.com>
6026 * infcall.c (call_function_by_hand): Rephrase error message.
6028 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6030 * defs.h (struct thread_info, struct inferior): Delete forward
6032 * breakpoint.h (struct thread_info): New forward declaration.
6033 * observer.sh (struct inferior): New forward declaration.
6034 * python/python-internal.h (struct inferior): New forward
6037 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6039 * defs.h (struct continuation, continuation_ftype)
6040 (continuation_free_arg_ftype, add_continuation)
6041 (do_all_continuations, do_all_continuations_thread)
6042 (discard_all_continuations, discard_all_continuations_thread)
6043 (add_intermediate_continuation, do_all_intermediate_continuations)
6044 (do_all_intermediate_continuations_thread)
6045 (discard_all_intermediate_continuations)
6046 (discard_all_intermediate_continuations_thread)
6047 (add_inferior_continuation, do_all_inferior_continuations)
6048 (discard_all_inferior_continuations): Move to ...
6049 * continuations.h: ... this new file.
6050 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6051 infcmd.c, inferior.c, infrun.c, interps.c: Include
6054 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6055 Doug Evans <dje@google.com>
6057 Fix PR 10970, PR 12702.
6058 * linux-nat.c (linux_lwp_is_zombie): New function.
6059 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
6060 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
6062 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6064 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6066 (add_continuation, add_intermediate_continuation)
6067 (add_inferior_continuation): Use them.
6068 * continuations.c (struct continuation): Use them.
6069 (make_continuation_ftype): Delete.
6070 (make_continuation, add_inferior_continuation, add_continuation)
6071 (add_intermediate_continuation): Use continuation_ftype and
6072 continuation_free_arg_ftype. Rename parameters to shorter names.
6074 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6076 * continuations.c (make_continuation): Make it return void.
6077 (do_my_continuations): Rename to ...
6078 (do_my_continuations_1): ... this. Remove old_chain parameter and
6080 (do_my_continuations): New.
6081 (discard_my_continuations): Rename to ...
6082 (discard_my_continuations_1): ... this. Remove old_chain
6083 parameter and adjust.
6084 (discard_my_continuations): New.
6085 (add_inferior_continuation): Simplify.
6086 (do_all_inferior_continuations): Reimplement on top
6087 do_my_continuations.
6088 (discard_all_inferior_continuations): Simplify.
6089 (add_continuation): Simplify.
6090 (do_all_continuations_ptid): Simplify.
6091 (discard_all_continuations_thread_callback): Simplify.
6092 (add_intermediate_continuation): Simplify.
6093 (discard_all_intermediate_continuations_thread_callback):
6096 2011-05-27 Pedro Alves <pedro@codesourcery.com>
6098 * utils.c (struct continuation, add_continuation)
6099 (add_inferior_continuation)
6100 (do_all_inferior_continuations, discard_all_inferior_continuations)
6101 (restore_thread_cleanup, do_all_continuations_ptid)
6102 (do_all_continuations_thread_callback)
6103 (do_all_continuations_thread, do_all_continuations)
6104 (discard_all_continuations_thread_callback)
6105 (discard_all_continuations_thread, discard_all_continuations)
6106 (add_intermediate_continuation)
6107 (do_all_intermediate_continuations_thread_callback)
6108 (do_all_intermediate_continuations_thread)
6109 (do_all_intermediate_continuations)
6110 (discard_all_intermediate_continuations_thread_callback)
6111 (discard_all_intermediate_continuations_thread)
6112 (discard_all_intermediate_continuations): Move to ...
6113 * continuations.c: ... this new file, and adjust to no longer
6114 implement continuations on top of cleanups.
6115 * Makefile.in (SFILES): Add continuations.c.
6116 (COMMON_OBS): Add continuations.o.
6118 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6120 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6121 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6122 Internal error on invalid values.
6123 * reverse.c: Don't handle EXEC_ERROR.
6124 * mi/mi-main.c: Don't handle EXEC_ERROR.
6126 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6128 * record.c: Include event-loop.h, inf-loop.h.
6129 (record_beneath_to_async): New global.
6130 (tmp_to_async): New global.
6131 (record_async_inferior_event_token): New global.
6132 (record_open_1): Don't error out if async is enabled.
6133 (record_open): Handle to_async. Create an async event source in
6135 (record_close): Delete the async event source.
6136 (record_resumed): New global.
6137 (record_execution_dir): New global.
6138 (record_resume, record_core_resume): Set them. Register the
6139 target on the event loop.
6140 (record_wait): Rename to ...
6141 (record_wait_1): ... this. Add more debug output. Handle
6142 TARGET_WNOHANG, and the target beneath returning
6143 TARGET_WAITKIND_IGNORE.
6144 (record_wait): Reimplement on top of record_wait_1.
6145 (record_async_mask_value): New global.
6146 (record_async, record_async_mask, record_can_async_p)
6147 (record_is_async_p, record_execution_direction): New functions.
6148 (init_record_ops, init_record_core_ops): Install new methods.
6149 * infrun.c (fetch_inferior_event): Temporarily switch the global
6150 execution direction to the direction the target was going.
6151 (execution_direction): Change type to int.
6152 * target.c (default_execution_direction): New function.
6153 (update_current_target): Inherit and de_fault
6154 to_execution_direction.
6155 * target.h (struct target_ops) <to_execution_direction>: New
6157 (target_execution_direction): New macro.
6158 * inferior.h (execution_direction): Change type to int.
6160 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6162 * infcall.c (call_function_by_hand): Don't allow calling functions
6163 in reverse execution mode.
6165 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6167 * infcmd.c (finish_command): Allow async finish in reverse.
6169 2011-05-26 Yao Qi <yao@codesourcery.com>
6171 * gdb_thread_db.h: Delete. Move to ...
6172 * common/gdb_thread_db.h: ... here.
6174 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6176 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6177 function's entry point instead of a manually managed momentary
6178 breakpoint, and only ever issue one proceed call.
6179 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6180 doing a reverse-finish, switch to stepi mode, to do another step.
6181 (insert_step_resume_breakpoint_at_sal): Make public.
6182 (normal_stop): No need to save function value return registers if
6184 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6186 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6188 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6189 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6190 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6192 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6193 step-resume breakpoints.
6194 (print_it_typical): Handle bp_hp_step_resume.
6195 (bpstat_what): Ditto.
6196 (bptype_string): Ditto.
6197 (print_one_breakpoint_location): Ditto.
6198 (allocate_bp_location): Ditto.
6200 (breakpoint_re_set_one): Ditto.
6201 * infrun.c (handle_inferior_event): Adjust. Split
6202 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6203 BPSTAT_WHAT_HP_STEP_RESUME.
6204 (insert_step_resume_breakpoint_at_sal): Rename to ...
6205 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6206 parameter. Handle it.
6207 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6208 insert_step_resume_breakpoint_at_sal_1.
6209 (insert_step_resume_breakpoint_at_frame): Rename to ...
6210 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6211 set a high-priority step-resume breakpoint.
6212 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6213 (insert_step_resume_breakpoint_at_caller): Ditto.
6215 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6217 * breakpoint.c (iterate_over_related_breakpoints): New.
6218 (do_map_delete_breakpoint): New.
6219 (delete_command): Pass do_map_delete_breakpoint to
6220 map_breakpoint_numbers.
6221 (do_disable_breakpoint): New.
6222 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6224 (do_enable_breakpoint): Rename to ...
6225 (enable_breakpoint_disp): ... this.
6226 (enable_breakpoint): Adjust.
6227 (do_enable_breakpoint): New.
6228 (enable_once_breakpoint): Delete.
6229 (do_map_enable_breakpoint): New.
6230 (do_map_enable_once_breakpoint): New.
6231 (enable_once_command, enable_delete_command)
6232 (delete_trace_command): Iterate over the breakpoint's related
6235 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6237 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6238 for ALPHA_ZERO_REGNUM.
6239 (alpha_supply_int_regs): Explicitly supply zero as the value for
6240 ALPHA_ZERO_REGNUM in the register cache.
6241 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6243 2011-05-26 Yao Qi <yao@codesourcery.com>
6245 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6247 2011-05-26 Tristan Gingold <gingold@adacore.com>
6249 * symfile.h (struct dwarf2_section_names): New type.
6250 (struct dwarf2_debug_sections): New type.
6251 (dwarf2_has_info): Add parameter.
6252 * dwarf2read.c (dwarf2_elf_names): New variable.
6253 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6254 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6255 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6256 (dwarf2_has_info): Add names parameter. Pass names
6257 to dwarf2_locate_sections.
6258 (section_is_p): Rewrite using the names parameter.
6259 (dwarf2_locate_sections): Use section names from the names parameter.
6260 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6261 * elfread.c (read_psyms): Ditto.
6262 * machoread.c (macho_symfile_read): Ditto.
6264 2011-05-25 Andreas Schwab <schwab@redhat.com>
6267 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6269 2011-05-24 Keith Seitz <keiths@redhat.com>
6272 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6273 (decode_compound): Unconditionally call keep_name_info.
6275 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6277 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6278 scope, clear its command list.
6279 (map_breakpoint_numbers): Don't walk the related breakpoints list
6282 2011-05-24 Tom Tromey <tromey@redhat.com>
6284 * MAINTAINERS: Move Jim Blandy to past maintainers.
6286 2011-05-24 Tristan Gingold <gingold@adacore.com>
6288 * symfile.h (enum dwarf2_section_enum): New type.
6289 (dwarf2_get_section_info): New prototype.
6290 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6291 section_name by sect. Use a switch to select the info.
6292 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6293 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6295 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6297 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6298 shared library event breakpoint if there's no execution.
6300 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6302 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6303 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6305 2011-05-23 Tom Tromey <tromey@redhat.com>
6307 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6310 2011-05-23 Doug Evans <dje@google.com>
6312 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6313 entry for RuntimeError to doc string.
6315 2011-05-23 Jerome Guitton <guitton@adacore.com>
6317 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6318 sequence for probing loops.
6320 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6322 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6325 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6327 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6328 zero as the value for %g0 in the register cache.
6329 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6330 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6332 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6334 * infrun.c (proceed): Set previous_inferior_ptid here.
6335 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6336 inferior_ptid, not null_ptid.
6337 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6338 (fetch_inferior_event): Nor here.
6340 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6342 * inf-loop.c (inferior_event_handler): Only output a message if
6345 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6347 * MAINTAINERS: Update my e-mail address.
6349 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6351 * infrun.c (proceed): Switch the inferior event loop to
6352 INF_EXEC_COMPLETE if the target refused to resume from a
6355 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6357 * infcmd.c: Include "inf-loop.h".
6358 (step_once): When stepping into an inline subroutine, pretend the
6359 target has run. If the target can async, switch the inferior
6360 event loop to INF_EXEC_COMPLETE.
6361 * inferior.h (user_visible_resume_ptid): Declare.
6362 * infrun.c (user_visible_resume_ptid): New function, factored out
6365 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6366 that the current thread is running. Merge async and sync
6369 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6371 * infcmd.c (step_1): Simplify synchronous case.
6373 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6375 * tracepoint.c: Include exceptions.h.
6376 (TFILE_PID): Move higher in file.
6377 (tfile_open): Delay pushing the tfile target until we're assured
6378 the tfile header is present in the file. Wrap reading the initial
6379 newline-terminated lines in TRY_CATCH. Pop the target if the
6380 initial setup failed. Add the tfile's thread immediately
6381 aftwards, before any non-essential setup. Don't skip
6382 post_create_inferior if there are no traceframes present in the
6384 (tfile_close): Remove redundant check for null before xfree call.
6385 (tfile_thread_alive): New function.
6386 (init_tfile_ops): Register it as to_thread_alive callback.
6388 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6390 * tracepoint.c (tfile_open): Delete #if 0'd code.
6392 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6394 Fix -readnow for -gdwarf-4 unused type units.
6395 * dwarf2read.c (struct signatured_type): Remove the field offset.
6396 (create_signatured_type_table_from_index): Remove its initialization.
6397 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6398 instead. Add a complaint call.
6399 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6400 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6401 (lookup_signatured_type_at_offset, read_signatured_type)
6402 (write_one_signatured_type): Update the field for per_cu.
6404 2011-05-19 Tom Tromey <tromey@redhat.com>
6406 * python/py-inferior.c (python_inferior_exit): Use
6408 (python_on_resume): Likewise.
6410 2011-05-19 Matt Rice <ratmice@gmail.com>
6412 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6414 2011-05-19 Hui Zhu <teawater@gmail.com>
6416 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6418 2011-05-19 Hui Zhu <teawater@gmail.com>
6420 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6422 2011-05-18 Tom Tromey <tromey@redhat.com>
6424 * dwarf2read.c (dwarf2_add_field): Constify.
6425 * value.c (value_static_field): Constify.
6426 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6428 * ax-gdb.c (gen_static_field): Constify
6430 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6432 * linux-nat.c (kill_callback): Use SIGKILL first.
6434 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6436 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6438 2011-05-18 Tom Tromey <tromey@redhat.com>
6440 * value.c (value_fn_field): Constify.
6441 * symtab.c (gdb_mangle_name): Constify.
6442 * stabsread.c (update_method_name_from_physname): Make 'physname'
6444 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6445 const. Use explicit fputc_filtered loop.
6446 (pascal_type_print_base): Constify.
6447 * p-lang.h (pascal_type_print_method_args): Update.
6448 * linespec.c (add_matching_methods): Constify.
6449 (add_constructors): Likewise.
6450 * jv-typeprint.c (java_type_print_base): Constify.
6451 * gdbtypes.h (struct cplus_struct_type)
6452 <fn_fieldlist.fn_field.physname>: Now const.
6453 * dwarf2read.c (compute_delayed_physnames): Constify.
6454 (dwarf2_add_member_fn): Likewise.
6455 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6457 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6459 * infrun.c (resume): Mention which is the current thread, and its
6460 current PC in debug output.
6461 (prepare_to_proceed): Mention the thread switching in debug
6464 2011-05-18 Tom Tromey <tromey@redhat.com>
6466 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6467 path check. Use xmalloc and cleanups.
6468 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6470 2011-05-17 Tom Tromey <tromey@redhat.com>
6472 * cp-valprint.c (cp_print_value_fields): Catch errors from
6475 2011-05-17 Tom Tromey <tromey@redhat.com>
6477 * dwarf2read.c (dwarf2_get_die_type): Call
6478 get_die_type_at_offset.
6479 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6480 get_base_type function.
6482 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6484 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6487 2011-05-16 Doug Evans <dje@google.com>
6489 * python/py-auto-load.c (source_section_scripts): Mention objfile
6492 2011-05-15 Doug Evans <dje@google.com>
6494 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6495 (try_thread_db_load_from_pdir): Call it. If unable to find
6496 libthread_db in directory of libpthread, see if we're looking at
6497 the separate-debug-info copy.
6499 * python/py-autoload.c (print_script): Print "Missing" instead of
6500 "No" for missing scripts.
6501 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6503 2011-05-13 Doug Evans <dje@google.com>
6505 * ui-file.c (stdio_file_write_async_safe): Add comment.
6507 2011-05-14 Hui Zhu <teawater@gmail.com>
6509 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6511 2011-05-13 Doug Evans <dje@google.com>
6513 Support $pdir and $sdir in libthread-db-search-path.
6514 * NEWS: Mention $sdir,$pdir.
6515 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6516 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6517 (try_thread_db_load_from_sdir): New function.
6518 (try_thread_db_load_from_dir): New function.
6519 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6520 system directories if search of libthread-db-search-path fails,
6521 that is now done via $sdir.
6522 (has_libpthread): New function.
6523 (thread_db_load): Remove search for libthread_db in directory of
6524 libpthread, that is now done via $pdir.
6526 * NEWS: Mention "info auto-load-scripts".
6527 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6528 script_not_found_warning_printed.
6529 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6530 all callers updated. Initialize script_not_found_warning_printed.
6531 (get_auto_load_pspace_data_for_loading): New function.
6532 (maybe_add_script): New function.
6533 (source_section_scripts): Simplify. Only print one warning regardless
6534 of the number of auto-load scripts not found.
6535 (clear_section_scripts): Clear script_not_found_warning_printed.
6536 (auto_load_objfile_script): Record script in hash table.
6537 (count_matching_scripts): New function.
6538 (maybe_print_script): Renamed from maybe_print_section_script, all
6539 callers updated. Rewrite to use ui_out_*.
6540 (info_auto_load_scripts): Renamed from
6541 maintenance_print_section_scripts, all callers updated.
6542 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6543 renamed as "info auto-load-scripts".
6545 2011-05-13 Tom Tromey <tromey@redhat.com>
6547 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6548 (read_sleb128): Likewise.
6550 2011-05-13 Tom Tromey <tromey@redhat.com>
6552 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6555 2011-05-13 Doug Evans <dje@google.com>
6557 * linux-nat.c (debug_linux_nat_async): Delete.
6558 Replace all references to use debug_linux_nat instead.
6559 (show_debug_linux_nat_async): Delete.
6560 (sigchld_handler): Call ui_file_write_async_safe instead of
6562 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6563 * ui-file.c (struct ui_file): New member to_write_async_safe.
6564 (null_file_write_async_safe): New function.
6565 (ui_file_write_async_safe): New function.
6566 (set_ui_file_write_async_safe): New function.
6567 (ui_file_new): Initialize to_write_async_safe.
6568 (stdio_file_write_async_safe): New function.
6569 (struct stdio_file): New member fd.
6570 (stdio_file_new): Initialize to_write_async_safe, fd.
6571 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6573 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6574 (set_ui_file_write_async_safe): Declare.
6575 (ui_file_write_async_safe): Declare.
6577 2011-05-13 Tom Tromey <tromey@redhat.com>
6579 * utils.c (do_value_free): New function.
6580 (make_cleanup_value_free): Likewise.
6581 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6583 (dwarf2_loc_desc_needs_frame): Call
6584 make_cleanup_value_free_to_mark.
6585 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6586 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6588 (new_dwarf_expr_context): Don't call value_mark.
6589 * dwarf2-frame.c (execute_stack_op): Call
6590 make_cleanup_value_free_to_mark.
6591 * defs.h (make_cleanup_value_free): Declare.
6593 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6595 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6596 prepare_execute_command.
6597 * top.c (prepare_execute_command): Return cleanup.
6598 (execute_command): Use cleanup from prepare_execute_command.
6599 * top.h (prepare_execute_command): Change prototype to return
6601 * defs.h (struct value): Add opaque declaration.
6602 (make_cleanup_value_free_to_mark): Add prototype.
6603 * utils.c (do_value_free_to_mark): New function.
6604 (make_cleanup_value_free_to_mark): Likewise.
6606 2011-05-12 Tom Tromey <tromey@redhat.com>
6608 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6609 cast left-hand-side to unsigned.
6611 2011-05-12 Tom Tromey <tromey@redhat.com>
6614 * value.h (value_from_contents): Declare.
6615 * value.c (value_from_contents): New function.
6616 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6617 (dwarf2_get_die_type): New function.
6618 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6619 (allocate_piece_closure): Acquire reference to values.
6620 (read_pieced_value): Update for value-based expressions.
6621 (write_pieced_value): Likewise.
6622 (free_pieced_value_closure): Call value_free as needed.
6623 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6624 Update for value-based expressions.
6625 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6626 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6627 <get_base_type>: New field.
6628 (struct dwarf_expr_piece) <v.value>: Change type.
6629 <v.regno>: New field.
6630 (struct dwarf_expr_context) <mark>: New field.
6631 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6632 (dwarf_expr_pop, dwarf_expr_push): Remove.
6633 (dwarf_expr_push_address): Declare.
6634 * dwarf2expr.c (dwarf_arch_cookie): New global.
6635 (struct dwarf_gdbarch_types): New.
6636 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6638 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6640 (dwarf_expr_push_address): New function.
6641 (dwarf_expr_pop): Now static.
6642 (dwarf_expr_fetch): Change return type.
6643 (dwarf_require_integral): New function.
6644 (dwarf_expr_fetch): Simplify.
6645 (add_piece): Update.
6646 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6648 (execute_stack_op) <sign_ext>: Remove.
6649 Use values for DWARF stack.
6650 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6651 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6653 (_initialize_dwarf2expr): New function.
6654 (add_piece): Update.
6655 (new_dwarf_expr_context): Set new field.
6656 (free_dwarf_expr_context): Call value_free_to_mark.
6657 * dwarf2-frame.c (no_base_type): New function.
6658 (execute_stack_op): Set get_base_type field. Update.
6660 2011-05-12 Tom Tromey <tromey@redhat.com>
6662 * dwarf2read.c (read_common_block): Fix formatting.
6664 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6666 * breakpoint.c (disable_breakpoint): Disable all locations
6667 associated with a tracepoint on target if a trace experiment is
6669 (disable_command): Disable a specific tracepoint location on target if
6670 a trace experiment is running.
6671 (do_enable_breakpoint): Enable all locations associated with a
6672 tracepoint on target if a trace experiment is running.
6673 (enable_command) Enable a specific tracepoint location on target if a
6674 trace experiment is running.
6675 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6676 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6677 to_disable_tracepoint.
6678 * target.h: Add declaration of struct bp_location.
6679 (struct target_ops): Add new functions
6680 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6681 to_disable_tracepoint to target operations.
6682 (target_supports_enable_disable_tracepoint): New macro.
6683 (target_enable_tracepoint): New macro.
6684 (target_disable_tracepoint): New macro.
6685 * remote.c (struct remote_state): Add new field.
6686 (remote_enable_disable_tracepoint_feature): New.
6687 (remote_protocol_features): Add new entry.
6688 (remote_supports_enable_disable_tracepoint): New.
6689 (remote_enable_tracepoint): New.
6690 (remote_disable_tracepoint): New.
6691 (init_remote_ops): Add remote_enable_tracepoint,
6692 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6693 to remote operations.
6694 * tracepoint.c (start_tracing): Allow tracing to start without any
6695 tracepoints enabled with just a warning if they can be re-enabled
6697 * NEWS: Add news item for the new behaviour of the enable and disable
6698 GDB commands when applied to tracepoints.
6699 Add news items for the new remote packets QTEnable and QTDisable.
6701 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6703 * config.in: Regenerate.
6704 * configure: Regenerate.
6705 * configure.ac <--with-system-readline> (for readline_echoing_p):
6707 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6708 (tui_old_rl_echoing_p): ... here.
6709 (tui_setup_io): Rename extern declaration readline_echoing_p to
6710 _rl_echoing_p. Adjust assignments for the both renames.
6712 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6714 * symtab.c (lookup_symtab): Run cleanup before returning.
6716 2011-05-11 Tom Tromey <tromey@redhat.com>
6718 * dwarf2read.c (handle_data_member_location): New function.
6719 (dwarf2_add_field): Use it.
6720 (read_common_block): Likewise.
6722 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6724 Make addrs->SECTINDEX always defined.
6725 * symfile.c (relative_addr_info_to_section_offsets): Check for
6726 SECTINDEX -1, not for zero ADDR.
6727 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6728 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6729 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6732 2011-05-10 Doug Evans <dje@google.com>
6734 * linux-thread-db.c: Whitespace cleanup.
6735 (try_thread_db_load_1): Fix comment.
6737 * linux-thread-db.c (set_libthread_db_search_path): New function.
6738 (_initialize_thread_db): Add setter for libthread-db-search-path.
6740 2011-05-09 Doug Evans <dje@google.com>
6742 * NEWS: Mention --with-iconv-bin.
6743 * configure.ac: New option --with-iconv-bin.
6744 * configure: Regenerate.
6745 * config.in: Regenerate.
6746 * defs.h (relocate_gdb_directory): Declare.
6747 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6748 removed progname parameter, and exported. All callers updated.
6749 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6751 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6752 adding missing call to restore_child_signals_mask.
6754 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6756 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6758 * infrun.c (proceed, start_remote): Adjust.
6759 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6760 and adjust to not handle it.
6761 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6762 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6763 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6764 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6765 * windows-nat.c (do_initial_windows_stuff): Adjust.
6766 * infcmd.c (attach_command): Adjust.
6767 (notice_new_inferior): Adjust.
6769 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6771 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6772 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6773 * spu-tdep.c (op_selb): Use correct value.
6775 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6777 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6778 "parent" parameter to symbol_file_add_from_bfd call.
6780 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6781 Thiago Jung Bauermann <bauerman@br.ibm.com>
6783 Implement support for PowerPC BookE masked watchpoints.
6784 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6786 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6787 method. Initialize to NULL in all existing breakpoint_ops instances.
6788 (struct breakpoint) <hw_wp_mask>: New field.
6789 * breakpoint.c (is_masked_watchpoint): Add prototype.
6790 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6791 breakpoint's breakpoint_ops.works_in_software_mode if available.
6792 (watchpoints_triggered): Handle the case of a hardware masked
6794 (watchpoint_check): Likewise.
6795 (works_in_software_mode_watchpoint): New function.
6796 (insert_masked_watchpoint, remove_masked_watchpoint)
6797 (resources_needed_masked_watchpoint)
6798 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6799 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6800 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6802 (masked_watchpoint_breakpoint_ops): New structure.
6803 (watch_command_1): Check for the existence of the `mask' parameter.
6804 Set b->ops according to the type of hardware watchpoint being created.
6805 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6806 (ppc_linux_remove_mask_watchpoint)
6807 (ppc_linux_masked_watch_num_registers): New functions.
6808 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6809 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6810 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6811 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6812 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6813 (target_masked_watch_num_registers): New functions.
6814 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6815 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6817 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6818 (target_masked_watch_num_registers): Add prototypes.
6820 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6823 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6824 (producer_is_gcc_ge_4_0): New function.
6825 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6826 symtab->language code.
6827 (var_decode_location): Set cu->has_loclist.
6828 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6829 skip. Intialize force_skip from locations_valid. Move the prologue
6830 skipping code into two passes.
6831 * symtab.h (struct symtab): Make the primary field a bitfield. New
6832 field locations_valid.
6834 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6836 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6837 (classify_inner_name): Call cp_lookup_nested_type with
6839 * cp-namespace.c (cp_lookup_nested_type): New variable
6840 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6841 type_name_no_tag_or_error with saved_parent_type.
6842 * dwarf2read.c (load_partial_dies): Read in any children of
6843 DW_TAG_typedef with complaint in such case.
6844 * gdbtypes.c (type_name_no_tag_or_error): New function.
6845 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6846 * valops.c (destructor_name_p): New comment for parameter type. Remove
6847 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6848 * value.h (destructor_name_p): Remove type const.
6850 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6852 * symtab.c (compare_symbol_name): New function.
6853 (completion_list_add_name, expand_partial_symbol_name): Call it,
6854 remove the variable ncmp.
6855 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6858 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6860 Demote to sw watchpoint only in update_watchpoint.
6861 * breakpoint.c (update_watchpoint): Change between software and
6862 hardware watchpoint for all kinds of watchpoints, not just
6863 read/write ones. Determine b->exact value here instead of
6864 in watch_command_1. Error out if there are not enough resources
6865 for a read or access hardware watchpoint.
6866 (watch_command_1): Remove logic of checking whether there are
6867 enough resources available, since update_watchpoint will do that
6868 work now. Don't set b->exact here. Catch exceptions thrown by
6869 update_watchpoint and delete the watchpoint.
6870 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6871 Use target_exact_watchpoints instead.
6872 (delete_breakpoint): Notify observers only if deleted watchpoint
6873 has a breakpoint number assigned to it.
6875 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6877 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6879 2011-05-05 Jerome Guitton <guitton@adacore.com>
6881 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6883 (i386_stack_tramp_frame_unwind): New static global.
6884 (i386_match_pattern): New function, extracted from i386_match_insn.
6885 (i386_match_insn): Use i386_match_pattern.
6886 (i386_match_insn_block): New function.
6887 (i386_tramp_chain_in_reg_insns)
6888 (i386_tramp_chain_on_stack_insns): New static variables.
6889 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6892 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6894 * configure.host (xscale*): Don't handle target.
6895 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6898 2011-05-04 Yao Qi <yao@codesourcery.com>
6900 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6902 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6905 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6906 | * elfread.c (elf_symtab_read): Stop memory leak.
6908 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6910 * nto-tdep.c (nto_target): Replace deprecated call to
6911 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6913 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6915 Fix false GCC warning.
6916 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6918 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6920 * breakpoint.c (update_watchpoint): Move code to change
6921 the enable state of breakpoint from here ...
6922 (do_enable_breakpoint): ... to here.
6924 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6926 * valprint.c (val_print_array_elements): Fixed poor performance
6927 of printing very large arrays with repeat_count_threshold set
6928 to unlimited. New comment.
6930 2011-04-29 Tom Tromey <tromey@redhat.com>
6932 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6933 (mi_parse): Likewise.
6934 * breakpoint.c (break_range_command): Use sizeof char*, not
6936 (create_breakpoint): Likewise.
6937 (parse_breakpoint_sals): Likewise.
6939 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6941 * linux-nat.c (linux_child_remove_fork_catchpoint)
6942 (linux_child_remove_vfork_catchpoint)
6943 (linux_child_remove_exec_catchpoint): New functions.
6944 (linux_target_install_ops): Install them.
6946 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6950 * varobj.c (install_default_visualizer): Do not install a
6951 visualizer if the varobj is CPLUS_FAKE_CHILD.
6952 (construct_visualizer): Likewise.
6954 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6956 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6957 case insensitive comparison.
6959 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6961 * infrun.c (proceed): Revert previous change.
6962 (resume): Instead, handle the case of signal delivery while stepping
6963 off a breakpoint location here, and only if software single-stepping
6964 is used. Handle nested signals.
6966 2011-04-28 Yao Qi <yao@codesourcery.com>
6968 * arm-tdep.c (copy_unmodified): Rename to ...
6969 (arm_copy_unmodified): .. this. New.
6970 (copy_preload): Move common part to ...
6971 (install_preload): .. this. New.
6972 (arm_copy_preload): New.
6973 (copy_preload_reg): Move common part to ...
6974 (install_preload_reg): ... this. New.
6975 (arm_copy_preload_reg): New.
6976 (copy_b_bl_blx): Move common part to ...
6977 (install_b_bl_blx): .. this. New.
6978 (arm_copy_b_bl_blx): New.
6979 (copy_bx_blx_reg): Move common part to ...
6980 (install_bx_blx_reg): ... this. New.
6981 (arm_copy_bx_blx_reg): New.
6982 (copy_alu_reg): Move common part to ...
6983 (install_alu_reg): ... this. New.
6984 (arm_copy_alu_reg): New.
6985 (copy_alu_shifted_reg): Move common part to ...
6986 (install_alu_shifted_reg): ... this. New.
6987 (copy_ldr_str_ldrb_strb): Move common part to ...
6988 (install_ldr_str_ldrb_strb): ... this. New.
6989 (arm_copy_ldr_str_ldrb_strb): New.
6990 (copy_copro_load_store): Move some common part to ...
6991 (install_copy_copro_load_store): ... this. New.
6992 (arm_copy_copro_load_store): New.
6994 (arm_copy_svc): Renamed from copy_svc.
6995 (copy_undef): Delete.
6996 (arm_copy_undef): Renamed from copy_undef.
6997 (decode_ext_reg_ld_st): Delete.
6998 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6999 (decode_svc_copro): Delete.
7000 (arm_decode_svc_copro): Renamed from decode_svc_copro.
7001 (copy_copro_load_store, copy_alu_imm): update callers.
7002 (copy_extra_ld_st, copy_block_xfer): Likewise.
7003 (decode_misc_memhint_neon, decode_unconditional): Likewise.
7004 (decode_miscellaneous, decode_dp_misc): Likewise.
7005 (decode_ld_st_word_ubyte, decode_media): Likewise.
7006 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7007 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7008 (decode_unconditional, decode_miscellaneous): Likewise.
7009 (decode_media, decode_b_bl_ldmstm): Likewise.
7010 (arm_process_displaced_insn): Likewise..
7011 (decode_misc_memhint_neon): Delete.
7012 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7013 (decode_miscellaneous): Delete.
7014 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7015 (decode_dp_misc): Delete.
7016 (arm_decode_dp_misc): Renamed from decode_dp_misc.
7017 (decode_ld_st_word_ubyte): Delete.
7018 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7019 (decode_media): Delete.
7020 (arm_decode_media): Renamed from decode_media.
7021 (decode_b_bl_ldmstm): Delete.
7022 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7023 (decode_ext_reg_ld_st): Delete.
7024 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7025 (decode_unconditional): Delete.
7026 (arm_decode_unconditional): Renamed from decode_unconditional.
7028 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7030 Case insensitive lookups implementation.
7031 * dwarf2read.c: Include ctype.h.
7032 (struct mapped_index): New field version.
7033 (mapped_index_string_hash): New parameter index_version. New comment
7034 for it. Call tolower appropriately.
7035 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7036 Choose the right index version for mapped_index_string_hash.
7037 (dwarf2_read_index): Support also the index version 5. Initialize the
7038 new struct mapped_index field version.
7039 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7040 (find_slot): Explain the version needs. Pass INT_MAX for the new
7042 (write_psymtabs_to_index): Produce version 5.
7043 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7044 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
7045 * psymtab.c (lookup_partial_symbol): Find the
7046 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7048 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7050 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7051 (completion_list_add_name): New variable ncmp, initialize it, use it.
7052 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7053 * utils.c (strcmp_iw): Support case_sensitive_off.
7054 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7055 New function comment part. New variables saved_string1,
7056 saved_string2 and case_pass. Add a proper second pass.
7058 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7060 Replace re_comp/re_exec by regcomp/regexec.
7061 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7062 (search_symbols_name_matches): Use them, use regexec.
7063 (search_symbols): New variable retval_chain, adjust the use of
7064 old_chain against it. Replace re_comp by regcomp. Use the new struct
7065 search_symbols_data fields, use regexec instead of re_exec.
7067 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7069 Format the code for the next patch.
7070 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7071 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7072 New variables c1 and c2.
7074 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7076 * infrun.c (proceed): Do not single-step into signal delivery
7077 when stepping off a breakpoint location.
7078 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7079 (insert_step_resume_breakpoint_at_caller): Likewise.
7080 (insert_step_resume_breakpoint_at_sal): Likewise.
7081 (insert_longjmp_resume_breakpoint): Likewise.
7083 2011-04-27 Yao Qi <yao@codesourcery.com>
7085 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7087 2011-04-27 Joel Brobecker <brobecker@adacore.com>
7089 * procfs.c (procfs_pass_signals): Fix advance declaration.
7091 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7093 * target.h (struct target_ops): Remove to_notice_signals;
7094 add to_pass_signals.
7095 (target_notice_signals): Remove.
7096 (target_pass_signals): Add prototype.
7097 * target.c (update_current_target): Remove to_notice_signals;
7098 mention to_pass_signals.
7099 (target_pass_signals): New function.
7100 (debug_to_notice_signals): Remove.
7101 (setup_target_debug): Do not install debug_to_notice_signals.
7103 * infrun.c (signal_pass): New global.
7104 (resume): Call target_pass_signals.
7105 (handle_inferior_event): Report all signals while stepping over
7106 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7107 are re-inserted when stepping over a signal handler.
7108 (signal_cache_update): New function.
7109 (signal_stop_update): Call it.
7110 (signal_print_update): Likewise.
7111 (signal_pass_update): Likewise.
7112 (handle_command): Call signal_cache_update and target_pass_signals
7113 instead of target_notice_signals.
7114 (_initialize_infrun): Initialize signal_pass.
7116 * linux-nat.c (pass_mask): New global.
7117 (linux_nat_pass_signals): New function.
7118 (linux_nat_create_inferior): Report all signals initially.
7119 (linux_nat_attach): Likewise.
7120 (linux_nat_resume): Use pass_mask to decide whether to directly
7121 handle an inferior signal.
7122 (linux_nat_wait_1): Likewise.
7123 (linux_nat_add_target): Install to_pass_signals callback.
7125 * nto-procfs.c (notice_signals): Remove.
7126 (procfs_resume): Do not call notice_signals.
7127 (procfs_notice_signals): Remove.
7128 (procfs_pass_signals): New function.
7129 (init_procfs_ops): Install to_pass_signals callback instead of
7130 to_notice_signals callback.
7131 (_initialize_procfs): Report all signals initially.
7133 * procfs.c (procfs_notice_signals): Remove.
7134 (procfs_pass_signals): New function.
7135 (procfs_target): Install to_pass_signals callback instead of
7136 to_notice_signals callback.
7137 (register_gdb_signals): Remove.
7138 (procfs_debug_inferior): Report all signals initially.
7139 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7141 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7142 parameters; use them instead of calling signal_..._state routines.
7143 (remote_notice_signals): Remove.
7144 (remote_start_remote): Report all signals initially.
7145 (remote_resume): Do not call remote_pass_signals.
7146 (_initialize_remote): Install to_pass_signals callback instead of
7147 to_notice_signals callback.
7149 2011-04-27 Pedro Alves <pedro@codesourcery.com>
7151 * breakpoint.c (user_settable_breakpoint): Delete.
7152 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7153 (delete_command): Check user_breakpoint_p instead of looking at
7154 the breakpoint's type.
7155 (disable_command): Ditto.
7156 (enable_command): Ditto.
7157 (delete_trace_command): Use user_breakpoint_p instead of looking
7158 at the breakpoint number directly. When checking if there are
7159 user visible tracepoints, in order to know whether to ask the user
7160 for confirmation, check whether the breakpoint is actually a
7163 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7165 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7168 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7170 MI breakpoint notifications.
7172 * annotate.c (breakpoint_changed): Adjust parameter type.
7173 * breakpoint.c (set_breakpoint_condition): Adjust to change
7174 in breakpoint_modified type.
7175 (breakpoint_set_commands): Likewise.
7176 (do_map_commands_command): Likewise.
7177 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7178 changed after bumping hit count.
7179 (bpstat_stop_status): Likewise.
7180 (print_one_breakpoint_location): Don't wrap in tuple here.
7181 (print_one_breakpoint): Always print individual locations.
7182 For locations, use unnamed tuple.
7183 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7185 (create_catchpoint, create_syscall_event_catchpoint): Call
7186 breakpoint_created obsever.
7187 (mention): Don't call breakpoint_created observer.
7188 (create_breakpoint_sal): Call breakpoint_created observer.
7189 (create_breakpoint, watch_command_1): Likewise.
7190 (create_ada_exception_breakpoint): Likewise.
7191 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7192 (locations_are_equal): New.
7193 (update_breakpoint_locations): If locations were changed, notify.
7194 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7195 Call breakpoint_modified observer.
7197 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7198 (mi_cmd_break_insert): Don't set observers for modify and delete.
7199 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7200 (mi_breakpoint_created, mi_breakpoint_deleted)
7201 (mi_breakpoint_modified): New.
7202 (mi_interpreter_init): Hook the above.
7203 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7204 while -break-* commands are executing.
7205 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7206 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7208 (mi_ui_out_impl): Hook in mi_redirect.
7209 (mi_field_skip): True to the name, skip the field, don't output
7210 a field with an empty value.
7212 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7213 (gdbpy_breakpoint_deleted): Adjust.
7214 * tui/tui-hooks.c (tui_event_create_breakpoint)
7215 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7217 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7219 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7220 (procfs_remove_hw_watchpoint): Likewise.
7222 2011-04-26 Michael Walle <michael@walle.cc>
7224 * remote.c (remote_start_remote): Ack packet after sending the
7227 2011-04-26 Yao Qi <yao@codesourcery.com>
7229 * linux-nat.c: Move common macros to ...
7230 Include linux-ptrace.h.
7231 * common/linux-ptrace.h: ... here. New.
7233 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7235 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7236 !objfile_has_partial_symbols. New comment.
7237 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7238 SYM_READ_PSYMBOLS is not present. Extend the comment.
7239 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7241 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7243 * defs.h (ENUM_BITFIELD): Remove.
7245 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7246 Eli Zaretskii <eliz@gnu.org>
7248 * NEWS: Document the new gdbserver --once option.
7250 2011-04-21 Jie Zhang <jzhang918@gmail.com>
7252 * MAINTAINERS: Update my email address.
7254 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7256 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7257 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7258 function call if __STDC_ISO_10646__ macro is defined.
7259 (intermediate_encoding): New prototype.
7260 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7261 to generate compile time error for unsupported gdb_wchar_t size.
7262 (ENDIAN_SUFFIX): New macro.
7263 (intermediate_encoding): New function.
7265 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7267 * ada-lang.c (struct add_partial_datum): Update the comment for
7268 expand_partial_symbol_name.
7269 (ada_add_partial_symbol_completions): Rename to ...
7270 (ada_expand_partial_symbol_name): ... here, change return type, update
7271 function comment, call symbol_completion_match instead of
7272 symbol_completion_add.
7273 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7274 and ada_expand_partial_symbol_name.
7275 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7277 (dw2_map_symbol_names): Remove.
7278 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7279 * psymtab.c (map_symbol_names_psymtab): Remove.
7280 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7281 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7283 (psym_functions): Unlist map_symbol_names_psymtab.
7284 (map_partial_symbol_names): Rename to ...
7285 (expand_partial_symbol_names): ... here, change the FUN type, call
7286 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7287 * psymtab.h (map_partial_symbol_names): Rename to ...
7288 (expand_partial_symbol_names): ... here, change the FUN type.
7289 * symfile.h (struct quick_symbol_functions): Update the description of
7290 expand_symtabs_matching. Remove map_symbol_names.
7291 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7292 (struct add_name_data): Update the comment for
7293 expand_partial_symbol_name.
7294 (add_partial_symbol_name): Rename to ...
7295 (expand_partial_symbol_name): ... here. Replace
7296 completion_list_add_name call by strncmp.
7297 (default_make_symbol_completion_list_break_on): Use now
7298 expand_partial_symbol_names and expand_partial_symbol_name.
7299 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7301 2011-04-20 Tom Tromey <tromey@redhat.com>
7303 * dwarf2read.c (save_gdb_index_command): Replace format
7304 documentation with a pointer to the manual.
7306 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7308 * regcache.c: Include remote.h.
7309 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7310 (regcache_dump): Handle regcache_dump_remote.
7311 (maintenance_print_remote_registers): New function.
7312 (_initialize_regcache): Install "maint print remote-registers"
7314 * remote.c (map_regcache_remote_table): New function, factored out
7316 (init_remote_state): ... here.
7317 (remote_register_number_and_offset): New.
7318 * remote.h (remote_register_number_and_offset): Declare.
7320 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7322 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7323 null_ptid, assume and allow a NULL address space, instead of
7324 asking the target for the ptid's address space.
7325 * infrun.c (ptid_is_pid): Remove assertion.
7327 2011-04-19 Tom Tromey <tromey@redhat.com>
7329 * windows-tdep.c (windows_xfer_shared_library):
7330 * windows-nat.c (get_module_name, windows_make_so):
7331 * v850-tdep.c (v850_handle_pushm):
7332 * utils.c (null_cleanup, gdb_realpath):
7333 * ui-out.c (get_next_header):
7334 * tracepoint.c (clear_traceframe_info):
7335 * symtab.c (lookup_symtab):
7336 * serial.h (struct serial_ops):
7337 * mipsread.c (read_alphacoff_dynamic_symtab):
7338 * infcmd.c (print_return_value):
7339 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7340 * f-exp.y (parse_number):
7341 * exceptions.c (catch_exceptions):
7342 * dummy-frame.c (dummy_frame_this_id):
7343 * defs.h (struct cleanup):
7344 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7345 * arm-tdep.c (arm_push_dummy_call):
7346 * amd64-tdep.h (amd64_collect_xsave):
7347 * amd64-tdep.c (amd64_collect_xsave):
7348 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7349 * README (typing): Remove duplicate words.
7350 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7351 * infrun.c (siginfo_value_read): Fix typo.
7352 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7353 * top.c (source_line_number): Add comma.
7355 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7357 * thread.c (any_live_thread_of_process): Prioritize threads
7358 that are not executing.
7359 * gdbthread.h (any_live_thread_of_process): Update comment
7360 as per above change.
7362 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7364 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7365 (scan_xcoff_symtab): Likewise.
7367 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7369 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7372 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7373 Pedro Alves <pedro@codesourcery.com>
7375 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7376 variables to simplify code and avoid == operator at end of
7377 line as this is against GNU coding standards.
7379 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7381 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7382 lm_name to name_lm to avoid conflict with lm_name function.
7384 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7386 ARI fixes: Use only lowercase function name for static functions.
7387 * nto-tdep.c (LM_ADDR): Rename to...
7388 (lm_addr): New function name.
7389 (nto_relocate_section_addresses): Adapt to change above.
7390 * solib-sunos.c (LM_ADDR): Rename to...
7391 (lm_addr): New function name.
7392 (LM_NEXT): Rename to...
7393 (lm_next): New function name.
7394 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7395 function name changes above.
7396 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7397 (lm_addr_from_link_map): New function name.
7398 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7399 (has_lm_dynamic_from_link_map): New function name.
7400 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7401 (lm_dynamic_from_link_map): New function name.
7402 (LM_ADDR_CHECK): Rename to...
7403 (lm_addr_check): New function name.
7404 (LM_NEXT): Rename to...
7405 (lm_next): New function name.
7406 (LM_PREV): Rename to...
7407 (lm_prev): New function name.
7408 (LM_NAME): Rename to...
7409 (lm_name): New function name.
7410 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7411 (ignore_first_link_map_entry): New function name.
7412 (svr4_keep_data_in_core): Adapt to function name changes above.
7413 (svr4_current_sos): Likewise.
7414 (enable_break): Likewise.
7415 (svr4_relocate_section_addresses): Likewise.
7417 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7420 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7421 sprintf. Simplify code and avoid loosing memory.
7422 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7423 (call0_frame_cache): Remove && operator from end of line.
7425 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7427 Fix libraries displacement if they change whether they were prelinked.
7428 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7429 does not match. Comment why.
7431 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7433 * corelow.c: Include wrapper.h.
7434 (core_open): Call now gdb_target_find_new_threads.
7435 * wrapper.c: Include target.h.
7436 (gdb_target_find_new_threads): New.
7437 * wrapper.h (gdb_target_find_new_threads): New declaration.
7439 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7441 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7442 even if !TARGET_HAS_EXECUTION.
7444 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7446 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7447 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7448 bfd_get_synthetic_symtab.
7449 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7450 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7451 parameter parent, remove the call to add_separate_debug_objfile.
7452 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7453 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7454 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7455 parent, new comment for it, call add_separate_debug_objfile for it.
7456 (symbol_file_add_separate): Pass objfile as the parameter parent,
7457 remove the call to add_separate_debug_objfile.
7458 (symbol_file_add_from_bfd): New parameter parent, pass it.
7459 (symbol_file_add): Pass NULL to the new parameter parent.
7460 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7462 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7464 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7467 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7469 Fix Python access to inlined frames.
7470 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7471 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7473 2011-04-15 Tom Tromey <tromey@redhat.com>
7475 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7477 2011-04-15 Gary Benson <gbenson@redhat.com>
7479 * MAINTAINERS: Add myself to write-after-approval section.
7481 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7483 * remote-sim.c (sim_command_completer): New function.
7484 (_initialize_remote_sim): Set completer to sim_command_completer.
7486 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7488 * breakpoint.c (print_exception_catchpoint): Rename to ...
7489 (print_it_exception_catchpoint): ... this.
7490 (gnu_v3_exception_catchpoint_ops): Update with new name
7491 for print_it_exception_catchpoint.
7493 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7495 * MAINTAINERS: Add myself for write after approval privileges.
7497 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7499 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7501 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7503 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7505 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7507 * breakpoint.c (save_breakpoints): Verify whether
7508 breakpoint_ops.print_recreate is defined before calling it.
7510 2011-04-11 Gary Benson <gbenson@redhat.com>
7512 Fix failure with --enable-maintainer-mode.
7513 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7515 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7518 * symtab.c (search_symbols): Reorder the KIND description in the
7519 function comment. Remove the unused 4th element of types, types2,
7520 types3 and types4. New gdb_assert on KIND.
7521 (symtab_symbol_info): Remove the unused 4th element of classnames.
7522 New gdb_assert on KIND.
7523 * symtab.h (enum search_domain): New warning in the enum comment.
7524 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7527 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7529 Fix crash of gdb save-index on a STABS file.
7530 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7533 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7535 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7536 * dwarf2read.c: Include ctype.h.
7537 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7539 (dwarf2_add_field): Fix new_field->accessibility by calling
7540 dwarf2_default_access_attribute. Restructure setting accessibility
7542 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7543 is_private and is_protected by calling
7544 dwarf2_default_access_attribute.
7546 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7548 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7549 to the initialization.
7551 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7553 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7556 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7558 Remove support for old Cygwin 1.5 versions.
7559 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7560 function on old Cygwin version.
7561 * windows-nat.c: Remove cygwin version check and always define
7562 __USEWIDE for Cygwin compilation.
7564 2011-04-07 Yao Qi <yao@codesourcery.com>
7566 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7568 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7569 (arm_copy_svc): Remove parameters INSN and TO.
7570 (decode_svc_copro): Update caller.
7571 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7572 from function pointer `copy_svc_os'.
7574 2011-04-07 Yao Qi <yao@codesourcery.com>
7576 * arm-tdep.c (cleanup_branch): Set a correct return address in
7577 LR for ARM and Thumb.
7579 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7582 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7583 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7584 in the function comment, a new note on values compatibility.
7585 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7586 * symtab.h (SYMBOL_HASH_NEXT): New.
7588 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7590 * ppc-linux-nat.c (check_condition): Add len output parameter.
7591 Set it based on the memory region referenced in the condition
7592 expression. Update all callers.
7594 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7596 Fix crash regression on systems featuring .gdb_index.
7597 * objfiles.c (free_objfile): Move the
7598 forget_cached_source_info_for_objfile call earlier. Comment it.
7599 Extend the comment for objfile_free_data.
7601 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7603 Fix regression of displaying the debug format.
7604 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7607 2011-04-04 Tom Tromey <tromey@redhat.com>
7609 * cli/cli-interp.c (struct captured_execute_command_args):
7611 (do_captured_execute_command): Remove.
7612 (safe_execute_command): Use TRY_CATCH.
7613 * cli/cli-script.c (struct wrapped_read_command_file_args):
7615 (wrapped_read_command_file): Remove.
7616 (script_from_file): Use TRY_CATCH.
7617 * exceptions.c (catch_exception): Remove.
7618 * exceptions.h (catch_exception): Remove.
7619 (deprecated_throw_reason): Update comment.
7620 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7621 argument to 'context'.
7622 (mi_execute_command): Use TRY_CATCH.
7623 * remote.c (struct start_remote_args): Remove.
7624 (remote_start_remote): Update; change arguments.
7625 (remote_open_1): Use TRY_CATCH.
7627 2011-04-04 Tom Tromey <tromey@redhat.com>
7629 * tracepoint.c (scope_info): Update.
7630 * symtab.c (decode_line_spec): Update.
7631 * python/python.c (gdbpy_decode_line): Update.
7632 * linespec.h (decode_line_1): Update.
7633 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7634 (decode_compound, find_method, symtab_from_filename)
7635 (decode_variable): Likewise.
7636 * cli/cli-cmds.c (edit_command): Update.
7637 (list_command): Update.
7638 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7640 (create_breakpoint): Update.
7641 (until_break_command): Update.
7642 (addr_string_to_sals): Update.
7643 (decode_line_spec_1): Update.
7645 2011-04-04 Tom Tromey <tromey@redhat.com>
7647 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7648 (do_captured_parse_breakpoint): Remove.
7649 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7650 Use TRY_CATCH directly.
7652 2011-04-04 Tom Tromey <tromey@redhat.com>
7654 * symtab.h (free_symtab): Remove.
7655 (forget_cached_source_info_for_objfile): Declare.
7656 * symmisc.c (free_symtab): Remove.
7657 * source.c (forget_cached_source_info_for_objfile): New function.
7658 (forget_cached_source_info): Use it.
7659 * objfiles.c (free_objfile): Simplify check before calling
7660 clear_current_source_symtab_and_line. Call
7661 forget_cached_source_info_for_objfile.
7663 2011-04-04 Tom Tromey <tromey@redhat.com>
7665 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7666 (new_symtab): Don't set `free_code' on symtab.
7667 (new_linetable): Properly handle size==0.
7668 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7669 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7671 * jv-lang.c (struct jv_per_objfile_data): New.
7672 (jv_per_objfile_free): Free the data.
7673 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7674 (get_java_class_symtab): Set the `dict' field on the
7675 jv_per_objfile_data.
7676 (free_class_block): Remove.
7677 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7680 2011-04-04 Tom Tromey <tromey@redhat.com>
7682 * symfile.c (reread_symbols): Update.
7683 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7685 * objfiles.c (allocate_objfile): Update.
7686 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7688 * cp-namespace.c (lookup_symbol_file): Don't call
7689 lookup_possible_namespace_symbol.
7690 (initialize_namespace_symtab, get_possible_namespace_block)
7691 (free_namespace_block, cp_check_possible_namespace_symbols)
7692 (check_possible_namespace_symbols_loop)
7693 (check_one_possible_namespace_symbol)
7694 (lookup_possible_namespace_symbol): Remove.
7695 (maintenance_cplus_namespace): Replace with notice.
7696 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7698 2011-04-04 Tom Tromey <tromey@redhat.com>
7700 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7701 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7702 * symmisc.c (free_symtab): Don't free debugformat.
7703 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7704 (record_debugformat, record_producer): Document.
7705 * buildsym.c (end_symtab): Don't save debugformat and producer
7707 (end_symtab): Don't free debugformat and producer fields.
7708 (record_debugformat): Don't call xstrdup.
7709 (record_producer): Likewise.
7711 2011-04-04 Tom Tromey <tromey@redhat.com>
7713 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7714 (source_line_charpos, source_charpos_line): Remove.
7716 2011-04-04 Tom Tromey <tromey@redhat.com>
7718 * symtab.h (domain_enum): Split in two...
7719 (enum search_domain): New.
7720 (search_symbols): Update.
7721 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7722 redundant declarations.
7723 (search_symbols): Change 'kind' argument to search_domain.
7725 (print_symbol_info): Likewise.
7726 (symtab_symbol_info): Likewise.
7727 * symfile.h (struct quick_symbol_functions)
7728 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7729 <expand_symtabs_matching>: Likewise.
7730 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7731 (expand_symtabs_matching_via_partial): Update.
7732 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7733 (dw2_expand_symtabs_for_function): Update.
7734 * block.h: Moved anonymous enum...
7735 * defs.h (enum block_enum): ... here. Now named.
7737 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7739 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7740 * version.in: Bump version to 7.3.50.20110403-cvs.
7742 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7744 * NEWS: Create a new section for the next release branch.
7745 Rename the section of the current branch, now that it has
7748 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7750 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7751 for "fpscr" in target description.
7753 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7755 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7756 initialize it. Delay HASH initialization. Strip the part after open
7757 parenthesis for languages with qualifiers. Call do_cleanups.
7759 2011-04-01 Tom Tromey <tromey@redhat.com>
7761 * utils.c (report_command_stats): Don't print `-' for negative
7764 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7766 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7767 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7770 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7772 * breakpoint.h (bpdisp_text): Add declaration.
7773 * breakpoint.c (bpdisp_text): Make non-static.
7774 * ada-lang.c: #include "mi/mi-common.h".
7775 (print_it_exception): Rewrite to improve GDB/MI output.
7777 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7779 * arm-tdep.h (struct address_space): Add forward declaration.
7781 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7783 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7784 * arm-tdep.c (arm_override_mode): New global.
7785 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7786 execution mode heuristics.
7787 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7788 second single-step breakpoint if needed, using
7789 arm_insert_single_step_breakpoint.
7790 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7791 ARM execution mode, do not call thumb_get_next_pc_raw.
7792 (arm_get_next_pc): Encode execution mode in return value. Call
7793 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7794 (arm_insert_single_step_breakpoint): New function.
7795 (arm_software_single_step): Call it.
7796 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7797 argument to return execution mode of sigreturn target.
7798 (arm_linux_syscall_next_pc): Use it.
7799 (arm_linux_copy_svc): Update call.
7800 (arm_linux_software_single_step): Call
7801 arm_insert_single_step_breakpoint.
7803 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7805 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7808 2011-03-31 Tom Tromey <tromey@redhat.com>
7810 * varobj.c (update_dynamic_varobj_children): Properly handle
7811 errors from iterator.
7813 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7815 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7816 struct linkage name twice.
7818 2011-03-31 Tom Tromey <tromey@redhat.com>
7820 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7821 missing ">" to message.
7823 2011-03-31 Tom Tromey <tromey@redhat.com>
7825 * varobj.c (instantiate_pretty_printer): Remove duplicate
7828 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7830 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7831 if neither saved value nor register available (e.g. signal frame).
7833 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7835 * macroexp.c (expand): Avoid uninitialized variable
7838 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7840 * breakpoint.c (break_range_command): Fix typo in comment.
7842 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7843 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7845 Implement support for PowerPC BookE ranged breakpoints.
7846 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7847 * breakpoint.h (struct bp_target_info) <length>: New member
7849 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7850 instead of struct breakpoint as argument, and also add ASPACE
7851 and BP_ADDR arguments. Update all callers.
7852 (struct breakpoint_ops) <print_one_detail>: New method.
7853 (struct breakpoint) <addr_string_range_end>: New member variable.
7854 * breakpoint.c (breakpoint_location_address_match): Add function
7856 (insert_bp_location): Set bl->target_info.length.
7857 (breakpoint_here_p): Call breakpoint_location_address_match.
7858 (moribund_breakpoint_here_p): Likewise.
7859 (regular_breakpoint_inserted_here_p): Likewise.
7860 (breakpoint_thread_match): Likewise.
7861 (bpstat_stop_status): Likewise.
7862 (bpstat_check_location): Move call to
7863 breakpoint_ops.breakpoint_hit to the top.
7864 (print_one_breakpoint_location): Call
7865 breakpoint_ops.print_one_detail if available.
7866 (breakpoint_address_match_range): New function.
7867 (breakpoint_location_address_match): Likewise.
7868 (breakpoint_locations_match): Compare the length field of the
7870 (hw_breakpoint_used_count): Count resources used by all locations
7871 in a breakpoint, and use breakpoint_ops.resources_needed if
7873 (breakpoint_hit_ranged_breakpoint): New function.
7874 (resources_needed_ranged_breakpoint): Likewise.
7875 (print_it_ranged_breakpoint): Likewise.
7876 (print_one_ranged_breakpoint): Likewise.
7877 (print_one_detail_ranged_breakpoint): Likewise.
7878 (print_mention_ranged_breakpoint): Likewise.
7879 (print_recreate_ranged_breakpoint): Likewise.
7880 (ranged_breakpoint_ops): New structure.
7881 (find_breakpoint_range_end): New function.
7882 (break_range_command): Likewise.
7883 (delete_breakpoint): Free addr_string_range_end.
7884 (update_breakpoint_locations): Add SALS_END argument. Update
7885 all callers. Calculate breakpoint length if a non-zero SALS_END
7886 is given. Call breakpoint_locations_match instead of
7887 breakpoint_address_match.
7888 (reset_breakpoint): Find SaL of the end of the range if B is a
7890 (_initialize_breakpoint): Register break-range command.
7891 * defs.h (print_core_address): Add function prototype.
7892 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7894 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7895 (ppc_linux_remove_hw_breakpoint): Likewise.
7896 (_initialize_ppc_linux_nat): Initialize
7897 to_ranged_break_num_registers.
7898 * target.c (update_current_target): Add comment about
7899 to_ranged_break_num_registers.
7900 (target_ranged_break_num_registers): New function.
7901 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7903 (target_ranged_break_num_registers): Add function prototype.
7904 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7905 * utils.c (print_core_address): ... here.
7907 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7909 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7910 variable compiler warning.
7912 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7914 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7916 (re_set_breakpoint): ... to here ...
7917 (addr_string_to_sals): ... and here.
7919 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7921 * Makefile.in (SFILES): Add missing C sources.
7922 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7923 Add missing headers.
7925 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7927 * .gitignore: New file.
7929 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7931 * NEWS: Mention new cfi device simulation.
7933 2011-03-29 Tom Tromey <tromey@redhat.com>
7935 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7936 otherwise anonymous types.
7937 (dwarf2_name): Likewise.
7938 * valops.c (value_struct_elt_for_reference): Refine artificial
7939 type logic. Call error if j==-1.
7941 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7943 Fix false GCC warning.
7944 * infcall.c (find_function_addr): Initialize funaddr.
7946 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7948 Fix mingw compilation with --enable-targets=all.
7949 * remote-mips.c (gdb_usleep.h): Include header.
7950 (mips_enter_debug): Use gdb_usleep instead of sleep.
7952 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7954 Support resolution of STT_GNU_IFUNC via breakpoints.
7955 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7956 bp_gnu_ifunc_resolver_return.
7957 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7958 the loop. Support bp_gnu_ifunc_resolver and
7959 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7960 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7962 (bptype_string, print_one_breakpoint_location): Support
7963 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7964 (user_settable_breakpoint): Return true also for
7965 bp_gnu_ifunc_resolver.
7966 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7967 bp_gnu_ifunc_resolver_return.
7968 (set_breakpoint_location_function): New parameter explicit_loc,
7969 describe it. Call find_pc_partial_function_gnu_ifunc with new
7970 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7971 EXPLICIT_LOC is not set.
7972 (set_raw_breakpoint): Set EXPLICIT_LOC for
7973 set_breakpoint_location_function.
7974 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7975 set_breakpoint_location_function.
7976 (mention): Support bp_gnu_ifunc_resolver and
7977 bp_gnu_ifunc_resolver_return.
7978 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7979 set_breakpoint_location_function.
7980 (update_breakpoint_locations): Remove static.
7981 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7982 bp_gnu_ifunc_resolver_return.
7983 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7984 bp_gnu_ifunc_resolver_return.
7985 (update_breakpoint_locations): New declaration.
7986 * elfread.c: Include gdbthread.h and regcache.h.
7987 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7989 (elf_gnu_ifunc_fns): Install them.
7990 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7991 (stub_gnu_ifunc_resolver_return_stop): New functions.
7992 (stub_gnu_ifunc_fns): Install them.
7993 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7994 and gnu_ifunc_resolver_return_stop.
7995 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7997 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7999 STT_GNU_IFUNC reader implementation.
8000 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8001 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8002 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8003 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8004 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8005 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8006 (elf_gnu_ifunc_resolve_addr): New.
8007 (elf_symfile_read): Call elf_rel_plt_read.
8008 (elf_gnu_ifunc_fns): New.
8009 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8010 Install elf_gnu_ifunc_fns.
8011 * infcall.c (find_function_return_type): New function.
8012 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8013 * minsyms.c (stub_gnu_ifunc_resolve_addr)
8014 (stub_gnu_ifunc_resolve_name): New functions.
8015 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8016 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8017 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8019 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8021 Code cleanup for later STT_GNU_IFUNC support.
8022 * infcall.c (find_function_addr): Remove variable code, use explicit
8023 dereferences for it. Move VALUE_TYPE initialization later.
8025 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8027 GDB find_pc_partial_function support for STT_GNU_IFUNC.
8028 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8029 (clear_pc_function_cache): Clear it.
8030 (find_pc_partial_function): Rename to ...
8031 (find_pc_partial_function_gnu_ifunc): ... this function. New
8032 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
8033 (find_pc_partial_function): New wrapper for this function.
8034 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8036 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8038 GDB internal type support for STT_GNU_IFUNC.
8039 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8040 (elf_symtab_read): Set mst_text_gnu_ifunc for
8041 BSF_GNU_INDIRECT_FUNCTION.
8042 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8043 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8044 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8045 nodebug_got_plt_symbol.
8046 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8047 (TYPE_GNU_IFUNC): New.
8048 (struct main_type): New field flag_gnu_ifunc.
8049 (struct builtin_type): New field builtin_func_func.
8050 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8051 nodebug_got_plt_symbol.
8052 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8053 (in_gnu_ifunc_stub): New.
8054 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8056 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
8057 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
8058 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8060 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8061 * symtab.c (search_symbols): Likewise.
8062 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8063 and mst_slot_got_plt.
8064 (in_gnu_ifunc_stub): New declaration.
8066 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8068 Support a ring of related breakpoints.
8069 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8070 other functions, add gdb_assert.
8071 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8072 watchpoint_del_at_next_stop.
8073 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8074 (bpstat_stop_status): Handle ring in related_breakpoint.
8075 (set_raw_breakpoint_without_location): Initialize ring in
8077 (delete_breakpoint): Handle ring in related_breakpoint, use
8078 watchpoint_del_at_next_stop.
8079 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8081 2011-03-28 Tom Tromey <tromey@redhat.com>
8084 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8085 with `language_minimal'.
8087 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8089 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8090 instead of checking for STT_ARM_TFUNC symbol type.
8092 2011-03-25 Tom Tromey <tromey@redhat.com>
8094 * linespec.c (symbol_found): Restore line-based result for
8095 non-LOC_LABEL symbols.
8097 2011-03-25 Kai Tietz <ktietz@redhat.com>
8099 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8100 instead of strcmp for comparison.
8101 (tui_source_is_displayed): Likewise.
8102 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8104 2011-03-24 Mark Wielaard <mjw@redhat.com>
8106 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8108 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8109 (find_partial_die_in_comp_unit): Likewise in comment.
8110 (read_attribute_value): Likewise.
8111 (lookup_die_type): Likewise.
8112 (dwarf_form_name): Likewise.
8113 (dump_die_shallow): Likewise.
8114 (follow_die_ref_or_sig): Likewise.
8116 2011-03-24 Tom Tromey <tromey@redhat.com>
8118 PR breakpoints/11816:
8119 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8120 (decode_compound): Update.
8121 (find_function_symbol): New function.
8122 (decode_dollar): Update.
8123 (decode_label): Add 'function_symbol' parameter. Handle
8124 function-relative labels.
8125 (decode_variable): Update.
8126 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8127 not its line. Set `special_display' and canonical name for
8130 2011-03-24 Tom Tromey <tromey@redhat.com>
8132 * linespec.h (struct linespec_result) <special_display>: New
8134 * breakpoint.h (struct breakpoint) <display_canonical>: New
8136 * breakpoint.c (print_breakpoint_location): Respect
8138 (create_breakpoint_sal): Add 'display_canonical' parameter.
8139 (create_breakpoints_sal): Update.
8140 (create_breakpoint): Update.
8142 2011-03-24 Tom Tromey <tromey@redhat.com>
8144 * symtab.c (decode_line_spec): Update.
8145 * linespec.c (build_canonical_line_spec): Change type of
8147 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8148 (find_method, decode_all_digits, decode_dollar, decode_label)
8149 (symbol_found): Likewise.
8150 (init_linespec_result): New function.
8151 * breakpoint.c (struct captured_parse_breakpoint_args)
8152 <canonical_p>: New field, replaces addr_string_p.
8153 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8155 (parse_breakpoint_sals): Likewise.
8156 (do_captured_parse_breakpoint): Update.
8157 (create_breakpoint): Use struct linespec_result.
8158 (until_break_command): Update.
8159 (breakpoint_re_set_one): Update.
8160 (decode_line_spec_1): Update.
8161 * linespec.h (struct linespec_result): New.
8162 (init_linespec_result): Declare.
8164 2011-03-23 Pedro Alves <pedro@codesourcery.com>
8166 * regcache.c (regcache_raw_read): If the target didn't supply a
8167 given raw register, mark it as unavailable.
8169 2011-03-23 Kai Tietz <ktietz@redhat.com>
8171 * breakpoint.c (clear_command): Use filename_cmp
8172 instead of strcmp for comparison.
8173 * buildsym.c (watch_main_source_file_lossage): Likewise.
8174 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8175 checking just for slash.
8176 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8177 strrchr and filename_cmp instead of strcmp for filenames.
8178 (add_old_header_file): Use filename_cmp
8179 instead of strcmp for comparison.
8180 * exec.c (exec_set_section_address): Likewise.
8181 * macrotab.c (macro_lookup_inclusion): Likewise.
8182 (macro_lookup_inclusion): Likewise.
8183 * elfread.c (_initialize_elfread): Likewise.
8184 (elfstab_offset_sections): Likewise.
8185 (elfstab_offset_sections): Use lbasename instead of
8187 * mdebugread.c (parse_partial_symbols): Likewise.
8188 (arse_partial_symbols): Use filename_(n)cmp instead of
8189 str(n)cmp for comparison.
8190 * minsyms.c (lookup_minimal_symbol): Likewise.
8191 * psymtab.c (read_psymtabs_with_filename): Likewise.
8192 * solib.c (solib_read_symbols): Likewise.
8193 (reload_shared_libraries_1): Likewise.
8194 * symmisc.c (maintenance_print_symbols): Likewise.
8195 * symfile.c (separate_debug_file_exists): Likewise.
8196 (reread_symbols): Likewise.
8197 (find_separate_debug_file_by_debuglink): Likewise.
8198 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8199 * source.c (add_path): Likewise.
8200 * symtab.c (filename_seen): Likewise.
8201 (file_matches): Likewise.
8202 (print_symbol_info): Likewise.
8203 (maybe_add_partial_symtab_filename): Likewise.
8204 (make_source_files_completion_list): Likewise.
8205 * xml-syscall.c (init_sysinfo): Likewise.
8206 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8207 IS_DIR_SEPARATOR for checking for trailing path separator.
8209 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8211 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8212 label abort_expression.
8213 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8214 DWARF_VALUE_OPTIMIZED_OUT.
8216 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8219 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8220 to linkage_name. Invert its value. Update the function comment.
8221 (c_type_print_varspec_suffix): Invert it at the caller.
8222 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8224 2011-03-22 Pedro Alves <pedro@codesourcery.com>
8226 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8227 errors when reading the `stop_pc'.
8228 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8231 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8233 * NEWS: Document gdb.Write stream keyword.
8235 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8238 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8239 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8240 (dwarf2_add_field): Fix new_field->accessibility for
8241 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8243 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8247 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8248 other error classes. Do not print stack trace.
8250 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8252 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8253 (dwarf2_add_field): Fix new_field->accessibility for
8254 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8256 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8258 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8259 encountering a load via a non-SP register.
8261 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8263 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8264 field in returned unwinder.
8266 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8268 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8270 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8272 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8275 2012-03-18 Pedro Alves <pedro@codesourcery.com>
8277 * frame.c (frame_unwind_register): Throw an error if unwinding the
8279 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8280 an unwind stop reason.
8281 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8282 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8283 UNWIND_UNAVAILABLE>: New.
8284 * inline-frame.c (inline_frame_unwind): Install
8285 default_frame_unwind_stop_reason.
8286 * frame-unwind.c: Include "exceptions.h".
8287 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8288 (default_frame_unwind_stop_reason): New.
8289 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8290 (default_frame_unwind_stop_reason): Declare.
8291 (struct frame_unwind) <stop_reason>: New function pointer.
8293 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8294 * dwarf2-frame.c: Include exceptions.h.
8295 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8296 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8297 computing the CFA. If such an error was thrown, set
8298 unavailable_retaddr.
8299 (dwarf2_frame_unwind_stop_reason): New.
8300 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8302 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8303 (dwarf2_signal_frame_unwind): Ditto.
8305 * amd64-tdep.c: Include "exceptions.h".
8306 (struct amd64_frame_cache): New field "base_p".
8307 (amd64_init_frame_cache): Clear it.
8308 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8309 Avoid reading registers with functions that throw if the register
8310 is not necessary to compute the frame base.
8311 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8312 swallowing NOT_AVAILABLE_ERROR.
8313 (amd64_frame_unwind_stop_reason): New.
8314 (amd64_frame_this_id): Don't build a frame id if the frame base
8316 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8317 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8318 base_p if the frame base was computable.
8319 (amd64_sigtramp_frame_unwind_stop_reason): New.
8320 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8321 frame base was unavailable.
8322 (amd64_sigtramp_frame_unwind): Install
8323 amd64_sigtramp_frame_unwind_stop_reason.
8324 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8325 base_p if the frame base was computable.
8326 (amd64_epilogue_frame_unwind_stop_reason): New.
8327 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8328 frame base was unavailable.
8329 (amd64_epilogue_frame_unwind): Install
8330 amd64_epilogue_frame_unwind_stop_reason.
8331 * i386-tdep.c: Include "exceptions.h".
8332 (struct i386_frame_cache): New field "base_p".
8333 (i386_init_frame_cache): Clear it.
8334 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8335 Avoid reading registers with functions that throw if the register
8336 is not necessary to compute the frame base.
8337 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8338 swallowing NOT_AVAILABLE_ERROR.
8339 (i386_frame_unwind_stop_reason): New.
8340 (i386_frame_this_id): Don't build a frame id if the frame base was
8342 (i386_frame_prev_register): Handle unavailable SP.
8343 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8344 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8345 base_p if the frame base was computable.
8346 (i386_epilogue_frame_unwind_stop_reason): New.
8347 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8348 base was unavailable.
8349 (i386_epilogue_frame_unwind): Install
8350 i386_epilogue_frame_unwind_stop_reason.
8351 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8352 base_p if the frame base was computable.
8353 (i386_sigtramp_frame_unwind_stop_reason): New.
8354 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8355 base was unavailable.
8356 (i386_sigtramp_frame_unwind): Install
8357 i386_sigtramp_frame_unwind_stop_reason.
8358 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8359 type's size, not the register's.
8360 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8362 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8363 default_frame_unwind_stop_reason.
8364 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8365 (alpha_heuristic_frame_unwind): Ditto.
8366 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8367 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8368 * avr-tdep.c (avr_frame_unwind): Ditto.
8369 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8371 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8372 * frv-tdep.c (frv_frame_unwind): Ditto.
8373 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8374 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8375 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8376 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8377 (hppa_stub_frame_unwind): Ditto.
8378 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8379 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8380 (ia64_libunwind_frame_unwind)
8381 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8382 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8383 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8384 * m32c-tdep.c (m32c_unwind): Ditto.
8385 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8386 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8387 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8388 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8389 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8390 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8391 * mep-tdep.c (mep_frame_unwind): Ditto.
8392 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8393 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8394 (mips_stub_frame_unwind): Ditto.
8395 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8396 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8397 * mt-tdep.c (mt_frame_unwind): Ditto.
8398 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8399 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8400 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8401 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8402 (s390_sigtramp_frame_unwind): Ditto.
8403 * score-tdep.c (score_prologue_unwind): Ditto.
8404 * sh-tdep.c (sh_frame_unwind): Ditto.
8405 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8406 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8407 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8408 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8409 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8410 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8411 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8412 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8413 (sparc64obsd_trapframe_unwind): Ditto.
8414 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8415 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8416 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8417 * v850-tdep.c (v850_frame_unwind): Ditto.
8418 * vax-tdep.c (vax_frame_unwind): Ditto.
8419 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8420 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8421 * xtensa-tdep.c (xtensa_unwind): Ditto.
8423 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8425 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8426 there's always a frame. Use get_frame_pc_if_available instead of
8427 get_frame_pc, and if there's no PC available, don't look up a
8430 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8432 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8435 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8437 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8440 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8442 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8443 * frame.c (frame_unwind_caller_pc_if_available): New.
8444 * stack.c (frame_info): Handle unavailable PC.
8446 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8448 * frame.c (frame_unwind_pc): Rename to ...
8449 (frame_unwind_pc_if_available): ... this. New `pc' output
8450 parameter. Change return type to int. Gracefully handle
8451 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8452 happened, or 1 otherwise.
8453 (frame_unwind_pc): Reimplement on top of
8454 frame_unwind_pc_if_available.
8455 (get_frame_func): Rename to ...
8456 (get_frame_func_if_available): New `pc' output parameter. Change
8457 return type to int. Gracefully handle the PC not being available.
8458 (get_frame_func): Reimplement on top of
8459 get_frame_func_if_available.
8460 (select_frame): Handle the PC being unavailable.
8461 (get_prev_frame): Handle the PC being unavailable.
8462 (get_frame_pc_if_available): New.
8463 (get_frame_address_in_block_if_available): New.
8464 (find_frame_sal): Handle the frame PC not being available.
8465 * frame.h (get_frame_pc_if_available): Declare.
8466 (get_frame_address_in_block_if_available): Declare.
8467 (get_frame_func_if_available): Declare.
8468 * stack.c (print_frame_info): Handle the PC being unavailable.
8469 (find_frame_funname): Ditto.
8470 (print_frame): Handle the PC being unavailable.
8471 (get_frame_language): Ditto.
8472 * blockframe.c (get_frame_block): Ditto.
8473 * macroscope.c (default_macro_scope): Ditto.
8474 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8476 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8478 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8479 NOT_AVAILABLE_ERROR when evaluating the location expression.
8481 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8483 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8484 returning that the register piece is unavailable/optimized out.
8485 (write_pieced_value): Handle get_frame_register_bytes returning
8486 that the register piece is unavailable/optimized out when doing a
8487 read-modify write of a bitfield.
8488 * findvar.c (value_from_register): Handle get_frame_register_bytes
8489 returning that the register piece is unavailable/optimized out.
8490 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8491 and `unavailablep'. Throw error on bad debug info. Use
8492 frame_register instead of frame_register_read, to fill in the new
8494 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8496 * valops.c: (value_assign): Adjust, and handle
8497 get_frame_register_bytes failing.
8498 * spu-tdep.c: Include exceptions.h.
8499 (spu_software_single_step): Adjust, and handle
8500 get_frame_register_bytes failing.
8501 (spu_get_longjmp_target): Ditto.
8502 * gdbarch.sh (register_to_value): Change to return int. New
8503 parameters `optimizedp' and `unavailablep'.
8504 * gdbarch.h, gdbarch.c: Regenerate.
8505 * i386-tdep.c (i386_register_to_value): Adjust to new
8506 gdbarch_register_to_value interface.
8507 * i387-tdep.c (i387_register_to_value): Ditto.
8508 * i387-tdep.h (i387_register_to_value): Ditto.
8509 * alpha-tdep.c (alpha_register_to_value): Ditto.
8510 * ia64-tdep.c (ia64_register_to_value): Ditto.
8511 * m68k-tdep.c (m68k_register_to_value): Ditto.
8512 * mips-tdep.c (mips_register_to_value): Ditto.
8513 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8515 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8517 * findvar.c (value_of_register): Mark the value as unavailable, if
8518 the register is unavailable.
8519 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8520 (frame_register): New `unavailablep' parameter.
8521 (frame_register_read): Update comment.
8522 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8523 Set it if the register is unavailable. If the register is
8524 unavailable, clear the output buffer.
8525 (frame_register): New `unavailablep' parameter. Pass it down.
8526 (frame_unwind_register): Adjust.
8527 (put_frame_register): Adjust.
8528 (frame_register_read): Adjust. Also return false if the register
8530 (frame_register_unwind_location): Adjust.
8531 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8532 is unavailable, mark the value accordingly.
8533 * stack.c (frame_info): Handle unavailable registers.
8535 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8537 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8538 simplify, using regcache_cooked_read.
8540 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8542 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8543 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8544 (regcache_raw_read_unsigned, regcache_raw_read_part)
8545 (regcache_cooked_read, regcache_cooked_read_signed)
8546 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8547 (regcache_cooked_read_ftype): Change return to enum
8549 * regcache.c: Include exceptions.h
8550 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8551 (do_cooked_read): Change return to enum register_status. Always
8552 forward to regcache_cooked_read.
8553 (regcache_raw_read): Change return to enum register_status. If
8554 the register is not REG_VALID, memset the buffer. Return the
8556 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8557 return the register's status.
8558 (regcache_raw_read_unsigned): Ditto.
8559 (regcache_cooked_read): Change return to enum register_status.
8560 Assert that with read-only regcaches, the register's status must
8561 be known. If the regcache is read-only, and the register is not
8562 REG_VALID, memset the buffer. Return the register's status.
8563 (regcache_cooked_read_signed): Change return to enum
8564 register_status. Handle non-REG_VALID registers and return the
8566 (regcache_cooked_read_unsigned): Change return to enum
8567 register_status. Handle non-REG_VALID registers and return the
8569 (regcache_xfer_part, regcache_raw_read_part)
8570 (regcache_cooked_read_part): Change return to enum
8571 register_status. Return the register's status.
8572 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8574 (regcache_dump): Handle unavailable cooked registers.
8575 * frame.c (do_frame_register_read): Adjust interface to match
8576 regcache_cooked_read_ftype.
8577 * gdbarch.sh (pseudo_register_read): Change return to enum
8579 * gdbarch.h, gdbarch.c: Regenerate.
8581 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8583 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8584 register_status. If reading a raw register indicates the raw
8585 register is not valid, return the raw register's status,
8586 otherwise, return REG_VALID.
8587 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8588 register_status. Handle non-REG_VALID raw registers and return
8589 the register's status.
8590 * arm-tdep.c (arm_neon_quad_read)
8591 (arm_pseudo_read): Change return to enum register_status. Handle
8592 non-REG_VALID raw registers and return the register's status.
8593 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8594 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8595 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8596 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8597 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8599 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8600 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8601 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8602 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8603 (m32c_pseudo_register_read): Change return to enum
8604 register_status. Adjust.
8605 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8606 enum register_status. Return the register's status.
8607 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8608 register_status. Return the register's status.
8609 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8610 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8611 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8612 * rs6000-tdep.c (move_ev_register_func): New typedef.
8613 (e500_move_ev_register): Use it. Change return to enum
8614 register_status. Return the register's status.
8615 (do_regcache_raw_read): New function.
8616 (do_regcache_raw_write): New function.
8617 (e500_pseudo_register_read): Change return to enum
8618 register_status. Return the register's status. Use
8619 do_regcache_raw_read.
8620 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8621 (dfp_pseudo_register_read): Change return to enum register_status.
8622 Return the register's status.
8623 (vsx_pseudo_register_read): Ditto.
8624 (efpr_pseudo_register_read): Ditto.
8625 (rs6000_pseudo_register_read): Ditto.
8626 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8627 register_status. Return the register's status.
8628 * sh64-tdep.c (pseudo_register_read_portions): New function.
8629 (sh64_pseudo_register_read): Change return to enum
8630 register_status. Use pseudo_register_read_portions. Return the
8632 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8633 register_status. Return the register's status.
8634 * sh-tdep.c (pseudo_register_read_portions): New function.
8635 (sh_pseudo_register_read): Change return to enum register_status.
8636 Use pseudo_register_read_portions. Return the register's status.
8637 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8638 enum register_status. Return the register's status.
8639 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8640 * spu-tdep.c (spu_pseudo_register_read_spu)
8641 (spu_pseudo_register_read): Ditto.
8642 * xtensa-tdep.c (xtensa_register_read_masked)
8643 (xtensa_pseudo_register_read): Ditto.
8644 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8646 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8648 * python/py-value.c (valpy_getitem): Fix formatting of error function
8651 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8653 ARI fixes: Add missing internationalization markups throughout
8655 * darwin-nat-info.c: Ditto.
8658 * mi/mi-main.c: Ditto.
8660 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8662 ARI fixes: Add missing internationalization markups throughout
8665 * cp-name-parser.y: Ditto.
8668 * objc-exp.y: Ditto.
8671 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8673 ARI fixes: Messages should have no trailing new lines.
8674 * darwin-nat.c (mach_check_error): Remove trailing new line from
8675 warning function call message.
8676 * record.c (bfdcore_read): Idem for error call.
8678 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8680 * common/signals.c (target_signal_from_host): Add _ markup to error
8681 function call message.
8682 (target_signal_to_host): Add _ markup and remove trailing new line
8683 from warning call message.
8684 (target_signal_from_command): Add _ markup to error function call
8687 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8691 * python/python.c (gdbpy_write): Accept a stream argument and
8692 operate to the appropriate stream.
8693 (gdbpy_flush): Likewise.
8694 (_initialize_python): Add stream constants.
8695 (finish_python_initialization): Add GdbOutputErrorFile class.
8697 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8699 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8701 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8703 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8704 to store_signed_integer. Add debug message when relocating CALL
8705 instructions. Fix formatting of debug message.
8706 * i386-tdep.c (i386_relocate_instruction): Ditto.
8708 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8710 * target.h (struct target_ops): Remove to_lookup_symbol field.
8711 (target_lookup_symbol): Delete macro.
8712 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8713 (update_current_target, setup_target_debug): Remove handling
8714 of to_lookup_symbol target_ops field.
8715 * ada-tasks.c (get_known_tasks_addr): Remove use of
8716 target_lookup_symbol.
8717 * coffread.c (coff_symtab_read): Likewise.
8718 * dbxread.c (read_dbx_symtab): Ditto.
8720 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8723 * configure.ac: Add getthrds declaration check.
8724 * configure, config.in: Regenerate.
8725 * aix-thread.c (getthrds): Declare only if not already declared
8726 in procinfo.h. More declaration out of get_signaled_thread to
8729 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8731 * python/py-symtab.c: Populate symtab_object_methods,
8733 (stpy_is_valid): New function.
8734 (salpy_is_valid): Ditto.
8735 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8736 (sympy_is_valid): New function.
8737 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8738 (objfpy_is_valid): New function.
8739 * python/py-inferior.c: Populate inferior_object_methods.
8740 (infpy_is_valid): New function.
8741 * python/py-infthread.c: Populate thread_object_methods.
8742 (thpy_is_valid): New function.
8743 * python/py-block.c: Declare block_object_methods. Populate. Declare
8744 block_iterator_object_methods. Populate.
8745 (blpy_is_valid): New function.
8746 (blpy_iter_is_valid): Ditto.
8748 2011-03-16 Keith Seitz <keiths@redhat.com>
8750 * linespec.c (find_methods): Canonicalize NAME before looking
8752 (name_end): New function.
8753 (keep_name_info): New function.
8754 (decode_line_1): Use keep_name_info.
8755 (decode_compound): Likewise.
8756 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8757 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8760 * linespec.c (locate_first_half): Keep overload information, too.
8761 (decode_compound): Use a string to represent break characters
8763 If P points to a break character, do not increment it.
8764 For C++ and Java, keep overload information and relevant keywords.
8765 If we cannot find a symbol, search the minimal symbols.
8768 * linespec.c (decode_compound): Rename SAVED_ARG to
8770 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8772 Pass a valid block to lookup_symbol.
8773 (lookup_prefix_sym): Likewise.
8774 (find_method): Construct search name based on SYM_CLASS instead
8776 * psymtab.c (lookup_partial_symbol): Add language parameter.
8777 (lookup_symbol_aux_psymtabs): Likewise.
8778 Don't assume that the psymtab we found was the right one. Search
8779 for the desired symbol in the symtab to be certain.
8780 (psymtab_search_name): New function.
8781 (lookup_partial_symbol): Use psymtab_search_name.
8782 Add language parameter.
8783 (read_symtabs_for_function): Add language parameter and pass to
8784 lookup_partial_symbol.
8785 (find_symbol_file_from_partial): Likewise.
8787 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8790 * dwarf2read.c (noop_record_line): New function.
8791 (dwarf_decode_lines): Ignore line tables for GCd functions.
8793 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8795 Fix ARI warnings about new lines at the end of messages, which
8796 are unneeded as there is a new line added at the end of the message
8798 * darwin-nat.c (darwin_stop_inferior): Ditto.
8799 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8800 * dfp.c (decimal_to_number): Ditto.
8801 * exec.c (print_section_info): Ditto.
8802 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8803 * osdata.c (get_osdata): Ditto.
8804 * record.c (bfdcore_write): Ditto.
8805 * remote-mips.c (mips_readchar): Ditto.
8806 * remote.c (read_ptid): Ditto.
8807 * ser-mingw.c (ser_windows_raw): Ditto.
8808 * tracepoint.c (add_local_symbols): Ditto.
8809 * windows-nat.c (fake_create_process): Ditto.
8811 2011-03-16 Tom Tromey <tromey@redhat.com>
8813 * tracepoint.c (stop_tracing): Don't declare.
8814 * event-top.c (after_char_processing_hook): Add `(void)'.
8816 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8818 * NEWS: Add Parameter sub-classing description.
8820 2011-03-16 Kai Tietz <ktietz@redhat.com>
8822 * MAINTAINERS: Update my e-mail address.
8824 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8826 * MAINTAINERS: Add myself for write after approval privileges.
8828 2011-03-15 Michael Snyder <msnyder@vmware.com>
8830 * frame.c (find_frame_sal): Assert sym is not null.
8832 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8834 * objc-lang.c (selectors_info): Check strchr for null result.
8836 * stabsread.c (define_symbol): Guard against bad stabstring input.
8838 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8840 Remove trailing spaces and tabulations from pascal language
8845 p-valprint.c: Ditto.
8847 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8849 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8850 than LOW. Comment it.
8851 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8852 HIGHPC not strictly higher than LOWPC.
8854 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8856 Fix formatting of function declarations returning a pointer in
8858 * varobj.c (varobj_add_child): Ditto.
8859 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8860 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8862 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8864 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8865 for the "generic" vector ABI used with GCC 4.3 and later.
8866 (ppc64_sysv_abi_return_value): Likewise.
8868 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8870 * infcall.c (call_function_by_hand): Function return value is
8871 always a non_lval, even when using struct_return.
8873 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8875 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8876 (map_display_numbers): New.
8877 (do_delete_display): New.
8878 (undisplay_command): Use map_display_numbers.
8879 (do_enable_disable_display): New.
8880 (enable_disable_display_command): New function.
8881 (enable_display): Delete.
8882 (enable_display_command): New.
8883 (disable_display_command): Reimplement.
8884 (_initialize_printcmd): Adjust "enable display" command to use
8885 `enable_display_command' as callback.
8887 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8889 * NEWS: Add Python breakpoint 'stop' operation.
8891 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8893 * NEWS: Delete duplicate entry. Fix typo.
8895 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8897 Fix ARI warning about function names in first column.
8898 Put prototype declaration on same line as return type.
8899 * objc-exp.y: Ditto.
8901 * python/py-stopevent.h: Ditto.
8902 For long function names, split parameters to
8903 allow function name on same line as return type.
8904 * solib-pa64.c: Ditto.
8907 For long function declaration, use single line.
8908 * hppa-tdep.h: Ditto.
8909 * inferior.h: Ditto.
8911 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8913 * python/python.h: Declare gdbpy_should_stop and
8914 gdbpy_breakpoint_has_py_cond.
8915 * python/python.c: Add python.h to includes. Remove python.h from
8916 HAVE_PYTHON definition
8917 (gdbpy_should_stop): New dummy function.
8918 (gdbpy_breakpoint_has_py_cond): New dummy function.
8919 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8920 sub-classing capabilities.
8921 (gdbpy_should_stop): New function.
8922 (gdbpy_breakpoint_has_py_cond): New function.
8923 (local_setattro): New function.
8924 * breakpoint.c (condition_command): Add check for Python 'stop'
8926 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8927 operation function as part of stop/continue tests.
8929 2011-03-14 Tom Tromey <tromey@redhat.com>
8932 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8933 (needs_frame_dwarf_call): Likewise.
8935 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8937 Fix ARI warning about functions without parameters that do not
8939 * breakpoint.c (all_tracepoints): Replace () by (void).
8940 * f-exp.y (match_string_literal): Ditto.
8942 * m2-exp.y (yylex): Ditto.
8943 * mep-tdep.c (current_me_module): Ditto.
8944 (current_options): Ditto.
8945 (current_cop_data_bus_width): Ditto.
8946 (current_cr_names): Ditto.
8947 (current_cr_is_float): Ditto.
8948 (current_ccr_names): Ditto.
8949 * objc-exp.y (yylex): Ditto.
8950 * p-exp.y (yylex): Ditto.
8951 * remote.c (send_interrupt_sequence): Ditto.
8952 * tracepoint.c (current_trace_status): Ditto.
8953 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8954 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8956 2011-03-11 Michael Snyder <msnyder@vmware.com>
8958 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8959 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8960 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8961 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8962 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8964 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8965 (delete_async_event_handler): Ditto.
8967 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8969 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8971 * top.c (set_verbose): Assert showcmd was found.
8973 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8975 * xtensa-tdep.c (warning_once): Correct style issues.
8977 2011-03-11 Yao Qi <yao@codesourcery.com>
8979 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8981 2011-03-11 Andreas Schwab <schwab@redhat.com>
8983 * common/aclocal.m4: Remove.
8985 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8987 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8988 (xtensa_write_register, xtensa_read_register): Likewise.
8989 (xtensa_hextochar): Removed.
8990 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8992 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8994 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8995 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8996 (xtensa_alloc_frame_cache): Add initialization for new fields.
8997 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8998 (warning_once): New function.
8999 (xtensa_insn_kind): New item c0opc_and.
9000 (call0_classify_opcode): Add the case for AND instruction.
9001 (call0_track_op): Change arguments. New local variable litbase.
9002 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
9003 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9005 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
9006 (call0_analyze_prologue): Update the comments. Change arguments.
9007 Add the variety of updates to handle extended prologues, which now can
9008 conduct dynamic stack adjustments.
9009 (call0_frame_cache): Likewise.
9010 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9011 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9013 2011-03-10 Michael Snyder <msnyder@vmware.com>
9015 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9016 (cmd_qtframe): Ditto.
9017 (cmd_qtbuffer): Ditto.
9018 (cmd_bigqtbuffer): Ditto.
9020 2011-03-10 Tom Tromey <tromey@redhat.com>
9022 * tracepoint.c (trace_actions_command): Update.
9023 * thread.c (thread_apply_command): Update.
9024 * reverse.c (delete_bookmark_command): Update.
9025 (bookmarks_info): Update.
9026 * printcmd.c (undisplay_command): Update.
9027 * memattr.c (mem_enable_command): Update.
9028 (mem_disable_command): Update.
9029 (mem_delete_command): Update.
9030 * inferior.c (detach_inferior_command): Update.
9031 (kill_inferior_command): Update.
9032 (remove_inferior_command): Update.
9033 * cli/cli-utils.h (struct get_number_or_range_state): New.
9034 (init_number_or_range): Declare.
9035 (get_number_or_range): Update.
9036 * cli/cli-utils.c (init_number_or_range): New function.
9037 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
9039 (number_is_in_list): Update.
9040 * breakpoint.h (get_tracepoint_by_number): Update.
9041 * breakpoint.c (map_breakpoint_numbers): Update for change to
9042 get_number_or_range.
9043 (find_location_by_number): Use get_number, not
9044 get_number_or_range.
9045 (trace_pass_set_count): New function.
9046 (trace_pass_command): Update for change to get_number_or_range.
9048 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9051 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
9053 * python/py-param.c (add_setshow_generic): Add set/show callback
9054 parameters. Register Python object context.
9055 (get_show_value): New function.
9056 (get_set_value): New function.
9057 (call_doc_function): New function.
9058 (get_doc_string): Move behind get_show_value/get_set_value.
9060 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
9062 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9064 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9066 * xtensa-tdep.c (xtensa_read_register): Add comment.
9067 (xtensa_write_register): Likewise.
9068 (xtensa_hextochar): Add comment and update to match coding conventions.
9069 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9070 (execute_l32e, execute_s32e, execute_code): Update comments.
9071 (xtensa_exception_handler_t): Update to match coding conventions.
9072 (xtensa_insn_kind): Likewise.
9074 2011-03-09 Michael Snyder <msnyder@vmware.com>
9076 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9078 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9080 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9082 2011-03-09 Tom Tromey <tromey@redhat.com>
9084 * thread.c (restore_selected_frame): Handle frame_level == -1.
9085 (make_cleanup_restore_current_thread): Use
9086 get_selected_frame_if_set.
9087 * frame.h (get_selected_frame_if_set): Declare.
9088 * frame.c (get_selected_frame_if_set): New function.
9090 2011-03-09 Pedro Alves <pedro@codesourcery.com>
9092 * cli/cli-cmds.c (shell_escape): Use lbasename.
9093 * coffread.c (coff_start_symtab): Constify parameter.
9094 (complete_symtab): Constify `name' parameter.
9095 (coff_symtab_read): Constify `filestring' local.
9096 (coff_getfilename): Constify return and `result' local.
9098 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9099 * linux-fork.c (info_checkpoints_command): Use lbasename.
9100 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9101 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9102 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9103 * procfs.c (procfs_make_note_section): Use lbasename.
9104 * tui/tui-io.c (printable_part): Constity return and parameter.
9106 (print_filename): Constify parameters, and local `s'.
9107 (tui_rl_display_match_list): Constify local `temp'.
9109 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9112 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9113 Fix DWARF-3+ DW_AT_accessibility default assumption.
9114 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9115 cu->header.version >= 3.
9117 2011-03-09 Yao Qi <yao@codesourcery.com>
9119 * common/Makefile.in: Remove.
9120 * common/configure: Remove.
9121 * common/configure.ac: Remove.
9123 2011-03-09 Yao Qi <yao@codesourcery.com>
9126 2011-02-11 Yao Qi <yao@codesourcery.com>
9128 * common/Makefile.in: Add copyright header.
9130 2011-02-11 Yao Qi <yao@codesourcery.com>
9132 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9134 * configure.ac: Add common to sub dir.
9135 * configure: Regenerate.
9137 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9139 * xtensa-tdep.c (call0_ret): New function.
9140 (xtensa_skip_prologue): Speed up analysis.
9142 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9144 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9145 while executing MI command -data-list-changed-registers.
9147 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9149 * xtensa-tdep.c (xtensa_read_register): New function.
9150 (xtensa_write_register): New function.
9151 (xtensa_find_register_by_name): New function.
9152 (xtensa_windowed_frame_cache): Update comments in type description.
9153 (xtensa_frame_cache): Likewise.
9154 (xtensa_window_interrupt_insn): New function.
9155 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9156 (xtensa_insn_kind): Add new instructions.
9157 (rwx_special_register): New function.
9158 (call0_classify_opcode): Add new instructions to the analysis.
9159 (a0_saved, a7_saved, a11_saved): New variables.
9160 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9161 (execute_l32e): New function.
9162 (execute_s32e): New function.
9163 (xtensa_exception_handler_t): New type.
9164 (execute_code): New function.
9165 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9166 analysis for Xtensa Window Exception handlers.
9168 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9170 * xtensa-tdep.c (TX_PS): New.
9171 (windowing_enabled): Update to count for Call0 ABI.
9172 (xtensa_hextochar): New.
9173 (xtensa_init_reggroups): Make algorithm generic.
9174 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9176 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9178 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9180 2011-03-08 Michael Snyder <msnyder@vmware.com>
9182 * i386-tdep.c (i386_follow_jump): Check return value of
9184 (i386_analyze_struct_return): Ditto.
9185 (i386_skip_probe): Ditto.
9186 (i386_match_insn): Ditto.
9187 (i386_skip_noop): Ditto.
9188 (i386_analyze_frame_setup): Ditto.
9189 (i386_analyze_register_saves): Ditto.
9190 (i386_skip_prologue): Ditto.
9191 (i386_skip_main_prologue): Ditto.
9193 * target.c (read_whatever_is_readable): Fix memory leak.
9195 * i386-tdep.c (i386_process_record): Document fall through.
9197 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9199 Fix DWARF-3+ DW_AT_accessibility default assumption.
9200 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9201 cu->header.version >= 3.
9203 2011-03-08 Pedro Alves <pedro@codesourcery.com>
9205 * remote.c (remote_check_symbols): Skip if the target has no
9208 2011-03-08 Joel Brobecker <brobecker@adacore.com>
9210 * target.c (read_whatever_is_readable): Reformat comment,
9211 with a minor typo fix. Minor reformatting of the code.
9213 2011-03-08 Yao Qi <yao@codesourcery.com>
9215 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9216 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9217 Use cached result instead of calling displaced_in_arm_mode again.
9218 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9219 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9220 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9221 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9222 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9223 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9224 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9225 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9226 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9227 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9228 (arm_catch_kernel_helper_return): Likewise.
9229 * gdb/arm-tdep.h : Update function declarations.
9231 2011-03-07 Michael Snyder <msnyder@vmware.com>
9233 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9235 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9237 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9239 * elfread.c (elf_symtab_read): Stop memory leak.
9241 * main.c (captured_main): Fix memory leak.
9243 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9245 * ada-lang.c (compare_names): Call is_name_suffix with string1
9248 2011-03-07 Tom Tromey <tromey@redhat.com>
9250 * xcoffread.c (xcoff_sym_fns): Update.
9251 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9252 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9253 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9254 (symbol_file_add_with_addrs_or_offsets): Likewise.
9255 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9256 * somread.c (som_sym_fns): Update.
9257 * psymtab.h (require_partial_symbols): Declare.
9258 * psymtab.c (require_partial_symbols): New function.
9259 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9260 (ALL_OBJFILE_PSYMTABS): Undef.
9261 (ALL_PSYMTABS): Move from psympriv.h.
9262 (lookup_partial_symtab, find_pc_sect_psymtab)
9263 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9264 (find_last_source_symtab_from_partial)
9265 (forget_cached_source_info_partial)
9266 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9267 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9268 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9269 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9270 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9271 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9272 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9273 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9274 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9276 * mipsread.c (ecoff_sym_fns): Update.
9277 * machoread.c (macho_sym_fns): Update.
9278 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9279 (read_psyms): New function.
9280 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9281 (elf_sym_fns_lazy_psyms): New global.
9282 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9283 dwarf2_build_psymtabs.
9284 * dbxread.c (aout_sym_fns): Update.
9285 * coffread.c (coff_sym_fns): Update.
9287 2011-03-07 Tom Tromey <tromey@redhat.com>
9289 * infrun.c (print_exited_reason): Include inferior id and pid in
9292 2011-03-07 Tom Tromey <tromey@redhat.com>
9294 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9296 (target_has_execution_1): Update.
9297 (target_has_execution_current): Declare.
9298 (target_has_execution): Call target_has_execution_current.
9299 (default_child_has_execution): Update.
9300 * target.c (default_child_has_execution): Add 'the_ptid'
9302 (target_has_execution_1): Likewise.
9303 (target_has_execution_current): New function.
9304 (add_target): Update.
9305 (init_dummy_target): Update.
9306 * remote-m32r-sdi.c (m32r_has_execution): New function.
9307 (init_m32r_ops): Use it.
9308 * record.c (record_core_has_execution): Now static. Add
9309 'the_ptid' parameter.
9310 * inferior.c (have_live_inferiors): Don't save current thread.
9311 Use target_has_execution_1.
9313 2011-03-07 Yao Qi <yao@codesourcery.com>
9315 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9317 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9319 * elfread.c (elf_symtab_read): Minor reformatting.
9321 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9323 * objc-lang.c (selectors_info): Minor reformatting.
9325 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9327 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9329 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9330 Michael Snyder <msnyder@vmware.com>
9332 * ada-valprint.c (ada_val_print_array): Move the declaration of
9333 "byte_order" and "elttype" inside the block where these variables
9334 are actually used. Remove some special handling for the case
9335 where "elttype" and "eltlen" are null. Replace by a comment
9336 and a couple of assertion checks.
9338 2011-03-05 Michael Snyder <msnyder@vmware.com>
9340 * source.c (add_path): Replace semicolon at end of block.
9341 * dwarf2expr.c (execute_stack_op): Ditto.
9343 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9345 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9346 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9347 (bfin-*-*): Likewise.
9349 2011-03-05 Michael Snyder <msnyder@vmware.com>
9351 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9352 * mdebugread.c (parse_symbol): Ditto.
9353 * parse.c (parse_exp_in_context): Ditto.
9354 * source.c (add_path): Ditto.
9355 * utils.c (gnu_debuglink_crc32): Ditto.
9356 * varobj.c (variable_language): Ditto.
9358 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9360 2011-03-04 Michael Snyder <msnyder@vmware.com>
9362 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9364 * symfile.c (simple_overlay_update): Check for null return value
9365 from lookup_minimal_symbol.
9367 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9369 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9371 * eval.c (parse_and_eval_address_1): Remove function.
9372 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9373 instead of parse_and_eval_address_1.
9374 * value.h (parse_and_eval_address_1): Remove prototype.
9376 2011-03-04 Michael Snyder <msnyder@vmware.com>
9378 * remote.c (putpkt_binary): Document that case stmt falls through.
9380 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9382 * breakpointc (print_it_typical): Move NULL check from here...
9383 (print_bp_stop_message): ... to here.
9385 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9387 * breakpoint.c (enable_command): Use break instead of continue,
9388 and fill in a missing break.
9389 (disable_command): Ditto.
9391 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9393 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9394 (terminal_save_ours): Remove misleading comment.
9395 (inflow_inferior_data_cleanup): Free ttystate.
9396 (inflow_inferior_exit): Likewise.
9397 (copy_terminal_info): Copy ttystate.
9399 * serial.c (serial_copy_tty_state): New function.
9400 * serial.h (serial_copy_tty_state): Add prototype.
9401 (struct serial_ops): Add copy_tty_state callback.
9402 * ser-base.c (ser_base_copy_tty_state): New function.
9403 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9404 * ser-go32.c (dos_copy_tty_state): New function.
9405 (dos_ops): Install copy_tty_state callback.
9406 * ser-mingw.c (_initialize_ser_windows): Likewise.
9407 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9408 * ser-unix.c (hardwire_copy_tty_state): New function.
9409 (_initialize_ser_hardwire): Install it.
9411 2011-03-04 Michael Snyder <msnyder@vmware.com>
9413 * breakpoint.c (create_breakpoint): Add missing break statement.
9415 Reverting this patch:
9416 * infcall.c (call_function_by_hand): Add break statements for lint.
9418 Reverting this patch:
9419 * cli/cli-script.c (script_from_file): Add break for lint.
9421 2011-03-04 Michael Snyder <msnyder@vmware.com>
9423 * solib.c (reload_shared_libraries_1): Close memory leak.
9425 2011-03-03 Tom Tromey <tromey@redhat.com>
9428 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9431 2011-03-03 Michael Snyder <msnyder@vmware.com>
9433 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9434 fields of struct 'st' to zero.
9436 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9437 sal.pspace before calling set_current_source_symtab_and_line.
9439 2011-03-03 Yao Qi <yao@codesourcery.com>
9441 * Makefile.in (configure-common): Remove. Let Makefile
9442 in dir common to rebuild itself.
9443 (common/Makefile): Likewise.
9445 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9447 * utils.c (parse_escape): Add i18n markup in error message.
9449 2011-03-03 Yao Qi <yao@codesourcery.com>
9451 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9453 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9454 (displaced_write_reg, displaced_read_reg): Likewise.
9455 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9456 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9457 (cleanup_branch): Replace magic number 14 and 15 with
9458 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9460 2011-03-02 Michael Snyder <msnyder@vmware.com>
9462 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9464 * cli/cli-script.c (script_from_file): Add break for lint.
9466 * mdebugread.c (parse_partial_symbols): Fix indent.
9468 * target-descriptions.c (tdesc_gdb_type): No need to call
9469 xstrdup, callee saves a copy.
9471 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9473 * infcall.c (call_function_by_hand): Add break statements for lint.
9475 * utils.c (parse_escape): Escape the escape char.
9477 * python/py-inferior.c (build_inferior_list): Error out if
9478 PyList_Append fails.
9479 (gdbpy_inferiors): Error out if build_inferior_list fails.
9481 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9484 * record.c (record_restore): Move printf to before error return.
9486 2011-03-02 Yao Qi <yao@codesourcery.com>
9488 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9489 is_thumb and insn_size.
9490 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9491 on both ARM and Thumb mode.
9492 (arm_process_displaced_insn): Set is_thumb and insn_size.
9493 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9494 (arm_displaced_step_fixup): Likewise.
9496 2011-03-01 Michael Snyder <msnyder@vmware.com>
9498 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9500 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9502 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9504 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9506 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9509 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9510 which shadows function parameter.
9512 * tracepoint.c (create_tsv_from_upload): Superfluous call
9513 to xstrdup. Callee already calls xstrdup.
9515 * linespec.c (decode_line_1): Remove unnecessary null check.
9517 * tracepoint.c (scope_info): Fix mem leak, remove underused
9520 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9521 superfluous null check.
9523 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9524 (value_of_builtin_frame_fp_reg): Ditto.
9526 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9528 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9531 * linespec.c (decode_line_1): Check for null before dereference.
9533 * reverse.c (record_restore): Move null-check to before pointer
9536 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9538 * objc-lang.c (selectors_info): Add explanitory comment.
9539 (classes_info): Ditto.
9541 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9543 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9544 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9545 versions of the trampoline. Handle Thumb vs. ARM addresses.
9546 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9547 (arm_linux_init_abi): Install it.
9548 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9549 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9551 2011-02-28 Michael Snyder <msnyder@vmware.com>
9553 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9554 a little bigger, to avoid possibility of an overflow.
9556 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9557 buffers a little bigger, to avoid possibility of an overflow.
9559 * coffread.c (coff_getfilename): Add check to avoid overflow.
9561 * objc-lang.c (selectors_info): Add a small safety margin to
9563 (classes_info): Error out on too long REGEXP.
9565 * infrun.c (handle_inferior_event): Remove unused function call.
9567 * fork-child.c (fork_inferior): Remove ifdef'd code and
9570 * linux-thread-db.c (attach_thread): Discard unused value.
9572 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9574 * remote.c (remote_get_noisy_reply): Discard unused value.
9575 (remote_vcont_resume): Ditto.
9576 (remote_stop_ns): Ditto.
9578 * linespec.c (decode_objc): Delete unused variable.
9580 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9582 * dwarf2read.c (add_partial_symbol): Discard unused values.
9583 (read_base_type): Delete unused variable.
9585 * dbxread.c (read_dbx_symtab): Discard unused value.
9587 * eval.c (evaluate_subexp_standard): Delete unused variable,
9588 and discard unused values.
9590 * infcmd.c (_initialize_infcmd): Discard unused values.
9592 * stabsread.c (rs6000_builtin_type): Missing break statement.
9594 * dbxread.c (process_one_symbol): Discard unused value.
9596 * coffread.c (coff_end_symtab): Delete unused variable.
9598 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9599 (dwarf2_add_typedef): Delete unused variable.
9600 (read_namespace): Ditto.
9601 (dwarf_decode_macros): Ditto.
9603 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9605 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9607 * p-valprint.c (pascal_val_print): Discard unused value.
9609 * utils.c (nquery): Call va_end before return;
9613 * proc-service.c (ps_plog): Call va_end before return.
9615 2011-02-28 Tom Tromey <tromey@redhat.com>
9617 * python/python.c (gdbpy_value_cst): New global.
9618 (_initialize_python): Initialize it.
9619 * python/python-internal.h (gdbpy_value_cst): Declare.
9620 * python/py-value.c (convert_value_from_python): Use
9623 2011-02-28 Michael Snyder <msnyder@vmware.com>
9625 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9627 * breakpoint.c (catch_syscall_completer): Free malloced list.
9629 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9631 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9632 (lval_func_check_synthetic_pointer): Ditto.
9633 (lval_func_free_closure): Fix use-after-free.
9635 2011-02-28 Tom Tromey <tromey@redhat.com>
9637 * psymtab.c (expand_partial_symbol_tables): Use
9638 ALL_OBJFILE_PSYMTABS.
9640 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9642 * objc-lang.c (selectors_info): Error on too long REGEXP.
9644 2011-02-28 Michael Snyder <msnyder@vmware.com>
9646 * python/py-param.c (set_parameter_value): Add missing
9649 * linux-record.c (record_linux_system_call): Add missing
9652 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9654 * breakpoint.c (print_one_breakpoint_location): Remove unused
9655 argument PRINT_ADDRESS_BITS. Update callers.
9656 (print_one_breakpoint): Likewise.
9658 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9660 * breakpoint.c (wrap_indent_at_field): New function.
9661 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9662 Allocate ui_stream locally instead of using STB argument.
9663 (print_one_breakpoint_location): Update call.
9664 * ui-out.c (ui_out_query_field): New function.
9665 * ui-out.h (ui_out_query_field): Add prototype.
9667 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9669 From Michael Snyder <msnyder@vmware.com>
9670 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9672 2011-02-27 Michael Snyder <msnyder@vmware.com>
9674 * objc-lang.c (selectors_info): Prevent string overrun.
9676 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9679 * symtab.c (rbreak_command): Move variable 'file_name' to
9682 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9683 param with a local variable of the same name.
9685 2011-02-27 Michael Snyder <msnyder@vmware.com>
9687 * value.c (value_from_history_ref): New function.
9688 * value.h (value_from_history_ref): Export.
9689 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9690 to parse value history references.
9691 * cli/cli-utils.h (get_number_trailer): Update comment.
9693 2011-02-27 Michael Snyder <msnyder@vmware.com>
9695 * inferior.c (detach_inferior_command): Use get_number_or_range.
9696 (kill_inferior_command): Ditto.
9697 (remove_inferior_command): Ditto.
9698 (initialize_inferiors): Make command names plural.
9699 Update help strings.
9701 2011-02-27 Michael Snyder <msnyder@vmware.com>
9703 * darwin-nat-info.c: Fix comment typo.
9704 * dwarf2expr.h: Ditto.
9705 * fbsd-nat.c: Ditto.
9706 * fbsd-nat.h: Ditto.
9707 * frame-unwind.h: Ditto.
9709 * hppa-hpux-tdep.c: Ditto.
9710 * i386-linux-nat.c: Ditto.
9711 * linux-nat.c: Ditto.
9712 * nbsd-nat.c: Ditto.
9713 * nbsd-nat.h: Ditto.
9714 * ppc-linux-tdep.c: Ditto.
9717 * tui/tui-winsource.c: Ditto.
9719 2011-02-26 Michael Snyder <msnyder@vmware.com>
9721 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9723 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9725 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9726 with a local variable of the same name.
9728 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9729 param with a local variable of the same name.
9730 (i387_supply_xsave): Ditto.
9732 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9733 that it does not shadow a function parameter.
9735 * i386-nat.c (i386_length_and_rw_bits): Document that case
9736 statement is meant to fall through.
9738 * expprint.c (dump_subexp_body_standard): Document that case
9739 statement is meant to fall through.
9741 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9742 dead if statement. Condition can't be false.
9744 2011-02-25 Michael Snyder <msnyder@vmware.com>
9746 * arm-tdep.c: Fix typos in comments.
9747 * bsd-uthread.c: Ditto.
9748 * completer.c: Ditto.
9750 * cp-namespace.c: Ditto.
9751 * cp-support.c: Ditto.
9752 * cris-tdep.c: Ditto.
9754 * dwarf2read.c: Ditto.
9756 * gdbtypes.h: Ditto.
9757 * inferior.h: Ditto.
9758 * mdebugread.c: Ditto.
9759 * mips-tdep.c: Ditto.
9760 * ppc-linux-nat.c: Ditto.
9761 * ppc-linux-tdep.c: Ditto.
9762 * printcmd.c: Ditto.
9763 * sol-thread.c: Ditto.
9764 * solib-frv.c: Ditto.
9766 * sparc64-tdep.c: Ditto.
9767 * spu-tdep.c: Ditto.
9768 * stabsread.c: Ditto.
9773 * python/py-block.c: Ditto.
9774 * python/py-symbol.c: Ditto.
9775 * python/py-symtab.c: Ditto.
9776 * python/py-value.c: Ditto.
9777 * tui/tui-win.c: Ditto.
9779 2011-02-25 Michael Snyder <msnyder@vmware.com>
9781 * inferior.c (print_inferior): Accept a string instead of an int
9782 for requested_inferiors, and use get_number_or_range to parse it.
9783 (info_inferiors_command): Pass args string to print_inferior.
9784 (initialize_inferiors): Change help string for info inferiors.
9785 * inferior.h (print_inferior): Export prototype change.
9787 2011-02-25 Tom Tromey <tromey@redhat.com>
9789 * common/ax.def (invalid2): Set to 0x31.
9791 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9793 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9795 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9797 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9799 2011-02-24 Michael Snyder <msnyder@vmware.com>
9801 * Makefile.in (clean): Make clean should remove generated files
9802 observer.h and observer.inc.
9804 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9806 Revert the following patch (not approved yet):
9807 2011-02-21 Hui Zhu <teawater@gmail.com>
9808 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9809 * ax-gdb.c (gen_printf_expr_callback): New function.
9810 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9811 * ax-general.c (ax_memcpy): New function.
9812 (ax_print): Handle "printf".
9814 * ax.h (ax_memcpy): Forward declare.
9815 * common/ax.def (invalid2): Removed.
9816 (printf): New entry.
9817 * printcmd.c (printcmd.h): New include.
9818 (string_printf): New function.
9819 (ui_printf): Removed.
9820 (printf_command): Remove static. Call string_printf.
9821 (eval_command): Call string_printf.
9822 * printcmd.h: New file.
9823 * tracepoint.c (validate_actionline,
9824 encode_actions_1): handle printf_command.
9826 2011-02-23 Tom Tromey <tromey@redhat.com>
9828 * ax-general.c (ax_pick): Add missing newline.
9830 2011-02-23 Michael Snyder <msnyder@vmware.com>
9832 * breakpoint.c (breakpoint_1): Change first argument from an int
9833 to a char pointer, so that the function now accepts a list of
9834 breakpoints rather than just one. Use new function
9835 'number_is_in_list' to implement.
9836 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9837 (watchpoints_info): Ditto.
9838 (tracepoints_info): Ditto.
9839 (maintenance_info_breakpoints): Ditto.
9840 (_initialize_breakpoint): Update help strings to reflect the fact
9841 that these functions can now take more than one argument.
9842 * cli/cli-utils.c (number_is_in_list): New function.
9843 * cli/cli-utils.h (number_is_in_list): Export.
9845 2011-02-23 Michael Snyder <msnyder@vmware.com>
9847 * memattr.c (mem_enable_command): Use get_number_or_range.
9848 (mem_disable_command): Ditto.
9849 (mem_delete_command): Ditto.
9850 (_initialize_mem): Tweak usage message to reflect multiple
9853 2011-02-22 Doug Evans <dje@google.com>
9855 Add gdb.lookup_global_symbol python function.
9857 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9858 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9859 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9861 2011-02-22 Tom Tromey <tromey@redhat.com>
9863 * language.c (language_class_name_from_physname): Rename
9864 'curr_language' argument to 'lang'; use in body.
9866 2011-02-22 Michael Snyder <msnyder@vmware.com>
9868 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9870 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9872 * frame-unwind.h: Fix comment to mention the this frame, not the
9875 2011-02-22 Tom Tromey <tromey@redhat.com>
9877 * symfile.c (auto_solib_limit): Remove.
9878 * symfile.h (auto_solib_limit): Remove.
9880 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9882 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9884 2011-02-21 Michael Snyder <msnyder@vmware.com>
9886 * gdbthread.h (print_thread_info): Change prototype.
9887 * thread.c (print_thread_info): Accept char* instead of int for
9888 requested_threads argument. Use new function number_is_in_list
9889 to determine which threads to list.
9890 (info_threads_command): Pass char* to print_thread_info.
9891 * cli/cli-utils.c (number_is_in_list): New function.
9892 * cli/cli-utils.h (number_is_in_list): Export.
9893 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9895 (print_one_inferior): Ditto.
9896 (mi_cmd_list_thread_groups): Ditto.
9898 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9900 * common/Makefile.in (CFLAGS): New.
9901 (COMPILE): Add $(CFLAGS).
9903 2011-02-21 Tom Tromey <tromey@redhat.com>
9905 * breakpoint.c (catch_syscall_command_1): Fix typo.
9907 2011-02-21 Tom Tromey <tromey@redhat.com>
9909 * reverse.c: Include cli-utils.h.
9910 * printcmd.c: Include cli-utils.h.
9911 (string_printf): Use skip_spaces.
9912 * cli/cli-utils.h: New file.
9913 * cli/cli-utils.c: New file.
9914 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9915 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9916 * breakpoint.h (get_number, get_number_or_range): Move to
9918 * breakpoint.c: Include cli-utils.h.
9919 (get_number_trailer, get_number, get_number_or_range)
9920 (ep_skip_leading_whitespace): Move to cli-utils.c.
9921 (create_breakpoint_sal, find_condition_and_thread)
9922 (decode_static_tracepoint_spec, watch_command_1)
9923 (watch_maybe_just_location, ep_parse_optional_if_clause)
9924 (catch_fork_command_1, catch_exec_command_1)
9925 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9926 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9927 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9928 (HFILES_NO_SRCDIR): Add cli-utils.h.
9929 (cli-utils.o): New target.
9931 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9933 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9934 before calling discard_all_inferiors.
9936 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9938 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9939 (struct builtin_opencl_type): Remove.
9940 (builtin_opencl_type): Change return type to "struct type **".
9941 (lookup_opencl_vector_type): Update caller.
9942 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9943 (build_opencl_types): Install plain array of "struct type *"
9944 instead of "struct builtin_opencl_type".
9946 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9947 Ulrich Weigand <uweigand@de.ibm.com>
9949 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9950 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9951 (struct arm_linux_hwbp_cap): New type.
9952 (arm_linux_get_hwbp_cap): New function.
9953 (arm_linux_get_hw_breakpoint_count): Likewise.
9954 (arm_linux_get_hw_watchpoint_count): Likewise.
9955 (arm_linux_can_use_hw_breakpoint): Likewise.
9956 (arm_hwbp_type): New type.
9957 (arm_hwbp_control_t): Likewise.
9958 (struct arm_linux_hw_breakpoint): Likewise.
9959 (struct arm_linux_thread_points): Likewise.
9960 (arm_threads): New global variable.
9961 (arm_linux_find_breakpoints_by_tid): New function.
9962 (arm_hwbp_control_initialize): Likewise.
9963 (arm_hwbp_control_is_enabled): Likewise.
9964 (arm_hwbp_control_disable): Likewise.
9965 (arm_linux_hw_breakpoint_initialize): Likewise.
9966 (arm_linux_get_hwbp_type): Likewise.
9967 (arm_linux_hw_watchpoint_initialize): Likewise.
9968 (arm_linux_hw_breakpoint_equal): Likewise.
9969 (arm_linux_insert_hw_breakpoint1): Likewise.
9970 (arm_linux_remove_hw_breakpoint1): Likewise.
9971 (arm_linux_insert_hw_breakpoint): Likewise.
9972 (arm_linux_remove_hw_breakpoint): Likewise.
9973 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9974 (arm_linux_insert_watchpoint): Likewise.
9975 (arm_linux_remove_watchpoint): Likewise.
9976 (arm_linux_stopped_data_address): Likewise.
9977 (arm_linux_stopped_by_watchpoint): Likewise.
9978 (arm_linux_watchpoint_addr_within_range): Likewise.
9979 (arm_linux_new_thread): Likewise.
9980 (arm_linux_thread_exit): Likewise.
9981 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9982 related target callbacks. Register arm_linux_new_thread and
9983 arm_linux_thread_exit.
9984 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9985 * arm-tdep.c (arm_pc_is_thumb): Make global.
9986 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9988 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9990 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9991 per-frame locations while within a function epilogue.
9993 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9995 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9996 to GNU coding standards.
9998 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10000 Allow use of mingw native on Windows 95 OS.
10001 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
10002 (ser_windows_close): Only call CancelIo if function exists.
10003 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10004 to check for existence of CancelIo function in kernel32 DLL.
10006 2011-02-21 Hui Zhu <teawater@gmail.com>
10008 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10009 * ax-gdb.c (gen_printf_expr_callback): New function.
10010 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10011 * ax-general.c (ax_memcpy): New function.
10012 (ax_print): Handle "printf".
10014 * ax.h (ax_memcpy): Forward declare.
10015 * common/ax.def (invalid2): Removed.
10016 (printf): New entry.
10017 * printcmd.c (printcmd.h): New include.
10018 (string_printf): New function.
10019 (ui_printf): Removed.
10020 (printf_command): Remove static. Call string_printf.
10021 (eval_command): Call string_printf.
10022 * printcmd.h: New file.
10023 * tracepoint.c (validate_actionline,
10024 encode_actions_1): handle printf_command.
10026 2011-02-19 Michael Snyder <msnyder@vmware.com>
10028 * reverse.c (delete_one_bookmark): Argument is now bookmark
10029 id rather than pointer to bookmark struct.
10030 (delete_bookmark_command): Use get_number_or_range.
10031 (goto_bookmark_command): Parse with get_number instead of strtoul.
10032 (bookmark_1): New function. Print info for one bookmark.
10033 (bookmarks_info): Use get_number_or_range and bookmark_1.
10035 2011-02-18 Michael Snyder <msnyder@vmware.com>
10037 * thread.c (info_threads_command): Re-implement using
10038 get_number_or_range.
10039 (thread_apply_command): Ditto.
10041 2011-02-18 Tom Tromey <tromey@redhat.com>
10043 * common/ax.def: New file.
10044 * ax.h (enum agent_op): Use ax.def.
10045 * ax-general.c (aop_map): Use ax.def.
10047 2011-02-18 Tom Tromey <tromey@redhat.com>
10049 * ax-general.c (aop_map): Add pick and rot.
10050 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10051 <DW_OP_rot>: Implement.
10052 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10053 (ax_pick): Declare.
10054 * ax-general.c (ax_pick): New function.
10056 2011-02-18 Tom Tromey <tromey@redhat.com>
10058 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10060 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10061 Tom Tromey <tromey@redhat.com>
10063 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10064 make_symbol_overload_list_block with NULL BLOCK.
10065 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10067 2011-02-18 Pedro Alves <pedro@codesourcery.com>
10069 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10070 * breakpoint.h (get_number_or_range): Declare.
10071 * printcmd.c (ALL_DISPLAYS): Declare.
10072 (delete_display): Reimplement taking a display pointer.
10073 (undisplay_command): Accept a range of displays to delete, using
10074 get_number_or_range.
10076 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10078 * c-valprint.c (c_val_print): Add embedded_offset to address
10079 for arrays of unspecified length.
10080 * p-valprint.c (pascal_val_print): Likewise.
10082 2011-02-18 Yao Qi <yao@codesourcery.com>
10084 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10085 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10086 (thumb_process_displaced_insn): New.
10087 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10088 call to arm_process_displaced_insn.
10089 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10091 2011-02-17 Tom Tromey <tromey@redhat.com>
10093 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10094 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10095 compile_dwarf_to_ax. No longer static. Call
10096 dwarf2_compile_cfa_to_ax.
10097 (locexpr_tracepoint_var_ref): Update.
10098 (loclist_tracepoint_var_ref): Update.
10099 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10100 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10101 argument; add 'gdbarch' and 'pc'.
10102 (dwarf2_compile_cfa_to_ax): New function.
10103 (dwarf2_frame_cache): Update.
10105 2011-02-17 Joel Brobecker <brobecker@adacore.com>
10107 * ada-lang.c (ada_type_of_array): Fix the size of the array
10108 in the case of an unconstrained packed array.
10110 2011-02-17 Yao Qi <yao@codesourcery.com>
10112 * common/Makefile.in: Add more targets for make.
10114 2011-02-16 Tom Tromey <tromey@redhat.com>
10116 * dwarf2loc.c (unimplemented): Fix typo.
10118 2011-02-16 Tom Tromey <tromey@redhat.com>
10120 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10121 (compile_dwarf_to_ax) <default>: Use unimplemented.
10122 <DW_OP_deref>: Update.
10123 (disassemble_dwarf_expression): Update.
10124 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10125 (decode_locdesc): Update.
10126 * dwarf2expr.h (dwarf_stack_op_name): Update.
10128 2011-02-16 Tom Tromey <tromey@redhat.com>
10130 * ax.h (struct aop_map) <name>: Now const.
10132 2011-02-16 Tom Tromey <tromey@redhat.com>
10134 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10137 2011-02-16 Yao Qi <yao@codesourcery.com>
10139 * infrun.c (get_displaced_step_closure_by_addr): New.
10140 * inferior.h: Declare it.
10141 * arm-tdep.c: (arm_pc_is_thumb): Call
10142 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10145 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10146 Jan Kratochvil <jan.kratochvil@redhat.com>
10149 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10151 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10152 Jan Kratochvil <jan.kratochvil@redhat.com>
10154 * value.c (value_contents_copy_raw): Extend describing comment.
10155 Assert that the destination contents we're overwriting are wholly
10157 (value_contents_copy): Extend describing comment.
10159 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10160 Jan Kratochvil <jan.kratochvil@redhat.com>
10162 * value.c (value_available_contents_eq): Remove redundant local
10163 variables. Fix available contents comparision.
10164 * value.h (value_available_contents_eq): Extend describing
10167 2011-02-16 Yao Qi <yao@codesourcery.com>
10169 * thread.c (info_threads_command): Add missing i18n markup and remove
10172 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10174 * breakpoint.c (longjmp_names): New variable.
10175 (struct breakpoint_objfile_data): New type.
10176 (breakpoint_objfile_key): New variable.
10177 (msym_not_found): New variable.
10178 (msym_not_found_p): New predicate.
10179 (get_breakpoint_objfile_data): New function.
10180 (create_overlay_event_breakpoint): Check per-objfile cache for
10182 (create_longjmp_master_breakpoint): Likewise.
10183 (create_std_terminate_master_breakpoint): Likewise.
10184 (create_exception_master_breakpoint): Likewise.
10185 (_initialize_breakpoint): Register per-objfile data key.
10187 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10189 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10191 (create_longjmp_master_breakpoint): Loop over longjmp names.
10192 (create_std_terminate_master_breakpoint): Const-propagate parameter
10194 (update_breakpoints_after_exec): Adjust.
10195 (breakpoint_re_set): Adjust.
10197 2011-02-15 Michael Snyder <msnyder@vmware.com>
10199 * thread.c (info_threads_command): Process arg as thread id,
10200 or list of thread ids.
10201 (thread_find_command): New command.
10202 (_initialize_thread): Document argument for info threads.
10203 Document 'thread find' command.
10204 * NEWS: Document new command "thread find".
10206 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10208 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10209 * aclocal.m4: Regenerated with aclocal-1.11.1.
10210 * common/configure: Regenerate with autoconf-2.64.
10212 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
10214 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10215 bool data type to a size of one byte.
10217 2011-02-15 Pedro Alves <pedro@codesourcery.com>
10218 Jan Kratochvil <jan.kratochvil@redhat.com>
10220 * target.c (memory_xfer_live_readonly_partial): Document where to
10221 look for interface description.
10223 2011-02-15 Yao Qi <yao@codesourcery.com>
10226 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10227 order to store PC value on stack instead of text section.
10229 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10231 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10232 the EFP register set size.
10233 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10234 data from the VMX register.
10235 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10236 and write data from/to the VMX register.
10238 2011-02-14 Michael Snyder <msnyder@vmware.com>
10240 * command.h (enum command_class): New class 'no_set_class', for
10241 "show" commands without a corresponding "set" command.
10242 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10243 * copying.c (_initialize_copying): Ditto for "show copying" and
10245 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10247 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10248 which there is no corresponding "set" command (eg. "show copying").
10250 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10251 Jan Kratochvil <jan.kratochvil@redhat.com>
10253 * exec.c (section_table_available_memory): Change `len' parameter
10255 * exec.h (section_table_available_memory): Ditto.
10256 * value.h (read_value_memory): Rename the `offset' parameter to
10259 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10260 Jan Kratochvil <jan.kratochvil@redhat.com>
10262 * memrange.c (compare_mem_ranges): Mention sort order in
10263 describing comment.
10264 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10265 * tracepoint.c (traceframe_available_memory): Extend comment to
10266 mention what happens to RESULT when the target does not support
10269 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10270 Jan Kratochvil <jan.kratochvil@redhat.com>
10272 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10275 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10277 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10278 No longer handle NULL values.
10280 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10282 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10283 * value.c: Include "exceptions.h".
10284 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10286 * cp-abi.c: Include gdb_assert.h.
10287 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10288 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10290 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10291 parameters. No longer returns -1 on error.
10292 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10294 * cp-valprint.c: Include exceptions.h.
10295 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10296 the baseclass_offset. Handle unavailable base classes. Use
10297 val_print_invalid_address.
10298 * p-valprint.c: Include exceptions.h.
10299 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10300 when fetching the baseclass_offset. No longer expect
10301 baseclass_offset returning -1. Handle unavailable base classes.
10302 Use val_print_invalid_address.
10303 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10304 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10305 `embedded_offset' and `val' parameters. Adjust.
10306 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10307 parameter, and change its type to gdb_byte pointer. Add
10308 `embedded_offset' and `val' parameters. Adjust. No longer expect
10309 baseclass_offset returning -1.
10310 (value_dynamic_cast): Use value_contents_for_printing rather than
10311 value_contents. Adjust.
10312 (search_struct_field): No longer expect baseclass_offset returning
10314 (search_struct_method): If reading memory from the target is
10315 necessary, wrap it in a new value to pass to baseclass_offset. No
10316 longer expect baseclass_offset returning -1.
10317 (find_method_list): No longer expect baseclass_offset returning
10318 -1. Use value_contents_for_printing rather than value_contents.
10319 * valprint.c (val_print_invalid_address): New function.
10320 * valprint.h (val_print_invalid_address): Declare.
10321 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10322 and `val' parameters. No longer expect baseclass_offset returning
10324 * gnu-v2-abi.c: Include "exceptions.h".
10325 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10326 parameters. Handle unavailable memory. Recurse through
10327 gnuv2_baseclass_offset directly, rather than through
10328 baseclass_offset. No longer returns -1 on not found, instead
10330 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10331 `val' parameters. Adjust.
10333 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10335 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10336 almost but not quite adjacent.
10338 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10340 * value.h (value_entirely_available): Declare.
10341 * value.c (value_entirely_available): New function.
10342 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10343 real type if the pointer is unavailable.
10345 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10347 * valops.c (value_repeat): Use read_value_memory instead of
10350 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10352 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10353 * value.c (value_contents_copy_raw, value_contents_copy): New
10355 (value_primitive_field): Use value_contents_copy_raw instead of
10357 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10359 (value_array, value_slice): Ditto.
10360 * valarith.c (value_subscripted_rvalue): Use
10361 value_contents_copy_raw instead of memcpy.
10363 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10365 <unavailable> references.
10367 * valops.c (get_value_at): Use value_from_contents_and_address,
10368 avoiding read_memory.
10370 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10372 * c-valprint.c (c_val_print): Print a string with unavailable
10373 contents as an array.
10375 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10377 * value.h (unpack_bits_as_long): Delete declaration.
10378 (unpack_value_bits_as_long): Declare.
10379 (unpack_value_field_as_long): Declare.
10380 (value_field_bitfield): Declare.
10381 * value.c (unpack_bits_as_long): Rename to...
10382 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10383 value parameters. Return the extracted result in a new output
10384 parameter. If the value contents are unavailable, return false,
10385 otherwise return true.
10386 (unpack_value_bits_as_long): New.
10387 (unpack_field_as_long): Rename to...
10388 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10389 Add embedded_offset and value parameters. Return the extracted
10390 result in a new output parameter. If the value contents are
10391 unavailable, return false, otherwise return true.
10392 (unpack_value_field_as_long): New.
10393 (unpack_field_as_long_1): New.
10394 (unpack_field_as_long): Reimplement as wrapper around
10395 unpack_value_field_as_long_1.
10396 (value_field_bitfield): New function.
10397 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10398 unpack_value_bits_as_long. Mark the value as unavailable, if it
10400 * jv-valprint.c (java_print_value_fields): Use
10401 value_field_bitfield.
10402 * p-valprint.c (pascal_object_print_value_fields): Use
10403 value_field_bitfield.
10404 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10406 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10408 * value.c (get_internalvar_integer): Also return the int value of
10409 TYPE_CODE_INT INTERNALVAR_VALUE values.
10410 (set_internalvar): Don't special case TYPE_CODE_INT.
10412 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10414 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10415 INTERNALVAR_POINTER.
10417 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10418 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10419 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10421 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10423 * value.h (value_available_contents_eq): Declare.
10424 * value.c (find_first_range_overlap): New function.
10425 (value_available_contents_eq): New function.
10426 * valprint.c (val_print_array_elements): Use
10427 value_available_contents_eq.
10428 * ada-valprint.c (val_print_packed_array_elements): Use
10429 value_available_contents_eq.
10430 * jv-valprint.c (java_value_print): Use
10431 value_available_contents_eq.
10433 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10435 * target.c (target_read_live_memory): New function.
10436 (memory_xfer_live_readonly_partial): New.
10437 (memory_xfer_partial): If reading from a traceframe, fallback to
10438 reading unavailable read-only memory from read-only regions of
10439 live target memory.
10440 * tracepoint.c (disconnect_tracing): Adjust.
10441 (set_current_traceframe): New, factored out from
10442 set_traceframe_number.
10443 (set_traceframe_number): Reimplement to only change the traceframe
10444 number on the GDB side.
10445 (do_restore_current_traceframe_cleanup): Adjust.
10446 (make_cleanup_restore_traceframe_number): New.
10447 (cur_traceframe_number): New global.
10448 (tfile_open): Set cur_traceframe_number to no traceframe.
10449 (set_tfile_traceframe): New function.
10450 (tfile_trace_find): If looking up a traceframe using any method
10451 other than by number, make sure the current tfile traceframe
10452 matches gdb's current traceframe. Update the current tfile
10453 traceframe if the lookup succeeded.
10454 (tfile_fetch_registers, tfile_xfer_partial)
10455 (tfile_get_trace_state_variable_value): Make sure the remote
10456 traceframe matches gdb's current traceframe.
10457 * remote.c (remote_traceframe_number): New global.
10458 (remote_open_1): Set it to -1.
10459 (set_remote_traceframe): New function.
10460 (remote_fetch_registers, remote_store_registers)
10461 (remote_xfer_memory, remote_xfer_partial)
10462 (remote_get_trace_state_variable_value): Make sure the remote
10463 traceframe matches gdb's current traceframe.
10464 (remote_trace_find): If looking up a traceframe using any method
10465 other than by number, make sure the current remote traceframe
10466 matches gdb's current traceframe. Update the current remote
10467 traceframe if the lookup succeeded.
10468 * infrun.c (fetch_inferior_event): Adjust.
10469 * tracepoint.h (set_current_traceframe): Declare.
10470 (get_traceframe_number, set_traceframe_number): Add describing
10473 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10475 Mark pieces of values as unavailable if the corresponding memory
10478 * valops.c: Include tracepoint.h.
10479 (value_fetch_lazy): Use read_value_memory.
10480 (read_value_memory): New.
10481 * value.h (read_value_memory): Declare.
10482 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10483 * exec.c (section_table_available_memory): New function.
10484 * exec.h (section_table_available_memory): Declare.
10486 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10488 * Makefile.in (SFILES): Add memrange.c.
10489 (HFILES_NO_SRCDIR): Add memrange.h.
10490 (COMMON_OBS): Add memrange.o.
10491 * memrange.c: New file.
10492 * memrange.h: New file.
10493 * tracepoint.c: Include memrange.h.
10494 (struct mem_range): Delete.
10495 (mem_range_s): Delete.
10496 (traceframe_available_memory): New function.
10497 * tracepoint.h (traceframe_available_memory): Declare.
10499 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10501 * target.h (struct traceframe_info): Forward declare.
10502 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10503 (struct target_ops) <to_traceframe_info>: New field.
10504 (target_traceframe_info): New.
10505 * target.c (update_current_target): Inherit and default
10506 to_traceframe_info.
10507 * remote.c (PACKET_qXfer_traceframe_info): New.
10508 (remote_protocol_features): Register qXfer:traceframe-info:read.
10509 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10510 (remote_traceframe_info): New.
10511 (init_remote_ops): Install it.
10512 (_initialize_remote): Install "set/show remote traceframe-info"
10514 * tracepoint.h (parse_traceframe_info): Declare.
10515 * tracepoint.c (struct mem_range): New.
10516 (mem_range_s): New typedef.
10517 (struct traceframe_info): New.
10518 (traceframe_info): New global.
10519 (free_traceframe_info): New function.
10520 (clear_traceframe_info): New function.
10521 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10523 (build_traceframe_info): New function.
10524 (tfile_traceframe_info): New function.
10525 (init_tfile_ops): Install tfile_traceframe_info.
10526 (traceframe_info_start_memory, free_result): New functions.
10527 (memory_attributes, traceframe_info_elements): New globals.
10528 (parse_traceframe_info, get_traceframe_info): New functions.
10529 * features/traceframe-info.dtd: New file.
10530 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10532 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10534 Base support for <unavailable> value contents.
10536 * value.h (value_bytes_available): Declare.
10537 (mark_value_bytes_unavailable): Declare.
10538 * value.c (struct range): New struct.
10539 (range_s): New typedef.
10540 (ranges_overlap): New function.
10541 (range_lessthan): New function.
10542 (ranges_contain_p): New function.
10543 (struct value) <unavailable>: New field.
10544 (value_bytes_available): New function.
10545 (mark_value_bytes_unavailable): New function.
10546 (require_not_optimized_out): Constify parameter.
10547 (require_available): New function.
10548 (value_contents_all, value_contents): Require all bytes be
10550 (value_free): Free `unavailable'.
10551 (value_copy): Copy `unavailable'.
10552 * valprint.h (val_print_unavailable): Declare.
10553 * valprint.c (valprint_check_validity): Rename `offset' parameter
10554 to `embedded_offset'. If printing a scalar, check whether the
10555 value chunk is available.
10556 (val_print_unavailable): New.
10557 (val_print_scalar_formatted): Check whether the value is
10559 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10560 pretty-printing unavailable values.
10562 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10564 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10565 * c-typeprint.c (c_type_print_args): Update the function comment. New
10566 variable param_type, initialize it. Remove const/volatile qualifiers
10567 for language_cplus and !show_artificial. Use param_type.
10569 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10571 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10572 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10573 * symtab.h (struct symtab) <next>: Comment extension.
10575 2011-02-12 Yao Qi <yao@codesourcery.com>
10577 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10579 2011-02-11 Yao Qi <yao@codesourcery.com>
10581 * common/Makefile.in: Add copyright header.
10583 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10585 * infrun.c (proceed): Move switching out and in of tfind mode from
10587 (fetch_inferior_event): ... to here.
10589 2011-02-11 Yao Qi <yao@codesourcery.com>
10591 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10593 * configure.ac: Add common to sub dir.
10594 * configure: Regenerate.
10596 2011-02-11 Yao Qi <yao@codesourcery.com>
10600 * common/Makefile.in: New.
10601 * common/configure.ac: New.
10602 * common/aclocal.m4: New.
10603 * common/configure: Generate.
10605 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10607 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10608 side of the parenthesis.
10611 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10612 * vec.h (VEC_block_remove): Fix comment.
10614 2011-02-08 Michael Snyder <msnyder@vmware.com>
10616 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10618 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10620 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10621 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10624 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10627 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10629 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10630 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10632 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10634 * dwarf2read.c (read_subroutine_type): Set special calling
10635 convention flag for functions compiled by IBM XL C for OpenCL.
10636 * ppc-sysv-tdep.c: Include "dwarf2.h"
10637 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10638 calling convention.
10639 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10640 IBM OpenCL vector types calling convention.
10641 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10642 (ppc_sysv_abi_broken_return_value): Likewise.
10643 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10644 types calling convention.
10645 (ppc64_sysv_abi_return_value): Likewise.
10646 * spu-tdep.c: Include "dwarf2.h"
10647 (spu_return_value): Implement IBM OpenCL vector types calling
10650 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10652 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10653 correct ABI for AltiVec vector arguments.
10655 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10657 * valprint.c (val_print): Extend comment.
10658 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10659 interface explanation to val_print.
10660 (ada_val_print_array): Adjust comment to current interface.
10661 (print_field_values): Adjust comment to current interface.
10662 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10663 explanation to val_print.
10664 * f-valprint.c (f_val_print): Ditto.
10665 * jv-valprint.c (java_val_print): Ditto.
10666 * m2-valprint.c (m2_val_print): Ditto.
10667 * p-valprint.c (pascal_val_print): Ditto.
10669 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10671 * breakpoint.c (parse_breakpoint_sals): Fix description.
10673 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10674 Oguz Kayral <oguzkayral@gmail.com>
10676 * python/py-inferior.c (python_on_normal_stop): New function.
10677 (python_on_resume): New function.
10678 (python_inferior_exit): New function.
10679 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10680 inferior_exit observers.
10681 * python/py-evtregistry.c: New file.
10682 * python/py-threadevent.c : New file.
10683 * python/py-event.c: New file.
10684 * python/py-evts.c: New file.
10685 * python/py-continueevent.c: New file.
10686 * python/py-bpevent.c: New file.
10687 * python/py-signalevent.c: New file.
10688 * python/py-exetiedevent.c: New file.
10689 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10690 Move struct breakpoint_object from here...
10691 * python/python-internal.h: ... to here.
10692 * python/py-event.h: New file.
10693 * python/py-events.h: New file.
10694 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10695 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10696 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10697 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10698 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10699 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10700 Add build rules for all the above.
10702 2011-02-04 Tom Tromey <tromey@redhat.com>
10704 * dwarf2read.c (dwarf2_section_empty_p): New function.
10705 (dwarf2_read_section): Use dwarf2_section_empty_p.
10706 (dwarf2_section_size): New function.
10707 (dwarf2_get_section_info): Unconditionally read section.
10708 (dwarf2_read_index): Use dwarf2_section_empty_p.
10709 (partial_read_comp_unit_head): Use dwarf2_section_size.
10710 (dwarf2_symbol_mark_computed): Likewise.
10712 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10714 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10716 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10718 * mips-linux-tdep.c: Include xml-syscall.h.
10719 (mips_linux_get_syscall_number): New function.
10720 (mips_linux_init_abi): Add calls to
10721 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10722 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10723 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10724 * syscalls/mips-n32-linux.xml: New file.
10725 * syscalls/mips-n64-linux.xml: New file.
10726 * syscalls/mips-o32-linux.xml: New file.
10728 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10730 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10731 Complain about inverted range entries.
10732 (dwarf2_record_block_ranges): Likewise.
10734 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10737 * breakpoint.c (update_watchpoint): Fix name of the
10738 update_global_location_list function.
10739 (print_one_breakpoint): Fix typo.
10740 (_initialize_breakpoint): Remove extra space in hbreak help
10742 * breakpoint.h (struct bp_location) <length>: Fix field
10745 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10747 * regcache.c (registers_changed_ptid): Don't explictly always
10748 clear `current_regcache'. Only clear current_thread_ptid and
10749 current_thread_arch when PTID matches. Only reinit the frame
10750 cache if PTID matches the current inferior_ptid. Move alloca(0)
10752 (registers_changed): ... here.
10754 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10756 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10757 starts with __stack_chk_guard as stack guard symbol.
10759 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10761 * disasm.c (compare_lines): Handle the end of sequence markers
10762 within the line table to better support disassembling over
10763 compilation unit boundaries.
10765 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10767 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10768 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10769 implementation even if no symbols are available.
10770 (thumb_analyze_prologue): Update call to skip_prologue_function.
10771 (arm_analyze_prologue): Likewise.
10773 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10775 * arm-tdep.c: Include "observer.h".
10776 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10777 (arm_exidx_data_key): New static variable.
10778 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10779 (struct arm_exidx_data): Likewise.
10780 (arm_exidx_data_free): New function.
10781 (arm_compare_exidx_entries): Likewise.
10782 (arm_obj_section_from_vma): Likewise.
10783 (arm_exidx_new_objfile): Likewise.
10784 (arm_find_exidx_entry): Likewise.
10785 (arm_exidx_fill_cache): Likewise.
10786 (arm_exidx_unwind_sniffer): Likewise.
10787 (arm_exidx_unwind): New global variable.
10788 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10789 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10790 observer. Register arm_exidx_data_key as objfile data.
10792 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10794 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10795 due to accessing uninitialized variable. Fix indentation.
10797 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10799 * c-valprint.c (c_value_print): When doing virtual base pointer
10800 adjustment, create a new value with adjusted contents rather than
10801 changing the contents of the value being printed (and getting it
10804 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10806 * xml-support.c (xml_find_attribute): New.
10807 (xinclude_start_include): Use it.
10808 * xml-support.h (xml_find_attribute): Declare.
10809 * memory-map.c (memory_map_start_memory)
10810 (memory_map_start_property): Use xml_find_attribute.
10811 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10812 xml_find_attribute.
10813 * remote.c (start_thread): Use xml_find_attribute.
10814 * solib-target.c (library_list_start_segment)
10815 (library_list_start_section, library_list_start_library)
10816 (library_list_start_list): Use xml_find_attribute.
10817 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10818 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10819 (tdesc_start_field): Use xml_find_attribute.
10821 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10823 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10824 (BUILD_OCL_VTYPES): Update.
10826 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10828 * configure.ac: Work around non-GNU sed limitation when computing
10829 python version number.
10830 * configure: Regenerate.
10832 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10834 Fix debug printing of TYPE_INSTANCE.
10835 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10836 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10838 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10840 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10841 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10842 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10843 * ada-operator.inc: Rename the file to ...
10844 * ada-operator.def: ... here, wrap all the entries by macro OP.
10845 * expprint.c (op_name_standard): Remove all the entries. Include
10846 "std-operator.def" instead.
10847 * expression.h (enum exp_opcode): Include "std-operator.def" and
10848 "ada-operator.def". Move all the entries ...
10849 * std-operator.def: ... here, wrap all the entries by macro OP.
10851 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10853 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10854 * breakpoint.c (remove_jit_event_breakpoints): New function.
10855 * jit.c (jit_descriptor_addr): Delete.
10856 (registering_code): Delete.
10857 (clear_int): Delete.
10858 (jit_inferior_data): New variable.
10859 (struct jit_inferior_data): New type.
10860 (get_jit_inferior_data): New function.
10861 (jit_inferior_data_cleanup): New function.
10862 (jit_read_descriptor): Adjust.
10863 (jit_register_code): Adjust.
10864 (jit_breakpoint_re_set_internal): New function; move code here ...
10865 (jit_inferior_init): ... from here.
10866 (jit_breakpoint_re_set): Adjust.
10867 (jit_reset_inferior_data_and_breakpoints): New function.
10868 (jit_inferior_created_observer): Adjust.
10869 (jit_inferior_exit_hook): Adjust.
10870 (jit_executable_changed_observer): New function.
10871 (jit_event_handler): Adjust.
10872 (_initialize_jit): Adjust.
10874 2011-01-31 Michael Snyder <msnyder@vmware.com>
10876 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10879 2011-01-31 Tom Tromey <tromey@redhat.com>
10882 * python/python.c (execute_gdb_command): Call
10883 prevent_dont_repeat.
10884 * top.c (suppress_dont_repeat): New global.
10885 (dont_repeat): Use it.
10886 (prevent_dont_repeat): New function.
10887 * command.h (prevent_dont_repeat): Declare.
10889 2011-01-31 Tom Tromey <tromey@redhat.com>
10891 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10892 * python/py-breakpoint.c (bppy_set_silent): Use
10893 breakpoint_set_silent.
10894 (bppy_set_thread): Use breakpoint_set_thread.
10895 (bppy_set_task): Use breakpoint_set_task.
10896 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10897 (breakpoint_set_task): Declare.
10898 (make_breakpoint_silent): Remove.
10899 * breakpoint.c (breakpoint_set_silent): New function.
10900 (breakpoint_set_thread): Likewise.
10901 (breakpoint_set_task): Likewise.
10902 (make_breakpoint_silent): Remove.
10904 2011-01-31 Tom Tromey <tromey@redhat.com>
10906 * breakpoint.h (user_breakpoint_p): Declare.
10907 * breakpoint.c (user_breakpoint_p): New function.
10908 (breakpoint_1): Use it.
10909 (save_breakpoints): Likewise.
10911 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10913 * configure.ac: Add handling of Python distribution on Windows.
10914 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10915 sysconfig variables are not defined, then do not use them.
10916 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10917 instead. On Windows, return all paths using forward-slashes
10918 rather than backslashes.
10920 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10922 * configure.ac: Remove fallback behavior for building
10923 against Python. Remove tweaking of Python include path.
10924 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10925 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10926 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10927 Always restore CPPFLAGS and LIBS after linking test.
10928 * configure: Regenerated.
10929 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10930 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10931 * python/python-internal.h: Adjust includes of Python .h files.
10933 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10935 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10938 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10940 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10943 2011-01-31 Yao Qi <yao@codesourcery.com>
10945 * arm-linux-nat.c: Update calls to regcache_register_status
10946 instead of regcache_valid_p.
10947 * aix-thread.c: Likewise.
10948 * i386gnu-nat.c: Likewise.
10950 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10953 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10954 touching TYPE_FIELD_ARTIFICIAL.
10956 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10958 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10961 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10963 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10964 selected, don't try iterating over the traceframe's blocks.
10965 (tfile_has_stack): If there's no traceframe selected, then there's
10967 (tfile_has_registers): If there's no traceframe selected, then
10968 there's no registers.
10970 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10972 * target.c (memory_xfer_partial): No need to restore shadows if we
10973 haven't read anything.
10975 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10977 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10978 and val_print_scalar_formatted.
10980 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10982 * tracepoint.c (tfile_read): New.
10983 (tfile_open): Use it.
10984 (tfile_get_traceframe_address): Use it.
10985 (tfile_trace_find): Use it.
10986 (walk_blocks_callback_func): New typedef.
10987 (match_blocktype): New function.
10988 (traceframe_walk_blocks): New function.
10989 (traceframe_find_block_type): New function.
10990 (tfile_fetch_registers, tfile_xfer_partial)
10991 (tfile_get_trace_state_variable_value): Use
10992 traceframe_find_block_type and tfile_read.
10994 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10996 * remote-mips.c: Add internationalization mark ups. Remove
10997 trailing \n from already marked up strings.
10999 2011-01-26 Tom Tromey <tromey@redhat.com>
11001 * python/py-prettyprint.c (print_string_repr): Clear
11002 'addressprint' option when calling val_print_string.
11003 (print_children): Handle Val_pretty_default. Clear 'addressprint'
11004 option when calling val_print_string.
11006 2011-01-26 Tom Tromey <tromey@redhat.com>
11008 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11010 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11012 (gdb_py_longest, gdb_py_ulongest): New typedefs.
11013 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11014 (gdb_py_long_as_ulongest): New defines.
11015 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11016 (gdb_py_int_as_long): Declare.
11017 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11018 GDB_PY_LL_ARG, gdb_py_object_from_longest.
11019 (valpy_long): Add comment.
11020 * python/py-utils.c (get_addr_from_python): Use
11021 gdb_py_long_as_ulongest. Handle overflow properly.
11022 (gdb_py_object_from_longest): New function.
11023 (gdb_py_object_from_ulongest): Likewise.
11024 (gdb_py_int_as_long): Likewise.
11025 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11026 * python/py-symtab.c (salpy_get_pc): Use
11027 gdb_py_long_from_ulongest.
11028 (salpy_get_line): Use PyInt_FromLong.
11029 * python/py-param.c (set_parameter_value): Use
11030 gdb_py_int_as_long.
11031 * python/py-lazy-string.c (stpy_get_address): Use
11032 gdb_py_long_from_ulongest.
11033 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11034 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11035 * python/py-breakpoint.c (bppy_set_thread): Use
11036 gdb_py_int_as_long.
11037 (bppy_set_task): Likewise.
11038 (bppy_set_ignore_count): Likewise.
11039 (bppy_set_hit_count): Likewise.
11040 * python/py-block.c (blpy_get_start): Use
11041 gdb_py_object_from_ulongest.
11042 (blpy_get_end): Likewise.
11043 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11045 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
11048 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11049 * gdb/solib.c (solib_read_symbols): Check for addr_low in
11050 equality test for objfile, initialize addr_low if needed.
11052 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11054 * tui/tui-regs.c (tui_register_format): Remove dead code.
11056 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11058 * printcmd.c (print_formatted): Use val_print_scalar_formatted
11059 instead of print_scalar_formatted.
11060 (print_scalar_formatted): Don't handle 's' format strings here,
11061 and add an assertion that we never see such format here.
11062 * valprint.h (val_print_scalar_formatted): Declare.
11063 * valprint.c (val_print_scalar_formatted): New.
11064 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11065 instead of print_scalar_formatted.
11066 * jv-valprint.c (java_val_print): Ditto.
11067 * p-valprint.c (pascal_val_print): Ditto.
11068 * ada-valprint.c (ada_val_print_1): Ditto.
11069 * f-valprint.c (f_val_print): Ditto.
11070 * infcmd.c (registers_info): Ditto.
11071 * m2-valprint.c (m2_val_print): Ditto.
11073 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11075 * m2-valprint.c (print_unbounded_array): Pass
11076 value_contents_for_printing rather than value_contents, to
11077 m2_print_array_contents. Also pass in the value.
11079 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11081 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11082 (save_gdb_index_command): Switch to .gdb_index version 4.
11084 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11086 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11087 than frame_register, and always pass a valid value to val_print.
11089 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11091 Centralize printing "<optimized out>".
11093 * valprint.h (val_print_optimized_out): Declare.
11094 * cp-valprint.c (cp_print_value_fields): Use
11095 val_print_optimized_out.
11096 * jv-valprint.c (java_print_value_fields): Ditto.
11097 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11098 * printcmd.c (print_formatted): Ditto.
11099 * valprint.c (valprint_check_validity): Ditto.
11100 (value_check_printable): Ditto.
11101 (val_print_optimized_out): New.
11103 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11105 * infcmd.c (default_print_registers_info): Allocate values so to
11106 never pass a NULL value to val_print.
11108 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11110 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11111 boolean. Make sure to always pass a value that matches the
11112 contents buffer to callees. Preserve `address' for following
11114 * value.c (value_contents_for_printing_const): New.
11115 (value_address): Constify value argument.
11116 * value.h (value_contents_for_printing_const): Declare.
11117 (value_address): Constify value argument.
11119 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11121 * regcache.c (struct regcache_descr): Rename
11122 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11123 and sizeof_cooked_register_valid_p to
11124 sizeof_cooked_register_status.
11125 (init_regcache_descr): Adjust.
11126 (struct regcache): Rename register_valid_p field to
11128 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11129 (do_cooked_read): Adjust.
11130 (regcache_valid_p): Rename to ...
11131 (regcache_register_status): ... this. Adjust.
11132 (regcache_invalidate): Adjust.
11133 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11135 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11136 as unavailable, not valid.
11137 (regcache_dump): Adjust.
11138 * regcache.h (enum register_status): New.
11139 (regcache_register_status): Declare.
11140 (regcache_invalidate): Delete declaration.
11141 * corelow.c (get_core_registers): Adjust.
11142 * tracepoint.c (tfile_fetch_registers): Adjust.
11143 * trad-frame.c (REG_VALUE): Rename to ...
11144 (TF_REG_VALUE): ... this.
11145 (REG_UNKNOWN): Rename to ...
11146 (TF_REG_UNKNOWN): ... this.
11147 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11148 * mi/mi-main.c (register_changed_p): Adjust.
11150 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11152 * regcache.c (struct regcache_descr): Remove outdated comment.
11153 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11155 (regcache_xmalloc): Rename to ...
11156 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11157 Allocate the regcache type accordingly.
11158 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11159 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11160 cooked registers, not raw.
11161 (regcache_dup_no_passthrough): Delete.
11162 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11163 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11164 mention obsolete write_register_bytes.
11165 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11167 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11169 Stop remote_read_bytes from handling partial reads itself.
11171 * remote-fileio.c: Include target.h.
11172 (remote_fileio_write_bytes): Delete.
11173 (remote_fileio_func_open, remote_fileio_func_write)
11174 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11175 target_read_memory.
11176 (remote_fileio_func_stat): Use target_read_memory and
11177 target_write_memory.
11178 (remote_fileio_func_gettimeofday): Use target_write_memory.
11179 (remote_fileio_func_system): Use target_read_memory.
11180 * remote.c (remote_write_bytes): Make it static.
11181 (remote_read_bytes): Don't handle partial reads here.
11182 * remote.h (remote_read_bytes): Delete declaration.
11184 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11186 Simplify XML parsing a bit.
11188 * xml-support.h (gdb_xml_parse_quick): Declare.
11189 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11190 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11192 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11193 gdb_xml_create_parser_and_cleanup_1.
11194 (gdb_xml_parse_quick): New.
11195 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11196 * osdata.c (osdata_parse): Ditto.
11197 * remote.c (remote_threads_info): Ditto.
11198 * solib-target.c (solib_target_parse_libraries): Ditto.
11199 * xml-syscall.c (syscall_parse_xml): Ditto.
11200 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11202 2011-01-24 Kevin Buettner <kevinb@redhat.com>
11204 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11205 with remote-mips.o added to gdb_target_obs.
11206 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11208 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11210 * ada-valprint.c (val_print_packed_array_elements): Pass the
11211 correct struct value to val_print.
11212 (ada_val_print_1): Ditto.
11214 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11216 Don't lose embedded_offset in printing routines throughout.
11218 * valprint.h (val_print_array_elements): Change prototype.
11219 * valprint.c (val_print_array_elements): Add `embedded_offset'
11220 parameter, and adjust to pass it down to val_print, while passing
11221 `valaddr' or `address' unmodified. Take embedded_offset into
11222 account when checking repetitions.
11223 * c-valprint.c (c_val_print): Pass embedded_offset to
11224 val_print_array_elements instead of adjusting `valaddr' and
11226 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11227 embedded_offset to val_print_array_elements instead of adjusting
11229 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11230 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11231 val_print_array_elements and pascal_object_print_value_fields
11232 instead of adjusting `valaddr'.
11233 (pascal_object_print_value_fields): Add `offset' parameter, and
11235 (pascal_object_print_value): Add `offset' parameter, and adjust to
11237 (pascal_object_print_static_field): Use
11238 value_contents_for_printing/value_embedded_offset, rather than
11240 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11241 parameter, and adjust to use it. Use
11242 value_contents_for_printing/value_embedded_offset, rather than
11244 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11245 (ada_val_print_array): Add `offset' parameter, and adjust to use
11247 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11248 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11249 Instead work with offsets. Use
11250 value_contents_for_printing/value_embedded_offset, rather than
11251 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11252 and use value_from_pointer to extract a target pointer, rather
11253 than value_from_longest.
11254 (print_variant_part): Add `offset' parameter. Replace
11255 `outer_valaddr' parameter by a new `outer_offset' parameter.
11256 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11257 (ada_value_print): Use
11258 value_contents_for_printing/value_embedded_offset, rather than
11260 (print_record): Add `offset' parameter, and adjust to pass it
11262 (print_field_values): Add `offset' parameter. Replace
11263 `outer_valaddr' parameter by a new `outer_offset' parameter.
11264 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11265 Use value_contents_for_printing/value_embedded_offset, rather than
11267 * d-valprint.c (dynamic_array_type): Use
11268 value_contents_for_printing/value_embedded_offset, rather than
11270 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11271 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11272 (java_print_value_fields): Take `offset' into account. Don't
11273 re-adjust `valaddr'. Instead pass down adjusted offsets.
11274 (java_val_print): Take `embedded_offset' into account. Pass it to
11275 java_print_value_fields.
11276 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11277 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11278 down adjusted offsets.
11279 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11280 (f_val_print): Take `embedded_offset' into account.
11282 2011-01-21 Joel Brobecker <brobecker@adacore.com>
11284 * inflow.c: Include "gdbcmd.h".
11285 (interactive_mode): New static global, moved here from top.c.
11286 (show_interactive_mode): New function, moved here from top.c.
11287 use gdb_has_a_terminal instead of input_from_terminal_p to
11288 determine the current mode.
11289 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11291 (_initialize_inflow): Add the "set/show interactive-mode"
11292 commands. Moved here from top.c, after having adjusted slightly
11294 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11296 (input_from_terminal_p): Remove handling of "interactive-mode"
11297 setting, moved to infow.c.
11298 (init_main): Remove creation of the "set/show interactive-mode"
11299 commands, moved to inflow.c.
11301 2011-01-19 Joel Brobecker <brobecker@adacore.com>
11303 * NEWS: Add entry for native ia64-hpux support.
11305 2011-01-19 Tom Tromey <tromey@redhat.com>
11308 * thread.c (free_thread): Free 'name'.
11309 (print_thread_info): Emit thread name. Change CLI output.
11310 (thread_name_command): New function.
11311 (do_captured_thread_select): Emit newline.
11312 (_initialize_thread): Register 'thread name' command.
11313 * target.h (struct target_ops) <to_thread_name>: New field.
11314 (target_thread_name): New macro.
11315 * target.c (update_current_target): Handle to_thread_name.
11316 * python/py-infthread.c (thpy_get_name): New function.
11317 (thpy_set_name): Likewise.
11318 (thread_object_getset): Add "name".
11319 * linux-nat.c (linux_nat_thread_name): New function.
11320 (linux_nat_add_target): Set to_thread_name.
11321 * gdbthread.h (struct thread_info) <name>: New field.
11323 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11325 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11326 (ada_val_print_1): Likewise.
11328 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11330 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11331 upper limit address is not greater than the function end address
11332 when the upper limit could not be computed using the debugging
11335 2011-01-17 Tom Tromey <tromey@redhat.com>
11337 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11339 * utils.c: Include gdb_regex.h.
11340 (do_regfree_cleanup): New function.
11341 (make_regfree_cleanup): Likewise.
11342 (get_regcomp_error): Likewise.
11343 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11345 2011-01-17 Tom Tromey <tromey@redhat.com>
11347 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11348 re_compile_fastmap.
11350 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11352 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11353 for internal variables.
11354 (last_was_structop): New static variable.
11355 (COMPLETE): New token.
11356 (field_exp): New rule to group all '.' suffix handling.
11357 Add mark_struct_expression calls when approriate to be able
11358 to correctly find fields for completion.
11359 (yylex): Adapt to handle field completion and set INTVAR when
11362 2011-01-14 Yao Qi <yao@codesourcery.com>
11364 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11365 save_reggroup, restore_reggroup and all_reggroup.
11367 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11369 * ada-valprint. (ada_printchar): Use the correct type length
11370 in call to ada_emit_char.
11371 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11373 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11375 * solib-som.h (hpux_major_release): Declare variable here.
11376 * solib-som.c: Remove <sys/utsname.h> header.
11377 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11378 (hpux_major_release): Make global, change default value to
11379 DEFAULT_HPUX_MAJOR_RELEASE.
11380 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11381 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11382 Add "solib-som.h" header.
11383 (set_hpux_major_release): New function.
11384 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11386 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11388 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11390 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11392 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11393 new-line at end of warning message.
11394 (ia64_hpux_store_register): Remove trailing new-line at end of
11396 * ia64-hpux-tdep.c: Rephrase comment.
11397 * solib-ia64-hpux.c (struct dld_info): Change type of field
11398 dld_flags from "long long" to ULONGEST.
11400 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11402 * target.h (deprecated_child_ops): Delete declaration.
11403 * target.c (deprecated_child_ops): Delete definition.
11405 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11407 * Makefile.in (hpux-thread.o): Delete rule.
11408 * configure.ac: Don't check for HPUX DCE threads support.
11409 * configure, config.in: Regenerate.
11410 * hppa-hpux-nat.c (child_suppress_run): Delete.
11411 (hppa_hpux_child_can_run): Delete.
11412 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11413 * hpux-thread.c: Delete.
11415 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11417 * hpux-thread.c (hpux_pid_to_str): Delete.
11419 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11421 * ada-valprint.c (ada_emit_char): Remove strange code.
11422 Check that c is <= UCHAR_MAX before passing it to isascii.
11423 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11425 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11427 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11428 to the case where instream is stdin.
11430 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11432 * ia64-tdep.h (struct regcache): Forward declare.
11433 (struct ia64_infcall_ops): New struct type.
11434 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11436 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11437 Renames ia64_find_global_pointer.
11438 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11439 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11440 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11442 (ia64_infcall_ops): New static global constant.
11443 (ia64_gdbarch_init): Set tdep->infcall_ops.
11444 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11445 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11446 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11447 (ia64_hpux_dummy_code): New static global constant.
11448 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11449 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11450 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11452 (ia64_hpux_infcall_ops): New static global constant.
11453 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11454 for inferior function calls to work properly on ia64-hpux.
11456 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11458 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11459 * ia64-tdep.h (struct frame_info): forward declaration.
11460 (struct gdbarch_tdep): Add field size_of_register_frame.
11461 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11462 to determine the size of the register frame.
11463 (ia64_size_of_register_frame): New function.
11464 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11465 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11466 (IA64_HPUX_UREG_REASON): New macro.
11467 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11469 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11470 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11471 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11474 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11476 Add support for ia64-hpux.
11477 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11478 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11480 * configure.host: Add handling for ia64-hpux hosts. Add associated
11482 * configure.tgt: Add handling for ia64-hpux targets.
11483 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11484 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11485 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11487 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11489 [ttrace] Compute thread list immediately after attach.
11490 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11492 (inf_ttrace_attach): Use it.
11494 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11496 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11497 if we could not determine the frame's function address. Instead,
11498 use the frame's PC, and then continue.
11500 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11502 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11503 not already defined.
11505 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11507 * ia64-tdep.c (ia64_struct_type_p): New function.
11508 (ia64_extract_return_value): Handle integral values that are
11509 less than 8 bytes long.
11510 (ia64_push_dummy_call): Likewise.
11512 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11514 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11515 floatformat_ia64_ext.
11516 (floatformat_ia64_ext_big): New static const.
11517 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11519 2011-01-12 Tom Tromey <tromey@redhat.com>
11521 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11523 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11524 (mi_cmd_thread_list_ids): Likewise.
11525 (mi_cmd_data_list_changed_registers): Likewise.
11526 (mi_cmd_data_list_register_values): Likewise.
11527 (mi_cmd_data_write_register_values): Likewise.
11528 (mi_cmd_data_evaluate_expression): Likewise.
11529 (mi_cmd_data_read_memory): Likewise.
11530 (mi_cmd_data_read_memory_bytes): Likewise.
11531 (mi_cmd_data_write_memory): Likewise.
11532 (mi_cmd_enable_timings): Likewise.
11533 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11534 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11535 (mi_cmd_var_delete): Likewise.
11536 (mi_cmd_var_set_format): Likewise.
11537 (mi_cmd_var_show_format): Likewise.
11538 (mi_cmd_var_info_num_children): Likewise.
11539 (mi_cmd_var_list_children): Likewise.
11540 (mi_cmd_var_info_type): Likewise.
11541 (mi_cmd_var_info_expression): Likewise.
11542 (mi_cmd_var_show_attributes): Likewise.
11543 (mi_cmd_var_assign): Likewise.
11544 (mi_cmd_var_update): Likewise.
11545 (mi_cmd_enable_pretty_printing): Likewise.
11546 (mi_cmd_var_set_update_range): Likewise.
11547 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11549 (mi_cmd_target_file_put): Likewise.
11550 (mi_cmd_target_file_delete): Likewise.
11551 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11553 (mi_cmd_stack_info_depth): Likewise.
11554 (mi_cmd_stack_list_locals): Likewise.
11555 (mi_cmd_stack_list_args): Likewise.
11556 (mi_cmd_stack_select_frame): Likewise.
11557 (mi_cmd_stack_select_frame): Likewise.
11558 (mi_cmd_stack_info_frame): Likewise.
11559 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11561 (mi_cmd_file_list_exec_source_files): Likewise.
11562 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11563 (mi_cmd_env_cd): Likewise.
11564 (mi_cmd_env_path): Likewise.
11565 (mi_cmd_env_dir): Likewise.
11566 (mi_cmd_inferior_tty_show): Likewise.
11567 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11568 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11569 (mi_cmd_break_watch): Likewise.
11571 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11573 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11574 (ppc_linux_insert_hw_breakpoint): Likewise.
11575 (ppc_linux_remove_hw_breakpoint): Likewise.
11576 (ppc_linux_insert_watchpoint): Likewise.
11578 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11579 Jan Kratochvil <jan.kratochvil@redhat.com>
11581 PR fortran/11104 and DWARF unbound arrays detection.
11582 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11583 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11584 unspecified upper bound.
11585 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11586 variables array_size_array, tmp_type and offset_item. New variable
11587 array. Remove call to f77_get_upperbound. New variables array_type
11588 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11589 the final call to deprecated_set_value_type.
11591 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11593 Make value allocations more lazy.
11594 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11595 instead of allocate_value and set_value_lazy when possible.
11596 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11597 instead of allocate_value and set_value_lazy.
11598 * findvar.c (value_of_register_lazy): Likewise.
11599 (read_var_value): Remove V preallocation, call just check_typedef in
11600 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11601 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11602 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11603 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11604 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11605 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11606 the end, remove set_value_lazy there.
11607 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11608 instead of allocate_value and set_value_lazy when possible.
11609 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11610 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11611 of allocate_value and set_value_lazy.
11612 (value_from_contents_and_address): Use allocate_value_lazy instead of
11613 allocate_value and set_value_lazy when possible.
11615 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11617 * disasm.c (dump_insns): Support dumping opcodes for MI.
11618 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11619 dumping of instruction opcodes.
11621 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11623 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11626 2011-01-11 Tom Tromey <tromey@redhat.com>
11628 * thread.c (do_captured_thread_select): Emit newline before
11631 2011-01-11 Michael Snyder <msnyder@vmware.com>
11633 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11634 * score-tdep.c: Ditto.
11635 * score-tdep.h: Ditto.
11636 * ser-base.c: Ditto.
11637 * ser-go32.c: Ditto.
11640 * ser-mingw.c: Ditto.
11641 * ser-pipe.c: Ditto.
11642 * ser-tcp.c: Ditto.
11643 * ser-unix.c: Ditto.
11644 * sh64-tdep.c: Ditto.
11645 * shnbsd-nat.c: Ditto.
11646 * sh-tdep.c: Ditto.
11647 * sh-tdep.h: Ditto.
11649 * solib-darwin.c: Ditto.
11650 * solib-frv.c: Ditto.
11652 * solib-irix.c: Ditto.
11653 * solib-osf.c: Ditto.
11654 * solib-pa64.c: Ditto.
11655 * solib-som.c: Ditto.
11656 * solib-spu.c: Ditto.
11657 * solib-sunos.c: Ditto.
11658 * solib-svr4.c: Ditto.
11660 * sol-thread.c: Ditto.
11661 * somread.c: Ditto.
11664 * sparc64-linux-tdep.c: Ditto.
11665 * sparc64-tdep.c: Ditto.
11666 * sparc-linux-nat.c: Ditto.
11667 * sparc-linux-tdep.c: Ditto.
11668 * sparc-sol2-nat.c: Ditto.
11669 * sparc-sol2-tdep.c: Ditto.
11670 * sparc-tdep.c: Ditto.
11671 * sparc-tdep.h: Ditto.
11672 * spu-tdep.c: Ditto.
11673 * stabsread.c: Ditto.
11674 * stabsread.h: Ditto.
11676 * symfile.c: Ditto.
11677 * symfile.h: Ditto.
11678 * symmisc.c: Ditto.
11682 * target-descriptions.c: Ditto.
11683 * target-descriptions.h: Ditto.
11685 * target-memory.c: Ditto.
11686 * terminal.h: Ditto.
11689 * tracepoint.c: Ditto.
11690 * tracepoint.h: Ditto.
11691 * trad-frame.h: Ditto.
11692 * typeprint.c: Ditto.
11694 2011-01-11 Michael Snyder <msnyder@vmware.com>
11696 * ui-file.c: Comment cleanup, mostly periods and spaces.
11697 * ui-file.h: Ditto.
11701 * v850-tdep.c: Ditto.
11702 * valarith.c: Ditto.
11704 * valprint.c: Ditto.
11705 * valprint.h: Ditto.
11710 * vax-tdep.c: Ditto.
11713 * version.h: Ditto.
11714 * windows-nat.c: Ditto.
11715 * windows-tdep.c: Ditto.
11716 * xcoffread.c: Ditto.
11717 * xcoffsolib.c: Ditto.
11718 * xml-support.c: Ditto.
11719 * xstormy16-tdep.c: Ditto.
11720 * xtensa-tdep.c: Ditto.
11721 * xtensa-tdep.h: Ditto.
11723 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11725 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11726 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11728 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11729 Thiago Jung Bauermann <bauerman@br.ibm.com>
11731 Implement support for PowerPC BookE ranged watchpoints.
11733 (struct breakpoint_ops) <resources_needed>: New method.
11734 Initialize to NULL in all existing breakpoint_ops instances.
11735 (struct breakpoint) <exact>: New field.
11736 (target_exact_watchpoints): Declare external global.
11737 * breakpoint.c (target_exact_watchpoints): New global flag.
11738 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11739 b->enable_state to bp_enabled before calling
11740 hw_watchpoint_used_count.
11741 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11742 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11744 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11745 if the watchpoint is exact.
11746 (resources_needed_watchpoint): New function.
11747 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11748 (watch_command_1): Set b->exact if the user asked for an exact
11749 watchpoint and one can be set.
11750 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11751 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11752 the user asks for an exact watchpoint and one can be set. Return
11753 number of needed debug registers to watch the expression.
11754 * gdbtypes.c (is_scalar_type): New function, based on
11755 valprint.c:scalar_type_p.
11756 (is_scalar_type_recursive): New function.
11757 * gdbtypes.h (is_scalar_type_recursive): Declare.
11758 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11759 handle regions when ranged watchpoints are available.
11760 (create_watchpoint_request): New function.
11761 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11762 create_watchpoint_request.
11763 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11764 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11765 `set powerpc' and `show powerpc' commands.
11766 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11767 Mention documentation comment in the target macro.
11768 (target_region_ok_for_hw_watchpoint): Document return value.
11770 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11772 * breakpoint.c (update_watchpoint): Decide on using a software or
11773 hardware watchpoint after the bp_locations are created.
11775 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11777 Convert hardware watchpoints to use breakpoint_ops.
11778 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11779 <insert_location>: ... this. Return int instead of void.
11780 Accept pointer to struct bp_location instead of pointer to
11781 struct breakpoint. Adapt all implementations.
11782 (breakpoint_ops) <remove>: Rename to...
11783 <remove_location>: ... this. Accept pointer to struct bp_location
11784 instead of pointer to struct breakpoint. Adapt all implementations.
11785 * breakpoint.c (insert_catchpoint): Delete function.
11786 (insert_bp_location): Call the watchpoint or catchpoint's
11787 breakpoint_ops.insert method.
11788 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11789 breakpoint_ops.remove method.
11790 (insert_watchpoint, remove_watchpoint): New functions.
11791 (watchpoint_breakpoint_ops): New structure.
11792 (watch_command_1): Initialize the OPS field.
11793 * inf-child.c (inf_child_insert_fork_catchpoint)
11794 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11795 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11796 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11798 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11799 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11800 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11801 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11802 * target.c (update_current_target): Change default implementation of
11803 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11804 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11805 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11806 to_set_syscall_catchpoint to return_one.
11807 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11808 (debug_to_insert_exec_catchpoint): Report return value.
11809 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11810 (to_insert_exec_catchpoint): Change declaration to return int instead
11813 2011-01-11 Michael Snyder <msnyder@vmware.com>
11815 * arm-tdep.c: Internationalization.
11817 * charset.c: Ditto.
11818 * fork-child.c: Ditto.
11819 * nto-procfs.c: Ditto.
11820 * ppc-sysv-tdep.c: Ditto.
11822 * remote-mips.c: Ditto.
11824 * rs6000-nat.c: Ditto.
11825 * rs6000-tdep.c: Ditto.
11829 * xml-support.c: Ditto.
11830 * mi/mi-cmd-break.c: Ditto.
11831 * mi/mi-cmd-var.c: Ditto.
11832 * mi/mi-interp.c: Ditto.
11833 * mi/mi-main.c: Ditto.
11835 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11837 * remote-sim.c (gdbsim_store_register): Update API to
11838 sim_store_register to check more error conditions.
11840 2011-01-10 Michael Snyder <msnyder@vmware.com>
11842 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11843 * nto-tdep.c: Ditto.
11844 * nto-tdep.h: Ditto.
11845 * objc-exp.y: Ditto.
11846 * objc-lang.c: Ditto.
11847 * objfiles.c: Ditto.
11848 * objfiles.h: Ditto.
11849 * observer.c: Ditto.
11850 * opencl-lang.c: Ditto.
11853 * parser-defs.h: Ditto.
11856 * posix-hdep.c: Ditto.
11857 * ppcbug-rom.c: Ditto.
11858 * ppc-linux-nat.c: Ditto.
11859 * ppc-linux-tdep.c: Ditto.
11860 * ppc-linux-tdep.h: Ditto.
11861 * ppcnbsd-tdep.c: Ditto.
11862 * ppcobsd-tdep.c: Ditto.
11863 * ppcobsd-tdep.h: Ditto.
11864 * ppc-sysv-tdep.c: Ditto.
11865 * ppc-tdep.h: Ditto.
11866 * printcmd.c: Ditto.
11867 * proc-abi.c: Ditto.
11868 * proc-flags.c: Ditto.
11870 * proc-utils.h: Ditto.
11871 * progspace.h: Ditto.
11872 * prologue-value.c: Ditto.
11873 * prologue-value.h: Ditto.
11874 * psympriv.h: Ditto.
11875 * psymtab.c: Ditto.
11876 * p-typeprint.c: Ditto.
11877 * p-valprint.c: Ditto.
11878 * ravenscar-sparc-thread.c: Ditto.
11879 * ravenscar-thread.c: Ditto.
11880 * ravenscar-thread.h: Ditto.
11882 * regcache.c: Ditto.
11883 * regcache.h: Ditto.
11885 * remote-fileio.c: Ditto.
11886 * remote-fileio.h: Ditto.
11888 * remote-m32r-sdi.c: Ditto.
11889 * remote-mips.c: Ditto.
11890 * remote-sim.c: Ditto.
11891 * rs6000-aix-tdep.c: Ditto.
11892 * rs6000-nat.c: Ditto.
11893 * rs6000-tdep.c: Ditto.
11895 2011-01-10 Michael Snyder <msnyder@vmware.com>
11897 * charset.c (validate): Internationalization.
11898 * coffread.c (read_one_sym): Ditto.
11899 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11900 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11901 * inflow.c (new_tty): Ditto.
11902 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11903 * m32c-tdep.c (m32c_return_value): Ditto.
11904 * mep-tdep.c (mep_store_return_value): Ditto.
11905 * score-tdep.c (score7_fetch_insn): Ditto.
11906 * ser-mingw.c (pipe_windows_open): Ditto.
11907 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11908 * spu-tdep.c (spu_register_type): Ditto.
11909 * tracepoint.c (trace_find_command): Ditto.
11910 * valarith.c (value_pos): Ditto.
11912 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11914 * ada-valprint.c (printstr): Minor comment reformatting.
11916 2011-01-08 Michael Snyder <msnyder@vmware.com>
11918 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11921 2011-01-08 Michael Snyder <msnyder@vmware.com>
11923 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11924 * hppa-hpux-tdep.c: Ditto.
11925 * hppa-linux-nat.c: Ditto.
11926 * hppa-linux-tdep.c: Ditto.
11927 * hppanbsd-tdep.c: Ditto.
11928 * hppa-tdep.c: Ditto.
11929 * hppa-tdep.h: Ditto.
11930 * hpux-thread.c: Ditto.
11931 * i386-cygwin-tdep.c: Ditto.
11932 * i386-darwin-nat.c: Ditto.
11933 * i386gnu-nat.c: Ditto.
11934 * i386-linux-nat.c: Ditto.
11935 * i386-linux-tdep.c: Ditto.
11936 * i386-nat.c: Ditto.
11937 * i386-nat.h: Ditto.
11938 * i386nbsd-tdep.c: Ditto.
11939 * i386-sol2-nat.c: Ditto.
11940 * i386-stub.c: Ditto.
11941 * i386-tdep.c: Ditto.
11942 * i386-tdep.h: Ditto.
11943 * i387-tdep.c: Ditto.
11944 * ia64-linux-nat.c: Ditto.
11945 * ia64-linux-tdep.c: Ditto.
11946 * ia64-tdep.c: Ditto.
11947 * infcall.c: Ditto.
11948 * infcall.h: Ditto.
11950 * inferior.c: Ditto.
11951 * inferior.h: Ditto.
11952 * infloop.c: Ditto.
11955 * interps.c: Ditto.
11956 * interps.h: Ditto.
11957 * iq2000-tdep.c: Ditto.
11958 * irix5-nat.c: Ditto.
11962 * jv-lang.c: Ditto.
11963 * jv-lang.h: Ditto.
11964 * jv-typeprint.c: Ditto.
11965 * jv-valprint.c: Ditto.
11966 * language.c: Ditto.
11967 * language.h: Ditto.
11968 * linespec.c: Ditto.
11969 * linux-fork.c: Ditto.
11970 * linux-nat.c: Ditto.
11971 * linux-thread-db.c: Ditto.
11972 * lm32-tdep.c: Ditto.
11974 2011-01-08 Michael Snyder <msnyder@vmware.com>
11976 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11977 * m2-lang.c: Ditto.
11978 * m2-typeprint.c: Ditto.
11979 * m2-valprint.c: Ditto.
11980 * m32c-tdep.c: Ditto.
11981 * m32r-linux-nat.c: Ditto.
11982 * m32r-rom.c: Ditto.
11983 * m32r-tdep.c: Ditto.
11984 * m32r-tdep.h: Ditto.
11985 * m68hc11-tdep.c: Ditto.
11986 * m58klinux-nat.c: Ditto.
11987 * m68k-tdep.c: Ditto.
11988 * m88k-tdep.c: Ditto.
11989 * m88k-tdep.h: Ditto.
11990 * machoread.c: Ditto.
11991 * macrocmd.c: Ditto.
11992 * macroexp.c: Ditto.
11993 * macrotab.c: Ditto.
11996 * mdebugread.c: Ditto.
11997 * mdebugread.h: Ditto.
11998 * memattr.c: Ditto.
11999 * memattr.h: Ditto.
12000 * memory-map.h: Ditto.
12001 * mep-tdep.c: Ditto.
12002 * microblaze-rom.c: Ditto.
12003 * microblaze-tdep.c: Ditto.
12004 * minsyms.c: Ditto.
12005 * mips-irix-tdep.c: Ditto.
12006 * mips-linux-nat.c: Ditto.
12007 * mips-linux-tdep.c: Ditto.
12008 * mips-linux-tdep.h: Ditto.
12009 * mipsnbsd-nat.c: Ditto.
12010 * mipsnbsd-tdep.c: Ditto.
12011 * mipsread.c: Ditto.
12012 * mips-tdep.c: Ditto.
12013 * mips-tdep.h: Ditto.
12014 * mn10300-linux-tdep.c: Ditto.
12015 * mn10300-tdep.c: Ditto.
12016 * mn10300-tdep.h: Ditto.
12017 * monitor.c: Ditto.
12018 * monitor.h: Ditto.
12019 * moxie-tdep.c: Ditto.
12020 * moxie-tdep.h: Ditto.
12021 * mt-tdep.c: Ditto.
12023 2011-01-08 Mike Frysinger <vapier@gentoo.org>
12025 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12027 2011-01-08 Robert Millan <rmh@gnu.org>
12029 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12031 2011-01-07 Michael Snyder <msnyder@vmware.com>
12033 * charset.c (_initialize_charset): Fix typo in string.
12035 2011-01-07 Michael Snyder <msnyder@vmware.com>
12037 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12039 * tui/tui-layout.c (tui_set_layout_for_display_command):
12040 Split line so that operator goes to beginning of line.
12041 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12042 assignment out of if statement.
12044 2011-01-07 Michael Snyder <msnyder@vmware.com>
12046 * ada-lang.c: Comment cleanup, mostly periods and spaces.
12047 * ada-lang.h: Ditto.
12048 * ada-tasks.c: Ditto.
12049 * ada-valprint.c: Ditto.
12050 * aix-threads.c: Ditto.
12051 * alpha-linux-nat.c: Ditto.
12052 * alpha-linux-tdep.c: Ditto.
12053 * alpha-mdebug-tdep.c: Ditto.
12054 * alpha-nat.c: Ditto.
12055 * alpha-osf1-tdep.c: Ditto.
12056 * alpha-tdep.c: Ditto.
12057 * alphabsd-nat.c: Ditto.
12058 * alphabsd-tdep.c: Ditto.
12059 * amd64-darwin-tdep.c: Ditto.
12060 * amd64-linux-nat.c: Ditto.
12061 * amd64-linux-tdep.c: Ditto.
12062 * amd64-sol2-tdep.c: Ditto.
12063 * amd64-tdep.c: Ditto.
12064 * amd64-fbsd-tdep.c: Ditto.
12065 * amd64-nbsd-tdep.c: Ditto.
12066 * amd64-obsd-tdep.c: Ditto.
12067 * amd64-linux-nat.c: Ditto.
12068 * amd64-linux-tdep.c: Ditto.
12069 * arm-tdep.c: Ditto.
12070 * arm-tdep.h: Ditto.
12071 * armnbsd-nat.c: Ditto.
12072 * avr-tdep.c: Ditto.
12073 * bfin-tdep.c: Ditto.
12074 * bsd-kvm.c: Ditto.
12075 * c-typeprintc: Ditto.
12076 * c-valprint.c: Ditto.
12077 * coff-pe-read.h: Ditto.
12078 * coffreead.c: Ditto.
12079 * cris-tdep.c: Ditto.
12081 * darwin-nat-info.c: Ditto.
12082 * darwin-nat.c: Ditto.
12083 * dbug-rom.c: Ditto.
12084 * dbxread.c: Ditto.
12087 * dec-thread.c: Ditto.
12089 * demangle.c: Ditto.
12090 * dicos-tdep.c: Ditto.
12091 * dictionary.c: Ditto.
12092 * dictionary.h: Ditto.
12093 * dink32-rom.c: Ditto.
12095 * doublest.c: Ditto.
12097 * dummy-frame.c: Ditto.
12098 * dwarf2-frame.c: Ditto.
12099 * dwarf2expr.c: Ditto.
12100 * dwarf2loc.c: Ditto.
12101 * dwarf2read.c: Ditto.
12102 * elfread.c: Ditto.
12103 * environ.c: Ditto.
12105 * event-top.h: Ditto.
12106 * exceptions.c: Ditto.
12107 * exceptions.h: Ditto.
12109 * expprint.c: Ditto.
12110 * expression.h: Ditto.
12114 * f-typeprint.c: Ditto.
12115 * f-valprint.c: Ditto.
12116 * fbsd-nat.c: Ditto.
12117 * findvar.c: Ditto.
12118 * fork-child.c: Ditto.
12121 * frv-linux-tdep.c: Ditto.
12122 * frv-tdep.c: Ditto.
12124 * gdb-stabs.h: Ditto.
12125 * gdb_assert.h: Ditto.
12126 * gdb_string.h: Ditto.
12127 * gdb_thread_db.h: Ditto.
12128 * gdb_wait.h: Ditto.
12129 * gdbarch.sh: Ditto.
12130 * gdbcore.h: Ditto.
12131 * gdbthread.h: Ditto.
12132 * gdbtypes.c: Ditto.
12133 * gdbtypes.h: Ditto.
12134 * gnu-nat.c: Ditto.
12135 * gnu-nat.h: Ditto.
12136 * gnu-v2-abi.c: Ditto.
12137 * gnu-v3-abi.c: Ditto.
12138 * go32-nat.c: Ditto.
12139 * gdbarch.c: Regenerate.
12140 * gdbarch.h: Regenerate.
12142 2011-01-07 Michael Snyder <msnyder@vmware.com>
12144 * ax-gdb.c: Adjust some long output strings.
12145 * breakpoint.c: Ditto.
12146 * charset.c: Ditto.
12148 * infcall.c: Ditto.
12150 * linux-nat.c: Ditto.
12151 * solib-pa64.c: Ditto.
12152 * solib-som.c: Ditto.
12154 2011-01-06 Tom Tromey <tromey@redhat.com>
12158 * python/python.c (GdbMethods): Add "newest_frame" method.
12159 * python/python-internal.h (gdbpy_newest_frame): Declare.
12160 * python/py-frame.c (gdbpy_newest_frame): New function.
12162 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12164 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12165 * jit.c (jit_debug): New variable.
12166 (show_jit_debug): New function.
12167 (struct target_buffer): Use ULONGEST.
12168 (bfd_open_from_target_memory): Likewise.
12169 (jit_register_code, jit_inferior_init): Add debug output.
12170 (_initialize_jit): Register "debug jit" command.
12172 2011-01-06 Tom Tromey <tromey@redhat.com>
12174 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12175 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12178 2011-01-06 Tom Tromey <tromey@redhat.com>
12180 * python/py-frame.c (frapy_block): Use get_frame_block.
12182 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12184 Do not stop on SIGPRIO signals by default
12185 * infrun.c (_initialize_infrun): Unset signal_stop and
12186 signal_print for TARGET_SIGNAL_PRIO.
12188 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12190 * ada-tasks.c: Fix style violation in comment.
12192 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12194 * linespec.c (decode_compound, find_method): Remove trailing \n
12195 at end of error string.
12196 * solib-irix.c (irix_current_sos): Likewise.
12197 * varobj.c (uninstall_variable): Likewise.
12199 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12201 * copyright.py: New script.
12202 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12203 Launch emacs without exec'ing. Call copyright.py afterwards.
12205 2011-01-05 Michael Snyder <msnyder@vmware.com>
12207 * addrmap.c: Shorten lines of >= 80 columns.
12208 * arch-utils.c: Ditto.
12209 * arch-utils.h: Ditto.
12211 * ax-general.c: Ditto.
12213 * blockframe.c: Ditto.
12214 * breakpoint.c: Ditto.
12215 * buildsym.c: Ditto.
12217 * c-typeprint.c: Ditto.
12218 * charset.c: Ditto.
12219 * coffread.c: Ditto.
12220 * command.h: Ditto.
12221 * corelow.c: Ditto.
12223 * cp-namespace.c: Ditto.
12224 * cp-support.c: Ditto.
12225 * dbug-rom.c: Ditto.
12226 * dbxread.c: Ditto.
12230 * dictionary.c: Ditto.
12232 * doublest.c: Ditto.
12233 * dwarf2-frame.c: Ditto.
12234 * dwarf2expr.c: Ditto.
12235 * dwarf2loc.c: Ditto.
12236 * dwarf2read.c: Ditto.
12237 * elfread.c: Ditto.
12239 * event-loop.c: Ditto.
12240 * event-loop.h: Ditto.
12241 * exceptions.h: Ditto.
12243 * expprint.c: Ditto.
12244 * expression.h: Ditto.
12246 * f-valprint.c: Ditto.
12247 * findcmd.c: Ditto.
12248 * frame-base.c: Ditto.
12249 * frame-unwind.c: Ditto.
12250 * frame-unwind.h: Ditto.
12254 * gdb-stabs.h: Ditto.
12255 * gdb_assert.h: Ditto.
12256 * gdb_dirent.h: Ditto.
12257 * gdb_obstack.h: Ditto.
12258 * gdbcore.h: Ditto.
12259 * gdbtypes.c: Ditto.
12260 * gdbtypes.h: Ditto.
12261 * inf-ttrace.c: Ditto.
12262 * infcall.c: Ditto.
12266 * inline-frame.h: Ditto.
12267 * language.c: Ditto.
12268 * language.h: Ditto.
12269 * libunwind-frame.c: Ditto.
12270 * libunwind-frame.h: Ditto.
12271 * linespec.c: Ditto.
12272 * linux-nat.c: Ditto.
12273 * linux-nat.h: Ditto.
12274 * linux-thread-db.c: Ditto.
12275 * machoread.c: Ditto.
12276 * macroexp.c: Ditto.
12277 * macrotab.c: Ditto.
12280 * mdebugread.c: Ditto.
12281 * memattr.c: Ditto.
12282 * minsyms.c: Ditto.
12283 * monitor.c: Ditto.
12284 * monitor.h: Ditto.
12285 * objfiles.c: Ditto.
12286 * objfiles.h: Ditto.
12288 * p-typeprint.c: Ditto.
12289 * p-valprint.c: Ditto.
12291 * printcmd.c: Ditto.
12292 * proc-events.c: Ditto.
12294 * progspace.c: Ditto.
12295 * progspace.h: Ditto.
12296 * psympriv.h: Ditto.
12297 * psymtab.c: Ditto.
12299 * regcache.c: Ditto.
12300 * regcache.h: Ditto.
12301 * remote-fileio.c: Ditto.
12303 * ser-mingw.c: Ditto.
12304 * ser-tcp.c: Ditto.
12305 * ser-unix.c: Ditto.
12308 * solib-frv.c: Ditto.
12309 * solib-irix.c: Ditto.
12310 * solib-osf.c: Ditto.
12311 * solib-pa64.c: Ditto.
12312 * solib-som.c: Ditto.
12313 * solib-sunos.c: Ditto.
12314 * solib-svr4.c: Ditto.
12315 * solib-target.c: Ditto.
12317 * somread.c: Ditto.
12319 * stabsread.c: Ditto.
12320 * stabsread.c: Ditto.
12323 * symfile-mem.c: Ditto.
12324 * symfile.c: Ditto.
12325 * symfile.h: Ditto.
12326 * symmisc.c: Ditto.
12329 * target-descriptions.c: Ditto.
12330 * target-memory.c: Ditto.
12333 * terminal.h: Ditto.
12336 * tracepoint.c: Ditto.
12337 * tracepoint.h: Ditto.
12338 * ui-file.c: Ditto.
12339 * ui-file.h: Ditto.
12341 * user-regs.c: Ditto.
12342 * user-regs.h: Ditto.
12344 * valarith.c: Ditto.
12346 * valprint.c: Ditto.
12347 * valprint.h: Ditto.
12352 * xcoffread.c: Ditto.
12353 * xcoffsolib.c: Ditto.
12354 * xcoffsolib.h: Ditto.
12355 * xml-syscall.c: Ditto.
12356 * xml-tdesc.c: Ditto.
12358 2011-01-05 Michael Snyder <msnyder@vmware.com>
12360 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12361 * cli/cli-decode.c: Ditto.
12362 * cli/cli-dump.c: Ditto.
12363 * cli/cli-logging.c: Ditto.
12364 * cli/cli-script.c: Ditto.
12365 * cli/cli-setshow.c: Ditto.
12366 * common/signals.c: Ditto.
12367 * mi/mi-cmd-break.c: Ditto.
12368 * mi/mi-cmd-disas.c: Ditto.
12369 * mi/mi-cmd-stack.c: Ditto.
12370 * mi/mi-cmd-var.c: Ditto.
12371 * mi/mi-cmds.c: Ditto.
12372 * mi/mi-common.h: Ditto.
12373 * mi/mi-console.c: Ditto.
12374 * mi/mi-interp.c: Ditto.
12375 * mi/mi-main.c: Ditto.
12376 * osf-share/cma_attr.c: Ditto.
12377 * osf-share/cma_deb_core.h: Ditto.
12378 * osf-share/cma_debug_client.h: Ditto.
12379 * osf-share/cma_handle.h: Ditto.
12380 * osf-share/cma_mutex.h: Ditto.
12381 * osf-share/cma_stack_int.h: Ditto.
12382 * osf-share/cma_tcb_defs.h: Ditto.
12383 * python/py-auto-load.c: Ditto.
12384 * python/py-breakpoint.c: Ditto.
12385 * python/py-cmd.c: Ditto.
12386 * python/py-frame.c: Ditto.
12387 * python/py-objfile.c: Ditto.
12388 * python/py-param.c: Ditto.
12389 * python/py-progspace.c: Ditto.
12390 * python/py-symbol.c: Ditto.
12391 * python/py-value.c: Ditto.
12392 * python/python-internal.h: Ditto.
12393 * python/python.c: Ditto.
12394 * tui/tui-data.c: Ditto.
12395 * tui/tui-disasm.c: Ditto.
12396 * tui/tui-hooks.c: Ditto.
12397 * tui/tui-io.c: Ditto.
12398 * tui/tui-layout.c: Ditto.
12399 * tui/tui-regs.c: Ditto.
12400 * tui/tui-source.c: Ditto.
12401 * tui/tui-stack.c: Ditto.
12402 * tui/tui-win.c: Ditto.
12403 * tui/tui-windata.c: Ditto.
12404 * tui/tui-winsource.c: Ditto.
12406 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12408 * configure.ac, gdb.1: Copyright year update.
12410 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12412 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12413 this_pc_in_block, morestack_msym and morestack_name. Check for
12414 "__morestack" minimal symbol there.
12416 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12418 * symfile.c (find_sym_fns): Add call to dont_repeat.
12420 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12422 Copyright year update in most files (performed by copyright.sh).
12424 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12426 * top.c (print_gdb_version): Update copyright year in version output.
12428 For older changes see ChangeLog-2010.
12434 version-control: never