1 2011-12-16 Pedro Alves <pedro@codesourcery.com>
3 * inf-loop.c: Include top.h.
4 (inferior_event_handler): Call check_frame_language.
5 * top.c (check_frame_language_change): New, factored out from ...
6 (execute_command): ... this. Use check_frame_language_change.
7 * top.h (check_frame_language_change): Declare.
9 2011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
11 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
14 2011-12-16 Doug Evans <dje@google.com>
16 * NEWS: Add entry for stdio gdbserver.
18 2011-12-16 Phil Muldoon <pmuldoon@redhat.com>
20 * python/python.c: Define python_excp_enums.
21 (eval_python_from_control_command): Do not call gdbpy_print_stack.
22 (python_command): Ditto.
23 (gdbpy_print_stack): Rewrite to use new enum constants.
24 (maint_set_python): Remove function.
25 (maint_show_python): Ditto.
26 (_initialize_python): Do not add "maint" commands. Add "set/show
27 python print-stack commands".
28 * NEWS: Update to reflect removal for "maint set/show
31 2011-12-15 Doug Evans <dje@google.com>
33 * exceptions.c (catcher_list_size): New function.
34 (last_message): Delete.
35 (exception_messages, exception_messages_size): New static globals.
36 (throw_it): Use exception_messages array to handle nested calls.
38 2011-12-15 Tom Tromey <tromey@redhat.com>
40 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
43 2011-12-14 Doug Evans <dje@google.com>
45 * defs.h (wait_to_die_with_timeout): Declare.
46 * utils.c: #include "gdb_wait.h".
47 (sigalrm_handler, wait_to_die_with_timeout): New functions.
48 * ser-pipe.c: Don't #include "gdb_wait.h".
49 (pipe_close): Give child a chance to die on its own after closing
50 its stdin before SIGTERM'ing it.
52 2011-12-14 Joel Brobecker <brobecker@adacore.com>
53 Tom Tromey <tromey@redhat.com>
55 * ada-lang.c (add_nonlocal_symbols): Initialize data to
56 all zeros. Remove setting of data.arg_sym to NULL.
58 2011-12-14 Pedro Alves <pedro@codesourcery.com>
62 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
64 (linux_nat_prepare_to_resume): New global.
66 (purge_lwp_list): Use it.
67 (add_lwp): Call linux_nat_new_thread even on the first LWP.
68 Adjust to interface change.
69 (delete_lwp): Call lwp_free instead of xfree.
70 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
71 (linux_handle_syscall_trap, linux_handle_extended_wait)
72 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
73 linux_nat_prepare_to_resume before resuming.
74 (linux_stop_lwp): New.
75 (linux_nat_set_new_thread): Adjust.
76 (linux_nat_set_prepare_to_resume): New.
77 * linux-nat.h (struct arch_lwp_info): Forward declare.
78 (struct lwp_info) <arch_private>: New field.
79 (linux_stop_lwp): Declare.
80 (linux_nat_set_new_thread): Adjust.
81 (linux_nat_set_prepare_to_resume): New.
83 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
84 (struct i386_debug_reg_state): Move to i386-nat.h.
86 (i386_debug_reg_state): New.
87 (i386_update_inferior_debug_regs): Simplify.
88 (i386_stopped_data_address): Use the debug register state from the
89 inferior, not from the local cache.
90 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
91 unset_status fields. New get_addr and get_control fields.
92 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
93 (DR_NADDR, DR_STATUS): New.
94 (struct i386_debug_reg_state): Moved from i386-nat.c.
96 * amd64-linux-nat.c (struct arch_lwp_info): New.
97 (amd64_linux_dr): Delete global.
98 (amd64_linux_dr_get_addr): New.
99 (amd64_linux_dr_get_control): New.
100 (amd64_linux_dr_unset_status): Delete.
101 (amd64_linux_dr_set_addr): Reimplement.
102 (amd64_linux_dr_reset_addr): Delete.
103 (update_debug_registers_callback): New.
104 (amd64_linux_dr_set_control): Reimplement.
105 (amd64_linux_dr_set_addr): Reimplement.
106 (amd64_linux_prepare_to_resume): New.
107 (amd64_linux_new_thread): Change parameter to an lwp pointer.
109 (_initialize_amd64_linux_nat): No longer install
110 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
111 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
112 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
113 amd64_linux_prepare_to_resume.
114 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
115 (DR_CONTROL): Delete.
116 (struct arch_lwp_info): New.
117 (i386_linux_dr): Delete global.
118 (i386_linux_dr_set_control): Reimplement.
119 (i386_linux_dr_get_addr): New.
120 (i386_linux_dr_set_addr): Reimplement.
121 (i386_linux_dr_get_control): New.
122 (update_debug_registers_callback): New.
123 (i386_linux_dr_unset_status): Delete.
124 (i386_linux_dr_set_addr): Reimplement.
125 (i386_linux_prepare_to_resume): New.
126 (i386_linux_new_thread): Change parameter to an lwp pointer.
128 (_initialize_i386_linux_nat): No longer install
129 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
130 i386_linux_dr_get_control as i386_dr_low.get_control. Install
131 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
132 i386_linux_prepare_to_resume.
134 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
136 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
137 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
138 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
139 * s390-nat.c (s390_fix_watch_points): Likewise.
141 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
142 (DR_CONTROL): Delete.
143 (i386_darwin_dr_reset_addr): Delete.
144 (i386_darwin_dr_get_addr): New.
145 (i386_darwin_dr_get_control): New.
147 (go32_get_dr7, go32_get_dr): New.
148 (init_go32_ops): No longer install i386_dr_low.reset_addr.
149 Install go32_get_dr7 as i386_dr_low.get_control. Install
150 go32_get_dr as i386_dr_low.get_addr.
151 * i386bsd-nat.c (i386bsd_dr_get): New.
152 (i386bsd_dr_reset_addr): Delete.
153 (i386bsd_dr_get_addr): New.
154 (i386bsd_dr_get_status): Use i386bsd_dr_get.
155 (i386bsd_dr_get_control): New.
156 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
157 (i386bsd_dr_get_addr): New.
158 (i386bsd_dr_get_control): New.
159 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
160 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
161 i386bsd_dr_get_control as i386_dr_low.get_control. Install
162 i386bsd_dr_get_addr as i386_dr_low.get_addr.
163 * windows-nat.c (init_windows_ops): No longer install
164 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
165 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
166 as i386_dr_low.get_addr.
167 (cygwin_get_dr): New.
168 (cygwin_get_dr7): New.
170 2011-12-14 Pedro Alves <pedro@codesourcery.com>
172 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
173 target_write_raw_memory.
174 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
175 target_write_raw_memory.
176 * microblaze-linux-tdep.c
177 (microblaze_linux_memory_remove_breakpoint): Use
178 target_write_raw_memory.
179 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
180 target_write_raw_memory.
182 2011-12-14 Joel Brobecker <brobecker@adacore.com>
184 * linespec.c (decode_line_internal): Make static.
186 2011-12-14 Yao Qi <yao@codesourcery.com>
188 * breakpoint.c (create_breakpoint): Set canonical.addr_string
189 for static tracepoint.
191 2011-12-13 Joel Brobecker <brobecker@adacore.com>
193 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
194 * version.in: Bump version to 7.4.50.20111213-cvs.
196 2011-12-13 Joel Brobecker <brobecker@adacore.com>
198 * NEWS: Create a new section for the next release branch.
199 Rename the section of the current branch, now that it has
202 2011-12-11 Joel Brobecker <brobecker@adacore.com>
204 * ada-lang.c (ada_exception_support_info_sniffer): Improve
207 2011-12-11 Joel Brobecker <brobecker@adacore.com>
209 * ada-lang.c (struct ada_inferior_data) [exception_info]:
211 (exception_info): Delete.
212 (ada_exception_support_info_sniffer): Get exception_support_info
213 data from our per-inferior data. Adjust code accordingly.
214 (ada_unhandled_exception_name_addr_from_raise): Likewise.
215 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
216 (ada_executable_changed_observer): Delete.
217 (_initialize_ada_language): Remove call to
218 observer_attach_executable_changed.
220 2011-12-11 Joel Brobecker <brobecker@adacore.com>
222 * ada-lang.c (ada_has_this_exception_support): Raise an error
223 if we could find the Ada exception hook in the Ada runtime,
224 but no debugging info for that hook.
226 2011-12-11 Joel Brobecker <brobecker@adacore.com>
228 * ada-lang.c (ada_has_this_exception_support): New function,
229 extracted out of ada_exception_sal and ada_exception_sal.
230 (ada_exception_support_info_sniffer): Simplify by using
231 ada_has_this_exception_support.
232 (ada_exception_sal): Replace unnecessary checks by assertions.
233 Minor simplifications.
235 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
237 * breakpoint.c (update_global_location_list): Remove nested
238 definition of `b'(-Wshadow).
240 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
242 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
243 `error_flag'(-Wshadow).
245 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
247 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
250 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
252 * annotate.c (annotate_array_section_begin): Rename `index' to
255 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
257 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
260 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
262 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
263 `syscall' to `syscall_number'(-Wshadow).
265 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
267 * ada-lang.c (remove_extra_symbols): Rename `remove' to
268 `remove_p'(-Wshadow).
270 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
272 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
275 2011-12-10 Doug Evans <dje@google.com>
277 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
278 debug_types_section. All uses updated.
279 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
280 to is_debug_types_section.
282 * python/py-auto-load.c (source_section_scripts): Call xfree
285 2011-12-10 Hui Zhu <teawater@gmail.com>
286 Yao Qi <yao@codesourcery.com>
288 * tracepoint.c (start_tracing): Clear `inserted' flag.
290 2011-12-10 Hui Zhu <teawater@gmail.com>
292 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
294 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
296 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
299 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
301 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
302 `marker' variables to `sal2' and `tpmarker' respectively
305 2011-12-09 Andrew Pinski <apinski@cavium.com>
307 * linespec.c (hash_address_entry): Use iterative_hash_object on each
308 field rather than the struct itself.
310 2011-12-09 Tom Tromey <tromey@redhat.com>
312 * breakpoint.c (compare_breakpoints): New function.
313 (clear_command): Remove duplicate breakpoints. Properly clean
316 2011-12-08 Maciej W. Rozycki <macro@mips.com>
317 Maciej W. Rozycki <macro@codesourcery.com>
319 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
320 address chunks retrieved from decoded lui/addiu pairs.
322 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
324 * mips-tdep.c (extended_offset): Correct calculation.
325 (unpack_mips16): Correct bitfield positions used for extraction
326 of the immediate argument; fix sign-extension of same.
327 (extended_mips16_next_pc): Correct B instruction's offset
328 calculation. Correct register decoding of the BEQZ and BNEZ
329 as well as jump-register instructions. Handle compact jumps.
331 2011-12-08 Tom Tromey <tromey@redhat.com>
333 * objfiles.h (struct objfile): Remove obsolete comment.
334 * objfiles.c (build_objfile_section_table): Remove obsolete
337 2011-12-07 Stan Shebs <stan@codesourcery.com>
339 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
340 maintainer of the tic6x target.
342 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
344 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
345 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
346 (arm_deal_with_atomic_sequence_raw): Likewise.
347 (arm_deal_with_atomic_sequence): Likewise.
348 (arm_software_single_step): Call it.
349 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
351 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
353 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
355 * s390-tdep.h: Likewise.
357 2011-12-07 Tristan Gingold <gingold@adacore.com>
359 * machoread.c (macho_symtab_read): Do not consider N_OPT as
360 a debugging stab. Improve complaint message.
362 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
364 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
365 load adjustment if still within the prologue.
367 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
369 * mips-tdep.c (mips32_next_pc): Fix floating point condition
372 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
374 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
375 of BLTZ* and BGEZ* instructions.
377 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
379 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
380 performed to determine whether an address refers to standard
382 (mips16_next_pc): Use mips_pc_is_mips16 instead of
385 2011-12-06 Pedro Alves <pedro@codesourcery.com>
387 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
388 (breakpoint_xfer_memory): ... this. Change prototype. Handle
390 * breakpoint.h (breakpoint_restore_shadows): Delete.
391 (breakpoint_xfer_memory): Declare.
392 * mem-break.c (default_memory_insert_breakpoint)
393 (default_memory_remove_breakpoint): Use target_write_raw_memory.
394 (memory_xfer_partial): Rename to ...
395 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
397 (memory_xfer_partial): New.
398 (target_write_raw_memory): New.
399 * target.h (target_write_raw_memory): New.
401 2011-12-06 Doug Evans <dje@google.com>
403 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
405 2011-12-06 Joel Brobecker <brobecker@acacore.com>
407 * language.h (struct language_defn): Add new component
408 la_symbol_name_compare.
409 * symfile.h (struct quick_symbol_functions): Update the profile
410 of parameter "name_matcher" for the expand_symtabs_matching
411 method. Update the documentation accordingly.
412 * ada-lang.h (ada_name_for_lookup): Add declaration.
413 * ada-lang.c (ada_name_for_lookup): New function, extracted out
414 from ada_iterate_over_symbols.
415 (ada_iterate_over_symbols): Do not encode symbol name anymore.
416 (ada_expand_partial_symbol_name): Adjust profile.
417 (ada_language_defn): Add value for la_symbol_name_compare field.
418 * linespec.c: #include "ada-lang.h".
419 (iterate_name_matcher): Add language parameter. Replace call
420 to strcmp_iw by call to language->la_symbol_name_compare.
421 (decode_variable): Encode COPY if current language is Ada.
422 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
423 of name_matcher parameter. Adjust call to name_matcher.
424 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
425 (expand_partial_symbol_names): Update profile of parameter "fun".
426 * psymtab.h (expand_partial_symbol_names): Update profile of
428 * symtab.c (demangle_for_lookup): Update function documentation.
429 (search_symbols_name_matches): Add language parameter.
430 (expand_partial_symbol_name): Likewise.
431 * c-lang.c (c_language_defn, cplus_language_defn)
432 (asm_language_defn, minimal_language_defn): Add value for
433 la_symbol_name_compare field.
434 * d-lang.c (d_language_defn): Likewise.
435 * f-lang.c (f_language_defn): Ditto.
436 * jv-lang.c (java_language_defn): Ditto.
437 * m2-lang.c (m2_language_defn): Ditto.
438 * objc-lang.c (objc_language_defn): Ditto.
439 * opencl-lang.c (opencl_language_defn): Ditto.
440 * p-lang.c (pascal_language_defn): Ditto.
441 * language.c (unknown_language_defn, auto_language_defn)
442 (local_language_defn): Ditto.
444 2011-12-06 Tom Tromey <tromey@redhat.com>
446 * linespec.c (iterate_over_all_matching_symtabs): Use
447 LA_ITERATE_OVER_SYMBOLS.
448 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
449 (find_function_symbols, decode_variable): Remove Ada special
451 * language.h (struct language_defn) <la_iterate_over_symbols>: New
453 (LA_ITERATE_OVER_SYMBOLS): New macro.
454 * language.c (unknown_language_defn, auto_language_defn)
455 (local_language_defn): Update.
456 * c-lang.c (c_language_defn, cplus_language_defn)
457 (asm_language_defn, minimal_language_defn): Update.
458 * d-lang.c (d_language_defn): Update.
459 * f-lang.c (f_language_defn): Update.
460 * jv-lang.c (java_language_defn): Update.
461 * m2-lang.c (m2_language_defn): Update.
462 * objc-lang.c (objc_language_defn): Update.
463 * opencl-lang.c (opencl_language_defn): Update.
464 * p-lang.c (pascal_language_defn): Update.
465 * ada-lang.c (ada_iterate_over_symbols): New function.
466 (ada_language_defn): Update.
468 2011-12-06 Tom Tromey <tromey@redhat.com>
469 Joel Brobecker <brobecker@acacore.com>
471 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
472 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
473 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
474 PR shlibs/8929, PR shlibs/7393:
475 * python/py-type.c (compare_maybe_null_strings): Rename from
477 (check_types_equal): Update.
478 * utils.c (compare_strings): New function.
479 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
481 * tracepoint.c (scope_info): Update.
482 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
483 * symtab.h (iterate_over_minimal_symbols)
484 (iterate_over_some_symtabs, iterate_over_symtabs)
485 (find_pcs_for_symtab_line, iterate_over_symbols)
486 (demangle_for_lookup): Declare.
487 (expand_line_sal): Remove.
488 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
489 (lookup_symtab_callback): New functions.
490 (lookup_symtab): Rewrite.
491 (demangle_for_lookup): New function, extract from
492 lookup_symbol_in_language.
493 (lookup_symbol_in_language): Use it.
494 (iterate_over_symbols): New function.
495 (find_line_symtab): Update.
496 (find_pcs_for_symtab_line): New functions.
497 (find_line_common): Add 'start' argument.
498 (decode_line_spec): Update. Change argument to 'flags', change
500 (append_expanded_sal): Remove.
501 (append_exact_match_to_sals): Remove.
502 (expand_line_sal): Remove.
503 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
505 <map_symtabs_matching_filename>: New field.
506 * stack.c (func_command): Only look in the current program space.
507 Use DECODE_LINE_FUNFIRSTLINE.
508 * source.c (line_info): Set pspace on sal. Check program space in
509 the loop. Use DECODE_LINE_LIST_MODE.
510 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
511 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
512 * python/python.c (gdbpy_decode_line): Update.
513 * psymtab.c (partial_map_expand_apply): New function.
514 (partial_map_symtabs_matching_filename): Rename from
515 lookup_partial_symbol. Update arguments.
516 (lookup_symtab_via_partial_symtab): Remove.
517 (psym_functions): Update.
518 * objc-lang.h (parse_selector, parse_method): Don't declare.
520 * objc-lang.c (parse_selector, parse_method): Now static.
521 (find_methods): Change arguments. Fill in a vector of symbol
523 (uniquify_strings): New function.
524 (find_imps): Change arguments.
525 * minsyms.c (iterate_over_minimal_symbols): New function.
526 * linespec.h (enum decode_line_flags): New.
527 (struct linespec_sals): New.
528 (struct linespec_result) <canonical>: Remove.
529 <pre_expanded, addr_string, sals>: New fields.
530 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
531 (decode_line_full): Declare.
532 (decode_line_1): Update.
533 * linespec.c (struct address_entry, struct linespec_state, struct
534 collect_info): New types.
535 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
536 (eq_address_entry, maybe_add_address): New functions.
537 (total_number_of_methods): Remove.
538 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
540 (find_methods): Change arguments. Don't canonicalize input.
542 (add_matching_methods, add_constructors)
543 (build_canonical_line_spec): Remove.
544 (filter_results, convert_results_to_lsals): New functions.
545 (decode_line_2): Change arguments. Rewrite for new data
547 (decode_line_internal): Rename from decode_line_1. Change
548 arguments. Add cleanups. Update for new data structures.
549 (linespec_state_constructor, linespec_state_destructor)
550 (decode_line_full, decode_line_1): New functions.
551 (decode_indirect): Change arguments. Update.
552 (locate_first_half): Use skip_spaces.
553 (decode_objc): Change arguments. Update for new data structures.
555 (decode_compound): Change arguments. Add cleanups. Remove
556 fallback code, replace with error.
557 (struct decode_compound_collector): New type.
558 (collect_one_symbol): New function.
559 (lookup_prefix_sym): Change arguments. Update.
560 (compare_symbol_name, add_all_symbol_names_from_pspace)
561 (find_superclass_methods ): New functions.
562 (find_method): Rewrite.
563 (struct symtab_collector): New type.
564 (add_symtabs_to_list, collect_symtabs_from_filename): New
566 (symtabs_from_filename): Change API. Rename from
567 symtab_from_filename.
568 (collect_function_symbols): New function.
569 (find_function_symbols): Change API. Rename from
570 find_function_symbol. Rewrite.
571 (decode_all_digits): Change arguments. Rewrite.
572 (decode_dollar): Change arguments. Use decode_variable.
573 (decode_label): Change arguments. Rewrite.
574 (collect_symbols): New function.
575 (minsym_found): Change arguments. Rewrite.
576 (check_minsym, search_minsyms_for_name)
577 (add_matching_symbols_to_info): New function.
578 (decode_variable): Change arguments. Iterate over all symbols.
579 (symbol_found): Remove.
580 (symbol_to_sal): New function.
581 (init_linespec_result, destroy_linespec_result)
582 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
584 (decode_digits_list_mode, decode_digits_ordinary): New functions.
585 * dwarf2read.c (dw2_map_expand_apply): New function.
586 (dw2_map_symtabs_matching_filename): Rename from
587 dw2_lookup_symtab. Change arguments.
588 (dwarf2_gdb_index_functions): Update.
589 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
590 * defs.h (compare_strings): Declare.
591 * cli/cli-cmds.c (compare_strings): Move to utils.c.
592 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
594 (compare_symtabs, filter_sals): New functions.
595 * breakpoint.h (struct bp_location) <line_number, source_file>:
597 (struct breakpoint) <line_number, source_file>: Remove.
599 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
600 (momentary_breakpoint_from_master, add_location_to_breakpoint):
601 Update for changes to locations.
602 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
604 (create_breakpoint_sal): Add 'filter' argument.
605 (remove_sal, expand_line_sal_maybe): Remove.
606 (create_breakpoints_sal): Remove 'sals' argument. Handle
607 pre-expanded sals and the filter.
608 (parse_breakpoint_sals): Use decode_line_full.
609 (check_fast_tracepoint_sals): Use get_sal_arch.
610 (create_breakpoint): Create a linespec_sals. Update.
611 (break_range_command): Use decode_line_full. Update.
612 (until_break_command): Update.
613 (clear_command): Update match conditions for linespec.c changes.
614 Use DECODE_LINE_LIST_MODE.
615 (say_where): Update for changes to locations.
616 (bp_location_dtor): Free 'source_file'.
617 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
618 (update_static_tracepoint): Update for changes to locations.
619 (update_breakpoint_locations): Disable ranged breakpoint if too
620 many locations match. Update.
621 (addr_string_to_sals): Use decode_line_full. Resolve all sal
623 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
624 (decode_line_spec_1): Update. Change argument name to 'flags',
625 change interpretation.
626 * block.h (block_containing_function): Declare.
627 * block.c (block_containing_function): New function.
628 * skip.c (skip_function_command): Update.
629 (skip_re_set): Update.
630 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
631 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
634 2011-12-06 Tom Tromey <tromey@redhat.com>
636 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
637 breakpoint's pspace to be NULL.
638 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
639 * breakpoint.c (init_raw_breakpoint): Conditionally set
641 (init_breakpoint_sal): Don't set breakpoint's pspace.
642 (prepare_re_set_context): Conditionally switch program space.
643 (addr_string_to_sals): Check executing_startup on location's
646 2011-12-06 Tom Tromey <tromey@redhat.com>
648 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
649 * breakpoint.c (should_be_inserted): Explicitly check if program
650 space is executing startup.
651 (describe_other_breakpoints): Update.
652 (disable_breakpoints_before_startup): Change executing_startup
653 earlier. Remove loop.
654 (enable_breakpoints_after_startup): Likewise.
655 (init_breakpoint_sal): Don't use bp_startup_disabled.
656 (create_breakpoint): Don't use bp_startup_disabled.
657 (update_global_location_list): Use should_be_inserted.
658 (bkpt_re_set): Update.
660 2011-12-06 Tom Tromey <tromey@redhat.com>
662 * python/lib/gdb/command/pretty_printers.py
663 (InfoPrettyPrinter.invoke1): Remove extra double quote.
665 2011-12-06 Tom Tromey <tromey@redhat.com>
669 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
671 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
672 (S390_LAST_BREAK_REGNUM): Likewise.
673 (S390_SYSTEM_CALL_REGNUM): Likewise.
674 (S390_NUM_REGS): Update.
676 (s390_regmap_last_break): Add declaration.
677 (s390x_regmap_last_break): Likewise.
678 (s390_regmap_system_call): Likewise.
680 (tdesc_s390_linux32v1): Add declaration.
681 (tdesc_s390_linux32v2): Likewise.
682 (tdesc_s390_linux64v1): Likewise.
683 (tdesc_s390_linux64v2): Likewise.
684 (tdesc_s390x_linux64v1): Likewise.
685 (tdesc_s390x_linux64v2): Likewise.
687 * s390-tdep.c: Include new target description files
688 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
689 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
690 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
691 (s390_cannot_store_register): New function.
692 (s390_write_pc): Likewise.
693 (s390_dwarf_regmap): Add fields for new registers.
694 (s390_regmap_gregset): Likewise.
695 (s390x_regmap_gregset): Likewise.
696 (s390_regmap_fpregset): Likewise.
697 (s390_regmap_upper): Likewise.
698 (s390_regmap_last_break): New variable.
699 (s390x_regmap_last_break): Likewise.
700 (s390_regmap_system_call): Likewise.
701 (s390_last_break_regset): Likewise.
702 (s390x_last_break_regset): Likewise.
703 (s390_system_call_regset): Likewise.
704 (s390_upper_regset_sections): Rename to ...
705 (s390_linux64_regset_sections): ... this.
706 (s390_linux32_regset_sections): New variable.
707 (s390x_linux64_regset_sections): Likewise.
708 (s390_linux32v1_regset_sections): Likewise.
709 (s390_linux32v2_regset_sections): Likewise.
710 (s390_linux64v1_regset_sections): Likewise.
711 (s390_linux64v2_regset_sections): Likewise.
712 (s390x_linux64v1_regset_sections): Likewise.
713 (s390x_linux64v2_regset_sections): Likewise.
714 (s390_regset_from_core_section): Handle .reg-s390-last-break and
715 .reg-s390-system-call core file sections.
716 (s390_core_read_description): Check for presence of
717 .reg-s390-last-break and .reg-s390-system-call core file
718 sections and return appropriate target description.
719 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
720 "last_break" and "system_call" in target description. Install
721 appropriate gdbarch_core_regset_sections array.
722 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
723 (_initialize_s390_tdep): Initialize additional target descriptions.
725 * s390-nat.c: Include "elf/common.h".
726 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
727 (have_regset_last_break): New static variable.
728 (have_regset_system_call): Likewise.
729 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
730 (s390_native_collect): Likewise.
731 (fetch_regset, store_regset, check_regset): New functions.
732 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
733 and S390_SYSTEM_CALL_REGNUM.
734 (s390_linux_store_inferior_registers): Likewise.
735 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
736 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
738 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
739 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
740 (s390-linux32v1-expedite): Define.
741 (s390-linux32v2-expedite): Likewise.
742 (s390-linux64v1-expedite): Likewise.
743 (s390-linux64v2-expedite): Likewise.
744 (s390x-linux64v1-expedite): Likewise.
745 (s390x-linux64v2-expedite): Likewise.
747 * features/s390-linux32.xml: Add orig_r2 register.
748 * features/s390-linux64.xml: Likewise.
749 * features/s390x-linux64.xml: Likewise.
750 * features/s390-linux32v1.xml: New file.
751 * features/s390-linux32v2.xml: Likewise.
752 * features/s390-linux64v1.xml: Likewise.
753 * features/s390-linux64v2.xml: Likewise.
754 * features/s390x-linux64v1.xml: Likewise.
755 * features/s390x-linux64v2.xml: Likewise.
757 * features/s390-linux32.c: Regenerate.
758 * features/s390-linux64.c: Likewise.
759 * features/s390x-linux64.c: Likewise.
760 * features/s390-linux32v1.c: New generated file.
761 * features/s390-linux32v2.c: Likewise.
762 * features/s390-linux64v1.c: Likewise.
763 * features/s390-linux64v2.c: Likewise.
764 * features/s390x-linux64v1.c: Likewise.
765 * features/s390x-linux64v2.c: Likewise.
767 * regformats/s390-linux32.dat: Regenerate.
768 * regformats/s390-linux64.dat: Regenerate.
769 * regformats/s390x-linux64.dat: Regenerate.
770 * regformats/s390-linux32v1.dat: New generated file.
771 * regformats/s390-linux32v2.dat: Likewise.
772 * regformats/s390-linux64v1.dat: Likewise.
773 * regformats/s390-linux64v2.dat: Likewise.
774 * regformats/s390x-linux64v1.dat: Likewise.
775 * regformats/s390x-linux64v2.dat: Likewise.
777 2011-12-05 Pedro Alves <pedro@codesourcery.com>
779 * linux-nat.c (resume_stopped_resumed_lwps): Call
782 2011-12-05 Pedro Alves <pedro@codesourcery.com>
784 * breakpoint.c: Include record.h.
785 (breakpoints_always_inserted_mode): Return false when the record
788 2011-12-05 Pedro Alves <pedro@codesourcery.com>
790 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
791 Reinstate perror_with_name call on ptrace error. Remove #if 0.
792 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
793 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
795 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
797 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
800 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
802 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
804 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
806 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
809 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
811 Fix compilation --without-expat.
812 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
814 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
816 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
817 Jan Kratochvil <jan.kratochvil@redhat.com>
819 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
820 * features/library-list-svr4.dtd: New file.
821 * remote.c (PACKET_qXfer_libraries_svr4): New.
822 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
823 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
824 * solib-svr4.c (struct svr4_library_list): New.
825 [HAVE_LIBEXPAT]: Include xml-support.h.
826 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
827 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
828 [HAVE_LIBEXPAT] (svr4_library_list_children)
829 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
830 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
831 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
832 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
833 (svr4_read_so_list): Extend the corruption message by addresses.
834 (svr4_current_sos): New variable library_list, call
835 svr4_current_sos_via_xfer_libraries.
836 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
838 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
841 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
842 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
844 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
847 * dwarf2read.c (process_psymtab_comp_unit): Set
848 PSYMTABS_ADDRMAP_SUPPORTED.
849 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
850 validity. New field psymtabs_addrmap_supported.
851 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
852 psymtabs_addrmap_supported.
853 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
854 !PSYMTABS_ADDRMAP_SUPPORTED.
855 (dump_psymtab, maintenance_info_psymtabs): Print also
856 psymtabs_addrmap_supported.
858 2011-12-01 Doug Evans <dje@google.com>
860 * python/py-type.c (type_object_methods): Fix "array" doc string.
862 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
864 * source.c (print_source_lines_base): Fix missing braces on else
865 clause leading to additional output.
867 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
869 * s390-nat.c (SUBOFF): Remove.
870 (s390_native_supply, s390_native_collect): New functions.
871 (supply_gregset, supply_fpregset): Use s390_native_supply.
872 (fill_gregset, fill_fpregset): Use s390_native_collect.
874 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
875 (s390_unwind_pseudo_register): New function.
876 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
877 registers instead of PC and CC.
878 (s390_backchain_frame_unwind_cache): Likewise.
879 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
881 (s390_trad_frame_prev_register): New function.
882 (s390_frame_prev_register): Use it.
883 (s390_sigtramp_frame_prev_register): Likewise.
884 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
885 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
886 special callback to unwind any pseudo.
888 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
889 * features/s390-core64.xml: Likewise.
890 * features/s390x-core64.xml: Likewise.
891 * features/s390-linux32.c: Regenerate.
892 * features/s390-linux64.c: Likewise.
893 * features/s390x-linux64.c: Likewise.
895 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
897 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
899 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
901 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
902 instruction. Add more diagnostic output.
904 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
906 * MAINTAINERS (Write After Approval): Add myself to the list.
908 2011-11-29 Sanjoy Das <sdas@igalia.com>
910 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
911 (jit_bfd_try_read_symtab): Fix comments.
913 2011-11-28 DJ Delorie <dj@redhat.com>
915 * NEWS: Mention RL78 simulator.
917 2011-11-28 Joel Brobecker <brobecker@adacore.com>
919 * symfile.h (struct quick_symbol_functions): Fix the documentation
920 of field map_matching_symbols, as symbols are sorted using
921 strcmp_iw_ordered, not strcmp_iw.
923 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
925 * symfile.h (struct quick_symbol_functions): Update the
926 documentation for field map_matching_symbols.
928 2011-11-28 Joel Brobecker <brobecker@adacore.com>
930 * ada-lang.c (compare_names): Fix wrong return value in case
931 string1 starts with the same contents as string2, followed
932 by an underscore that do not start a symbol name suffix.
934 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
939 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
940 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
941 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
943 * python/py-type.c (typy_strip_typedefs): Ditto.
944 (typy_legacy_template_argument): Ditto.
945 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
946 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
948 2011-11-27 Joel Brobecker <brobecker@acacore.com>
950 * remote.c (remote_get_tracepoint_status): Delete addrbuf
951 local variable. Avoid use of sprintf_vma.
953 2011-11-27 Sanjoy Das <sdas@igalia.com>
955 Fix regression in jit.exp.
956 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
957 (jit_register_code): Set the jit_objfile_data field to the correct
960 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
962 * alpha-tdep.c (br_opcode): New.
963 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
964 (alpha_deal_with_atomic_sequence): New function.
965 (alpha_gdbarch_init): Handle single stepping of atomic sequences
966 with alpha_deal_with_atomic_sequence.
968 2011-11-24 Tristan Gingold <gingold@adacore.com>
970 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
971 fields. Add oso_sym, end_sym and nbr_syms.
972 (macho_register_oso): Change interface.
973 (macho_symtab_add_minsym): New function.
974 (macho_symtab_read): Rewritten.
975 (get_archive_prefix_len): Remove trailing blanks.
976 (oso_el_compare_name): Add comment.
977 (struct macho_sym_hash_entry): New structure.
978 (macho_relocate_common_syms): Remove.
979 (macho_sym_hash_newfunc): New function.
980 (macho_resolve_oso_sym_with_minsym): Likewise.
981 (macho_add_oso_symfile): Rewritten.
982 (macho_symfile_read_all_oso): Remove trailing blanks.
983 Adjust code to free oso vector.
984 (macho_symfile_read): Likewise.
985 Move code to initialize minimal symbol
987 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
989 * mips-tdep.c (extended_offset): Fix formatting.
991 2011-11-23 Doug Evans <dje@google.com>
993 * dwarf2read.c (dw2_lookup_symtab): Add comment.
994 (dw2_expand_symtabs_with_filename): Ditto.
995 (dw2_expand_symtabs_matching): Ditto.
996 (dw2_map_symbol_filenames): Ditto.
998 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1000 * ada-lang.c (assign_aggregate): Minor reformatting.
1002 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1004 * ada-lang.c (assign_aggregate): Remove declaration of local
1005 variable `i' which is shadowing another variable with the same
1006 name declared in the outer scope.
1008 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1010 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1011 calls throughout this file.
1013 2011-11-23 Joel Brobecker <brobecker@adacore.com>
1015 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1018 2011-11-22 Tom Tromey <tromey@redhat.com>
1021 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1022 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1023 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1024 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1025 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1026 (print_it_catch_syscall, print_it_catch_exec)
1027 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1028 (bpstat_print): Add 'kind' argument. Handle
1029 TARGET_WAITKIND_LOADED.
1030 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1031 handle TARGET_WAITKIND_LOADED here.
1032 * breakpoint.h (bpstat_print): Update.
1034 2011-11-22 Tom Tromey <tromey@redhat.com>
1036 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1038 2011-11-22 Tom Tromey <tromey@redhat.com>
1040 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1041 Use static_assert to check the size of
1042 async_reason_string_lookup.
1043 * common/gdb_assert.h (static_assert): New macro.
1045 2011-11-22 Alan Modra <amodra@gmail.com>
1047 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1048 destination calculation. Don't expect >> to sign extend. Don't
1049 add a break if branch lands inside the sequence anywhere.
1051 2011-11-21 Keith Seitz <keiths@redhat.com>
1053 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1054 -var-evaluate-expression of an enumeration and fix expected result.
1055 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1057 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1059 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1060 the case where osdata->items is empty. Rename column names to a
1061 canonical form to avoid problems with unusual column names.
1063 2011-11-21 Yao Qi <yao@codesourcery.com>
1065 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1067 2011-11-20 Stan Shebs <stan@codesourcery.com>
1069 * NEWS: Mention tracepoint additions.
1070 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1071 * breakpoint.c (print_one_breakpoint_location): Identify
1072 tracepoints as such when reporting hit counts, report
1074 (create_tracepoint_from_upload): Copy status info.
1075 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1076 add fields user_name, notes, start_time, stop_time.
1077 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1078 * tracepoint.c (trace_user): New global.
1079 (trace_notes): New global.
1080 (trace_stop_notes): New global.
1081 (start_tracing): Add argument and trace note handling.
1082 (stop_tracing): Ditto.
1083 (trace_start_command): Add notes argument.
1084 (trace_stop_command): Ditto.
1085 (trace_status_command): Report additional status info.
1086 (trace_status_mi): Similarly.
1087 (trace_save): Update, record tracepoint status.
1088 (set_disconnected_tracing): Call target method directly.
1089 (send_disconnected_tracing_value): Remove.
1090 (set_trace_user): New function.
1091 (set_trace_notes): New function.
1092 (set_trace_stop_notes): New function.
1093 (parse_trace_status): Handle additional status.
1094 (parse_tracepoint_status): New function.
1095 (parse_tracepoint_definition): Call it.
1096 (tfile_get_tracepoint_status): New function.
1097 (init_tfile_ops): Use it.
1098 (_initialize_tracepoint): Add new setshows.
1099 * target.h (struct target_ops): New methods to_get_tracepoint_status
1100 and to_set_trace_notes.
1101 (target_get_tracepoint_status): New macro.
1102 (target_set_trace_notes): New macro.
1103 * target.c (update_current_target): Add new methods.
1104 * remote.c (remote_get_tracepoint_status): New function.
1105 (remote_set_trace_notes): New function.
1106 (init_remote_ops): Add them.
1107 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1108 (mi_cmd_trace_stop): Ditto.
1110 2011-11-20 Sanjoy Das <sdas@igalia.com>
1112 * jit.c: Include regcache.h.
1113 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1114 (jit_unwind_reg_set_impl, free_reg_value_impl)
1115 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1116 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1117 (jit_frame_prev_register, jit_dealloc_cache)
1118 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1119 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1120 jit_prepend_unwinder.
1121 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1123 2011-11-20 Sanjoy Das <sdas@igalia.com>
1125 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1126 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1127 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1128 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1129 (finalize_symtab, jit_object_close_impl)
1130 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1131 (free_objfile_data): New functions.
1132 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1135 2011-11-20 Sanjoy Das <sdas@igalia.com>
1137 * jit.c: Include gdb-dlfcn.h.
1138 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1139 (jit_reader_load, jit_reader_load_command)
1140 (jit_reader_unload_command): New functions.
1141 (_initialize_jit): Add commands "jit-reader-load" and
1142 "jit-reader-unload".
1144 2011-11-20 Sanjoy Das <sdas@igalia.com>
1146 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1147 * config.in: Add new #define HAVE_LIBDL.
1148 * configure.ac: Add check for -ldl.
1149 * configure: Re-generated by autoconf.
1150 * gdb-dlfcn.c: New file.
1151 * gdb-dlfcn.h: New file.
1153 2011-11-20 Sanjoy Das <sdas@igalia.com>
1155 * config.in: Add new #defines: JIT_READER_DIR and
1156 JIT_READER_DIR_RELOCATABLE.
1157 * configure.ac: New GDB directory entry for jit-reader-dir.
1158 * configure: Re-generated by autoconf.
1159 * jit.c: New static variable: const char *jit_reader_dir.
1160 (_initialize_jit): Relocate jit_reader_dir.
1162 2011-11-20 Sanjoy Das <sdas@igalia.com>
1164 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1166 * configure.ac: Generate a correct value for TARGET_PTR for
1167 jit-reader.h. Tell configure to generate jit-reader.h from
1169 * configure: Re-generated by autoconf.
1170 * jit-reader.in: New file.
1171 * jit.c: Include jit-reader.h.
1173 2011-11-20 Sanjoy Das <sdas@igalia.com>
1175 * MAINTAINERS (Write After Approval): Add myself to the list.
1177 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1179 * findvar.c (read_frame_register_value): Respect value_offset
1180 of the register value. Remove big-endian special case.
1182 2011-11-18 Tom Tromey <tromey@redhat.com>
1185 * remote.c (putpkt_for_catch_errors): New function.
1186 (remote_kill): Use it.
1188 2011-11-18 Yao Qi <yao@codesourcery.com>
1190 * breakpoint.c (create_breakpoint): Produce query message according to
1192 Allocate tracepoint per correct type.
1193 Don't check SALs for pending fast tracepoints.
1194 * tracepoint.c (process_tracepoint_on_disconnect): New.
1195 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1197 2011-11-18 Yao Qi <yao@codesourcery.com>
1199 * breakpoint.c (install_breakpoint): Add one more parameter so that
1200 update_global_location_list is called conditionally.
1201 (create_fork_vfork_event_catchpoint): Update.
1202 (create_syscall_event_catchpoint): Update.
1203 (create_breakpoint_sal): Update.
1204 (create_breakpoint_sal): Update. Call do_cleanups before
1206 * ada-lang.c (create_ada_exception_catchpoint): Update.
1207 * breakpoint.h (install_breakpoint): Update declaration.
1209 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1211 * spu-tdep.c (spu_return_value): Fix handling of
1212 TYPE_CALLING_CONVENTION annotation.
1214 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1216 * skip.c (skip_function_command): Work around uninitialized
1219 2011-11-16 David S. Miller <davem@davemloft.net>
1221 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1222 'tv_usec' to long for printf since these fields have a type which
1225 2011-11-15 Doug Evans <dje@google.com>
1227 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1229 2011-11-15 Paul Koning <paul_koning@dell.com>
1231 * python/py-type.c (typy_get_composite): New function.
1232 (typy_nonzero): New function.
1233 (typy_values): Rename from typy_fields.
1234 (typy_fields): New function.
1235 (typy_length): Raise exception if not struct, union, or enum type.
1236 (typy_getitem): Ditto.
1237 (typy_has_key): Ditto.
1238 (typy_make_iter): Ditto.
1240 2011-11-15 Doug Evans <dje@google.com>
1243 * NEWS: Mention new parameter basenames-may-differ.
1244 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1245 ! basenames_may_differ.
1246 * psymtab.c (lookup_partial_symtab): Ditto.
1247 * symtab.c (lookup_symtab): Ditto.
1248 (basenames_may_differ): New global.
1249 (_initialize_symtab): New parameter basenames-may-differ.
1250 * symtab.h (basenames_may_differ): Declare.
1252 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1253 Luis Machado <lgustavo@codesourcery.com>
1255 * auxv.c: Include observer.h.
1256 (auxv_inferior_data_cleanup): New.
1257 (invalidate_auxv_cache_inf): New.
1258 (invalidate_auxv_cache): New.
1259 (get_auxv_inferior_data): New.
1260 (auxv_inferior_data): New static global.
1261 (auxv_info): New structure.
1262 (target_auxv_search): Use get_auxv_inferior_data instead of
1263 target_read_alloc and don't free cached buffers.
1264 (fprint_target_auxv): Likewise
1265 (_initialize_auxv): Register per-inferior auxv cache and register
1266 observers to invalidate auxv cache when needed.
1268 2011-11-14 Doug Evans <dje@google.com>
1270 PR gdb/7200 Make "!" an alias for "shell".
1271 * NEWS: Add mention.
1272 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1273 adding "!" command, always add it.
1274 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1275 command of length one.
1277 2011-11-14 Stan Shebs <stan@codesourcery.com>
1278 Kwok Cheung Yeung <kcy@codesourcery.com>
1280 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1281 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1282 the minimum instruction size for fast tracepoints.
1283 * target.h (struct target_ops): Add new method
1284 to_get_min_fast_tracepoint_insn_len.
1285 (target_get_min_fast_tracepoint_insn_len): New.
1286 * target.c (update_current_target): Set up new target operation.
1287 * remote.c (remote_write_bytes_aux): Fix typo.
1288 (remote_get_min_fast_tracepoint_insn_len): New.
1289 (init_remote_ops): Initialize new field.
1291 2011-11-14 Tom Tromey <tromey@redhat.com>
1293 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1294 (encode_actions): Likewise.
1296 2011-11-14 Yao Qi <yao@codesourcery.com>
1298 * remote.c (struct remote_state): <install_in_trace> new field.
1299 (PACKET_InstallInTrace): New enum value.
1300 (remote_install_in_trace_feature): Support InstallInTrace.
1301 (remote_supports_install_in_trace): Likewise.
1302 (remote_protocol_features): Likewise.
1303 (_initialize_remote): Likewise.
1304 (remote_can_download_tracepoint): New.
1305 * target.h (struct target): New field
1306 `to_can_download_tracepoint'.
1307 (target_can_download_tracepoint): New macro.
1308 * target.c (update_current_target): Update.
1309 * breakpoint.h (struct bp_location): Add comment on field
1311 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1313 (remove_breakpoints): Don't remove tracepoints.
1314 (tracepoint_locations_match ): New.
1315 (breakpoint_locations_match): Call it.
1316 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1317 (download_tracepoint_locations): New.
1318 (update_global_location_list): Call it.
1319 * tracepoint.c (find_matching_tracepoint): Delete.
1320 (find_matching_tracepoint_location): Renamed from
1321 find_matching_tracepoint. Return bp_location rather than
1323 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1324 tracepoint is found.
1326 2011-11-14 Yao Qi <yao@codesourcery.com>
1328 * target.h (struct target): <to_download_tracepoint> Change type
1329 of parameter from tracepoint to bp_location.
1330 * target.c (update_current_target): Update.
1331 * tracepoint.c (start_tracing): Update.
1332 * remote.c (remote_download_tracepoint): Remove loop for each location
1335 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1337 * i386-nat.c (i386_insert_hw_breakpoint): Call
1338 i386_update_inferior_debug_regs.
1339 (i386_remove_hw_breakpoint): Likewise.
1341 2011-11-14 Yao Qi <yao@codesourcery.com>
1343 * breakpoint.c (init_raw_breakpoint): Call
1344 add_location_to_breakpoint to replace duplicated code.
1345 (add_location_to_breakpoint): Adjust the breakpoint's
1346 address prior to allocating a location.
1348 2011-11-12 Matt Rice <ratmice@gmail.com>
1350 * macrocmd.c (macro_no_macro_info): New function.
1351 (macro_expand_command): Use macro_no_macro_info.
1352 (macro_expand_once_command): Ditto.
1353 (info_macro_command): Add argument processing,
1354 move info_definitions_command here.
1355 (_initialize_macrocmd): Remove info definitions command.
1356 Add arguments to info macro help text.
1357 * NEWS: Replace info definitions command with new info macro options.
1359 2011-11-11 Keith Seitz <keiths@redhat.com>
1362 * linespec.c (locate_first_half): Keep ':' if it looks
1363 like it could be part of a Windows path starting with
1366 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1368 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1369 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1371 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1373 * target.c (target_waitstatus_to_string): Handle
1374 TARGET_WAITKIND_NO_RESUMED.
1376 2011-11-10 Doug Evans <dje@google.com>
1378 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1380 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1381 (map_partial_symbol_filenames): Ditto. All callers updated.
1382 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1383 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1384 parameter need_fullname.
1386 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1387 * source.c (symtab_to_fullname): Ditto.
1389 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1390 * gdb-demangle.h: ... here. New file.
1391 * demangle.c: #include "gdb-demangle.h".
1392 (_initialize_demangler): Use initialize_file_ftype for prototype.
1393 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1394 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1396 * utils.c: Update. #include "gdb-demangle.h".
1397 * symtab.h (asm_demangle): Delete.
1398 (demangle): Move declaration next to use.
1399 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1400 * dwarf2read.c: #include "gdb-demangle.h".
1401 * gnu-v2-abi.c: Ditto.
1402 * jv-typeprint.c: Ditto.
1403 * mdebugread.c: Ditto.
1404 * p-typeprint.c: Ditto.
1405 * stabsread.c: Ditto.
1406 * printcmd.c: Ditto.
1407 (asm_demangle): Delete declaration.
1408 * tui/tui-stack.c: #include "gdb-demangle.h".
1410 * python/py-type.c (typy_fields_items): Call check_typedef.
1412 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1414 * findvar.c (read_frame_register_value): Read the correct bytes
1415 from registers on big-endian architectures.
1417 2011-11-10 Tom Tromey <tromey@redhat.com>
1419 * procfs.c (load_syscalls): Make a cleanup.
1420 (open_procinfo_files): fd==0 is ok.
1422 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1424 * procfs.c (iterate_over_mappings): Call do_cleanups before
1427 2011-11-09 Doug Evans <dje@google.com>
1429 * gdbtypes.c (check_typedef): Document that this function can
1432 2011-11-09 Tom Tromey <tromey@redhat.com>
1435 * valops.c (value_full_object): Return early if real type is
1436 smaller than the enclosing type.
1438 2011-11-08 Yao Qi <yao@codesourcery.com>
1440 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1442 2011-11-08 Meador Inge <meadori@codesourcery.com>
1444 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1445 register when the frame can't be determined.
1446 * arm-tdep.c (arm_analyze_prologue): Ditto.
1448 2011-11-07 Stan Shebs <stan@codesourcery.com>
1450 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1452 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1454 * infrun.c (handle_inferior_event): Minor reformatting.
1456 2011-11-05 Doug Evans <dje@google.com>
1458 * source.c (forget_cached_source_info_for_objfile): Move call to
1459 objfile->sf->qf->forget_cached_source_info outside of
1460 ALL_OBJFILE_SYMTABS loop.
1461 (forget_cached_source_info): Delete unused variable `s'.
1463 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1465 * i386-nat.c (dr_ref_count): Remove unused variable.
1467 2011-11-05 Doug Evans <dje@google.com>
1469 * main.c (captured_main): Set lim_at_start before calling
1470 make_command_stats_cleanup.
1472 2011-11-04 Doug Evans <dje@google.com>
1474 * utils.c: #include "timeval-utils.h".
1475 (cmd_stats): Rename start_time to start_cpu_time.
1476 New member start_wall_time.
1477 (report_command_stats): Report wall time.
1478 (make_command_stats_cleanup): Record start wall time.
1480 2011-11-04 Tom Tromey <tromey@redhat.com>
1482 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1484 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1486 * coff-pe-read.c: Include defs.h before bfd.h.
1488 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1492 * python/python.c (python_run_simple_file): Expand tilde in path.
1494 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1498 * python/py-type.c (typy_lookup_type): Do not return a type in
1499 an exception handler.
1501 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1502 Eli Zaretskii <eliz@gnu.org>
1504 * linux-nat.c (_initialize_linux_nat): Improve help
1505 for `info proc stat', `info proc status', `info proc cwd',
1506 `info proc cmdline' and `info proc exe'.
1508 2011-11-02 Stan Shebs <stan@codesourcery.com>
1510 String collection for tracepoints.
1511 * NEWS: Mention string collection.
1512 * common/ax.def (tracenz): New bytecode.
1513 * ax-gdb.h (trace_string_kludge): Declare.
1514 * ax-gdb.c: Include valprint.h and c-lang.h.
1515 (trace_string_kludge): New global.
1516 (gen_traced_pop): Add string case.
1517 (agent_command): Add string case.
1518 * tracepoint.h (decode_agent_options): Declare.
1519 * tracepoint.c: Include cli-utils.h.
1520 (decode_agent_options): New function.
1521 (validate_actionline): Call it.
1522 (encode_actions_1): Ditto.
1523 * target.h (struct target_ops): New method to_supports_string_tracing.
1524 (target_supports_string_tracing): New macro.
1525 * target.c (update_current_target): Add to_supports_string_tracing.
1526 * remote.c (struct remote_state): New field string_tracing.
1527 (remote_string_tracing_feature): New function.
1528 (remote_protocol_features): New feature tracenz.
1529 (remote_supports_string_tracing): New function.
1530 (init_remote_ops): Set to_supports_string_tracing.
1532 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1533 Jan Kratochvil <jan.kratochvil@redhat.com>
1535 * linux-nat.c: Include cli/cli-utils.h.
1536 (enum info_proc_what): New.
1537 (linux_nat_info_proc_cmd): Rename to ...
1538 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1539 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1540 status_f and stat_f from WHAT. Throw error on extra parameters.
1541 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1542 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1543 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1544 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1545 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1546 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1547 `info proc cmdline', `info proc exe' and `info proc all' as real
1548 subcommands of `info proc'.
1550 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1552 * Makefile.in: (SFILES): Add skip.c.
1553 (HFILES_NO_SRCDIR): Add skip.h.
1554 (COMMON_OBS): Add skip.o.
1555 * skip.h, skip.c: New.
1556 * breakpoint.h (set_default_breakpoint): Remove.
1557 (get_sal_arch): Declare.
1558 * breakpoint.c: Remove default_breakpoint_valid,
1559 default_breakpoint_address, default_breakpoint_symtab,
1560 default_breakpoint_line, default_breakpoint_pspace variables.
1561 (get_sal_arch): Make public.
1562 (set_default_breakpoint): Remove.
1563 (parse_breakpoint_sals, create_breakpoint, clear_command,
1564 decode_line_spec_1): Remove uses of default_breakpoint variables;
1565 replaced with function calls into stack.c.
1566 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1567 * cli/cli-cmds.c: Add skiplist.
1568 (init_cmd_lists): Initialize skiplist.
1569 (init_cli_cmds): Fix comment (classes of commands appear in
1570 alphabetical order).
1571 * infrun.c (handle_inferior_event): Add check that we don't step into
1572 a function whose pc is marked for skip.
1573 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1574 last_displayed_addr, last_displayed_symtab, last_displayed_line
1576 (set_last_displayed_sal): New static function.
1577 (print_frame_info): Switch call to set_default_breakpoint to call to
1578 set_last_displayed_sal.
1579 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1580 get_last_displayed_pspace, get_last_displayed_addr,
1581 get_last_displayed_symtab, get_last_displayed_line,
1582 get_last_displayed_sal): New public functions.
1583 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1584 get_last_displayed_pspace, get_last_displayed_addr,
1585 get_last_displayed_symtab, get_last_displayed_line,
1586 get_last_displayed_sal): Declare.
1588 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1590 * MAINTAINERS (Write After Approval): Add myself to the list.
1592 2011-10-29 Yao Qi <yao@codesourcery.com>
1594 * infcmd.c (disconnect_command): Call disconnect_tracing.
1596 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1599 * symtab.c (skip_prologue_sal): Code reformatting.
1601 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1604 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1605 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1608 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1610 * linux-nat.c (linux_nat_filter_event): Remove `options'
1611 parameter, and dead code that used it. If we're handling a
1612 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1613 in our lwp list, re-add it.
1614 (check_zombie_leaders): New.
1615 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1616 wait for children with WNOHANG, and always wait for all children.
1617 Don't check for no resumed children upfront. Simplify wait loop.
1618 Check for zombie thread group leaders after handling all wait
1619 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1620 unwaited-for children left.
1621 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1622 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1623 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1624 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1626 2011-10-28 Sterling Augustine <saugustine@google.com>
1628 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1629 * symtab.c (free_completion_list): New function.
1630 (do_free_completion_list): Likewise.
1631 (default_make_symbol_completion_list_break_on): New variable
1632 back_to. Call make_cleanup and discard_cleanups.
1633 (make_source_files_completion_list): Likewise.
1635 2011-10-28 Paul Koning <paul_koning@dell.com>
1637 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1638 * NEWS: Mention deep_items.
1640 2011-10-28 Alen Skondro <askondro@gmail.com>
1642 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1645 2011-10-27 Meador Inge <meadori@codesourcery.com>
1647 * MAINTAINERS (Write After Approval): Add myself to the list.
1649 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1651 * value.h (read_frame_register_value): Add declaration.
1652 * findvar.c (read_frame_register_value): New function.
1653 (value_from_register): Use read_frame_register_value
1654 instead of get_frame_register_value + value_contents_copy
1655 to get value contents.
1657 2011-10-27 Doug Evans <dje@google.com>
1659 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1660 source_script_from_stream if it may have been found on the search path.
1661 * python/py-auto-load.c (source_section_scripts): Pass full path to
1662 source_python_script_for_objfile.
1663 * python/python.c (source_python_script): Delete stream parameter.
1664 All callers updated.
1665 (source_python_script_for_objfile): Ditto.
1666 * python/python-internal.h (source_python_script_for_objfile): Update.
1667 * python/python.h (source_python_script): Update.
1669 2011-10-27 Tom Tromey <tromey@redhat.com>
1671 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1672 (ada_sals_for_line): Remove declarations.
1674 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1676 Move unwind reasons to an external .def file
1677 * frame.c (frame_stop_reason_string): Rewrite using
1678 unwind_stop_reasons.def.
1679 * frame.h (enum unwind_stop_reason): Likewise.
1680 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1681 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1682 constants for bound-checking.
1683 * unwind_stop_reasons.def: New file.
1684 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1685 instead of a distinct value.
1687 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1691 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1692 (convert_values_to_python): Return on Python tuple allocation
1693 failure. Return NULL on value conversion error.
1695 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1697 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1698 (bppy_set_task): Ditto.
1699 (bppy_delete_breakpoint): Ditto.
1700 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1701 (gdbpy_lookup_global_symbol): Ditto.
1702 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1703 * python/py-frame.c (frapy_is_valid): Ditto.
1704 (frame_info_to_frame_object): Ditto.
1705 * python/py-type.c (typy_lookup_type): Ditto.
1706 (typy_getitem): Ditto.
1707 (typy_has_key): Ditto.
1708 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1710 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1712 * gdbarch.h: Regenerate.
1714 2011-10-26 Meador Inge <meadori@codesourcery.com>
1716 * gdbarch.sh (function_list): Use 'pstring' when printing
1718 * gdbarch.c: Regenerate.
1720 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1722 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1723 and frame caches if PTID refers to all threads of a process.
1725 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1727 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1728 to create_breakpoint.
1730 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1732 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1733 (ppc_sysv_abi_push_dummy_call): Use it.
1734 (do_ppc_sysv_return_value): Likewise.
1735 (ppc64_sysv_abi_push_dummy_call): Likewise.
1736 (ppc64_sysv_abi_return_value): Likewise.
1738 2011-10-26 Paul Koning <paul_koning@dell.com>
1740 * python/lib/gdb/types.py (deepitems): New function.
1742 2011-10-25 Paul Koning <paul_koning@dell.com>
1746 * python/py-value.c (value_to_value_object): Remove fetching of
1747 the value if it was lazy.
1748 (valpy_get_is_lazy): New function.
1749 (valpy_fetch_lazy): New function.
1751 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1753 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1754 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1756 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1758 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1759 event, in non-stop, if not stopping, make sure the new lwp has
1760 last_resume_kind set to resume_continue. Assert that when we're
1761 resuming the new lwp, its last_resume_kind is resume_continue.
1763 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1765 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1766 already set when marking the event thread as not executing in
1769 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1771 * infrun.c (handle_inferior_event): Add debug output for
1772 TARGET_WAITKIND_NO_HISTORY.
1774 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1776 * NEWS: Move set/show extended-prompt to "New Options". Expand
1777 description. Fix typos.
1779 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1783 * python/py-param.c (call_doc_function): Correctly deference on
1786 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1788 * ada-tasks.c (print_ada_task_info): Fix computation of
1789 number of tasks displayed in command output.
1791 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1792 Ulrich Weigand <uweigand@de.ibm.com>
1794 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1795 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1796 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1797 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1800 2011-10-20 Cary Coutant <ccoutant@google.com>
1802 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1804 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1805 flag. Adjust all callers.
1806 (process_psymtab_comp_unit): Remove adjustment for type section.
1808 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1810 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1811 arguments by adding OBJFILE. Instead of getting objfile from
1812 symbol's symtab, use new argument OBJFILE.
1813 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1814 arguments by adding OBJFILE.
1815 * gdb/dwarf2read.c (new_symbol_full): Change call to
1816 cp_scan_for_anonymous_namespaces to match new signature.
1817 * gdb/stabsread.c (define_symbol): Change call to
1818 cp_scan_for_anonymous_namespaces to match new signature.
1820 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1825 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1827 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1828 leak. Delete unused variables.
1830 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1834 * python/py-frame.c (frapy_read_var): Use const struct *block.
1835 * python/py-type.c (typy_lookup_typename): Likewise.
1836 (typy_lookup_type): Likewise.
1837 (typy_legacy_template_argument): Likewise.
1838 (typy_template_argument): Likewise.
1839 (gdbpy_lookup_type): Likewise.
1840 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1841 * python/py-block.c (blpy_block_object): Likewise.
1842 (blpy_iter): Likewise.
1843 (blpy_get_start): Likewise.
1844 (blpy_get_end): Likewise.
1845 (blpy_get_function): Likewise.
1846 (blpy_get_superblock): Likewise.
1847 (set_block): Likewise.
1848 (block_to_block_object): Likewise.
1849 (block_object_to_block): Likewise.
1850 (blpy_is_valid): Likewise.
1851 (blpy_get_global_block): New function.
1852 (blpy_get_static_block): New function.
1853 (blpy_is_global): New function.
1854 (blpy_is_static): New function.
1855 * blockframe.c (block_innermost_frame): Likewise.
1856 * valops.c (value_of_variable): Likewise.
1857 * frame.h: Update prototypes.
1858 * python/python-internal.h: Likewise.
1859 * value.h: Likewise.
1861 2011-10-19 Cary Coutant <ccoutant@google.com>
1863 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1866 2011-10-19 Cary Coutant <ccoutant@google.com>
1868 * dwarf2read.c (peek_abbrev_code): New function.
1869 (dw2_get_file_names): Check for dummy compilation units.
1870 (create_debug_types_hash_table): Likewise.
1871 (process_psymtab_comp_unit): Likewise.
1872 (load_partial_comp_unit): Likewise.
1873 (load_full_comp_unit): Likewise.
1875 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1877 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1878 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1879 pt_phdr if PT_PHDR was found.
1881 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1883 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1884 type or "<unnamed type"> when there is no name assigned.
1885 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1886 avoid a sigint when no name is assigned.
1888 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1891 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1892 * dwarf2expr.c (ctx_no_read_reg): New function.
1893 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1894 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1895 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1896 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1898 2011-10-16 Doug Evans <dje@google.com>
1900 * NEWS: Document python gdb.printing.register_pretty_printer's new
1901 `replace' parameter.
1903 2011-10-14 Keith Seitz <keiths@redhat.com>
1906 * eval.c (evaluate_subexp_standard): Do not construct
1907 an array of types; pass the value array directly to
1908 find_overload_match.
1909 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1910 (rank_function): Take an array of values instead of types.
1911 (rank_one_type): Add struct value * parameter.
1912 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1913 (rank_function): For each argument, pass the argument's
1914 value to rank_one_type.
1915 (rank_one_type): Add VALUE parameter.
1916 If the parameter type is a pointer and the argument type
1917 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1919 Update all calls to rank_one_type, passing NULL for new
1921 * valarith.c (value_user_defined_cpp_op): Do not construct
1922 an array of types; pass the value array directly to
1923 find_overload_match.
1924 * valops.c (find_overload_method_list): Take an array of
1925 values instead of types.
1926 Save the type of OBJP for later use.
1927 Update calls to find_oload_champ, and find_oload_champ_namespace.
1928 (find_oload_champ_namespace): Take an array of values instead
1930 (find_oload_champ_namespace_loop): Likewise.
1931 (find_oload_champ): Likewise.
1932 (classify_oload_match): Inspect all arguments
1933 until INCOMPATIBLE is found. Return the worst badness found
1935 (compare_parameters): Update call to rank_one_type.
1936 * value.h (find_overload_match): Take an array of values instead
1939 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1941 Drop lazy lm_info reading.
1942 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1943 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1944 (lm_info_read): New function.
1945 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1946 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1947 lm_dynamic_from_link_map.
1948 (lm_next, lm_prev, lm_name): Remove.
1949 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1950 initialization incl. read_memory. No longer use lm_name.
1951 (svr4_free_so): Drop lm_info->lm freeing.
1952 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1953 explicit lm_addr and lm initialization.
1954 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1955 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1958 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1959 Paul Pluzhnikov <ppluzhnikov@google.com>
1961 * defs.h (struct so_list): New forward declaration.
1962 (make_cleanup_free_so): New declaration.
1963 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1964 (svr4_free_so): Move the function here from downwards. Handle NULL
1966 (svr4_free_library_list): New.
1967 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1968 Use more cleanups. Use new parameter ignore_first instead of
1969 ignore_first_link_map_entry.
1970 (svr4_current_sos): New variable ignore_first, initialize it. New
1971 variable back_to, use it for svr4_free_library_list protection.
1972 (svr4_free_so): Remove - move upwards.
1973 * utils.c: Include solist.h.
1974 (do_free_so, make_cleanup_free_so): New functions.
1976 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1978 Fix internal error regression.
1979 * value.c (value_primitive_field): Handle value_optimized_out. Move
1980 packed bitfields comment.
1982 2011-10-13 Tom Tromey <tromey@redhat.com>
1984 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1987 2011-10-13 Tom Tromey <tromey@redhat.com>
1989 * python/py-type.c (typy_has_key): Make 'field' const.
1991 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1993 * remote.c (remote_save_trace_data): Invert comparison.
1995 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1997 * tracepoint.c (trace_save_command): Use filename instead of
2000 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2002 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2005 2011-10-13 Yao Qi <yao@codesourcery.com>
2008 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2009 whether insn is a 32-bit Thumb-2 instruction.
2010 (thumb_in_function_epilogue_p): Likewise.
2011 (thumb_get_next_pc_raw): Likewise.
2012 (arm_breakpoint_from_pc): Likewise.
2014 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2016 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2017 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2018 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2019 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2020 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2022 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2024 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2025 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2026 clear DATA on zero SIZE.
2028 2011-10-12 Doug Evans <dje@google.com>
2030 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2031 header->first_die_offset here. All callers updated.
2033 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2035 Fix compatibility with texinfo versions older than 4.12.
2036 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2037 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2038 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2039 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2040 * configure: Regenerate.
2041 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2042 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2043 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2045 2011-10-12 Gary Benson <gbenson@redhat.com>
2047 * breakpoint.h (pc_at_non_inline_function): Declare.
2048 * breakpoint.c (is_non_inline_function,
2049 pc_at_non_inline_function): New functions.
2050 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2051 if the stop is at a location where functions cannot be inlined.
2053 2011-10-12 Pedro Alves <pedro@codesourcery.com>
2055 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2056 the core wanted them stopped, or if they now have a pending event
2058 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2059 down to stop_and_resume_callback.
2060 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2061 having new pending events after calling linux_nat_filter_event.
2063 2011-10-11 Sterling Augustine <saugustine@google.com>
2065 * dwarf2read.c: Undo inadvertent changes in previous commit.
2067 2011-10-11 Sterling Augustine <saugustine@google.com>
2069 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2072 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2074 * symfile.c (separate_debug_file_exists): Fix condition.
2076 2011-10-11 David S. Miller <davem@davemloft.net>
2078 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2080 * regcache.h (regcache_restore): Remove declaration.
2082 * gdbarch.sh: New field 'long_long_align_bit'.
2083 * gdbarch.c, gdbarch.h: Regenerate.
2084 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2085 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2087 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2089 Revert this part of:
2090 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2091 Support @entry in input expressions.
2092 * c-exp.y (ENTRY, unknown_cpp_name): New.
2093 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2094 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2095 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2096 (name_not_typename: ENTRY): New.
2097 (yylex): Recognize ENTRY.
2099 Reimplement @entry in input expressions.
2100 * c-exp.y (ENTRY): New.
2101 (variable: name_not_typename ENTRY): New.
2102 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2104 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2106 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2107 parent and child's pids as soon as we detect a clone event.
2108 Adjust another debug message.
2110 2011-10-11 Pedro Alves <pedro@codesourcery.com>
2112 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2113 not zombie instead of reading the whole file.
2115 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2117 Fix separate debuginfo warning with "remote:" access.
2118 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2119 * symfile.c (get_file_crc): New function with the code moved from ...
2120 (separate_debug_file_exists): ... this function, specifically variables
2121 buffer and count. New variable verified_as_different, set it. Remove
2122 file_crc initialization. Verify also if both files are not the same
2123 manually, if needed.
2125 2011-10-11 Yao Qi <yao@codesourcery.com>
2127 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2130 2011-10-10 Doug Evans <dje@google.com>
2132 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2133 libthread_db when we load libpthread or the main symbol file.
2134 (thread_db_inferior_created): New function.
2135 (_initialize_thread_db): Attach inferior_created observer.
2136 * linux-nat.c (linux_child_post_attach): Remove call to
2137 check_for_thread_db.
2138 (linux_child_post_startup_inferior): Ditto.
2139 * objfiles.h (OBJF_MAINLINE): Define.
2140 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2141 allocate_objfile when appropriate.
2143 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2146 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2147 Remove unused variables.
2148 (get_linux_version): Remove function.
2149 (_initialize_arm_linux_nat): Do not call it.
2151 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2153 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2154 new clone lwp if the core asked it to stop. Don't pass on
2155 unexpected signals to the new clone; leave them pending instead.
2157 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2159 * linux-nat.c (resume_lwp): Remove redundant debug output.
2161 2011-10-10 Pedro Alves <pedro@codesourcery.com>
2163 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2164 last_resume_kind before clearing it, and use the copy instead to
2165 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2166 resume_clear_callback in the non-stop path too.
2168 2011-10-09 Yao Qi <yao@codesourcery.com>
2170 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2171 Honor OPTIONS and VAL's type.
2172 (common_val_print, value_print): Update to pass one more parameter.
2174 2011-10-09 Doug Evans <dje@google.com>
2176 Add new "alias" command.
2177 * NEWS: Mention new command.
2178 * command.h (valid_user_defined_cmd_name_p): Declare.
2179 * defs.h (make_cleanup_dyn_string_delete): Declare.
2180 * utils.c: #include "dyn-string.h".
2181 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2182 * cli/cli-cmds.c: #include "dyn-string.h".
2183 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2184 (init_cli_cmds): Add new command.
2185 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2187 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2189 Fix compatibility with older GCCs.
2190 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2191 * stack.c (read_frame_arg): Initialize val_deref.
2193 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2195 Entry values NEWS entries, DWARF disassembly support.
2196 * NEWS: New entry values entry.
2197 (set print entry-values, show print entry-values)
2198 (set debug entry-values, show debug entry-values): New entries.
2199 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2200 indent. Remove variable start. Move header printing out. Respect
2201 INDENT. Support DW_OP_GNU_entry_value.
2202 (locexpr_describe_location_1): Move the header printing here, extend
2203 the disassemble_dwarf_expression passed parameters.
2205 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2207 Display @entry parameter values even for references.
2208 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2209 coerce_ref_if_computed.
2210 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2211 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2212 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2213 existing push_dwarf_reg_entry_value call. Add new detection calling
2214 dwarf_block_to_dwarf_reg_deref. Update the error message.
2215 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2217 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2218 parameter deref_size, describe it in the comment.
2219 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2220 (dwarf_block_to_dwarf_reg_deref): New declaration.
2221 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2222 deref_size, describe it in the function comment. New variables
2223 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2224 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2225 describe it in the function comment. Fetch the alternative block
2226 accoring to DEREF_SIZE.
2227 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2228 (entry_data_value_free_closure, entry_data_value_funcs): New.
2229 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2230 outer_val, target_val, val and addr. Try to fetch and create also
2231 referenced value content.
2232 (pieced_value_funcs): NULL value for coerce_ref.
2233 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2234 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2235 coerce_ref_if_computed.
2236 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2237 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2238 * stack.c (read_frame_arg): Compare also dereferenced values.
2239 * value.c (value_computed_funcs): Make the parameter v const, use
2240 value_lval_const for it.
2241 (value_lval_const, coerce_ref_if_computed): New function.
2242 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2243 * value.h (struct lval_funcs): New field coerce_ref.
2244 (value_computed_funcs): Make the parameter v const.
2245 (value_lval_const, coerce_ref_if_computed): New declarations.
2247 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2249 Support @entry in input expressions.
2250 * c-exp.y (ENTRY, unknown_cpp_name): New.
2251 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2252 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2253 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2254 (name_not_typename: ENTRY): New.
2255 (yylex): Recognize ENTRY.
2256 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2257 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2259 * parse.c (operator_length_standard): Likewise.
2260 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2262 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2264 Display referenced values in backtraces.
2265 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2266 * stack.c (print_frame_arg): Likewise.
2268 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2270 Make some lval_funcs methods to default on NULL.
2271 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2273 (value_assign): Check if lval_computed write method is NULL.
2274 * value.h (struct lval_funcs): Comment NULL values for read and write
2277 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2279 Display @entry parameter values (without references).
2280 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2282 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2284 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2286 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2287 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2289 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2290 (loclist_read_variable_at_entry): New function.
2291 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2292 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2293 DW_AT_location, call dwarf_block_to_sp_offset for it.
2294 * frame.h (print_entry_values_no, print_entry_values_only)
2295 (print_entry_values_preferred, print_entry_values_if_needed)
2296 (print_entry_values_both, print_entry_values_compact)
2297 (print_entry_values_default, print_entry_values): New declarations.
2298 (struct frame_arg): New field entry_kind.
2299 (read_frame_arg): New parameter entryargp.
2300 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2301 arg->entry_kind. Optionally print the `@entry' suffix.
2302 (list_args_or_locals): New variable entryarg, initialize it.
2303 Initialize also entry_kind of arg and entryarg. Conditionalize
2304 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2305 xfree for entryarg.error.
2306 * stack.c (print_entry_values_no, print_entry_values_only)
2307 (print_entry_values_preferred, print_entry_values_if_needed)
2308 (print_entry_values_both, print_entry_values_compact)
2309 (print_entry_values_default, print_entry_values_choices)
2310 (print_entry_values): New variables.
2311 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2312 print the `@entry' suffix, possibly in combination for
2313 print_entry_values_compact.
2314 (read_frame_arg): New parameter entryargp, new variables entryval,
2315 entryval_error and val_equal. Read in also entryargp, respect
2316 print_entry_values, compare the values using val_equal, fill in also
2317 argp->entry_kind (together with entryargp->entry_kind).
2318 (print_frame_args): New variable entryarg, initialize it.
2319 Conditionalize print_frame_arg for arg, add print_frame_arg for
2320 entryarg. Call xfree for entryarg.error.
2321 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2322 * symtab.h (struct symbol_computed_ops): New field
2323 read_variable_at_entry.
2325 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2328 * frame.h (struct frame_arg): New definition.
2329 (read_frame_arg): New declaration.
2330 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2331 (list_args_or_locals): ... the code here. New variable arg, call
2332 read_frame_arg and list_arg_or_local with it. Unify the
2333 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2335 * stack.c (print_frame_arg): New functiom from the code of
2337 (read_frame_arg): New function.
2338 (print_frame_args): Remove variable val. New variable arg, call
2339 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2341 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2343 Protect entry values against self tail calls.
2344 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2345 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2347 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2349 Recognize virtual tail call frames.
2350 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2351 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2352 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2353 * dwarf2-frame-tailcall.c: New file.
2354 * dwarf2-frame-tailcall.h: New file.
2355 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2356 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2357 REGS.PREV only after CIE execution.
2358 (struct dwarf2_frame_cache): New field tailcall_cache.
2359 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2360 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2361 parts, try to find entry_cfa_sp_offset. Call
2362 dwarf2_tailcall_sniffer_first.
2363 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2365 (dwarf2_frame_dealloc_cache): New function.
2366 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2367 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2368 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2369 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2370 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2371 * dwarf2loc.c (func_addr_to_tail_call_list)
2372 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2373 (call_site_find_chain_1, call_site_find_chain): New.
2374 * dwarf2loc.h (struct call_site_chain): New.
2375 (call_site_find_chain): New declaration.
2376 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2377 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2378 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2379 * stack.c (frame_info): Support also TAILCALL_FRAME.
2381 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2383 Tail call sites reader implementation.
2384 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2385 fill in TYPE_TAIL_CALL_LIST.
2386 * gdbtypes.h (struct func_type): New field tail_call_list.
2387 (struct call_site): New field tail_call_next.
2388 (TYPE_TAIL_CALL_LIST): New definition.
2390 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2392 Implement basic support for DW_TAG_GNU_call_site.
2393 * block.c: Include gdbtypes.h and exceptions.h.
2394 (call_site_for_pc): New function.
2395 * block.h (call_site_for_pc): New declaration.
2396 * defs.h: Include hashtab.h.
2397 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2399 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2400 ctx_no_push_dwarf_reg_entry_value.
2401 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2402 (dwarf_block_to_dwarf_reg): New function.
2403 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2404 (ctx_no_push_dwarf_reg_entry_value): New function.
2405 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2406 push_dwarf_reg_entry_value.
2407 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2409 * dwarf2loc.c: Include gdbcmd.h.
2410 (dwarf_expr_ctx_funcs): New forward declaration.
2411 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2412 (dwarf_expr_reg_to_entry_parameter)
2413 (dwarf_expr_push_dwarf_reg_entry_value): New.
2414 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2415 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2416 (needs_dwarf_reg_entry_value): New function.
2417 (needs_frame_ctx_funcs): Install it.
2418 (_initialize_dwarf2loc): New function.
2419 * dwarf2loc.h (entry_values_debug): New declaration.
2420 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2421 (read_call_site_scope): New forward declaration.
2422 (process_full_comp_unit): Copy call_site_htab.
2423 (process_die): Support DW_TAG_GNU_call_site.
2424 (read_call_site_scope): New function.
2425 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2426 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2427 (cleanup_htab): Delete.
2428 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2429 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2430 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2431 FIELD_LOC_KIND_DWARF_BLOCK.
2432 * gdbtypes.h (enum field_loc_kind): New entry
2433 FIELD_LOC_KIND_DWARF_BLOCK.
2434 (struct main_type): New loc entry dwarf_block.
2435 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2436 (TYPE_FIELD_DWARF_BLOCK): New.
2437 * python/py-type.c: Include dwarf2loc.h.
2438 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2439 internal_error call on unknown FIELD_LOC_KIND.
2440 * symtab.h (struct symtab): New field call_site_htab.
2441 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2442 (core_addr_hash, core_addr_eq): New functions.
2444 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2447 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2448 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2449 calling_convention under func_stuff there.
2450 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2451 (init_type) <TYPE_CODE_FUNC>: Likewise.
2452 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2453 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2454 * gdbtypes.h (enum type_specific_kind): Change
2455 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2456 (struct main_type) <type_specific>: Change calling_convention to
2457 func_stuff. Move calling_convention to ...
2458 (struct func_type): ... this new struct.
2459 (INIT_FUNC_SPECIFIC): New #define.
2460 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2462 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2464 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2465 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2466 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2467 ctx->ref_addr_size. Handle its invalid value.
2468 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2469 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2470 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2471 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2472 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2473 (dwarf2_per_cu_ref_addr_size): New function.
2475 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2478 * dwarf2read.c (per_cu_header_read_in): New function.
2479 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2480 variables cu_header_local and cu_headerp.
2482 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2484 Fix initial language detection with -readnow.
2485 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2486 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2487 searches only for global symbols.
2489 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2491 Fix printed anonymous struct name.
2492 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2493 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2494 (anonymous_struct_prefix): New function.
2495 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2496 (dwarf2_name): Strip for anonymous structs any prefixes.
2498 2011-10-07 Doug Evans <dje@google.com>
2500 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2503 * python/lib/gdb/printing.py: Whitespace cleanup.
2505 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2508 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2510 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2511 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2512 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2513 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2514 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2515 (arm_linux_remove_watchpoint): Adjust.
2516 * i386-linux-nat.c (i386_linux_dr_set_control)
2517 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2518 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2519 (ia64_linux_remove_watchpoint): Adjust.
2520 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2521 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2522 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2523 (ppc_linux_insert_mask_watchpoint)
2524 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2525 (ppc_linux_remove_watchpoint): Adjust.
2526 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2529 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2531 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2532 (clear_win32_environment): New function for Cygwin to clear out
2534 (windows_create_inferior): Prepare new environment from in_env
2537 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2540 * python/py-value.c (valpy_call): Check that arguments are
2542 (is_intlike): Remove call to CHECK_TYPEDEF.
2543 (valpy_nonzero): Catch GDB exceptions.
2544 (valpy_absolute): Ditto.
2545 (valpy_lazy_string): Ditto.
2546 (valpy_call): Ditto.
2547 (valpy_get_is_optimized_out): Ditto.
2548 (valpy_long): Ditto.
2549 (valpy_float): Ditto.
2550 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2551 (valpy_richcompare): Ditto.
2553 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2555 * inferior.h (disable_randomization): Declare.
2556 * infrun.c (disable_randomization): New global variable.
2557 (show_disable_randomization): New function.
2558 (set_disable_randomization): Likewise.
2559 (_initialize_infrun): Install set/show disable-randomization
2561 * linux-nat.c (disable_randomization): Remove.
2562 (show_disable_randomization): Likewise.
2563 (set_disable_randomization): Likewise.
2564 (_initialize_linux_nat): No longer install set/show
2565 disable-randomization commands here.
2566 (linux_nat_supports_disable_randomization): New function.
2567 (linux_nat_add_target): Install it.
2568 * remote.c (PACKET_QDisableRandomization): New enum value.
2569 (remote_protocol_packets): Support QDisableRandomization.
2570 (_initialize_remote): Likewise.
2571 (remote_supports_disable_randomization): New function.
2572 (init_remote_ops): Install it.
2573 (extended_remote_supports_disable_randomization): New function.
2574 (init_extended_remote_ops): Install it.
2575 (extended_remote_disable_randomization): New function.
2576 (extended_remote_create_inferior_1): Call it.
2577 * target.h (struct target_ops): Add to_supports_disable_randomization.
2578 (target_supports_disable_randomization): Add prototype.
2579 * target.c (target_supports_disable_randomization): New function.
2580 (find_default_supports_disable_randomization): Likewise.
2581 (init_dummy_target): Install it.
2583 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2585 Allow Python notification of new object-file loadings.
2586 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2587 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2588 Add build rule for this file.
2589 * python/py-event.h (emit_new_objfile_event): New prototype.
2590 (newobjfile): New Python event emitter.
2591 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2592 Python event registry.
2593 * python/py-inferior.c: Include objfiles.h
2594 (python_new_objfile): New function.
2595 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2597 * python/py-newobjfileevent.c: New file.
2598 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2600 * python/python.c (_initialize_python): Add
2601 gdbpy_initialize_new_objfile_event call.
2602 * NEWS: Add item for new Python event "gdb.newobjfile"
2604 2011-10-05 Tristan Gingold <gingold@adacore.com>
2606 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2607 Extract the ravenscar task name from the symbol for the atcb.
2609 2011-10-04 Paul Koning <paul_koning@dell.com>
2611 * python/py-type.c (typy_make_iter): Add forward declaration.
2612 (typy_fields_items): Use the gdb.Type iterator.
2614 2011-10-04 Paul Koning <paul_koning@dell.com>
2616 * NEWS: Add entry for Python gdb.Type mapping methods.
2618 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2620 PR python/12691: Add the inferior to Python exited event
2621 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2623 * python/py-event.h (emit_exited_event): Likewise
2624 * python/-inferior.c (python_inferior_exit): Likewise
2626 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2628 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2629 in output of -ada-task-info GDB/MI command.
2631 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2633 * ada-lang.h (struct inferior): Declare.
2634 (print_ada_task_info): Add declaration.
2635 * ada-tasks.c (print_ada_task_info): Make non-static.
2636 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2637 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2638 * mi/mi-main.c: #include "ada-lang.h".
2639 (mi_cmd_list_features): Add "ada-task-info" to the list
2640 of supported features.
2641 (mi_cmd_ada_task_info): New function.
2643 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2645 * python/python.c (python_run_simple_file): New function.
2646 (source_python_script, source_python_script_for_objfile):
2647 Replace call to PyRun_SimpleFile by call to
2648 python_run_simple_file.
2650 2011-10-03 Paul Koning <paul_koning@dell.com>
2652 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2653 (value_to_value_object): Fetch value if it was lazy.
2655 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2658 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2659 Rearrange the code for it.
2661 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2663 * breakpoint.c (bkpt_print_recreate): Add call to
2664 print_recreate_thread.
2666 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2668 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2669 PTRACE_GETFDPIC_INTERP): Define.
2671 2011-09-28 Yao Qi <yao@codesourcery.com>
2673 * symfile.c (add_symbol_file_command): Update message on usage.
2675 2011-09-28 Paul Koning <paul_koning@dell.com>
2677 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2678 (typy_length, typy_get, typy_has_key, typy_make_iter)
2679 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2680 (typy_iterator_iter, typy_iterator_iternext)
2681 (typy_iterator_dealloc): New functions to implement standard
2682 Python mapping methods on gdb.Type object.
2683 (gdb.TypeIterator): New Python type.
2684 * python/python-internal.h (gdbpy_iter_kind): New enum.
2686 2011-09-28 David S. Miller <davem@davemloft.net>
2688 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2689 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2690 * sparc-tdep.c (sparc_complex_floating_p): New function.
2691 (sparc32_store_arguments): Handle complex floats.
2692 (sparc32_extract_return_value): Likewise.
2693 (sparc32_store_return_value): Likewise.
2694 (sparc32_stabs_argument_has_addr): Likewise.
2695 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2696 (sparc64_store_floating_fields): Handle complex floats.
2697 (sparc64_store_arguments): Likewise.
2698 (sparc64_store_return_value): Likewise.
2700 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2702 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2703 before the change on 2006-12-09.
2704 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2705 generates the environment block for CreateProcessA, modulo the
2706 Cygwin-specific parts that are not needed here.
2708 2011-09-27 Tristan Gingold <gingold@adacore.com>
2710 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2711 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2712 (darwin_solib_get_all_image_info_addr_at_init): New function.
2713 (darwin_solib_read_all_image_info_addr): Likewise.
2714 (darwin_solib_create_inferior_hook): Use the above two functions.
2715 * darwin-nat.c (darwin_execvp): Renames retval to res.
2716 (darwin_read_write_inferior): Update comment.
2717 (darwin_read_dyld_info): New function.
2718 (darwin_xfer_partial): Handle DYLD_INFO.
2720 2011-09-27 Stan Shebs <stan@codesourcery.com>
2722 Add return address collection for tracepoints.
2723 * tracepoint.c (encode_actions_1): Add case for $_ret.
2724 (validate_actionline): Check for $_ret.
2725 (trace_dump_actions): Ditto.
2726 * ax-gdb.h (gen_trace_for_return_address): Declare.
2727 * ax-gdb.c: Include arch-utils.h.
2728 (gen_trace_for_return_address): New function.
2729 (agent_command): Add return address special case.
2730 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2731 (amd64_gen_return_address): New function.
2732 (amd64_init_abi): Call it.
2733 * i386-tdep.c: Include ax.h and ax-gdb.h.
2734 (i386_gen_return_address): New function.
2735 (i386_init_abi): Call it.
2736 * arch-utils.h (default_gen_return_address): Declare.
2737 * arch-utils.c (default_gen_return_address): New function.
2738 * gdbarch.sh (gen_return_address): New method.
2739 * gdbarch.h, gdbarch.c: Regenerate.
2741 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2744 * i386-tdep.c (i386_frame_align): New.
2745 (i386_gdbarch_init): Use i386_frame_align.
2747 2011-09-23 Yao Qi <yao@codesourcery.com>
2749 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2752 2011-09-22 Tristan Gingold <gingold@adacore.com>
2754 * fork-child.c (fork_inferior): Add exec_fun parameter.
2755 Call exec_fun or execvp.
2756 * inferior.h: Adjust prototype.
2757 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2758 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2759 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2760 * procfs.c (procfs_create_inferior): Ditto.
2761 * darwin-nat.c (darwin_execvp): New function.
2762 (darwin_create_inferior): Use it.
2764 2011-09-22 Yao Qi <yao@codesourcery.com>
2766 * infrun.c (context_switch): Print debug message when switching to
2769 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2771 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2772 complex and vector types.
2773 (s390_return_value_convention): Likewise.
2775 (s390_value_from_register): Call check_typedef.
2776 (extend_simple_arg): Likewise.
2777 (alignment_of): Likewise.
2778 (s390_push_dummy_call): Likewise.
2779 (s390_return_value): Likewise.
2781 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2783 * event-top.c (async_disconnect): If an exception is thrown from
2784 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2786 * top.c (quit_cover): Return void and take no arguments.
2787 * top.h (quit_cover): Update prototype.
2789 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2791 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2792 current_uiout, not uiout.
2794 2011-09-19 Doug Evans <dje@google.com>
2796 * python/py-auto-load.c (source_section_scripts): Fix file
2798 * python/python.c (source_python_script_for_objfile): Tweak comments.
2800 2011-09-18 Yao Qi <yao@codesourcery.com>
2801 Ulrich Weigand <ulrich.weigand@linaro.org>
2803 Support displaced stepping for Thumb 16-bit insns.
2804 * arm-tdep.c (THUMB_NOP) Define.
2805 (thumb_copy_unmodified_16bit): New.
2806 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2807 (thumb_copy_alu_reg): New.
2808 (arm_copy_svc): Move some common code to ...
2809 (install_svc): ... here. New.
2810 (thumb_copy_svc): New.
2811 (install_pc_relative): New.
2812 (thumb_copy_pc_relative_16bit): New.
2813 (thumb_decode_pc_relative_16bit): New.
2814 (thumb_copy_16bit_ldr_literal): New.
2815 (thumb_copy_cbnz_cbz): New.
2816 (cleanup_pop_pc_16bit_all): New.
2817 (thumb_copy_pop_pc_16bit): New.
2818 (thumb_process_displaced_16bit_insn): New.
2819 (thumb_process_displaced_32bit_insn): New.
2820 (thumb_process_displaced_insn): process thumb instruction.
2822 Support displaced stepping for Thumb 32-bit insns.
2823 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2824 (thumb2_copy_preload): New.
2825 (thumb2_copy_copro_load_store): New.
2826 (thumb2_copy_b_bl_blx): New.
2827 (thumb2_copy_alu_imm): New.
2828 (thumb2_copy_load_reg_imm): New.
2829 (thumb2_copy_load_literal): New
2830 (thumb2_copy_block_xfer): New.
2831 (thumb_32bit_copy_undef): New.
2832 (thumb_32bit_copy_unpred): New.
2833 (thumb2_decode_ext_reg_ld_st): New.
2834 (thumb2_decode_svc_copro): New.
2835 (decode_thumb_32bit_store_single_data_item): New.
2836 (thumb_copy_pc_relative_32bit): New.
2837 (thumb_decode_pc_relative_32bit): New.
2838 (decode_thumb_32bit_ld_mem_hints): New.
2839 (thumb2_copy_table_branch): New
2840 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2843 2011-09-18 Yao Qi <yao@codesourcery.com>
2845 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2846 (install_b_bl_blx): Likewise.
2848 2011-09-17 Yao Qi <yao@codesourcery.com>
2850 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2851 (install_load_store): ... this. New.
2852 Change parameter BYTE to SIZE.
2853 (arm_copy_ldr_str_ldrb_strb): Update caller.
2854 (arm_decode_ld_st_word_ubyte): Update caller.
2856 2011-09-17 Yao Qi <yao@codesourcery.com>
2858 * infrun.c (displaced_step_fixup): Move some code ...
2859 (displaced_step_restore): ... here. New function.
2860 (handle_inferior_event): Cleanup displaced stepping state for both
2861 child and parent when get forked or vforked event.
2862 * regcache.c (get_thread_arch_aspace_regcache): New function.
2863 get_thread_arch_regcache (): Call it.
2865 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2867 * ada-tasks.c (print_ada_task_info): New function, merging
2868 short_task_info and info_tasks together. Reimplement using
2869 ui-out instead of printing to stdout directly. Move the code
2870 building and checking the task list here, instead of leaving it
2871 in info_tasks_command.
2872 (info_task): Move the code building and checking the task
2873 list here, instead of leaving it in info_tasks_command.
2874 (info_tasks_command): Delete code building and checking
2875 the task list - moved elsewhere. Update calls to info_tasks
2878 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2880 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2882 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2884 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2886 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2888 * ada-lang.h (ada_build_task_list): Remove parameter
2890 * ada-tasks.c (ada_build_task_list): Remove parameter
2891 `warn_if_null'. Adjust implementation and documentation.
2892 (valid_task_id, ada_get_environment_task)
2893 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2894 (info_tasks_command): Adjust implementation.
2895 (task_command): Likewise.
2896 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2897 to ada_build_task_list.
2899 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2901 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2902 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2903 (ada_tasks_inferior_data_handle): New static global.
2904 (get_ada_tasks_inferior_data): New function.
2905 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2906 (ada_get_environment_task, iterate_over_live_ada_tasks)
2907 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2909 (ada_set_current_inferior_known_tasks_addr): New function.
2910 (read_known_tasks, ada_build_task_list, short_task_info)
2911 (info_tasks, info_task, info_tasks_command, task_command_1)
2912 (task_command, ada_task_list_changed): Adjust.
2913 (ada_tasks_invalidate_inferior_data): New function.
2914 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2915 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2916 * ada-lang.h (struct inferior): Add declaration.
2917 (ada_task_list_changed): Update profile.
2918 * remote-wtx-pd.c: #include "inferior.h".
2919 (switch_to_pd_internal): Update call to ada_task_list_changed.
2921 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2923 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2924 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2925 (atcb_fieldno): Delete these static globals.
2926 (struct ada_tasks_pspace_data): New struct.
2927 (ada_tasks_pspace_data_handle): New static global.
2928 (get_ada_tasks_pspace_data): New function.
2929 (ada_tasks_invalidate_pspace_data): New function.
2930 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2931 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2932 (_initialize_tasks): Create this module's per-progspace
2935 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2937 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2939 2011-09-16 Tristan Gingold <gingold@adacore.com>
2941 * fork-child.c (fork_inferior): Update comment. Use alloca
2942 instead of xmalloc for argv. Move len and shell_command
2943 declarations in the block where they are used.
2944 Only call execvp. Factorize failure code.
2946 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2949 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2950 `exp_element' instead of an element of the same and make the function
2952 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2953 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2954 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2955 Change argument of `write_exp_elt' function call.
2956 Remove extra spaces from comments.
2957 * parser-defs.h (write_exp_elt): Remove prototype.
2959 2011-09-15 Paul Koning <paul_koning@dell.com>
2961 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2962 count of item appended to list.
2963 * python/py-type.c (typy_fields): Likewise.
2965 2011-09-15 Paul Koning <paul_koning@dell.com>
2967 * MAINTAINERS (Write After Approval): Add myself to the list.
2969 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2972 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2973 processes with multiple threads.
2974 (inf_has_multiple_thread_cb): New function.
2975 (inf_has_multiple_threads): New function.
2977 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2979 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2980 * python/py-inferior.c (GdbMethods): New Python method definition.
2982 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2984 Handle multiple breakpoint hits in Python interface:
2985 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2986 variable to breakpoints.
2987 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2988 bps instead of single breakpoint. Fix some space typos.
2989 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2990 variable to breakpoints.
2992 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2994 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2995 note if the breakpoint is internal.
2997 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2999 * MAINTAINERS (Write After Approval): Add myself to the list
3001 2011-09-14 Pedro Alves <pedro@codesourcery.com>
3003 * infrun.c (prepare_for_detach, wait_for_inferior)
3004 (fetch_inferior_event): Don't flush the register cache.
3005 * remote.c (struct stop_reply) <regcache>: Add comment.
3007 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3009 Remove excessive DWARF expressions memory duplication.
3010 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3012 (indirect_pieced_value): Remove variable result. Remove variable
3013 back_to and its use for baton.data.
3014 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3016 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3017 Update the function comment.
3019 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3021 * inferior.h (ALL_INFERIORS): New.
3022 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3023 for a stopped thread.
3024 (thread_db_find_new_threads): Look for threads in all inferiors.
3026 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3028 * breakpoint.c (update_watchpoint): Handle the case of the
3029 watchpoint to update not being in the breakpoint list yet.
3030 (hw_watchpoint_use_count): New, factored out from
3031 hw_watchpoint_used_count.
3032 (hw_watchpoint_used_count): Rename to ...
3033 (hw_watchpoint_used_count_others): ... this. Add `except'
3034 parameter. Don't count resources of `except'. Use
3035 hw_watchpoint_use_count.
3037 2011-09-13 Pedro Alves <pedro@codesourcery.com>
3039 * gdbthread.h (enum thread_state): Moved here.
3040 (struct thread_info): Rename `executing_' field to `executing' and
3041 `state_' to `state'.
3042 * thread.c (enum thread_state): Moved to gdbthread.h.
3043 (new_thread, add_thread_silent, delete_thread_1)
3044 (any_live_thread_of_process, thread_alive, set_running)
3045 (set_running, is_thread_state, any_running, is_executing)
3046 (set_executing, finish_thread_state, print_thread_info)
3047 (do_captured_thread_select): Adjust.
3049 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3051 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3052 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3054 2011-09-12 Pedro Alves <pedro@codesourcery.com>
3055 Matt Rice <ratmice@gmail.com>
3059 * interps.c (struct interp) <interpreter_out>: Delete field.
3060 (interp_new): Remove the data and uiout parameters and adjust.
3061 (interp_set): Only set the current_uiout from the interpreter's
3062 uiout after initializing the interpreter. Adjust call to
3064 (interp_ui_out): Adjust to call procs->ui_out_proc.
3065 (interp_data, interp_name): New.
3066 * interps.h (interp_init_ftype): Add `self' parameter.
3067 (interp_ui_out_ftype): New typedef.
3068 (struct interp_procs) <ui_out_proc>: New method pointer.
3069 (interp_new): Remove the data and uiout parameters.
3070 (interp_data, interp_name): Declare.
3071 * tui/tui-interp.c (tui_init): Adjust prototype.
3073 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3074 tui_out here. Adjust call to interp_new.
3075 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3076 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3078 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3079 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3080 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3081 Initialize mi->uiout depending on the mi_version as extracted from
3082 the interpreter's name.
3084 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3085 interp_new. Don't allocate the ui_out's of the interpreters here.
3087 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
3089 * solib.c (solib_used): New function.
3090 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3091 by another so_list object before freeing it.
3093 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3096 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3099 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3102 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3103 (amd64_skip_xmm_prologue): ... this new function. Describe its
3104 parameters. No longer use amd64_prologue_line_bug.
3105 * defs.h (producer_is_gcc_ge_4): New declaration.
3106 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3107 (process_full_comp_unit): Update its caller. Remove
3108 amd64_prologue_line_bug initialization.
3109 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3110 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3112 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3114 * linux-nat.h (enum resume_kind): New.
3115 (struct lwp_info) <last_resume_kind>: New field.
3116 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3117 resume_stop on the new lwp.
3118 (add_lwp): Set last_resume_kind as resume_continue by default.
3119 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3120 (resume_lwp): New, factored out from resume_callback. Also check
3121 for pending status in lp->waitstatus.
3122 (resume_callback): Reimplement.
3123 (resume_clear_callback): Set last_resume_kind as resume_stop.
3124 (resume_set_callback): Set last_resume_kind as resume_continue.
3125 (linux_nat_resume, linux_handle_extended_wait): Set
3127 (running_callback): Also check lp->waitstatus for pending events.
3128 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3130 (stop_and_resume_callback): Don't re-resume if the core wanted the
3131 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3132 using an invalidated pointer.
3133 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3134 SIGSTOPs if the core wanted the LWP to stop.
3135 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3136 wanted the lwp to stop. If the core wanted the lwp to stop, and
3137 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3138 of TARGET_SIGNAL_STOP.
3139 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3140 here. Instead, signal the lwp, and set the last_resume_kind to
3143 2011-09-09 Pedro Alves <pedro@codesourcery.com>
3145 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3146 -1 (error), if the lwp exits right after attaching.
3148 2011-09-08 Doug Evans <dje@google.com>
3150 * py-cmd.c: Some minor formatting fixes.
3151 (gdbpy_parse_command_name): Rename text arg to name, make const.
3152 All callers updated.
3153 * python-internal.h (gdbpy_parse_command_name): Update.
3155 * cli/cli-decode.c (add_cmd): Add comment.
3157 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3159 PR breakpoints/12435
3160 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3161 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3162 * dwarf2read.c (process_full_comp_unit): Initialize
3163 amd64_prologue_line_bug.
3164 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3166 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3168 Fix TUI screen corruption.
3169 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3172 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3174 * findvar.c (read_var_value): Never return NULL, throw an error
3175 instead. Update the function comment. State symbol name in the error
3177 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3179 * stack.c (print_frame_args): Likewise.
3180 * valops.c (value_of_variable): Likewise.
3182 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3184 * stack.c (print_frame_args): New variable except. Wrap
3185 read_var_value and common_val_print into TRY_CATCH.
3187 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3189 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3190 caller to value_of_this.
3191 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3193 * valops.c (value_of_this): Remove parameter complain and variable ret.
3194 Update function comment. Never return NULL by this code.
3195 (value_of_this_silent): New function.
3196 * value.h (value_of_this): Remove parameter complain.
3197 (value_of_this_silent): New declaration.
3199 2011-09-07 Yao Qi <yao@codesourcery.com>
3201 * gdbthread.h (struct thread_info): Remove fields
3202 `stepping_through_solib_after_catch' and
3203 `stepping_through_solib_catchpoints'.
3204 * infrun.c (init_thread_stepping_state): Update.
3205 (process_event_stop_test, currently_stepping): Update.
3206 (currently_stepping_or_nexting_callback): Update.
3208 2011-09-07 Yao Qi <yao@codesourcery.com>
3210 * gdbthread.h (struct thread_info): Comment on field
3211 `step_after_step_resume_breakpoint'.
3213 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3215 * remote.c (remote_console_output): Reindent.
3217 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3219 * frame.c (has_stack_frames): Check for currently selected
3222 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3224 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3225 (set_async_annotation_level, set_async_prompt, pop_prompt)
3226 (push_prompt, new_async_prompt): Delete declarations.
3227 * top.h (get_prompt, set_prompt): Change prototype.
3228 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3230 * top.c (command_loop):
3231 (top_prompt): New global.
3232 (get_prefix, set_prefix, get_suffix, ): Delete.
3233 (get_prompt, set_prompt): Rewrite.
3234 (show_new_async_prompt): Rename to ...
3235 (show_prompt): ... this.
3236 (init_main): Adjust. Don't handle --annotate=2 here.
3237 * event-top.c (new_async_prompt): Delete.
3238 (the_prompts): Delete.
3239 (more_to_come): Make static.
3240 (display_gdb_prompt): Use top_level_prompt() to compute the top
3241 level prompt, and don't notify the before_prompt observers
3242 directly here. Always trick readline into not trying to display
3243 the prompt if sync_execution and displaying the primary prompt.
3244 If displaying a local/secondary prompt, always show it, even if
3245 sync_execution is set.
3246 (change_annotation_level): Delete.
3247 (top_level_prompt): New, based on change_annotation_level.
3248 (push_prompt, pop_prompt): Delete.
3249 (async_disable_stdin): No longer pushes prompt.
3250 (command_line_handler): No longer pushes or pops prompt. If more
3251 input is expected, call display_gdb_prompt with an explicit empty
3253 (async_stop_sig): Adjust.
3254 (set_async_annotation_level, set_async_prompt): Delete.
3255 * python/python.c (before_prompt_hook): Adjust.
3257 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3261 * infrun.c (fetch_inferior_event): Check if there's a selected
3262 thread before checking if the selected thread is executing.
3264 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3266 * inf-loop.c (execute_command): Don't check if the current thread
3267 if running before synchronously waiting for command completion.
3268 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3270 (normal_stop): Call async_enable_stdin here.
3271 * inf-loop.c (inferior_event_handler): Don't call
3272 async_enable_stdin, nor handle "set exec-done-display" here.
3274 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3278 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3280 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3282 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3284 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3286 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3288 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3290 2011-09-02 Matt Rice <ratmice@gmail.com>
3293 * event-top.c (cli_command_loop): Replace readline setup with
3294 direct call to display_gdb_prompt.
3295 (display_gdb_prompt): Do not call observer mechanism during
3296 synchronous execution.
3298 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3300 * linux-nat.c (in_pid_list_p): New.
3301 (linux_record_stopped_pid): Delete.
3302 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3303 already attached to the LWP. Return an indication if so.
3304 (linux_nat_filter_event): Adjust.
3305 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3306 returning an indication to ignore this thread.
3308 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3310 * top.c: Include interps.h.
3311 (execute_command): If the target can async, but the interpreter is
3312 in sync mode, synchronously wait for the command to finish before
3314 (execute_command_to_string): Force the interpreter to sync mode.
3315 * infrun.c: Include interps.h.
3316 (fetch_inferior_event): Don't restore the prompt yet if the
3317 interpreter is in sync mode.
3318 * interps.c (interpreter_async): New global.
3319 * interps.h (interpreter_async): Declare.
3320 * inf-loop.c: Include interps.h.
3321 (inferior_event_handler): Don't print the language change or run
3322 breakpoint commands yet if the interpreter in is sync mode.
3323 * main.c (captured_command_loop): Flip the interpreter to async
3325 * cli/cli-script.c: Include interps.h.
3326 (execute_user_command, while_command, if_command): Force the
3327 interpreter to sync mode.
3328 * python/python.c: Include interps.h.
3329 (python_command, execute_gdb_command): Force the interpreter to
3332 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3334 * value.c (show_convenience): Catch errors thrown while printing
3335 each internal variable.
3336 * infrun.c (validate_siginfo_access): New function.
3337 (siginfo_value_read, siginfo_value_write): Call it.
3339 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3342 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3343 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3346 2011-08-29 Yao Qi <yao@codesourcery.com>
3348 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3350 (enable_break2): Update caller.
3351 * solib-frv.c (bfd_lookup_symbol): Removed.
3353 (enable_break2): Update caller.
3354 * solib-pa64.c (bfd_lookup_symbol): Removed.
3356 * solib-svr4.c (bfd_lookup_symbol): Removed.
3357 (cmp_name_and_sec_flags): New.
3358 (enable_break): Update caller.
3359 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3360 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3361 (gdb_bfd_lookup_symbol): New.
3362 * solib.h: Functions declarations.
3364 2011-08-29 Yao Qi <yao@codesourcery.com>
3366 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3369 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3371 Fix TUI stepi on code without symbols.
3372 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3375 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3378 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3379 and the static keyword.
3380 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3381 Make prefix an array.
3382 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3383 * mi/mi-main.c (get_register): Remove stb initialization and the static
3386 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3388 Code cleanup - make mi_opt const.
3389 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3391 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3392 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3393 (mi_cmd_env_dir): Likewise.
3394 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3395 (mi_cmd_target_file_put): Likewise.
3396 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3397 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3398 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3399 (mi_valid_noargs): Make opts const.
3400 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3401 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3402 (mi_cmd_data_read_memory): Likewise.
3403 (mi_cmd_data_read_memory_bytes): Likewise.
3404 (mi_cmd_data_write_memory): Likewise.
3406 2011-08-26 Matt Rice <ratmice@gmail.com>
3408 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3409 bcache_xmalloc, replace bcache_xmalloc with call to
3410 psymbol_bcache_init for psymbol_cache.
3411 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3413 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3415 * inf-loop.c (inferior_event_handler): Add exception_print in
3418 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3420 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3421 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3422 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3423 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3424 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3425 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3426 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3427 * infrun.c (fetch_inferior_event): Call
3428 make_bpstat_clear_actions_cleanup.
3429 * top.c (execute_command): New variable cleanup_if_error, call
3430 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3431 * utils.c (do_bpstat_clear_actions_cleanup)
3432 (make_bpstat_clear_actions_cleanup): New functions.
3434 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3436 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3437 either the parent or the child forks. Rename a couple locals.
3439 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3441 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3442 library call. Avoid reading the `status' local if all waitpid
3445 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3447 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3448 opening /proc/PID/task always succeeds.
3450 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3452 * linespec.c (symtab_from_filename): Check for the end of string.
3454 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3457 * varobj.c (cplus_describe_child): Add the keyword
3458 'class' to the output of the method when dealing
3459 with a cast to a base class.
3461 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3463 No functionality change.
3464 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3465 function comment a reference, new variables tp and bs, move here code
3466 from throw_exception.
3467 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3468 describe it in the comment.
3469 * exceptions.c (throw_exception): Remove variable tp, move the code for
3470 bpstat_clear_actions to bpstat_clear_actions.
3472 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3474 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3475 * linux-nat.c: Include linux-procfs.h.
3476 (linux_proc_get_tgid): Move to ...
3477 * common/linux-procfs.c: ... here. New file.
3478 * common/linux-procfs.h: New file.
3479 * linux-thread-db.c: Include linux-procfs.h.
3480 * Makefile.in: Update dependencies.
3481 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3482 * config/arm/linux.mh: Likewise.
3483 * config/i386/linux.mh: Likewise.
3484 * config/i386/linux64.mh: Likewise.
3485 * config/ia64/linux.mh: Likewise.
3486 * config/m32r/linux.mh: Likewise.
3487 * config/m68k/linux.mh: Likewise.
3488 * config/mips/linux.mh: Likewise.
3489 * config/pa/linux.mh: Likewise.
3490 * config/pa/linux.mh: Likewise.
3491 * config/powerpc/linux.mh: Likewise.
3492 * config/powerpc/ppc64-linux.mh: Likewise.
3493 * config/powerpc/spu-linux.mh: Likewise.
3494 * config/sparc/linux.mh: Likewise.
3495 * config/sparc/linux64.mh: Likewise.
3496 * config/xtensa/linux.mh: Likewise.
3498 2011-08-24 Hui Zhu <teawater@gmail.com>
3500 * tracepoint.c (cond_string_is_same): New function.
3501 (find_matching_tracepoint): Add condition check
3502 by cond_string_is_same.
3504 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3506 Fix build error in Darwin port.
3507 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3509 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3512 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3513 (command_line_is_silent): New function.
3514 (bpstat_do_actions_1): No longer use commands_left, use
3515 command_line_is_silent for commands.
3516 (bpstat_alloc): Remove clearing of commands_left.
3517 (bpstat_stop_status): Remove initialization of commands_left, use
3518 command_line_is_silent.
3519 * breakpoint.h (struct bpstats): Remove commands_left.
3521 2011-08-18 Keith Seitz <keiths@redhat.com>
3524 * cp-name-parser.y (struct demangle_info): Remove unused
3527 (allocate_info): Change return type to struct demangle_info *.
3528 Always allocate a new demangle_info.
3529 Remove unused PREV pointer.
3530 (cp_new_demangle_parse_info): New function.
3531 (cp_demangled_name_parse_free): New function.
3532 (do_demangled_name_parse_free_cleanup): New function.
3533 (make_cleanup_cp_demangled_name_parse_free): New function.
3534 (cp_demangled_name_to_comp): Change return type to
3535 struct demangle_parse_info *.
3536 Allocate a new storage for each call.
3537 (main): Update usage for cp_demangled_name_to_comp
3539 * cp-support.h (struct demangle_parse_info): New structure.
3540 (cp_demangled_name_to_comp): Update API change for
3542 (cp_new_demangle_parse_info): Declare.
3543 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3544 (cp_demangled_name_parse_free): Declare.
3545 * cp-support.c (cp_canonicalize_string): Update API
3546 change for cp_demangled_name_to_comp.
3547 (mangled_name_to_comp): Likewise.
3548 Return struct demangle_parse_info, too.
3549 (cp_class_name_from_physname): Update mangled_name_to_comp
3551 (method_name_from_physname): Likewise.
3552 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3553 (cp_remove_params): Likewise.
3554 * python/py-type.c (typy_legacy_template_argument): Likewise.
3556 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3557 (cp_merge_demangle_parse_infos): Declare.
3558 * cp-support.c (ignore_typedefs): New file global.
3559 (copy_string_to_obstack): New function.
3560 (inspect_type): New function.
3561 (replace_typedefs): New function.
3562 (replace_typedefs_qualified_name): New function.
3563 (cp_canonicalize_string_no_typedefs): New function.
3564 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3565 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3566 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3567 instead of cp_canonicalize_string.
3568 (find_method): Likewise.
3569 (decode_compound): Before looking up the name, call
3570 cp_canonicalize_string_no_typedefs.
3571 (decode_variable): Likewise.
3573 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3574 Tom Tromey <tromey@redhat.com>
3575 Matt Rice <ratmice@gmail.com>
3577 * python/lib/gdb/prompt.py: New file.
3578 * python/lib/gdb/command/prompt.py: New file.
3579 * NEWS: Document set extended-prompt and gdb.prompt library
3581 2011-08-16 Yao Qi <yao@codesourcery.com>
3583 * tic6x-linux-tdep.c: Move const arrays definition from here...
3584 * tic6x-tdep.c: to here ...
3586 2011-08-14 Yao Qi <yao@codesourcery.com>
3588 * NEWS: New port to Texas Instruments TMS320C6x.
3590 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3591 Bernd Schmidt <bernds@codesourcery.com>
3592 Yao Qi <yao@codesourcery.com>
3594 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3595 * solib-dsbt.c: New file. Support DSBT shared object.
3596 * tic6x-linux-tdep.c: New file.
3597 * tic6x-tdep.c: New file.
3598 * tic6x-tdep.h: New file.
3600 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3601 Yao Qi <yao@codesourcery.com>
3603 * remote.c (PACKET_qXfer_fdpic): New enum value.
3604 (remote_protocol_features): Add qXfer:fdpic:read packet.
3605 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3606 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3607 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3609 2011-08-14 Yao Qi <yao@codesourcery.com>
3611 Target description for tic6x.
3612 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3613 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3614 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3615 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3616 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3617 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3618 * features/tic6x-c64xp-linux.xml: New.
3619 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3620 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3621 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3622 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3623 * regformats/tic6x-c64xp.dat,
3624 regformats/tic6x-c62x-linux.dat: Generated.
3625 * regformats/tic6x-c64x-linux.dat,
3626 regformats/tic6x-c64xp-linux.dat: Generated.
3627 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3628 features/tic6x-*.c files.
3629 Add regformats/tic6x-*.dat files.
3631 2011-08-12 Doug Evans <dje@google.com>
3633 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3634 * python/py-symbol.c (sympy_get_type): New function.
3635 (symbol_object_getset): Add "type".
3637 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3641 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3643 (tui_show_register_group): Don't store a byte buffer in the data
3645 (tui_register_format): Skip registers with an empty name.
3646 (tui_get_register): Store a struct value in the data element's
3647 value field instead of a byte buffer holding the raw register
3648 contents. Account for optimized-out and unavailable registers
3649 when comparing register contents.
3651 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3653 * printcmd.c (current_display_number): Update comment.
3654 (disable_current_display_cleanup): Delete.
3655 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3656 catch errors thrown while evaluating and printing the display.
3658 2011-08-09 Tom Tromey <tromey@redhat.com>
3660 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3662 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3664 * elfread.c (elf_symtab_read): Rework comments.
3665 * maint.c (maintenance_command): Ditto.
3666 * somread.c (som_symtab_read): Ditto.
3667 * solib.c (solib_find, solib_map_sections, update_solib_list)
3668 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3669 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3670 (sharedlibrary_command, no_shared_libraries): Ditto.
3671 * solib-irix.c (locate_base, disable_break, enable_break)
3672 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3673 (irix_current_sos, irix_open_symbol_file_object)
3674 (irix_special_symbol_handling): Ditto.
3675 * solib-sunos.c (locate_base, first_link_map_member)
3676 (sunos_current_sos, disable_break, enable_break)
3677 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3679 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3680 (open_symbol_file_object, svr4_current_sos, enable_break)
3681 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3683 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3684 (frv_current_sos, enable_break, frv_special_symbol_handling)
3685 (frv_solib_create_inferior_hook): Ditto.
3686 * solist.h (struct target_so_ops): Extend the comments of the
3687 special_symbol_handling, current_sos and open_symbol_file_object
3690 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3692 * python/lib/gdb/__init__.py: Auto-load files in command and
3693 function directories.
3694 * python/python.c (finish_python_initialization): Use
3696 * python/lib/gdb/command/pretty_printers.py: Self register
3698 * NEWS: Document auto-loading.
3700 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3702 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3703 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3704 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3706 2011-08-08 Tom Tromey <tromey@redhat.com>
3708 * breakpoint.c (clean_up_filters): Remove.
3709 (catch_syscall_split_args): Use VEC_cleanup.
3711 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3713 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3714 (main): Uncomment "Demangling error\n".
3716 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3718 * solib-target.c (segment_attributes): Make them static.
3719 (section_attributes, library_children, library_attributes): Likewise.
3720 (library_list_children, library_list_attributes): Likesise.
3721 (library_list_elements): Likewise.
3723 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3725 * exceptions.c (throw_exception): Don't disable the current
3727 * printcmd.c (disable_current_display_cleanup): New function.
3728 (do_one_display): Install a cleanup to disable the current display
3729 if doing the display throws.
3731 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3733 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3734 initialization of the tp_new member to the corresponding
3735 gdbpy_initialize_* function.
3736 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3737 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3738 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3739 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3740 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3742 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3744 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3745 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3746 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3747 references to current_uiout.
3749 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3751 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3752 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3753 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3754 * top.c (gdb_readline_wrapper): Adjust.
3755 * tui/tui-interp.c (tui_command_loop):
3756 (_initialize_tui_interp): Don't install it.
3758 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3760 * ui-out.h (uiout): Rename to ...
3761 (current_uiout): ... this.
3762 * ui-out.c (uiout): Rename to ...
3763 (current_uiout): ... this.
3764 * ada-lang.c (print_it_exception, print_one_exception)
3765 (print_mention_exception): Adjust.
3766 * breakpoint.c (watchpoint_check): Adjust.
3767 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3768 (default_collect_info, watchpoints_info, print_one_catch_fork)
3769 (print_one_catch_vfork, print_one_catch_syscall)
3770 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3771 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3772 (print_it_watchpoint, print_mention_watchpoint)
3773 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3774 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3775 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3776 (bkpt_print_mention, momentary_bkpt_print_it)
3777 (tracepoint_print_mention, update_static_tracepoint)
3778 (tracepoints_info, save_breakpoints): Adjust.
3779 * cli-out.c (field_separator): Adjust.
3780 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3781 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3782 * frame.c (get_current_frame): Adjust.
3783 * infcmd.c (run_command_1, print_return_value): Adjust.
3784 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3785 * infrun.c (print_end_stepping_range_reason): Adjust.
3786 (print_signal_exited_reason, print_exited_reason): Adjust.
3787 (print_signal_received_reason, print_no_history_reason): Adjust.
3788 * interps.c (interp_set): Adjust.
3789 * osdata.c (info_osdata_command): Adjust.
3790 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3791 * remote-fileio.c (remote_fileio_request): Adjust.
3792 * remote.c (show_remote_cmd): Adjust.
3793 * solib.c (info_sharedlibrary_command): Adjust.
3794 * source.c (print_source_lines_base): Adjust.
3795 * stack.c (print_stack_frame): Adjust.
3796 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3797 * symfile-mem.c (add_vsyscall_page): Adjust.
3798 * symfile.c (load_progress, generic_load)
3799 (print_transfer_performance): Adjust.
3800 * thread.c (info_threads_command, restore_selected_frame)
3801 (thread_command): Adjust.
3802 * top.c (make_cleanup_restore_ui_file): Adjust.
3803 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3804 (print_one_static_tracepoint_marker): Adjust.
3805 * cli/cli-cmds.c (print_disassembly): Adjust.
3806 * cli/cli-decode.c (print_doc_line): Adjust.
3807 * cli/cli-interp.c (safe_execute_command): Adjust.
3808 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3809 (handle_redirections): Adjust.
3810 * cli/cli-script.c (show_user_1): Adjust.
3811 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3812 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3813 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3814 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3815 (mi_cmd_env_dir): Adjust.
3816 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3817 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3818 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3819 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3820 (list_args_or_locals): Adjust.
3821 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3822 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3823 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3824 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3825 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3826 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3827 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3828 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3829 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3830 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3831 (list_available_thread_groups, mi_cmd_list_thread_groups)
3832 (mi_cmd_data_list_register_names)
3833 (mi_cmd_data_list_changed_registers)
3834 (mi_cmd_data_list_register_values, get_register)
3835 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3836 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3837 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3838 (mi_execute_command, mi_load_progress): Adjust.
3839 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3840 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3842 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3843 * tui/tui-interp.c (tui_command_loop): Adjust.
3844 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3846 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3848 * exceptions.c (struct catcher): Remove saved_uiout field.
3849 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3850 no longer save/resvore the global ui_out builder.
3851 (catch_exceptions_with_msg): Save/override/restore the global
3852 ui_out builder manually instead of relying on TRY_CATCH to do it.
3853 (catch_errors): Save/restore the global ui_out builder manually
3854 instead of relying on TRY_CATCH to do it.
3855 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3857 (TRY_CATCH): Adjust.
3858 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3859 the global ui_out builder manually instead of relying on TRY_CATCH
3862 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3864 * breakpoint.c (update_global_location_list): Ensure
3865 invariant 'first loc marked not duplicated and inserted,
3866 following locs marked duplicated/not inserted' is respected
3867 for multiple locations at the same address.
3868 (unduplicated_should_be_inserted) New function.
3869 (swap_insertion) New function.
3871 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3873 * stack.c (print_frame_arguments_choices): Comment typo fix.
3875 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3878 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3879 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3880 argument. Update callers.
3882 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3885 * doublest.c (convert_doublest_to_floatformat): Pass correct
3886 mantissa length to put_field.
3888 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3890 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3891 exception_print code path.
3892 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3893 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3894 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3896 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3899 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3900 Remove, merge them into ...
3901 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3902 variable args and its initialization.
3903 (struct print_args_args, print_args_stub): Remove, merge them into
3905 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3907 (do_gdb_disassembly): ... here. Remove variable args and its
3909 (print_frame): Remove variable args and its initialization, new
3910 variable gdbarch and numargs (from print_args_stub), inline here
3911 print_args_stub with a TRY_CATCH.
3912 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3914 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3915 New variable e, remove variable btargs and its initialization.
3917 2011-08-01 Tristan Gingold <gingold@adacore.com>
3919 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3921 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3923 * breakpoint.c (insert_bp_location): Document return value.
3924 (insert_breakpoint_locations): Fix documentation.
3925 (remove_breakpoints): Add documentation.
3927 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3929 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3930 argument. Update callers.
3932 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3934 * stack.c (print_frame_info): Comment typo fix.
3936 2011-07-29 Sterling Augustine <saugustine@google.com>
3938 * MAINTAINERS (Write After Approval): Add myself to the list.
3940 2011-07-29 Tom Tromey <tromey@redhat.com>
3942 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3943 (library_list_start_segment): Update.
3944 (library_list_start_section): Update.
3946 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3948 * varobj.c (value_get_print_value): Move hint check later into the
3949 function. Comment function. Free thevalue before reusing it.
3951 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3952 Pedro Alves <pedro@codesourcery.com>
3954 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3956 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3957 Assert the result kind.
3958 * value.h (value_one): Remove parameter lv.
3960 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3962 Fix crash on lval_computed values.
3963 * valops.c (value_zero): Use not_lval for lval_computed.
3965 2011-07-27 Tom Tromey <tromey@redhat.com>
3967 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3968 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3970 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3972 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3973 "ptype" by their typedefs difference.
3975 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3977 * dwarf2expr.c (ctx_no_read_reg): New function.
3978 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3979 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3980 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3981 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3983 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3985 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3986 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3988 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3989 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3990 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3991 (ctx_no_get_base_type): Move the functions here.
3992 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3993 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3994 (ctx_no_get_base_type): New declarations.
3996 2011-07-27 Tom Tromey <tromey@redhat.com>
3998 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4000 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4001 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4003 2011-07-26 Sterling Augustine <saugustine@google.com>
4005 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4007 (dump_bfd_file): Likewise.
4009 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4011 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4012 (remote_hw_watchpoint_length_limit): New variable.
4013 (_initialize_remote) add set,show cmds for this new variable.
4014 * gdb.texinfo: document these new commands.
4015 * NEWS: Mention these new commands.
4017 2011-07-26 Pedro Alves <pedro@codesourcery.com>
4019 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4020 true for software watchpoints.
4022 2011-07-26 Joel Brobecker <brobecker@adacore.com>
4026 2011-07-26 Tom Tromey <tromey@redhat.com>
4028 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4029 * dwarf2read.c (read_indirect_string_at_offset): New function.
4030 (read_indirect_string): Use it.
4031 (dwarf_decode_macro_bytes): New function, taken from
4032 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4033 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4034 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4036 (struct dwarf2_per_objfile) <macro>: New field.
4037 (dwarf2_elf_names): Add .debug_macro.
4038 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4039 (dwarf2_locate_sections): Handle new section.
4040 (read_file_scope): Handle DW_AT_GNU_macros.
4041 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4043 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4045 * NEWS: Mention dcache configuration.
4046 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4047 (dcache_size, dcache_line_size): New variables.
4048 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4049 (struct dcache_block): Make it expandable.
4050 (struct dcache_struct): New field.
4051 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4052 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4053 (dcache_poke_byte, dcache_print_line): Adjust.
4054 (set_dcache_size, set_dcache_line_size): New functions.
4055 (set_dcache_command, show_dcache_command): New functions.
4056 (_initialize_dcache): Add new commands.
4058 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4060 * progspace.h (struct program_space): Add solib_add_generation.
4061 * infcmd.c (post_create_inferior): Only call solib_add if not
4063 * solib.c (solib_add): Increment solib_add_generation.
4065 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4067 Fix implicit pointer offsets.
4068 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4071 2011-07-25 Tom Tromey <tromey@redhat.com>
4073 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4075 (ada_exception_sal): Make 'ops' const.
4076 (ada_decode_exception_location): Likewise.
4077 (ada_decode_assert_location): Likewise.
4078 (catch_assert_command): Update.
4079 (catch_ada_exception_command): Update.
4080 (create_ada_exception_catchpoint): Make 'ops' const.
4081 * breakpoint.c (set_raw_breakpoint_without_location)
4082 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4084 (create_internal_breakpoint): Update.
4085 (init_raw_breakpoint_without_location): Make 'ops' const.
4086 (init_raw_breakpoint, init_catchpoint)
4087 (create_fork_vfork_event_catchpoint)
4088 (create_syscall_event_catchpoint, init_breakpoint_sal)
4089 (create_breakpoint_sal, create_breakpoints_sal)
4090 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4091 * breakpoint.h (struct breakpoint) <ops>: Now const.
4092 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4095 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4097 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4099 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4101 * breakpoint.h (print_recreate_thread): Declare.
4102 (struct breakpoint): Move step_count, pass_count,
4103 number_on_target, static_trace_marker_id,
4104 static_trace_marker_id_idx ...
4105 (struct tracepoint): ... to this new struct.
4106 (get_tracepoint, get_tracepoint_by_number_on_target)
4107 (get_tracepoint_by_number): Change return type to struct
4109 * breakpoint.c (is_tracepoint_type): New, factored out from
4111 (is_tracepoint): Adjust.
4112 (print_one_breakpoint_location): Cast to struct tracepoint as
4113 necessary, and adjust.
4114 (print_recreate_catch_fork, print_recreate_catch_vfork)
4115 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4116 print_recreate_thread.
4117 (init_breakpoint_sal): New, factored out from
4118 create_breakpoint_sal.
4119 (create_breakpoint_sal): Reimplement.
4120 (create_breakpoint): Allocate a struct tracecepoint if the caller
4121 wanted a tracepoint. Use init_breakpoint_sal and
4123 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4124 (print_recreate_masked_watchpoint)
4125 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4126 (tracepoint_print_one_detail): Adjust.
4127 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4128 Dump the pass count here.
4129 (update_static_tracepoint): Adjust.
4130 (addr_string_to_sals): Adjust.
4131 (create_tracepoint_from_upload): Adjust. Change return type to
4132 struct tracepoint pointer.
4133 (trace_pass_set_count): Change parameter type to struct tracepoint
4134 pointer, and adjust.
4135 (trace_pass_command): Adjust.
4136 (get_tracepoint, get_tracepoint_by_number_on_target)
4137 (get_tracepoint_by_number): Change return type to struct
4138 tracepoint pointer, and adjust.
4139 (print_recreate_thread): New, factored out from save_breakpoints.
4140 (save_breakpoints): Don't print thread and task and passcount
4142 * remote.c (remote_download_tracepoint): Adjust.
4143 * tracepoint.c (trace_actions_command, validate_actionline)
4144 (start_tracing, tfind_1, trace_find_tracepoint_command)
4145 (trace_dump_command): Adjust.
4146 (find_matching_tracepoint): Change return type to struct
4147 tracepoint pointer, and adjust.
4148 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4149 (tfile_trace_find, tfile_fetch_registers): Adjust.
4150 * tracepoint.h (create_tracepoint_from_upload): Change return type
4151 to struct tracepoint pointer.
4152 * ada-lang.c (print_recreate_exception): Call
4153 print_recreate_thread.
4154 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4156 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4158 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4159 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4160 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4161 watchpoint_thread, watchpoint_triggered ...
4162 (struct watchpoint): ... to this new struct.
4163 (is_watchpoint): Declare.
4164 (install_breakpoint): Add new `internal' parameter.
4165 * breakpoint.c (is_watchpoint): Delete declaration.
4166 (set_breakpoint_condition): Handle watchpoints.
4167 (is_watchpoint): Make public.
4168 (watchpoint_in_thread_scope): Change parameter type to struct
4170 (watchpoint_del_at_next_stop): Change parameter type to struct
4171 watchpoint. Remove assertion. Adjust.
4172 (update_watchpoint): Ditto.
4173 (insert_breakpoints, breakpoint_init_inferior)
4174 (watchpoints_triggered, watchpoint_check)
4175 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4176 (bpstat_stop_status, print_one_breakpoint_location)
4177 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4178 to struct watchpoint as necessary, and adjust.
4179 (install_breakpoint): Add `internal' argument. If true, don't
4180 mention the new breakpoint. Use set_breakpoint_number.
4181 (create_fork_vfork_event_catchpoint)
4182 (create_syscall_event_catchpoint): Adjust.
4183 (dtor_watchpoint): New.
4184 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4185 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4186 (print_it_watchpoint, print_mention_watchpoint)
4187 (print_recreate_watchpoint, insert_masked_watchpoint)
4188 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4189 (print_one_detail_masked_watchpoint)
4190 (print_mention_masked_watchpoint)
4191 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4192 necessary, and adjust.
4193 (watch_command_1): Allocate and initialize a struct watchpoint
4194 instead of a struct breakpoint. Use install_breakpoint.
4195 (catch_exec_command_1): Adjust.
4196 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4198 (delete_breakpoint, enable_breakpoint_disp)
4199 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4200 as necessary, and adjust.
4201 (initialize_breakpoint_ops): Install dtor_watchpoint as
4202 watchpoints' dtor method.
4203 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4204 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4205 to struct watchpoint as necessary, and adjust.
4207 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4209 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4210 the the base class ops table.
4211 (catch_exception_breakpoint_ops)
4212 (catch_exception_unhandled_breakpoint_ops)
4213 (catch_assert_breakpoint_ops): Don't statically initialize.
4214 (initialize_ada_catchpoint_ops): New.
4215 (_initialize_ada_language): Call it.
4216 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4217 (bkpt_breakpoint_ops): Forward declare.
4218 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4219 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4220 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4221 (masked_watchpoint_breakpoint_ops)
4222 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4223 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4224 base class ops table.
4225 (null_re_set, null_check_status, null_works_in_software_mode)
4226 (null_resources_needed, null_print_one_detail): Delete.
4227 (bkpt_dtor): Rename to ...
4228 (base_breakpoint_dtor): ... this. Make static.
4229 (bkpt_allocate_location): Rename to ...
4230 (base_breakpoint_allocate_location): ... this. Make static.
4231 (base_breakpoint_re_set): New.
4232 (internal_error_pure_virtual_called): New.
4233 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4234 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4235 (base_breakpoint_works_in_software_mode)
4236 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4237 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4238 (base_breakpoint_print_recreate): New functions.
4239 (base_breakpoint_ops): New global.
4240 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4241 (bkpt_breakpoint_hit): Make static.
4242 (bkpt_check_status): Delete.
4243 (bkpt_resources_needed): Make static.
4244 (bkpt_works_in_software_mode): Delete.
4245 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4247 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4248 (momentary_breakpoint_ops): Don't statically initialize.
4249 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4251 (tracepoint_insert_location, tracepoint_remove_location)
4252 (tracepoint_check_status, tracepoint_works_in_software_mode)
4253 (tracepoint_print_it): Delete.
4254 (tracepoint_breakpoint_ops): Don't statically initialize.
4255 (initialize_breakpoint_ops): New.
4256 (_initialize_breakpoint): Call it.
4257 * breakpoint.h (null_re_set, null_works_in_software_mode)
4258 (null_resources_needed, null_check_status, null_print_one_detail):
4259 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4260 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4261 (bkpt_check_status, bkpt_resources_needed)
4262 (bkpt_works_in_software_mode, bkpt_print_it)
4263 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4264 Delete declarations.
4265 (initialize_breakpoint_ops): Declare.
4267 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4269 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4270 (momentary_bkpt_print_it): Simplify.
4272 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4274 Split internal, momentary and user breakpoints breakpoint_ops
4277 * breakpoint.c (internal_breakpoint_ops)
4278 (momentary_breakpoint_ops): Forward declare.
4279 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4280 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4281 (create_overlay_event_breakpoint)
4282 (create_std_terminate_master_breakpoint)
4283 (create_exception_master_breakpoint): Create breakpoints with
4284 internal_breakpoint_ops vtable.
4285 (set_longjmp_breakpoint): Create momentary breakpoints with
4286 momentary_breakpoint_ops vtable, using
4287 momentary_breakpoint_from_master.
4288 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4289 (create_solib_event_breakpoint): Create breakpoints with
4290 internal_breakpoint_ops vtable.
4291 (set_momentary_breakpoint): Create breakpoints with
4292 momentary_breakpoint_ops vtable.
4293 (momentary_breakpoint_from_master): New, factored out from
4294 clone_momentary_breakpoint.
4295 (clone_momentary_breakpoint): Adjust.
4296 (watch_command_1): Create scope breakpoints with
4297 momentary_breakpoint_ops vtable.
4298 (bkpt_re_set): Remove handling of internal and momentary
4300 (bkpt_print_mention, bkpt_print_recreate): New.
4301 (bkpt_breakpoint_ops): Adjust.
4302 (internal_bkpt_re_set, internal_bkpt_check_status)
4303 (internal_bkpt_print_it, internal_bkpt_print_mention)
4304 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4305 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4306 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4307 (momentary_bkpt_print_recreate): New.
4308 (momentary_breakpoint_ops): New.
4310 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4312 Implement most breakpoint_ops methods for all breakpoint types,
4313 and move the default handlings to the proper callbacks.
4315 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4316 works_in_software_mode method.
4317 (insert_bp_location): Go through breakpoint_ops->insert_location
4318 for software and hardware watchpoints.
4319 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4321 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4322 for software and hardware watchpoints.
4323 (print_it_typical): Delete.
4324 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4326 (watchpoint_check): Adjust comment.
4327 (bpstat_check_location): Simply always call the breakpoint's
4328 breakpoint_hit method.
4329 (bpstat_stop_status): Always call the breakpoint's check_status
4330 method. Remove special cases for watchpoints and internal event
4331 breakpoints from here (moved to the check_status implementations).
4332 (print_one_breakpoint_location): Assume b->ops is never NULL.
4333 Remove static tracepoint marker id printing from here (moved to
4334 the print_one_detail callback implementation of tracepoints).
4335 (init_bp_location): Assert OPS is never NULL.
4336 (allocate_bp_location): Always call the breakpoint's
4337 allocate_location method, and remove the default code from here.
4338 (free_bp_location): Always call the location's dtor method, and
4339 remove the default code from here.
4340 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4341 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4342 parameter. Pass it down.
4343 (set_raw_breakpoint): Ditto.
4344 (print_it_catch_fork): Adjust to take a bpstat as argument.
4345 (catch_fork_breakpoint_ops): Install methods.
4346 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4347 (catch_vfork_breakpoint_ops): Install methods.
4348 (dtor_catch_syscall): Call the base dtor.
4349 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4350 (catch_syscall_breakpoint_ops): Install methods.
4351 (dtor_catch_exec): Call the base dtor.
4352 (print_it_catch_exec): Adjust to take a bpstat as argument.
4353 (catch_exec_breakpoint_ops): Install methods.
4354 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4355 the breakpoint's resources_needed method, and remove the default
4357 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4359 (clone_momentary_breakpoint): Clone the original's ops.
4360 (mention): Always call the breakpoint's print_mention method, and
4361 remove the default code from here.
4362 (create_breakpoint_sal): Adjust to pass the ops to
4363 set_raw_breakpoint rather than setting it manually.
4364 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4365 ops to set_raw_breakpoint_without_location rather than setting it
4367 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4368 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4369 (ranged_breakpoint_ops): Install methods.
4370 (break_range_command): Adjust to pass the ops to
4371 set_raw_breakpoint rather than setting it manually.
4372 (re_set_watchpoint, breakpoint_hit_watchpoint)
4373 (check_status_watchpoint, resources_needed_watchpoint)
4374 (works_in_software_mode_watchpoint, print_it_watchpoint)
4375 (print_mention_watchpoint, print_recreate_watchpoint): New
4377 (watchpoint_breakpoint_ops): Install new methods.
4378 (print_it_masked_watchpoint): New function.
4379 (masked_watchpoint_breakpoint_ops): Install new methods.
4380 (watch_command_1): Adjust to pass the right breakpoint_ops to
4381 set_raw_breakpoint_without_location rather than setting it
4382 manually later. Record the current pspace.
4383 (print_it_exception_catchpoint): Adjust to take a bpstat as
4385 (gnu_v3_exception_catchpoint_ops): Install new methods.
4386 (say_where): New function.
4387 (null_re_set, null_check_status, null_works_in_software_mode)
4388 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4390 (bp_location_ops): New global.
4391 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4392 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4393 (bkpt_check_status, bkpt_resources_needed)
4394 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4395 (bkpt_print_recreate): New functions.
4396 (bkpt_breakpoint_ops): New global.
4397 (tracepoint_re_set, tracepoint_insert_location)
4398 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4399 (tracepoint_check_status, tracepoint_works_in_software_mode)
4400 (tracepoint_print_it, tracepoint_print_one_detail)
4401 (tracepoint_print_mention, tracepoint_print_recreate): New
4403 (tracepoint_breakpoint_ops): New global.
4404 (delete_breakpoint): Always call the breakpoint's dtor method, and
4405 remove the default handling from here.
4406 (breakpoint_re_set_default): Make static.
4407 (breakpoint_re_set_one): Always call the breakpoints re_set
4408 method, and remove the default handling from here.
4409 (trace_command, ftrace_command, strace_command)
4410 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4411 to create_breakpoint.
4412 (save_breakpoints): Always call the breakpoint's print_recreate
4413 method, and remove the default handling from here.
4415 * ada-lang.c (dtor_exception): Call the base dtor.
4416 (re_set_exception): Call the base method.
4417 (print_it_exception, print_it_catch_exception): Adjust to take a
4419 (catch_exception_breakpoint_ops): Install methods.
4420 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4422 (catch_exception_unhandled_breakpoint_ops): Install methods.
4423 (print_it_catch_assert): Adjust to take a bpstat as argument.
4424 (catch_assert_breakpoint_ops): Install methods.
4426 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4427 to take a bpstat as argument.
4428 (enum print_stop_action): Add describing comments to each enum
4430 (breakpoint_re_set_default): Delete declaration.
4431 (null_re_set, null_works_in_software_mode, null_resources_needed)
4432 (null_check_status, null_print_one_detail): Declare.
4433 (bkpt_breakpoint_ops): Declare.
4434 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4435 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4436 (bkpt_check_status, bkpt_resources_needed)
4437 (bkpt_works_in_software_mode, bkpt_print_it)
4438 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4441 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4442 bkpt_breakpoint_ops.
4443 * python/py-breakpoint.c (bppy_init): Ditto.
4445 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4447 * MAINTAINERS (Write After Approval): Add myself to the list.
4449 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4451 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4453 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4455 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4456 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4457 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4459 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4460 (struct i386_debug_reg_state): New.
4461 (i386_init_dregs): New.
4463 (i386_cleanup_dregs): Use i386_init_dregs.
4464 (i386_show_dr): Add state parameter and adjust.
4465 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4467 (i386_remove_aligned_watchpoint): Likewise.
4468 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4469 (i386_update_inferior_debug_regs): New.
4470 (i386_insert_watchpoint): Work on a local mirror of the debug
4471 registers, and only update the inferior on success.
4472 (i386_remove_watchpoint): Ditto.
4473 (i386_region_ok_for_watchpoint): Adjust.
4474 (i386_stopped_data_address): Adjust.
4475 (i386_insert_hw_breakpoint): Adjust.
4476 (i386_remove_hw_breakpoint): Adjust.
4478 2011-07-22 Tom Tromey <tromey@redhat.com>
4480 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4481 from amd64_pseudo_register_read. Change arguments. Call
4482 mark_value_bytes_unavailable when needed.
4483 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4484 set_gdbarch_pseudo_register_read.
4485 * sentinel-frame.c (sentinel_frame_prev_register): Use
4486 regcache_cooked_read_value.
4487 * regcache.h (regcache_cooked_read_value): Declare.
4488 * regcache.c (regcache_cooked_read_value): New function.
4489 (regcache_cooked_read): Call
4490 gdbarch_pseudo_register_read_value if available.
4491 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4492 (i386_pseudo_register_read): Remove.
4493 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4494 i386_pseudo_register_read. Change arguments. Call
4495 mark_value_bytes_unavailable when needed.
4496 (i386_pseudo_register_read_value): New function.
4497 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4498 not set_gdbarch_pseudo_register_read.
4499 * gdbarch.sh (pseudo_register_read_value): New method.
4500 * gdbarch.c, gdbarch.h: Rebuild.
4501 * findvar.c (value_from_register): Call get_frame_register_value.
4503 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4505 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4507 (display_gdb_prompt): Likewise.
4508 (change_annotation_level): Likewise.
4509 (push_prompt): Likewise.
4510 (pop_prompt): Likewise.
4511 (handle_stop_sig): Use get_prompt with a level.
4512 * top.c (command_loop): Use get_prompt with a level.
4513 (set_async_annotation_level): Use set_prompt with a level.
4514 (get_prefix): New function.
4515 (set_prefix): Ditto.
4516 (set_suffix): Ditto.
4517 (get_suffix): Ditto.
4518 (get_prompt): Accept a level argument.
4519 (set_prompt): Accept a level argument. Free old prompts. Set
4520 new_async_prompt if level is 0.
4521 (init_main): Use set_prompt with a level. Do not set
4523 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4524 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4525 Modify set_prompt, get_prompt to account for levels.
4526 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4528 * python/python.c (before_prompt_hook): Use set_prompt.
4530 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4532 * defs.h: Add guard against inclusion in gdbserver.
4533 (struct ptid, ptid_t): Move to common/ptid.h.
4534 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4535 xsnprintf, internal_error): Move to common/common-utils.h.
4537 * gdb_assert.h: Move into common/ sub-directory.
4538 * gdb_locale.h: Ditto.
4539 * gdb_dirent.h: Ditto.
4540 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4541 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4542 Move into common/ptid.h.
4543 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4544 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4545 Change nomem to malloc_failure.
4546 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4547 * utils.c (nomem): Rename to malloc_failure.
4548 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4549 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4550 (gdb_buildargv): Change nomem to malloc_failure.
4551 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4552 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4553 ptid_is_pid): Move into common/ptid.c.
4554 (initialize_infrun): Delete initialization of null_ptid and
4556 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4557 linux_common_xfer_osdata.
4558 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4559 common/ptid.c and common/buffer.c.
4560 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4561 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4562 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4563 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4565 * common/gdb_assert.h: New.
4566 * common/gdb_dirent.h: New.
4567 * common/gdb_locale.h: New.
4568 * common/buffer.c: New.
4569 * common/buffer.h: New.
4570 * common/ptid.c: New.
4571 * common/ptid.h: New.
4572 * common/xml-utils.c: New.
4573 * common/xml-utils.h: New.
4574 * common/common-utils.c: New.
4575 * common/common-utils.h: New.
4576 * common/linux-osdata.c: New.
4577 * common/linux-osdata.h: New.
4578 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4579 * config/arm/linux.mh (NATDEPFILES): Ditto.
4580 * config/i386/linux.mh (NATDEPFILES): Ditto.
4581 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4582 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4583 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4584 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4585 * config/mips/linux.mh (NATDEPFILES): Ditto.
4586 * config/pa/linux.mh (NATDEPFILES): Ditto.
4587 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4588 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4589 * config/s390/s390.mh (NATDEPFILES): Ditto.
4590 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4591 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4592 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4594 2011-07-21 Matt Rice <ratmice@gmail.com>
4596 * NEWS: Add info macros and info definitions commands.
4598 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4600 * NEWS: Document Python prompt substitution hook.
4602 2011-07-18 Matt Rice <ratmice@gmail.com>
4605 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4606 * macrotab.c (foreach_macro): Ditto.
4607 (foreach_macro_in_scope): Ditto.
4608 * macrocmd.c (print_macro_callback): New function.
4609 (info_macro_command): Move some code to print_macro_definition.
4610 (print_macro_definition): New function.
4611 (print_one_macro): Add new arguments to callback.
4612 (info_definitions_command): New function.
4613 (info_macros_command): Ditto.
4614 (_initialize_macrocmd): Add info macros and info definitions commands.
4615 * symtab.c (add_macro_name): Add new arguments to callback.
4617 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4618 Tom Tromey <tromey@redhat.com>
4620 * top.c (set_prompt): Rewrite to free previous prompt, free
4621 asynch_new_prompt and set both on new prompts.
4622 * event-top.c (display_gdb_prompt): Add prompt substitution
4624 * python/python.c (before_prompt_hook): New function.
4626 2011-07-20 Matt Rice <ratmice@gmail.com>
4628 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4629 arguments to store_unsigned_integer.
4631 2011-07-20 Tom Tromey <tromey@redhat.com>
4633 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4634 in some declaration-only cases.
4636 2011-07-18 Tom Tromey <tromey@redhat.com>
4639 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4640 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4641 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4642 <debug_type_section>: New field.
4643 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4644 (load_cu): Use appropriate section.
4645 (create_signatured_type_table_from_index): Add 'section'
4647 (dwarf2_read_index): Only allow a single .debug_types section.
4648 (dw2_get_file_names): Use appropriate section.
4649 (read_type_comp_unit_head): Add 'section' argument.
4650 (create_debug_types_hash_table): Loop over all .debug_types
4652 (init_cu_die_reader): Use appropriate section.
4653 (process_psymtab_comp_unit, load_partial_comp_unit)
4654 (load_full_comp_unit, read_die_and_children, find_partial_die)
4655 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4656 (lookup_signatured_type_at_offset): Add 'section' argument.
4657 (read_signatured_type_at_offset): Add 'sect' argument.
4658 (read_signatured_type): Use appropriate section.
4659 (set_die_type, get_die_type_at_offset): Update.
4660 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4662 (write_psymtabs_to_index): Don't allow index with more than one
4663 .debug_types section.
4665 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4667 Fix crash if referenced CU is aged out.
4668 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4669 xfree of block.data.
4670 (indirect_pieced_value): New variable back_to, use to for xfree of
4672 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4674 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4675 (load_cu): New function from ...
4676 (dw2_do_instantiate_symtab): ... the code here ...
4677 (process_full_comp_unit): ... and here.
4678 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4681 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4683 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4686 2011-07-19 Gary Benson <gbenson@redhat.com>
4688 * infrun.c (struct execution_control_state): New member
4689 stop_func_filled_in.
4690 (clear_stop_func, fill_in_stop_func): New functions.
4691 (handle_inferior_event): Call clear_stop_func rather than
4692 manipulating the execution control state directly.
4693 Call fill_in_stop_func lazily as required rather than
4694 directly calling find_pc_partial_function in all cases.
4696 2011-07-18 Tom Tromey <tromey@redhat.com>
4698 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4699 checking for variable-sized array.
4701 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4703 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4704 of supported languages.
4705 * varobj.c: Add top definitions and basic implementation of the
4706 following callbacks: ada_number_of_children, ada_name_of_variable,
4707 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4708 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4709 (languages): Register Ada-specific callbacks.
4710 (variable_language): Add the Ada case in the language setter switch.
4712 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4714 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4716 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4719 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4720 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4721 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4722 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4723 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4724 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4725 (struct dwarf_expr_context_funcs): New, move here methods from ...
4726 (struct dwarf_expr_context): ... here. New fields funcs.
4727 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4728 (dwarf_expr_ctx_funcs): New.
4729 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4730 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4731 (needs_frame_ctx_funcs): New.
4732 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4734 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4736 * MAINTAINERS (Write After Approval): Add myself to the list.
4738 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4740 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4741 that CIE pointer of an FDE really points to a CIE .
4743 2011-07-15 Hui Zhu <teawater@gmail.com>
4745 * remote.c (remote_get_trace_status): Add comments.
4747 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4749 Code cleanup - constify struct lval_funcs.
4750 * dwarf2loc.c (pieced_value_funcs): Make it const.
4751 * infrun.c (siginfo_value_funcs): Likewise.
4752 * opencl-lang.c (opencl_value_funcs): Likewise.
4753 * valops.c (value_assign, value_ind): Make the funcs variable const.
4754 * value.c (struct value): Make location.computed.funcs target const.
4755 Rearrange the comments.
4756 (allocate_computed_value): Make the funcs parameter target const.
4757 (value_computed_funcs): Return the funcs target const.
4758 (value_free, value_copy, set_value_component_location): Make the funcs
4760 * value.h (allocate_computed_value): Make the funcs parameter target
4762 (value_computed_funcs): Return the funcs target const.
4763 * windows-tdep.c (tlb_value_funcs): Make it const.
4765 2011-07-14 Hui Zhu <teawater@gmail.com>
4767 * remote.c (remote_get_trace_status): Initialize p.
4769 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4772 * remote.c (remote_get_trace_status): New variable ex. Put
4773 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4775 2011-07-13 Tom Tromey <tromey@redhat.com>
4777 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4778 value_from_contents for final conversion.
4780 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4783 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4784 Indent prototypes so they do not get into tags.
4786 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4788 Code cleanup making also optimized out values lazy.
4789 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4790 allocate_optimized_out_value. Twice.
4791 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4792 * findvar.c (read_var_value): Likewise.
4793 * value.c (allocate_optimized_out_value): New function.
4794 * value.h (allocate_optimized_out_value): New declaration.
4796 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4798 Fix occasional crash of CTRL-C during DWARF read in.
4799 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4801 2011-07-11 Tom Tromey <tromey@redhat.com>
4803 * regcache.c (struct regcache_descr): Fix typo.
4804 * i387-tdep.c (i387_supply_xsave): Fix typo.
4806 2011-07-11 Tom Tromey <tromey@redhat.com>
4808 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4809 (read_file_scope, read_type_unit_scope): Use it.
4811 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4813 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4816 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4819 * python/python.c: Set gdbpy_should_print_stack default to off.
4820 (set_python): Deprecate maint set python print-stack to
4822 (_initialize_python): Deprecate maint set/show python print-stack.
4823 Add new prefix command, python. Add new setting, print-backtrace.
4824 * NEWS: Document set python print-stack. Document default change.
4826 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4828 * python/py-inferior.c (infpy_dealloc): New function.
4829 (inferior_to_inferior_object): Return a new object, or a
4830 new reference to the existing object.
4831 (find_thread_object): Cleanup references to inferior.
4832 (delete_thread_object): Ditto.
4833 * python/py-infthread.c (create_thread_object): Do not increment
4834 inferior reference count.
4836 2011-07-08 Tom Tromey <tromey@redhat.com>
4838 * dwarf2loc.c (locexpr_regname): New function.
4839 (locexpr_describe_location_piece): Use it.
4840 (disassemble_dwarf_expression): Add per_cu argument. Use
4842 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4843 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4845 (locexpr_describe_location_1): Add per_cu argument.
4846 (locexpr_describe_location): Update.
4847 (loclist_describe_location): Update.
4849 2011-07-08 Tom Tromey <tromey@redhat.com>
4851 * dwarf2expr.c (execute_stack_op): Add QUIT.
4853 2011-07-07 Hui Zhu <teawater@gmail.com>
4856 2011-07-06 Hui Zhu <teawater@gmail.com>
4857 * remote.c (remote_start_remote): Add TRY_CATCH for
4858 remote_get_trace_status.
4859 * tracepoint.c (disconnect_tracing): Ditto.
4861 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4863 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4864 variables as signed, not unsigned.
4866 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4868 * jit.c (jit_inferior_init): Reformat forward declaration.
4870 2011-07-06 Matt Rice <ratmice@gmail.com>
4872 * MAINTAINERS (Write After Approval): Add myself to the list.
4874 2011-07-06 Hui Zhu <teawater@gmail.com>
4876 * remote.c (remote_start_remote): Add TRY_CATCH for
4877 remote_get_trace_status.
4878 * tracepoint.c (disconnect_tracing): Ditto.
4880 2011-07-05 Tom Tromey <tromey@redhat.com>
4882 * symtab.c (operator_chars): Now static.
4883 * linespec.c (operator_chars): Don't declare.
4885 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4887 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4889 2011-07-05 Tom Tromey <tromey@redhat.com>
4891 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4892 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4893 (TYPE_CPLUS_REALLY_JAVA): New macro.
4894 * dwarf2read.c (process_structure_scope): Set
4895 TYPE_CPLUS_REALLY_JAVA.
4897 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4899 * ada-lang.c: Fix typos.
4900 * amd64-tdep.c: Likewise.
4901 * breakpoint.c: Likewise.
4902 * cli/cli-decode.c: Likewise.
4903 * findcmd.c: Likewise.
4904 * inline-frame.c: Likewise.
4905 * mi/mi-main.c: Likewise.
4906 * minsyms.c: Likewise.
4907 * monitor.c: Likewise.
4908 * monitor.h: Likewise.
4909 * prologue-value.c: Likewise.
4910 * reverse.c: Likewise.
4911 * s390-tdep.c: Likewise.
4913 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4915 * jit.c (jit_inferior_init): Forward declare.
4916 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4918 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4920 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4922 2011-07-04 Tristan Gingold <gingold@adacore.com>
4924 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4925 (tcb_fieldno): Add activation_link field.
4926 (get_known_tasks_addr): Moved and rewritten.
4927 (get_tcb_types_info): Set activation_link field.
4928 (read_known_tasks_array): Add parameter. Rewritten.
4929 (read_known_tasks_list): New function.
4930 (read_known_tasks): New function.
4931 (ada_build_task_list): Call read_known_tasks instead of
4932 read_known_tasks_array.
4933 * ravenscar-thread.c: Add first_task_name constant.
4934 (has_ravenscar_runtime): Check for task list too.
4936 2011-07-04 Tristan Gingold <gingold@adacore.com>
4938 * ada-tasks.c: Renames fieldno to actb_fieldno.
4939 (ada_get_task_number): Indentation.
4940 (get_tcb_types_info): Remove all parameters. Write directly
4942 (ptid_from_atcb_common): Adjust.
4943 (read_atcb): Adjust.
4945 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4947 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4949 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4951 * ui-out.c (ui_out_field_core_addr): Mention that the function
4952 description is in the header file.
4953 * ui-out.h (ui_out_field_core_addr): Document function.
4955 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4957 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4958 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4960 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4962 * symtab.c (expand_line_sal): Remove empty line.
4964 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4966 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4967 same way as ELFOSABI_NONE.
4968 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4970 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4972 * breakpoint.c: Fix typos in comments.
4973 * linespec.c: Likewise.
4974 * symtab.c: Likewise.
4976 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4978 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4979 section in separate object files.
4981 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4983 Fix false GCC warning.
4984 * linespec.c (decode_line_1): Initialize values.
4986 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4988 * linespec.c (find_method): Accept the function type automatically only
4989 if it was specified with parameter types.
4991 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4993 Stop on first linespec terminator instead of eating what we can.
4994 * linespec.c (is_linespec_boundary): New function.
4995 (name_end): Remove function.
4996 (keep_name_info): New parameter on_boundary, replace the body.
4997 (decode_line_1): Provide the parameter to keep_name_info.
4998 (decode_compound): Likewise. Drop the trailing java return type
5001 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5003 Fall back linespec to minimal symbols.
5004 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5005 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5006 (find_method, symbol_found): Change error to cplusplus_error.
5008 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5010 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
5012 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5013 Tom Tromey <tromey@redhat.com>
5015 * dwarf2read.c (check_physname): New variable.
5016 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5017 (show_check_physname): New function.
5018 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5020 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5022 * machoread.c (macho_symfile_read): Delete OBE comment.
5024 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5026 * machoread.c (struct macho_oso_data): Delete.
5027 (current_oso): Delete.
5028 (macho_relocate_common_syms): New function, mostly extracted
5030 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5031 Remove code that sets and unset current_oso.
5032 (macho_symfile_relocate): Delete handling of common symbols,
5033 now moved to macho_relocate_common_syms.
5035 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5037 * darwin-nat.c (darwin_ptrace): Add documentation.
5038 Set errno to zero before calling ptrace. If ptrace returns
5039 -1 and errno is zero, then change then return zero.
5040 (darwin_kill_inferior): Issue a warning instead of triggering
5041 a failed assertion when the PT_KILL ptrace operations returned
5044 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5046 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5047 only when inf->private->no_ptrace.
5049 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5051 * ada-lang.c (print_it_exception): Print temporary catchpoints
5052 as "Temporary catchpoint".
5053 (print_mention_exception): Likewise.
5055 2011-07-01 Tom Tromey <tromey@redhat.com>
5057 * jv-lang.c (java_language_defn): Use java_printchar,
5059 (java_get_encoding): New function.
5060 (java_emit_char): Use generic_emit_char.
5061 (java_printchar): New function.
5062 (java_printstr): Likewise.
5064 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5066 * ada-typeprint.c (print_record_type): If unable to decode
5067 the name of the parent type, use the encoded name.
5069 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5071 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5072 pointer to constrained packed array type output.
5073 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5074 packed array output.
5076 2011-07-01 Jean-Charles Delay <delay@adacore.com>
5078 * ada-typeprint.c (print_array_type): removed if condition on show
5079 being negative for bounds printing.
5081 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5083 * ada-lang.c (ada_identical_enum_types_p): New function.
5084 (symbols_are_identical_enums): New function.
5085 (remove_extra_symbols): Do nothing if NSYMS < 2.
5086 Use symbols_are_identical_enums.
5088 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5090 * ada-valprint.c (ada_value_print): Handle typedefs.
5092 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5094 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5096 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5098 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5099 (decode_constrained_packed_array): Likewise.
5100 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5102 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5104 * ada-exp.y (convert_char_literal): Handle typedef types.
5106 2011-07-01 Joel Brobecker <brobecker@adacore.com>
5108 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5110 2011-06-30 Tom Tromey <tromey@redhat.com>
5112 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5113 * valops.c (find_overload_match): Call do_cleanups on early exit
5115 * solib.c (solib_find): Call do_cleanups on early exit path.
5117 2011-06-30 Tom Tromey <tromey@redhat.com>
5119 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5120 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5121 return paths. Defer final do_cleanups until last return.
5122 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5125 2011-06-30 Tom Tromey <tromey@redhat.com>
5127 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5129 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
5131 * MAINTAINERS (Write After Approval): Add myself to the list.
5133 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5135 Disable epilogue unwinders on recent GCCs.
5136 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5137 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5138 * dwarf2read.c (process_full_comp_unit): Initialize
5139 EPILOGUE_UNWIND_VALID.
5140 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5141 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5142 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5144 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5146 Code cleanup - reformatting.
5147 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5148 (producer_is_gcc_ge_4): ... here, change the return value.
5149 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5152 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5154 Fix non-only rename list for Fortran modules import.
5155 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5156 cp_add_using_directive caller.
5157 (cp_add_using_directive): New parameter excludes, describe it. New
5158 variables ix and param. Compare if also excludes match. Allocate NEW
5159 with variable size, initialize EXCLUDES there.
5160 (cp_lookup_symbol_imports): New variable excludep, test
5161 current->EXCLUDES with it.
5162 * cp-support.h: Include vec.h.
5163 (struct using_direct): New field excludes, describe it.
5164 (DEF_VEC_P (const_char_ptr)): New.
5165 (cp_add_using_directive): New parameter excludes.
5166 * defs.h (const_char_ptr): New typedef.
5167 * dwarf2read.c (read_import_statement): New variables child_die,
5168 excludes and cleanups, read in excludes.
5169 (read_namespace): Adjust the cp_add_using_directive caller.
5171 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5174 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5175 negative comparisons.
5177 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
5179 * mi/mi-main.c (mi_cmd_list_features): Emit
5180 breakpoint-notifications.
5182 2011-06-29 Tom Tromey <tromey@redhat.com>
5185 * valprint.h (generic_emit_char, generic_printstr): Declare.
5186 * valprint.c (wchar_printable, append_string_as_wide)
5187 (print_wchar): Move from c-lang.c.
5188 (generic_emit_char): New function; mostly taken from c_emit_char.
5189 (generic_printstr): New function; mostly taken from c_printstr.
5190 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5191 represented as arrays.
5192 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5194 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5195 identically to TYPE_CODE_INT.
5196 * f-lang.c (f_get_encoding): New function.
5197 (f_emit_char): Use generic_emit_char.
5198 (f_printchar): Replace comment.
5199 (f_printstr): Use generic_printstr.
5200 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5201 "character" types specially.
5202 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5204 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5206 (c_emit_char): Call generic_emit_char.
5207 (c_printstr): Call generic_printstr.
5209 2011-06-29 Gary Benson <gbenson@redhat.com>
5211 * breakpoint.c (bpstat_what): Removed duplicated case.
5213 2011-06-28 Tom Tromey <tromey@redhat.com>
5215 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5217 2011-06-27 Tom Tromey <tromey@redhat.com>
5219 * valops.c (find_overload_match): Call do_cleanups before early
5221 * top.c (execute_command): Call do_cleanups before early return.
5222 (command_loop): Likewise.
5223 * stack.c (backtrace_command): Make a null cleanup early. Don't
5224 conditionally call do_cleanups.
5225 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5227 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5228 so cleanups are always run.
5229 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5230 * findcmd.c (parse_find_args): Call do_cleanups on early return
5232 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5233 Don't conditionally call do_cleanups.
5234 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5237 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5239 * MAINTAINERS (Write After Approval): Use default email address.
5241 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5243 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5245 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5247 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5248 saved_regs_mask and copied_regs_mask fields.
5249 (sparc_record_save_insn): New prototype.
5250 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5251 (sparc_record_save_insn): New function.
5252 (sparc_analyze_prologue): Add head comment. Recognize store insns
5253 of call-saved registers. Use OFFSET consistently. Recognize flat
5254 frames and cache their settings.
5255 (sparc32_skip_prologue): Handle flat frames.
5256 (sparc_frame_cache): Add frame_offset to the base address.
5257 (sparc32_frame_cache): Adjust to new frame description.
5258 (sparc32_frame_prev_register): Likewise.
5259 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5260 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5261 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5262 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5263 frame by calling sparc_record_save_insn.
5264 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5265 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5266 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5268 2011-06-27 Tristan Gingold <gingold@adacore.com>
5270 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5271 field by map_addr and map_len.
5272 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5273 (munmap_section_buffer): Likewise.
5275 2011-06-24 Tom Tromey <tromey@redhat.com>
5277 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5278 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5279 * python/python.c (gdbpy_parameter): Make 'arg' const.
5280 (execute_gdb_command): Likewise.
5281 (gdbpy_decode_line): Likewise. Copy it.
5282 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5283 (gdbpy_write): Make 'arg' const.
5284 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5286 (gdbpy_lookup_type): Likewise.
5287 * python/py-prettyprint.c (print_children): Make 'name' const.
5288 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5289 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5291 * python/py-function.c (fnpy_init): Make 'name' const.
5292 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5293 (gdbpy_string_to_argv): Make 'input' const.
5294 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5296 * gdbtypes.h (lookup_typename): Update.
5297 * gdbtypes.c (lookup_typename): Make 'name' const.
5298 (lookup_struct): Likewise.
5299 (lookup_union): Likewise.
5300 (lookup_enum): Likewise.
5302 2011-06-24 Tom Tromey <tromey@redhat.com>
5304 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5305 gdb_thread_db.h. Move all common/ entries to be together.
5306 (TAGS): Don't depend on DEPFILES.
5308 2011-06-23 Yao Qi <yao@codesourcery.com>
5310 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5311 * remote.c (remote_start_remote): ... here.
5312 * monitor.c (monitor_open): ... here.
5314 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5316 * gdbtypes.c (append_composite_type_field_aligned): Fix
5317 calculation of bit position based on alignment.
5319 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5321 * breakpoint.c (bpstat_stop_status): Call the check_status
5322 breakpoint_ops method.
5323 (print_one_breakpoint_location): Also print the condition for Ada
5324 exception catchpoints.
5325 (allocate_bp_location): New, factored out from
5326 allocate_bp_location.
5327 (allocate_bp_location): Adjust. Call the owner breakpoint's
5328 allocate_location method, if there is one.
5329 (free_bp_location): Call the locations's dtor method, if there is
5331 (init_raw_breakpoint_without_location): New breakpoint_ops
5333 (set_raw_breakpoint_without_location): Adjust.
5334 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5335 (set_raw_breakpoint): Adjust.
5336 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5337 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5338 re_set and check_status methods.
5339 (init_catchpoint): Don't memset, initialize thread, addr_string
5340 and enable_state. Pass the ops down to init_raw_breakpoint.
5341 (install_catchpoint): Rename to ...
5342 (install_breakpoint): ... this, and make extern.
5343 (create_fork_vfork_event_catchpoint): Adjust.
5344 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5345 re_set and check_status methods.
5346 (create_syscall_event_catchpoint): Adjust.
5347 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5348 (masked_watchpoint_breakpoint_ops): Install NULL
5349 allocate_location, re_set and check_status methods.
5350 (catch_exec_command_1): Adjust.
5351 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5352 re_set and check_status methods.
5353 (create_ada_exception_breakpoint): Rename to ...
5354 (init_ada_exception_breakpoint): ... this. Add a struct
5355 breakpoint parameter, and delete the exp_string, cond_string and
5356 cond parameters. Use init_raw_breakpoint, and don't install or
5357 mention the breakpoint yet. Don't clear breakpoint fields that
5358 init_raw_breakpoint already clears.
5359 (re_set_breakpoint): Delete, split into ...
5360 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5362 (breakpoint_re_set_one): Call the breakpoint's
5363 breakpoint_ops->re_set implementation, if there's one. Adjust.
5364 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5365 (struct bp_location_ops): New type.
5366 (struct bp_location): New field `ops'.
5367 (struct breakpoint_ops): New `allocate_location', `re_set' and
5368 `check_status' fields. Make `breakpoint_hit''s description match
5370 (init_bp_location): Declare.
5371 (breakpoint_re_set_default): Declare.
5372 (create_ada_exception_breakpoint): Rename to ...
5373 (init_ada_exception_breakpoint): ... this. Add a struct
5374 breakpoint parameter, and delete the exp_string, cond_string and
5376 (install_breakpoint): Declare.
5377 * ada-lang.c: Include exceptions.h.
5378 <Ada exceptions description>: Update.
5379 (struct ada_catchpoint_location): New type.
5380 (ada_catchpoint_location_dtor): New function.
5381 (ada_catchpoint_location_ops): New global.
5382 (ada_catchpoint): New type.
5383 (create_excep_cond_exprs): New function.
5384 (dtor_exception, allocate_location_exception, re_set_exception)
5385 (should_stop_exception, check_status_exception): New functions.
5386 (print_one_exception, print_mention_exception)
5387 (print_recreate_exception): Adjust.
5388 (dtor_catch_exception, allocate_location_catch_exception)
5389 (re_set_catch_exception, check_status_catch_exception): New
5391 (catch_exception_breakpoint_ops): Install them.
5392 (dtor_catch_exception_unhandled)
5393 (allocate_location_catch_exception_unhandled)
5394 (re_set_catch_exception_unhandled)
5395 (check_status_catch_exception_unhandled): New functions.
5396 (catch_exception_unhandled_breakpoint_ops): Install them.
5397 (dtor_catch_assert, allocate_location_catch_assert)
5398 (re_set_catch_assert, check_status_catch_assert): New functions.
5399 (catch_assert_breakpoint_ops): Install them.
5400 (ada_exception_catchpoint_p): Delete.
5401 (catch_ada_exception_command_split)
5402 (ada_exception_catchpoint_cond_string): Rename exp_string
5403 parameter to excep_string. Adjust.
5404 (ada_parse_catchpoint_condition): Delete.
5405 (ada_exception_sal): Rename the exp_string parameter to
5406 excep_string. Delete the cond_string and cond parameters.
5408 (ada_decode_exception_location): Rename the exp_string parameter
5409 to excep_string. Delete the cond_string and cond parameters.
5411 (create_ada_exception_catchpoint): New function.
5412 (catch_ada_exception_command, ada_decode_assert_location)
5413 (catch_assert_command): Adjust.
5414 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5416 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5418 * ada-lang.c: Include arch-utils.h.
5419 (ada_decode_exception_location): Make static.
5420 (catch_ada_exception_command): Moved here from breakpoint.c.
5421 (ada_decode_assert_location): Make static.
5422 (catch_assert_command): Moved here from breakpoint.c.
5423 (_initialize_ada_lang): Install the exception and assert
5424 catchpoint commands here.
5425 * ada-lang.h (ada_decode_exception_location)
5426 (ada_decode_assert_location): Delete declarations.
5427 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5429 (create_ada_exception_breakpoint): Make extern.
5430 (catch_ada_exception_command, catch_assert_command): Moved to
5432 (add_catch_command): Make extern.
5433 (_initilize_breakpoint): Don't install the exception and assert
5434 catchpoint commands here.
5435 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5437 (add_catch_command, create_ada_exception_breakpoint): Declare.
5439 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5441 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5442 the breakpoint to the breakpoint chain here.
5443 (set_raw_breakpoint_without_location): Add the breakpoint to the
5444 breakpoint chain here.
5445 (init_raw_breakpoint): Adjust comments.
5446 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5448 (init_catchpoint): Don't set the catchpoint's breakpoint number
5450 (install_catchpoint): New function.
5451 (create_fork_vfork_event_catchpoint)
5452 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5453 use install_catchpoint.
5455 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5457 * breakpoint.c (create_catchpoint_without_mention)
5458 (create_catchpoint): Delete.
5460 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5462 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5463 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5464 reference to exec_pathname.
5465 (struct exec_catchpoint): New type.
5466 (dtor_catch_exec): New function.
5467 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5468 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5469 (catch_exec_command_1): Adjust to use init_catchpoint.
5470 (delete_breakpoint): Remove reference to exec_pathname.
5472 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5474 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5475 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5476 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5477 reference to syscalls_to_be_caught.
5478 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5480 (struct syscall_catchpoint): New type.
5481 (dtor_catch_syscall): New function.
5482 (insert_catch_syscall, remove_catch_syscall)
5483 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5484 (print_recreate_catch_syscall): Adjust.
5485 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5486 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5487 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5488 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5489 (masked_watchpoint_breakpoint_ops)
5490 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5491 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5492 there is one. Remove references to syscalls_to_be_caught.
5493 (catching_syscall_number): Adjust.
5494 * ada-lang.c (catch_exception_breakpoint_ops)
5495 (catch_exception_unhandled_breakpoint_ops)
5496 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5498 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5500 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5502 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5503 reference to forked_inferior_pid.
5504 (struct fork_catchpoint): New type.
5505 (breakpoint_hit_catch_fork, print_it_catch_fork)
5506 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5507 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5508 (create_fork_vfork_event_catchpoint): Adjust to use
5511 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5513 * breakpoint.c (add_to_breakpoint_chain)
5514 (init_raw_breakpoint_without_location): New functions, factored
5516 (set_raw_breakpoint_without_location): ... this one.
5517 (init_raw_breakpoint): New function, factored out from
5518 set_raw_breakpoint and adjusted to use
5519 init_raw_breakpoint_without_location.
5520 (set_raw_breakpoint): Adjust.
5521 (init_catchpoint): New function, factored out from
5522 create_catchpoint_without_mention and adjusted to use
5523 init_raw_breakpoint.
5524 (create_catchpoint_without_mention): Adjust.
5526 2011-06-22 Tom Tromey <tromey@redhat.com>
5528 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5529 argument of 0 specially.
5531 2011-06-22 Yao Qi <yao@codesourcery.com>
5533 * infrun.c (handle_inferior_event): Remove write-only local variable
5534 `sw_single_step_trap_p'.
5536 2011-06-20 Tom Tromey <tromey@redhat.com>
5538 * symtab.c (lookup_language_this): End loop if block is NULL.
5540 2011-06-17 Tom Tromey <tromey@redhat.com>
5542 * valops.c (value_of_this): Use lookup_language_this.
5543 * symtab.h (lookup_language_this): Declare.
5544 * symtab.c (lookup_language_this): New function.
5545 (lookup_symbol_aux): Use lookup_language_this.
5546 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5548 2011-06-17 Tom Tromey <tromey@redhat.com>
5550 * value.h (value_of_this): Update.
5551 (value_of_local): Remove.
5552 * valops.c (value_of_this): Rename from value_of_local. Change
5554 * p-exp.y (exp): Update.
5555 (variable): Likewise.
5556 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5558 2011-06-17 Tom Tromey <tromey@redhat.com>
5560 * valops.c (value_of_local): Complain if NAME is NULL.
5561 * std-operator.def (OP_OBJC_SELF): Remove.
5562 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5563 * objc-exp.y (name_not_typename): Use OP_THIS.
5564 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5566 <OP_OBJC_SELF>: Remove.
5567 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5569 2011-06-16 Tristan Gingold <gingold@adacore.com>
5571 * python/py-events.h (gdb_py_events): Make it extern.
5572 * python/py-evtregistry.c (gdb_py_events): Declare.
5574 2011-06-16 Hui Zhu <teawater@gmail.com>
5576 * remote.c (remote_trace_set_readonly_regions): Add check for
5577 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5580 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5582 * arm-linux-tdep.c: Include "auxv.h".
5584 (ARM_LINUX_SIZEOF_VFP): Define.
5585 (arm_linux_supply_vfp): New function.
5586 (arm_linux_collect_vfp): Likewise.
5587 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5588 (arm_linux_fpa_regset_sections): New variable.
5589 (arm_linux_vfp_regset_sections): Likewise.
5590 (arm_linux_core_read_description): New function.
5591 (arm_linux_init_abi): Install arm_linux_core_read_description and
5592 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5593 appropriate for the architecture.
5594 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5595 (tdesc_arm_with_m): Declare.
5596 (tdesc_arm_with_iwmmxt): Likewise.
5597 (tdesc_arm_with_vfpv2): Likewise.
5598 (tdesc_arm_with_vfpv3): Likewise.
5599 (tdesc_arm_with_neon): Likewise.
5600 * arm-linux-nat.c: Move features/*.c includes ...
5601 * arm-tdep.c: ... here.
5602 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5603 target description data structures ...
5604 * arm-tdep.c (_initialize_arm_tdep): ... here.
5605 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5606 HWCAP_VFPv3D16): Move definitions ...
5607 * arm-linux-tdep.h: ... here.
5609 2011-06-15 Hui Zhu <teawater@gmail.com>
5611 * remote.c (remote_trace_set_readonly_regions): Add a check for
5614 2011-06-14 Tom Tromey <tromey@redhat.com>
5616 * coffread.c (coffread_objfile): Rename from current_objfile.
5617 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5618 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5620 2011-06-14 Tom Tromey <tromey@redhat.com>
5622 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5623 (class_symtab): Remove.
5624 (jv_dynamics_progspace_key): New global.
5625 (jv_per_objfile_free): Reset program space data. Update assert.
5626 Don't clear globals.
5627 (get_dynamics_objfile): Use and set program space data.
5628 (get_java_class_symtab): Use get_dynamics_objfile.
5629 (add_class_symbol): Likewise.
5630 (java_link_class_type): Likewise.
5631 (java_object_type, jv_clear_object_type, set_java_object_type):
5633 (get_java_object_type): Update. Don't cache result.
5634 (is_object_type): Don't call set_java_object_type.
5635 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5636 initialize jv_dynamics_progspace_key.
5638 2011-06-14 Tom Tromey <tromey@redhat.com>
5640 * symtab.h (current_objfile): Don't declare.
5641 * objfiles.h (current_objfile): Don't declare.
5642 * objfiles.c (current_objfile): Remove.
5643 * mdebugread.c (current_objfile): New file-scope global.
5644 * dbxread.c (current_objfile): New file-scope global.
5645 * coffread.c (current_objfile): New file-scope global.
5647 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5649 * top.h (line): Rename to ...
5650 (saved_command_line): ... this.
5651 (linesize): Rename to ...
5652 (saved_command_line_size): ... this.
5653 * top.c (line): Rename to ...
5654 (saved_command_line): ... this.
5655 (linesize): Rename to ...
5656 (saved_command_line_size): ... this.
5657 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5658 * event-top.c (command_line_handler): Adjust.
5659 * main.c (captured_main): Adjust.
5661 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5663 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5664 get_frame_func instead of get_frame_pc to determine the code
5665 address used to construct the frame ID.
5666 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5667 (i386_epilogue_frame_this_id): Likewise.
5668 (i386_epilogue_frame_prev_register): New function.
5669 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5670 (i386_stack_tramp_frame_sniffer): Fix coding style.
5671 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5672 (i386_gdbarch_init): Fix comments.
5674 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5676 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5677 instruction when walking back through the instruction stream.
5679 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5681 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5682 fullname parameters order.
5684 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5687 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5689 * psymtab.c (map_symbol_filenames_psymtab)
5690 (map_partial_symbol_filenames): Likewise.
5691 * psymtab.h: Include symfile.h.
5692 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5693 * symfile.h (symbol_filename_ftype): New.
5694 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5695 map_symbol_filenames, clarify more the naming in comment.
5697 2011-06-07 Doug Evans <dje@google.com>
5699 * cc-with-index.sh: Fix typos in comment.
5700 Look for ../../gdb, for fullname.exp.
5702 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5703 Pedro Alves <pedro@codesourcery.com>
5705 * cli/cli-cmds.c (shell_escape): Use waitpid.
5706 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5708 2011-06-07 Tristan Gingold <gingold@adacore.com>
5710 * xcoffread.c (dwarf2_xcoff_names): New variable.
5711 (aix_process_linenos): Add a guard.
5712 (xcoff_symfile_finish): Free dwarf2.
5713 (xcoff_initial_scan): Add dwarf2 support.
5715 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5717 * infcall.c (run_inferior_call): Don't mask async. Instead force
5718 a synchronous wait, if the target can async.
5720 * target.h (struct target_ops): Delete to_async_mask.
5721 (target_async_mask): Delete.
5722 * target.c (update_current_target): Delete references to to_async_mask.
5723 * linux-nat.c (linux_nat_async_mask_value): Delete.
5724 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5725 to linux_nat_async_mask_value.
5726 (linux_nat_async_mask): Delete.
5727 (linux_nat_async, linux_nat_close): Remove references to
5728 linux_nat_async_mask_value.
5729 * record.c (record_async_mask_value): Delete.
5730 (record_async): Remove references to record_async_mask_value.
5731 (record_async_mask): Delete.
5732 (record_can_async_p, record_is_async_p): Remove references to
5733 record_async_mask_value.
5734 (init_record_ops, init_record_core_ops): Remove references to
5736 * remote.c (remote_async_mask_value): Delete.
5737 (init_remote_ops): Remove reference to remote_async_mask.
5738 (remote_can_async_p, remote_is_async_p): Remove references to
5739 remote_async_mask_value.
5740 (remote_async): Remove references to remote_async_mask_value.
5741 (remote_async_mask): Delete.
5743 * infrun.c (fetch_inferior_event): Don't claim registers changed
5744 if the current thread is already not executing.
5746 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5748 From Stephen Kitt <steve@sk2.org>
5749 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5750 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5752 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5754 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5755 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5757 2011-06-03 Tom Tromey <tromey@redhat.com>
5759 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5761 * python/py-exitedevent.c (create_exited_event_object): Change
5762 type of 'exit_code'. Optionally add exit_code attribute.
5763 (emit_exited_event): Change type of 'exit_code'.
5764 * python/py-event.h (emit_exited_event): Update.
5765 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5766 * infrun.c (handle_inferior_event): Set exit code fields on
5768 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5770 * inferior.c (exit_inferior_1): Initialize new fields.
5772 2011-06-03 Tom Tromey <tromey@redhat.com>
5774 * dwarf2expr.c (get_signed_type): New function.
5775 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5777 2011-06-02 Keith Seitz <keiths@redhat.com>
5779 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5781 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5783 * top.h (simplified_command_loop): Delete declaration.
5785 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5787 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5788 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5790 2011-06-01 Yao Qi <yao@codesourcery.com>
5792 * objfiles.h (obj_section_addr): Update reference to objfile from
5794 (obj_section_endaddr): Likewise.
5796 2011-06-01 Daniel Jacobowitz <drow@false.org>
5798 * MAINTAINERS: Update my email address and affiliation. Also
5799 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5801 2010-05-31 Keith Seitz <keiths@redhat.com>
5804 * linespec.c (get_search_block): New function.
5805 (find_methods): Add FILE_SYMTATB parameter and use it and
5806 get_search_block to pass an appropriate block to
5807 lookup_symbol_in_namespace.
5808 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5809 Check if *ARGPTR starts with a filename first.
5810 If it does, call locate_first_half again to locate the next
5811 "first half" of the linespec.
5812 Pass FILE_SYMTATB to decode_objc and decode_compound.
5813 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5814 (locate_first_half): Stop on the first colon seen.
5815 (decode_compound): Add FILE_SYMTAB parameter.
5816 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5817 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5818 get_search_block with lookup_symbol.
5819 (find_method): Add FILE_SYMTAB parameter and pass it to
5821 (decode_objc): Use get_search_block.
5823 2010-05-31 Keith Seitz <keiths@redhat.com>
5826 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5827 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5828 and CP_ANONYMOUS_NAMESPACE_LEN.
5829 (cp_is_anonymous): Likewise.
5830 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5831 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5832 * dwarf2read.c (namespace_name): Likewise.
5833 (fixup_partial_die): Likewise.
5834 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5835 seen in the input, keep it.
5837 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5839 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5840 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5841 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5842 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5843 * remote.c (_initialize_remote): Register
5844 async_remote_interrupt_twice directly as
5845 sigint_remote_twice_token event.
5847 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5849 * target.h (enum inferior_event_type): Delete INF_ERROR.
5850 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5852 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5854 * interps.c (interp_set): Don't cancel continuations.
5856 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5858 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5860 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5862 * continuations.h (continuation_ftype): Add `err' parameter.
5863 Document parameters.
5864 (do_all_continuations, do_all_continuations_thread)
5865 (do_all_intermediate_continuations)
5866 (do_all_intermediate_continuations_thread)
5867 (do_all_inferior_continuations): Add `err' parameter.
5868 * continuations.c (do_my_continuations_1, do_my_continuations)
5869 (do_all_inferior_continuations, do_all_continuations_ptid)
5870 (do_all_continuations_thread_callback)
5871 (do_all_continuations_thread, do_all_continuations)
5872 (do_all_intermediate_continuations_thread_callback)
5873 (do_all_intermediate_continuations_thread)
5874 (do_all_intermediate_continuations): Add `err' parameter, and pass
5875 it down all the way to the continuations proper.
5876 * inf-loop.c (inferior_event_handler): If fetching an inferior
5877 event throws an error, don't pop the target, and still call the
5878 continuations, but with `err' set. Adjust all other continuation
5880 * breakpoint.c (until_break_command_continuation): Add `err'
5882 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5883 issue another step if `err' is set.
5884 (struct until_next_continuation_args): New.
5885 (until_next_continuation): Add `err' parameter. Adjust.
5886 (until_next_command): Adjust.
5887 (struct finish_command_continuation_args): Add `thread' field.
5888 (finish_command_continuation): Add `err' parameter. Handle it.
5889 (finish_forward): Adjust.
5890 (attach_command_continuation): Add `err' parameter. Handle it.
5891 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5892 cancel the continuations.
5893 * interps.c (interp_set): Adjust to cancel the continuations.
5894 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5895 continuations rather than discarding.
5896 (free_thread): Don't clear thread inferior resources here.
5897 (delete_thread_1): Do it here instead. And do it before removing
5898 the thread from the threads list. Tag the thread as exited before
5899 clearing thread inferior resources.
5901 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5903 * infcall.c (call_function_by_hand): Rephrase error message.
5905 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5907 * defs.h (struct thread_info, struct inferior): Delete forward
5909 * breakpoint.h (struct thread_info): New forward declaration.
5910 * observer.sh (struct inferior): New forward declaration.
5911 * python/python-internal.h (struct inferior): New forward
5914 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5916 * defs.h (struct continuation, continuation_ftype)
5917 (continuation_free_arg_ftype, add_continuation)
5918 (do_all_continuations, do_all_continuations_thread)
5919 (discard_all_continuations, discard_all_continuations_thread)
5920 (add_intermediate_continuation, do_all_intermediate_continuations)
5921 (do_all_intermediate_continuations_thread)
5922 (discard_all_intermediate_continuations)
5923 (discard_all_intermediate_continuations_thread)
5924 (add_inferior_continuation, do_all_inferior_continuations)
5925 (discard_all_inferior_continuations): Move to ...
5926 * continuations.h: ... this new file.
5927 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5928 infcmd.c, inferior.c, infrun.c, interps.c: Include
5931 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5932 Doug Evans <dje@google.com>
5934 Fix PR 10970, PR 12702.
5935 * linux-nat.c (linux_lwp_is_zombie): New function.
5936 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5937 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5939 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5941 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5943 (add_continuation, add_intermediate_continuation)
5944 (add_inferior_continuation): Use them.
5945 * continuations.c (struct continuation): Use them.
5946 (make_continuation_ftype): Delete.
5947 (make_continuation, add_inferior_continuation, add_continuation)
5948 (add_intermediate_continuation): Use continuation_ftype and
5949 continuation_free_arg_ftype. Rename parameters to shorter names.
5951 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5953 * continuations.c (make_continuation): Make it return void.
5954 (do_my_continuations): Rename to ...
5955 (do_my_continuations_1): ... this. Remove old_chain parameter and
5957 (do_my_continuations): New.
5958 (discard_my_continuations): Rename to ...
5959 (discard_my_continuations_1): ... this. Remove old_chain
5960 parameter and adjust.
5961 (discard_my_continuations): New.
5962 (add_inferior_continuation): Simplify.
5963 (do_all_inferior_continuations): Reimplement on top
5964 do_my_continuations.
5965 (discard_all_inferior_continuations): Simplify.
5966 (add_continuation): Simplify.
5967 (do_all_continuations_ptid): Simplify.
5968 (discard_all_continuations_thread_callback): Simplify.
5969 (add_intermediate_continuation): Simplify.
5970 (discard_all_intermediate_continuations_thread_callback):
5973 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5975 * utils.c (struct continuation, add_continuation)
5976 (add_inferior_continuation)
5977 (do_all_inferior_continuations, discard_all_inferior_continuations)
5978 (restore_thread_cleanup, do_all_continuations_ptid)
5979 (do_all_continuations_thread_callback)
5980 (do_all_continuations_thread, do_all_continuations)
5981 (discard_all_continuations_thread_callback)
5982 (discard_all_continuations_thread, discard_all_continuations)
5983 (add_intermediate_continuation)
5984 (do_all_intermediate_continuations_thread_callback)
5985 (do_all_intermediate_continuations_thread)
5986 (do_all_intermediate_continuations)
5987 (discard_all_intermediate_continuations_thread_callback)
5988 (discard_all_intermediate_continuations_thread)
5989 (discard_all_intermediate_continuations): Move to ...
5990 * continuations.c: ... this new file, and adjust to no longer
5991 implement continuations on top of cleanups.
5992 * Makefile.in (SFILES): Add continuations.c.
5993 (COMMON_OBS): Add continuations.o.
5995 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5997 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5998 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5999 Internal error on invalid values.
6000 * reverse.c: Don't handle EXEC_ERROR.
6001 * mi/mi-main.c: Don't handle EXEC_ERROR.
6003 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6005 * record.c: Include event-loop.h, inf-loop.h.
6006 (record_beneath_to_async): New global.
6007 (tmp_to_async): New global.
6008 (record_async_inferior_event_token): New global.
6009 (record_open_1): Don't error out if async is enabled.
6010 (record_open): Handle to_async. Create an async event source in
6012 (record_close): Delete the async event source.
6013 (record_resumed): New global.
6014 (record_execution_dir): New global.
6015 (record_resume, record_core_resume): Set them. Register the
6016 target on the event loop.
6017 (record_wait): Rename to ...
6018 (record_wait_1): ... this. Add more debug output. Handle
6019 TARGET_WNOHANG, and the target beneath returning
6020 TARGET_WAITKIND_IGNORE.
6021 (record_wait): Reimplement on top of record_wait_1.
6022 (record_async_mask_value): New global.
6023 (record_async, record_async_mask, record_can_async_p)
6024 (record_is_async_p, record_execution_direction): New functions.
6025 (init_record_ops, init_record_core_ops): Install new methods.
6026 * infrun.c (fetch_inferior_event): Temporarily switch the global
6027 execution direction to the direction the target was going.
6028 (execution_direction): Change type to int.
6029 * target.c (default_execution_direction): New function.
6030 (update_current_target): Inherit and de_fault
6031 to_execution_direction.
6032 * target.h (struct target_ops) <to_execution_direction>: New
6034 (target_execution_direction): New macro.
6035 * inferior.h (execution_direction): Change type to int.
6037 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6039 * infcall.c (call_function_by_hand): Don't allow calling functions
6040 in reverse execution mode.
6042 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6044 * infcmd.c (finish_command): Allow async finish in reverse.
6046 2011-05-26 Yao Qi <yao@codesourcery.com>
6048 * gdb_thread_db.h: Delete. Move to ...
6049 * common/gdb_thread_db.h: ... here.
6051 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6053 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6054 function's entry point instead of a manually managed momentary
6055 breakpoint, and only ever issue one proceed call.
6056 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6057 doing a reverse-finish, switch to stepi mode, to do another step.
6058 (insert_step_resume_breakpoint_at_sal): Make public.
6059 (normal_stop): No need to save function value return registers if
6061 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6063 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6065 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6066 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6067 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6069 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6070 step-resume breakpoints.
6071 (print_it_typical): Handle bp_hp_step_resume.
6072 (bpstat_what): Ditto.
6073 (bptype_string): Ditto.
6074 (print_one_breakpoint_location): Ditto.
6075 (allocate_bp_location): Ditto.
6077 (breakpoint_re_set_one): Ditto.
6078 * infrun.c (handle_inferior_event): Adjust. Split
6079 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6080 BPSTAT_WHAT_HP_STEP_RESUME.
6081 (insert_step_resume_breakpoint_at_sal): Rename to ...
6082 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6083 parameter. Handle it.
6084 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6085 insert_step_resume_breakpoint_at_sal_1.
6086 (insert_step_resume_breakpoint_at_frame): Rename to ...
6087 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6088 set a high-priority step-resume breakpoint.
6089 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6090 (insert_step_resume_breakpoint_at_caller): Ditto.
6092 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6094 * breakpoint.c (iterate_over_related_breakpoints): New.
6095 (do_map_delete_breakpoint): New.
6096 (delete_command): Pass do_map_delete_breakpoint to
6097 map_breakpoint_numbers.
6098 (do_disable_breakpoint): New.
6099 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6101 (do_enable_breakpoint): Rename to ...
6102 (enable_breakpoint_disp): ... this.
6103 (enable_breakpoint): Adjust.
6104 (do_enable_breakpoint): New.
6105 (enable_once_breakpoint): Delete.
6106 (do_map_enable_breakpoint): New.
6107 (do_map_enable_once_breakpoint): New.
6108 (enable_once_command, enable_delete_command)
6109 (delete_trace_command): Iterate over the breakpoint's related
6112 2011-05-26 Pedro Alves <pedro@codesourcery.com>
6114 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6115 for ALPHA_ZERO_REGNUM.
6116 (alpha_supply_int_regs): Explicitly supply zero as the value for
6117 ALPHA_ZERO_REGNUM in the register cache.
6118 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6120 2011-05-26 Yao Qi <yao@codesourcery.com>
6122 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6124 2011-05-26 Tristan Gingold <gingold@adacore.com>
6126 * symfile.h (struct dwarf2_section_names): New type.
6127 (struct dwarf2_debug_sections): New type.
6128 (dwarf2_has_info): Add parameter.
6129 * dwarf2read.c (dwarf2_elf_names): New variable.
6130 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6131 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6132 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6133 (dwarf2_has_info): Add names parameter. Pass names
6134 to dwarf2_locate_sections.
6135 (section_is_p): Rewrite using the names parameter.
6136 (dwarf2_locate_sections): Use section names from the names parameter.
6137 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6138 * elfread.c (read_psyms): Ditto.
6139 * machoread.c (macho_symfile_read): Ditto.
6141 2011-05-25 Andreas Schwab <schwab@redhat.com>
6144 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6146 2011-05-24 Keith Seitz <keiths@redhat.com>
6149 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6150 (decode_compound): Unconditionally call keep_name_info.
6152 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6154 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6155 scope, clear its command list.
6156 (map_breakpoint_numbers): Don't walk the related breakpoints list
6159 2011-05-24 Tom Tromey <tromey@redhat.com>
6161 * MAINTAINERS: Move Jim Blandy to past maintainers.
6163 2011-05-24 Tristan Gingold <gingold@adacore.com>
6165 * symfile.h (enum dwarf2_section_enum): New type.
6166 (dwarf2_get_section_info): New prototype.
6167 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6168 section_name by sect. Use a switch to select the info.
6169 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6170 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6172 2011-05-24 Pedro Alves <pedro@codesourcery.com>
6174 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6175 shared library event breakpoint if there's no execution.
6177 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6179 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6180 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6182 2011-05-23 Tom Tromey <tromey@redhat.com>
6184 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6187 2011-05-23 Doug Evans <dje@google.com>
6189 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6190 entry for RuntimeError to doc string.
6192 2011-05-23 Jerome Guitton <guitton@adacore.com>
6194 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6195 sequence for probing loops.
6197 2011-05-23 Pedro Alves <pedro@codesourcery.com>
6199 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6202 2011-05-21 Mark Kettenis <kettenis@gnu.org>
6204 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6205 zero as the value for %g0 in the register cache.
6206 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6207 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6209 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6211 * infrun.c (proceed): Set previous_inferior_ptid here.
6212 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6213 inferior_ptid, not null_ptid.
6214 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6215 (fetch_inferior_event): Nor here.
6217 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6219 * inf-loop.c (inferior_event_handler): Only output a message if
6222 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6224 * MAINTAINERS: Update my e-mail address.
6226 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6228 * infrun.c (proceed): Switch the inferior event loop to
6229 INF_EXEC_COMPLETE if the target refused to resume from a
6232 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6234 * infcmd.c: Include "inf-loop.h".
6235 (step_once): When stepping into an inline subroutine, pretend the
6236 target has run. If the target can async, switch the inferior
6237 event loop to INF_EXEC_COMPLETE.
6238 * inferior.h (user_visible_resume_ptid): Declare.
6239 * infrun.c (user_visible_resume_ptid): New function, factored out
6242 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6243 that the current thread is running. Merge async and sync
6246 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6248 * infcmd.c (step_1): Simplify synchronous case.
6250 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6252 * tracepoint.c: Include exceptions.h.
6253 (TFILE_PID): Move higher in file.
6254 (tfile_open): Delay pushing the tfile target until we're assured
6255 the tfile header is present in the file. Wrap reading the initial
6256 newline-terminated lines in TRY_CATCH. Pop the target if the
6257 initial setup failed. Add the tfile's thread immediately
6258 aftwards, before any non-essential setup. Don't skip
6259 post_create_inferior if there are no traceframes present in the
6261 (tfile_close): Remove redundant check for null before xfree call.
6262 (tfile_thread_alive): New function.
6263 (init_tfile_ops): Register it as to_thread_alive callback.
6265 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6267 * tracepoint.c (tfile_open): Delete #if 0'd code.
6269 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6271 Fix -readnow for -gdwarf-4 unused type units.
6272 * dwarf2read.c (struct signatured_type): Remove the field offset.
6273 (create_signatured_type_table_from_index): Remove its initialization.
6274 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6275 instead. Add a complaint call.
6276 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6277 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6278 (lookup_signatured_type_at_offset, read_signatured_type)
6279 (write_one_signatured_type): Update the field for per_cu.
6281 2011-05-19 Tom Tromey <tromey@redhat.com>
6283 * python/py-inferior.c (python_inferior_exit): Use
6285 (python_on_resume): Likewise.
6287 2011-05-19 Matt Rice <ratmice@gmail.com>
6289 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6291 2011-05-19 Hui Zhu <teawater@gmail.com>
6293 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6295 2011-05-19 Hui Zhu <teawater@gmail.com>
6297 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6299 2011-05-18 Tom Tromey <tromey@redhat.com>
6301 * dwarf2read.c (dwarf2_add_field): Constify.
6302 * value.c (value_static_field): Constify.
6303 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6305 * ax-gdb.c (gen_static_field): Constify
6307 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6309 * linux-nat.c (kill_callback): Use SIGKILL first.
6311 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6313 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6315 2011-05-18 Tom Tromey <tromey@redhat.com>
6317 * value.c (value_fn_field): Constify.
6318 * symtab.c (gdb_mangle_name): Constify.
6319 * stabsread.c (update_method_name_from_physname): Make 'physname'
6321 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6322 const. Use explicit fputc_filtered loop.
6323 (pascal_type_print_base): Constify.
6324 * p-lang.h (pascal_type_print_method_args): Update.
6325 * linespec.c (add_matching_methods): Constify.
6326 (add_constructors): Likewise.
6327 * jv-typeprint.c (java_type_print_base): Constify.
6328 * gdbtypes.h (struct cplus_struct_type)
6329 <fn_fieldlist.fn_field.physname>: Now const.
6330 * dwarf2read.c (compute_delayed_physnames): Constify.
6331 (dwarf2_add_member_fn): Likewise.
6332 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6334 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6336 * infrun.c (resume): Mention which is the current thread, and its
6337 current PC in debug output.
6338 (prepare_to_proceed): Mention the thread switching in debug
6341 2011-05-18 Tom Tromey <tromey@redhat.com>
6343 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6344 path check. Use xmalloc and cleanups.
6345 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6347 2011-05-17 Tom Tromey <tromey@redhat.com>
6349 * cp-valprint.c (cp_print_value_fields): Catch errors from
6352 2011-05-17 Tom Tromey <tromey@redhat.com>
6354 * dwarf2read.c (dwarf2_get_die_type): Call
6355 get_die_type_at_offset.
6356 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6357 get_base_type function.
6359 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6361 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6364 2011-05-16 Doug Evans <dje@google.com>
6366 * python/py-auto-load.c (source_section_scripts): Mention objfile
6369 2011-05-15 Doug Evans <dje@google.com>
6371 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6372 (try_thread_db_load_from_pdir): Call it. If unable to find
6373 libthread_db in directory of libpthread, see if we're looking at
6374 the separate-debug-info copy.
6376 * python/py-autoload.c (print_script): Print "Missing" instead of
6377 "No" for missing scripts.
6378 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6380 2011-05-13 Doug Evans <dje@google.com>
6382 * ui-file.c (stdio_file_write_async_safe): Add comment.
6384 2011-05-14 Hui Zhu <teawater@gmail.com>
6386 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6388 2011-05-13 Doug Evans <dje@google.com>
6390 Support $pdir and $sdir in libthread-db-search-path.
6391 * NEWS: Mention $sdir,$pdir.
6392 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6393 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6394 (try_thread_db_load_from_sdir): New function.
6395 (try_thread_db_load_from_dir): New function.
6396 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6397 system directories if search of libthread-db-search-path fails,
6398 that is now done via $sdir.
6399 (has_libpthread): New function.
6400 (thread_db_load): Remove search for libthread_db in directory of
6401 libpthread, that is now done via $pdir.
6403 * NEWS: Mention "info auto-load-scripts".
6404 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6405 script_not_found_warning_printed.
6406 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6407 all callers updated. Initialize script_not_found_warning_printed.
6408 (get_auto_load_pspace_data_for_loading): New function.
6409 (maybe_add_script): New function.
6410 (source_section_scripts): Simplify. Only print one warning regardless
6411 of the number of auto-load scripts not found.
6412 (clear_section_scripts): Clear script_not_found_warning_printed.
6413 (auto_load_objfile_script): Record script in hash table.
6414 (count_matching_scripts): New function.
6415 (maybe_print_script): Renamed from maybe_print_section_script, all
6416 callers updated. Rewrite to use ui_out_*.
6417 (info_auto_load_scripts): Renamed from
6418 maintenance_print_section_scripts, all callers updated.
6419 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6420 renamed as "info auto-load-scripts".
6422 2011-05-13 Tom Tromey <tromey@redhat.com>
6424 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6425 (read_sleb128): Likewise.
6427 2011-05-13 Tom Tromey <tromey@redhat.com>
6429 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6432 2011-05-13 Doug Evans <dje@google.com>
6434 * linux-nat.c (debug_linux_nat_async): Delete.
6435 Replace all references to use debug_linux_nat instead.
6436 (show_debug_linux_nat_async): Delete.
6437 (sigchld_handler): Call ui_file_write_async_safe instead of
6439 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6440 * ui-file.c (struct ui_file): New member to_write_async_safe.
6441 (null_file_write_async_safe): New function.
6442 (ui_file_write_async_safe): New function.
6443 (set_ui_file_write_async_safe): New function.
6444 (ui_file_new): Initialize to_write_async_safe.
6445 (stdio_file_write_async_safe): New function.
6446 (struct stdio_file): New member fd.
6447 (stdio_file_new): Initialize to_write_async_safe, fd.
6448 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6450 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6451 (set_ui_file_write_async_safe): Declare.
6452 (ui_file_write_async_safe): Declare.
6454 2011-05-13 Tom Tromey <tromey@redhat.com>
6456 * utils.c (do_value_free): New function.
6457 (make_cleanup_value_free): Likewise.
6458 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6460 (dwarf2_loc_desc_needs_frame): Call
6461 make_cleanup_value_free_to_mark.
6462 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6463 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6465 (new_dwarf_expr_context): Don't call value_mark.
6466 * dwarf2-frame.c (execute_stack_op): Call
6467 make_cleanup_value_free_to_mark.
6468 * defs.h (make_cleanup_value_free): Declare.
6470 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6472 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6473 prepare_execute_command.
6474 * top.c (prepare_execute_command): Return cleanup.
6475 (execute_command): Use cleanup from prepare_execute_command.
6476 * top.h (prepare_execute_command): Change prototype to return
6478 * defs.h (struct value): Add opaque declaration.
6479 (make_cleanup_value_free_to_mark): Add prototype.
6480 * utils.c (do_value_free_to_mark): New function.
6481 (make_cleanup_value_free_to_mark): Likewise.
6483 2011-05-12 Tom Tromey <tromey@redhat.com>
6485 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6486 cast left-hand-side to unsigned.
6488 2011-05-12 Tom Tromey <tromey@redhat.com>
6491 * value.h (value_from_contents): Declare.
6492 * value.c (value_from_contents): New function.
6493 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6494 (dwarf2_get_die_type): New function.
6495 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6496 (allocate_piece_closure): Acquire reference to values.
6497 (read_pieced_value): Update for value-based expressions.
6498 (write_pieced_value): Likewise.
6499 (free_pieced_value_closure): Call value_free as needed.
6500 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6501 Update for value-based expressions.
6502 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6503 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6504 <get_base_type>: New field.
6505 (struct dwarf_expr_piece) <v.value>: Change type.
6506 <v.regno>: New field.
6507 (struct dwarf_expr_context) <mark>: New field.
6508 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6509 (dwarf_expr_pop, dwarf_expr_push): Remove.
6510 (dwarf_expr_push_address): Declare.
6511 * dwarf2expr.c (dwarf_arch_cookie): New global.
6512 (struct dwarf_gdbarch_types): New.
6513 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6515 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6517 (dwarf_expr_push_address): New function.
6518 (dwarf_expr_pop): Now static.
6519 (dwarf_expr_fetch): Change return type.
6520 (dwarf_require_integral): New function.
6521 (dwarf_expr_fetch): Simplify.
6522 (add_piece): Update.
6523 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6525 (execute_stack_op) <sign_ext>: Remove.
6526 Use values for DWARF stack.
6527 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6528 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6530 (_initialize_dwarf2expr): New function.
6531 (add_piece): Update.
6532 (new_dwarf_expr_context): Set new field.
6533 (free_dwarf_expr_context): Call value_free_to_mark.
6534 * dwarf2-frame.c (no_base_type): New function.
6535 (execute_stack_op): Set get_base_type field. Update.
6537 2011-05-12 Tom Tromey <tromey@redhat.com>
6539 * dwarf2read.c (read_common_block): Fix formatting.
6541 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6543 * breakpoint.c (disable_breakpoint): Disable all locations
6544 associated with a tracepoint on target if a trace experiment is
6546 (disable_command): Disable a specific tracepoint location on target if
6547 a trace experiment is running.
6548 (do_enable_breakpoint): Enable all locations associated with a
6549 tracepoint on target if a trace experiment is running.
6550 (enable_command) Enable a specific tracepoint location on target if a
6551 trace experiment is running.
6552 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6553 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6554 to_disable_tracepoint.
6555 * target.h: Add declaration of struct bp_location.
6556 (struct target_ops): Add new functions
6557 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6558 to_disable_tracepoint to target operations.
6559 (target_supports_enable_disable_tracepoint): New macro.
6560 (target_enable_tracepoint): New macro.
6561 (target_disable_tracepoint): New macro.
6562 * remote.c (struct remote_state): Add new field.
6563 (remote_enable_disable_tracepoint_feature): New.
6564 (remote_protocol_features): Add new entry.
6565 (remote_supports_enable_disable_tracepoint): New.
6566 (remote_enable_tracepoint): New.
6567 (remote_disable_tracepoint): New.
6568 (init_remote_ops): Add remote_enable_tracepoint,
6569 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6570 to remote operations.
6571 * tracepoint.c (start_tracing): Allow tracing to start without any
6572 tracepoints enabled with just a warning if they can be re-enabled
6574 * NEWS: Add news item for the new behaviour of the enable and disable
6575 GDB commands when applied to tracepoints.
6576 Add news items for the new remote packets QTEnable and QTDisable.
6578 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6580 * config.in: Regenerate.
6581 * configure: Regenerate.
6582 * configure.ac <--with-system-readline> (for readline_echoing_p):
6584 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6585 (tui_old_rl_echoing_p): ... here.
6586 (tui_setup_io): Rename extern declaration readline_echoing_p to
6587 _rl_echoing_p. Adjust assignments for the both renames.
6589 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6591 * symtab.c (lookup_symtab): Run cleanup before returning.
6593 2011-05-11 Tom Tromey <tromey@redhat.com>
6595 * dwarf2read.c (handle_data_member_location): New function.
6596 (dwarf2_add_field): Use it.
6597 (read_common_block): Likewise.
6599 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6601 Make addrs->SECTINDEX always defined.
6602 * symfile.c (relative_addr_info_to_section_offsets): Check for
6603 SECTINDEX -1, not for zero ADDR.
6604 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6605 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6606 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6609 2011-05-10 Doug Evans <dje@google.com>
6611 * linux-thread-db.c: Whitespace cleanup.
6612 (try_thread_db_load_1): Fix comment.
6614 * linux-thread-db.c (set_libthread_db_search_path): New function.
6615 (_initialize_thread_db): Add setter for libthread-db-search-path.
6617 2011-05-09 Doug Evans <dje@google.com>
6619 * NEWS: Mention --with-iconv-bin.
6620 * configure.ac: New option --with-iconv-bin.
6621 * configure: Regenerate.
6622 * config.in: Regenerate.
6623 * defs.h (relocate_gdb_directory): Declare.
6624 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6625 removed progname parameter, and exported. All callers updated.
6626 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6628 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6629 adding missing call to restore_child_signals_mask.
6631 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6633 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6635 * infrun.c (proceed, start_remote): Adjust.
6636 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6637 and adjust to not handle it.
6638 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6639 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6640 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6641 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6642 * windows-nat.c (do_initial_windows_stuff): Adjust.
6643 * infcmd.c (attach_command): Adjust.
6644 (notice_new_inferior): Adjust.
6646 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6648 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6649 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6650 * spu-tdep.c (op_selb): Use correct value.
6652 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6654 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6655 "parent" parameter to symbol_file_add_from_bfd call.
6657 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6658 Thiago Jung Bauermann <bauerman@br.ibm.com>
6660 Implement support for PowerPC BookE masked watchpoints.
6661 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6663 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6664 method. Initialize to NULL in all existing breakpoint_ops instances.
6665 (struct breakpoint) <hw_wp_mask>: New field.
6666 * breakpoint.c (is_masked_watchpoint): Add prototype.
6667 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6668 breakpoint's breakpoint_ops.works_in_software_mode if available.
6669 (watchpoints_triggered): Handle the case of a hardware masked
6671 (watchpoint_check): Likewise.
6672 (works_in_software_mode_watchpoint): New function.
6673 (insert_masked_watchpoint, remove_masked_watchpoint)
6674 (resources_needed_masked_watchpoint)
6675 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6676 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6677 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6679 (masked_watchpoint_breakpoint_ops): New structure.
6680 (watch_command_1): Check for the existence of the `mask' parameter.
6681 Set b->ops according to the type of hardware watchpoint being created.
6682 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6683 (ppc_linux_remove_mask_watchpoint)
6684 (ppc_linux_masked_watch_num_registers): New functions.
6685 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6686 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6687 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6688 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6689 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6690 (target_masked_watch_num_registers): New functions.
6691 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6692 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6694 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6695 (target_masked_watch_num_registers): Add prototypes.
6697 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6700 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6701 (producer_is_gcc_ge_4_0): New function.
6702 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6703 symtab->language code.
6704 (var_decode_location): Set cu->has_loclist.
6705 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6706 skip. Intialize force_skip from locations_valid. Move the prologue
6707 skipping code into two passes.
6708 * symtab.h (struct symtab): Make the primary field a bitfield. New
6709 field locations_valid.
6711 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6713 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6714 (classify_inner_name): Call cp_lookup_nested_type with
6716 * cp-namespace.c (cp_lookup_nested_type): New variable
6717 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6718 type_name_no_tag_or_error with saved_parent_type.
6719 * dwarf2read.c (load_partial_dies): Read in any children of
6720 DW_TAG_typedef with complaint in such case.
6721 * gdbtypes.c (type_name_no_tag_or_error): New function.
6722 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6723 * valops.c (destructor_name_p): New comment for parameter type. Remove
6724 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6725 * value.h (destructor_name_p): Remove type const.
6727 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6729 * symtab.c (compare_symbol_name): New function.
6730 (completion_list_add_name, expand_partial_symbol_name): Call it,
6731 remove the variable ncmp.
6732 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6735 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6737 Demote to sw watchpoint only in update_watchpoint.
6738 * breakpoint.c (update_watchpoint): Change between software and
6739 hardware watchpoint for all kinds of watchpoints, not just
6740 read/write ones. Determine b->exact value here instead of
6741 in watch_command_1. Error out if there are not enough resources
6742 for a read or access hardware watchpoint.
6743 (watch_command_1): Remove logic of checking whether there are
6744 enough resources available, since update_watchpoint will do that
6745 work now. Don't set b->exact here. Catch exceptions thrown by
6746 update_watchpoint and delete the watchpoint.
6747 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6748 Use target_exact_watchpoints instead.
6749 (delete_breakpoint): Notify observers only if deleted watchpoint
6750 has a breakpoint number assigned to it.
6752 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6754 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6756 2011-05-05 Jerome Guitton <guitton@adacore.com>
6758 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6760 (i386_stack_tramp_frame_unwind): New static global.
6761 (i386_match_pattern): New function, extracted from i386_match_insn.
6762 (i386_match_insn): Use i386_match_pattern.
6763 (i386_match_insn_block): New function.
6764 (i386_tramp_chain_in_reg_insns)
6765 (i386_tramp_chain_on_stack_insns): New static variables.
6766 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6769 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6771 * configure.host (xscale*): Don't handle target.
6772 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6775 2011-05-04 Yao Qi <yao@codesourcery.com>
6777 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6779 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6782 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6783 | * elfread.c (elf_symtab_read): Stop memory leak.
6785 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6787 * nto-tdep.c (nto_target): Replace deprecated call to
6788 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6790 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6792 Fix false GCC warning.
6793 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6795 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6797 * breakpoint.c (update_watchpoint): Move code to change
6798 the enable state of breakpoint from here ...
6799 (do_enable_breakpoint): ... to here.
6801 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6803 * valprint.c (val_print_array_elements): Fixed poor performance
6804 of printing very large arrays with repeat_count_threshold set
6805 to unlimited. New comment.
6807 2011-04-29 Tom Tromey <tromey@redhat.com>
6809 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6810 (mi_parse): Likewise.
6811 * breakpoint.c (break_range_command): Use sizeof char*, not
6813 (create_breakpoint): Likewise.
6814 (parse_breakpoint_sals): Likewise.
6816 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6818 * linux-nat.c (linux_child_remove_fork_catchpoint)
6819 (linux_child_remove_vfork_catchpoint)
6820 (linux_child_remove_exec_catchpoint): New functions.
6821 (linux_target_install_ops): Install them.
6823 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6827 * varobj.c (install_default_visualizer): Do not install a
6828 visualizer if the varobj is CPLUS_FAKE_CHILD.
6829 (construct_visualizer): Likewise.
6831 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6833 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6834 case insensitive comparison.
6836 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6838 * infrun.c (proceed): Revert previous change.
6839 (resume): Instead, handle the case of signal delivery while stepping
6840 off a breakpoint location here, and only if software single-stepping
6841 is used. Handle nested signals.
6843 2011-04-28 Yao Qi <yao@codesourcery.com>
6845 * arm-tdep.c (copy_unmodified): Rename to ...
6846 (arm_copy_unmodified): .. this. New.
6847 (copy_preload): Move common part to ...
6848 (install_preload): .. this. New.
6849 (arm_copy_preload): New.
6850 (copy_preload_reg): Move common part to ...
6851 (install_preload_reg): ... this. New.
6852 (arm_copy_preload_reg): New.
6853 (copy_b_bl_blx): Move common part to ...
6854 (install_b_bl_blx): .. this. New.
6855 (arm_copy_b_bl_blx): New.
6856 (copy_bx_blx_reg): Move common part to ...
6857 (install_bx_blx_reg): ... this. New.
6858 (arm_copy_bx_blx_reg): New.
6859 (copy_alu_reg): Move common part to ...
6860 (install_alu_reg): ... this. New.
6861 (arm_copy_alu_reg): New.
6862 (copy_alu_shifted_reg): Move common part to ...
6863 (install_alu_shifted_reg): ... this. New.
6864 (copy_ldr_str_ldrb_strb): Move common part to ...
6865 (install_ldr_str_ldrb_strb): ... this. New.
6866 (arm_copy_ldr_str_ldrb_strb): New.
6867 (copy_copro_load_store): Move some common part to ...
6868 (install_copy_copro_load_store): ... this. New.
6869 (arm_copy_copro_load_store): New.
6871 (arm_copy_svc): Renamed from copy_svc.
6872 (copy_undef): Delete.
6873 (arm_copy_undef): Renamed from copy_undef.
6874 (decode_ext_reg_ld_st): Delete.
6875 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6876 (decode_svc_copro): Delete.
6877 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6878 (copy_copro_load_store, copy_alu_imm): update callers.
6879 (copy_extra_ld_st, copy_block_xfer): Likewise.
6880 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6881 (decode_miscellaneous, decode_dp_misc): Likewise.
6882 (decode_ld_st_word_ubyte, decode_media): Likewise.
6883 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6884 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6885 (decode_unconditional, decode_miscellaneous): Likewise.
6886 (decode_media, decode_b_bl_ldmstm): Likewise.
6887 (arm_process_displaced_insn): Likewise..
6888 (decode_misc_memhint_neon): Delete.
6889 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6890 (decode_miscellaneous): Delete.
6891 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6892 (decode_dp_misc): Delete.
6893 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6894 (decode_ld_st_word_ubyte): Delete.
6895 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6896 (decode_media): Delete.
6897 (arm_decode_media): Renamed from decode_media.
6898 (decode_b_bl_ldmstm): Delete.
6899 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6900 (decode_ext_reg_ld_st): Delete.
6901 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6902 (decode_unconditional): Delete.
6903 (arm_decode_unconditional): Renamed from decode_unconditional.
6905 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6907 Case insensitive lookups implementation.
6908 * dwarf2read.c: Include ctype.h.
6909 (struct mapped_index): New field version.
6910 (mapped_index_string_hash): New parameter index_version. New comment
6911 for it. Call tolower appropriately.
6912 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6913 Choose the right index version for mapped_index_string_hash.
6914 (dwarf2_read_index): Support also the index version 5. Initialize the
6915 new struct mapped_index field version.
6916 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6917 (find_slot): Explain the version needs. Pass INT_MAX for the new
6919 (write_psymtabs_to_index): Produce version 5.
6920 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6921 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6922 * psymtab.c (lookup_partial_symbol): Find the
6923 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6925 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6927 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6928 (completion_list_add_name): New variable ncmp, initialize it, use it.
6929 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6930 * utils.c (strcmp_iw): Support case_sensitive_off.
6931 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6932 New function comment part. New variables saved_string1,
6933 saved_string2 and case_pass. Add a proper second pass.
6935 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6937 Replace re_comp/re_exec by regcomp/regexec.
6938 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6939 (search_symbols_name_matches): Use them, use regexec.
6940 (search_symbols): New variable retval_chain, adjust the use of
6941 old_chain against it. Replace re_comp by regcomp. Use the new struct
6942 search_symbols_data fields, use regexec instead of re_exec.
6944 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6946 Format the code for the next patch.
6947 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6948 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6949 New variables c1 and c2.
6951 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6953 * infrun.c (proceed): Do not single-step into signal delivery
6954 when stepping off a breakpoint location.
6955 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6956 (insert_step_resume_breakpoint_at_caller): Likewise.
6957 (insert_step_resume_breakpoint_at_sal): Likewise.
6958 (insert_longjmp_resume_breakpoint): Likewise.
6960 2011-04-27 Yao Qi <yao@codesourcery.com>
6962 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6964 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6966 * procfs.c (procfs_pass_signals): Fix advance declaration.
6968 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6970 * target.h (struct target_ops): Remove to_notice_signals;
6971 add to_pass_signals.
6972 (target_notice_signals): Remove.
6973 (target_pass_signals): Add prototype.
6974 * target.c (update_current_target): Remove to_notice_signals;
6975 mention to_pass_signals.
6976 (target_pass_signals): New function.
6977 (debug_to_notice_signals): Remove.
6978 (setup_target_debug): Do not install debug_to_notice_signals.
6980 * infrun.c (signal_pass): New global.
6981 (resume): Call target_pass_signals.
6982 (handle_inferior_event): Report all signals while stepping over
6983 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6984 are re-inserted when stepping over a signal handler.
6985 (signal_cache_update): New function.
6986 (signal_stop_update): Call it.
6987 (signal_print_update): Likewise.
6988 (signal_pass_update): Likewise.
6989 (handle_command): Call signal_cache_update and target_pass_signals
6990 instead of target_notice_signals.
6991 (_initialize_infrun): Initialize signal_pass.
6993 * linux-nat.c (pass_mask): New global.
6994 (linux_nat_pass_signals): New function.
6995 (linux_nat_create_inferior): Report all signals initially.
6996 (linux_nat_attach): Likewise.
6997 (linux_nat_resume): Use pass_mask to decide whether to directly
6998 handle an inferior signal.
6999 (linux_nat_wait_1): Likewise.
7000 (linux_nat_add_target): Install to_pass_signals callback.
7002 * nto-procfs.c (notice_signals): Remove.
7003 (procfs_resume): Do not call notice_signals.
7004 (procfs_notice_signals): Remove.
7005 (procfs_pass_signals): New function.
7006 (init_procfs_ops): Install to_pass_signals callback instead of
7007 to_notice_signals callback.
7008 (_initialize_procfs): Report all signals initially.
7010 * procfs.c (procfs_notice_signals): Remove.
7011 (procfs_pass_signals): New function.
7012 (procfs_target): Install to_pass_signals callback instead of
7013 to_notice_signals callback.
7014 (register_gdb_signals): Remove.
7015 (procfs_debug_inferior): Report all signals initially.
7016 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7018 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7019 parameters; use them instead of calling signal_..._state routines.
7020 (remote_notice_signals): Remove.
7021 (remote_start_remote): Report all signals initially.
7022 (remote_resume): Do not call remote_pass_signals.
7023 (_initialize_remote): Install to_pass_signals callback instead of
7024 to_notice_signals callback.
7026 2011-04-27 Pedro Alves <pedro@codesourcery.com>
7028 * breakpoint.c (user_settable_breakpoint): Delete.
7029 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7030 (delete_command): Check user_breakpoint_p instead of looking at
7031 the breakpoint's type.
7032 (disable_command): Ditto.
7033 (enable_command): Ditto.
7034 (delete_trace_command): Use user_breakpoint_p instead of looking
7035 at the breakpoint number directly. When checking if there are
7036 user visible tracepoints, in order to know whether to ask the user
7037 for confirmation, check whether the breakpoint is actually a
7040 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7042 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7045 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7047 MI breakpoint notifications.
7049 * annotate.c (breakpoint_changed): Adjust parameter type.
7050 * breakpoint.c (set_breakpoint_condition): Adjust to change
7051 in breakpoint_modified type.
7052 (breakpoint_set_commands): Likewise.
7053 (do_map_commands_command): Likewise.
7054 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7055 changed after bumping hit count.
7056 (bpstat_stop_status): Likewise.
7057 (print_one_breakpoint_location): Don't wrap in tuple here.
7058 (print_one_breakpoint): Always print individual locations.
7059 For locations, use unnamed tuple.
7060 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7062 (create_catchpoint, create_syscall_event_catchpoint): Call
7063 breakpoint_created obsever.
7064 (mention): Don't call breakpoint_created observer.
7065 (create_breakpoint_sal): Call breakpoint_created observer.
7066 (create_breakpoint, watch_command_1): Likewise.
7067 (create_ada_exception_breakpoint): Likewise.
7068 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7069 (locations_are_equal): New.
7070 (update_breakpoint_locations): If locations were changed, notify.
7071 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7072 Call breakpoint_modified observer.
7074 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7075 (mi_cmd_break_insert): Don't set observers for modify and delete.
7076 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7077 (mi_breakpoint_created, mi_breakpoint_deleted)
7078 (mi_breakpoint_modified): New.
7079 (mi_interpreter_init): Hook the above.
7080 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7081 while -break-* commands are executing.
7082 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7083 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7085 (mi_ui_out_impl): Hook in mi_redirect.
7086 (mi_field_skip): True to the name, skip the field, don't output
7087 a field with an empty value.
7089 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7090 (gdbpy_breakpoint_deleted): Adjust.
7091 * tui/tui-hooks.c (tui_event_create_breakpoint)
7092 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
7094 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7096 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7097 (procfs_remove_hw_watchpoint): Likewise.
7099 2011-04-26 Michael Walle <michael@walle.cc>
7101 * remote.c (remote_start_remote): Ack packet after sending the
7104 2011-04-26 Yao Qi <yao@codesourcery.com>
7106 * linux-nat.c: Move common macros to ...
7107 Include linux-ptrace.h.
7108 * common/linux-ptrace.h: ... here. New.
7110 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7112 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7113 !objfile_has_partial_symbols. New comment.
7114 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7115 SYM_READ_PSYMBOLS is not present. Extend the comment.
7116 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7118 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7120 * defs.h (ENUM_BITFIELD): Remove.
7122 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7123 Eli Zaretskii <eliz@gnu.org>
7125 * NEWS: Document the new gdbserver --once option.
7127 2011-04-21 Jie Zhang <jzhang918@gmail.com>
7129 * MAINTAINERS: Update my email address.
7131 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7133 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7134 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7135 function call if __STDC_ISO_10646__ macro is defined.
7136 (intermediate_encoding): New prototype.
7137 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7138 to generate compile time error for unsupported gdb_wchar_t size.
7139 (ENDIAN_SUFFIX): New macro.
7140 (intermediate_encoding): New function.
7142 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7144 * ada-lang.c (struct add_partial_datum): Update the comment for
7145 expand_partial_symbol_name.
7146 (ada_add_partial_symbol_completions): Rename to ...
7147 (ada_expand_partial_symbol_name): ... here, change return type, update
7148 function comment, call symbol_completion_match instead of
7149 symbol_completion_add.
7150 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7151 and ada_expand_partial_symbol_name.
7152 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7154 (dw2_map_symbol_names): Remove.
7155 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7156 * psymtab.c (map_symbol_names_psymtab): Remove.
7157 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7158 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7160 (psym_functions): Unlist map_symbol_names_psymtab.
7161 (map_partial_symbol_names): Rename to ...
7162 (expand_partial_symbol_names): ... here, change the FUN type, call
7163 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7164 * psymtab.h (map_partial_symbol_names): Rename to ...
7165 (expand_partial_symbol_names): ... here, change the FUN type.
7166 * symfile.h (struct quick_symbol_functions): Update the description of
7167 expand_symtabs_matching. Remove map_symbol_names.
7168 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7169 (struct add_name_data): Update the comment for
7170 expand_partial_symbol_name.
7171 (add_partial_symbol_name): Rename to ...
7172 (expand_partial_symbol_name): ... here. Replace
7173 completion_list_add_name call by strncmp.
7174 (default_make_symbol_completion_list_break_on): Use now
7175 expand_partial_symbol_names and expand_partial_symbol_name.
7176 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7178 2011-04-20 Tom Tromey <tromey@redhat.com>
7180 * dwarf2read.c (save_gdb_index_command): Replace format
7181 documentation with a pointer to the manual.
7183 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7185 * regcache.c: Include remote.h.
7186 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7187 (regcache_dump): Handle regcache_dump_remote.
7188 (maintenance_print_remote_registers): New function.
7189 (_initialize_regcache): Install "maint print remote-registers"
7191 * remote.c (map_regcache_remote_table): New function, factored out
7193 (init_remote_state): ... here.
7194 (remote_register_number_and_offset): New.
7195 * remote.h (remote_register_number_and_offset): Declare.
7197 2011-04-20 Pedro Alves <pedro@codesourcery.com>
7199 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7200 null_ptid, assume and allow a NULL address space, instead of
7201 asking the target for the ptid's address space.
7202 * infrun.c (ptid_is_pid): Remove assertion.
7204 2011-04-19 Tom Tromey <tromey@redhat.com>
7206 * windows-tdep.c (windows_xfer_shared_library):
7207 * windows-nat.c (get_module_name, windows_make_so):
7208 * v850-tdep.c (v850_handle_pushm):
7209 * utils.c (null_cleanup, gdb_realpath):
7210 * ui-out.c (get_next_header):
7211 * tracepoint.c (clear_traceframe_info):
7212 * symtab.c (lookup_symtab):
7213 * serial.h (struct serial_ops):
7214 * mipsread.c (read_alphacoff_dynamic_symtab):
7215 * infcmd.c (print_return_value):
7216 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7217 * f-exp.y (parse_number):
7218 * exceptions.c (catch_exceptions):
7219 * dummy-frame.c (dummy_frame_this_id):
7220 * defs.h (struct cleanup):
7221 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7222 * arm-tdep.c (arm_push_dummy_call):
7223 * amd64-tdep.h (amd64_collect_xsave):
7224 * amd64-tdep.c (amd64_collect_xsave):
7225 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7226 * README (typing): Remove duplicate words.
7227 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7228 * infrun.c (siginfo_value_read): Fix typo.
7229 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7230 * top.c (source_line_number): Add comma.
7232 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7234 * thread.c (any_live_thread_of_process): Prioritize threads
7235 that are not executing.
7236 * gdbthread.h (any_live_thread_of_process): Update comment
7237 as per above change.
7239 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7241 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7242 (scan_xcoff_symtab): Likewise.
7244 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7246 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7249 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7250 Pedro Alves <pedro@codesourcery.com>
7252 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7253 variables to simplify code and avoid == operator at end of
7254 line as this is against GNU coding standards.
7256 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7258 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7259 lm_name to name_lm to avoid conflict with lm_name function.
7261 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7263 ARI fixes: Use only lowercase function name for static functions.
7264 * nto-tdep.c (LM_ADDR): Rename to...
7265 (lm_addr): New function name.
7266 (nto_relocate_section_addresses): Adapt to change above.
7267 * solib-sunos.c (LM_ADDR): Rename to...
7268 (lm_addr): New function name.
7269 (LM_NEXT): Rename to...
7270 (lm_next): New function name.
7271 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7272 function name changes above.
7273 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7274 (lm_addr_from_link_map): New function name.
7275 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7276 (has_lm_dynamic_from_link_map): New function name.
7277 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7278 (lm_dynamic_from_link_map): New function name.
7279 (LM_ADDR_CHECK): Rename to...
7280 (lm_addr_check): New function name.
7281 (LM_NEXT): Rename to...
7282 (lm_next): New function name.
7283 (LM_PREV): Rename to...
7284 (lm_prev): New function name.
7285 (LM_NAME): Rename to...
7286 (lm_name): New function name.
7287 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7288 (ignore_first_link_map_entry): New function name.
7289 (svr4_keep_data_in_core): Adapt to function name changes above.
7290 (svr4_current_sos): Likewise.
7291 (enable_break): Likewise.
7292 (svr4_relocate_section_addresses): Likewise.
7294 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7297 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7298 sprintf. Simplify code and avoid loosing memory.
7299 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7300 (call0_frame_cache): Remove && operator from end of line.
7302 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7304 Fix libraries displacement if they change whether they were prelinked.
7305 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7306 does not match. Comment why.
7308 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7310 * corelow.c: Include wrapper.h.
7311 (core_open): Call now gdb_target_find_new_threads.
7312 * wrapper.c: Include target.h.
7313 (gdb_target_find_new_threads): New.
7314 * wrapper.h (gdb_target_find_new_threads): New declaration.
7316 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7318 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7319 even if !TARGET_HAS_EXECUTION.
7321 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7323 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7324 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7325 bfd_get_synthetic_symtab.
7326 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7327 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7328 parameter parent, remove the call to add_separate_debug_objfile.
7329 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7330 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7331 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7332 parent, new comment for it, call add_separate_debug_objfile for it.
7333 (symbol_file_add_separate): Pass objfile as the parameter parent,
7334 remove the call to add_separate_debug_objfile.
7335 (symbol_file_add_from_bfd): New parameter parent, pass it.
7336 (symbol_file_add): Pass NULL to the new parameter parent.
7337 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7339 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7341 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7344 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7346 Fix Python access to inlined frames.
7347 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7348 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7350 2011-04-15 Tom Tromey <tromey@redhat.com>
7352 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7354 2011-04-15 Gary Benson <gbenson@redhat.com>
7356 * MAINTAINERS: Add myself to write-after-approval section.
7358 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7360 * remote-sim.c (sim_command_completer): New function.
7361 (_initialize_remote_sim): Set completer to sim_command_completer.
7363 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7365 * breakpoint.c (print_exception_catchpoint): Rename to ...
7366 (print_it_exception_catchpoint): ... this.
7367 (gnu_v3_exception_catchpoint_ops): Update with new name
7368 for print_it_exception_catchpoint.
7370 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7372 * MAINTAINERS: Add myself for write after approval privileges.
7374 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7376 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7378 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7380 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7382 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7384 * breakpoint.c (save_breakpoints): Verify whether
7385 breakpoint_ops.print_recreate is defined before calling it.
7387 2011-04-11 Gary Benson <gbenson@redhat.com>
7389 Fix failure with --enable-maintainer-mode.
7390 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7392 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7395 * symtab.c (search_symbols): Reorder the KIND description in the
7396 function comment. Remove the unused 4th element of types, types2,
7397 types3 and types4. New gdb_assert on KIND.
7398 (symtab_symbol_info): Remove the unused 4th element of classnames.
7399 New gdb_assert on KIND.
7400 * symtab.h (enum search_domain): New warning in the enum comment.
7401 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7404 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7406 Fix crash of gdb save-index on a STABS file.
7407 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7410 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7412 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7413 * dwarf2read.c: Include ctype.h.
7414 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7416 (dwarf2_add_field): Fix new_field->accessibility by calling
7417 dwarf2_default_access_attribute. Restructure setting accessibility
7419 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7420 is_private and is_protected by calling
7421 dwarf2_default_access_attribute.
7423 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7425 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7426 to the initialization.
7428 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7430 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7433 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7435 Remove support for old Cygwin 1.5 versions.
7436 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7437 function on old Cygwin version.
7438 * windows-nat.c: Remove cygwin version check and always define
7439 __USEWIDE for Cygwin compilation.
7441 2011-04-07 Yao Qi <yao@codesourcery.com>
7443 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7445 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7446 (arm_copy_svc): Remove parameters INSN and TO.
7447 (decode_svc_copro): Update caller.
7448 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7449 from function pointer `copy_svc_os'.
7451 2011-04-07 Yao Qi <yao@codesourcery.com>
7453 * arm-tdep.c (cleanup_branch): Set a correct return address in
7454 LR for ARM and Thumb.
7456 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7459 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7460 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7461 in the function comment, a new note on values compatibility.
7462 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7463 * symtab.h (SYMBOL_HASH_NEXT): New.
7465 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7467 * ppc-linux-nat.c (check_condition): Add len output parameter.
7468 Set it based on the memory region referenced in the condition
7469 expression. Update all callers.
7471 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7473 Fix crash regression on systems featuring .gdb_index.
7474 * objfiles.c (free_objfile): Move the
7475 forget_cached_source_info_for_objfile call earlier. Comment it.
7476 Extend the comment for objfile_free_data.
7478 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7480 Fix regression of displaying the debug format.
7481 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7484 2011-04-04 Tom Tromey <tromey@redhat.com>
7486 * cli/cli-interp.c (struct captured_execute_command_args):
7488 (do_captured_execute_command): Remove.
7489 (safe_execute_command): Use TRY_CATCH.
7490 * cli/cli-script.c (struct wrapped_read_command_file_args):
7492 (wrapped_read_command_file): Remove.
7493 (script_from_file): Use TRY_CATCH.
7494 * exceptions.c (catch_exception): Remove.
7495 * exceptions.h (catch_exception): Remove.
7496 (deprecated_throw_reason): Update comment.
7497 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7498 argument to 'context'.
7499 (mi_execute_command): Use TRY_CATCH.
7500 * remote.c (struct start_remote_args): Remove.
7501 (remote_start_remote): Update; change arguments.
7502 (remote_open_1): Use TRY_CATCH.
7504 2011-04-04 Tom Tromey <tromey@redhat.com>
7506 * tracepoint.c (scope_info): Update.
7507 * symtab.c (decode_line_spec): Update.
7508 * python/python.c (gdbpy_decode_line): Update.
7509 * linespec.h (decode_line_1): Update.
7510 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7511 (decode_compound, find_method, symtab_from_filename)
7512 (decode_variable): Likewise.
7513 * cli/cli-cmds.c (edit_command): Update.
7514 (list_command): Update.
7515 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7517 (create_breakpoint): Update.
7518 (until_break_command): Update.
7519 (addr_string_to_sals): Update.
7520 (decode_line_spec_1): Update.
7522 2011-04-04 Tom Tromey <tromey@redhat.com>
7524 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7525 (do_captured_parse_breakpoint): Remove.
7526 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7527 Use TRY_CATCH directly.
7529 2011-04-04 Tom Tromey <tromey@redhat.com>
7531 * symtab.h (free_symtab): Remove.
7532 (forget_cached_source_info_for_objfile): Declare.
7533 * symmisc.c (free_symtab): Remove.
7534 * source.c (forget_cached_source_info_for_objfile): New function.
7535 (forget_cached_source_info): Use it.
7536 * objfiles.c (free_objfile): Simplify check before calling
7537 clear_current_source_symtab_and_line. Call
7538 forget_cached_source_info_for_objfile.
7540 2011-04-04 Tom Tromey <tromey@redhat.com>
7542 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7543 (new_symtab): Don't set `free_code' on symtab.
7544 (new_linetable): Properly handle size==0.
7545 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7546 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7548 * jv-lang.c (struct jv_per_objfile_data): New.
7549 (jv_per_objfile_free): Free the data.
7550 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7551 (get_java_class_symtab): Set the `dict' field on the
7552 jv_per_objfile_data.
7553 (free_class_block): Remove.
7554 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7557 2011-04-04 Tom Tromey <tromey@redhat.com>
7559 * symfile.c (reread_symbols): Update.
7560 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7562 * objfiles.c (allocate_objfile): Update.
7563 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7565 * cp-namespace.c (lookup_symbol_file): Don't call
7566 lookup_possible_namespace_symbol.
7567 (initialize_namespace_symtab, get_possible_namespace_block)
7568 (free_namespace_block, cp_check_possible_namespace_symbols)
7569 (check_possible_namespace_symbols_loop)
7570 (check_one_possible_namespace_symbol)
7571 (lookup_possible_namespace_symbol): Remove.
7572 (maintenance_cplus_namespace): Replace with notice.
7573 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7575 2011-04-04 Tom Tromey <tromey@redhat.com>
7577 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7578 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7579 * symmisc.c (free_symtab): Don't free debugformat.
7580 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7581 (record_debugformat, record_producer): Document.
7582 * buildsym.c (end_symtab): Don't save debugformat and producer
7584 (end_symtab): Don't free debugformat and producer fields.
7585 (record_debugformat): Don't call xstrdup.
7586 (record_producer): Likewise.
7588 2011-04-04 Tom Tromey <tromey@redhat.com>
7590 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7591 (source_line_charpos, source_charpos_line): Remove.
7593 2011-04-04 Tom Tromey <tromey@redhat.com>
7595 * symtab.h (domain_enum): Split in two...
7596 (enum search_domain): New.
7597 (search_symbols): Update.
7598 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7599 redundant declarations.
7600 (search_symbols): Change 'kind' argument to search_domain.
7602 (print_symbol_info): Likewise.
7603 (symtab_symbol_info): Likewise.
7604 * symfile.h (struct quick_symbol_functions)
7605 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7606 <expand_symtabs_matching>: Likewise.
7607 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7608 (expand_symtabs_matching_via_partial): Update.
7609 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7610 (dw2_expand_symtabs_for_function): Update.
7611 * block.h: Moved anonymous enum...
7612 * defs.h (enum block_enum): ... here. Now named.
7614 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7616 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7617 * version.in: Bump version to 7.3.50.20110403-cvs.
7619 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7621 * NEWS: Create a new section for the next release branch.
7622 Rename the section of the current branch, now that it has
7625 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7627 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7628 for "fpscr" in target description.
7630 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7632 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7633 initialize it. Delay HASH initialization. Strip the part after open
7634 parenthesis for languages with qualifiers. Call do_cleanups.
7636 2011-04-01 Tom Tromey <tromey@redhat.com>
7638 * utils.c (report_command_stats): Don't print `-' for negative
7641 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7643 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7644 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7647 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7649 * breakpoint.h (bpdisp_text): Add declaration.
7650 * breakpoint.c (bpdisp_text): Make non-static.
7651 * ada-lang.c: #include "mi/mi-common.h".
7652 (print_it_exception): Rewrite to improve GDB/MI output.
7654 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7656 * arm-tdep.h (struct address_space): Add forward declaration.
7658 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7660 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7661 * arm-tdep.c (arm_override_mode): New global.
7662 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7663 execution mode heuristics.
7664 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7665 second single-step breakpoint if needed, using
7666 arm_insert_single_step_breakpoint.
7667 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7668 ARM execution mode, do not call thumb_get_next_pc_raw.
7669 (arm_get_next_pc): Encode execution mode in return value. Call
7670 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7671 (arm_insert_single_step_breakpoint): New function.
7672 (arm_software_single_step): Call it.
7673 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7674 argument to return execution mode of sigreturn target.
7675 (arm_linux_syscall_next_pc): Use it.
7676 (arm_linux_copy_svc): Update call.
7677 (arm_linux_software_single_step): Call
7678 arm_insert_single_step_breakpoint.
7680 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7682 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7685 2011-03-31 Tom Tromey <tromey@redhat.com>
7687 * varobj.c (update_dynamic_varobj_children): Properly handle
7688 errors from iterator.
7690 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7692 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7693 struct linkage name twice.
7695 2011-03-31 Tom Tromey <tromey@redhat.com>
7697 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7698 missing ">" to message.
7700 2011-03-31 Tom Tromey <tromey@redhat.com>
7702 * varobj.c (instantiate_pretty_printer): Remove duplicate
7705 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7707 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7708 if neither saved value nor register available (e.g. signal frame).
7710 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7712 * macroexp.c (expand): Avoid uninitialized variable
7715 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7717 * breakpoint.c (break_range_command): Fix typo in comment.
7719 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7720 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7722 Implement support for PowerPC BookE ranged breakpoints.
7723 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7724 * breakpoint.h (struct bp_target_info) <length>: New member
7726 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7727 instead of struct breakpoint as argument, and also add ASPACE
7728 and BP_ADDR arguments. Update all callers.
7729 (struct breakpoint_ops) <print_one_detail>: New method.
7730 (struct breakpoint) <addr_string_range_end>: New member variable.
7731 * breakpoint.c (breakpoint_location_address_match): Add function
7733 (insert_bp_location): Set bl->target_info.length.
7734 (breakpoint_here_p): Call breakpoint_location_address_match.
7735 (moribund_breakpoint_here_p): Likewise.
7736 (regular_breakpoint_inserted_here_p): Likewise.
7737 (breakpoint_thread_match): Likewise.
7738 (bpstat_stop_status): Likewise.
7739 (bpstat_check_location): Move call to
7740 breakpoint_ops.breakpoint_hit to the top.
7741 (print_one_breakpoint_location): Call
7742 breakpoint_ops.print_one_detail if available.
7743 (breakpoint_address_match_range): New function.
7744 (breakpoint_location_address_match): Likewise.
7745 (breakpoint_locations_match): Compare the length field of the
7747 (hw_breakpoint_used_count): Count resources used by all locations
7748 in a breakpoint, and use breakpoint_ops.resources_needed if
7750 (breakpoint_hit_ranged_breakpoint): New function.
7751 (resources_needed_ranged_breakpoint): Likewise.
7752 (print_it_ranged_breakpoint): Likewise.
7753 (print_one_ranged_breakpoint): Likewise.
7754 (print_one_detail_ranged_breakpoint): Likewise.
7755 (print_mention_ranged_breakpoint): Likewise.
7756 (print_recreate_ranged_breakpoint): Likewise.
7757 (ranged_breakpoint_ops): New structure.
7758 (find_breakpoint_range_end): New function.
7759 (break_range_command): Likewise.
7760 (delete_breakpoint): Free addr_string_range_end.
7761 (update_breakpoint_locations): Add SALS_END argument. Update
7762 all callers. Calculate breakpoint length if a non-zero SALS_END
7763 is given. Call breakpoint_locations_match instead of
7764 breakpoint_address_match.
7765 (reset_breakpoint): Find SaL of the end of the range if B is a
7767 (_initialize_breakpoint): Register break-range command.
7768 * defs.h (print_core_address): Add function prototype.
7769 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7771 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7772 (ppc_linux_remove_hw_breakpoint): Likewise.
7773 (_initialize_ppc_linux_nat): Initialize
7774 to_ranged_break_num_registers.
7775 * target.c (update_current_target): Add comment about
7776 to_ranged_break_num_registers.
7777 (target_ranged_break_num_registers): New function.
7778 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7780 (target_ranged_break_num_registers): Add function prototype.
7781 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7782 * utils.c (print_core_address): ... here.
7784 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7786 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7787 variable compiler warning.
7789 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7791 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7793 (re_set_breakpoint): ... to here ...
7794 (addr_string_to_sals): ... and here.
7796 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7798 * Makefile.in (SFILES): Add missing C sources.
7799 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7800 Add missing headers.
7802 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7804 * .gitignore: New file.
7806 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7808 * NEWS: Mention new cfi device simulation.
7810 2011-03-29 Tom Tromey <tromey@redhat.com>
7812 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7813 otherwise anonymous types.
7814 (dwarf2_name): Likewise.
7815 * valops.c (value_struct_elt_for_reference): Refine artificial
7816 type logic. Call error if j==-1.
7818 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7820 Fix false GCC warning.
7821 * infcall.c (find_function_addr): Initialize funaddr.
7823 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7825 Fix mingw compilation with --enable-targets=all.
7826 * remote-mips.c (gdb_usleep.h): Include header.
7827 (mips_enter_debug): Use gdb_usleep instead of sleep.
7829 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7831 Support resolution of STT_GNU_IFUNC via breakpoints.
7832 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7833 bp_gnu_ifunc_resolver_return.
7834 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7835 the loop. Support bp_gnu_ifunc_resolver and
7836 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7837 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7839 (bptype_string, print_one_breakpoint_location): Support
7840 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7841 (user_settable_breakpoint): Return true also for
7842 bp_gnu_ifunc_resolver.
7843 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7844 bp_gnu_ifunc_resolver_return.
7845 (set_breakpoint_location_function): New parameter explicit_loc,
7846 describe it. Call find_pc_partial_function_gnu_ifunc with new
7847 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7848 EXPLICIT_LOC is not set.
7849 (set_raw_breakpoint): Set EXPLICIT_LOC for
7850 set_breakpoint_location_function.
7851 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7852 set_breakpoint_location_function.
7853 (mention): Support bp_gnu_ifunc_resolver and
7854 bp_gnu_ifunc_resolver_return.
7855 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7856 set_breakpoint_location_function.
7857 (update_breakpoint_locations): Remove static.
7858 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7859 bp_gnu_ifunc_resolver_return.
7860 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7861 bp_gnu_ifunc_resolver_return.
7862 (update_breakpoint_locations): New declaration.
7863 * elfread.c: Include gdbthread.h and regcache.h.
7864 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7866 (elf_gnu_ifunc_fns): Install them.
7867 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7868 (stub_gnu_ifunc_resolver_return_stop): New functions.
7869 (stub_gnu_ifunc_fns): Install them.
7870 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7871 and gnu_ifunc_resolver_return_stop.
7872 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7874 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7876 STT_GNU_IFUNC reader implementation.
7877 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7878 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7879 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7880 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7881 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7882 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7883 (elf_gnu_ifunc_resolve_addr): New.
7884 (elf_symfile_read): Call elf_rel_plt_read.
7885 (elf_gnu_ifunc_fns): New.
7886 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7887 Install elf_gnu_ifunc_fns.
7888 * infcall.c (find_function_return_type): New function.
7889 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7890 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7891 (stub_gnu_ifunc_resolve_name): New functions.
7892 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7893 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7894 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7896 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7898 Code cleanup for later STT_GNU_IFUNC support.
7899 * infcall.c (find_function_addr): Remove variable code, use explicit
7900 dereferences for it. Move VALUE_TYPE initialization later.
7902 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7904 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7905 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7906 (clear_pc_function_cache): Clear it.
7907 (find_pc_partial_function): Rename to ...
7908 (find_pc_partial_function_gnu_ifunc): ... this function. New
7909 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7910 (find_pc_partial_function): New wrapper for this function.
7911 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7913 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7915 GDB internal type support for STT_GNU_IFUNC.
7916 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7917 (elf_symtab_read): Set mst_text_gnu_ifunc for
7918 BSF_GNU_INDIRECT_FUNCTION.
7919 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7920 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7921 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7922 nodebug_got_plt_symbol.
7923 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7924 (TYPE_GNU_IFUNC): New.
7925 (struct main_type): New field flag_gnu_ifunc.
7926 (struct builtin_type): New field builtin_func_func.
7927 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7928 nodebug_got_plt_symbol.
7929 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7930 (in_gnu_ifunc_stub): New.
7931 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7933 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7934 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7935 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7937 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7938 * symtab.c (search_symbols): Likewise.
7939 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7940 and mst_slot_got_plt.
7941 (in_gnu_ifunc_stub): New declaration.
7943 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7945 Support a ring of related breakpoints.
7946 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7947 other functions, add gdb_assert.
7948 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7949 watchpoint_del_at_next_stop.
7950 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7951 (bpstat_stop_status): Handle ring in related_breakpoint.
7952 (set_raw_breakpoint_without_location): Initialize ring in
7954 (delete_breakpoint): Handle ring in related_breakpoint, use
7955 watchpoint_del_at_next_stop.
7956 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7958 2011-03-28 Tom Tromey <tromey@redhat.com>
7961 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7962 with `language_minimal'.
7964 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7966 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7967 instead of checking for STT_ARM_TFUNC symbol type.
7969 2011-03-25 Tom Tromey <tromey@redhat.com>
7971 * linespec.c (symbol_found): Restore line-based result for
7972 non-LOC_LABEL symbols.
7974 2011-03-25 Kai Tietz <ktietz@redhat.com>
7976 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7977 instead of strcmp for comparison.
7978 (tui_source_is_displayed): Likewise.
7979 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7981 2011-03-24 Mark Wielaard <mjw@redhat.com>
7983 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7985 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7986 (find_partial_die_in_comp_unit): Likewise in comment.
7987 (read_attribute_value): Likewise.
7988 (lookup_die_type): Likewise.
7989 (dwarf_form_name): Likewise.
7990 (dump_die_shallow): Likewise.
7991 (follow_die_ref_or_sig): Likewise.
7993 2011-03-24 Tom Tromey <tromey@redhat.com>
7995 PR breakpoints/11816:
7996 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7997 (decode_compound): Update.
7998 (find_function_symbol): New function.
7999 (decode_dollar): Update.
8000 (decode_label): Add 'function_symbol' parameter. Handle
8001 function-relative labels.
8002 (decode_variable): Update.
8003 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8004 not its line. Set `special_display' and canonical name for
8007 2011-03-24 Tom Tromey <tromey@redhat.com>
8009 * linespec.h (struct linespec_result) <special_display>: New
8011 * breakpoint.h (struct breakpoint) <display_canonical>: New
8013 * breakpoint.c (print_breakpoint_location): Respect
8015 (create_breakpoint_sal): Add 'display_canonical' parameter.
8016 (create_breakpoints_sal): Update.
8017 (create_breakpoint): Update.
8019 2011-03-24 Tom Tromey <tromey@redhat.com>
8021 * symtab.c (decode_line_spec): Update.
8022 * linespec.c (build_canonical_line_spec): Change type of
8024 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8025 (find_method, decode_all_digits, decode_dollar, decode_label)
8026 (symbol_found): Likewise.
8027 (init_linespec_result): New function.
8028 * breakpoint.c (struct captured_parse_breakpoint_args)
8029 <canonical_p>: New field, replaces addr_string_p.
8030 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8032 (parse_breakpoint_sals): Likewise.
8033 (do_captured_parse_breakpoint): Update.
8034 (create_breakpoint): Use struct linespec_result.
8035 (until_break_command): Update.
8036 (breakpoint_re_set_one): Update.
8037 (decode_line_spec_1): Update.
8038 * linespec.h (struct linespec_result): New.
8039 (init_linespec_result): Declare.
8041 2011-03-23 Pedro Alves <pedro@codesourcery.com>
8043 * regcache.c (regcache_raw_read): If the target didn't supply a
8044 given raw register, mark it as unavailable.
8046 2011-03-23 Kai Tietz <ktietz@redhat.com>
8048 * breakpoint.c (clear_command): Use filename_cmp
8049 instead of strcmp for comparison.
8050 * buildsym.c (watch_main_source_file_lossage): Likewise.
8051 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8052 checking just for slash.
8053 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8054 strrchr and filename_cmp instead of strcmp for filenames.
8055 (add_old_header_file): Use filename_cmp
8056 instead of strcmp for comparison.
8057 * exec.c (exec_set_section_address): Likewise.
8058 * macrotab.c (macro_lookup_inclusion): Likewise.
8059 (macro_lookup_inclusion): Likewise.
8060 * elfread.c (_initialize_elfread): Likewise.
8061 (elfstab_offset_sections): Likewise.
8062 (elfstab_offset_sections): Use lbasename instead of
8064 * mdebugread.c (parse_partial_symbols): Likewise.
8065 (arse_partial_symbols): Use filename_(n)cmp instead of
8066 str(n)cmp for comparison.
8067 * minsyms.c (lookup_minimal_symbol): Likewise.
8068 * psymtab.c (read_psymtabs_with_filename): Likewise.
8069 * solib.c (solib_read_symbols): Likewise.
8070 (reload_shared_libraries_1): Likewise.
8071 * symmisc.c (maintenance_print_symbols): Likewise.
8072 * symfile.c (separate_debug_file_exists): Likewise.
8073 (reread_symbols): Likewise.
8074 (find_separate_debug_file_by_debuglink): Likewise.
8075 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8076 * source.c (add_path): Likewise.
8077 * symtab.c (filename_seen): Likewise.
8078 (file_matches): Likewise.
8079 (print_symbol_info): Likewise.
8080 (maybe_add_partial_symtab_filename): Likewise.
8081 (make_source_files_completion_list): Likewise.
8082 * xml-syscall.c (init_sysinfo): Likewise.
8083 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8084 IS_DIR_SEPARATOR for checking for trailing path separator.
8086 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8088 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8089 label abort_expression.
8090 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8091 DWARF_VALUE_OPTIMIZED_OUT.
8093 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8096 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8097 to linkage_name. Invert its value. Update the function comment.
8098 (c_type_print_varspec_suffix): Invert it at the caller.
8099 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8101 2011-03-22 Pedro Alves <pedro@codesourcery.com>
8103 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8104 errors when reading the `stop_pc'.
8105 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8108 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8110 * NEWS: Document gdb.Write stream keyword.
8112 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8115 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8116 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8117 (dwarf2_add_field): Fix new_field->accessibility for
8118 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8120 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8124 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8125 other error classes. Do not print stack trace.
8127 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8129 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8130 (dwarf2_add_field): Fix new_field->accessibility for
8131 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8133 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8135 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8136 encountering a load via a non-SP register.
8138 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8140 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8141 field in returned unwinder.
8143 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8145 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8147 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8149 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8152 2012-03-18 Pedro Alves <pedro@codesourcery.com>
8154 * frame.c (frame_unwind_register): Throw an error if unwinding the
8156 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8157 an unwind stop reason.
8158 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8159 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8160 UNWIND_UNAVAILABLE>: New.
8161 * inline-frame.c (inline_frame_unwind): Install
8162 default_frame_unwind_stop_reason.
8163 * frame-unwind.c: Include "exceptions.h".
8164 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8165 (default_frame_unwind_stop_reason): New.
8166 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8167 (default_frame_unwind_stop_reason): Declare.
8168 (struct frame_unwind) <stop_reason>: New function pointer.
8170 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8171 * dwarf2-frame.c: Include exceptions.h.
8172 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8173 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8174 computing the CFA. If such an error was thrown, set
8175 unavailable_retaddr.
8176 (dwarf2_frame_unwind_stop_reason): New.
8177 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8179 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8180 (dwarf2_signal_frame_unwind): Ditto.
8182 * amd64-tdep.c: Include "exceptions.h".
8183 (struct amd64_frame_cache): New field "base_p".
8184 (amd64_init_frame_cache): Clear it.
8185 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8186 Avoid reading registers with functions that throw if the register
8187 is not necessary to compute the frame base.
8188 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8189 swallowing NOT_AVAILABLE_ERROR.
8190 (amd64_frame_unwind_stop_reason): New.
8191 (amd64_frame_this_id): Don't build a frame id if the frame base
8193 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8194 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8195 base_p if the frame base was computable.
8196 (amd64_sigtramp_frame_unwind_stop_reason): New.
8197 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8198 frame base was unavailable.
8199 (amd64_sigtramp_frame_unwind): Install
8200 amd64_sigtramp_frame_unwind_stop_reason.
8201 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8202 base_p if the frame base was computable.
8203 (amd64_epilogue_frame_unwind_stop_reason): New.
8204 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8205 frame base was unavailable.
8206 (amd64_epilogue_frame_unwind): Install
8207 amd64_epilogue_frame_unwind_stop_reason.
8208 * i386-tdep.c: Include "exceptions.h".
8209 (struct i386_frame_cache): New field "base_p".
8210 (i386_init_frame_cache): Clear it.
8211 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8212 Avoid reading registers with functions that throw if the register
8213 is not necessary to compute the frame base.
8214 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8215 swallowing NOT_AVAILABLE_ERROR.
8216 (i386_frame_unwind_stop_reason): New.
8217 (i386_frame_this_id): Don't build a frame id if the frame base was
8219 (i386_frame_prev_register): Handle unavailable SP.
8220 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8221 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8222 base_p if the frame base was computable.
8223 (i386_epilogue_frame_unwind_stop_reason): New.
8224 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8225 base was unavailable.
8226 (i386_epilogue_frame_unwind): Install
8227 i386_epilogue_frame_unwind_stop_reason.
8228 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8229 base_p if the frame base was computable.
8230 (i386_sigtramp_frame_unwind_stop_reason): New.
8231 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8232 base was unavailable.
8233 (i386_sigtramp_frame_unwind): Install
8234 i386_sigtramp_frame_unwind_stop_reason.
8235 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8236 type's size, not the register's.
8237 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8239 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8240 default_frame_unwind_stop_reason.
8241 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8242 (alpha_heuristic_frame_unwind): Ditto.
8243 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8244 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8245 * avr-tdep.c (avr_frame_unwind): Ditto.
8246 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8248 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8249 * frv-tdep.c (frv_frame_unwind): Ditto.
8250 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8251 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8252 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8253 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8254 (hppa_stub_frame_unwind): Ditto.
8255 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8256 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8257 (ia64_libunwind_frame_unwind)
8258 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8259 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8260 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8261 * m32c-tdep.c (m32c_unwind): Ditto.
8262 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8263 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8264 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8265 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8266 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8267 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8268 * mep-tdep.c (mep_frame_unwind): Ditto.
8269 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8270 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8271 (mips_stub_frame_unwind): Ditto.
8272 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8273 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8274 * mt-tdep.c (mt_frame_unwind): Ditto.
8275 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8276 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8277 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8278 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8279 (s390_sigtramp_frame_unwind): Ditto.
8280 * score-tdep.c (score_prologue_unwind): Ditto.
8281 * sh-tdep.c (sh_frame_unwind): Ditto.
8282 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8283 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8284 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8285 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8286 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8287 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8288 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8289 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8290 (sparc64obsd_trapframe_unwind): Ditto.
8291 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8292 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8293 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8294 * v850-tdep.c (v850_frame_unwind): Ditto.
8295 * vax-tdep.c (vax_frame_unwind): Ditto.
8296 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8297 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8298 * xtensa-tdep.c (xtensa_unwind): Ditto.
8300 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8302 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8303 there's always a frame. Use get_frame_pc_if_available instead of
8304 get_frame_pc, and if there's no PC available, don't look up a
8307 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8309 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8312 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8314 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8317 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8319 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8320 * frame.c (frame_unwind_caller_pc_if_available): New.
8321 * stack.c (frame_info): Handle unavailable PC.
8323 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8325 * frame.c (frame_unwind_pc): Rename to ...
8326 (frame_unwind_pc_if_available): ... this. New `pc' output
8327 parameter. Change return type to int. Gracefully handle
8328 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8329 happened, or 1 otherwise.
8330 (frame_unwind_pc): Reimplement on top of
8331 frame_unwind_pc_if_available.
8332 (get_frame_func): Rename to ...
8333 (get_frame_func_if_available): New `pc' output parameter. Change
8334 return type to int. Gracefully handle the PC not being available.
8335 (get_frame_func): Reimplement on top of
8336 get_frame_func_if_available.
8337 (select_frame): Handle the PC being unavailable.
8338 (get_prev_frame): Handle the PC being unavailable.
8339 (get_frame_pc_if_available): New.
8340 (get_frame_address_in_block_if_available): New.
8341 (find_frame_sal): Handle the frame PC not being available.
8342 * frame.h (get_frame_pc_if_available): Declare.
8343 (get_frame_address_in_block_if_available): Declare.
8344 (get_frame_func_if_available): Declare.
8345 * stack.c (print_frame_info): Handle the PC being unavailable.
8346 (find_frame_funname): Ditto.
8347 (print_frame): Handle the PC being unavailable.
8348 (get_frame_language): Ditto.
8349 * blockframe.c (get_frame_block): Ditto.
8350 * macroscope.c (default_macro_scope): Ditto.
8351 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8353 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8355 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8356 NOT_AVAILABLE_ERROR when evaluating the location expression.
8358 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8360 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8361 returning that the register piece is unavailable/optimized out.
8362 (write_pieced_value): Handle get_frame_register_bytes returning
8363 that the register piece is unavailable/optimized out when doing a
8364 read-modify write of a bitfield.
8365 * findvar.c (value_from_register): Handle get_frame_register_bytes
8366 returning that the register piece is unavailable/optimized out.
8367 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8368 and `unavailablep'. Throw error on bad debug info. Use
8369 frame_register instead of frame_register_read, to fill in the new
8371 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8373 * valops.c: (value_assign): Adjust, and handle
8374 get_frame_register_bytes failing.
8375 * spu-tdep.c: Include exceptions.h.
8376 (spu_software_single_step): Adjust, and handle
8377 get_frame_register_bytes failing.
8378 (spu_get_longjmp_target): Ditto.
8379 * gdbarch.sh (register_to_value): Change to return int. New
8380 parameters `optimizedp' and `unavailablep'.
8381 * gdbarch.h, gdbarch.c: Regenerate.
8382 * i386-tdep.c (i386_register_to_value): Adjust to new
8383 gdbarch_register_to_value interface.
8384 * i387-tdep.c (i387_register_to_value): Ditto.
8385 * i387-tdep.h (i387_register_to_value): Ditto.
8386 * alpha-tdep.c (alpha_register_to_value): Ditto.
8387 * ia64-tdep.c (ia64_register_to_value): Ditto.
8388 * m68k-tdep.c (m68k_register_to_value): Ditto.
8389 * mips-tdep.c (mips_register_to_value): Ditto.
8390 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8392 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8394 * findvar.c (value_of_register): Mark the value as unavailable, if
8395 the register is unavailable.
8396 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8397 (frame_register): New `unavailablep' parameter.
8398 (frame_register_read): Update comment.
8399 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8400 Set it if the register is unavailable. If the register is
8401 unavailable, clear the output buffer.
8402 (frame_register): New `unavailablep' parameter. Pass it down.
8403 (frame_unwind_register): Adjust.
8404 (put_frame_register): Adjust.
8405 (frame_register_read): Adjust. Also return false if the register
8407 (frame_register_unwind_location): Adjust.
8408 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8409 is unavailable, mark the value accordingly.
8410 * stack.c (frame_info): Handle unavailable registers.
8412 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8414 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8415 simplify, using regcache_cooked_read.
8417 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8419 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8420 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8421 (regcache_raw_read_unsigned, regcache_raw_read_part)
8422 (regcache_cooked_read, regcache_cooked_read_signed)
8423 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8424 (regcache_cooked_read_ftype): Change return to enum
8426 * regcache.c: Include exceptions.h
8427 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8428 (do_cooked_read): Change return to enum register_status. Always
8429 forward to regcache_cooked_read.
8430 (regcache_raw_read): Change return to enum register_status. If
8431 the register is not REG_VALID, memset the buffer. Return the
8433 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8434 return the register's status.
8435 (regcache_raw_read_unsigned): Ditto.
8436 (regcache_cooked_read): Change return to enum register_status.
8437 Assert that with read-only regcaches, the register's status must
8438 be known. If the regcache is read-only, and the register is not
8439 REG_VALID, memset the buffer. Return the register's status.
8440 (regcache_cooked_read_signed): Change return to enum
8441 register_status. Handle non-REG_VALID registers and return the
8443 (regcache_cooked_read_unsigned): Change return to enum
8444 register_status. Handle non-REG_VALID registers and return the
8446 (regcache_xfer_part, regcache_raw_read_part)
8447 (regcache_cooked_read_part): Change return to enum
8448 register_status. Return the register's status.
8449 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8451 (regcache_dump): Handle unavailable cooked registers.
8452 * frame.c (do_frame_register_read): Adjust interface to match
8453 regcache_cooked_read_ftype.
8454 * gdbarch.sh (pseudo_register_read): Change return to enum
8456 * gdbarch.h, gdbarch.c: Regenerate.
8458 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8460 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8461 register_status. If reading a raw register indicates the raw
8462 register is not valid, return the raw register's status,
8463 otherwise, return REG_VALID.
8464 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8465 register_status. Handle non-REG_VALID raw registers and return
8466 the register's status.
8467 * arm-tdep.c (arm_neon_quad_read)
8468 (arm_pseudo_read): Change return to enum register_status. Handle
8469 non-REG_VALID raw registers and return the register's status.
8470 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8471 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8472 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8473 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8474 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8476 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8477 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8478 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8479 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8480 (m32c_pseudo_register_read): Change return to enum
8481 register_status. Adjust.
8482 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8483 enum register_status. Return the register's status.
8484 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8485 register_status. Return the register's status.
8486 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8487 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8488 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8489 * rs6000-tdep.c (move_ev_register_func): New typedef.
8490 (e500_move_ev_register): Use it. Change return to enum
8491 register_status. Return the register's status.
8492 (do_regcache_raw_read): New function.
8493 (do_regcache_raw_write): New function.
8494 (e500_pseudo_register_read): Change return to enum
8495 register_status. Return the register's status. Use
8496 do_regcache_raw_read.
8497 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8498 (dfp_pseudo_register_read): Change return to enum register_status.
8499 Return the register's status.
8500 (vsx_pseudo_register_read): Ditto.
8501 (efpr_pseudo_register_read): Ditto.
8502 (rs6000_pseudo_register_read): Ditto.
8503 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8504 register_status. Return the register's status.
8505 * sh64-tdep.c (pseudo_register_read_portions): New function.
8506 (sh64_pseudo_register_read): Change return to enum
8507 register_status. Use pseudo_register_read_portions. Return the
8509 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8510 register_status. Return the register's status.
8511 * sh-tdep.c (pseudo_register_read_portions): New function.
8512 (sh_pseudo_register_read): Change return to enum register_status.
8513 Use pseudo_register_read_portions. Return the register's status.
8514 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8515 enum register_status. Return the register's status.
8516 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8517 * spu-tdep.c (spu_pseudo_register_read_spu)
8518 (spu_pseudo_register_read): Ditto.
8519 * xtensa-tdep.c (xtensa_register_read_masked)
8520 (xtensa_pseudo_register_read): Ditto.
8521 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8523 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8525 * python/py-value.c (valpy_getitem): Fix formatting of error function
8528 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8530 ARI fixes: Add missing internationalization markups throughout
8532 * darwin-nat-info.c: Ditto.
8535 * mi/mi-main.c: Ditto.
8537 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8539 ARI fixes: Add missing internationalization markups throughout
8542 * cp-name-parser.y: Ditto.
8545 * objc-exp.y: Ditto.
8548 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8550 ARI fixes: Messages should have no trailing new lines.
8551 * darwin-nat.c (mach_check_error): Remove trailing new line from
8552 warning function call message.
8553 * record.c (bfdcore_read): Idem for error call.
8555 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8557 * common/signals.c (target_signal_from_host): Add _ markup to error
8558 function call message.
8559 (target_signal_to_host): Add _ markup and remove trailing new line
8560 from warning call message.
8561 (target_signal_from_command): Add _ markup to error function call
8564 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8568 * python/python.c (gdbpy_write): Accept a stream argument and
8569 operate to the appropriate stream.
8570 (gdbpy_flush): Likewise.
8571 (_initialize_python): Add stream constants.
8572 (finish_python_initialization): Add GdbOutputErrorFile class.
8574 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8576 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8578 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8580 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8581 to store_signed_integer. Add debug message when relocating CALL
8582 instructions. Fix formatting of debug message.
8583 * i386-tdep.c (i386_relocate_instruction): Ditto.
8585 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8587 * target.h (struct target_ops): Remove to_lookup_symbol field.
8588 (target_lookup_symbol): Delete macro.
8589 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8590 (update_current_target, setup_target_debug): Remove handling
8591 of to_lookup_symbol target_ops field.
8592 * ada-tasks.c (get_known_tasks_addr): Remove use of
8593 target_lookup_symbol.
8594 * coffread.c (coff_symtab_read): Likewise.
8595 * dbxread.c (read_dbx_symtab): Ditto.
8597 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8600 * configure.ac: Add getthrds declaration check.
8601 * configure, config.in: Regenerate.
8602 * aix-thread.c (getthrds): Declare only if not already declared
8603 in procinfo.h. More declaration out of get_signaled_thread to
8606 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8608 * python/py-symtab.c: Populate symtab_object_methods,
8610 (stpy_is_valid): New function.
8611 (salpy_is_valid): Ditto.
8612 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8613 (sympy_is_valid): New function.
8614 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8615 (objfpy_is_valid): New function.
8616 * python/py-inferior.c: Populate inferior_object_methods.
8617 (infpy_is_valid): New function.
8618 * python/py-infthread.c: Populate thread_object_methods.
8619 (thpy_is_valid): New function.
8620 * python/py-block.c: Declare block_object_methods. Populate. Declare
8621 block_iterator_object_methods. Populate.
8622 (blpy_is_valid): New function.
8623 (blpy_iter_is_valid): Ditto.
8625 2011-03-16 Keith Seitz <keiths@redhat.com>
8627 * linespec.c (find_methods): Canonicalize NAME before looking
8629 (name_end): New function.
8630 (keep_name_info): New function.
8631 (decode_line_1): Use keep_name_info.
8632 (decode_compound): Likewise.
8633 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8634 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8637 * linespec.c (locate_first_half): Keep overload information, too.
8638 (decode_compound): Use a string to represent break characters
8640 If P points to a break character, do not increment it.
8641 For C++ and Java, keep overload information and relevant keywords.
8642 If we cannot find a symbol, search the minimal symbols.
8645 * linespec.c (decode_compound): Rename SAVED_ARG to
8647 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8649 Pass a valid block to lookup_symbol.
8650 (lookup_prefix_sym): Likewise.
8651 (find_method): Construct search name based on SYM_CLASS instead
8653 * psymtab.c (lookup_partial_symbol): Add language parameter.
8654 (lookup_symbol_aux_psymtabs): Likewise.
8655 Don't assume that the psymtab we found was the right one. Search
8656 for the desired symbol in the symtab to be certain.
8657 (psymtab_search_name): New function.
8658 (lookup_partial_symbol): Use psymtab_search_name.
8659 Add language parameter.
8660 (read_symtabs_for_function): Add language parameter and pass to
8661 lookup_partial_symbol.
8662 (find_symbol_file_from_partial): Likewise.
8664 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8667 * dwarf2read.c (noop_record_line): New function.
8668 (dwarf_decode_lines): Ignore line tables for GCd functions.
8670 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8672 Fix ARI warnings about new lines at the end of messages, which
8673 are unneeded as there is a new line added at the end of the message
8675 * darwin-nat.c (darwin_stop_inferior): Ditto.
8676 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8677 * dfp.c (decimal_to_number): Ditto.
8678 * exec.c (print_section_info): Ditto.
8679 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8680 * osdata.c (get_osdata): Ditto.
8681 * record.c (bfdcore_write): Ditto.
8682 * remote-mips.c (mips_readchar): Ditto.
8683 * remote.c (read_ptid): Ditto.
8684 * ser-mingw.c (ser_windows_raw): Ditto.
8685 * tracepoint.c (add_local_symbols): Ditto.
8686 * windows-nat.c (fake_create_process): Ditto.
8688 2011-03-16 Tom Tromey <tromey@redhat.com>
8690 * tracepoint.c (stop_tracing): Don't declare.
8691 * event-top.c (after_char_processing_hook): Add `(void)'.
8693 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8695 * NEWS: Add Parameter sub-classing description.
8697 2011-03-16 Kai Tietz <ktietz@redhat.com>
8699 * MAINTAINERS: Update my e-mail address.
8701 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8703 * MAINTAINERS: Add myself for write after approval privileges.
8705 2011-03-15 Michael Snyder <msnyder@vmware.com>
8707 * frame.c (find_frame_sal): Assert sym is not null.
8709 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8711 * objc-lang.c (selectors_info): Check strchr for null result.
8713 * stabsread.c (define_symbol): Guard against bad stabstring input.
8715 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8717 Remove trailing spaces and tabulations from pascal language
8722 p-valprint.c: Ditto.
8724 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8726 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8727 than LOW. Comment it.
8728 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8729 HIGHPC not strictly higher than LOWPC.
8731 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8733 Fix formatting of function declarations returning a pointer in
8735 * varobj.c (varobj_add_child): Ditto.
8736 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8737 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8739 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8741 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8742 for the "generic" vector ABI used with GCC 4.3 and later.
8743 (ppc64_sysv_abi_return_value): Likewise.
8745 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8747 * infcall.c (call_function_by_hand): Function return value is
8748 always a non_lval, even when using struct_return.
8750 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8752 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8753 (map_display_numbers): New.
8754 (do_delete_display): New.
8755 (undisplay_command): Use map_display_numbers.
8756 (do_enable_disable_display): New.
8757 (enable_disable_display_command): New function.
8758 (enable_display): Delete.
8759 (enable_display_command): New.
8760 (disable_display_command): Reimplement.
8761 (_initialize_printcmd): Adjust "enable display" command to use
8762 `enable_display_command' as callback.
8764 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8766 * NEWS: Add Python breakpoint 'stop' operation.
8768 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8770 * NEWS: Delete duplicate entry. Fix typo.
8772 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8774 Fix ARI warning about function names in first column.
8775 Put prototype declaration on same line as return type.
8776 * objc-exp.y: Ditto.
8778 * python/py-stopevent.h: Ditto.
8779 For long function names, split parameters to
8780 allow function name on same line as return type.
8781 * solib-pa64.c: Ditto.
8784 For long function declaration, use single line.
8785 * hppa-tdep.h: Ditto.
8786 * inferior.h: Ditto.
8788 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8790 * python/python.h: Declare gdbpy_should_stop and
8791 gdbpy_breakpoint_has_py_cond.
8792 * python/python.c: Add python.h to includes. Remove python.h from
8793 HAVE_PYTHON definition
8794 (gdbpy_should_stop): New dummy function.
8795 (gdbpy_breakpoint_has_py_cond): New dummy function.
8796 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8797 sub-classing capabilities.
8798 (gdbpy_should_stop): New function.
8799 (gdbpy_breakpoint_has_py_cond): New function.
8800 (local_setattro): New function.
8801 * breakpoint.c (condition_command): Add check for Python 'stop'
8803 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8804 operation function as part of stop/continue tests.
8806 2011-03-14 Tom Tromey <tromey@redhat.com>
8809 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8810 (needs_frame_dwarf_call): Likewise.
8812 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8814 Fix ARI warning about functions without parameters that do not
8816 * breakpoint.c (all_tracepoints): Replace () by (void).
8817 * f-exp.y (match_string_literal): Ditto.
8819 * m2-exp.y (yylex): Ditto.
8820 * mep-tdep.c (current_me_module): Ditto.
8821 (current_options): Ditto.
8822 (current_cop_data_bus_width): Ditto.
8823 (current_cr_names): Ditto.
8824 (current_cr_is_float): Ditto.
8825 (current_ccr_names): Ditto.
8826 * objc-exp.y (yylex): Ditto.
8827 * p-exp.y (yylex): Ditto.
8828 * remote.c (send_interrupt_sequence): Ditto.
8829 * tracepoint.c (current_trace_status): Ditto.
8830 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8831 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8833 2011-03-11 Michael Snyder <msnyder@vmware.com>
8835 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8836 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8837 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8838 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8839 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8841 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8842 (delete_async_event_handler): Ditto.
8844 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8846 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8848 * top.c (set_verbose): Assert showcmd was found.
8850 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8852 * xtensa-tdep.c (warning_once): Correct style issues.
8854 2011-03-11 Yao Qi <yao@codesourcery.com>
8856 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8858 2011-03-11 Andreas Schwab <schwab@redhat.com>
8860 * common/aclocal.m4: Remove.
8862 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8864 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8865 (xtensa_write_register, xtensa_read_register): Likewise.
8866 (xtensa_hextochar): Removed.
8867 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8869 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8871 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8872 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8873 (xtensa_alloc_frame_cache): Add initialization for new fields.
8874 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8875 (warning_once): New function.
8876 (xtensa_insn_kind): New item c0opc_and.
8877 (call0_classify_opcode): Add the case for AND instruction.
8878 (call0_track_op): Change arguments. New local variable litbase.
8879 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8880 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8882 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8883 (call0_analyze_prologue): Update the comments. Change arguments.
8884 Add the variety of updates to handle extended prologues, which now can
8885 conduct dynamic stack adjustments.
8886 (call0_frame_cache): Likewise.
8887 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8888 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8890 2011-03-10 Michael Snyder <msnyder@vmware.com>
8892 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8893 (cmd_qtframe): Ditto.
8894 (cmd_qtbuffer): Ditto.
8895 (cmd_bigqtbuffer): Ditto.
8897 2011-03-10 Tom Tromey <tromey@redhat.com>
8899 * tracepoint.c (trace_actions_command): Update.
8900 * thread.c (thread_apply_command): Update.
8901 * reverse.c (delete_bookmark_command): Update.
8902 (bookmarks_info): Update.
8903 * printcmd.c (undisplay_command): Update.
8904 * memattr.c (mem_enable_command): Update.
8905 (mem_disable_command): Update.
8906 (mem_delete_command): Update.
8907 * inferior.c (detach_inferior_command): Update.
8908 (kill_inferior_command): Update.
8909 (remove_inferior_command): Update.
8910 * cli/cli-utils.h (struct get_number_or_range_state): New.
8911 (init_number_or_range): Declare.
8912 (get_number_or_range): Update.
8913 * cli/cli-utils.c (init_number_or_range): New function.
8914 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8916 (number_is_in_list): Update.
8917 * breakpoint.h (get_tracepoint_by_number): Update.
8918 * breakpoint.c (map_breakpoint_numbers): Update for change to
8919 get_number_or_range.
8920 (find_location_by_number): Use get_number, not
8921 get_number_or_range.
8922 (trace_pass_set_count): New function.
8923 (trace_pass_command): Update for change to get_number_or_range.
8925 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8928 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8930 * python/py-param.c (add_setshow_generic): Add set/show callback
8931 parameters. Register Python object context.
8932 (get_show_value): New function.
8933 (get_set_value): New function.
8934 (call_doc_function): New function.
8935 (get_doc_string): Move behind get_show_value/get_set_value.
8937 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8939 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8941 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8943 * xtensa-tdep.c (xtensa_read_register): Add comment.
8944 (xtensa_write_register): Likewise.
8945 (xtensa_hextochar): Add comment and update to match coding conventions.
8946 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8947 (execute_l32e, execute_s32e, execute_code): Update comments.
8948 (xtensa_exception_handler_t): Update to match coding conventions.
8949 (xtensa_insn_kind): Likewise.
8951 2011-03-09 Michael Snyder <msnyder@vmware.com>
8953 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8955 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8957 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8959 2011-03-09 Tom Tromey <tromey@redhat.com>
8961 * thread.c (restore_selected_frame): Handle frame_level == -1.
8962 (make_cleanup_restore_current_thread): Use
8963 get_selected_frame_if_set.
8964 * frame.h (get_selected_frame_if_set): Declare.
8965 * frame.c (get_selected_frame_if_set): New function.
8967 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8969 * cli/cli-cmds.c (shell_escape): Use lbasename.
8970 * coffread.c (coff_start_symtab): Constify parameter.
8971 (complete_symtab): Constify `name' parameter.
8972 (coff_symtab_read): Constify `filestring' local.
8973 (coff_getfilename): Constify return and `result' local.
8975 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8976 * linux-fork.c (info_checkpoints_command): Use lbasename.
8977 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8978 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8979 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8980 * procfs.c (procfs_make_note_section): Use lbasename.
8981 * tui/tui-io.c (printable_part): Constity return and parameter.
8983 (print_filename): Constify parameters, and local `s'.
8984 (tui_rl_display_match_list): Constify local `temp'.
8986 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8989 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8990 Fix DWARF-3+ DW_AT_accessibility default assumption.
8991 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8992 cu->header.version >= 3.
8994 2011-03-09 Yao Qi <yao@codesourcery.com>
8996 * common/Makefile.in: Remove.
8997 * common/configure: Remove.
8998 * common/configure.ac: Remove.
9000 2011-03-09 Yao Qi <yao@codesourcery.com>
9003 2011-02-11 Yao Qi <yao@codesourcery.com>
9005 * common/Makefile.in: Add copyright header.
9007 2011-02-11 Yao Qi <yao@codesourcery.com>
9009 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9011 * configure.ac: Add common to sub dir.
9012 * configure: Regenerate.
9014 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9016 * xtensa-tdep.c (call0_ret): New function.
9017 (xtensa_skip_prologue): Speed up analysis.
9019 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9021 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9022 while executing MI command -data-list-changed-registers.
9024 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9026 * xtensa-tdep.c (xtensa_read_register): New function.
9027 (xtensa_write_register): New function.
9028 (xtensa_find_register_by_name): New function.
9029 (xtensa_windowed_frame_cache): Update comments in type description.
9030 (xtensa_frame_cache): Likewise.
9031 (xtensa_window_interrupt_insn): New function.
9032 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9033 (xtensa_insn_kind): Add new instructions.
9034 (rwx_special_register): New function.
9035 (call0_classify_opcode): Add new instructions to the analysis.
9036 (a0_saved, a7_saved, a11_saved): New variables.
9037 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9038 (execute_l32e): New function.
9039 (execute_s32e): New function.
9040 (xtensa_exception_handler_t): New type.
9041 (execute_code): New function.
9042 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9043 analysis for Xtensa Window Exception handlers.
9045 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9047 * xtensa-tdep.c (TX_PS): New.
9048 (windowing_enabled): Update to count for Call0 ABI.
9049 (xtensa_hextochar): New.
9050 (xtensa_init_reggroups): Make algorithm generic.
9051 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9053 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9055 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
9057 2011-03-08 Michael Snyder <msnyder@vmware.com>
9059 * i386-tdep.c (i386_follow_jump): Check return value of
9061 (i386_analyze_struct_return): Ditto.
9062 (i386_skip_probe): Ditto.
9063 (i386_match_insn): Ditto.
9064 (i386_skip_noop): Ditto.
9065 (i386_analyze_frame_setup): Ditto.
9066 (i386_analyze_register_saves): Ditto.
9067 (i386_skip_prologue): Ditto.
9068 (i386_skip_main_prologue): Ditto.
9070 * target.c (read_whatever_is_readable): Fix memory leak.
9072 * i386-tdep.c (i386_process_record): Document fall through.
9074 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9076 Fix DWARF-3+ DW_AT_accessibility default assumption.
9077 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9078 cu->header.version >= 3.
9080 2011-03-08 Pedro Alves <pedro@codesourcery.com>
9082 * remote.c (remote_check_symbols): Skip if the target has no
9085 2011-03-08 Joel Brobecker <brobecker@adacore.com>
9087 * target.c (read_whatever_is_readable): Reformat comment,
9088 with a minor typo fix. Minor reformatting of the code.
9090 2011-03-08 Yao Qi <yao@codesourcery.com>
9092 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9093 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9094 Use cached result instead of calling displaced_in_arm_mode again.
9095 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9096 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9097 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9098 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9099 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9100 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9101 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9102 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9103 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9104 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9105 (arm_catch_kernel_helper_return): Likewise.
9106 * gdb/arm-tdep.h : Update function declarations.
9108 2011-03-07 Michael Snyder <msnyder@vmware.com>
9110 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9112 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9114 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9116 * elfread.c (elf_symtab_read): Stop memory leak.
9118 * main.c (captured_main): Fix memory leak.
9120 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9122 * ada-lang.c (compare_names): Call is_name_suffix with string1
9125 2011-03-07 Tom Tromey <tromey@redhat.com>
9127 * xcoffread.c (xcoff_sym_fns): Update.
9128 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9129 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9130 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9131 (symbol_file_add_with_addrs_or_offsets): Likewise.
9132 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9133 * somread.c (som_sym_fns): Update.
9134 * psymtab.h (require_partial_symbols): Declare.
9135 * psymtab.c (require_partial_symbols): New function.
9136 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9137 (ALL_OBJFILE_PSYMTABS): Undef.
9138 (ALL_PSYMTABS): Move from psympriv.h.
9139 (lookup_partial_symtab, find_pc_sect_psymtab)
9140 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9141 (find_last_source_symtab_from_partial)
9142 (forget_cached_source_info_partial)
9143 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9144 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9145 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9146 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9147 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9148 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9149 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9150 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9151 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9153 * mipsread.c (ecoff_sym_fns): Update.
9154 * machoread.c (macho_sym_fns): Update.
9155 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9156 (read_psyms): New function.
9157 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9158 (elf_sym_fns_lazy_psyms): New global.
9159 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9160 dwarf2_build_psymtabs.
9161 * dbxread.c (aout_sym_fns): Update.
9162 * coffread.c (coff_sym_fns): Update.
9164 2011-03-07 Tom Tromey <tromey@redhat.com>
9166 * infrun.c (print_exited_reason): Include inferior id and pid in
9169 2011-03-07 Tom Tromey <tromey@redhat.com>
9171 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9173 (target_has_execution_1): Update.
9174 (target_has_execution_current): Declare.
9175 (target_has_execution): Call target_has_execution_current.
9176 (default_child_has_execution): Update.
9177 * target.c (default_child_has_execution): Add 'the_ptid'
9179 (target_has_execution_1): Likewise.
9180 (target_has_execution_current): New function.
9181 (add_target): Update.
9182 (init_dummy_target): Update.
9183 * remote-m32r-sdi.c (m32r_has_execution): New function.
9184 (init_m32r_ops): Use it.
9185 * record.c (record_core_has_execution): Now static. Add
9186 'the_ptid' parameter.
9187 * inferior.c (have_live_inferiors): Don't save current thread.
9188 Use target_has_execution_1.
9190 2011-03-07 Yao Qi <yao@codesourcery.com>
9192 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9194 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9196 * elfread.c (elf_symtab_read): Minor reformatting.
9198 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9200 * objc-lang.c (selectors_info): Minor reformatting.
9202 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9204 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9206 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9207 Michael Snyder <msnyder@vmware.com>
9209 * ada-valprint.c (ada_val_print_array): Move the declaration of
9210 "byte_order" and "elttype" inside the block where these variables
9211 are actually used. Remove some special handling for the case
9212 where "elttype" and "eltlen" are null. Replace by a comment
9213 and a couple of assertion checks.
9215 2011-03-05 Michael Snyder <msnyder@vmware.com>
9217 * source.c (add_path): Replace semicolon at end of block.
9218 * dwarf2expr.c (execute_stack_op): Ditto.
9220 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9222 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9223 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9224 (bfin-*-*): Likewise.
9226 2011-03-05 Michael Snyder <msnyder@vmware.com>
9228 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9229 * mdebugread.c (parse_symbol): Ditto.
9230 * parse.c (parse_exp_in_context): Ditto.
9231 * source.c (add_path): Ditto.
9232 * utils.c (gnu_debuglink_crc32): Ditto.
9233 * varobj.c (variable_language): Ditto.
9235 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9237 2011-03-04 Michael Snyder <msnyder@vmware.com>
9239 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9241 * symfile.c (simple_overlay_update): Check for null return value
9242 from lookup_minimal_symbol.
9244 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9246 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9248 * eval.c (parse_and_eval_address_1): Remove function.
9249 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9250 instead of parse_and_eval_address_1.
9251 * value.h (parse_and_eval_address_1): Remove prototype.
9253 2011-03-04 Michael Snyder <msnyder@vmware.com>
9255 * remote.c (putpkt_binary): Document that case stmt falls through.
9257 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9259 * breakpointc (print_it_typical): Move NULL check from here...
9260 (print_bp_stop_message): ... to here.
9262 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9264 * breakpoint.c (enable_command): Use break instead of continue,
9265 and fill in a missing break.
9266 (disable_command): Ditto.
9268 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9270 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9271 (terminal_save_ours): Remove misleading comment.
9272 (inflow_inferior_data_cleanup): Free ttystate.
9273 (inflow_inferior_exit): Likewise.
9274 (copy_terminal_info): Copy ttystate.
9276 * serial.c (serial_copy_tty_state): New function.
9277 * serial.h (serial_copy_tty_state): Add prototype.
9278 (struct serial_ops): Add copy_tty_state callback.
9279 * ser-base.c (ser_base_copy_tty_state): New function.
9280 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9281 * ser-go32.c (dos_copy_tty_state): New function.
9282 (dos_ops): Install copy_tty_state callback.
9283 * ser-mingw.c (_initialize_ser_windows): Likewise.
9284 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9285 * ser-unix.c (hardwire_copy_tty_state): New function.
9286 (_initialize_ser_hardwire): Install it.
9288 2011-03-04 Michael Snyder <msnyder@vmware.com>
9290 * breakpoint.c (create_breakpoint): Add missing break statement.
9292 Reverting this patch:
9293 * infcall.c (call_function_by_hand): Add break statements for lint.
9295 Reverting this patch:
9296 * cli/cli-script.c (script_from_file): Add break for lint.
9298 2011-03-04 Michael Snyder <msnyder@vmware.com>
9300 * solib.c (reload_shared_libraries_1): Close memory leak.
9302 2011-03-03 Tom Tromey <tromey@redhat.com>
9305 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9308 2011-03-03 Michael Snyder <msnyder@vmware.com>
9310 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9311 fields of struct 'st' to zero.
9313 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9314 sal.pspace before calling set_current_source_symtab_and_line.
9316 2011-03-03 Yao Qi <yao@codesourcery.com>
9318 * Makefile.in (configure-common): Remove. Let Makefile
9319 in dir common to rebuild itself.
9320 (common/Makefile): Likewise.
9322 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9324 * utils.c (parse_escape): Add i18n markup in error message.
9326 2011-03-03 Yao Qi <yao@codesourcery.com>
9328 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9330 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9331 (displaced_write_reg, displaced_read_reg): Likewise.
9332 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9333 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9334 (cleanup_branch): Replace magic number 14 and 15 with
9335 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9337 2011-03-02 Michael Snyder <msnyder@vmware.com>
9339 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9341 * cli/cli-script.c (script_from_file): Add break for lint.
9343 * mdebugread.c (parse_partial_symbols): Fix indent.
9345 * target-descriptions.c (tdesc_gdb_type): No need to call
9346 xstrdup, callee saves a copy.
9348 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9350 * infcall.c (call_function_by_hand): Add break statements for lint.
9352 * utils.c (parse_escape): Escape the escape char.
9354 * python/py-inferior.c (build_inferior_list): Error out if
9355 PyList_Append fails.
9356 (gdbpy_inferiors): Error out if build_inferior_list fails.
9358 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9361 * record.c (record_restore): Move printf to before error return.
9363 2011-03-02 Yao Qi <yao@codesourcery.com>
9365 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9366 is_thumb and insn_size.
9367 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9368 on both ARM and Thumb mode.
9369 (arm_process_displaced_insn): Set is_thumb and insn_size.
9370 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9371 (arm_displaced_step_fixup): Likewise.
9373 2011-03-01 Michael Snyder <msnyder@vmware.com>
9375 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9377 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9379 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9381 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9383 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9386 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9387 which shadows function parameter.
9389 * tracepoint.c (create_tsv_from_upload): Superfluous call
9390 to xstrdup. Callee already calls xstrdup.
9392 * linespec.c (decode_line_1): Remove unnecessary null check.
9394 * tracepoint.c (scope_info): Fix mem leak, remove underused
9397 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9398 superfluous null check.
9400 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9401 (value_of_builtin_frame_fp_reg): Ditto.
9403 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9405 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9408 * linespec.c (decode_line_1): Check for null before dereference.
9410 * reverse.c (record_restore): Move null-check to before pointer
9413 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9415 * objc-lang.c (selectors_info): Add explanitory comment.
9416 (classes_info): Ditto.
9418 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9420 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9421 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9422 versions of the trampoline. Handle Thumb vs. ARM addresses.
9423 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9424 (arm_linux_init_abi): Install it.
9425 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9426 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9428 2011-02-28 Michael Snyder <msnyder@vmware.com>
9430 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9431 a little bigger, to avoid possibility of an overflow.
9433 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9434 buffers a little bigger, to avoid possibility of an overflow.
9436 * coffread.c (coff_getfilename): Add check to avoid overflow.
9438 * objc-lang.c (selectors_info): Add a small safety margin to
9440 (classes_info): Error out on too long REGEXP.
9442 * infrun.c (handle_inferior_event): Remove unused function call.
9444 * fork-child.c (fork_inferior): Remove ifdef'd code and
9447 * linux-thread-db.c (attach_thread): Discard unused value.
9449 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9451 * remote.c (remote_get_noisy_reply): Discard unused value.
9452 (remote_vcont_resume): Ditto.
9453 (remote_stop_ns): Ditto.
9455 * linespec.c (decode_objc): Delete unused variable.
9457 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9459 * dwarf2read.c (add_partial_symbol): Discard unused values.
9460 (read_base_type): Delete unused variable.
9462 * dbxread.c (read_dbx_symtab): Discard unused value.
9464 * eval.c (evaluate_subexp_standard): Delete unused variable,
9465 and discard unused values.
9467 * infcmd.c (_initialize_infcmd): Discard unused values.
9469 * stabsread.c (rs6000_builtin_type): Missing break statement.
9471 * dbxread.c (process_one_symbol): Discard unused value.
9473 * coffread.c (coff_end_symtab): Delete unused variable.
9475 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9476 (dwarf2_add_typedef): Delete unused variable.
9477 (read_namespace): Ditto.
9478 (dwarf_decode_macros): Ditto.
9480 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9482 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9484 * p-valprint.c (pascal_val_print): Discard unused value.
9486 * utils.c (nquery): Call va_end before return;
9490 * proc-service.c (ps_plog): Call va_end before return.
9492 2011-02-28 Tom Tromey <tromey@redhat.com>
9494 * python/python.c (gdbpy_value_cst): New global.
9495 (_initialize_python): Initialize it.
9496 * python/python-internal.h (gdbpy_value_cst): Declare.
9497 * python/py-value.c (convert_value_from_python): Use
9500 2011-02-28 Michael Snyder <msnyder@vmware.com>
9502 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9504 * breakpoint.c (catch_syscall_completer): Free malloced list.
9506 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9508 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9509 (lval_func_check_synthetic_pointer): Ditto.
9510 (lval_func_free_closure): Fix use-after-free.
9512 2011-02-28 Tom Tromey <tromey@redhat.com>
9514 * psymtab.c (expand_partial_symbol_tables): Use
9515 ALL_OBJFILE_PSYMTABS.
9517 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9519 * objc-lang.c (selectors_info): Error on too long REGEXP.
9521 2011-02-28 Michael Snyder <msnyder@vmware.com>
9523 * python/py-param.c (set_parameter_value): Add missing
9526 * linux-record.c (record_linux_system_call): Add missing
9529 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9531 * breakpoint.c (print_one_breakpoint_location): Remove unused
9532 argument PRINT_ADDRESS_BITS. Update callers.
9533 (print_one_breakpoint): Likewise.
9535 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9537 * breakpoint.c (wrap_indent_at_field): New function.
9538 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9539 Allocate ui_stream locally instead of using STB argument.
9540 (print_one_breakpoint_location): Update call.
9541 * ui-out.c (ui_out_query_field): New function.
9542 * ui-out.h (ui_out_query_field): Add prototype.
9544 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9546 From Michael Snyder <msnyder@vmware.com>
9547 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9549 2011-02-27 Michael Snyder <msnyder@vmware.com>
9551 * objc-lang.c (selectors_info): Prevent string overrun.
9553 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9556 * symtab.c (rbreak_command): Move variable 'file_name' to
9559 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9560 param with a local variable of the same name.
9562 2011-02-27 Michael Snyder <msnyder@vmware.com>
9564 * value.c (value_from_history_ref): New function.
9565 * value.h (value_from_history_ref): Export.
9566 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9567 to parse value history references.
9568 * cli/cli-utils.h (get_number_trailer): Update comment.
9570 2011-02-27 Michael Snyder <msnyder@vmware.com>
9572 * inferior.c (detach_inferior_command): Use get_number_or_range.
9573 (kill_inferior_command): Ditto.
9574 (remove_inferior_command): Ditto.
9575 (initialize_inferiors): Make command names plural.
9576 Update help strings.
9578 2011-02-27 Michael Snyder <msnyder@vmware.com>
9580 * darwin-nat-info.c: Fix comment typo.
9581 * dwarf2expr.h: Ditto.
9582 * fbsd-nat.c: Ditto.
9583 * fbsd-nat.h: Ditto.
9584 * frame-unwind.h: Ditto.
9586 * hppa-hpux-tdep.c: Ditto.
9587 * i386-linux-nat.c: Ditto.
9588 * linux-nat.c: Ditto.
9589 * nbsd-nat.c: Ditto.
9590 * nbsd-nat.h: Ditto.
9591 * ppc-linux-tdep.c: Ditto.
9594 * tui/tui-winsource.c: Ditto.
9596 2011-02-26 Michael Snyder <msnyder@vmware.com>
9598 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9600 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9602 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9603 with a local variable of the same name.
9605 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9606 param with a local variable of the same name.
9607 (i387_supply_xsave): Ditto.
9609 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9610 that it does not shadow a function parameter.
9612 * i386-nat.c (i386_length_and_rw_bits): Document that case
9613 statement is meant to fall through.
9615 * expprint.c (dump_subexp_body_standard): Document that case
9616 statement is meant to fall through.
9618 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9619 dead if statement. Condition can't be false.
9621 2011-02-25 Michael Snyder <msnyder@vmware.com>
9623 * arm-tdep.c: Fix typos in comments.
9624 * bsd-uthread.c: Ditto.
9625 * completer.c: Ditto.
9627 * cp-namespace.c: Ditto.
9628 * cp-support.c: Ditto.
9629 * cris-tdep.c: Ditto.
9631 * dwarf2read.c: Ditto.
9633 * gdbtypes.h: Ditto.
9634 * inferior.h: Ditto.
9635 * mdebugread.c: Ditto.
9636 * mips-tdep.c: Ditto.
9637 * ppc-linux-nat.c: Ditto.
9638 * ppc-linux-tdep.c: Ditto.
9639 * printcmd.c: Ditto.
9640 * sol-thread.c: Ditto.
9641 * solib-frv.c: Ditto.
9643 * sparc64-tdep.c: Ditto.
9644 * spu-tdep.c: Ditto.
9645 * stabsread.c: Ditto.
9650 * python/py-block.c: Ditto.
9651 * python/py-symbol.c: Ditto.
9652 * python/py-symtab.c: Ditto.
9653 * python/py-value.c: Ditto.
9654 * tui/tui-win.c: Ditto.
9656 2011-02-25 Michael Snyder <msnyder@vmware.com>
9658 * inferior.c (print_inferior): Accept a string instead of an int
9659 for requested_inferiors, and use get_number_or_range to parse it.
9660 (info_inferiors_command): Pass args string to print_inferior.
9661 (initialize_inferiors): Change help string for info inferiors.
9662 * inferior.h (print_inferior): Export prototype change.
9664 2011-02-25 Tom Tromey <tromey@redhat.com>
9666 * common/ax.def (invalid2): Set to 0x31.
9668 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9670 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9672 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9674 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9676 2011-02-24 Michael Snyder <msnyder@vmware.com>
9678 * Makefile.in (clean): Make clean should remove generated files
9679 observer.h and observer.inc.
9681 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9683 Revert the following patch (not approved yet):
9684 2011-02-21 Hui Zhu <teawater@gmail.com>
9685 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9686 * ax-gdb.c (gen_printf_expr_callback): New function.
9687 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9688 * ax-general.c (ax_memcpy): New function.
9689 (ax_print): Handle "printf".
9691 * ax.h (ax_memcpy): Forward declare.
9692 * common/ax.def (invalid2): Removed.
9693 (printf): New entry.
9694 * printcmd.c (printcmd.h): New include.
9695 (string_printf): New function.
9696 (ui_printf): Removed.
9697 (printf_command): Remove static. Call string_printf.
9698 (eval_command): Call string_printf.
9699 * printcmd.h: New file.
9700 * tracepoint.c (validate_actionline,
9701 encode_actions_1): handle printf_command.
9703 2011-02-23 Tom Tromey <tromey@redhat.com>
9705 * ax-general.c (ax_pick): Add missing newline.
9707 2011-02-23 Michael Snyder <msnyder@vmware.com>
9709 * breakpoint.c (breakpoint_1): Change first argument from an int
9710 to a char pointer, so that the function now accepts a list of
9711 breakpoints rather than just one. Use new function
9712 'number_is_in_list' to implement.
9713 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9714 (watchpoints_info): Ditto.
9715 (tracepoints_info): Ditto.
9716 (maintenance_info_breakpoints): Ditto.
9717 (_initialize_breakpoint): Update help strings to reflect the fact
9718 that these functions can now take more than one argument.
9719 * cli/cli-utils.c (number_is_in_list): New function.
9720 * cli/cli-utils.h (number_is_in_list): Export.
9722 2011-02-23 Michael Snyder <msnyder@vmware.com>
9724 * memattr.c (mem_enable_command): Use get_number_or_range.
9725 (mem_disable_command): Ditto.
9726 (mem_delete_command): Ditto.
9727 (_initialize_mem): Tweak usage message to reflect multiple
9730 2011-02-22 Doug Evans <dje@google.com>
9732 Add gdb.lookup_global_symbol python function.
9734 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9735 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9736 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9738 2011-02-22 Tom Tromey <tromey@redhat.com>
9740 * language.c (language_class_name_from_physname): Rename
9741 'curr_language' argument to 'lang'; use in body.
9743 2011-02-22 Michael Snyder <msnyder@vmware.com>
9745 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9747 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9749 * frame-unwind.h: Fix comment to mention the this frame, not the
9752 2011-02-22 Tom Tromey <tromey@redhat.com>
9754 * symfile.c (auto_solib_limit): Remove.
9755 * symfile.h (auto_solib_limit): Remove.
9757 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9759 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9761 2011-02-21 Michael Snyder <msnyder@vmware.com>
9763 * gdbthread.h (print_thread_info): Change prototype.
9764 * thread.c (print_thread_info): Accept char* instead of int for
9765 requested_threads argument. Use new function number_is_in_list
9766 to determine which threads to list.
9767 (info_threads_command): Pass char* to print_thread_info.
9768 * cli/cli-utils.c (number_is_in_list): New function.
9769 * cli/cli-utils.h (number_is_in_list): Export.
9770 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9772 (print_one_inferior): Ditto.
9773 (mi_cmd_list_thread_groups): Ditto.
9775 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9777 * common/Makefile.in (CFLAGS): New.
9778 (COMPILE): Add $(CFLAGS).
9780 2011-02-21 Tom Tromey <tromey@redhat.com>
9782 * breakpoint.c (catch_syscall_command_1): Fix typo.
9784 2011-02-21 Tom Tromey <tromey@redhat.com>
9786 * reverse.c: Include cli-utils.h.
9787 * printcmd.c: Include cli-utils.h.
9788 (string_printf): Use skip_spaces.
9789 * cli/cli-utils.h: New file.
9790 * cli/cli-utils.c: New file.
9791 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9792 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9793 * breakpoint.h (get_number, get_number_or_range): Move to
9795 * breakpoint.c: Include cli-utils.h.
9796 (get_number_trailer, get_number, get_number_or_range)
9797 (ep_skip_leading_whitespace): Move to cli-utils.c.
9798 (create_breakpoint_sal, find_condition_and_thread)
9799 (decode_static_tracepoint_spec, watch_command_1)
9800 (watch_maybe_just_location, ep_parse_optional_if_clause)
9801 (catch_fork_command_1, catch_exec_command_1)
9802 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9803 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9804 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9805 (HFILES_NO_SRCDIR): Add cli-utils.h.
9806 (cli-utils.o): New target.
9808 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9810 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9811 before calling discard_all_inferiors.
9813 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9815 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9816 (struct builtin_opencl_type): Remove.
9817 (builtin_opencl_type): Change return type to "struct type **".
9818 (lookup_opencl_vector_type): Update caller.
9819 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9820 (build_opencl_types): Install plain array of "struct type *"
9821 instead of "struct builtin_opencl_type".
9823 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9824 Ulrich Weigand <uweigand@de.ibm.com>
9826 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9827 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9828 (struct arm_linux_hwbp_cap): New type.
9829 (arm_linux_get_hwbp_cap): New function.
9830 (arm_linux_get_hw_breakpoint_count): Likewise.
9831 (arm_linux_get_hw_watchpoint_count): Likewise.
9832 (arm_linux_can_use_hw_breakpoint): Likewise.
9833 (arm_hwbp_type): New type.
9834 (arm_hwbp_control_t): Likewise.
9835 (struct arm_linux_hw_breakpoint): Likewise.
9836 (struct arm_linux_thread_points): Likewise.
9837 (arm_threads): New global variable.
9838 (arm_linux_find_breakpoints_by_tid): New function.
9839 (arm_hwbp_control_initialize): Likewise.
9840 (arm_hwbp_control_is_enabled): Likewise.
9841 (arm_hwbp_control_disable): Likewise.
9842 (arm_linux_hw_breakpoint_initialize): Likewise.
9843 (arm_linux_get_hwbp_type): Likewise.
9844 (arm_linux_hw_watchpoint_initialize): Likewise.
9845 (arm_linux_hw_breakpoint_equal): Likewise.
9846 (arm_linux_insert_hw_breakpoint1): Likewise.
9847 (arm_linux_remove_hw_breakpoint1): Likewise.
9848 (arm_linux_insert_hw_breakpoint): Likewise.
9849 (arm_linux_remove_hw_breakpoint): Likewise.
9850 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9851 (arm_linux_insert_watchpoint): Likewise.
9852 (arm_linux_remove_watchpoint): Likewise.
9853 (arm_linux_stopped_data_address): Likewise.
9854 (arm_linux_stopped_by_watchpoint): Likewise.
9855 (arm_linux_watchpoint_addr_within_range): Likewise.
9856 (arm_linux_new_thread): Likewise.
9857 (arm_linux_thread_exit): Likewise.
9858 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9859 related target callbacks. Register arm_linux_new_thread and
9860 arm_linux_thread_exit.
9861 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9862 * arm-tdep.c (arm_pc_is_thumb): Make global.
9863 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9865 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9867 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9868 per-frame locations while within a function epilogue.
9870 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9872 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9873 to GNU coding standards.
9875 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9877 Allow use of mingw native on Windows 95 OS.
9878 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9879 (ser_windows_close): Only call CancelIo if function exists.
9880 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9881 to check for existence of CancelIo function in kernel32 DLL.
9883 2011-02-21 Hui Zhu <teawater@gmail.com>
9885 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9886 * ax-gdb.c (gen_printf_expr_callback): New function.
9887 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9888 * ax-general.c (ax_memcpy): New function.
9889 (ax_print): Handle "printf".
9891 * ax.h (ax_memcpy): Forward declare.
9892 * common/ax.def (invalid2): Removed.
9893 (printf): New entry.
9894 * printcmd.c (printcmd.h): New include.
9895 (string_printf): New function.
9896 (ui_printf): Removed.
9897 (printf_command): Remove static. Call string_printf.
9898 (eval_command): Call string_printf.
9899 * printcmd.h: New file.
9900 * tracepoint.c (validate_actionline,
9901 encode_actions_1): handle printf_command.
9903 2011-02-19 Michael Snyder <msnyder@vmware.com>
9905 * reverse.c (delete_one_bookmark): Argument is now bookmark
9906 id rather than pointer to bookmark struct.
9907 (delete_bookmark_command): Use get_number_or_range.
9908 (goto_bookmark_command): Parse with get_number instead of strtoul.
9909 (bookmark_1): New function. Print info for one bookmark.
9910 (bookmarks_info): Use get_number_or_range and bookmark_1.
9912 2011-02-18 Michael Snyder <msnyder@vmware.com>
9914 * thread.c (info_threads_command): Re-implement using
9915 get_number_or_range.
9916 (thread_apply_command): Ditto.
9918 2011-02-18 Tom Tromey <tromey@redhat.com>
9920 * common/ax.def: New file.
9921 * ax.h (enum agent_op): Use ax.def.
9922 * ax-general.c (aop_map): Use ax.def.
9924 2011-02-18 Tom Tromey <tromey@redhat.com>
9926 * ax-general.c (aop_map): Add pick and rot.
9927 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9928 <DW_OP_rot>: Implement.
9929 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9931 * ax-general.c (ax_pick): New function.
9933 2011-02-18 Tom Tromey <tromey@redhat.com>
9935 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9937 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9938 Tom Tromey <tromey@redhat.com>
9940 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9941 make_symbol_overload_list_block with NULL BLOCK.
9942 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9944 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9946 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9947 * breakpoint.h (get_number_or_range): Declare.
9948 * printcmd.c (ALL_DISPLAYS): Declare.
9949 (delete_display): Reimplement taking a display pointer.
9950 (undisplay_command): Accept a range of displays to delete, using
9951 get_number_or_range.
9953 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9955 * c-valprint.c (c_val_print): Add embedded_offset to address
9956 for arrays of unspecified length.
9957 * p-valprint.c (pascal_val_print): Likewise.
9959 2011-02-18 Yao Qi <yao@codesourcery.com>
9961 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9962 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9963 (thumb_process_displaced_insn): New.
9964 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9965 call to arm_process_displaced_insn.
9966 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9968 2011-02-17 Tom Tromey <tromey@redhat.com>
9970 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9971 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9972 compile_dwarf_to_ax. No longer static. Call
9973 dwarf2_compile_cfa_to_ax.
9974 (locexpr_tracepoint_var_ref): Update.
9975 (loclist_tracepoint_var_ref): Update.
9976 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9977 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9978 argument; add 'gdbarch' and 'pc'.
9979 (dwarf2_compile_cfa_to_ax): New function.
9980 (dwarf2_frame_cache): Update.
9982 2011-02-17 Joel Brobecker <brobecker@adacore.com>
9984 * ada-lang.c (ada_type_of_array): Fix the size of the array
9985 in the case of an unconstrained packed array.
9987 2011-02-17 Yao Qi <yao@codesourcery.com>
9989 * common/Makefile.in: Add more targets for make.
9991 2011-02-16 Tom Tromey <tromey@redhat.com>
9993 * dwarf2loc.c (unimplemented): Fix typo.
9995 2011-02-16 Tom Tromey <tromey@redhat.com>
9997 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9998 (compile_dwarf_to_ax) <default>: Use unimplemented.
9999 <DW_OP_deref>: Update.
10000 (disassemble_dwarf_expression): Update.
10001 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10002 (decode_locdesc): Update.
10003 * dwarf2expr.h (dwarf_stack_op_name): Update.
10005 2011-02-16 Tom Tromey <tromey@redhat.com>
10007 * ax.h (struct aop_map) <name>: Now const.
10009 2011-02-16 Tom Tromey <tromey@redhat.com>
10011 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10014 2011-02-16 Yao Qi <yao@codesourcery.com>
10016 * infrun.c (get_displaced_step_closure_by_addr): New.
10017 * inferior.h: Declare it.
10018 * arm-tdep.c: (arm_pc_is_thumb): Call
10019 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10022 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10023 Jan Kratochvil <jan.kratochvil@redhat.com>
10026 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10028 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10029 Jan Kratochvil <jan.kratochvil@redhat.com>
10031 * value.c (value_contents_copy_raw): Extend describing comment.
10032 Assert that the destination contents we're overwriting are wholly
10034 (value_contents_copy): Extend describing comment.
10036 2011-02-16 Pedro Alves <pedro@codesourcery.com>
10037 Jan Kratochvil <jan.kratochvil@redhat.com>
10039 * value.c (value_available_contents_eq): Remove redundant local
10040 variables. Fix available contents comparision.
10041 * value.h (value_available_contents_eq): Extend describing
10044 2011-02-16 Yao Qi <yao@codesourcery.com>
10046 * thread.c (info_threads_command): Add missing i18n markup and remove
10049 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10051 * breakpoint.c (longjmp_names): New variable.
10052 (struct breakpoint_objfile_data): New type.
10053 (breakpoint_objfile_key): New variable.
10054 (msym_not_found): New variable.
10055 (msym_not_found_p): New predicate.
10056 (get_breakpoint_objfile_data): New function.
10057 (create_overlay_event_breakpoint): Check per-objfile cache for
10059 (create_longjmp_master_breakpoint): Likewise.
10060 (create_std_terminate_master_breakpoint): Likewise.
10061 (create_exception_master_breakpoint): Likewise.
10062 (_initialize_breakpoint): Register per-objfile data key.
10064 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10066 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10068 (create_longjmp_master_breakpoint): Loop over longjmp names.
10069 (create_std_terminate_master_breakpoint): Const-propagate parameter
10071 (update_breakpoints_after_exec): Adjust.
10072 (breakpoint_re_set): Adjust.
10074 2011-02-15 Michael Snyder <msnyder@vmware.com>
10076 * thread.c (info_threads_command): Process arg as thread id,
10077 or list of thread ids.
10078 (thread_find_command): New command.
10079 (_initialize_thread): Document argument for info threads.
10080 Document 'thread find' command.
10081 * NEWS: Document new command "thread find".
10083 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10085 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10086 * aclocal.m4: Regenerated with aclocal-1.11.1.
10087 * common/configure: Regenerate with autoconf-2.64.
10089 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
10091 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10092 bool data type to a size of one byte.
10094 2011-02-15 Pedro Alves <pedro@codesourcery.com>
10095 Jan Kratochvil <jan.kratochvil@redhat.com>
10097 * target.c (memory_xfer_live_readonly_partial): Document where to
10098 look for interface description.
10100 2011-02-15 Yao Qi <yao@codesourcery.com>
10103 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10104 order to store PC value on stack instead of text section.
10106 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10108 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10109 the EFP register set size.
10110 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10111 data from the VMX register.
10112 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10113 and write data from/to the VMX register.
10115 2011-02-14 Michael Snyder <msnyder@vmware.com>
10117 * command.h (enum command_class): New class 'no_set_class', for
10118 "show" commands without a corresponding "set" command.
10119 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10120 * copying.c (_initialize_copying): Ditto for "show copying" and
10122 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10124 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10125 which there is no corresponding "set" command (eg. "show copying").
10127 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10128 Jan Kratochvil <jan.kratochvil@redhat.com>
10130 * exec.c (section_table_available_memory): Change `len' parameter
10132 * exec.h (section_table_available_memory): Ditto.
10133 * value.h (read_value_memory): Rename the `offset' parameter to
10136 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10137 Jan Kratochvil <jan.kratochvil@redhat.com>
10139 * memrange.c (compare_mem_ranges): Mention sort order in
10140 describing comment.
10141 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10142 * tracepoint.c (traceframe_available_memory): Extend comment to
10143 mention what happens to RESULT when the target does not support
10146 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10147 Jan Kratochvil <jan.kratochvil@redhat.com>
10149 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10152 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10154 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10155 No longer handle NULL values.
10157 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10159 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10160 * value.c: Include "exceptions.h".
10161 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10163 * cp-abi.c: Include gdb_assert.h.
10164 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10165 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10167 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10168 parameters. No longer returns -1 on error.
10169 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10171 * cp-valprint.c: Include exceptions.h.
10172 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10173 the baseclass_offset. Handle unavailable base classes. Use
10174 val_print_invalid_address.
10175 * p-valprint.c: Include exceptions.h.
10176 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10177 when fetching the baseclass_offset. No longer expect
10178 baseclass_offset returning -1. Handle unavailable base classes.
10179 Use val_print_invalid_address.
10180 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10181 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10182 `embedded_offset' and `val' parameters. Adjust.
10183 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10184 parameter, and change its type to gdb_byte pointer. Add
10185 `embedded_offset' and `val' parameters. Adjust. No longer expect
10186 baseclass_offset returning -1.
10187 (value_dynamic_cast): Use value_contents_for_printing rather than
10188 value_contents. Adjust.
10189 (search_struct_field): No longer expect baseclass_offset returning
10191 (search_struct_method): If reading memory from the target is
10192 necessary, wrap it in a new value to pass to baseclass_offset. No
10193 longer expect baseclass_offset returning -1.
10194 (find_method_list): No longer expect baseclass_offset returning
10195 -1. Use value_contents_for_printing rather than value_contents.
10196 * valprint.c (val_print_invalid_address): New function.
10197 * valprint.h (val_print_invalid_address): Declare.
10198 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10199 and `val' parameters. No longer expect baseclass_offset returning
10201 * gnu-v2-abi.c: Include "exceptions.h".
10202 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10203 parameters. Handle unavailable memory. Recurse through
10204 gnuv2_baseclass_offset directly, rather than through
10205 baseclass_offset. No longer returns -1 on not found, instead
10207 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10208 `val' parameters. Adjust.
10210 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10212 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10213 almost but not quite adjacent.
10215 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10217 * value.h (value_entirely_available): Declare.
10218 * value.c (value_entirely_available): New function.
10219 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10220 real type if the pointer is unavailable.
10222 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10224 * valops.c (value_repeat): Use read_value_memory instead of
10227 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10229 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10230 * value.c (value_contents_copy_raw, value_contents_copy): New
10232 (value_primitive_field): Use value_contents_copy_raw instead of
10234 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10236 (value_array, value_slice): Ditto.
10237 * valarith.c (value_subscripted_rvalue): Use
10238 value_contents_copy_raw instead of memcpy.
10240 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10242 <unavailable> references.
10244 * valops.c (get_value_at): Use value_from_contents_and_address,
10245 avoiding read_memory.
10247 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10249 * c-valprint.c (c_val_print): Print a string with unavailable
10250 contents as an array.
10252 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10254 * value.h (unpack_bits_as_long): Delete declaration.
10255 (unpack_value_bits_as_long): Declare.
10256 (unpack_value_field_as_long): Declare.
10257 (value_field_bitfield): Declare.
10258 * value.c (unpack_bits_as_long): Rename to...
10259 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10260 value parameters. Return the extracted result in a new output
10261 parameter. If the value contents are unavailable, return false,
10262 otherwise return true.
10263 (unpack_value_bits_as_long): New.
10264 (unpack_field_as_long): Rename to...
10265 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10266 Add embedded_offset and value parameters. Return the extracted
10267 result in a new output parameter. If the value contents are
10268 unavailable, return false, otherwise return true.
10269 (unpack_value_field_as_long): New.
10270 (unpack_field_as_long_1): New.
10271 (unpack_field_as_long): Reimplement as wrapper around
10272 unpack_value_field_as_long_1.
10273 (value_field_bitfield): New function.
10274 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10275 unpack_value_bits_as_long. Mark the value as unavailable, if it
10277 * jv-valprint.c (java_print_value_fields): Use
10278 value_field_bitfield.
10279 * p-valprint.c (pascal_object_print_value_fields): Use
10280 value_field_bitfield.
10281 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10283 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10285 * value.c (get_internalvar_integer): Also return the int value of
10286 TYPE_CODE_INT INTERNALVAR_VALUE values.
10287 (set_internalvar): Don't special case TYPE_CODE_INT.
10289 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10291 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10292 INTERNALVAR_POINTER.
10294 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10295 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10296 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10298 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10300 * value.h (value_available_contents_eq): Declare.
10301 * value.c (find_first_range_overlap): New function.
10302 (value_available_contents_eq): New function.
10303 * valprint.c (val_print_array_elements): Use
10304 value_available_contents_eq.
10305 * ada-valprint.c (val_print_packed_array_elements): Use
10306 value_available_contents_eq.
10307 * jv-valprint.c (java_value_print): Use
10308 value_available_contents_eq.
10310 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10312 * target.c (target_read_live_memory): New function.
10313 (memory_xfer_live_readonly_partial): New.
10314 (memory_xfer_partial): If reading from a traceframe, fallback to
10315 reading unavailable read-only memory from read-only regions of
10316 live target memory.
10317 * tracepoint.c (disconnect_tracing): Adjust.
10318 (set_current_traceframe): New, factored out from
10319 set_traceframe_number.
10320 (set_traceframe_number): Reimplement to only change the traceframe
10321 number on the GDB side.
10322 (do_restore_current_traceframe_cleanup): Adjust.
10323 (make_cleanup_restore_traceframe_number): New.
10324 (cur_traceframe_number): New global.
10325 (tfile_open): Set cur_traceframe_number to no traceframe.
10326 (set_tfile_traceframe): New function.
10327 (tfile_trace_find): If looking up a traceframe using any method
10328 other than by number, make sure the current tfile traceframe
10329 matches gdb's current traceframe. Update the current tfile
10330 traceframe if the lookup succeeded.
10331 (tfile_fetch_registers, tfile_xfer_partial)
10332 (tfile_get_trace_state_variable_value): Make sure the remote
10333 traceframe matches gdb's current traceframe.
10334 * remote.c (remote_traceframe_number): New global.
10335 (remote_open_1): Set it to -1.
10336 (set_remote_traceframe): New function.
10337 (remote_fetch_registers, remote_store_registers)
10338 (remote_xfer_memory, remote_xfer_partial)
10339 (remote_get_trace_state_variable_value): Make sure the remote
10340 traceframe matches gdb's current traceframe.
10341 (remote_trace_find): If looking up a traceframe using any method
10342 other than by number, make sure the current remote traceframe
10343 matches gdb's current traceframe. Update the current remote
10344 traceframe if the lookup succeeded.
10345 * infrun.c (fetch_inferior_event): Adjust.
10346 * tracepoint.h (set_current_traceframe): Declare.
10347 (get_traceframe_number, set_traceframe_number): Add describing
10350 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10352 Mark pieces of values as unavailable if the corresponding memory
10355 * valops.c: Include tracepoint.h.
10356 (value_fetch_lazy): Use read_value_memory.
10357 (read_value_memory): New.
10358 * value.h (read_value_memory): Declare.
10359 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10360 * exec.c (section_table_available_memory): New function.
10361 * exec.h (section_table_available_memory): Declare.
10363 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10365 * Makefile.in (SFILES): Add memrange.c.
10366 (HFILES_NO_SRCDIR): Add memrange.h.
10367 (COMMON_OBS): Add memrange.o.
10368 * memrange.c: New file.
10369 * memrange.h: New file.
10370 * tracepoint.c: Include memrange.h.
10371 (struct mem_range): Delete.
10372 (mem_range_s): Delete.
10373 (traceframe_available_memory): New function.
10374 * tracepoint.h (traceframe_available_memory): Declare.
10376 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10378 * target.h (struct traceframe_info): Forward declare.
10379 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10380 (struct target_ops) <to_traceframe_info>: New field.
10381 (target_traceframe_info): New.
10382 * target.c (update_current_target): Inherit and default
10383 to_traceframe_info.
10384 * remote.c (PACKET_qXfer_traceframe_info): New.
10385 (remote_protocol_features): Register qXfer:traceframe-info:read.
10386 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10387 (remote_traceframe_info): New.
10388 (init_remote_ops): Install it.
10389 (_initialize_remote): Install "set/show remote traceframe-info"
10391 * tracepoint.h (parse_traceframe_info): Declare.
10392 * tracepoint.c (struct mem_range): New.
10393 (mem_range_s): New typedef.
10394 (struct traceframe_info): New.
10395 (traceframe_info): New global.
10396 (free_traceframe_info): New function.
10397 (clear_traceframe_info): New function.
10398 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10400 (build_traceframe_info): New function.
10401 (tfile_traceframe_info): New function.
10402 (init_tfile_ops): Install tfile_traceframe_info.
10403 (traceframe_info_start_memory, free_result): New functions.
10404 (memory_attributes, traceframe_info_elements): New globals.
10405 (parse_traceframe_info, get_traceframe_info): New functions.
10406 * features/traceframe-info.dtd: New file.
10407 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10409 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10411 Base support for <unavailable> value contents.
10413 * value.h (value_bytes_available): Declare.
10414 (mark_value_bytes_unavailable): Declare.
10415 * value.c (struct range): New struct.
10416 (range_s): New typedef.
10417 (ranges_overlap): New function.
10418 (range_lessthan): New function.
10419 (ranges_contain_p): New function.
10420 (struct value) <unavailable>: New field.
10421 (value_bytes_available): New function.
10422 (mark_value_bytes_unavailable): New function.
10423 (require_not_optimized_out): Constify parameter.
10424 (require_available): New function.
10425 (value_contents_all, value_contents): Require all bytes be
10427 (value_free): Free `unavailable'.
10428 (value_copy): Copy `unavailable'.
10429 * valprint.h (val_print_unavailable): Declare.
10430 * valprint.c (valprint_check_validity): Rename `offset' parameter
10431 to `embedded_offset'. If printing a scalar, check whether the
10432 value chunk is available.
10433 (val_print_unavailable): New.
10434 (val_print_scalar_formatted): Check whether the value is
10436 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10437 pretty-printing unavailable values.
10439 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10441 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10442 * c-typeprint.c (c_type_print_args): Update the function comment. New
10443 variable param_type, initialize it. Remove const/volatile qualifiers
10444 for language_cplus and !show_artificial. Use param_type.
10446 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10448 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10449 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10450 * symtab.h (struct symtab) <next>: Comment extension.
10452 2011-02-12 Yao Qi <yao@codesourcery.com>
10454 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10456 2011-02-11 Yao Qi <yao@codesourcery.com>
10458 * common/Makefile.in: Add copyright header.
10460 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10462 * infrun.c (proceed): Move switching out and in of tfind mode from
10464 (fetch_inferior_event): ... to here.
10466 2011-02-11 Yao Qi <yao@codesourcery.com>
10468 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10470 * configure.ac: Add common to sub dir.
10471 * configure: Regenerate.
10473 2011-02-11 Yao Qi <yao@codesourcery.com>
10477 * common/Makefile.in: New.
10478 * common/configure.ac: New.
10479 * common/aclocal.m4: New.
10480 * common/configure: Generate.
10482 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10484 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10485 side of the parenthesis.
10488 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10489 * vec.h (VEC_block_remove): Fix comment.
10491 2011-02-08 Michael Snyder <msnyder@vmware.com>
10493 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10495 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10497 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10498 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10501 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10504 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10506 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10507 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10509 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10511 * dwarf2read.c (read_subroutine_type): Set special calling
10512 convention flag for functions compiled by IBM XL C for OpenCL.
10513 * ppc-sysv-tdep.c: Include "dwarf2.h"
10514 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10515 calling convention.
10516 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10517 IBM OpenCL vector types calling convention.
10518 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10519 (ppc_sysv_abi_broken_return_value): Likewise.
10520 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10521 types calling convention.
10522 (ppc64_sysv_abi_return_value): Likewise.
10523 * spu-tdep.c: Include "dwarf2.h"
10524 (spu_return_value): Implement IBM OpenCL vector types calling
10527 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10529 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10530 correct ABI for AltiVec vector arguments.
10532 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10534 * valprint.c (val_print): Extend comment.
10535 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10536 interface explanation to val_print.
10537 (ada_val_print_array): Adjust comment to current interface.
10538 (print_field_values): Adjust comment to current interface.
10539 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10540 explanation to val_print.
10541 * f-valprint.c (f_val_print): Ditto.
10542 * jv-valprint.c (java_val_print): Ditto.
10543 * m2-valprint.c (m2_val_print): Ditto.
10544 * p-valprint.c (pascal_val_print): Ditto.
10546 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10548 * breakpoint.c (parse_breakpoint_sals): Fix description.
10550 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10551 Oguz Kayral <oguzkayral@gmail.com>
10553 * python/py-inferior.c (python_on_normal_stop): New function.
10554 (python_on_resume): New function.
10555 (python_inferior_exit): New function.
10556 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10557 inferior_exit observers.
10558 * python/py-evtregistry.c: New file.
10559 * python/py-threadevent.c : New file.
10560 * python/py-event.c: New file.
10561 * python/py-evts.c: New file.
10562 * python/py-continueevent.c: New file.
10563 * python/py-bpevent.c: New file.
10564 * python/py-signalevent.c: New file.
10565 * python/py-exetiedevent.c: New file.
10566 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10567 Move struct breakpoint_object from here...
10568 * python/python-internal.h: ... to here.
10569 * python/py-event.h: New file.
10570 * python/py-events.h: New file.
10571 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10572 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10573 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10574 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10575 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10576 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10577 Add build rules for all the above.
10579 2011-02-04 Tom Tromey <tromey@redhat.com>
10581 * dwarf2read.c (dwarf2_section_empty_p): New function.
10582 (dwarf2_read_section): Use dwarf2_section_empty_p.
10583 (dwarf2_section_size): New function.
10584 (dwarf2_get_section_info): Unconditionally read section.
10585 (dwarf2_read_index): Use dwarf2_section_empty_p.
10586 (partial_read_comp_unit_head): Use dwarf2_section_size.
10587 (dwarf2_symbol_mark_computed): Likewise.
10589 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10591 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10593 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10595 * mips-linux-tdep.c: Include xml-syscall.h.
10596 (mips_linux_get_syscall_number): New function.
10597 (mips_linux_init_abi): Add calls to
10598 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10599 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10600 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10601 * syscalls/mips-n32-linux.xml: New file.
10602 * syscalls/mips-n64-linux.xml: New file.
10603 * syscalls/mips-o32-linux.xml: New file.
10605 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10607 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10608 Complain about inverted range entries.
10609 (dwarf2_record_block_ranges): Likewise.
10611 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10614 * breakpoint.c (update_watchpoint): Fix name of the
10615 update_global_location_list function.
10616 (print_one_breakpoint): Fix typo.
10617 (_initialize_breakpoint): Remove extra space in hbreak help
10619 * breakpoint.h (struct bp_location) <length>: Fix field
10622 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10624 * regcache.c (registers_changed_ptid): Don't explictly always
10625 clear `current_regcache'. Only clear current_thread_ptid and
10626 current_thread_arch when PTID matches. Only reinit the frame
10627 cache if PTID matches the current inferior_ptid. Move alloca(0)
10629 (registers_changed): ... here.
10631 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10633 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10634 starts with __stack_chk_guard as stack guard symbol.
10636 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10638 * disasm.c (compare_lines): Handle the end of sequence markers
10639 within the line table to better support disassembling over
10640 compilation unit boundaries.
10642 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10644 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10645 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10646 implementation even if no symbols are available.
10647 (thumb_analyze_prologue): Update call to skip_prologue_function.
10648 (arm_analyze_prologue): Likewise.
10650 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10652 * arm-tdep.c: Include "observer.h".
10653 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10654 (arm_exidx_data_key): New static variable.
10655 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10656 (struct arm_exidx_data): Likewise.
10657 (arm_exidx_data_free): New function.
10658 (arm_compare_exidx_entries): Likewise.
10659 (arm_obj_section_from_vma): Likewise.
10660 (arm_exidx_new_objfile): Likewise.
10661 (arm_find_exidx_entry): Likewise.
10662 (arm_exidx_fill_cache): Likewise.
10663 (arm_exidx_unwind_sniffer): Likewise.
10664 (arm_exidx_unwind): New global variable.
10665 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10666 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10667 observer. Register arm_exidx_data_key as objfile data.
10669 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10671 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10672 due to accessing uninitialized variable. Fix indentation.
10674 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10676 * c-valprint.c (c_value_print): When doing virtual base pointer
10677 adjustment, create a new value with adjusted contents rather than
10678 changing the contents of the value being printed (and getting it
10681 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10683 * xml-support.c (xml_find_attribute): New.
10684 (xinclude_start_include): Use it.
10685 * xml-support.h (xml_find_attribute): Declare.
10686 * memory-map.c (memory_map_start_memory)
10687 (memory_map_start_property): Use xml_find_attribute.
10688 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10689 xml_find_attribute.
10690 * remote.c (start_thread): Use xml_find_attribute.
10691 * solib-target.c (library_list_start_segment)
10692 (library_list_start_section, library_list_start_library)
10693 (library_list_start_list): Use xml_find_attribute.
10694 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10695 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10696 (tdesc_start_field): Use xml_find_attribute.
10698 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10700 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10701 (BUILD_OCL_VTYPES): Update.
10703 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10705 * configure.ac: Work around non-GNU sed limitation when computing
10706 python version number.
10707 * configure: Regenerate.
10709 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10711 Fix debug printing of TYPE_INSTANCE.
10712 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10713 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10715 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10717 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10718 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10719 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10720 * ada-operator.inc: Rename the file to ...
10721 * ada-operator.def: ... here, wrap all the entries by macro OP.
10722 * expprint.c (op_name_standard): Remove all the entries. Include
10723 "std-operator.def" instead.
10724 * expression.h (enum exp_opcode): Include "std-operator.def" and
10725 "ada-operator.def". Move all the entries ...
10726 * std-operator.def: ... here, wrap all the entries by macro OP.
10728 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10730 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10731 * breakpoint.c (remove_jit_event_breakpoints): New function.
10732 * jit.c (jit_descriptor_addr): Delete.
10733 (registering_code): Delete.
10734 (clear_int): Delete.
10735 (jit_inferior_data): New variable.
10736 (struct jit_inferior_data): New type.
10737 (get_jit_inferior_data): New function.
10738 (jit_inferior_data_cleanup): New function.
10739 (jit_read_descriptor): Adjust.
10740 (jit_register_code): Adjust.
10741 (jit_breakpoint_re_set_internal): New function; move code here ...
10742 (jit_inferior_init): ... from here.
10743 (jit_breakpoint_re_set): Adjust.
10744 (jit_reset_inferior_data_and_breakpoints): New function.
10745 (jit_inferior_created_observer): Adjust.
10746 (jit_inferior_exit_hook): Adjust.
10747 (jit_executable_changed_observer): New function.
10748 (jit_event_handler): Adjust.
10749 (_initialize_jit): Adjust.
10751 2011-01-31 Michael Snyder <msnyder@vmware.com>
10753 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10756 2011-01-31 Tom Tromey <tromey@redhat.com>
10759 * python/python.c (execute_gdb_command): Call
10760 prevent_dont_repeat.
10761 * top.c (suppress_dont_repeat): New global.
10762 (dont_repeat): Use it.
10763 (prevent_dont_repeat): New function.
10764 * command.h (prevent_dont_repeat): Declare.
10766 2011-01-31 Tom Tromey <tromey@redhat.com>
10768 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10769 * python/py-breakpoint.c (bppy_set_silent): Use
10770 breakpoint_set_silent.
10771 (bppy_set_thread): Use breakpoint_set_thread.
10772 (bppy_set_task): Use breakpoint_set_task.
10773 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10774 (breakpoint_set_task): Declare.
10775 (make_breakpoint_silent): Remove.
10776 * breakpoint.c (breakpoint_set_silent): New function.
10777 (breakpoint_set_thread): Likewise.
10778 (breakpoint_set_task): Likewise.
10779 (make_breakpoint_silent): Remove.
10781 2011-01-31 Tom Tromey <tromey@redhat.com>
10783 * breakpoint.h (user_breakpoint_p): Declare.
10784 * breakpoint.c (user_breakpoint_p): New function.
10785 (breakpoint_1): Use it.
10786 (save_breakpoints): Likewise.
10788 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10790 * configure.ac: Add handling of Python distribution on Windows.
10791 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10792 sysconfig variables are not defined, then do not use them.
10793 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10794 instead. On Windows, return all paths using forward-slashes
10795 rather than backslashes.
10797 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10799 * configure.ac: Remove fallback behavior for building
10800 against Python. Remove tweaking of Python include path.
10801 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10802 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10803 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10804 Always restore CPPFLAGS and LIBS after linking test.
10805 * configure: Regenerated.
10806 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10807 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10808 * python/python-internal.h: Adjust includes of Python .h files.
10810 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10812 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10815 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10817 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10820 2011-01-31 Yao Qi <yao@codesourcery.com>
10822 * arm-linux-nat.c: Update calls to regcache_register_status
10823 instead of regcache_valid_p.
10824 * aix-thread.c: Likewise.
10825 * i386gnu-nat.c: Likewise.
10827 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10830 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10831 touching TYPE_FIELD_ARTIFICIAL.
10833 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10835 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10838 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10840 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10841 selected, don't try iterating over the traceframe's blocks.
10842 (tfile_has_stack): If there's no traceframe selected, then there's
10844 (tfile_has_registers): If there's no traceframe selected, then
10845 there's no registers.
10847 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10849 * target.c (memory_xfer_partial): No need to restore shadows if we
10850 haven't read anything.
10852 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10854 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10855 and val_print_scalar_formatted.
10857 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10859 * tracepoint.c (tfile_read): New.
10860 (tfile_open): Use it.
10861 (tfile_get_traceframe_address): Use it.
10862 (tfile_trace_find): Use it.
10863 (walk_blocks_callback_func): New typedef.
10864 (match_blocktype): New function.
10865 (traceframe_walk_blocks): New function.
10866 (traceframe_find_block_type): New function.
10867 (tfile_fetch_registers, tfile_xfer_partial)
10868 (tfile_get_trace_state_variable_value): Use
10869 traceframe_find_block_type and tfile_read.
10871 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10873 * remote-mips.c: Add internationalization mark ups. Remove
10874 trailing \n from already marked up strings.
10876 2011-01-26 Tom Tromey <tromey@redhat.com>
10878 * python/py-prettyprint.c (print_string_repr): Clear
10879 'addressprint' option when calling val_print_string.
10880 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10881 option when calling val_print_string.
10883 2011-01-26 Tom Tromey <tromey@redhat.com>
10885 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10887 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10889 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10890 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10891 (gdb_py_long_as_ulongest): New defines.
10892 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10893 (gdb_py_int_as_long): Declare.
10894 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10895 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10896 (valpy_long): Add comment.
10897 * python/py-utils.c (get_addr_from_python): Use
10898 gdb_py_long_as_ulongest. Handle overflow properly.
10899 (gdb_py_object_from_longest): New function.
10900 (gdb_py_object_from_ulongest): Likewise.
10901 (gdb_py_int_as_long): Likewise.
10902 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10903 * python/py-symtab.c (salpy_get_pc): Use
10904 gdb_py_long_from_ulongest.
10905 (salpy_get_line): Use PyInt_FromLong.
10906 * python/py-param.c (set_parameter_value): Use
10907 gdb_py_int_as_long.
10908 * python/py-lazy-string.c (stpy_get_address): Use
10909 gdb_py_long_from_ulongest.
10910 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10911 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10912 * python/py-breakpoint.c (bppy_set_thread): Use
10913 gdb_py_int_as_long.
10914 (bppy_set_task): Likewise.
10915 (bppy_set_ignore_count): Likewise.
10916 (bppy_set_hit_count): Likewise.
10917 * python/py-block.c (blpy_get_start): Use
10918 gdb_py_object_from_ulongest.
10919 (blpy_get_end): Likewise.
10920 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10922 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10925 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10926 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10927 equality test for objfile, initialize addr_low if needed.
10929 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10931 * tui/tui-regs.c (tui_register_format): Remove dead code.
10933 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10935 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10936 instead of print_scalar_formatted.
10937 (print_scalar_formatted): Don't handle 's' format strings here,
10938 and add an assertion that we never see such format here.
10939 * valprint.h (val_print_scalar_formatted): Declare.
10940 * valprint.c (val_print_scalar_formatted): New.
10941 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10942 instead of print_scalar_formatted.
10943 * jv-valprint.c (java_val_print): Ditto.
10944 * p-valprint.c (pascal_val_print): Ditto.
10945 * ada-valprint.c (ada_val_print_1): Ditto.
10946 * f-valprint.c (f_val_print): Ditto.
10947 * infcmd.c (registers_info): Ditto.
10948 * m2-valprint.c (m2_val_print): Ditto.
10950 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10952 * m2-valprint.c (print_unbounded_array): Pass
10953 value_contents_for_printing rather than value_contents, to
10954 m2_print_array_contents. Also pass in the value.
10956 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10958 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10959 (save_gdb_index_command): Switch to .gdb_index version 4.
10961 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10963 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10964 than frame_register, and always pass a valid value to val_print.
10966 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10968 Centralize printing "<optimized out>".
10970 * valprint.h (val_print_optimized_out): Declare.
10971 * cp-valprint.c (cp_print_value_fields): Use
10972 val_print_optimized_out.
10973 * jv-valprint.c (java_print_value_fields): Ditto.
10974 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10975 * printcmd.c (print_formatted): Ditto.
10976 * valprint.c (valprint_check_validity): Ditto.
10977 (value_check_printable): Ditto.
10978 (val_print_optimized_out): New.
10980 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10982 * infcmd.c (default_print_registers_info): Allocate values so to
10983 never pass a NULL value to val_print.
10985 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10987 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10988 boolean. Make sure to always pass a value that matches the
10989 contents buffer to callees. Preserve `address' for following
10991 * value.c (value_contents_for_printing_const): New.
10992 (value_address): Constify value argument.
10993 * value.h (value_contents_for_printing_const): Declare.
10994 (value_address): Constify value argument.
10996 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10998 * regcache.c (struct regcache_descr): Rename
10999 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11000 and sizeof_cooked_register_valid_p to
11001 sizeof_cooked_register_status.
11002 (init_regcache_descr): Adjust.
11003 (struct regcache): Rename register_valid_p field to
11005 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11006 (do_cooked_read): Adjust.
11007 (regcache_valid_p): Rename to ...
11008 (regcache_register_status): ... this. Adjust.
11009 (regcache_invalidate): Adjust.
11010 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11012 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11013 as unavailable, not valid.
11014 (regcache_dump): Adjust.
11015 * regcache.h (enum register_status): New.
11016 (regcache_register_status): Declare.
11017 (regcache_invalidate): Delete declaration.
11018 * corelow.c (get_core_registers): Adjust.
11019 * tracepoint.c (tfile_fetch_registers): Adjust.
11020 * trad-frame.c (REG_VALUE): Rename to ...
11021 (TF_REG_VALUE): ... this.
11022 (REG_UNKNOWN): Rename to ...
11023 (TF_REG_UNKNOWN): ... this.
11024 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11025 * mi/mi-main.c (register_changed_p): Adjust.
11027 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11029 * regcache.c (struct regcache_descr): Remove outdated comment.
11030 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11032 (regcache_xmalloc): Rename to ...
11033 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11034 Allocate the regcache type accordingly.
11035 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11036 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11037 cooked registers, not raw.
11038 (regcache_dup_no_passthrough): Delete.
11039 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11040 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11041 mention obsolete write_register_bytes.
11042 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11044 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11046 Stop remote_read_bytes from handling partial reads itself.
11048 * remote-fileio.c: Include target.h.
11049 (remote_fileio_write_bytes): Delete.
11050 (remote_fileio_func_open, remote_fileio_func_write)
11051 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11052 target_read_memory.
11053 (remote_fileio_func_stat): Use target_read_memory and
11054 target_write_memory.
11055 (remote_fileio_func_gettimeofday): Use target_write_memory.
11056 (remote_fileio_func_system): Use target_read_memory.
11057 * remote.c (remote_write_bytes): Make it static.
11058 (remote_read_bytes): Don't handle partial reads here.
11059 * remote.h (remote_read_bytes): Delete declaration.
11061 2011-01-25 Pedro Alves <pedro@codesourcery.com>
11063 Simplify XML parsing a bit.
11065 * xml-support.h (gdb_xml_parse_quick): Declare.
11066 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11067 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11069 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11070 gdb_xml_create_parser_and_cleanup_1.
11071 (gdb_xml_parse_quick): New.
11072 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11073 * osdata.c (osdata_parse): Ditto.
11074 * remote.c (remote_threads_info): Ditto.
11075 * solib-target.c (solib_target_parse_libraries): Ditto.
11076 * xml-syscall.c (syscall_parse_xml): Ditto.
11077 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11079 2011-01-24 Kevin Buettner <kevinb@redhat.com>
11081 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11082 with remote-mips.o added to gdb_target_obs.
11083 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11085 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11087 * ada-valprint.c (val_print_packed_array_elements): Pass the
11088 correct struct value to val_print.
11089 (ada_val_print_1): Ditto.
11091 2011-01-24 Pedro Alves <pedro@codesourcery.com>
11093 Don't lose embedded_offset in printing routines throughout.
11095 * valprint.h (val_print_array_elements): Change prototype.
11096 * valprint.c (val_print_array_elements): Add `embedded_offset'
11097 parameter, and adjust to pass it down to val_print, while passing
11098 `valaddr' or `address' unmodified. Take embedded_offset into
11099 account when checking repetitions.
11100 * c-valprint.c (c_val_print): Pass embedded_offset to
11101 val_print_array_elements instead of adjusting `valaddr' and
11103 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11104 embedded_offset to val_print_array_elements instead of adjusting
11106 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11107 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11108 val_print_array_elements and pascal_object_print_value_fields
11109 instead of adjusting `valaddr'.
11110 (pascal_object_print_value_fields): Add `offset' parameter, and
11112 (pascal_object_print_value): Add `offset' parameter, and adjust to
11114 (pascal_object_print_static_field): Use
11115 value_contents_for_printing/value_embedded_offset, rather than
11117 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11118 parameter, and adjust to use it. Use
11119 value_contents_for_printing/value_embedded_offset, rather than
11121 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11122 (ada_val_print_array): Add `offset' parameter, and adjust to use
11124 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11125 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11126 Instead work with offsets. Use
11127 value_contents_for_printing/value_embedded_offset, rather than
11128 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11129 and use value_from_pointer to extract a target pointer, rather
11130 than value_from_longest.
11131 (print_variant_part): Add `offset' parameter. Replace
11132 `outer_valaddr' parameter by a new `outer_offset' parameter.
11133 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11134 (ada_value_print): Use
11135 value_contents_for_printing/value_embedded_offset, rather than
11137 (print_record): Add `offset' parameter, and adjust to pass it
11139 (print_field_values): Add `offset' parameter. Replace
11140 `outer_valaddr' parameter by a new `outer_offset' parameter.
11141 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11142 Use value_contents_for_printing/value_embedded_offset, rather than
11144 * d-valprint.c (dynamic_array_type): Use
11145 value_contents_for_printing/value_embedded_offset, rather than
11147 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11148 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11149 (java_print_value_fields): Take `offset' into account. Don't
11150 re-adjust `valaddr'. Instead pass down adjusted offsets.
11151 (java_val_print): Take `embedded_offset' into account. Pass it to
11152 java_print_value_fields.
11153 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11154 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11155 down adjusted offsets.
11156 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11157 (f_val_print): Take `embedded_offset' into account.
11159 2011-01-21 Joel Brobecker <brobecker@adacore.com>
11161 * inflow.c: Include "gdbcmd.h".
11162 (interactive_mode): New static global, moved here from top.c.
11163 (show_interactive_mode): New function, moved here from top.c.
11164 use gdb_has_a_terminal instead of input_from_terminal_p to
11165 determine the current mode.
11166 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11168 (_initialize_inflow): Add the "set/show interactive-mode"
11169 commands. Moved here from top.c, after having adjusted slightly
11171 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11173 (input_from_terminal_p): Remove handling of "interactive-mode"
11174 setting, moved to infow.c.
11175 (init_main): Remove creation of the "set/show interactive-mode"
11176 commands, moved to inflow.c.
11178 2011-01-19 Joel Brobecker <brobecker@adacore.com>
11180 * NEWS: Add entry for native ia64-hpux support.
11182 2011-01-19 Tom Tromey <tromey@redhat.com>
11185 * thread.c (free_thread): Free 'name'.
11186 (print_thread_info): Emit thread name. Change CLI output.
11187 (thread_name_command): New function.
11188 (do_captured_thread_select): Emit newline.
11189 (_initialize_thread): Register 'thread name' command.
11190 * target.h (struct target_ops) <to_thread_name>: New field.
11191 (target_thread_name): New macro.
11192 * target.c (update_current_target): Handle to_thread_name.
11193 * python/py-infthread.c (thpy_get_name): New function.
11194 (thpy_set_name): Likewise.
11195 (thread_object_getset): Add "name".
11196 * linux-nat.c (linux_nat_thread_name): New function.
11197 (linux_nat_add_target): Set to_thread_name.
11198 * gdbthread.h (struct thread_info) <name>: New field.
11200 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11202 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11203 (ada_val_print_1): Likewise.
11205 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11207 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11208 upper limit address is not greater than the function end address
11209 when the upper limit could not be computed using the debugging
11212 2011-01-17 Tom Tromey <tromey@redhat.com>
11214 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11216 * utils.c: Include gdb_regex.h.
11217 (do_regfree_cleanup): New function.
11218 (make_regfree_cleanup): Likewise.
11219 (get_regcomp_error): Likewise.
11220 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11222 2011-01-17 Tom Tromey <tromey@redhat.com>
11224 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11225 re_compile_fastmap.
11227 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11229 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11230 for internal variables.
11231 (last_was_structop): New static variable.
11232 (COMPLETE): New token.
11233 (field_exp): New rule to group all '.' suffix handling.
11234 Add mark_struct_expression calls when approriate to be able
11235 to correctly find fields for completion.
11236 (yylex): Adapt to handle field completion and set INTVAR when
11239 2011-01-14 Yao Qi <yao@codesourcery.com>
11241 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11242 save_reggroup, restore_reggroup and all_reggroup.
11244 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11246 * ada-valprint. (ada_printchar): Use the correct type length
11247 in call to ada_emit_char.
11248 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11250 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11252 * solib-som.h (hpux_major_release): Declare variable here.
11253 * solib-som.c: Remove <sys/utsname.h> header.
11254 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11255 (hpux_major_release): Make global, change default value to
11256 DEFAULT_HPUX_MAJOR_RELEASE.
11257 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11258 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11259 Add "solib-som.h" header.
11260 (set_hpux_major_release): New function.
11261 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11263 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11265 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11267 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11269 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11270 new-line at end of warning message.
11271 (ia64_hpux_store_register): Remove trailing new-line at end of
11273 * ia64-hpux-tdep.c: Rephrase comment.
11274 * solib-ia64-hpux.c (struct dld_info): Change type of field
11275 dld_flags from "long long" to ULONGEST.
11277 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11279 * target.h (deprecated_child_ops): Delete declaration.
11280 * target.c (deprecated_child_ops): Delete definition.
11282 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11284 * Makefile.in (hpux-thread.o): Delete rule.
11285 * configure.ac: Don't check for HPUX DCE threads support.
11286 * configure, config.in: Regenerate.
11287 * hppa-hpux-nat.c (child_suppress_run): Delete.
11288 (hppa_hpux_child_can_run): Delete.
11289 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11290 * hpux-thread.c: Delete.
11292 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11294 * hpux-thread.c (hpux_pid_to_str): Delete.
11296 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11298 * ada-valprint.c (ada_emit_char): Remove strange code.
11299 Check that c is <= UCHAR_MAX before passing it to isascii.
11300 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11302 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11304 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11305 to the case where instream is stdin.
11307 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11309 * ia64-tdep.h (struct regcache): Forward declare.
11310 (struct ia64_infcall_ops): New struct type.
11311 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11313 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11314 Renames ia64_find_global_pointer.
11315 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11316 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11317 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11319 (ia64_infcall_ops): New static global constant.
11320 (ia64_gdbarch_init): Set tdep->infcall_ops.
11321 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11322 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11323 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11324 (ia64_hpux_dummy_code): New static global constant.
11325 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11326 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11327 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11329 (ia64_hpux_infcall_ops): New static global constant.
11330 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11331 for inferior function calls to work properly on ia64-hpux.
11333 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11335 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11336 * ia64-tdep.h (struct frame_info): forward declaration.
11337 (struct gdbarch_tdep): Add field size_of_register_frame.
11338 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11339 to determine the size of the register frame.
11340 (ia64_size_of_register_frame): New function.
11341 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11342 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11343 (IA64_HPUX_UREG_REASON): New macro.
11344 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11346 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11347 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11348 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11351 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11353 Add support for ia64-hpux.
11354 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11355 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11357 * configure.host: Add handling for ia64-hpux hosts. Add associated
11359 * configure.tgt: Add handling for ia64-hpux targets.
11360 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11361 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11362 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11364 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11366 [ttrace] Compute thread list immediately after attach.
11367 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11369 (inf_ttrace_attach): Use it.
11371 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11373 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11374 if we could not determine the frame's function address. Instead,
11375 use the frame's PC, and then continue.
11377 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11379 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11380 not already defined.
11382 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11384 * ia64-tdep.c (ia64_struct_type_p): New function.
11385 (ia64_extract_return_value): Handle integral values that are
11386 less than 8 bytes long.
11387 (ia64_push_dummy_call): Likewise.
11389 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11391 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11392 floatformat_ia64_ext.
11393 (floatformat_ia64_ext_big): New static const.
11394 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11396 2011-01-12 Tom Tromey <tromey@redhat.com>
11398 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11400 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11401 (mi_cmd_thread_list_ids): Likewise.
11402 (mi_cmd_data_list_changed_registers): Likewise.
11403 (mi_cmd_data_list_register_values): Likewise.
11404 (mi_cmd_data_write_register_values): Likewise.
11405 (mi_cmd_data_evaluate_expression): Likewise.
11406 (mi_cmd_data_read_memory): Likewise.
11407 (mi_cmd_data_read_memory_bytes): Likewise.
11408 (mi_cmd_data_write_memory): Likewise.
11409 (mi_cmd_enable_timings): Likewise.
11410 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11411 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11412 (mi_cmd_var_delete): Likewise.
11413 (mi_cmd_var_set_format): Likewise.
11414 (mi_cmd_var_show_format): Likewise.
11415 (mi_cmd_var_info_num_children): Likewise.
11416 (mi_cmd_var_list_children): Likewise.
11417 (mi_cmd_var_info_type): Likewise.
11418 (mi_cmd_var_info_expression): Likewise.
11419 (mi_cmd_var_show_attributes): Likewise.
11420 (mi_cmd_var_assign): Likewise.
11421 (mi_cmd_var_update): Likewise.
11422 (mi_cmd_enable_pretty_printing): Likewise.
11423 (mi_cmd_var_set_update_range): Likewise.
11424 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11426 (mi_cmd_target_file_put): Likewise.
11427 (mi_cmd_target_file_delete): Likewise.
11428 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11430 (mi_cmd_stack_info_depth): Likewise.
11431 (mi_cmd_stack_list_locals): Likewise.
11432 (mi_cmd_stack_list_args): Likewise.
11433 (mi_cmd_stack_select_frame): Likewise.
11434 (mi_cmd_stack_select_frame): Likewise.
11435 (mi_cmd_stack_info_frame): Likewise.
11436 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11438 (mi_cmd_file_list_exec_source_files): Likewise.
11439 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11440 (mi_cmd_env_cd): Likewise.
11441 (mi_cmd_env_path): Likewise.
11442 (mi_cmd_env_dir): Likewise.
11443 (mi_cmd_inferior_tty_show): Likewise.
11444 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11445 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11446 (mi_cmd_break_watch): Likewise.
11448 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11450 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11451 (ppc_linux_insert_hw_breakpoint): Likewise.
11452 (ppc_linux_remove_hw_breakpoint): Likewise.
11453 (ppc_linux_insert_watchpoint): Likewise.
11455 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11456 Jan Kratochvil <jan.kratochvil@redhat.com>
11458 PR fortran/11104 and DWARF unbound arrays detection.
11459 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11460 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11461 unspecified upper bound.
11462 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11463 variables array_size_array, tmp_type and offset_item. New variable
11464 array. Remove call to f77_get_upperbound. New variables array_type
11465 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11466 the final call to deprecated_set_value_type.
11468 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11470 Make value allocations more lazy.
11471 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11472 instead of allocate_value and set_value_lazy when possible.
11473 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11474 instead of allocate_value and set_value_lazy.
11475 * findvar.c (value_of_register_lazy): Likewise.
11476 (read_var_value): Remove V preallocation, call just check_typedef in
11477 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11478 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11479 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11480 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11481 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11482 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11483 the end, remove set_value_lazy there.
11484 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11485 instead of allocate_value and set_value_lazy when possible.
11486 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11487 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11488 of allocate_value and set_value_lazy.
11489 (value_from_contents_and_address): Use allocate_value_lazy instead of
11490 allocate_value and set_value_lazy when possible.
11492 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11494 * disasm.c (dump_insns): Support dumping opcodes for MI.
11495 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11496 dumping of instruction opcodes.
11498 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11500 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11503 2011-01-11 Tom Tromey <tromey@redhat.com>
11505 * thread.c (do_captured_thread_select): Emit newline before
11508 2011-01-11 Michael Snyder <msnyder@vmware.com>
11510 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11511 * score-tdep.c: Ditto.
11512 * score-tdep.h: Ditto.
11513 * ser-base.c: Ditto.
11514 * ser-go32.c: Ditto.
11517 * ser-mingw.c: Ditto.
11518 * ser-pipe.c: Ditto.
11519 * ser-tcp.c: Ditto.
11520 * ser-unix.c: Ditto.
11521 * sh64-tdep.c: Ditto.
11522 * shnbsd-nat.c: Ditto.
11523 * sh-tdep.c: Ditto.
11524 * sh-tdep.h: Ditto.
11526 * solib-darwin.c: Ditto.
11527 * solib-frv.c: Ditto.
11529 * solib-irix.c: Ditto.
11530 * solib-osf.c: Ditto.
11531 * solib-pa64.c: Ditto.
11532 * solib-som.c: Ditto.
11533 * solib-spu.c: Ditto.
11534 * solib-sunos.c: Ditto.
11535 * solib-svr4.c: Ditto.
11537 * sol-thread.c: Ditto.
11538 * somread.c: Ditto.
11541 * sparc64-linux-tdep.c: Ditto.
11542 * sparc64-tdep.c: Ditto.
11543 * sparc-linux-nat.c: Ditto.
11544 * sparc-linux-tdep.c: Ditto.
11545 * sparc-sol2-nat.c: Ditto.
11546 * sparc-sol2-tdep.c: Ditto.
11547 * sparc-tdep.c: Ditto.
11548 * sparc-tdep.h: Ditto.
11549 * spu-tdep.c: Ditto.
11550 * stabsread.c: Ditto.
11551 * stabsread.h: Ditto.
11553 * symfile.c: Ditto.
11554 * symfile.h: Ditto.
11555 * symmisc.c: Ditto.
11559 * target-descriptions.c: Ditto.
11560 * target-descriptions.h: Ditto.
11562 * target-memory.c: Ditto.
11563 * terminal.h: Ditto.
11566 * tracepoint.c: Ditto.
11567 * tracepoint.h: Ditto.
11568 * trad-frame.h: Ditto.
11569 * typeprint.c: Ditto.
11571 2011-01-11 Michael Snyder <msnyder@vmware.com>
11573 * ui-file.c: Comment cleanup, mostly periods and spaces.
11574 * ui-file.h: Ditto.
11578 * v850-tdep.c: Ditto.
11579 * valarith.c: Ditto.
11581 * valprint.c: Ditto.
11582 * valprint.h: Ditto.
11587 * vax-tdep.c: Ditto.
11590 * version.h: Ditto.
11591 * windows-nat.c: Ditto.
11592 * windows-tdep.c: Ditto.
11593 * xcoffread.c: Ditto.
11594 * xcoffsolib.c: Ditto.
11595 * xml-support.c: Ditto.
11596 * xstormy16-tdep.c: Ditto.
11597 * xtensa-tdep.c: Ditto.
11598 * xtensa-tdep.h: Ditto.
11600 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11602 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11603 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11605 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11606 Thiago Jung Bauermann <bauerman@br.ibm.com>
11608 Implement support for PowerPC BookE ranged watchpoints.
11610 (struct breakpoint_ops) <resources_needed>: New method.
11611 Initialize to NULL in all existing breakpoint_ops instances.
11612 (struct breakpoint) <exact>: New field.
11613 (target_exact_watchpoints): Declare external global.
11614 * breakpoint.c (target_exact_watchpoints): New global flag.
11615 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11616 b->enable_state to bp_enabled before calling
11617 hw_watchpoint_used_count.
11618 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11619 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11621 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11622 if the watchpoint is exact.
11623 (resources_needed_watchpoint): New function.
11624 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11625 (watch_command_1): Set b->exact if the user asked for an exact
11626 watchpoint and one can be set.
11627 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11628 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11629 the user asks for an exact watchpoint and one can be set. Return
11630 number of needed debug registers to watch the expression.
11631 * gdbtypes.c (is_scalar_type): New function, based on
11632 valprint.c:scalar_type_p.
11633 (is_scalar_type_recursive): New function.
11634 * gdbtypes.h (is_scalar_type_recursive): Declare.
11635 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11636 handle regions when ranged watchpoints are available.
11637 (create_watchpoint_request): New function.
11638 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11639 create_watchpoint_request.
11640 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11641 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11642 `set powerpc' and `show powerpc' commands.
11643 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11644 Mention documentation comment in the target macro.
11645 (target_region_ok_for_hw_watchpoint): Document return value.
11647 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11649 * breakpoint.c (update_watchpoint): Decide on using a software or
11650 hardware watchpoint after the bp_locations are created.
11652 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11654 Convert hardware watchpoints to use breakpoint_ops.
11655 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11656 <insert_location>: ... this. Return int instead of void.
11657 Accept pointer to struct bp_location instead of pointer to
11658 struct breakpoint. Adapt all implementations.
11659 (breakpoint_ops) <remove>: Rename to...
11660 <remove_location>: ... this. Accept pointer to struct bp_location
11661 instead of pointer to struct breakpoint. Adapt all implementations.
11662 * breakpoint.c (insert_catchpoint): Delete function.
11663 (insert_bp_location): Call the watchpoint or catchpoint's
11664 breakpoint_ops.insert method.
11665 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11666 breakpoint_ops.remove method.
11667 (insert_watchpoint, remove_watchpoint): New functions.
11668 (watchpoint_breakpoint_ops): New structure.
11669 (watch_command_1): Initialize the OPS field.
11670 * inf-child.c (inf_child_insert_fork_catchpoint)
11671 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11672 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11673 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11675 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11676 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11677 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11678 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11679 * target.c (update_current_target): Change default implementation of
11680 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11681 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11682 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11683 to_set_syscall_catchpoint to return_one.
11684 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11685 (debug_to_insert_exec_catchpoint): Report return value.
11686 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11687 (to_insert_exec_catchpoint): Change declaration to return int instead
11690 2011-01-11 Michael Snyder <msnyder@vmware.com>
11692 * arm-tdep.c: Internationalization.
11694 * charset.c: Ditto.
11695 * fork-child.c: Ditto.
11696 * nto-procfs.c: Ditto.
11697 * ppc-sysv-tdep.c: Ditto.
11699 * remote-mips.c: Ditto.
11701 * rs6000-nat.c: Ditto.
11702 * rs6000-tdep.c: Ditto.
11706 * xml-support.c: Ditto.
11707 * mi/mi-cmd-break.c: Ditto.
11708 * mi/mi-cmd-var.c: Ditto.
11709 * mi/mi-interp.c: Ditto.
11710 * mi/mi-main.c: Ditto.
11712 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11714 * remote-sim.c (gdbsim_store_register): Update API to
11715 sim_store_register to check more error conditions.
11717 2011-01-10 Michael Snyder <msnyder@vmware.com>
11719 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11720 * nto-tdep.c: Ditto.
11721 * nto-tdep.h: Ditto.
11722 * objc-exp.y: Ditto.
11723 * objc-lang.c: Ditto.
11724 * objfiles.c: Ditto.
11725 * objfiles.h: Ditto.
11726 * observer.c: Ditto.
11727 * opencl-lang.c: Ditto.
11730 * parser-defs.h: Ditto.
11733 * posix-hdep.c: Ditto.
11734 * ppcbug-rom.c: Ditto.
11735 * ppc-linux-nat.c: Ditto.
11736 * ppc-linux-tdep.c: Ditto.
11737 * ppc-linux-tdep.h: Ditto.
11738 * ppcnbsd-tdep.c: Ditto.
11739 * ppcobsd-tdep.c: Ditto.
11740 * ppcobsd-tdep.h: Ditto.
11741 * ppc-sysv-tdep.c: Ditto.
11742 * ppc-tdep.h: Ditto.
11743 * printcmd.c: Ditto.
11744 * proc-abi.c: Ditto.
11745 * proc-flags.c: Ditto.
11747 * proc-utils.h: Ditto.
11748 * progspace.h: Ditto.
11749 * prologue-value.c: Ditto.
11750 * prologue-value.h: Ditto.
11751 * psympriv.h: Ditto.
11752 * psymtab.c: Ditto.
11753 * p-typeprint.c: Ditto.
11754 * p-valprint.c: Ditto.
11755 * ravenscar-sparc-thread.c: Ditto.
11756 * ravenscar-thread.c: Ditto.
11757 * ravenscar-thread.h: Ditto.
11759 * regcache.c: Ditto.
11760 * regcache.h: Ditto.
11762 * remote-fileio.c: Ditto.
11763 * remote-fileio.h: Ditto.
11765 * remote-m32r-sdi.c: Ditto.
11766 * remote-mips.c: Ditto.
11767 * remote-sim.c: Ditto.
11768 * rs6000-aix-tdep.c: Ditto.
11769 * rs6000-nat.c: Ditto.
11770 * rs6000-tdep.c: Ditto.
11772 2011-01-10 Michael Snyder <msnyder@vmware.com>
11774 * charset.c (validate): Internationalization.
11775 * coffread.c (read_one_sym): Ditto.
11776 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11777 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11778 * inflow.c (new_tty): Ditto.
11779 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11780 * m32c-tdep.c (m32c_return_value): Ditto.
11781 * mep-tdep.c (mep_store_return_value): Ditto.
11782 * score-tdep.c (score7_fetch_insn): Ditto.
11783 * ser-mingw.c (pipe_windows_open): Ditto.
11784 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11785 * spu-tdep.c (spu_register_type): Ditto.
11786 * tracepoint.c (trace_find_command): Ditto.
11787 * valarith.c (value_pos): Ditto.
11789 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11791 * ada-valprint.c (printstr): Minor comment reformatting.
11793 2011-01-08 Michael Snyder <msnyder@vmware.com>
11795 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11798 2011-01-08 Michael Snyder <msnyder@vmware.com>
11800 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11801 * hppa-hpux-tdep.c: Ditto.
11802 * hppa-linux-nat.c: Ditto.
11803 * hppa-linux-tdep.c: Ditto.
11804 * hppanbsd-tdep.c: Ditto.
11805 * hppa-tdep.c: Ditto.
11806 * hppa-tdep.h: Ditto.
11807 * hpux-thread.c: Ditto.
11808 * i386-cygwin-tdep.c: Ditto.
11809 * i386-darwin-nat.c: Ditto.
11810 * i386gnu-nat.c: Ditto.
11811 * i386-linux-nat.c: Ditto.
11812 * i386-linux-tdep.c: Ditto.
11813 * i386-nat.c: Ditto.
11814 * i386-nat.h: Ditto.
11815 * i386nbsd-tdep.c: Ditto.
11816 * i386-sol2-nat.c: Ditto.
11817 * i386-stub.c: Ditto.
11818 * i386-tdep.c: Ditto.
11819 * i386-tdep.h: Ditto.
11820 * i387-tdep.c: Ditto.
11821 * ia64-linux-nat.c: Ditto.
11822 * ia64-linux-tdep.c: Ditto.
11823 * ia64-tdep.c: Ditto.
11824 * infcall.c: Ditto.
11825 * infcall.h: Ditto.
11827 * inferior.c: Ditto.
11828 * inferior.h: Ditto.
11829 * infloop.c: Ditto.
11832 * interps.c: Ditto.
11833 * interps.h: Ditto.
11834 * iq2000-tdep.c: Ditto.
11835 * irix5-nat.c: Ditto.
11839 * jv-lang.c: Ditto.
11840 * jv-lang.h: Ditto.
11841 * jv-typeprint.c: Ditto.
11842 * jv-valprint.c: Ditto.
11843 * language.c: Ditto.
11844 * language.h: Ditto.
11845 * linespec.c: Ditto.
11846 * linux-fork.c: Ditto.
11847 * linux-nat.c: Ditto.
11848 * linux-thread-db.c: Ditto.
11849 * lm32-tdep.c: Ditto.
11851 2011-01-08 Michael Snyder <msnyder@vmware.com>
11853 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11854 * m2-lang.c: Ditto.
11855 * m2-typeprint.c: Ditto.
11856 * m2-valprint.c: Ditto.
11857 * m32c-tdep.c: Ditto.
11858 * m32r-linux-nat.c: Ditto.
11859 * m32r-rom.c: Ditto.
11860 * m32r-tdep.c: Ditto.
11861 * m32r-tdep.h: Ditto.
11862 * m68hc11-tdep.c: Ditto.
11863 * m58klinux-nat.c: Ditto.
11864 * m68k-tdep.c: Ditto.
11865 * m88k-tdep.c: Ditto.
11866 * m88k-tdep.h: Ditto.
11867 * machoread.c: Ditto.
11868 * macrocmd.c: Ditto.
11869 * macroexp.c: Ditto.
11870 * macrotab.c: Ditto.
11873 * mdebugread.c: Ditto.
11874 * mdebugread.h: Ditto.
11875 * memattr.c: Ditto.
11876 * memattr.h: Ditto.
11877 * memory-map.h: Ditto.
11878 * mep-tdep.c: Ditto.
11879 * microblaze-rom.c: Ditto.
11880 * microblaze-tdep.c: Ditto.
11881 * minsyms.c: Ditto.
11882 * mips-irix-tdep.c: Ditto.
11883 * mips-linux-nat.c: Ditto.
11884 * mips-linux-tdep.c: Ditto.
11885 * mips-linux-tdep.h: Ditto.
11886 * mipsnbsd-nat.c: Ditto.
11887 * mipsnbsd-tdep.c: Ditto.
11888 * mipsread.c: Ditto.
11889 * mips-tdep.c: Ditto.
11890 * mips-tdep.h: Ditto.
11891 * mn10300-linux-tdep.c: Ditto.
11892 * mn10300-tdep.c: Ditto.
11893 * mn10300-tdep.h: Ditto.
11894 * monitor.c: Ditto.
11895 * monitor.h: Ditto.
11896 * moxie-tdep.c: Ditto.
11897 * moxie-tdep.h: Ditto.
11898 * mt-tdep.c: Ditto.
11900 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11902 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11904 2011-01-08 Robert Millan <rmh@gnu.org>
11906 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11908 2011-01-07 Michael Snyder <msnyder@vmware.com>
11910 * charset.c (_initialize_charset): Fix typo in string.
11912 2011-01-07 Michael Snyder <msnyder@vmware.com>
11914 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11916 * tui/tui-layout.c (tui_set_layout_for_display_command):
11917 Split line so that operator goes to beginning of line.
11918 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11919 assignment out of if statement.
11921 2011-01-07 Michael Snyder <msnyder@vmware.com>
11923 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11924 * ada-lang.h: Ditto.
11925 * ada-tasks.c: Ditto.
11926 * ada-valprint.c: Ditto.
11927 * aix-threads.c: Ditto.
11928 * alpha-linux-nat.c: Ditto.
11929 * alpha-linux-tdep.c: Ditto.
11930 * alpha-mdebug-tdep.c: Ditto.
11931 * alpha-nat.c: Ditto.
11932 * alpha-osf1-tdep.c: Ditto.
11933 * alpha-tdep.c: Ditto.
11934 * alphabsd-nat.c: Ditto.
11935 * alphabsd-tdep.c: Ditto.
11936 * amd64-darwin-tdep.c: Ditto.
11937 * amd64-linux-nat.c: Ditto.
11938 * amd64-linux-tdep.c: Ditto.
11939 * amd64-sol2-tdep.c: Ditto.
11940 * amd64-tdep.c: Ditto.
11941 * amd64-fbsd-tdep.c: Ditto.
11942 * amd64-nbsd-tdep.c: Ditto.
11943 * amd64-obsd-tdep.c: Ditto.
11944 * amd64-linux-nat.c: Ditto.
11945 * amd64-linux-tdep.c: Ditto.
11946 * arm-tdep.c: Ditto.
11947 * arm-tdep.h: Ditto.
11948 * armnbsd-nat.c: Ditto.
11949 * avr-tdep.c: Ditto.
11950 * bfin-tdep.c: Ditto.
11951 * bsd-kvm.c: Ditto.
11952 * c-typeprintc: Ditto.
11953 * c-valprint.c: Ditto.
11954 * coff-pe-read.h: Ditto.
11955 * coffreead.c: Ditto.
11956 * cris-tdep.c: Ditto.
11958 * darwin-nat-info.c: Ditto.
11959 * darwin-nat.c: Ditto.
11960 * dbug-rom.c: Ditto.
11961 * dbxread.c: Ditto.
11964 * dec-thread.c: Ditto.
11966 * demangle.c: Ditto.
11967 * dicos-tdep.c: Ditto.
11968 * dictionary.c: Ditto.
11969 * dictionary.h: Ditto.
11970 * dink32-rom.c: Ditto.
11972 * doublest.c: Ditto.
11974 * dummy-frame.c: Ditto.
11975 * dwarf2-frame.c: Ditto.
11976 * dwarf2expr.c: Ditto.
11977 * dwarf2loc.c: Ditto.
11978 * dwarf2read.c: Ditto.
11979 * elfread.c: Ditto.
11980 * environ.c: Ditto.
11982 * event-top.h: Ditto.
11983 * exceptions.c: Ditto.
11984 * exceptions.h: Ditto.
11986 * expprint.c: Ditto.
11987 * expression.h: Ditto.
11991 * f-typeprint.c: Ditto.
11992 * f-valprint.c: Ditto.
11993 * fbsd-nat.c: Ditto.
11994 * findvar.c: Ditto.
11995 * fork-child.c: Ditto.
11998 * frv-linux-tdep.c: Ditto.
11999 * frv-tdep.c: Ditto.
12001 * gdb-stabs.h: Ditto.
12002 * gdb_assert.h: Ditto.
12003 * gdb_string.h: Ditto.
12004 * gdb_thread_db.h: Ditto.
12005 * gdb_wait.h: Ditto.
12006 * gdbarch.sh: Ditto.
12007 * gdbcore.h: Ditto.
12008 * gdbthread.h: Ditto.
12009 * gdbtypes.c: Ditto.
12010 * gdbtypes.h: Ditto.
12011 * gnu-nat.c: Ditto.
12012 * gnu-nat.h: Ditto.
12013 * gnu-v2-abi.c: Ditto.
12014 * gnu-v3-abi.c: Ditto.
12015 * go32-nat.c: Ditto.
12016 * gdbarch.c: Regenerate.
12017 * gdbarch.h: Regenerate.
12019 2011-01-07 Michael Snyder <msnyder@vmware.com>
12021 * ax-gdb.c: Adjust some long output strings.
12022 * breakpoint.c: Ditto.
12023 * charset.c: Ditto.
12025 * infcall.c: Ditto.
12027 * linux-nat.c: Ditto.
12028 * solib-pa64.c: Ditto.
12029 * solib-som.c: Ditto.
12031 2011-01-06 Tom Tromey <tromey@redhat.com>
12035 * python/python.c (GdbMethods): Add "newest_frame" method.
12036 * python/python-internal.h (gdbpy_newest_frame): Declare.
12037 * python/py-frame.c (gdbpy_newest_frame): New function.
12039 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12041 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12042 * jit.c (jit_debug): New variable.
12043 (show_jit_debug): New function.
12044 (struct target_buffer): Use ULONGEST.
12045 (bfd_open_from_target_memory): Likewise.
12046 (jit_register_code, jit_inferior_init): Add debug output.
12047 (_initialize_jit): Register "debug jit" command.
12049 2011-01-06 Tom Tromey <tromey@redhat.com>
12051 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12052 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12055 2011-01-06 Tom Tromey <tromey@redhat.com>
12057 * python/py-frame.c (frapy_block): Use get_frame_block.
12059 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12061 Do not stop on SIGPRIO signals by default
12062 * infrun.c (_initialize_infrun): Unset signal_stop and
12063 signal_print for TARGET_SIGNAL_PRIO.
12065 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12067 * ada-tasks.c: Fix style violation in comment.
12069 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12071 * linespec.c (decode_compound, find_method): Remove trailing \n
12072 at end of error string.
12073 * solib-irix.c (irix_current_sos): Likewise.
12074 * varobj.c (uninstall_variable): Likewise.
12076 2011-01-06 Joel Brobecker <brobecker@adacore.com>
12078 * copyright.py: New script.
12079 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12080 Launch emacs without exec'ing. Call copyright.py afterwards.
12082 2011-01-05 Michael Snyder <msnyder@vmware.com>
12084 * addrmap.c: Shorten lines of >= 80 columns.
12085 * arch-utils.c: Ditto.
12086 * arch-utils.h: Ditto.
12088 * ax-general.c: Ditto.
12090 * blockframe.c: Ditto.
12091 * breakpoint.c: Ditto.
12092 * buildsym.c: Ditto.
12094 * c-typeprint.c: Ditto.
12095 * charset.c: Ditto.
12096 * coffread.c: Ditto.
12097 * command.h: Ditto.
12098 * corelow.c: Ditto.
12100 * cp-namespace.c: Ditto.
12101 * cp-support.c: Ditto.
12102 * dbug-rom.c: Ditto.
12103 * dbxread.c: Ditto.
12107 * dictionary.c: Ditto.
12109 * doublest.c: Ditto.
12110 * dwarf2-frame.c: Ditto.
12111 * dwarf2expr.c: Ditto.
12112 * dwarf2loc.c: Ditto.
12113 * dwarf2read.c: Ditto.
12114 * elfread.c: Ditto.
12116 * event-loop.c: Ditto.
12117 * event-loop.h: Ditto.
12118 * exceptions.h: Ditto.
12120 * expprint.c: Ditto.
12121 * expression.h: Ditto.
12123 * f-valprint.c: Ditto.
12124 * findcmd.c: Ditto.
12125 * frame-base.c: Ditto.
12126 * frame-unwind.c: Ditto.
12127 * frame-unwind.h: Ditto.
12131 * gdb-stabs.h: Ditto.
12132 * gdb_assert.h: Ditto.
12133 * gdb_dirent.h: Ditto.
12134 * gdb_obstack.h: Ditto.
12135 * gdbcore.h: Ditto.
12136 * gdbtypes.c: Ditto.
12137 * gdbtypes.h: Ditto.
12138 * inf-ttrace.c: Ditto.
12139 * infcall.c: Ditto.
12143 * inline-frame.h: Ditto.
12144 * language.c: Ditto.
12145 * language.h: Ditto.
12146 * libunwind-frame.c: Ditto.
12147 * libunwind-frame.h: Ditto.
12148 * linespec.c: Ditto.
12149 * linux-nat.c: Ditto.
12150 * linux-nat.h: Ditto.
12151 * linux-thread-db.c: Ditto.
12152 * machoread.c: Ditto.
12153 * macroexp.c: Ditto.
12154 * macrotab.c: Ditto.
12157 * mdebugread.c: Ditto.
12158 * memattr.c: Ditto.
12159 * minsyms.c: Ditto.
12160 * monitor.c: Ditto.
12161 * monitor.h: Ditto.
12162 * objfiles.c: Ditto.
12163 * objfiles.h: Ditto.
12165 * p-typeprint.c: Ditto.
12166 * p-valprint.c: Ditto.
12168 * printcmd.c: Ditto.
12169 * proc-events.c: Ditto.
12171 * progspace.c: Ditto.
12172 * progspace.h: Ditto.
12173 * psympriv.h: Ditto.
12174 * psymtab.c: Ditto.
12176 * regcache.c: Ditto.
12177 * regcache.h: Ditto.
12178 * remote-fileio.c: Ditto.
12180 * ser-mingw.c: Ditto.
12181 * ser-tcp.c: Ditto.
12182 * ser-unix.c: Ditto.
12185 * solib-frv.c: Ditto.
12186 * solib-irix.c: Ditto.
12187 * solib-osf.c: Ditto.
12188 * solib-pa64.c: Ditto.
12189 * solib-som.c: Ditto.
12190 * solib-sunos.c: Ditto.
12191 * solib-svr4.c: Ditto.
12192 * solib-target.c: Ditto.
12194 * somread.c: Ditto.
12196 * stabsread.c: Ditto.
12197 * stabsread.c: Ditto.
12200 * symfile-mem.c: Ditto.
12201 * symfile.c: Ditto.
12202 * symfile.h: Ditto.
12203 * symmisc.c: Ditto.
12206 * target-descriptions.c: Ditto.
12207 * target-memory.c: Ditto.
12210 * terminal.h: Ditto.
12213 * tracepoint.c: Ditto.
12214 * tracepoint.h: Ditto.
12215 * ui-file.c: Ditto.
12216 * ui-file.h: Ditto.
12218 * user-regs.c: Ditto.
12219 * user-regs.h: Ditto.
12221 * valarith.c: Ditto.
12223 * valprint.c: Ditto.
12224 * valprint.h: Ditto.
12229 * xcoffread.c: Ditto.
12230 * xcoffsolib.c: Ditto.
12231 * xcoffsolib.h: Ditto.
12232 * xml-syscall.c: Ditto.
12233 * xml-tdesc.c: Ditto.
12235 2011-01-05 Michael Snyder <msnyder@vmware.com>
12237 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12238 * cli/cli-decode.c: Ditto.
12239 * cli/cli-dump.c: Ditto.
12240 * cli/cli-logging.c: Ditto.
12241 * cli/cli-script.c: Ditto.
12242 * cli/cli-setshow.c: Ditto.
12243 * common/signals.c: Ditto.
12244 * mi/mi-cmd-break.c: Ditto.
12245 * mi/mi-cmd-disas.c: Ditto.
12246 * mi/mi-cmd-stack.c: Ditto.
12247 * mi/mi-cmd-var.c: Ditto.
12248 * mi/mi-cmds.c: Ditto.
12249 * mi/mi-common.h: Ditto.
12250 * mi/mi-console.c: Ditto.
12251 * mi/mi-interp.c: Ditto.
12252 * mi/mi-main.c: Ditto.
12253 * osf-share/cma_attr.c: Ditto.
12254 * osf-share/cma_deb_core.h: Ditto.
12255 * osf-share/cma_debug_client.h: Ditto.
12256 * osf-share/cma_handle.h: Ditto.
12257 * osf-share/cma_mutex.h: Ditto.
12258 * osf-share/cma_stack_int.h: Ditto.
12259 * osf-share/cma_tcb_defs.h: Ditto.
12260 * python/py-auto-load.c: Ditto.
12261 * python/py-breakpoint.c: Ditto.
12262 * python/py-cmd.c: Ditto.
12263 * python/py-frame.c: Ditto.
12264 * python/py-objfile.c: Ditto.
12265 * python/py-param.c: Ditto.
12266 * python/py-progspace.c: Ditto.
12267 * python/py-symbol.c: Ditto.
12268 * python/py-value.c: Ditto.
12269 * python/python-internal.h: Ditto.
12270 * python/python.c: Ditto.
12271 * tui/tui-data.c: Ditto.
12272 * tui/tui-disasm.c: Ditto.
12273 * tui/tui-hooks.c: Ditto.
12274 * tui/tui-io.c: Ditto.
12275 * tui/tui-layout.c: Ditto.
12276 * tui/tui-regs.c: Ditto.
12277 * tui/tui-source.c: Ditto.
12278 * tui/tui-stack.c: Ditto.
12279 * tui/tui-win.c: Ditto.
12280 * tui/tui-windata.c: Ditto.
12281 * tui/tui-winsource.c: Ditto.
12283 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12285 * configure.ac, gdb.1: Copyright year update.
12287 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12289 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12290 this_pc_in_block, morestack_msym and morestack_name. Check for
12291 "__morestack" minimal symbol there.
12293 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12295 * symfile.c (find_sym_fns): Add call to dont_repeat.
12297 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12299 Copyright year update in most files (performed by copyright.sh).
12301 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12303 * top.c (print_gdb_version): Update copyright year in version output.
12305 For older changes see ChangeLog-2010.
12311 version-control: never