1 2011-12-11 Joel Brobecker <brobecker@adacore.com>
3 * ada-lang.c (struct ada_inferior_data) [exception_info]:
5 (exception_info): Delete.
6 (ada_exception_support_info_sniffer): Get exception_support_info
7 data from our per-inferior data. Adjust code accordingly.
8 (ada_unhandled_exception_name_addr_from_raise): Likewise.
9 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
10 (ada_executable_changed_observer): Delete.
11 (_initialize_ada_language): Remove call to
12 observer_attach_executable_changed.
14 2011-12-11 Joel Brobecker <brobecker@adacore.com>
16 * ada-lang.c (ada_has_this_exception_support): Raise an error
17 if we could find the Ada exception hook in the Ada runtime,
18 but no debugging info for that hook.
20 2011-12-11 Joel Brobecker <brobecker@adacore.com>
22 * ada-lang.c (ada_has_this_exception_support): New function,
23 extracted out of ada_exception_sal and ada_exception_sal.
24 (ada_exception_support_info_sniffer): Simplify by using
25 ada_has_this_exception_support.
26 (ada_exception_sal): Replace unnecessary checks by assertions.
27 Minor simplifications.
29 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
31 * breakpoint.c (update_global_location_list): Remove nested
32 definition of `b'(-Wshadow).
34 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
36 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
37 `error_flag'(-Wshadow).
39 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
41 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
44 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
46 * annotate.c (annotate_array_section_begin): Rename `index' to
49 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
51 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
54 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
56 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
57 `syscall' to `syscall_number'(-Wshadow).
59 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
61 * ada-lang.c (remove_extra_symbols): Rename `remove' to
64 2011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
66 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
69 2011-12-10 Doug Evans <dje@google.com>
71 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
72 debug_types_section. All uses updated.
73 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
74 to is_debug_types_section.
76 * python/py-auto-load.c (source_section_scripts): Call xfree
79 2011-12-10 Hui Zhu <teawater@gmail.com>
80 Yao Qi <yao@codesourcery.com>
82 * tracepoint.c (start_tracing): Clear `inserted' flag.
84 2011-12-10 Hui Zhu <teawater@gmail.com>
86 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
88 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
90 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
93 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
95 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
96 `marker' variables to `sal2' and `tpmarker' respectively
99 2011-12-09 Andrew Pinski <apinski@cavium.com>
101 * linespec.c (hash_address_entry): Use iterative_hash_object on each
102 field rather than the struct itself.
104 2011-12-09 Tom Tromey <tromey@redhat.com>
106 * breakpoint.c (compare_breakpoints): New function.
107 (clear_command): Remove duplicate breakpoints. Properly clean
110 2011-12-08 Maciej W. Rozycki <macro@mips.com>
111 Maciej W. Rozycki <macro@codesourcery.com>
113 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
114 address chunks retrieved from decoded lui/addiu pairs.
116 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
118 * mips-tdep.c (extended_offset): Correct calculation.
119 (unpack_mips16): Correct bitfield positions used for extraction
120 of the immediate argument; fix sign-extension of same.
121 (extended_mips16_next_pc): Correct B instruction's offset
122 calculation. Correct register decoding of the BEQZ and BNEZ
123 as well as jump-register instructions. Handle compact jumps.
125 2011-12-08 Tom Tromey <tromey@redhat.com>
127 * objfiles.h (struct objfile): Remove obsolete comment.
128 * objfiles.c (build_objfile_section_table): Remove obsolete
131 2011-12-07 Stan Shebs <stan@codesourcery.com>
133 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
134 maintainer of the tic6x target.
136 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
138 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
139 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
140 (arm_deal_with_atomic_sequence_raw): Likewise.
141 (arm_deal_with_atomic_sequence): Likewise.
142 (arm_software_single_step): Call it.
143 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
145 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
147 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
149 * s390-tdep.h: Likewise.
151 2011-12-07 Tristan Gingold <gingold@adacore.com>
153 * machoread.c (macho_symtab_read): Do not consider N_OPT as
154 a debugging stab. Improve complaint message.
156 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
158 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
159 load adjustment if still within the prologue.
161 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
163 * mips-tdep.c (mips32_next_pc): Fix floating point condition
166 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
168 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
169 of BLTZ* and BGEZ* instructions.
171 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
173 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
174 performed to determine whether an address refers to standard
176 (mips16_next_pc): Use mips_pc_is_mips16 instead of
179 2011-12-06 Pedro Alves <pedro@codesourcery.com>
181 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
182 (breakpoint_xfer_memory): ... this. Change prototype. Handle
184 * breakpoint.h (breakpoint_restore_shadows): Delete.
185 (breakpoint_xfer_memory): Declare.
186 * mem-break.c (default_memory_insert_breakpoint)
187 (default_memory_remove_breakpoint): Use target_write_raw_memory.
188 (memory_xfer_partial): Rename to ...
189 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
191 (memory_xfer_partial): New.
192 (target_write_raw_memory): New.
193 * target.h (target_write_raw_memory): New.
195 2011-12-06 Doug Evans <dje@google.com>
197 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
199 2011-12-06 Joel Brobecker <brobecker@acacore.com>
201 * language.h (struct language_defn): Add new component
202 la_symbol_name_compare.
203 * symfile.h (struct quick_symbol_functions): Update the profile
204 of parameter "name_matcher" for the expand_symtabs_matching
205 method. Update the documentation accordingly.
206 * ada-lang.h (ada_name_for_lookup): Add declaration.
207 * ada-lang.c (ada_name_for_lookup): New function, extracted out
208 from ada_iterate_over_symbols.
209 (ada_iterate_over_symbols): Do not encode symbol name anymore.
210 (ada_expand_partial_symbol_name): Adjust profile.
211 (ada_language_defn): Add value for la_symbol_name_compare field.
212 * linespec.c: #include "ada-lang.h".
213 (iterate_name_matcher): Add language parameter. Replace call
214 to strcmp_iw by call to language->la_symbol_name_compare.
215 (decode_variable): Encode COPY if current language is Ada.
216 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
217 of name_matcher parameter. Adjust call to name_matcher.
218 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
219 (expand_partial_symbol_names): Update profile of parameter "fun".
220 * psymtab.h (expand_partial_symbol_names): Update profile of
222 * symtab.c (demangle_for_lookup): Update function documentation.
223 (search_symbols_name_matches): Add language parameter.
224 (expand_partial_symbol_name): Likewise.
225 * c-lang.c (c_language_defn, cplus_language_defn)
226 (asm_language_defn, minimal_language_defn): Add value for
227 la_symbol_name_compare field.
228 * d-lang.c (d_language_defn): Likewise.
229 * f-lang.c (f_language_defn): Ditto.
230 * jv-lang.c (java_language_defn): Ditto.
231 * m2-lang.c (m2_language_defn): Ditto.
232 * objc-lang.c (objc_language_defn): Ditto.
233 * opencl-lang.c (opencl_language_defn): Ditto.
234 * p-lang.c (pascal_language_defn): Ditto.
235 * language.c (unknown_language_defn, auto_language_defn)
236 (local_language_defn): Ditto.
238 2011-12-06 Tom Tromey <tromey@redhat.com>
240 * linespec.c (iterate_over_all_matching_symtabs): Use
241 LA_ITERATE_OVER_SYMBOLS.
242 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
243 (find_function_symbols, decode_variable): Remove Ada special
245 * language.h (struct language_defn) <la_iterate_over_symbols>: New
247 (LA_ITERATE_OVER_SYMBOLS): New macro.
248 * language.c (unknown_language_defn, auto_language_defn)
249 (local_language_defn): Update.
250 * c-lang.c (c_language_defn, cplus_language_defn)
251 (asm_language_defn, minimal_language_defn): Update.
252 * d-lang.c (d_language_defn): Update.
253 * f-lang.c (f_language_defn): Update.
254 * jv-lang.c (java_language_defn): Update.
255 * m2-lang.c (m2_language_defn): Update.
256 * objc-lang.c (objc_language_defn): Update.
257 * opencl-lang.c (opencl_language_defn): Update.
258 * p-lang.c (pascal_language_defn): Update.
259 * ada-lang.c (ada_iterate_over_symbols): New function.
260 (ada_language_defn): Update.
262 2011-12-06 Tom Tromey <tromey@redhat.com>
263 Joel Brobecker <brobecker@acacore.com>
265 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
266 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
267 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
268 PR shlibs/8929, PR shlibs/7393:
269 * python/py-type.c (compare_maybe_null_strings): Rename from
271 (check_types_equal): Update.
272 * utils.c (compare_strings): New function.
273 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
275 * tracepoint.c (scope_info): Update.
276 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
277 * symtab.h (iterate_over_minimal_symbols)
278 (iterate_over_some_symtabs, iterate_over_symtabs)
279 (find_pcs_for_symtab_line, iterate_over_symbols)
280 (demangle_for_lookup): Declare.
281 (expand_line_sal): Remove.
282 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
283 (lookup_symtab_callback): New functions.
284 (lookup_symtab): Rewrite.
285 (demangle_for_lookup): New function, extract from
286 lookup_symbol_in_language.
287 (lookup_symbol_in_language): Use it.
288 (iterate_over_symbols): New function.
289 (find_line_symtab): Update.
290 (find_pcs_for_symtab_line): New functions.
291 (find_line_common): Add 'start' argument.
292 (decode_line_spec): Update. Change argument to 'flags', change
294 (append_expanded_sal): Remove.
295 (append_exact_match_to_sals): Remove.
296 (expand_line_sal): Remove.
297 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
299 <map_symtabs_matching_filename>: New field.
300 * stack.c (func_command): Only look in the current program space.
301 Use DECODE_LINE_FUNFIRSTLINE.
302 * source.c (line_info): Set pspace on sal. Check program space in
303 the loop. Use DECODE_LINE_LIST_MODE.
304 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
305 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
306 * python/python.c (gdbpy_decode_line): Update.
307 * psymtab.c (partial_map_expand_apply): New function.
308 (partial_map_symtabs_matching_filename): Rename from
309 lookup_partial_symbol. Update arguments.
310 (lookup_symtab_via_partial_symtab): Remove.
311 (psym_functions): Update.
312 * objc-lang.h (parse_selector, parse_method): Don't declare.
314 * objc-lang.c (parse_selector, parse_method): Now static.
315 (find_methods): Change arguments. Fill in a vector of symbol
317 (uniquify_strings): New function.
318 (find_imps): Change arguments.
319 * minsyms.c (iterate_over_minimal_symbols): New function.
320 * linespec.h (enum decode_line_flags): New.
321 (struct linespec_sals): New.
322 (struct linespec_result) <canonical>: Remove.
323 <pre_expanded, addr_string, sals>: New fields.
324 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
325 (decode_line_full): Declare.
326 (decode_line_1): Update.
327 * linespec.c (struct address_entry, struct linespec_state, struct
328 collect_info): New types.
329 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
330 (eq_address_entry, maybe_add_address): New functions.
331 (total_number_of_methods): Remove.
332 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
334 (find_methods): Change arguments. Don't canonicalize input.
336 (add_matching_methods, add_constructors)
337 (build_canonical_line_spec): Remove.
338 (filter_results, convert_results_to_lsals): New functions.
339 (decode_line_2): Change arguments. Rewrite for new data
341 (decode_line_internal): Rename from decode_line_1. Change
342 arguments. Add cleanups. Update for new data structures.
343 (linespec_state_constructor, linespec_state_destructor)
344 (decode_line_full, decode_line_1): New functions.
345 (decode_indirect): Change arguments. Update.
346 (locate_first_half): Use skip_spaces.
347 (decode_objc): Change arguments. Update for new data structures.
349 (decode_compound): Change arguments. Add cleanups. Remove
350 fallback code, replace with error.
351 (struct decode_compound_collector): New type.
352 (collect_one_symbol): New function.
353 (lookup_prefix_sym): Change arguments. Update.
354 (compare_symbol_name, add_all_symbol_names_from_pspace)
355 (find_superclass_methods ): New functions.
356 (find_method): Rewrite.
357 (struct symtab_collector): New type.
358 (add_symtabs_to_list, collect_symtabs_from_filename): New
360 (symtabs_from_filename): Change API. Rename from
361 symtab_from_filename.
362 (collect_function_symbols): New function.
363 (find_function_symbols): Change API. Rename from
364 find_function_symbol. Rewrite.
365 (decode_all_digits): Change arguments. Rewrite.
366 (decode_dollar): Change arguments. Use decode_variable.
367 (decode_label): Change arguments. Rewrite.
368 (collect_symbols): New function.
369 (minsym_found): Change arguments. Rewrite.
370 (check_minsym, search_minsyms_for_name)
371 (add_matching_symbols_to_info): New function.
372 (decode_variable): Change arguments. Iterate over all symbols.
373 (symbol_found): Remove.
374 (symbol_to_sal): New function.
375 (init_linespec_result, destroy_linespec_result)
376 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
378 (decode_digits_list_mode, decode_digits_ordinary): New functions.
379 * dwarf2read.c (dw2_map_expand_apply): New function.
380 (dw2_map_symtabs_matching_filename): Rename from
381 dw2_lookup_symtab. Change arguments.
382 (dwarf2_gdb_index_functions): Update.
383 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
384 * defs.h (compare_strings): Declare.
385 * cli/cli-cmds.c (compare_strings): Move to utils.c.
386 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
388 (compare_symtabs, filter_sals): New functions.
389 * breakpoint.h (struct bp_location) <line_number, source_file>:
391 (struct breakpoint) <line_number, source_file>: Remove.
393 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
394 (momentary_breakpoint_from_master, add_location_to_breakpoint):
395 Update for changes to locations.
396 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
398 (create_breakpoint_sal): Add 'filter' argument.
399 (remove_sal, expand_line_sal_maybe): Remove.
400 (create_breakpoints_sal): Remove 'sals' argument. Handle
401 pre-expanded sals and the filter.
402 (parse_breakpoint_sals): Use decode_line_full.
403 (check_fast_tracepoint_sals): Use get_sal_arch.
404 (create_breakpoint): Create a linespec_sals. Update.
405 (break_range_command): Use decode_line_full. Update.
406 (until_break_command): Update.
407 (clear_command): Update match conditions for linespec.c changes.
408 Use DECODE_LINE_LIST_MODE.
409 (say_where): Update for changes to locations.
410 (bp_location_dtor): Free 'source_file'.
411 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
412 (update_static_tracepoint): Update for changes to locations.
413 (update_breakpoint_locations): Disable ranged breakpoint if too
414 many locations match. Update.
415 (addr_string_to_sals): Use decode_line_full. Resolve all sal
417 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
418 (decode_line_spec_1): Update. Change argument name to 'flags',
419 change interpretation.
420 * block.h (block_containing_function): Declare.
421 * block.c (block_containing_function): New function.
422 * skip.c (skip_function_command): Update.
423 (skip_re_set): Update.
424 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
425 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
428 2011-12-06 Tom Tromey <tromey@redhat.com>
430 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
431 breakpoint's pspace to be NULL.
432 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
433 * breakpoint.c (init_raw_breakpoint): Conditionally set
435 (init_breakpoint_sal): Don't set breakpoint's pspace.
436 (prepare_re_set_context): Conditionally switch program space.
437 (addr_string_to_sals): Check executing_startup on location's
440 2011-12-06 Tom Tromey <tromey@redhat.com>
442 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
443 * breakpoint.c (should_be_inserted): Explicitly check if program
444 space is executing startup.
445 (describe_other_breakpoints): Update.
446 (disable_breakpoints_before_startup): Change executing_startup
447 earlier. Remove loop.
448 (enable_breakpoints_after_startup): Likewise.
449 (init_breakpoint_sal): Don't use bp_startup_disabled.
450 (create_breakpoint): Don't use bp_startup_disabled.
451 (update_global_location_list): Use should_be_inserted.
452 (bkpt_re_set): Update.
454 2011-12-06 Tom Tromey <tromey@redhat.com>
456 * python/lib/gdb/command/pretty_printers.py
457 (InfoPrettyPrinter.invoke1): Remove extra double quote.
459 2011-12-06 Tom Tromey <tromey@redhat.com>
463 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
465 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
466 (S390_LAST_BREAK_REGNUM): Likewise.
467 (S390_SYSTEM_CALL_REGNUM): Likewise.
468 (S390_NUM_REGS): Update.
470 (s390_regmap_last_break): Add declaration.
471 (s390x_regmap_last_break): Likewise.
472 (s390_regmap_system_call): Likewise.
474 (tdesc_s390_linux32v1): Add declaration.
475 (tdesc_s390_linux32v2): Likewise.
476 (tdesc_s390_linux64v1): Likewise.
477 (tdesc_s390_linux64v2): Likewise.
478 (tdesc_s390x_linux64v1): Likewise.
479 (tdesc_s390x_linux64v2): Likewise.
481 * s390-tdep.c: Include new target description files
482 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
483 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
484 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
485 (s390_cannot_store_register): New function.
486 (s390_write_pc): Likewise.
487 (s390_dwarf_regmap): Add fields for new registers.
488 (s390_regmap_gregset): Likewise.
489 (s390x_regmap_gregset): Likewise.
490 (s390_regmap_fpregset): Likewise.
491 (s390_regmap_upper): Likewise.
492 (s390_regmap_last_break): New variable.
493 (s390x_regmap_last_break): Likewise.
494 (s390_regmap_system_call): Likewise.
495 (s390_last_break_regset): Likewise.
496 (s390x_last_break_regset): Likewise.
497 (s390_system_call_regset): Likewise.
498 (s390_upper_regset_sections): Rename to ...
499 (s390_linux64_regset_sections): ... this.
500 (s390_linux32_regset_sections): New variable.
501 (s390x_linux64_regset_sections): Likewise.
502 (s390_linux32v1_regset_sections): Likewise.
503 (s390_linux32v2_regset_sections): Likewise.
504 (s390_linux64v1_regset_sections): Likewise.
505 (s390_linux64v2_regset_sections): Likewise.
506 (s390x_linux64v1_regset_sections): Likewise.
507 (s390x_linux64v2_regset_sections): Likewise.
508 (s390_regset_from_core_section): Handle .reg-s390-last-break and
509 .reg-s390-system-call core file sections.
510 (s390_core_read_description): Check for presence of
511 .reg-s390-last-break and .reg-s390-system-call core file
512 sections and return appropriate target description.
513 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
514 "last_break" and "system_call" in target description. Install
515 appropriate gdbarch_core_regset_sections array.
516 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
517 (_initialize_s390_tdep): Initialize additional target descriptions.
519 * s390-nat.c: Include "elf/common.h".
520 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
521 (have_regset_last_break): New static variable.
522 (have_regset_system_call): Likewise.
523 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
524 (s390_native_collect): Likewise.
525 (fetch_regset, store_regset, check_regset): New functions.
526 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
527 and S390_SYSTEM_CALL_REGNUM.
528 (s390_linux_store_inferior_registers): Likewise.
529 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
530 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
532 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
533 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
534 (s390-linux32v1-expedite): Define.
535 (s390-linux32v2-expedite): Likewise.
536 (s390-linux64v1-expedite): Likewise.
537 (s390-linux64v2-expedite): Likewise.
538 (s390x-linux64v1-expedite): Likewise.
539 (s390x-linux64v2-expedite): Likewise.
541 * features/s390-linux32.xml: Add orig_r2 register.
542 * features/s390-linux64.xml: Likewise.
543 * features/s390x-linux64.xml: Likewise.
544 * features/s390-linux32v1.xml: New file.
545 * features/s390-linux32v2.xml: Likewise.
546 * features/s390-linux64v1.xml: Likewise.
547 * features/s390-linux64v2.xml: Likewise.
548 * features/s390x-linux64v1.xml: Likewise.
549 * features/s390x-linux64v2.xml: Likewise.
551 * features/s390-linux32.c: Regenerate.
552 * features/s390-linux64.c: Likewise.
553 * features/s390x-linux64.c: Likewise.
554 * features/s390-linux32v1.c: New generated file.
555 * features/s390-linux32v2.c: Likewise.
556 * features/s390-linux64v1.c: Likewise.
557 * features/s390-linux64v2.c: Likewise.
558 * features/s390x-linux64v1.c: Likewise.
559 * features/s390x-linux64v2.c: Likewise.
561 * regformats/s390-linux32.dat: Regenerate.
562 * regformats/s390-linux64.dat: Regenerate.
563 * regformats/s390x-linux64.dat: Regenerate.
564 * regformats/s390-linux32v1.dat: New generated file.
565 * regformats/s390-linux32v2.dat: Likewise.
566 * regformats/s390-linux64v1.dat: Likewise.
567 * regformats/s390-linux64v2.dat: Likewise.
568 * regformats/s390x-linux64v1.dat: Likewise.
569 * regformats/s390x-linux64v2.dat: Likewise.
571 2011-12-05 Pedro Alves <pedro@codesourcery.com>
573 * linux-nat.c (resume_stopped_resumed_lwps): Call
576 2011-12-05 Pedro Alves <pedro@codesourcery.com>
578 * breakpoint.c: Include record.h.
579 (breakpoints_always_inserted_mode): Return false when the record
582 2011-12-05 Pedro Alves <pedro@codesourcery.com>
584 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
585 Reinstate perror_with_name call on ptrace error. Remove #if 0.
586 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
587 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
589 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
591 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
594 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
596 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
598 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
600 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
603 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
605 Fix compilation --without-expat.
606 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
608 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
610 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
611 Jan Kratochvil <jan.kratochvil@redhat.com>
613 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
614 * features/library-list-svr4.dtd: New file.
615 * remote.c (PACKET_qXfer_libraries_svr4): New.
616 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
617 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
618 * solib-svr4.c (struct svr4_library_list): New.
619 [HAVE_LIBEXPAT]: Include xml-support.h.
620 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
621 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
622 [HAVE_LIBEXPAT] (svr4_library_list_children)
623 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
624 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
625 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
626 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
627 (svr4_read_so_list): Extend the corruption message by addresses.
628 (svr4_current_sos): New variable library_list, call
629 svr4_current_sos_via_xfer_libraries.
630 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
632 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
635 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
636 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
638 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
641 * dwarf2read.c (process_psymtab_comp_unit): Set
642 PSYMTABS_ADDRMAP_SUPPORTED.
643 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
644 validity. New field psymtabs_addrmap_supported.
645 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
646 psymtabs_addrmap_supported.
647 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
648 !PSYMTABS_ADDRMAP_SUPPORTED.
649 (dump_psymtab, maintenance_info_psymtabs): Print also
650 psymtabs_addrmap_supported.
652 2011-12-01 Doug Evans <dje@google.com>
654 * python/py-type.c (type_object_methods): Fix "array" doc string.
656 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
658 * source.c (print_source_lines_base): Fix missing braces on else
659 clause leading to additional output.
661 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
663 * s390-nat.c (SUBOFF): Remove.
664 (s390_native_supply, s390_native_collect): New functions.
665 (supply_gregset, supply_fpregset): Use s390_native_supply.
666 (fill_gregset, fill_fpregset): Use s390_native_collect.
668 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
669 (s390_unwind_pseudo_register): New function.
670 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
671 registers instead of PC and CC.
672 (s390_backchain_frame_unwind_cache): Likewise.
673 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
675 (s390_trad_frame_prev_register): New function.
676 (s390_frame_prev_register): Use it.
677 (s390_sigtramp_frame_prev_register): Likewise.
678 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
679 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
680 special callback to unwind any pseudo.
682 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
683 * features/s390-core64.xml: Likewise.
684 * features/s390x-core64.xml: Likewise.
685 * features/s390-linux32.c: Regenerate.
686 * features/s390-linux64.c: Likewise.
687 * features/s390x-linux64.c: Likewise.
689 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
691 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
693 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
695 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
696 instruction. Add more diagnostic output.
698 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
700 * MAINTAINERS (Write After Approval): Add myself to the list.
702 2011-11-29 Sanjoy Das <sdas@igalia.com>
704 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
705 (jit_bfd_try_read_symtab): Fix comments.
707 2011-11-28 DJ Delorie <dj@redhat.com>
709 * NEWS: Mention RL78 simulator.
711 2011-11-28 Joel Brobecker <brobecker@adacore.com>
713 * symfile.h (struct quick_symbol_functions): Fix the documentation
714 of field map_matching_symbols, as symbols are sorted using
715 strcmp_iw_ordered, not strcmp_iw.
717 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
719 * symfile.h (struct quick_symbol_functions): Update the
720 documentation for field map_matching_symbols.
722 2011-11-28 Joel Brobecker <brobecker@adacore.com>
724 * ada-lang.c (compare_names): Fix wrong return value in case
725 string1 starts with the same contents as string2, followed
726 by an underscore that do not start a symbol name suffix.
728 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
733 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
734 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
735 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
737 * python/py-type.c (typy_strip_typedefs): Ditto.
738 (typy_legacy_template_argument): Ditto.
739 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
740 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
742 2011-11-27 Joel Brobecker <brobecker@acacore.com>
744 * remote.c (remote_get_tracepoint_status): Delete addrbuf
745 local variable. Avoid use of sprintf_vma.
747 2011-11-27 Sanjoy Das <sdas@igalia.com>
749 Fix regression in jit.exp.
750 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
751 (jit_register_code): Set the jit_objfile_data field to the correct
754 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
756 * alpha-tdep.c (br_opcode): New.
757 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
758 (alpha_deal_with_atomic_sequence): New function.
759 (alpha_gdbarch_init): Handle single stepping of atomic sequences
760 with alpha_deal_with_atomic_sequence.
762 2011-11-24 Tristan Gingold <gingold@adacore.com>
764 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
765 fields. Add oso_sym, end_sym and nbr_syms.
766 (macho_register_oso): Change interface.
767 (macho_symtab_add_minsym): New function.
768 (macho_symtab_read): Rewritten.
769 (get_archive_prefix_len): Remove trailing blanks.
770 (oso_el_compare_name): Add comment.
771 (struct macho_sym_hash_entry): New structure.
772 (macho_relocate_common_syms): Remove.
773 (macho_sym_hash_newfunc): New function.
774 (macho_resolve_oso_sym_with_minsym): Likewise.
775 (macho_add_oso_symfile): Rewritten.
776 (macho_symfile_read_all_oso): Remove trailing blanks.
777 Adjust code to free oso vector.
778 (macho_symfile_read): Likewise.
779 Move code to initialize minimal symbol
781 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
783 * mips-tdep.c (extended_offset): Fix formatting.
785 2011-11-23 Doug Evans <dje@google.com>
787 * dwarf2read.c (dw2_lookup_symtab): Add comment.
788 (dw2_expand_symtabs_with_filename): Ditto.
789 (dw2_expand_symtabs_matching): Ditto.
790 (dw2_map_symbol_filenames): Ditto.
792 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
794 * ada-lang.c (assign_aggregate): Minor reformatting.
796 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
798 * ada-lang.c (assign_aggregate): Remove declaration of local
799 variable `i' which is shadowing another variable with the same
800 name declared in the outer scope.
802 2011-11-23 Joel Brobecker <brobecker@adacore.com>
804 * ada-lang.c (get_base_type): Renames base_type. Adjust all
805 calls throughout this file.
807 2011-11-23 Joel Brobecker <brobecker@adacore.com>
809 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
812 2011-11-22 Tom Tromey <tromey@redhat.com>
815 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
816 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
817 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
818 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
819 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
820 (print_it_catch_syscall, print_it_catch_exec)
821 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
822 (bpstat_print): Add 'kind' argument. Handle
823 TARGET_WAITKIND_LOADED.
824 * infrun.c (normal_stop): Update for bpstat_print change. Don't
825 handle TARGET_WAITKIND_LOADED here.
826 * breakpoint.h (bpstat_print): Update.
828 2011-11-22 Tom Tromey <tromey@redhat.com>
830 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
832 2011-11-22 Tom Tromey <tromey@redhat.com>
834 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
835 Use static_assert to check the size of
836 async_reason_string_lookup.
837 * common/gdb_assert.h (static_assert): New macro.
839 2011-11-22 Alan Modra <amodra@gmail.com>
841 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
842 destination calculation. Don't expect >> to sign extend. Don't
843 add a break if branch lands inside the sequence anywhere.
845 2011-11-21 Keith Seitz <keiths@redhat.com>
847 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
848 -var-evaluate-expression of an enumeration and fix expected result.
849 * gdb.mi/mi2-varvdisplay.exp: Likewise.
851 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
853 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
854 the case where osdata->items is empty. Rename column names to a
855 canonical form to avoid problems with unusual column names.
857 2011-11-21 Yao Qi <yao@codesourcery.com>
859 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
861 2011-11-20 Stan Shebs <stan@codesourcery.com>
863 * NEWS: Mention tracepoint additions.
864 * breakpoint.h (struct tracepoint): New field traceframe_usage.
865 * breakpoint.c (print_one_breakpoint_location): Identify
866 tracepoints as such when reporting hit counts, report
868 (create_tracepoint_from_upload): Copy status info.
869 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
870 add fields user_name, notes, start_time, stop_time.
871 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
872 * tracepoint.c (trace_user): New global.
873 (trace_notes): New global.
874 (trace_stop_notes): New global.
875 (start_tracing): Add argument and trace note handling.
876 (stop_tracing): Ditto.
877 (trace_start_command): Add notes argument.
878 (trace_stop_command): Ditto.
879 (trace_status_command): Report additional status info.
880 (trace_status_mi): Similarly.
881 (trace_save): Update, record tracepoint status.
882 (set_disconnected_tracing): Call target method directly.
883 (send_disconnected_tracing_value): Remove.
884 (set_trace_user): New function.
885 (set_trace_notes): New function.
886 (set_trace_stop_notes): New function.
887 (parse_trace_status): Handle additional status.
888 (parse_tracepoint_status): New function.
889 (parse_tracepoint_definition): Call it.
890 (tfile_get_tracepoint_status): New function.
891 (init_tfile_ops): Use it.
892 (_initialize_tracepoint): Add new setshows.
893 * target.h (struct target_ops): New methods to_get_tracepoint_status
894 and to_set_trace_notes.
895 (target_get_tracepoint_status): New macro.
896 (target_set_trace_notes): New macro.
897 * target.c (update_current_target): Add new methods.
898 * remote.c (remote_get_tracepoint_status): New function.
899 (remote_set_trace_notes): New function.
900 (init_remote_ops): Add them.
901 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
902 (mi_cmd_trace_stop): Ditto.
904 2011-11-20 Sanjoy Das <sdas@igalia.com>
906 * jit.c: Include regcache.h.
907 (jit_gdbarch_data, jit_frame_unwind): New static variables.
908 (jit_unwind_reg_set_impl, free_reg_value_impl)
909 (jit_unwind_reg_get_impl, jit_frame_sniffer)
910 (jit_frame_unwind_stop_reason, jit_frame_this_id)
911 (jit_frame_prev_register, jit_dealloc_cache)
912 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
913 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
914 jit_prepend_unwinder.
915 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
917 2011-11-20 Sanjoy Das <sdas@igalia.com>
919 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
920 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
921 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
922 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
923 (finalize_symtab, jit_object_close_impl)
924 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
925 (free_objfile_data): New functions.
926 (_initialize_jit): Register jit_objfile_data with a proper cleanup
929 2011-11-20 Sanjoy Das <sdas@igalia.com>
931 * jit.c: Include gdb-dlfcn.h.
932 (loaded_jit_reader, reader_init_fn_sym): New static variables.
933 (jit_reader_load, jit_reader_load_command)
934 (jit_reader_unload_command): New functions.
935 (_initialize_jit): Add commands "jit-reader-load" and
938 2011-11-20 Sanjoy Das <sdas@igalia.com>
940 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
941 * config.in: Add new #define HAVE_LIBDL.
942 * configure.ac: Add check for -ldl.
943 * configure: Re-generated by autoconf.
944 * gdb-dlfcn.c: New file.
945 * gdb-dlfcn.h: New file.
947 2011-11-20 Sanjoy Das <sdas@igalia.com>
949 * config.in: Add new #defines: JIT_READER_DIR and
950 JIT_READER_DIR_RELOCATABLE.
951 * configure.ac: New GDB directory entry for jit-reader-dir.
952 * configure: Re-generated by autoconf.
953 * jit.c: New static variable: const char *jit_reader_dir.
954 (_initialize_jit): Relocate jit_reader_dir.
956 2011-11-20 Sanjoy Das <sdas@igalia.com>
958 * Makefile.in: Add jit-reader.h as a header. Have it installed in
960 * configure.ac: Generate a correct value for TARGET_PTR for
961 jit-reader.h. Tell configure to generate jit-reader.h from
963 * configure: Re-generated by autoconf.
964 * jit-reader.in: New file.
965 * jit.c: Include jit-reader.h.
967 2011-11-20 Sanjoy Das <sdas@igalia.com>
969 * MAINTAINERS (Write After Approval): Add myself to the list.
971 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
973 * findvar.c (read_frame_register_value): Respect value_offset
974 of the register value. Remove big-endian special case.
976 2011-11-18 Tom Tromey <tromey@redhat.com>
979 * remote.c (putpkt_for_catch_errors): New function.
980 (remote_kill): Use it.
982 2011-11-18 Yao Qi <yao@codesourcery.com>
984 * breakpoint.c (create_breakpoint): Produce query message according to
986 Allocate tracepoint per correct type.
987 Don't check SALs for pending fast tracepoints.
988 * tracepoint.c (process_tracepoint_on_disconnect): New.
989 (disconnect_tracing): Call process_tracepoint_on_disconnect.
991 2011-11-18 Yao Qi <yao@codesourcery.com>
993 * breakpoint.c (install_breakpoint): Add one more parameter so that
994 update_global_location_list is called conditionally.
995 (create_fork_vfork_event_catchpoint): Update.
996 (create_syscall_event_catchpoint): Update.
997 (create_breakpoint_sal): Update.
998 (create_breakpoint_sal): Update. Call do_cleanups before
1000 * ada-lang.c (create_ada_exception_catchpoint): Update.
1001 * breakpoint.h (install_breakpoint): Update declaration.
1003 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1005 * spu-tdep.c (spu_return_value): Fix handling of
1006 TYPE_CALLING_CONVENTION annotation.
1008 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1010 * skip.c (skip_function_command): Work around uninitialized
1013 2011-11-16 David S. Miller <davem@davemloft.net>
1015 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1016 'tv_usec' to long for printf since these fields have a type which
1019 2011-11-15 Doug Evans <dje@google.com>
1021 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1023 2011-11-15 Paul Koning <paul_koning@dell.com>
1025 * python/py-type.c (typy_get_composite): New function.
1026 (typy_nonzero): New function.
1027 (typy_values): Rename from typy_fields.
1028 (typy_fields): New function.
1029 (typy_length): Raise exception if not struct, union, or enum type.
1030 (typy_getitem): Ditto.
1031 (typy_has_key): Ditto.
1032 (typy_make_iter): Ditto.
1034 2011-11-15 Doug Evans <dje@google.com>
1036 * NEWS: Mention new parameter basenames-may-differ.
1037 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1038 ! basenames_may_differ.
1039 * psymtab.c (lookup_partial_symtab): Ditto.
1040 * symtab.c (lookup_symtab): Ditto.
1041 (basenames_may_differ): New global.
1042 (_initialize_symtab): New parameter basenames-may-differ.
1043 * symtab.h (basenames_may_differ): Declare.
1045 2011-11-15 Pedro Alves <pedro@codesourcery.com>
1046 Luis Machado <lgustavo@codesourcery.com>
1048 * auxv.c: Include observer.h.
1049 (auxv_inferior_data_cleanup): New.
1050 (invalidate_auxv_cache_inf): New.
1051 (invalidate_auxv_cache): New.
1052 (get_auxv_inferior_data): New.
1053 (auxv_inferior_data): New static global.
1054 (auxv_info): New structure.
1055 (target_auxv_search): Use get_auxv_inferior_data instead of
1056 target_read_alloc and don't free cached buffers.
1057 (fprint_target_auxv): Likewise
1058 (_initialize_auxv): Register per-inferior auxv cache and register
1059 observers to invalidate auxv cache when needed.
1061 2011-11-14 Doug Evans <dje@google.com>
1063 Make "!" an alias for "shell".
1064 * NEWS: Add mention.
1065 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1066 adding "!" command, always add it.
1067 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1068 command of length one.
1070 2011-11-14 Stan Shebs <stan@codesourcery.com>
1071 Kwok Cheung Yeung <kcy@codesourcery.com>
1073 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1074 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1075 the minimum instruction size for fast tracepoints.
1076 * target.h (struct target_ops): Add new method
1077 to_get_min_fast_tracepoint_insn_len.
1078 (target_get_min_fast_tracepoint_insn_len): New.
1079 * target.c (update_current_target): Set up new target operation.
1080 * remote.c (remote_write_bytes_aux): Fix typo.
1081 (remote_get_min_fast_tracepoint_insn_len): New.
1082 (init_remote_ops): Initialize new field.
1084 2011-11-14 Tom Tromey <tromey@redhat.com>
1086 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1087 (encode_actions): Likewise.
1089 2011-11-14 Yao Qi <yao@codesourcery.com>
1091 * remote.c (struct remote_state): <install_in_trace> new field.
1092 (PACKET_InstallInTrace): New enum value.
1093 (remote_install_in_trace_feature): Support InstallInTrace.
1094 (remote_supports_install_in_trace): Likewise.
1095 (remote_protocol_features): Likewise.
1096 (_initialize_remote): Likewise.
1097 (remote_can_download_tracepoint): New.
1098 * target.h (struct target): New field
1099 `to_can_download_tracepoint'.
1100 (target_can_download_tracepoint): New macro.
1101 * target.c (update_current_target): Update.
1102 * breakpoint.h (struct bp_location): Add comment on field
1104 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1106 (remove_breakpoints): Don't remove tracepoints.
1107 (tracepoint_locations_match ): New.
1108 (breakpoint_locations_match): Call it.
1109 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1110 (download_tracepoint_locations): New.
1111 (update_global_location_list): Call it.
1112 * tracepoint.c (find_matching_tracepoint): Delete.
1113 (find_matching_tracepoint_location): Renamed from
1114 find_matching_tracepoint. Return bp_location rather than
1116 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1117 tracepoint is found.
1119 2011-11-14 Yao Qi <yao@codesourcery.com>
1121 * target.h (struct target): <to_download_tracepoint> Change type
1122 of parameter from tracepoint to bp_location.
1123 * target.c (update_current_target): Update.
1124 * tracepoint.c (start_tracing): Update.
1125 * remote.c (remote_download_tracepoint): Remove loop for each location
1128 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1130 * i386-nat.c (i386_insert_hw_breakpoint): Call
1131 i386_update_inferior_debug_regs.
1132 (i386_remove_hw_breakpoint): Likewise.
1134 2011-11-14 Yao Qi <yao@codesourcery.com>
1136 * breakpoint.c (init_raw_breakpoint): Call
1137 add_location_to_breakpoint to replace duplicated code.
1138 (add_location_to_breakpoint): Adjust the breakpoint's
1139 address prior to allocating a location.
1141 2011-11-12 Matt Rice <ratmice@gmail.com>
1143 * macrocmd.c (macro_no_macro_info): New function.
1144 (macro_expand_command): Use macro_no_macro_info.
1145 (macro_expand_once_command): Ditto.
1146 (info_macro_command): Add argument processing,
1147 move info_definitions_command here.
1148 (_initialize_macrocmd): Remove info definitions command.
1149 Add arguments to info macro help text.
1150 * NEWS: Replace info definitions command with new info macro options.
1152 2011-11-11 Keith Seitz <keiths@redhat.com>
1155 * linespec.c (locate_first_half): Keep ':' if it looks
1156 like it could be part of a Windows path starting with
1159 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1161 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1162 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1164 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1166 * target.c (target_waitstatus_to_string): Handle
1167 TARGET_WAITKIND_NO_RESUMED.
1169 2011-11-10 Doug Evans <dje@google.com>
1171 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1173 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1174 (map_partial_symbol_filenames): Ditto. All callers updated.
1175 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1176 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1177 parameter need_fullname.
1179 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1180 * source.c (symtab_to_fullname): Ditto.
1182 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1183 * gdb-demangle.h: ... here. New file.
1184 * demangle.c: #include "gdb-demangle.h".
1185 (_initialize_demangler): Use initialize_file_ftype for prototype.
1186 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1187 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1189 * utils.c: Update. #include "gdb-demangle.h".
1190 * symtab.h (asm_demangle): Delete.
1191 (demangle): Move declaration next to use.
1192 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1193 * dwarf2read.c: #include "gdb-demangle.h".
1194 * gnu-v2-abi.c: Ditto.
1195 * jv-typeprint.c: Ditto.
1196 * mdebugread.c: Ditto.
1197 * p-typeprint.c: Ditto.
1198 * stabsread.c: Ditto.
1199 * printcmd.c: Ditto.
1200 (asm_demangle): Delete declaration.
1201 * tui/tui-stack.c: #include "gdb-demangle.h".
1203 * python/py-type.c (typy_fields_items): Call check_typedef.
1205 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1207 * findvar.c (read_frame_register_value): Read the correct bytes
1208 from registers on big-endian architectures.
1210 2011-11-10 Tom Tromey <tromey@redhat.com>
1212 * procfs.c (load_syscalls): Make a cleanup.
1213 (open_procinfo_files): fd==0 is ok.
1215 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1217 * procfs.c (iterate_over_mappings): Call do_cleanups before
1220 2011-11-09 Doug Evans <dje@google.com>
1222 * gdbtypes.c (check_typedef): Document that this function can
1225 2011-11-09 Tom Tromey <tromey@redhat.com>
1228 * valops.c (value_full_object): Return early if real type is
1229 smaller than the enclosing type.
1231 2011-11-08 Yao Qi <yao@codesourcery.com>
1233 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1235 2011-11-08 Meador Inge <meadori@codesourcery.com>
1237 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1238 register when the frame can't be determined.
1239 * arm-tdep.c (arm_analyze_prologue): Ditto.
1241 2011-11-07 Stan Shebs <stan@codesourcery.com>
1243 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1245 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1247 * infrun.c (handle_inferior_event): Minor reformatting.
1249 2011-11-05 Doug Evans <dje@google.com>
1251 * source.c (forget_cached_source_info_for_objfile): Move call to
1252 objfile->sf->qf->forget_cached_source_info outside of
1253 ALL_OBJFILE_SYMTABS loop.
1254 (forget_cached_source_info): Delete unused variable `s'.
1256 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1258 * i386-nat.c (dr_ref_count): Remove unused variable.
1260 2011-11-05 Doug Evans <dje@google.com>
1262 * main.c (captured_main): Set lim_at_start before calling
1263 make_command_stats_cleanup.
1265 2011-11-04 Doug Evans <dje@google.com>
1267 * utils.c: #include "timeval-utils.h".
1268 (cmd_stats): Rename start_time to start_cpu_time.
1269 New member start_wall_time.
1270 (report_command_stats): Report wall time.
1271 (make_command_stats_cleanup): Record start wall time.
1273 2011-11-04 Tom Tromey <tromey@redhat.com>
1275 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1277 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1279 * coff-pe-read.c: Include defs.h before bfd.h.
1281 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1285 * python/python.c (python_run_simple_file): Expand tilde in path.
1287 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1291 * python/py-type.c (typy_lookup_type): Do not return a type in
1292 an exception handler.
1294 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1295 Eli Zaretskii <eliz@gnu.org>
1297 * linux-nat.c (_initialize_linux_nat): Improve help
1298 for `info proc stat', `info proc status', `info proc cwd',
1299 `info proc cmdline' and `info proc exe'.
1301 2011-11-02 Stan Shebs <stan@codesourcery.com>
1303 String collection for tracepoints.
1304 * NEWS: Mention string collection.
1305 * common/ax.def (tracenz): New bytecode.
1306 * ax-gdb.h (trace_string_kludge): Declare.
1307 * ax-gdb.c: Include valprint.h and c-lang.h.
1308 (trace_string_kludge): New global.
1309 (gen_traced_pop): Add string case.
1310 (agent_command): Add string case.
1311 * tracepoint.h (decode_agent_options): Declare.
1312 * tracepoint.c: Include cli-utils.h.
1313 (decode_agent_options): New function.
1314 (validate_actionline): Call it.
1315 (encode_actions_1): Ditto.
1316 * target.h (struct target_ops): New method to_supports_string_tracing.
1317 (target_supports_string_tracing): New macro.
1318 * target.c (update_current_target): Add to_supports_string_tracing.
1319 * remote.c (struct remote_state): New field string_tracing.
1320 (remote_string_tracing_feature): New function.
1321 (remote_protocol_features): New feature tracenz.
1322 (remote_supports_string_tracing): New function.
1323 (init_remote_ops): Set to_supports_string_tracing.
1325 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1326 Jan Kratochvil <jan.kratochvil@redhat.com>
1328 * linux-nat.c: Include cli/cli-utils.h.
1329 (enum info_proc_what): New.
1330 (linux_nat_info_proc_cmd): Rename to ...
1331 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1332 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1333 status_f and stat_f from WHAT. Throw error on extra parameters.
1334 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1335 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1336 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1337 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1338 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1339 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1340 `info proc cmdline', `info proc exe' and `info proc all' as real
1341 subcommands of `info proc'.
1343 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1345 * Makefile.in: (SFILES): Add skip.c.
1346 (HFILES_NO_SRCDIR): Add skip.h.
1347 (COMMON_OBS): Add skip.o.
1348 * skip.h, skip.c: New.
1349 * breakpoint.h (set_default_breakpoint): Remove.
1350 (get_sal_arch): Declare.
1351 * breakpoint.c: Remove default_breakpoint_valid,
1352 default_breakpoint_address, default_breakpoint_symtab,
1353 default_breakpoint_line, default_breakpoint_pspace variables.
1354 (get_sal_arch): Make public.
1355 (set_default_breakpoint): Remove.
1356 (parse_breakpoint_sals, create_breakpoint, clear_command,
1357 decode_line_spec_1): Remove uses of default_breakpoint variables;
1358 replaced with function calls into stack.c.
1359 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1360 * cli/cli-cmds.c: Add skiplist.
1361 (init_cmd_lists): Initialize skiplist.
1362 (init_cli_cmds): Fix comment (classes of commands appear in
1363 alphabetical order).
1364 * infrun.c (handle_inferior_event): Add check that we don't step into
1365 a function whose pc is marked for skip.
1366 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1367 last_displayed_addr, last_displayed_symtab, last_displayed_line
1369 (set_last_displayed_sal): New static function.
1370 (print_frame_info): Switch call to set_default_breakpoint to call to
1371 set_last_displayed_sal.
1372 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1373 get_last_displayed_pspace, get_last_displayed_addr,
1374 get_last_displayed_symtab, get_last_displayed_line,
1375 get_last_displayed_sal): New public functions.
1376 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1377 get_last_displayed_pspace, get_last_displayed_addr,
1378 get_last_displayed_symtab, get_last_displayed_line,
1379 get_last_displayed_sal): Declare.
1381 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1383 * MAINTAINERS (Write After Approval): Add myself to the list.
1385 2011-10-29 Yao Qi <yao@codesourcery.com>
1387 * infcmd.c (disconnect_command): Call disconnect_tracing.
1389 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1392 * symtab.c (skip_prologue_sal): Code reformatting.
1394 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1397 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1398 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1401 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1403 * linux-nat.c (linux_nat_filter_event): Remove `options'
1404 parameter, and dead code that used it. If we're handling a
1405 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1406 in our lwp list, re-add it.
1407 (check_zombie_leaders): New.
1408 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1409 wait for children with WNOHANG, and always wait for all children.
1410 Don't check for no resumed children upfront. Simplify wait loop.
1411 Check for zombie thread group leaders after handling all wait
1412 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1413 unwaited-for children left.
1414 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1415 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1416 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1417 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1419 2011-10-28 Sterling Augustine <saugustine@google.com>
1421 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1422 * symtab.c (free_completion_list): New function.
1423 (do_free_completion_list): Likewise.
1424 (default_make_symbol_completion_list_break_on): New variable
1425 back_to. Call make_cleanup and discard_cleanups.
1426 (make_source_files_completion_list): Likewise.
1428 2011-10-28 Paul Koning <paul_koning@dell.com>
1430 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1431 * NEWS: Mention deep_items.
1433 2011-10-28 Alen Skondro <askondro@gmail.com>
1435 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1438 2011-10-27 Meador Inge <meadori@codesourcery.com>
1440 * MAINTAINERS (Write After Approval): Add myself to the list.
1442 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1444 * value.h (read_frame_register_value): Add declaration.
1445 * findvar.c (read_frame_register_value): New function.
1446 (value_from_register): Use read_frame_register_value
1447 instead of get_frame_register_value + value_contents_copy
1448 to get value contents.
1450 2011-10-27 Doug Evans <dje@google.com>
1452 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1453 source_script_from_stream if it may have been found on the search path.
1454 * python/py-auto-load.c (source_section_scripts): Pass full path to
1455 source_python_script_for_objfile.
1456 * python/python.c (source_python_script): Delete stream parameter.
1457 All callers updated.
1458 (source_python_script_for_objfile): Ditto.
1459 * python/python-internal.h (source_python_script_for_objfile): Update.
1460 * python/python.h (source_python_script): Update.
1462 2011-10-27 Tom Tromey <tromey@redhat.com>
1464 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1465 (ada_sals_for_line): Remove declarations.
1467 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1469 Move unwind reasons to an external .def file
1470 * frame.c (frame_stop_reason_string): Rewrite using
1471 unwind_stop_reasons.def.
1472 * frame.h (enum unwind_stop_reason): Likewise.
1473 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1474 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1475 constants for bound-checking.
1476 * unwind_stop_reasons.def: New file.
1477 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1478 instead of a distinct value.
1480 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1484 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1485 (convert_values_to_python): Return on Python tuple allocation
1486 failure. Return NULL on value conversion error.
1488 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1490 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1491 (bppy_set_task): Ditto.
1492 (bppy_delete_breakpoint): Ditto.
1493 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1494 (gdbpy_lookup_global_symbol): Ditto.
1495 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1496 * python/py-frame.c (frapy_is_valid): Ditto.
1497 (frame_info_to_frame_object): Ditto.
1498 * python/py-type.c (typy_lookup_type): Ditto.
1499 (typy_getitem): Ditto.
1500 (typy_has_key): Ditto.
1501 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1503 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1505 * gdbarch.h: Regenerate.
1507 2011-10-26 Meador Inge <meadori@codesourcery.com>
1509 * gdbarch.sh (function_list): Use 'pstring' when printing
1511 * gdbarch.c: Regenerate.
1513 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1515 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1516 and frame caches if PTID refers to all threads of a process.
1518 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1520 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1521 to create_breakpoint.
1523 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1525 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1526 (ppc_sysv_abi_push_dummy_call): Use it.
1527 (do_ppc_sysv_return_value): Likewise.
1528 (ppc64_sysv_abi_push_dummy_call): Likewise.
1529 (ppc64_sysv_abi_return_value): Likewise.
1531 2011-10-26 Paul Koning <paul_koning@dell.com>
1533 * python/lib/gdb/types.py (deepitems): New function.
1535 2011-10-25 Paul Koning <paul_koning@dell.com>
1539 * python/py-value.c (value_to_value_object): Remove fetching of
1540 the value if it was lazy.
1541 (valpy_get_is_lazy): New function.
1542 (valpy_fetch_lazy): New function.
1544 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1546 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1547 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1549 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1551 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1552 event, in non-stop, if not stopping, make sure the new lwp has
1553 last_resume_kind set to resume_continue. Assert that when we're
1554 resuming the new lwp, its last_resume_kind is resume_continue.
1556 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1558 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1559 already set when marking the event thread as not executing in
1562 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1564 * infrun.c (handle_inferior_event): Add debug output for
1565 TARGET_WAITKIND_NO_HISTORY.
1567 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1569 * NEWS: Move set/show extended-prompt to "New Options". Expand
1570 description. Fix typos.
1572 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1576 * python/py-param.c (call_doc_function): Correctly deference on
1579 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1581 * ada-tasks.c (print_ada_task_info): Fix computation of
1582 number of tasks displayed in command output.
1584 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1585 Ulrich Weigand <uweigand@de.ibm.com>
1587 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1588 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1589 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1590 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1593 2011-10-20 Cary Coutant <ccoutant@google.com>
1595 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1597 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1598 flag. Adjust all callers.
1599 (process_psymtab_comp_unit): Remove adjustment for type section.
1601 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1603 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1604 arguments by adding OBJFILE. Instead of getting objfile from
1605 symbol's symtab, use new argument OBJFILE.
1606 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1607 arguments by adding OBJFILE.
1608 * gdb/dwarf2read.c (new_symbol_full): Change call to
1609 cp_scan_for_anonymous_namespaces to match new signature.
1610 * gdb/stabsread.c (define_symbol): Change call to
1611 cp_scan_for_anonymous_namespaces to match new signature.
1613 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1618 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1620 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1621 leak. Delete unused variables.
1623 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1627 * python/py-frame.c (frapy_read_var): Use const struct *block.
1628 * python/py-type.c (typy_lookup_typename): Likewise.
1629 (typy_lookup_type): Likewise.
1630 (typy_legacy_template_argument): Likewise.
1631 (typy_template_argument): Likewise.
1632 (gdbpy_lookup_type): Likewise.
1633 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1634 * python/py-block.c (blpy_block_object): Likewise.
1635 (blpy_iter): Likewise.
1636 (blpy_get_start): Likewise.
1637 (blpy_get_end): Likewise.
1638 (blpy_get_function): Likewise.
1639 (blpy_get_superblock): Likewise.
1640 (set_block): Likewise.
1641 (block_to_block_object): Likewise.
1642 (block_object_to_block): Likewise.
1643 (blpy_is_valid): Likewise.
1644 (blpy_get_global_block): New function.
1645 (blpy_get_static_block): New function.
1646 (blpy_is_global): New function.
1647 (blpy_is_static): New function.
1648 * blockframe.c (block_innermost_frame): Likewise.
1649 * valops.c (value_of_variable): Likewise.
1650 * frame.h: Update prototypes.
1651 * python/python-internal.h: Likewise.
1652 * value.h: Likewise.
1654 2011-10-19 Cary Coutant <ccoutant@google.com>
1656 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1659 2011-10-19 Cary Coutant <ccoutant@google.com>
1661 * dwarf2read.c (peek_abbrev_code): New function.
1662 (dw2_get_file_names): Check for dummy compilation units.
1663 (create_debug_types_hash_table): Likewise.
1664 (process_psymtab_comp_unit): Likewise.
1665 (load_partial_comp_unit): Likewise.
1666 (load_full_comp_unit): Likewise.
1668 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1670 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1671 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1672 pt_phdr if PT_PHDR was found.
1674 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1676 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1677 type or "<unnamed type"> when there is no name assigned.
1678 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1679 avoid a sigint when no name is assigned.
1681 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1684 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1685 * dwarf2expr.c (ctx_no_read_reg): New function.
1686 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1687 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1688 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1689 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1691 2011-10-16 Doug Evans <dje@google.com>
1693 * NEWS: Document python gdb.printing.register_pretty_printer's new
1694 `replace' parameter.
1696 2011-10-14 Keith Seitz <keiths@redhat.com>
1699 * eval.c (evaluate_subexp_standard): Do not construct
1700 an array of types; pass the value array directly to
1701 find_overload_match.
1702 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1703 (rank_function): Take an array of values instead of types.
1704 (rank_one_type): Add struct value * parameter.
1705 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1706 (rank_function): For each argument, pass the argument's
1707 value to rank_one_type.
1708 (rank_one_type): Add VALUE parameter.
1709 If the parameter type is a pointer and the argument type
1710 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1712 Update all calls to rank_one_type, passing NULL for new
1714 * valarith.c (value_user_defined_cpp_op): Do not construct
1715 an array of types; pass the value array directly to
1716 find_overload_match.
1717 * valops.c (find_overload_method_list): Take an array of
1718 values instead of types.
1719 Save the type of OBJP for later use.
1720 Update calls to find_oload_champ, and find_oload_champ_namespace.
1721 (find_oload_champ_namespace): Take an array of values instead
1723 (find_oload_champ_namespace_loop): Likewise.
1724 (find_oload_champ): Likewise.
1725 (classify_oload_match): Inspect all arguments
1726 until INCOMPATIBLE is found. Return the worst badness found
1728 (compare_parameters): Update call to rank_one_type.
1729 * value.h (find_overload_match): Take an array of values instead
1732 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1734 Drop lazy lm_info reading.
1735 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1736 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1737 (lm_info_read): New function.
1738 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1739 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1740 lm_dynamic_from_link_map.
1741 (lm_next, lm_prev, lm_name): Remove.
1742 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1743 initialization incl. read_memory. No longer use lm_name.
1744 (svr4_free_so): Drop lm_info->lm freeing.
1745 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1746 explicit lm_addr and lm initialization.
1747 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1748 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1751 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1752 Paul Pluzhnikov <ppluzhnikov@google.com>
1754 * defs.h (struct so_list): New forward declaration.
1755 (make_cleanup_free_so): New declaration.
1756 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1757 (svr4_free_so): Move the function here from downwards. Handle NULL
1759 (svr4_free_library_list): New.
1760 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1761 Use more cleanups. Use new parameter ignore_first instead of
1762 ignore_first_link_map_entry.
1763 (svr4_current_sos): New variable ignore_first, initialize it. New
1764 variable back_to, use it for svr4_free_library_list protection.
1765 (svr4_free_so): Remove - move upwards.
1766 * utils.c: Include solist.h.
1767 (do_free_so, make_cleanup_free_so): New functions.
1769 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1771 Fix internal error regression.
1772 * value.c (value_primitive_field): Handle value_optimized_out. Move
1773 packed bitfields comment.
1775 2011-10-13 Tom Tromey <tromey@redhat.com>
1777 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1780 2011-10-13 Tom Tromey <tromey@redhat.com>
1782 * python/py-type.c (typy_has_key): Make 'field' const.
1784 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1786 * remote.c (remote_save_trace_data): Invert comparison.
1788 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1790 * tracepoint.c (trace_save_command): Use filename instead of
1793 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1795 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1798 2011-10-13 Yao Qi <yao@codesourcery.com>
1801 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1802 whether insn is a 32-bit Thumb-2 instruction.
1803 (thumb_in_function_epilogue_p): Likewise.
1804 (thumb_get_next_pc_raw): Likewise.
1805 (arm_breakpoint_from_pc): Likewise.
1807 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1809 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1810 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1811 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1812 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1813 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1815 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1817 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1818 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1819 clear DATA on zero SIZE.
1821 2011-10-12 Doug Evans <dje@google.com>
1823 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1824 header->first_die_offset here. All callers updated.
1826 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1828 Fix compatibility with texinfo versions older than 4.12.
1829 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1830 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1831 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1832 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1833 * configure: Regenerate.
1834 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1835 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1836 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1838 2011-10-12 Gary Benson <gbenson@redhat.com>
1840 * breakpoint.h (pc_at_non_inline_function): Declare.
1841 * breakpoint.c (is_non_inline_function,
1842 pc_at_non_inline_function): New functions.
1843 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1844 if the stop is at a location where functions cannot be inlined.
1846 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1848 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1849 the core wanted them stopped, or if they now have a pending event
1851 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1852 down to stop_and_resume_callback.
1853 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1854 having new pending events after calling linux_nat_filter_event.
1856 2011-10-11 Sterling Augustine <saugustine@google.com>
1858 * dwarf2read.c: Undo inadvertent changes in previous commit.
1860 2011-10-11 Sterling Augustine <saugustine@google.com>
1862 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1865 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1867 * symfile.c (separate_debug_file_exists): Fix condition.
1869 2011-10-11 David S. Miller <davem@davemloft.net>
1871 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1873 * regcache.h (regcache_restore): Remove declaration.
1875 * gdbarch.sh: New field 'long_long_align_bit'.
1876 * gdbarch.c, gdbarch.h: Regenerate.
1877 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1878 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1880 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1882 Revert this part of:
1883 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1884 Support @entry in input expressions.
1885 * c-exp.y (ENTRY, unknown_cpp_name): New.
1886 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1887 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1888 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1889 (name_not_typename: ENTRY): New.
1890 (yylex): Recognize ENTRY.
1892 Reimplement @entry in input expressions.
1893 * c-exp.y (ENTRY): New.
1894 (variable: name_not_typename ENTRY): New.
1895 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1897 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1899 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1900 parent and child's pids as soon as we detect a clone event.
1901 Adjust another debug message.
1903 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1905 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1906 not zombie instead of reading the whole file.
1908 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1910 Fix separate debuginfo warning with "remote:" access.
1911 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1912 * symfile.c (get_file_crc): New function with the code moved from ...
1913 (separate_debug_file_exists): ... this function, specifically variables
1914 buffer and count. New variable verified_as_different, set it. Remove
1915 file_crc initialization. Verify also if both files are not the same
1916 manually, if needed.
1918 2011-10-11 Yao Qi <yao@codesourcery.com>
1920 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1923 2011-10-10 Doug Evans <dje@google.com>
1925 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1926 libthread_db when we load libpthread or the main symbol file.
1927 (thread_db_inferior_created): New function.
1928 (_initialize_thread_db): Attach inferior_created observer.
1929 * linux-nat.c (linux_child_post_attach): Remove call to
1930 check_for_thread_db.
1931 (linux_child_post_startup_inferior): Ditto.
1932 * objfiles.h (OBJF_MAINLINE): Define.
1933 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1934 allocate_objfile when appropriate.
1936 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1939 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1940 Remove unused variables.
1941 (get_linux_version): Remove function.
1942 (_initialize_arm_linux_nat): Do not call it.
1944 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1946 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1947 new clone lwp if the core asked it to stop. Don't pass on
1948 unexpected signals to the new clone; leave them pending instead.
1950 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1952 * linux-nat.c (resume_lwp): Remove redundant debug output.
1954 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1956 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1957 last_resume_kind before clearing it, and use the copy instead to
1958 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1959 resume_clear_callback in the non-stop path too.
1961 2011-10-09 Yao Qi <yao@codesourcery.com>
1963 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1964 Honor OPTIONS and VAL's type.
1965 (common_val_print, value_print): Update to pass one more parameter.
1967 2011-10-09 Doug Evans <dje@google.com>
1969 Add new "alias" command.
1970 * NEWS: Mention new command.
1971 * command.h (valid_user_defined_cmd_name_p): Declare.
1972 * defs.h (make_cleanup_dyn_string_delete): Declare.
1973 * utils.c: #include "dyn-string.h".
1974 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1975 * cli/cli-cmds.c: #include "dyn-string.h".
1976 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1977 (init_cli_cmds): Add new command.
1978 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1980 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1982 Fix compatibility with older GCCs.
1983 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1984 * stack.c (read_frame_arg): Initialize val_deref.
1986 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1988 Entry values NEWS entries, DWARF disassembly support.
1989 * NEWS: New entry values entry.
1990 (set print entry-values, show print entry-values)
1991 (set debug entry-values, show debug entry-values): New entries.
1992 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1993 indent. Remove variable start. Move header printing out. Respect
1994 INDENT. Support DW_OP_GNU_entry_value.
1995 (locexpr_describe_location_1): Move the header printing here, extend
1996 the disassemble_dwarf_expression passed parameters.
1998 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2000 Display @entry parameter values even for references.
2001 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2002 coerce_ref_if_computed.
2003 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2004 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2005 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2006 existing push_dwarf_reg_entry_value call. Add new detection calling
2007 dwarf_block_to_dwarf_reg_deref. Update the error message.
2008 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2010 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2011 parameter deref_size, describe it in the comment.
2012 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2013 (dwarf_block_to_dwarf_reg_deref): New declaration.
2014 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2015 deref_size, describe it in the function comment. New variables
2016 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2017 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2018 describe it in the function comment. Fetch the alternative block
2019 accoring to DEREF_SIZE.
2020 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2021 (entry_data_value_free_closure, entry_data_value_funcs): New.
2022 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2023 outer_val, target_val, val and addr. Try to fetch and create also
2024 referenced value content.
2025 (pieced_value_funcs): NULL value for coerce_ref.
2026 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2027 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2028 coerce_ref_if_computed.
2029 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2030 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2031 * stack.c (read_frame_arg): Compare also dereferenced values.
2032 * value.c (value_computed_funcs): Make the parameter v const, use
2033 value_lval_const for it.
2034 (value_lval_const, coerce_ref_if_computed): New function.
2035 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2036 * value.h (struct lval_funcs): New field coerce_ref.
2037 (value_computed_funcs): Make the parameter v const.
2038 (value_lval_const, coerce_ref_if_computed): New declarations.
2040 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2042 Support @entry in input expressions.
2043 * c-exp.y (ENTRY, unknown_cpp_name): New.
2044 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2045 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2046 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2047 (name_not_typename: ENTRY): New.
2048 (yylex): Recognize ENTRY.
2049 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2050 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2052 * parse.c (operator_length_standard): Likewise.
2053 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2055 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2057 Display referenced values in backtraces.
2058 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2059 * stack.c (print_frame_arg): Likewise.
2061 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2063 Make some lval_funcs methods to default on NULL.
2064 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2066 (value_assign): Check if lval_computed write method is NULL.
2067 * value.h (struct lval_funcs): Comment NULL values for read and write
2070 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2072 Display @entry parameter values (without references).
2073 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2075 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2077 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2079 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2080 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2082 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2083 (loclist_read_variable_at_entry): New function.
2084 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2085 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2086 DW_AT_location, call dwarf_block_to_sp_offset for it.
2087 * frame.h (print_entry_values_no, print_entry_values_only)
2088 (print_entry_values_preferred, print_entry_values_if_needed)
2089 (print_entry_values_both, print_entry_values_compact)
2090 (print_entry_values_default, print_entry_values): New declarations.
2091 (struct frame_arg): New field entry_kind.
2092 (read_frame_arg): New parameter entryargp.
2093 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2094 arg->entry_kind. Optionally print the `@entry' suffix.
2095 (list_args_or_locals): New variable entryarg, initialize it.
2096 Initialize also entry_kind of arg and entryarg. Conditionalize
2097 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2098 xfree for entryarg.error.
2099 * stack.c (print_entry_values_no, print_entry_values_only)
2100 (print_entry_values_preferred, print_entry_values_if_needed)
2101 (print_entry_values_both, print_entry_values_compact)
2102 (print_entry_values_default, print_entry_values_choices)
2103 (print_entry_values): New variables.
2104 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2105 print the `@entry' suffix, possibly in combination for
2106 print_entry_values_compact.
2107 (read_frame_arg): New parameter entryargp, new variables entryval,
2108 entryval_error and val_equal. Read in also entryargp, respect
2109 print_entry_values, compare the values using val_equal, fill in also
2110 argp->entry_kind (together with entryargp->entry_kind).
2111 (print_frame_args): New variable entryarg, initialize it.
2112 Conditionalize print_frame_arg for arg, add print_frame_arg for
2113 entryarg. Call xfree for entryarg.error.
2114 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2115 * symtab.h (struct symbol_computed_ops): New field
2116 read_variable_at_entry.
2118 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2121 * frame.h (struct frame_arg): New definition.
2122 (read_frame_arg): New declaration.
2123 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2124 (list_args_or_locals): ... the code here. New variable arg, call
2125 read_frame_arg and list_arg_or_local with it. Unify the
2126 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2128 * stack.c (print_frame_arg): New functiom from the code of
2130 (read_frame_arg): New function.
2131 (print_frame_args): Remove variable val. New variable arg, call
2132 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2134 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2136 Protect entry values against self tail calls.
2137 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2138 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2140 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2142 Recognize virtual tail call frames.
2143 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2144 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2145 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2146 * dwarf2-frame-tailcall.c: New file.
2147 * dwarf2-frame-tailcall.h: New file.
2148 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2149 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2150 REGS.PREV only after CIE execution.
2151 (struct dwarf2_frame_cache): New field tailcall_cache.
2152 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2153 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2154 parts, try to find entry_cfa_sp_offset. Call
2155 dwarf2_tailcall_sniffer_first.
2156 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2158 (dwarf2_frame_dealloc_cache): New function.
2159 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2160 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2161 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2162 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2163 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2164 * dwarf2loc.c (func_addr_to_tail_call_list)
2165 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2166 (call_site_find_chain_1, call_site_find_chain): New.
2167 * dwarf2loc.h (struct call_site_chain): New.
2168 (call_site_find_chain): New declaration.
2169 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2170 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2171 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2172 * stack.c (frame_info): Support also TAILCALL_FRAME.
2174 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2176 Tail call sites reader implementation.
2177 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2178 fill in TYPE_TAIL_CALL_LIST.
2179 * gdbtypes.h (struct func_type): New field tail_call_list.
2180 (struct call_site): New field tail_call_next.
2181 (TYPE_TAIL_CALL_LIST): New definition.
2183 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2185 Implement basic support for DW_TAG_GNU_call_site.
2186 * block.c: Include gdbtypes.h and exceptions.h.
2187 (call_site_for_pc): New function.
2188 * block.h (call_site_for_pc): New declaration.
2189 * defs.h: Include hashtab.h.
2190 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2192 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2193 ctx_no_push_dwarf_reg_entry_value.
2194 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2195 (dwarf_block_to_dwarf_reg): New function.
2196 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2197 (ctx_no_push_dwarf_reg_entry_value): New function.
2198 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2199 push_dwarf_reg_entry_value.
2200 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2202 * dwarf2loc.c: Include gdbcmd.h.
2203 (dwarf_expr_ctx_funcs): New forward declaration.
2204 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2205 (dwarf_expr_reg_to_entry_parameter)
2206 (dwarf_expr_push_dwarf_reg_entry_value): New.
2207 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2208 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2209 (needs_dwarf_reg_entry_value): New function.
2210 (needs_frame_ctx_funcs): Install it.
2211 (_initialize_dwarf2loc): New function.
2212 * dwarf2loc.h (entry_values_debug): New declaration.
2213 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2214 (read_call_site_scope): New forward declaration.
2215 (process_full_comp_unit): Copy call_site_htab.
2216 (process_die): Support DW_TAG_GNU_call_site.
2217 (read_call_site_scope): New function.
2218 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2219 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2220 (cleanup_htab): Delete.
2221 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2222 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2223 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2224 FIELD_LOC_KIND_DWARF_BLOCK.
2225 * gdbtypes.h (enum field_loc_kind): New entry
2226 FIELD_LOC_KIND_DWARF_BLOCK.
2227 (struct main_type): New loc entry dwarf_block.
2228 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2229 (TYPE_FIELD_DWARF_BLOCK): New.
2230 * python/py-type.c: Include dwarf2loc.h.
2231 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2232 internal_error call on unknown FIELD_LOC_KIND.
2233 * symtab.h (struct symtab): New field call_site_htab.
2234 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2235 (core_addr_hash, core_addr_eq): New functions.
2237 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2240 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2241 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2242 calling_convention under func_stuff there.
2243 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2244 (init_type) <TYPE_CODE_FUNC>: Likewise.
2245 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2246 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2247 * gdbtypes.h (enum type_specific_kind): Change
2248 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2249 (struct main_type) <type_specific>: Change calling_convention to
2250 func_stuff. Move calling_convention to ...
2251 (struct func_type): ... this new struct.
2252 (INIT_FUNC_SPECIFIC): New #define.
2253 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2255 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2257 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2258 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2259 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2260 ctx->ref_addr_size. Handle its invalid value.
2261 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2262 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2263 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2264 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2265 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2266 (dwarf2_per_cu_ref_addr_size): New function.
2268 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2271 * dwarf2read.c (per_cu_header_read_in): New function.
2272 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2273 variables cu_header_local and cu_headerp.
2275 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2277 Fix initial language detection with -readnow.
2278 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2279 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2280 searches only for global symbols.
2282 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2284 Fix printed anonymous struct name.
2285 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2286 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2287 (anonymous_struct_prefix): New function.
2288 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2289 (dwarf2_name): Strip for anonymous structs any prefixes.
2291 2011-10-07 Doug Evans <dje@google.com>
2293 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2296 * python/lib/gdb/printing.py: Whitespace cleanup.
2298 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2301 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2303 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2304 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2305 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2306 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2307 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2308 (arm_linux_remove_watchpoint): Adjust.
2309 * i386-linux-nat.c (i386_linux_dr_set_control)
2310 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2311 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2312 (ia64_linux_remove_watchpoint): Adjust.
2313 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2314 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2315 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2316 (ppc_linux_insert_mask_watchpoint)
2317 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2318 (ppc_linux_remove_watchpoint): Adjust.
2319 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2322 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2324 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2325 (clear_win32_environment): New function for Cygwin to clear out
2327 (windows_create_inferior): Prepare new environment from in_env
2330 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2333 * python/py-value.c (valpy_call): Check that arguments are
2335 (is_intlike): Remove call to CHECK_TYPEDEF.
2336 (valpy_nonzero): Catch GDB exceptions.
2337 (valpy_absolute): Ditto.
2338 (valpy_lazy_string): Ditto.
2339 (valpy_call): Ditto.
2340 (valpy_get_is_optimized_out): Ditto.
2341 (valpy_long): Ditto.
2342 (valpy_float): Ditto.
2343 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2344 (valpy_richcompare): Ditto.
2346 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2348 * inferior.h (disable_randomization): Declare.
2349 * infrun.c (disable_randomization): New global variable.
2350 (show_disable_randomization): New function.
2351 (set_disable_randomization): Likewise.
2352 (_initialize_infrun): Install set/show disable-randomization
2354 * linux-nat.c (disable_randomization): Remove.
2355 (show_disable_randomization): Likewise.
2356 (set_disable_randomization): Likewise.
2357 (_initialize_linux_nat): No longer install set/show
2358 disable-randomization commands here.
2359 (linux_nat_supports_disable_randomization): New function.
2360 (linux_nat_add_target): Install it.
2361 * remote.c (PACKET_QDisableRandomization): New enum value.
2362 (remote_protocol_packets): Support QDisableRandomization.
2363 (_initialize_remote): Likewise.
2364 (remote_supports_disable_randomization): New function.
2365 (init_remote_ops): Install it.
2366 (extended_remote_supports_disable_randomization): New function.
2367 (init_extended_remote_ops): Install it.
2368 (extended_remote_disable_randomization): New function.
2369 (extended_remote_create_inferior_1): Call it.
2370 * target.h (struct target_ops): Add to_supports_disable_randomization.
2371 (target_supports_disable_randomization): Add prototype.
2372 * target.c (target_supports_disable_randomization): New function.
2373 (find_default_supports_disable_randomization): Likewise.
2374 (init_dummy_target): Install it.
2376 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2378 Allow Python notification of new object-file loadings.
2379 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2380 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2381 Add build rule for this file.
2382 * python/py-event.h (emit_new_objfile_event): New prototype.
2383 (newobjfile): New Python event emitter.
2384 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2385 Python event registry.
2386 * python/py-inferior.c: Include objfiles.h
2387 (python_new_objfile): New function.
2388 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2390 * python/py-newobjfileevent.c: New file.
2391 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2393 * python/python.c (_initialize_python): Add
2394 gdbpy_initialize_new_objfile_event call.
2395 * NEWS: Add item for new Python event "gdb.newobjfile"
2397 2011-10-05 Tristan Gingold <gingold@adacore.com>
2399 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2400 Extract the ravenscar task name from the symbol for the atcb.
2402 2011-10-04 Paul Koning <paul_koning@dell.com>
2404 * python/py-type.c (typy_make_iter): Add forward declaration.
2405 (typy_fields_items): Use the gdb.Type iterator.
2407 2011-10-04 Paul Koning <paul_koning@dell.com>
2409 * NEWS: Add entry for Python gdb.Type mapping methods.
2411 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2413 PR python/12691: Add the inferior to Python exited event
2414 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2416 * python/py-event.h (emit_exited_event): Likewise
2417 * python/-inferior.c (python_inferior_exit): Likewise
2419 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2421 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2422 in output of -ada-task-info GDB/MI command.
2424 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2426 * ada-lang.h (struct inferior): Declare.
2427 (print_ada_task_info): Add declaration.
2428 * ada-tasks.c (print_ada_task_info): Make non-static.
2429 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2430 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2431 * mi/mi-main.c: #include "ada-lang.h".
2432 (mi_cmd_list_features): Add "ada-task-info" to the list
2433 of supported features.
2434 (mi_cmd_ada_task_info): New function.
2436 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2438 * python/python.c (python_run_simple_file): New function.
2439 (source_python_script, source_python_script_for_objfile):
2440 Replace call to PyRun_SimpleFile by call to
2441 python_run_simple_file.
2443 2011-10-03 Paul Koning <paul_koning@dell.com>
2445 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2446 (value_to_value_object): Fetch value if it was lazy.
2448 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2451 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2452 Rearrange the code for it.
2454 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2456 * breakpoint.c (bkpt_print_recreate): Add call to
2457 print_recreate_thread.
2459 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2461 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2462 PTRACE_GETFDPIC_INTERP): Define.
2464 2011-09-28 Yao Qi <yao@codesourcery.com>
2466 * symfile.c (add_symbol_file_command): Update message on usage.
2468 2011-09-28 Paul Koning <paul_koning@dell.com>
2470 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2471 (typy_length, typy_get, typy_has_key, typy_make_iter)
2472 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2473 (typy_iterator_iter, typy_iterator_iternext)
2474 (typy_iterator_dealloc): New functions to implement standard
2475 Python mapping methods on gdb.Type object.
2476 (gdb.TypeIterator): New Python type.
2477 * python/python-internal.h (gdbpy_iter_kind): New enum.
2479 2011-09-28 David S. Miller <davem@davemloft.net>
2481 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2482 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2483 * sparc-tdep.c (sparc_complex_floating_p): New function.
2484 (sparc32_store_arguments): Handle complex floats.
2485 (sparc32_extract_return_value): Likewise.
2486 (sparc32_store_return_value): Likewise.
2487 (sparc32_stabs_argument_has_addr): Likewise.
2488 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2489 (sparc64_store_floating_fields): Handle complex floats.
2490 (sparc64_store_arguments): Likewise.
2491 (sparc64_store_return_value): Likewise.
2493 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2495 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2496 before the change on 2006-12-09.
2497 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2498 generates the environment block for CreateProcessA, modulo the
2499 Cygwin-specific parts that are not needed here.
2501 2011-09-27 Tristan Gingold <gingold@adacore.com>
2503 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2504 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2505 (darwin_solib_get_all_image_info_addr_at_init): New function.
2506 (darwin_solib_read_all_image_info_addr): Likewise.
2507 (darwin_solib_create_inferior_hook): Use the above two functions.
2508 * darwin-nat.c (darwin_execvp): Renames retval to res.
2509 (darwin_read_write_inferior): Update comment.
2510 (darwin_read_dyld_info): New function.
2511 (darwin_xfer_partial): Handle DYLD_INFO.
2513 2011-09-27 Stan Shebs <stan@codesourcery.com>
2515 Add return address collection for tracepoints.
2516 * tracepoint.c (encode_actions_1): Add case for $_ret.
2517 (validate_actionline): Check for $_ret.
2518 (trace_dump_actions): Ditto.
2519 * ax-gdb.h (gen_trace_for_return_address): Declare.
2520 * ax-gdb.c: Include arch-utils.h.
2521 (gen_trace_for_return_address): New function.
2522 (agent_command): Add return address special case.
2523 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2524 (amd64_gen_return_address): New function.
2525 (amd64_init_abi): Call it.
2526 * i386-tdep.c: Include ax.h and ax-gdb.h.
2527 (i386_gen_return_address): New function.
2528 (i386_init_abi): Call it.
2529 * arch-utils.h (default_gen_return_address): Declare.
2530 * arch-utils.c (default_gen_return_address): New function.
2531 * gdbarch.sh (gen_return_address): New method.
2532 * gdbarch.h, gdbarch.c: Regenerate.
2534 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2537 * i386-tdep.c (i386_frame_align): New.
2538 (i386_gdbarch_init): Use i386_frame_align.
2540 2011-09-23 Yao Qi <yao@codesourcery.com>
2542 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2545 2011-09-22 Tristan Gingold <gingold@adacore.com>
2547 * fork-child.c (fork_inferior): Add exec_fun parameter.
2548 Call exec_fun or execvp.
2549 * inferior.h: Adjust prototype.
2550 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2551 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2552 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2553 * procfs.c (procfs_create_inferior): Ditto.
2554 * darwin-nat.c (darwin_execvp): New function.
2555 (darwin_create_inferior): Use it.
2557 2011-09-22 Yao Qi <yao@codesourcery.com>
2559 * infrun.c (context_switch): Print debug message when switching to
2562 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2564 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2565 complex and vector types.
2566 (s390_return_value_convention): Likewise.
2568 (s390_value_from_register): Call check_typedef.
2569 (extend_simple_arg): Likewise.
2570 (alignment_of): Likewise.
2571 (s390_push_dummy_call): Likewise.
2572 (s390_return_value): Likewise.
2574 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2576 * event-top.c (async_disconnect): If an exception is thrown from
2577 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2579 * top.c (quit_cover): Return void and take no arguments.
2580 * top.h (quit_cover): Update prototype.
2582 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2584 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2585 current_uiout, not uiout.
2587 2011-09-19 Doug Evans <dje@google.com>
2589 * python/py-auto-load.c (source_section_scripts): Fix file
2591 * python/python.c (source_python_script_for_objfile): Tweak comments.
2593 2011-09-18 Yao Qi <yao@codesourcery.com>
2594 Ulrich Weigand <ulrich.weigand@linaro.org>
2596 Support displaced stepping for Thumb 16-bit insns.
2597 * arm-tdep.c (THUMB_NOP) Define.
2598 (thumb_copy_unmodified_16bit): New.
2599 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2600 (thumb_copy_alu_reg): New.
2601 (arm_copy_svc): Move some common code to ...
2602 (install_svc): ... here. New.
2603 (thumb_copy_svc): New.
2604 (install_pc_relative): New.
2605 (thumb_copy_pc_relative_16bit): New.
2606 (thumb_decode_pc_relative_16bit): New.
2607 (thumb_copy_16bit_ldr_literal): New.
2608 (thumb_copy_cbnz_cbz): New.
2609 (cleanup_pop_pc_16bit_all): New.
2610 (thumb_copy_pop_pc_16bit): New.
2611 (thumb_process_displaced_16bit_insn): New.
2612 (thumb_process_displaced_32bit_insn): New.
2613 (thumb_process_displaced_insn): process thumb instruction.
2615 Support displaced stepping for Thumb 32-bit insns.
2616 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2617 (thumb2_copy_preload): New.
2618 (thumb2_copy_copro_load_store): New.
2619 (thumb2_copy_b_bl_blx): New.
2620 (thumb2_copy_alu_imm): New.
2621 (thumb2_copy_load_reg_imm): New.
2622 (thumb2_copy_load_literal): New
2623 (thumb2_copy_block_xfer): New.
2624 (thumb_32bit_copy_undef): New.
2625 (thumb_32bit_copy_unpred): New.
2626 (thumb2_decode_ext_reg_ld_st): New.
2627 (thumb2_decode_svc_copro): New.
2628 (decode_thumb_32bit_store_single_data_item): New.
2629 (thumb_copy_pc_relative_32bit): New.
2630 (thumb_decode_pc_relative_32bit): New.
2631 (decode_thumb_32bit_ld_mem_hints): New.
2632 (thumb2_copy_table_branch): New
2633 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2636 2011-09-18 Yao Qi <yao@codesourcery.com>
2638 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2639 (install_b_bl_blx): Likewise.
2641 2011-09-17 Yao Qi <yao@codesourcery.com>
2643 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2644 (install_load_store): ... this. New.
2645 Change parameter BYTE to SIZE.
2646 (arm_copy_ldr_str_ldrb_strb): Update caller.
2647 (arm_decode_ld_st_word_ubyte): Update caller.
2649 2011-09-17 Yao Qi <yao@codesourcery.com>
2651 * infrun.c (displaced_step_fixup): Move some code ...
2652 (displaced_step_restore): ... here. New function.
2653 (handle_inferior_event): Cleanup displaced stepping state for both
2654 child and parent when get forked or vforked event.
2655 * regcache.c (get_thread_arch_aspace_regcache): New function.
2656 get_thread_arch_regcache (): Call it.
2658 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2660 * ada-tasks.c (print_ada_task_info): New function, merging
2661 short_task_info and info_tasks together. Reimplement using
2662 ui-out instead of printing to stdout directly. Move the code
2663 building and checking the task list here, instead of leaving it
2664 in info_tasks_command.
2665 (info_task): Move the code building and checking the task
2666 list here, instead of leaving it in info_tasks_command.
2667 (info_tasks_command): Delete code building and checking
2668 the task list - moved elsewhere. Update calls to info_tasks
2671 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2673 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2675 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2677 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2679 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2681 * ada-lang.h (ada_build_task_list): Remove parameter
2683 * ada-tasks.c (ada_build_task_list): Remove parameter
2684 `warn_if_null'. Adjust implementation and documentation.
2685 (valid_task_id, ada_get_environment_task)
2686 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2687 (info_tasks_command): Adjust implementation.
2688 (task_command): Likewise.
2689 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2690 to ada_build_task_list.
2692 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2694 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2695 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2696 (ada_tasks_inferior_data_handle): New static global.
2697 (get_ada_tasks_inferior_data): New function.
2698 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2699 (ada_get_environment_task, iterate_over_live_ada_tasks)
2700 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2702 (ada_set_current_inferior_known_tasks_addr): New function.
2703 (read_known_tasks, ada_build_task_list, short_task_info)
2704 (info_tasks, info_task, info_tasks_command, task_command_1)
2705 (task_command, ada_task_list_changed): Adjust.
2706 (ada_tasks_invalidate_inferior_data): New function.
2707 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2708 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2709 * ada-lang.h (struct inferior): Add declaration.
2710 (ada_task_list_changed): Update profile.
2711 * remote-wtx-pd.c: #include "inferior.h".
2712 (switch_to_pd_internal): Update call to ada_task_list_changed.
2714 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2716 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2717 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2718 (atcb_fieldno): Delete these static globals.
2719 (struct ada_tasks_pspace_data): New struct.
2720 (ada_tasks_pspace_data_handle): New static global.
2721 (get_ada_tasks_pspace_data): New function.
2722 (ada_tasks_invalidate_pspace_data): New function.
2723 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2724 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2725 (_initialize_tasks): Create this module's per-progspace
2728 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2730 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2732 2011-09-16 Tristan Gingold <gingold@adacore.com>
2734 * fork-child.c (fork_inferior): Update comment. Use alloca
2735 instead of xmalloc for argv. Move len and shell_command
2736 declarations in the block where they are used.
2737 Only call execvp. Factorize failure code.
2739 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2742 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2743 `exp_element' instead of an element of the same and make the function
2745 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2746 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2747 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2748 Change argument of `write_exp_elt' function call.
2749 Remove extra spaces from comments.
2750 * parser-defs.h (write_exp_elt): Remove prototype.
2752 2011-09-15 Paul Koning <paul_koning@dell.com>
2754 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2755 count of item appended to list.
2756 * python/py-type.c (typy_fields): Likewise.
2758 2011-09-15 Paul Koning <paul_koning@dell.com>
2760 * MAINTAINERS (Write After Approval): Add myself to the list.
2762 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2765 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2766 processes with multiple threads.
2767 (inf_has_multiple_thread_cb): New function.
2768 (inf_has_multiple_threads): New function.
2770 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2772 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2773 * python/py-inferior.c (GdbMethods): New Python method definition.
2775 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2777 Handle multiple breakpoint hits in Python interface:
2778 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2779 variable to breakpoints.
2780 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2781 bps instead of single breakpoint. Fix some space typos.
2782 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2783 variable to breakpoints.
2785 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2787 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2788 note if the breakpoint is internal.
2790 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2792 * MAINTAINERS (Write After Approval): Add myself to the list
2794 2011-09-14 Pedro Alves <pedro@codesourcery.com>
2796 * infrun.c (prepare_for_detach, wait_for_inferior)
2797 (fetch_inferior_event): Don't flush the register cache.
2798 * remote.c (struct stop_reply) <regcache>: Add comment.
2800 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2802 Remove excessive DWARF expressions memory duplication.
2803 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2805 (indirect_pieced_value): Remove variable result. Remove variable
2806 back_to and its use for baton.data.
2807 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2809 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2810 Update the function comment.
2812 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2814 * inferior.h (ALL_INFERIORS): New.
2815 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2816 for a stopped thread.
2817 (thread_db_find_new_threads): Look for threads in all inferiors.
2819 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2821 * breakpoint.c (update_watchpoint): Handle the case of the
2822 watchpoint to update not being in the breakpoint list yet.
2823 (hw_watchpoint_use_count): New, factored out from
2824 hw_watchpoint_used_count.
2825 (hw_watchpoint_used_count): Rename to ...
2826 (hw_watchpoint_used_count_others): ... this. Add `except'
2827 parameter. Don't count resources of `except'. Use
2828 hw_watchpoint_use_count.
2830 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2832 * gdbthread.h (enum thread_state): Moved here.
2833 (struct thread_info): Rename `executing_' field to `executing' and
2834 `state_' to `state'.
2835 * thread.c (enum thread_state): Moved to gdbthread.h.
2836 (new_thread, add_thread_silent, delete_thread_1)
2837 (any_live_thread_of_process, thread_alive, set_running)
2838 (set_running, is_thread_state, any_running, is_executing)
2839 (set_executing, finish_thread_state, print_thread_info)
2840 (do_captured_thread_select): Adjust.
2842 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2844 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2845 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2847 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2848 Matt Rice <ratmice@gmail.com>
2852 * interps.c (struct interp) <interpreter_out>: Delete field.
2853 (interp_new): Remove the data and uiout parameters and adjust.
2854 (interp_set): Only set the current_uiout from the interpreter's
2855 uiout after initializing the interpreter. Adjust call to
2857 (interp_ui_out): Adjust to call procs->ui_out_proc.
2858 (interp_data, interp_name): New.
2859 * interps.h (interp_init_ftype): Add `self' parameter.
2860 (interp_ui_out_ftype): New typedef.
2861 (struct interp_procs) <ui_out_proc>: New method pointer.
2862 (interp_new): Remove the data and uiout parameters.
2863 (interp_data, interp_name): Declare.
2864 * tui/tui-interp.c (tui_init): Adjust prototype.
2866 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2867 tui_out here. Adjust call to interp_new.
2868 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2869 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2871 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2872 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2873 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2874 Initialize mi->uiout depending on the mi_version as extracted from
2875 the interpreter's name.
2877 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2878 interp_new. Don't allocate the ui_out's of the interpreters here.
2880 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2882 * solib.c (solib_used): New function.
2883 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2884 by another so_list object before freeing it.
2886 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2889 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2892 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2895 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2896 (amd64_skip_xmm_prologue): ... this new function. Describe its
2897 parameters. No longer use amd64_prologue_line_bug.
2898 * defs.h (producer_is_gcc_ge_4): New declaration.
2899 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2900 (process_full_comp_unit): Update its caller. Remove
2901 amd64_prologue_line_bug initialization.
2902 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2903 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2905 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2907 * linux-nat.h (enum resume_kind): New.
2908 (struct lwp_info) <last_resume_kind>: New field.
2909 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2910 resume_stop on the new lwp.
2911 (add_lwp): Set last_resume_kind as resume_continue by default.
2912 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2913 (resume_lwp): New, factored out from resume_callback. Also check
2914 for pending status in lp->waitstatus.
2915 (resume_callback): Reimplement.
2916 (resume_clear_callback): Set last_resume_kind as resume_stop.
2917 (resume_set_callback): Set last_resume_kind as resume_continue.
2918 (linux_nat_resume, linux_handle_extended_wait): Set
2920 (running_callback): Also check lp->waitstatus for pending events.
2921 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2923 (stop_and_resume_callback): Don't re-resume if the core wanted the
2924 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2925 using an invalidated pointer.
2926 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2927 SIGSTOPs if the core wanted the LWP to stop.
2928 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2929 wanted the lwp to stop. If the core wanted the lwp to stop, and
2930 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2931 of TARGET_SIGNAL_STOP.
2932 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2933 here. Instead, signal the lwp, and set the last_resume_kind to
2936 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2938 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2939 -1 (error), if the lwp exits right after attaching.
2941 2011-09-08 Doug Evans <dje@google.com>
2943 * py-cmd.c: Some minor formatting fixes.
2944 (gdbpy_parse_command_name): Rename text arg to name, make const.
2945 All callers updated.
2946 * python-internal.h (gdbpy_parse_command_name): Update.
2948 * cli/cli-decode.c (add_cmd): Add comment.
2950 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2952 PR breakpoints/12435
2953 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2954 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2955 * dwarf2read.c (process_full_comp_unit): Initialize
2956 amd64_prologue_line_bug.
2957 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2959 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2961 Fix TUI screen corruption.
2962 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2965 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2967 * findvar.c (read_var_value): Never return NULL, throw an error
2968 instead. Update the function comment. State symbol name in the error
2970 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2972 * stack.c (print_frame_args): Likewise.
2973 * valops.c (value_of_variable): Likewise.
2975 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2977 * stack.c (print_frame_args): New variable except. Wrap
2978 read_var_value and common_val_print into TRY_CATCH.
2980 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2982 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2983 caller to value_of_this.
2984 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2986 * valops.c (value_of_this): Remove parameter complain and variable ret.
2987 Update function comment. Never return NULL by this code.
2988 (value_of_this_silent): New function.
2989 * value.h (value_of_this): Remove parameter complain.
2990 (value_of_this_silent): New declaration.
2992 2011-09-07 Yao Qi <yao@codesourcery.com>
2994 * gdbthread.h (struct thread_info): Remove fields
2995 `stepping_through_solib_after_catch' and
2996 `stepping_through_solib_catchpoints'.
2997 * infrun.c (init_thread_stepping_state): Update.
2998 (process_event_stop_test, currently_stepping): Update.
2999 (currently_stepping_or_nexting_callback): Update.
3001 2011-09-07 Yao Qi <yao@codesourcery.com>
3003 * gdbthread.h (struct thread_info): Comment on field
3004 `step_after_step_resume_breakpoint'.
3006 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3008 * remote.c (remote_console_output): Reindent.
3010 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
3012 * frame.c (has_stack_frames): Check for currently selected
3015 2011-09-06 Pedro Alves <pedro@codesourcery.com>
3017 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3018 (set_async_annotation_level, set_async_prompt, pop_prompt)
3019 (push_prompt, new_async_prompt): Delete declarations.
3020 * top.h (get_prompt, set_prompt): Change prototype.
3021 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3023 * top.c (command_loop):
3024 (top_prompt): New global.
3025 (get_prefix, set_prefix, get_suffix, ): Delete.
3026 (get_prompt, set_prompt): Rewrite.
3027 (show_new_async_prompt): Rename to ...
3028 (show_prompt): ... this.
3029 (init_main): Adjust. Don't handle --annotate=2 here.
3030 * event-top.c (new_async_prompt): Delete.
3031 (the_prompts): Delete.
3032 (more_to_come): Make static.
3033 (display_gdb_prompt): Use top_level_prompt() to compute the top
3034 level prompt, and don't notify the before_prompt observers
3035 directly here. Always trick readline into not trying to display
3036 the prompt if sync_execution and displaying the primary prompt.
3037 If displaying a local/secondary prompt, always show it, even if
3038 sync_execution is set.
3039 (change_annotation_level): Delete.
3040 (top_level_prompt): New, based on change_annotation_level.
3041 (push_prompt, pop_prompt): Delete.
3042 (async_disable_stdin): No longer pushes prompt.
3043 (command_line_handler): No longer pushes or pops prompt. If more
3044 input is expected, call display_gdb_prompt with an explicit empty
3046 (async_stop_sig): Adjust.
3047 (set_async_annotation_level, set_async_prompt): Delete.
3048 * python/python.c (before_prompt_hook): Adjust.
3050 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3054 * infrun.c (fetch_inferior_event): Check if there's a selected
3055 thread before checking if the selected thread is executing.
3057 2011-09-05 Pedro Alves <pedro@codesourcery.com>
3059 * inf-loop.c (execute_command): Don't check if the current thread
3060 if running before synchronously waiting for command completion.
3061 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3063 (normal_stop): Call async_enable_stdin here.
3064 * inf-loop.c (inferior_event_handler): Don't call
3065 async_enable_stdin, nor handle "set exec-done-display" here.
3067 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3071 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3073 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3075 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3077 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3079 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3081 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3083 2011-09-02 Matt Rice <ratmice@gmail.com>
3086 * event-top.c (cli_command_loop): Replace readline setup with
3087 direct call to display_gdb_prompt.
3088 (display_gdb_prompt): Do not call observer mechanism during
3089 synchronous execution.
3091 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3093 * linux-nat.c (in_pid_list_p): New.
3094 (linux_record_stopped_pid): Delete.
3095 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3096 already attached to the LWP. Return an indication if so.
3097 (linux_nat_filter_event): Adjust.
3098 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3099 returning an indication to ignore this thread.
3101 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3103 * top.c: Include interps.h.
3104 (execute_command): If the target can async, but the interpreter is
3105 in sync mode, synchronously wait for the command to finish before
3107 (execute_command_to_string): Force the interpreter to sync mode.
3108 * infrun.c: Include interps.h.
3109 (fetch_inferior_event): Don't restore the prompt yet if the
3110 interpreter is in sync mode.
3111 * interps.c (interpreter_async): New global.
3112 * interps.h (interpreter_async): Declare.
3113 * inf-loop.c: Include interps.h.
3114 (inferior_event_handler): Don't print the language change or run
3115 breakpoint commands yet if the interpreter in is sync mode.
3116 * main.c (captured_command_loop): Flip the interpreter to async
3118 * cli/cli-script.c: Include interps.h.
3119 (execute_user_command, while_command, if_command): Force the
3120 interpreter to sync mode.
3121 * python/python.c: Include interps.h.
3122 (python_command, execute_gdb_command): Force the interpreter to
3125 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3127 * value.c (show_convenience): Catch errors thrown while printing
3128 each internal variable.
3129 * infrun.c (validate_siginfo_access): New function.
3130 (siginfo_value_read, siginfo_value_write): Call it.
3132 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3135 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3136 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3139 2011-08-29 Yao Qi <yao@codesourcery.com>
3141 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3143 (enable_break2): Update caller.
3144 * solib-frv.c (bfd_lookup_symbol): Removed.
3146 (enable_break2): Update caller.
3147 * solib-pa64.c (bfd_lookup_symbol): Removed.
3149 * solib-svr4.c (bfd_lookup_symbol): Removed.
3150 (cmp_name_and_sec_flags): New.
3151 (enable_break): Update caller.
3152 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3153 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3154 (gdb_bfd_lookup_symbol): New.
3155 * solib.h: Functions declarations.
3157 2011-08-29 Yao Qi <yao@codesourcery.com>
3159 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3162 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3164 Fix TUI stepi on code without symbols.
3165 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3168 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3171 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3172 and the static keyword.
3173 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3174 Make prefix an array.
3175 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3176 * mi/mi-main.c (get_register): Remove stb initialization and the static
3179 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3181 Code cleanup - make mi_opt const.
3182 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3184 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3185 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3186 (mi_cmd_env_dir): Likewise.
3187 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3188 (mi_cmd_target_file_put): Likewise.
3189 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3190 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3191 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3192 (mi_valid_noargs): Make opts const.
3193 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3194 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3195 (mi_cmd_data_read_memory): Likewise.
3196 (mi_cmd_data_read_memory_bytes): Likewise.
3197 (mi_cmd_data_write_memory): Likewise.
3199 2011-08-26 Matt Rice <ratmice@gmail.com>
3201 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3202 bcache_xmalloc, replace bcache_xmalloc with call to
3203 psymbol_bcache_init for psymbol_cache.
3204 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3206 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3208 * inf-loop.c (inferior_event_handler): Add exception_print in
3211 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3213 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3214 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3215 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3216 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3217 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3218 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3219 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3220 * infrun.c (fetch_inferior_event): Call
3221 make_bpstat_clear_actions_cleanup.
3222 * top.c (execute_command): New variable cleanup_if_error, call
3223 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3224 * utils.c (do_bpstat_clear_actions_cleanup)
3225 (make_bpstat_clear_actions_cleanup): New functions.
3227 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3229 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3230 either the parent or the child forks. Rename a couple locals.
3232 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3234 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3235 library call. Avoid reading the `status' local if all waitpid
3238 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3240 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3241 opening /proc/PID/task always succeeds.
3243 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3245 * linespec.c (symtab_from_filename): Check for the end of string.
3247 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3250 * varobj.c (cplus_describe_child): Add the keyword
3251 'class' to the output of the method when dealing
3252 with a cast to a base class.
3254 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3256 No functionality change.
3257 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3258 function comment a reference, new variables tp and bs, move here code
3259 from throw_exception.
3260 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3261 describe it in the comment.
3262 * exceptions.c (throw_exception): Remove variable tp, move the code for
3263 bpstat_clear_actions to bpstat_clear_actions.
3265 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3267 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3268 * linux-nat.c: Include linux-procfs.h.
3269 (linux_proc_get_tgid): Move to ...
3270 * common/linux-procfs.c: ... here. New file.
3271 * common/linux-procfs.h: New file.
3272 * linux-thread-db.c: Include linux-procfs.h.
3273 * Makefile.in: Update dependencies.
3274 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3275 * config/arm/linux.mh: Likewise.
3276 * config/i386/linux.mh: Likewise.
3277 * config/i386/linux64.mh: Likewise.
3278 * config/ia64/linux.mh: Likewise.
3279 * config/m32r/linux.mh: Likewise.
3280 * config/m68k/linux.mh: Likewise.
3281 * config/mips/linux.mh: Likewise.
3282 * config/pa/linux.mh: Likewise.
3283 * config/pa/linux.mh: Likewise.
3284 * config/powerpc/linux.mh: Likewise.
3285 * config/powerpc/ppc64-linux.mh: Likewise.
3286 * config/powerpc/spu-linux.mh: Likewise.
3287 * config/sparc/linux.mh: Likewise.
3288 * config/sparc/linux64.mh: Likewise.
3289 * config/xtensa/linux.mh: Likewise.
3291 2011-08-24 Hui Zhu <teawater@gmail.com>
3293 * tracepoint.c (cond_string_is_same): New function.
3294 (find_matching_tracepoint): Add condition check
3295 by cond_string_is_same.
3297 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3299 Fix build error in Darwin port.
3300 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3302 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3305 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3306 (command_line_is_silent): New function.
3307 (bpstat_do_actions_1): No longer use commands_left, use
3308 command_line_is_silent for commands.
3309 (bpstat_alloc): Remove clearing of commands_left.
3310 (bpstat_stop_status): Remove initialization of commands_left, use
3311 command_line_is_silent.
3312 * breakpoint.h (struct bpstats): Remove commands_left.
3314 2011-08-18 Keith Seitz <keiths@redhat.com>
3317 * cp-name-parser.y (struct demangle_info): Remove unused
3320 (allocate_info): Change return type to struct demangle_info *.
3321 Always allocate a new demangle_info.
3322 Remove unused PREV pointer.
3323 (cp_new_demangle_parse_info): New function.
3324 (cp_demangled_name_parse_free): New function.
3325 (do_demangled_name_parse_free_cleanup): New function.
3326 (make_cleanup_cp_demangled_name_parse_free): New function.
3327 (cp_demangled_name_to_comp): Change return type to
3328 struct demangle_parse_info *.
3329 Allocate a new storage for each call.
3330 (main): Update usage for cp_demangled_name_to_comp
3332 * cp-support.h (struct demangle_parse_info): New structure.
3333 (cp_demangled_name_to_comp): Update API change for
3335 (cp_new_demangle_parse_info): Declare.
3336 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3337 (cp_demangled_name_parse_free): Declare.
3338 * cp-support.c (cp_canonicalize_string): Update API
3339 change for cp_demangled_name_to_comp.
3340 (mangled_name_to_comp): Likewise.
3341 Return struct demangle_parse_info, too.
3342 (cp_class_name_from_physname): Update mangled_name_to_comp
3344 (method_name_from_physname): Likewise.
3345 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3346 (cp_remove_params): Likewise.
3347 * python/py-type.c (typy_legacy_template_argument): Likewise.
3349 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3350 (cp_merge_demangle_parse_infos): Declare.
3351 * cp-support.c (ignore_typedefs): New file global.
3352 (copy_string_to_obstack): New function.
3353 (inspect_type): New function.
3354 (replace_typedefs): New function.
3355 (replace_typedefs_qualified_name): New function.
3356 (cp_canonicalize_string_no_typedefs): New function.
3357 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3358 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3359 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3360 instead of cp_canonicalize_string.
3361 (find_method): Likewise.
3362 (decode_compound): Before looking up the name, call
3363 cp_canonicalize_string_no_typedefs.
3364 (decode_variable): Likewise.
3366 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3367 Tom Tromey <tromey@redhat.com>
3368 Matt Rice <ratmice@gmail.com>
3370 * python/lib/gdb/prompt.py: New file.
3371 * python/lib/gdb/command/prompt.py: New file.
3372 * NEWS: Document set extended-prompt and gdb.prompt library
3374 2011-08-16 Yao Qi <yao@codesourcery.com>
3376 * tic6x-linux-tdep.c: Move const arrays definition from here...
3377 * tic6x-tdep.c: to here ...
3379 2011-08-14 Yao Qi <yao@codesourcery.com>
3381 * NEWS: New port to Texas Instruments TMS320C6x.
3383 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3384 Bernd Schmidt <bernds@codesourcery.com>
3385 Yao Qi <yao@codesourcery.com>
3387 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3388 * solib-dsbt.c: New file. Support DSBT shared object.
3389 * tic6x-linux-tdep.c: New file.
3390 * tic6x-tdep.c: New file.
3391 * tic6x-tdep.h: New file.
3393 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3394 Yao Qi <yao@codesourcery.com>
3396 * remote.c (PACKET_qXfer_fdpic): New enum value.
3397 (remote_protocol_features): Add qXfer:fdpic:read packet.
3398 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3399 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3400 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3402 2011-08-14 Yao Qi <yao@codesourcery.com>
3404 Target description for tic6x.
3405 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3406 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3407 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3408 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3409 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3410 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3411 * features/tic6x-c64xp-linux.xml: New.
3412 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3413 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3414 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3415 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3416 * regformats/tic6x-c64xp.dat,
3417 regformats/tic6x-c62x-linux.dat: Generated.
3418 * regformats/tic6x-c64x-linux.dat,
3419 regformats/tic6x-c64xp-linux.dat: Generated.
3420 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3421 features/tic6x-*.c files.
3422 Add regformats/tic6x-*.dat files.
3424 2011-08-12 Doug Evans <dje@google.com>
3426 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3427 * python/py-symbol.c (sympy_get_type): New function.
3428 (symbol_object_getset): Add "type".
3430 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3434 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3436 (tui_show_register_group): Don't store a byte buffer in the data
3438 (tui_register_format): Skip registers with an empty name.
3439 (tui_get_register): Store a struct value in the data element's
3440 value field instead of a byte buffer holding the raw register
3441 contents. Account for optimized-out and unavailable registers
3442 when comparing register contents.
3444 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3446 * printcmd.c (current_display_number): Update comment.
3447 (disable_current_display_cleanup): Delete.
3448 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3449 catch errors thrown while evaluating and printing the display.
3451 2011-08-09 Tom Tromey <tromey@redhat.com>
3453 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3455 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3457 * elfread.c (elf_symtab_read): Rework comments.
3458 * maint.c (maintenance_command): Ditto.
3459 * somread.c (som_symtab_read): Ditto.
3460 * solib.c (solib_find, solib_map_sections, update_solib_list)
3461 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3462 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3463 (sharedlibrary_command, no_shared_libraries): Ditto.
3464 * solib-irix.c (locate_base, disable_break, enable_break)
3465 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3466 (irix_current_sos, irix_open_symbol_file_object)
3467 (irix_special_symbol_handling): Ditto.
3468 * solib-sunos.c (locate_base, first_link_map_member)
3469 (sunos_current_sos, disable_break, enable_break)
3470 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3472 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3473 (open_symbol_file_object, svr4_current_sos, enable_break)
3474 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3476 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3477 (frv_current_sos, enable_break, frv_special_symbol_handling)
3478 (frv_solib_create_inferior_hook): Ditto.
3479 * solist.h (struct target_so_ops): Extend the comments of the
3480 special_symbol_handling, current_sos and open_symbol_file_object
3483 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3485 * python/lib/gdb/__init__.py: Auto-load files in command and
3486 function directories.
3487 * python/python.c (finish_python_initialization): Use
3489 * python/lib/gdb/command/pretty_printers.py: Self register
3491 * NEWS: Document auto-loading.
3493 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3495 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3496 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3497 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3499 2011-08-08 Tom Tromey <tromey@redhat.com>
3501 * breakpoint.c (clean_up_filters): Remove.
3502 (catch_syscall_split_args): Use VEC_cleanup.
3504 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3506 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3507 (main): Uncomment "Demangling error\n".
3509 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3511 * solib-target.c (segment_attributes): Make them static.
3512 (section_attributes, library_children, library_attributes): Likewise.
3513 (library_list_children, library_list_attributes): Likesise.
3514 (library_list_elements): Likewise.
3516 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3518 * exceptions.c (throw_exception): Don't disable the current
3520 * printcmd.c (disable_current_display_cleanup): New function.
3521 (do_one_display): Install a cleanup to disable the current display
3522 if doing the display throws.
3524 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3526 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3527 initialization of the tp_new member to the corresponding
3528 gdbpy_initialize_* function.
3529 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3530 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3531 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3532 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3533 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3535 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3537 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3538 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3539 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3540 references to current_uiout.
3542 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3544 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3545 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3546 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3547 * top.c (gdb_readline_wrapper): Adjust.
3548 * tui/tui-interp.c (tui_command_loop):
3549 (_initialize_tui_interp): Don't install it.
3551 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3553 * ui-out.h (uiout): Rename to ...
3554 (current_uiout): ... this.
3555 * ui-out.c (uiout): Rename to ...
3556 (current_uiout): ... this.
3557 * ada-lang.c (print_it_exception, print_one_exception)
3558 (print_mention_exception): Adjust.
3559 * breakpoint.c (watchpoint_check): Adjust.
3560 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3561 (default_collect_info, watchpoints_info, print_one_catch_fork)
3562 (print_one_catch_vfork, print_one_catch_syscall)
3563 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3564 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3565 (print_it_watchpoint, print_mention_watchpoint)
3566 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3567 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3568 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3569 (bkpt_print_mention, momentary_bkpt_print_it)
3570 (tracepoint_print_mention, update_static_tracepoint)
3571 (tracepoints_info, save_breakpoints): Adjust.
3572 * cli-out.c (field_separator): Adjust.
3573 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3574 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3575 * frame.c (get_current_frame): Adjust.
3576 * infcmd.c (run_command_1, print_return_value): Adjust.
3577 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3578 * infrun.c (print_end_stepping_range_reason): Adjust.
3579 (print_signal_exited_reason, print_exited_reason): Adjust.
3580 (print_signal_received_reason, print_no_history_reason): Adjust.
3581 * interps.c (interp_set): Adjust.
3582 * osdata.c (info_osdata_command): Adjust.
3583 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3584 * remote-fileio.c (remote_fileio_request): Adjust.
3585 * remote.c (show_remote_cmd): Adjust.
3586 * solib.c (info_sharedlibrary_command): Adjust.
3587 * source.c (print_source_lines_base): Adjust.
3588 * stack.c (print_stack_frame): Adjust.
3589 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3590 * symfile-mem.c (add_vsyscall_page): Adjust.
3591 * symfile.c (load_progress, generic_load)
3592 (print_transfer_performance): Adjust.
3593 * thread.c (info_threads_command, restore_selected_frame)
3594 (thread_command): Adjust.
3595 * top.c (make_cleanup_restore_ui_file): Adjust.
3596 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3597 (print_one_static_tracepoint_marker): Adjust.
3598 * cli/cli-cmds.c (print_disassembly): Adjust.
3599 * cli/cli-decode.c (print_doc_line): Adjust.
3600 * cli/cli-interp.c (safe_execute_command): Adjust.
3601 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3602 (handle_redirections): Adjust.
3603 * cli/cli-script.c (show_user_1): Adjust.
3604 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3605 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3606 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3607 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3608 (mi_cmd_env_dir): Adjust.
3609 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3610 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3611 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3612 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3613 (list_args_or_locals): Adjust.
3614 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3615 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3616 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3617 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3618 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3619 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3620 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3621 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3622 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3623 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3624 (list_available_thread_groups, mi_cmd_list_thread_groups)
3625 (mi_cmd_data_list_register_names)
3626 (mi_cmd_data_list_changed_registers)
3627 (mi_cmd_data_list_register_values, get_register)
3628 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3629 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3630 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3631 (mi_execute_command, mi_load_progress): Adjust.
3632 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3633 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3635 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3636 * tui/tui-interp.c (tui_command_loop): Adjust.
3637 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3639 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3641 * exceptions.c (struct catcher): Remove saved_uiout field.
3642 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3643 no longer save/resvore the global ui_out builder.
3644 (catch_exceptions_with_msg): Save/override/restore the global
3645 ui_out builder manually instead of relying on TRY_CATCH to do it.
3646 (catch_errors): Save/restore the global ui_out builder manually
3647 instead of relying on TRY_CATCH to do it.
3648 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3650 (TRY_CATCH): Adjust.
3651 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3652 the global ui_out builder manually instead of relying on TRY_CATCH
3655 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3657 * breakpoint.c (update_global_location_list): Ensure
3658 invariant 'first loc marked not duplicated and inserted,
3659 following locs marked duplicated/not inserted' is respected
3660 for multiple locations at the same address.
3661 (unduplicated_should_be_inserted) New function.
3662 (swap_insertion) New function.
3664 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3666 * stack.c (print_frame_arguments_choices): Comment typo fix.
3668 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3671 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3672 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3673 argument. Update callers.
3675 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3678 * doublest.c (convert_doublest_to_floatformat): Pass correct
3679 mantissa length to put_field.
3681 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3683 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3684 exception_print code path.
3685 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3686 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3687 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3689 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3692 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3693 Remove, merge them into ...
3694 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3695 variable args and its initialization.
3696 (struct print_args_args, print_args_stub): Remove, merge them into
3698 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3700 (do_gdb_disassembly): ... here. Remove variable args and its
3702 (print_frame): Remove variable args and its initialization, new
3703 variable gdbarch and numargs (from print_args_stub), inline here
3704 print_args_stub with a TRY_CATCH.
3705 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3707 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3708 New variable e, remove variable btargs and its initialization.
3710 2011-08-01 Tristan Gingold <gingold@adacore.com>
3712 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3714 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3716 * breakpoint.c (insert_bp_location): Document return value.
3717 (insert_breakpoint_locations): Fix documentation.
3718 (remove_breakpoints): Add documentation.
3720 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3722 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3723 argument. Update callers.
3725 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3727 * stack.c (print_frame_info): Comment typo fix.
3729 2011-07-29 Sterling Augustine <saugustine@google.com>
3731 * MAINTAINERS (Write After Approval): Add myself to the list.
3733 2011-07-29 Tom Tromey <tromey@redhat.com>
3735 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3736 (library_list_start_segment): Update.
3737 (library_list_start_section): Update.
3739 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3741 * varobj.c (value_get_print_value): Move hint check later into the
3742 function. Comment function. Free thevalue before reusing it.
3744 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3745 Pedro Alves <pedro@codesourcery.com>
3747 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3749 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3750 Assert the result kind.
3751 * value.h (value_one): Remove parameter lv.
3753 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3755 Fix crash on lval_computed values.
3756 * valops.c (value_zero): Use not_lval for lval_computed.
3758 2011-07-27 Tom Tromey <tromey@redhat.com>
3760 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3761 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3763 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3765 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3766 "ptype" by their typedefs difference.
3768 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3770 * dwarf2expr.c (ctx_no_read_reg): New function.
3771 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3772 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3773 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3774 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3776 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3778 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3779 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3781 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3782 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3783 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3784 (ctx_no_get_base_type): Move the functions here.
3785 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3786 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3787 (ctx_no_get_base_type): New declarations.
3789 2011-07-27 Tom Tromey <tromey@redhat.com>
3791 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3793 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3794 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3796 2011-07-26 Sterling Augustine <saugustine@google.com>
3798 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3800 (dump_bfd_file): Likewise.
3802 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3804 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3805 (remote_hw_watchpoint_length_limit): New variable.
3806 (_initialize_remote) add set,show cmds for this new variable.
3807 * gdb.texinfo: document these new commands.
3808 * NEWS: Mention these new commands.
3810 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3812 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3813 true for software watchpoints.
3815 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3819 2011-07-26 Tom Tromey <tromey@redhat.com>
3821 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3822 * dwarf2read.c (read_indirect_string_at_offset): New function.
3823 (read_indirect_string): Use it.
3824 (dwarf_decode_macro_bytes): New function, taken from
3825 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3826 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3827 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3829 (struct dwarf2_per_objfile) <macro>: New field.
3830 (dwarf2_elf_names): Add .debug_macro.
3831 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3832 (dwarf2_locate_sections): Handle new section.
3833 (read_file_scope): Handle DW_AT_GNU_macros.
3834 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3836 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3838 * NEWS: Mention dcache configuration.
3839 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3840 (dcache_size, dcache_line_size): New variables.
3841 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3842 (struct dcache_block): Make it expandable.
3843 (struct dcache_struct): New field.
3844 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3845 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3846 (dcache_poke_byte, dcache_print_line): Adjust.
3847 (set_dcache_size, set_dcache_line_size): New functions.
3848 (set_dcache_command, show_dcache_command): New functions.
3849 (_initialize_dcache): Add new commands.
3851 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3853 * progspace.h (struct program_space): Add solib_add_generation.
3854 * infcmd.c (post_create_inferior): Only call solib_add if not
3856 * solib.c (solib_add): Increment solib_add_generation.
3858 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3860 Fix implicit pointer offsets.
3861 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3864 2011-07-25 Tom Tromey <tromey@redhat.com>
3866 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3868 (ada_exception_sal): Make 'ops' const.
3869 (ada_decode_exception_location): Likewise.
3870 (ada_decode_assert_location): Likewise.
3871 (catch_assert_command): Update.
3872 (catch_ada_exception_command): Update.
3873 (create_ada_exception_catchpoint): Make 'ops' const.
3874 * breakpoint.c (set_raw_breakpoint_without_location)
3875 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3877 (create_internal_breakpoint): Update.
3878 (init_raw_breakpoint_without_location): Make 'ops' const.
3879 (init_raw_breakpoint, init_catchpoint)
3880 (create_fork_vfork_event_catchpoint)
3881 (create_syscall_event_catchpoint, init_breakpoint_sal)
3882 (create_breakpoint_sal, create_breakpoints_sal)
3883 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3884 * breakpoint.h (struct breakpoint) <ops>: Now const.
3885 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3888 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3890 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3892 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3894 * breakpoint.h (print_recreate_thread): Declare.
3895 (struct breakpoint): Move step_count, pass_count,
3896 number_on_target, static_trace_marker_id,
3897 static_trace_marker_id_idx ...
3898 (struct tracepoint): ... to this new struct.
3899 (get_tracepoint, get_tracepoint_by_number_on_target)
3900 (get_tracepoint_by_number): Change return type to struct
3902 * breakpoint.c (is_tracepoint_type): New, factored out from
3904 (is_tracepoint): Adjust.
3905 (print_one_breakpoint_location): Cast to struct tracepoint as
3906 necessary, and adjust.
3907 (print_recreate_catch_fork, print_recreate_catch_vfork)
3908 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3909 print_recreate_thread.
3910 (init_breakpoint_sal): New, factored out from
3911 create_breakpoint_sal.
3912 (create_breakpoint_sal): Reimplement.
3913 (create_breakpoint): Allocate a struct tracecepoint if the caller
3914 wanted a tracepoint. Use init_breakpoint_sal and
3916 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3917 (print_recreate_masked_watchpoint)
3918 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3919 (tracepoint_print_one_detail): Adjust.
3920 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3921 Dump the pass count here.
3922 (update_static_tracepoint): Adjust.
3923 (addr_string_to_sals): Adjust.
3924 (create_tracepoint_from_upload): Adjust. Change return type to
3925 struct tracepoint pointer.
3926 (trace_pass_set_count): Change parameter type to struct tracepoint
3927 pointer, and adjust.
3928 (trace_pass_command): Adjust.
3929 (get_tracepoint, get_tracepoint_by_number_on_target)
3930 (get_tracepoint_by_number): Change return type to struct
3931 tracepoint pointer, and adjust.
3932 (print_recreate_thread): New, factored out from save_breakpoints.
3933 (save_breakpoints): Don't print thread and task and passcount
3935 * remote.c (remote_download_tracepoint): Adjust.
3936 * tracepoint.c (trace_actions_command, validate_actionline)
3937 (start_tracing, tfind_1, trace_find_tracepoint_command)
3938 (trace_dump_command): Adjust.
3939 (find_matching_tracepoint): Change return type to struct
3940 tracepoint pointer, and adjust.
3941 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3942 (tfile_trace_find, tfile_fetch_registers): Adjust.
3943 * tracepoint.h (create_tracepoint_from_upload): Change return type
3944 to struct tracepoint pointer.
3945 * ada-lang.c (print_recreate_exception): Call
3946 print_recreate_thread.
3947 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3949 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3951 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3952 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3953 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3954 watchpoint_thread, watchpoint_triggered ...
3955 (struct watchpoint): ... to this new struct.
3956 (is_watchpoint): Declare.
3957 (install_breakpoint): Add new `internal' parameter.
3958 * breakpoint.c (is_watchpoint): Delete declaration.
3959 (set_breakpoint_condition): Handle watchpoints.
3960 (is_watchpoint): Make public.
3961 (watchpoint_in_thread_scope): Change parameter type to struct
3963 (watchpoint_del_at_next_stop): Change parameter type to struct
3964 watchpoint. Remove assertion. Adjust.
3965 (update_watchpoint): Ditto.
3966 (insert_breakpoints, breakpoint_init_inferior)
3967 (watchpoints_triggered, watchpoint_check)
3968 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3969 (bpstat_stop_status, print_one_breakpoint_location)
3970 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3971 to struct watchpoint as necessary, and adjust.
3972 (install_breakpoint): Add `internal' argument. If true, don't
3973 mention the new breakpoint. Use set_breakpoint_number.
3974 (create_fork_vfork_event_catchpoint)
3975 (create_syscall_event_catchpoint): Adjust.
3976 (dtor_watchpoint): New.
3977 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3978 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3979 (print_it_watchpoint, print_mention_watchpoint)
3980 (print_recreate_watchpoint, insert_masked_watchpoint)
3981 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3982 (print_one_detail_masked_watchpoint)
3983 (print_mention_masked_watchpoint)
3984 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3985 necessary, and adjust.
3986 (watch_command_1): Allocate and initialize a struct watchpoint
3987 instead of a struct breakpoint. Use install_breakpoint.
3988 (catch_exec_command_1): Adjust.
3989 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3991 (delete_breakpoint, enable_breakpoint_disp)
3992 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3993 as necessary, and adjust.
3994 (initialize_breakpoint_ops): Install dtor_watchpoint as
3995 watchpoints' dtor method.
3996 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3997 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3998 to struct watchpoint as necessary, and adjust.
4000 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4002 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4003 the the base class ops table.
4004 (catch_exception_breakpoint_ops)
4005 (catch_exception_unhandled_breakpoint_ops)
4006 (catch_assert_breakpoint_ops): Don't statically initialize.
4007 (initialize_ada_catchpoint_ops): New.
4008 (_initialize_ada_language): Call it.
4009 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4010 (bkpt_breakpoint_ops): Forward declare.
4011 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4012 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4013 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4014 (masked_watchpoint_breakpoint_ops)
4015 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4016 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4017 base class ops table.
4018 (null_re_set, null_check_status, null_works_in_software_mode)
4019 (null_resources_needed, null_print_one_detail): Delete.
4020 (bkpt_dtor): Rename to ...
4021 (base_breakpoint_dtor): ... this. Make static.
4022 (bkpt_allocate_location): Rename to ...
4023 (base_breakpoint_allocate_location): ... this. Make static.
4024 (base_breakpoint_re_set): New.
4025 (internal_error_pure_virtual_called): New.
4026 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4027 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4028 (base_breakpoint_works_in_software_mode)
4029 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4030 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4031 (base_breakpoint_print_recreate): New functions.
4032 (base_breakpoint_ops): New global.
4033 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4034 (bkpt_breakpoint_hit): Make static.
4035 (bkpt_check_status): Delete.
4036 (bkpt_resources_needed): Make static.
4037 (bkpt_works_in_software_mode): Delete.
4038 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4040 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4041 (momentary_breakpoint_ops): Don't statically initialize.
4042 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4044 (tracepoint_insert_location, tracepoint_remove_location)
4045 (tracepoint_check_status, tracepoint_works_in_software_mode)
4046 (tracepoint_print_it): Delete.
4047 (tracepoint_breakpoint_ops): Don't statically initialize.
4048 (initialize_breakpoint_ops): New.
4049 (_initialize_breakpoint): Call it.
4050 * breakpoint.h (null_re_set, null_works_in_software_mode)
4051 (null_resources_needed, null_check_status, null_print_one_detail):
4052 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4053 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4054 (bkpt_check_status, bkpt_resources_needed)
4055 (bkpt_works_in_software_mode, bkpt_print_it)
4056 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4057 Delete declarations.
4058 (initialize_breakpoint_ops): Declare.
4060 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4062 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4063 (momentary_bkpt_print_it): Simplify.
4065 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4067 Split internal, momentary and user breakpoints breakpoint_ops
4070 * breakpoint.c (internal_breakpoint_ops)
4071 (momentary_breakpoint_ops): Forward declare.
4072 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4073 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4074 (create_overlay_event_breakpoint)
4075 (create_std_terminate_master_breakpoint)
4076 (create_exception_master_breakpoint): Create breakpoints with
4077 internal_breakpoint_ops vtable.
4078 (set_longjmp_breakpoint): Create momentary breakpoints with
4079 momentary_breakpoint_ops vtable, using
4080 momentary_breakpoint_from_master.
4081 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4082 (create_solib_event_breakpoint): Create breakpoints with
4083 internal_breakpoint_ops vtable.
4084 (set_momentary_breakpoint): Create breakpoints with
4085 momentary_breakpoint_ops vtable.
4086 (momentary_breakpoint_from_master): New, factored out from
4087 clone_momentary_breakpoint.
4088 (clone_momentary_breakpoint): Adjust.
4089 (watch_command_1): Create scope breakpoints with
4090 momentary_breakpoint_ops vtable.
4091 (bkpt_re_set): Remove handling of internal and momentary
4093 (bkpt_print_mention, bkpt_print_recreate): New.
4094 (bkpt_breakpoint_ops): Adjust.
4095 (internal_bkpt_re_set, internal_bkpt_check_status)
4096 (internal_bkpt_print_it, internal_bkpt_print_mention)
4097 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4098 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4099 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4100 (momentary_bkpt_print_recreate): New.
4101 (momentary_breakpoint_ops): New.
4103 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4105 Implement most breakpoint_ops methods for all breakpoint types,
4106 and move the default handlings to the proper callbacks.
4108 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4109 works_in_software_mode method.
4110 (insert_bp_location): Go through breakpoint_ops->insert_location
4111 for software and hardware watchpoints.
4112 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4114 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4115 for software and hardware watchpoints.
4116 (print_it_typical): Delete.
4117 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4119 (watchpoint_check): Adjust comment.
4120 (bpstat_check_location): Simply always call the breakpoint's
4121 breakpoint_hit method.
4122 (bpstat_stop_status): Always call the breakpoint's check_status
4123 method. Remove special cases for watchpoints and internal event
4124 breakpoints from here (moved to the check_status implementations).
4125 (print_one_breakpoint_location): Assume b->ops is never NULL.
4126 Remove static tracepoint marker id printing from here (moved to
4127 the print_one_detail callback implementation of tracepoints).
4128 (init_bp_location): Assert OPS is never NULL.
4129 (allocate_bp_location): Always call the breakpoint's
4130 allocate_location method, and remove the default code from here.
4131 (free_bp_location): Always call the location's dtor method, and
4132 remove the default code from here.
4133 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4134 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4135 parameter. Pass it down.
4136 (set_raw_breakpoint): Ditto.
4137 (print_it_catch_fork): Adjust to take a bpstat as argument.
4138 (catch_fork_breakpoint_ops): Install methods.
4139 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4140 (catch_vfork_breakpoint_ops): Install methods.
4141 (dtor_catch_syscall): Call the base dtor.
4142 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4143 (catch_syscall_breakpoint_ops): Install methods.
4144 (dtor_catch_exec): Call the base dtor.
4145 (print_it_catch_exec): Adjust to take a bpstat as argument.
4146 (catch_exec_breakpoint_ops): Install methods.
4147 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4148 the breakpoint's resources_needed method, and remove the default
4150 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4152 (clone_momentary_breakpoint): Clone the original's ops.
4153 (mention): Always call the breakpoint's print_mention method, and
4154 remove the default code from here.
4155 (create_breakpoint_sal): Adjust to pass the ops to
4156 set_raw_breakpoint rather than setting it manually.
4157 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4158 ops to set_raw_breakpoint_without_location rather than setting it
4160 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4161 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4162 (ranged_breakpoint_ops): Install methods.
4163 (break_range_command): Adjust to pass the ops to
4164 set_raw_breakpoint rather than setting it manually.
4165 (re_set_watchpoint, breakpoint_hit_watchpoint)
4166 (check_status_watchpoint, resources_needed_watchpoint)
4167 (works_in_software_mode_watchpoint, print_it_watchpoint)
4168 (print_mention_watchpoint, print_recreate_watchpoint): New
4170 (watchpoint_breakpoint_ops): Install new methods.
4171 (print_it_masked_watchpoint): New function.
4172 (masked_watchpoint_breakpoint_ops): Install new methods.
4173 (watch_command_1): Adjust to pass the right breakpoint_ops to
4174 set_raw_breakpoint_without_location rather than setting it
4175 manually later. Record the current pspace.
4176 (print_it_exception_catchpoint): Adjust to take a bpstat as
4178 (gnu_v3_exception_catchpoint_ops): Install new methods.
4179 (say_where): New function.
4180 (null_re_set, null_check_status, null_works_in_software_mode)
4181 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4183 (bp_location_ops): New global.
4184 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4185 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4186 (bkpt_check_status, bkpt_resources_needed)
4187 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4188 (bkpt_print_recreate): New functions.
4189 (bkpt_breakpoint_ops): New global.
4190 (tracepoint_re_set, tracepoint_insert_location)
4191 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4192 (tracepoint_check_status, tracepoint_works_in_software_mode)
4193 (tracepoint_print_it, tracepoint_print_one_detail)
4194 (tracepoint_print_mention, tracepoint_print_recreate): New
4196 (tracepoint_breakpoint_ops): New global.
4197 (delete_breakpoint): Always call the breakpoint's dtor method, and
4198 remove the default handling from here.
4199 (breakpoint_re_set_default): Make static.
4200 (breakpoint_re_set_one): Always call the breakpoints re_set
4201 method, and remove the default handling from here.
4202 (trace_command, ftrace_command, strace_command)
4203 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4204 to create_breakpoint.
4205 (save_breakpoints): Always call the breakpoint's print_recreate
4206 method, and remove the default handling from here.
4208 * ada-lang.c (dtor_exception): Call the base dtor.
4209 (re_set_exception): Call the base method.
4210 (print_it_exception, print_it_catch_exception): Adjust to take a
4212 (catch_exception_breakpoint_ops): Install methods.
4213 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4215 (catch_exception_unhandled_breakpoint_ops): Install methods.
4216 (print_it_catch_assert): Adjust to take a bpstat as argument.
4217 (catch_assert_breakpoint_ops): Install methods.
4219 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4220 to take a bpstat as argument.
4221 (enum print_stop_action): Add describing comments to each enum
4223 (breakpoint_re_set_default): Delete declaration.
4224 (null_re_set, null_works_in_software_mode, null_resources_needed)
4225 (null_check_status, null_print_one_detail): Declare.
4226 (bkpt_breakpoint_ops): Declare.
4227 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4228 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4229 (bkpt_check_status, bkpt_resources_needed)
4230 (bkpt_works_in_software_mode, bkpt_print_it)
4231 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4234 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4235 bkpt_breakpoint_ops.
4236 * python/py-breakpoint.c (bppy_init): Ditto.
4238 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4240 * MAINTAINERS (Write After Approval): Add myself to the list.
4242 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4244 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4246 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4248 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4249 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4250 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4252 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4253 (struct i386_debug_reg_state): New.
4254 (i386_init_dregs): New.
4256 (i386_cleanup_dregs): Use i386_init_dregs.
4257 (i386_show_dr): Add state parameter and adjust.
4258 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4260 (i386_remove_aligned_watchpoint): Likewise.
4261 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4262 (i386_update_inferior_debug_regs): New.
4263 (i386_insert_watchpoint): Work on a local mirror of the debug
4264 registers, and only update the inferior on success.
4265 (i386_remove_watchpoint): Ditto.
4266 (i386_region_ok_for_watchpoint): Adjust.
4267 (i386_stopped_data_address): Adjust.
4268 (i386_insert_hw_breakpoint): Adjust.
4269 (i386_remove_hw_breakpoint): Adjust.
4271 2011-07-22 Tom Tromey <tromey@redhat.com>
4273 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4274 from amd64_pseudo_register_read. Change arguments. Call
4275 mark_value_bytes_unavailable when needed.
4276 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4277 set_gdbarch_pseudo_register_read.
4278 * sentinel-frame.c (sentinel_frame_prev_register): Use
4279 regcache_cooked_read_value.
4280 * regcache.h (regcache_cooked_read_value): Declare.
4281 * regcache.c (regcache_cooked_read_value): New function.
4282 (regcache_cooked_read): Call
4283 gdbarch_pseudo_register_read_value if available.
4284 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4285 (i386_pseudo_register_read): Remove.
4286 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4287 i386_pseudo_register_read. Change arguments. Call
4288 mark_value_bytes_unavailable when needed.
4289 (i386_pseudo_register_read_value): New function.
4290 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4291 not set_gdbarch_pseudo_register_read.
4292 * gdbarch.sh (pseudo_register_read_value): New method.
4293 * gdbarch.c, gdbarch.h: Rebuild.
4294 * findvar.c (value_from_register): Call get_frame_register_value.
4296 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4298 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4300 (display_gdb_prompt): Likewise.
4301 (change_annotation_level): Likewise.
4302 (push_prompt): Likewise.
4303 (pop_prompt): Likewise.
4304 (handle_stop_sig): Use get_prompt with a level.
4305 * top.c (command_loop): Use get_prompt with a level.
4306 (set_async_annotation_level): Use set_prompt with a level.
4307 (get_prefix): New function.
4308 (set_prefix): Ditto.
4309 (set_suffix): Ditto.
4310 (get_suffix): Ditto.
4311 (get_prompt): Accept a level argument.
4312 (set_prompt): Accept a level argument. Free old prompts. Set
4313 new_async_prompt if level is 0.
4314 (init_main): Use set_prompt with a level. Do not set
4316 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4317 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4318 Modify set_prompt, get_prompt to account for levels.
4319 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4321 * python/python.c (before_prompt_hook): Use set_prompt.
4323 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4325 * defs.h: Add guard against inclusion in gdbserver.
4326 (struct ptid, ptid_t): Move to common/ptid.h.
4327 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4328 xsnprintf, internal_error): Move to common/common-utils.h.
4330 * gdb_assert.h: Move into common/ sub-directory.
4331 * gdb_locale.h: Ditto.
4332 * gdb_dirent.h: Ditto.
4333 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4334 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4335 Move into common/ptid.h.
4336 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4337 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4338 Change nomem to malloc_failure.
4339 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4340 * utils.c (nomem): Rename to malloc_failure.
4341 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4342 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4343 (gdb_buildargv): Change nomem to malloc_failure.
4344 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4345 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4346 ptid_is_pid): Move into common/ptid.c.
4347 (initialize_infrun): Delete initialization of null_ptid and
4349 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4350 linux_common_xfer_osdata.
4351 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4352 common/ptid.c and common/buffer.c.
4353 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4354 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4355 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4356 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4358 * common/gdb_assert.h: New.
4359 * common/gdb_dirent.h: New.
4360 * common/gdb_locale.h: New.
4361 * common/buffer.c: New.
4362 * common/buffer.h: New.
4363 * common/ptid.c: New.
4364 * common/ptid.h: New.
4365 * common/xml-utils.c: New.
4366 * common/xml-utils.h: New.
4367 * common/common-utils.c: New.
4368 * common/common-utils.h: New.
4369 * common/linux-osdata.c: New.
4370 * common/linux-osdata.h: New.
4371 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4372 * config/arm/linux.mh (NATDEPFILES): Ditto.
4373 * config/i386/linux.mh (NATDEPFILES): Ditto.
4374 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4375 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4376 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4377 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4378 * config/mips/linux.mh (NATDEPFILES): Ditto.
4379 * config/pa/linux.mh (NATDEPFILES): Ditto.
4380 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4381 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4382 * config/s390/s390.mh (NATDEPFILES): Ditto.
4383 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4384 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4385 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4387 2011-07-21 Matt Rice <ratmice@gmail.com>
4389 * NEWS: Add info macros and info definitions commands.
4391 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4393 * NEWS: Document Python prompt substitution hook.
4395 2011-07-18 Matt Rice <ratmice@gmail.com>
4398 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4399 * macrotab.c (foreach_macro): Ditto.
4400 (foreach_macro_in_scope): Ditto.
4401 * macrocmd.c (print_macro_callback): New function.
4402 (info_macro_command): Move some code to print_macro_definition.
4403 (print_macro_definition): New function.
4404 (print_one_macro): Add new arguments to callback.
4405 (info_definitions_command): New function.
4406 (info_macros_command): Ditto.
4407 (_initialize_macrocmd): Add info macros and info definitions commands.
4408 * symtab.c (add_macro_name): Add new arguments to callback.
4410 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4411 Tom Tromey <tromey@redhat.com>
4413 * top.c (set_prompt): Rewrite to free previous prompt, free
4414 asynch_new_prompt and set both on new prompts.
4415 * event-top.c (display_gdb_prompt): Add prompt substitution
4417 * python/python.c (before_prompt_hook): New function.
4419 2011-07-20 Matt Rice <ratmice@gmail.com>
4421 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4422 arguments to store_unsigned_integer.
4424 2011-07-20 Tom Tromey <tromey@redhat.com>
4426 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4427 in some declaration-only cases.
4429 2011-07-18 Tom Tromey <tromey@redhat.com>
4432 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4433 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4434 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4435 <debug_type_section>: New field.
4436 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4437 (load_cu): Use appropriate section.
4438 (create_signatured_type_table_from_index): Add 'section'
4440 (dwarf2_read_index): Only allow a single .debug_types section.
4441 (dw2_get_file_names): Use appropriate section.
4442 (read_type_comp_unit_head): Add 'section' argument.
4443 (create_debug_types_hash_table): Loop over all .debug_types
4445 (init_cu_die_reader): Use appropriate section.
4446 (process_psymtab_comp_unit, load_partial_comp_unit)
4447 (load_full_comp_unit, read_die_and_children, find_partial_die)
4448 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4449 (lookup_signatured_type_at_offset): Add 'section' argument.
4450 (read_signatured_type_at_offset): Add 'sect' argument.
4451 (read_signatured_type): Use appropriate section.
4452 (set_die_type, get_die_type_at_offset): Update.
4453 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4455 (write_psymtabs_to_index): Don't allow index with more than one
4456 .debug_types section.
4458 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4460 Fix crash if referenced CU is aged out.
4461 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4462 xfree of block.data.
4463 (indirect_pieced_value): New variable back_to, use to for xfree of
4465 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4467 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4468 (load_cu): New function from ...
4469 (dw2_do_instantiate_symtab): ... the code here ...
4470 (process_full_comp_unit): ... and here.
4471 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4474 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4476 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4479 2011-07-19 Gary Benson <gbenson@redhat.com>
4481 * infrun.c (struct execution_control_state): New member
4482 stop_func_filled_in.
4483 (clear_stop_func, fill_in_stop_func): New functions.
4484 (handle_inferior_event): Call clear_stop_func rather than
4485 manipulating the execution control state directly.
4486 Call fill_in_stop_func lazily as required rather than
4487 directly calling find_pc_partial_function in all cases.
4489 2011-07-18 Tom Tromey <tromey@redhat.com>
4491 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4492 checking for variable-sized array.
4494 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4496 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4497 of supported languages.
4498 * varobj.c: Add top definitions and basic implementation of the
4499 following callbacks: ada_number_of_children, ada_name_of_variable,
4500 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4501 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4502 (languages): Register Ada-specific callbacks.
4503 (variable_language): Add the Ada case in the language setter switch.
4505 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4507 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4509 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4512 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4513 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4514 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4515 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4516 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4517 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4518 (struct dwarf_expr_context_funcs): New, move here methods from ...
4519 (struct dwarf_expr_context): ... here. New fields funcs.
4520 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4521 (dwarf_expr_ctx_funcs): New.
4522 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4523 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4524 (needs_frame_ctx_funcs): New.
4525 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4527 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4529 * MAINTAINERS (Write After Approval): Add myself to the list.
4531 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4533 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4534 that CIE pointer of an FDE really points to a CIE .
4536 2011-07-15 Hui Zhu <teawater@gmail.com>
4538 * remote.c (remote_get_trace_status): Add comments.
4540 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4542 Code cleanup - constify struct lval_funcs.
4543 * dwarf2loc.c (pieced_value_funcs): Make it const.
4544 * infrun.c (siginfo_value_funcs): Likewise.
4545 * opencl-lang.c (opencl_value_funcs): Likewise.
4546 * valops.c (value_assign, value_ind): Make the funcs variable const.
4547 * value.c (struct value): Make location.computed.funcs target const.
4548 Rearrange the comments.
4549 (allocate_computed_value): Make the funcs parameter target const.
4550 (value_computed_funcs): Return the funcs target const.
4551 (value_free, value_copy, set_value_component_location): Make the funcs
4553 * value.h (allocate_computed_value): Make the funcs parameter target
4555 (value_computed_funcs): Return the funcs target const.
4556 * windows-tdep.c (tlb_value_funcs): Make it const.
4558 2011-07-14 Hui Zhu <teawater@gmail.com>
4560 * remote.c (remote_get_trace_status): Initialize p.
4562 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4565 * remote.c (remote_get_trace_status): New variable ex. Put
4566 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4568 2011-07-13 Tom Tromey <tromey@redhat.com>
4570 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4571 value_from_contents for final conversion.
4573 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4576 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4577 Indent prototypes so they do not get into tags.
4579 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4581 Code cleanup making also optimized out values lazy.
4582 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4583 allocate_optimized_out_value. Twice.
4584 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4585 * findvar.c (read_var_value): Likewise.
4586 * value.c (allocate_optimized_out_value): New function.
4587 * value.h (allocate_optimized_out_value): New declaration.
4589 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4591 Fix occasional crash of CTRL-C during DWARF read in.
4592 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4594 2011-07-11 Tom Tromey <tromey@redhat.com>
4596 * regcache.c (struct regcache_descr): Fix typo.
4597 * i387-tdep.c (i387_supply_xsave): Fix typo.
4599 2011-07-11 Tom Tromey <tromey@redhat.com>
4601 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4602 (read_file_scope, read_type_unit_scope): Use it.
4604 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4606 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4609 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4612 * python/python.c: Set gdbpy_should_print_stack default to off.
4613 (set_python): Deprecate maint set python print-stack to
4615 (_initialize_python): Deprecate maint set/show python print-stack.
4616 Add new prefix command, python. Add new setting, print-backtrace.
4617 * NEWS: Document set python print-stack. Document default change.
4619 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4621 * python/py-inferior.c (infpy_dealloc): New function.
4622 (inferior_to_inferior_object): Return a new object, or a
4623 new reference to the existing object.
4624 (find_thread_object): Cleanup references to inferior.
4625 (delete_thread_object): Ditto.
4626 * python/py-infthread.c (create_thread_object): Do not increment
4627 inferior reference count.
4629 2011-07-08 Tom Tromey <tromey@redhat.com>
4631 * dwarf2loc.c (locexpr_regname): New function.
4632 (locexpr_describe_location_piece): Use it.
4633 (disassemble_dwarf_expression): Add per_cu argument. Use
4635 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4636 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4638 (locexpr_describe_location_1): Add per_cu argument.
4639 (locexpr_describe_location): Update.
4640 (loclist_describe_location): Update.
4642 2011-07-08 Tom Tromey <tromey@redhat.com>
4644 * dwarf2expr.c (execute_stack_op): Add QUIT.
4646 2011-07-07 Hui Zhu <teawater@gmail.com>
4649 2011-07-06 Hui Zhu <teawater@gmail.com>
4650 * remote.c (remote_start_remote): Add TRY_CATCH for
4651 remote_get_trace_status.
4652 * tracepoint.c (disconnect_tracing): Ditto.
4654 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4656 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4657 variables as signed, not unsigned.
4659 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4661 * jit.c (jit_inferior_init): Reformat forward declaration.
4663 2011-07-06 Matt Rice <ratmice@gmail.com>
4665 * MAINTAINERS (Write After Approval): Add myself to the list.
4667 2011-07-06 Hui Zhu <teawater@gmail.com>
4669 * remote.c (remote_start_remote): Add TRY_CATCH for
4670 remote_get_trace_status.
4671 * tracepoint.c (disconnect_tracing): Ditto.
4673 2011-07-05 Tom Tromey <tromey@redhat.com>
4675 * symtab.c (operator_chars): Now static.
4676 * linespec.c (operator_chars): Don't declare.
4678 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4680 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4682 2011-07-05 Tom Tromey <tromey@redhat.com>
4684 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4685 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4686 (TYPE_CPLUS_REALLY_JAVA): New macro.
4687 * dwarf2read.c (process_structure_scope): Set
4688 TYPE_CPLUS_REALLY_JAVA.
4690 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4692 * ada-lang.c: Fix typos.
4693 * amd64-tdep.c: Likewise.
4694 * breakpoint.c: Likewise.
4695 * cli/cli-decode.c: Likewise.
4696 * findcmd.c: Likewise.
4697 * inline-frame.c: Likewise.
4698 * mi/mi-main.c: Likewise.
4699 * minsyms.c: Likewise.
4700 * monitor.c: Likewise.
4701 * monitor.h: Likewise.
4702 * prologue-value.c: Likewise.
4703 * reverse.c: Likewise.
4704 * s390-tdep.c: Likewise.
4706 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4708 * jit.c (jit_inferior_init): Forward declare.
4709 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4711 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4713 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4715 2011-07-04 Tristan Gingold <gingold@adacore.com>
4717 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4718 (tcb_fieldno): Add activation_link field.
4719 (get_known_tasks_addr): Moved and rewritten.
4720 (get_tcb_types_info): Set activation_link field.
4721 (read_known_tasks_array): Add parameter. Rewritten.
4722 (read_known_tasks_list): New function.
4723 (read_known_tasks): New function.
4724 (ada_build_task_list): Call read_known_tasks instead of
4725 read_known_tasks_array.
4726 * ravenscar-thread.c: Add first_task_name constant.
4727 (has_ravenscar_runtime): Check for task list too.
4729 2011-07-04 Tristan Gingold <gingold@adacore.com>
4731 * ada-tasks.c: Renames fieldno to actb_fieldno.
4732 (ada_get_task_number): Indentation.
4733 (get_tcb_types_info): Remove all parameters. Write directly
4735 (ptid_from_atcb_common): Adjust.
4736 (read_atcb): Adjust.
4738 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4740 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4742 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4744 * ui-out.c (ui_out_field_core_addr): Mention that the function
4745 description is in the header file.
4746 * ui-out.h (ui_out_field_core_addr): Document function.
4748 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4750 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4751 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4753 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4755 * symtab.c (expand_line_sal): Remove empty line.
4757 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4759 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4760 same way as ELFOSABI_NONE.
4761 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4763 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4765 * breakpoint.c: Fix typos in comments.
4766 * linespec.c: Likewise.
4767 * symtab.c: Likewise.
4769 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4771 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4772 section in separate object files.
4774 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4776 Fix false GCC warning.
4777 * linespec.c (decode_line_1): Initialize values.
4779 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4781 * linespec.c (find_method): Accept the function type automatically only
4782 if it was specified with parameter types.
4784 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4786 Stop on first linespec terminator instead of eating what we can.
4787 * linespec.c (is_linespec_boundary): New function.
4788 (name_end): Remove function.
4789 (keep_name_info): New parameter on_boundary, replace the body.
4790 (decode_line_1): Provide the parameter to keep_name_info.
4791 (decode_compound): Likewise. Drop the trailing java return type
4794 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4796 Fall back linespec to minimal symbols.
4797 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4798 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4799 (find_method, symbol_found): Change error to cplusplus_error.
4801 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4803 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4805 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4806 Tom Tromey <tromey@redhat.com>
4808 * dwarf2read.c (check_physname): New variable.
4809 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4810 (show_check_physname): New function.
4811 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4813 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4815 * machoread.c (macho_symfile_read): Delete OBE comment.
4817 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4819 * machoread.c (struct macho_oso_data): Delete.
4820 (current_oso): Delete.
4821 (macho_relocate_common_syms): New function, mostly extracted
4823 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4824 Remove code that sets and unset current_oso.
4825 (macho_symfile_relocate): Delete handling of common symbols,
4826 now moved to macho_relocate_common_syms.
4828 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4830 * darwin-nat.c (darwin_ptrace): Add documentation.
4831 Set errno to zero before calling ptrace. If ptrace returns
4832 -1 and errno is zero, then change then return zero.
4833 (darwin_kill_inferior): Issue a warning instead of triggering
4834 a failed assertion when the PT_KILL ptrace operations returned
4837 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4839 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4840 only when inf->private->no_ptrace.
4842 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4844 * ada-lang.c (print_it_exception): Print temporary catchpoints
4845 as "Temporary catchpoint".
4846 (print_mention_exception): Likewise.
4848 2011-07-01 Tom Tromey <tromey@redhat.com>
4850 * jv-lang.c (java_language_defn): Use java_printchar,
4852 (java_get_encoding): New function.
4853 (java_emit_char): Use generic_emit_char.
4854 (java_printchar): New function.
4855 (java_printstr): Likewise.
4857 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4859 * ada-typeprint.c (print_record_type): If unable to decode
4860 the name of the parent type, use the encoded name.
4862 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4864 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4865 pointer to constrained packed array type output.
4866 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4867 packed array output.
4869 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4871 * ada-typeprint.c (print_array_type): removed if condition on show
4872 being negative for bounds printing.
4874 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4876 * ada-lang.c (ada_identical_enum_types_p): New function.
4877 (symbols_are_identical_enums): New function.
4878 (remove_extra_symbols): Do nothing if NSYMS < 2.
4879 Use symbols_are_identical_enums.
4881 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4883 * ada-valprint.c (ada_value_print): Handle typedefs.
4885 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4887 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4889 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4891 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4892 (decode_constrained_packed_array): Likewise.
4893 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4895 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4897 * ada-exp.y (convert_char_literal): Handle typedef types.
4899 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4901 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4903 2011-06-30 Tom Tromey <tromey@redhat.com>
4905 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4906 * valops.c (find_overload_match): Call do_cleanups on early exit
4908 * solib.c (solib_find): Call do_cleanups on early exit path.
4910 2011-06-30 Tom Tromey <tromey@redhat.com>
4912 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4913 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4914 return paths. Defer final do_cleanups until last return.
4915 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4918 2011-06-30 Tom Tromey <tromey@redhat.com>
4920 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4922 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4924 * MAINTAINERS (Write After Approval): Add myself to the list.
4926 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4928 Disable epilogue unwinders on recent GCCs.
4929 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4930 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4931 * dwarf2read.c (process_full_comp_unit): Initialize
4932 EPILOGUE_UNWIND_VALID.
4933 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4934 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4935 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4937 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4939 Code cleanup - reformatting.
4940 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4941 (producer_is_gcc_ge_4): ... here, change the return value.
4942 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4945 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4947 Fix non-only rename list for Fortran modules import.
4948 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4949 cp_add_using_directive caller.
4950 (cp_add_using_directive): New parameter excludes, describe it. New
4951 variables ix and param. Compare if also excludes match. Allocate NEW
4952 with variable size, initialize EXCLUDES there.
4953 (cp_lookup_symbol_imports): New variable excludep, test
4954 current->EXCLUDES with it.
4955 * cp-support.h: Include vec.h.
4956 (struct using_direct): New field excludes, describe it.
4957 (DEF_VEC_P (const_char_ptr)): New.
4958 (cp_add_using_directive): New parameter excludes.
4959 * defs.h (const_char_ptr): New typedef.
4960 * dwarf2read.c (read_import_statement): New variables child_die,
4961 excludes and cleanups, read in excludes.
4962 (read_namespace): Adjust the cp_add_using_directive caller.
4964 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4967 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4968 negative comparisons.
4970 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4972 * mi/mi-main.c (mi_cmd_list_features): Emit
4973 breakpoint-notifications.
4975 2011-06-29 Tom Tromey <tromey@redhat.com>
4978 * valprint.h (generic_emit_char, generic_printstr): Declare.
4979 * valprint.c (wchar_printable, append_string_as_wide)
4980 (print_wchar): Move from c-lang.c.
4981 (generic_emit_char): New function; mostly taken from c_emit_char.
4982 (generic_printstr): New function; mostly taken from c_printstr.
4983 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4984 represented as arrays.
4985 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4987 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4988 identically to TYPE_CODE_INT.
4989 * f-lang.c (f_get_encoding): New function.
4990 (f_emit_char): Use generic_emit_char.
4991 (f_printchar): Replace comment.
4992 (f_printstr): Use generic_printstr.
4993 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4994 "character" types specially.
4995 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4997 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4999 (c_emit_char): Call generic_emit_char.
5000 (c_printstr): Call generic_printstr.
5002 2011-06-29 Gary Benson <gbenson@redhat.com>
5004 * breakpoint.c (bpstat_what): Removed duplicated case.
5006 2011-06-28 Tom Tromey <tromey@redhat.com>
5008 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5010 2011-06-27 Tom Tromey <tromey@redhat.com>
5012 * valops.c (find_overload_match): Call do_cleanups before early
5014 * top.c (execute_command): Call do_cleanups before early return.
5015 (command_loop): Likewise.
5016 * stack.c (backtrace_command): Make a null cleanup early. Don't
5017 conditionally call do_cleanups.
5018 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5020 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5021 so cleanups are always run.
5022 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5023 * findcmd.c (parse_find_args): Call do_cleanups on early return
5025 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5026 Don't conditionally call do_cleanups.
5027 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5030 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5032 * MAINTAINERS (Write After Approval): Use default email address.
5034 2011-06-27 Joel Brobecker <brobecker@adacore.com>
5036 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5038 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5040 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5041 saved_regs_mask and copied_regs_mask fields.
5042 (sparc_record_save_insn): New prototype.
5043 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5044 (sparc_record_save_insn): New function.
5045 (sparc_analyze_prologue): Add head comment. Recognize store insns
5046 of call-saved registers. Use OFFSET consistently. Recognize flat
5047 frames and cache their settings.
5048 (sparc32_skip_prologue): Handle flat frames.
5049 (sparc_frame_cache): Add frame_offset to the base address.
5050 (sparc32_frame_cache): Adjust to new frame description.
5051 (sparc32_frame_prev_register): Likewise.
5052 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5053 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5054 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5055 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5056 frame by calling sparc_record_save_insn.
5057 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5058 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5059 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5061 2011-06-27 Tristan Gingold <gingold@adacore.com>
5063 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5064 field by map_addr and map_len.
5065 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5066 (munmap_section_buffer): Likewise.
5068 2011-06-24 Tom Tromey <tromey@redhat.com>
5070 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5071 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5072 * python/python.c (gdbpy_parameter): Make 'arg' const.
5073 (execute_gdb_command): Likewise.
5074 (gdbpy_decode_line): Likewise. Copy it.
5075 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5076 (gdbpy_write): Make 'arg' const.
5077 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5079 (gdbpy_lookup_type): Likewise.
5080 * python/py-prettyprint.c (print_children): Make 'name' const.
5081 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5082 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5084 * python/py-function.c (fnpy_init): Make 'name' const.
5085 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5086 (gdbpy_string_to_argv): Make 'input' const.
5087 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5089 * gdbtypes.h (lookup_typename): Update.
5090 * gdbtypes.c (lookup_typename): Make 'name' const.
5091 (lookup_struct): Likewise.
5092 (lookup_union): Likewise.
5093 (lookup_enum): Likewise.
5095 2011-06-24 Tom Tromey <tromey@redhat.com>
5097 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5098 gdb_thread_db.h. Move all common/ entries to be together.
5099 (TAGS): Don't depend on DEPFILES.
5101 2011-06-23 Yao Qi <yao@codesourcery.com>
5103 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5104 * remote.c (remote_start_remote): ... here.
5105 * monitor.c (monitor_open): ... here.
5107 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5109 * gdbtypes.c (append_composite_type_field_aligned): Fix
5110 calculation of bit position based on alignment.
5112 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5114 * breakpoint.c (bpstat_stop_status): Call the check_status
5115 breakpoint_ops method.
5116 (print_one_breakpoint_location): Also print the condition for Ada
5117 exception catchpoints.
5118 (allocate_bp_location): New, factored out from
5119 allocate_bp_location.
5120 (allocate_bp_location): Adjust. Call the owner breakpoint's
5121 allocate_location method, if there is one.
5122 (free_bp_location): Call the locations's dtor method, if there is
5124 (init_raw_breakpoint_without_location): New breakpoint_ops
5126 (set_raw_breakpoint_without_location): Adjust.
5127 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5128 (set_raw_breakpoint): Adjust.
5129 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5130 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5131 re_set and check_status methods.
5132 (init_catchpoint): Don't memset, initialize thread, addr_string
5133 and enable_state. Pass the ops down to init_raw_breakpoint.
5134 (install_catchpoint): Rename to ...
5135 (install_breakpoint): ... this, and make extern.
5136 (create_fork_vfork_event_catchpoint): Adjust.
5137 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5138 re_set and check_status methods.
5139 (create_syscall_event_catchpoint): Adjust.
5140 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5141 (masked_watchpoint_breakpoint_ops): Install NULL
5142 allocate_location, re_set and check_status methods.
5143 (catch_exec_command_1): Adjust.
5144 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5145 re_set and check_status methods.
5146 (create_ada_exception_breakpoint): Rename to ...
5147 (init_ada_exception_breakpoint): ... this. Add a struct
5148 breakpoint parameter, and delete the exp_string, cond_string and
5149 cond parameters. Use init_raw_breakpoint, and don't install or
5150 mention the breakpoint yet. Don't clear breakpoint fields that
5151 init_raw_breakpoint already clears.
5152 (re_set_breakpoint): Delete, split into ...
5153 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5155 (breakpoint_re_set_one): Call the breakpoint's
5156 breakpoint_ops->re_set implementation, if there's one. Adjust.
5157 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5158 (struct bp_location_ops): New type.
5159 (struct bp_location): New field `ops'.
5160 (struct breakpoint_ops): New `allocate_location', `re_set' and
5161 `check_status' fields. Make `breakpoint_hit''s description match
5163 (init_bp_location): Declare.
5164 (breakpoint_re_set_default): Declare.
5165 (create_ada_exception_breakpoint): Rename to ...
5166 (init_ada_exception_breakpoint): ... this. Add a struct
5167 breakpoint parameter, and delete the exp_string, cond_string and
5169 (install_breakpoint): Declare.
5170 * ada-lang.c: Include exceptions.h.
5171 <Ada exceptions description>: Update.
5172 (struct ada_catchpoint_location): New type.
5173 (ada_catchpoint_location_dtor): New function.
5174 (ada_catchpoint_location_ops): New global.
5175 (ada_catchpoint): New type.
5176 (create_excep_cond_exprs): New function.
5177 (dtor_exception, allocate_location_exception, re_set_exception)
5178 (should_stop_exception, check_status_exception): New functions.
5179 (print_one_exception, print_mention_exception)
5180 (print_recreate_exception): Adjust.
5181 (dtor_catch_exception, allocate_location_catch_exception)
5182 (re_set_catch_exception, check_status_catch_exception): New
5184 (catch_exception_breakpoint_ops): Install them.
5185 (dtor_catch_exception_unhandled)
5186 (allocate_location_catch_exception_unhandled)
5187 (re_set_catch_exception_unhandled)
5188 (check_status_catch_exception_unhandled): New functions.
5189 (catch_exception_unhandled_breakpoint_ops): Install them.
5190 (dtor_catch_assert, allocate_location_catch_assert)
5191 (re_set_catch_assert, check_status_catch_assert): New functions.
5192 (catch_assert_breakpoint_ops): Install them.
5193 (ada_exception_catchpoint_p): Delete.
5194 (catch_ada_exception_command_split)
5195 (ada_exception_catchpoint_cond_string): Rename exp_string
5196 parameter to excep_string. Adjust.
5197 (ada_parse_catchpoint_condition): Delete.
5198 (ada_exception_sal): Rename the exp_string parameter to
5199 excep_string. Delete the cond_string and cond parameters.
5201 (ada_decode_exception_location): Rename the exp_string parameter
5202 to excep_string. Delete the cond_string and cond parameters.
5204 (create_ada_exception_catchpoint): New function.
5205 (catch_ada_exception_command, ada_decode_assert_location)
5206 (catch_assert_command): Adjust.
5207 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5209 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5211 * ada-lang.c: Include arch-utils.h.
5212 (ada_decode_exception_location): Make static.
5213 (catch_ada_exception_command): Moved here from breakpoint.c.
5214 (ada_decode_assert_location): Make static.
5215 (catch_assert_command): Moved here from breakpoint.c.
5216 (_initialize_ada_lang): Install the exception and assert
5217 catchpoint commands here.
5218 * ada-lang.h (ada_decode_exception_location)
5219 (ada_decode_assert_location): Delete declarations.
5220 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5222 (create_ada_exception_breakpoint): Make extern.
5223 (catch_ada_exception_command, catch_assert_command): Moved to
5225 (add_catch_command): Make extern.
5226 (_initilize_breakpoint): Don't install the exception and assert
5227 catchpoint commands here.
5228 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5230 (add_catch_command, create_ada_exception_breakpoint): Declare.
5232 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5234 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5235 the breakpoint to the breakpoint chain here.
5236 (set_raw_breakpoint_without_location): Add the breakpoint to the
5237 breakpoint chain here.
5238 (init_raw_breakpoint): Adjust comments.
5239 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5241 (init_catchpoint): Don't set the catchpoint's breakpoint number
5243 (install_catchpoint): New function.
5244 (create_fork_vfork_event_catchpoint)
5245 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5246 use install_catchpoint.
5248 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5250 * breakpoint.c (create_catchpoint_without_mention)
5251 (create_catchpoint): Delete.
5253 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5255 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5256 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5257 reference to exec_pathname.
5258 (struct exec_catchpoint): New type.
5259 (dtor_catch_exec): New function.
5260 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5261 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5262 (catch_exec_command_1): Adjust to use init_catchpoint.
5263 (delete_breakpoint): Remove reference to exec_pathname.
5265 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5267 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5268 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5269 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5270 reference to syscalls_to_be_caught.
5271 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5273 (struct syscall_catchpoint): New type.
5274 (dtor_catch_syscall): New function.
5275 (insert_catch_syscall, remove_catch_syscall)
5276 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5277 (print_recreate_catch_syscall): Adjust.
5278 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5279 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5280 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5281 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5282 (masked_watchpoint_breakpoint_ops)
5283 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5284 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5285 there is one. Remove references to syscalls_to_be_caught.
5286 (catching_syscall_number): Adjust.
5287 * ada-lang.c (catch_exception_breakpoint_ops)
5288 (catch_exception_unhandled_breakpoint_ops)
5289 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5291 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5293 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5295 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5296 reference to forked_inferior_pid.
5297 (struct fork_catchpoint): New type.
5298 (breakpoint_hit_catch_fork, print_it_catch_fork)
5299 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5300 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5301 (create_fork_vfork_event_catchpoint): Adjust to use
5304 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5306 * breakpoint.c (add_to_breakpoint_chain)
5307 (init_raw_breakpoint_without_location): New functions, factored
5309 (set_raw_breakpoint_without_location): ... this one.
5310 (init_raw_breakpoint): New function, factored out from
5311 set_raw_breakpoint and adjusted to use
5312 init_raw_breakpoint_without_location.
5313 (set_raw_breakpoint): Adjust.
5314 (init_catchpoint): New function, factored out from
5315 create_catchpoint_without_mention and adjusted to use
5316 init_raw_breakpoint.
5317 (create_catchpoint_without_mention): Adjust.
5319 2011-06-22 Tom Tromey <tromey@redhat.com>
5321 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5322 argument of 0 specially.
5324 2011-06-22 Yao Qi <yao@codesourcery.com>
5326 * infrun.c (handle_inferior_event): Remove write-only local variable
5327 `sw_single_step_trap_p'.
5329 2011-06-20 Tom Tromey <tromey@redhat.com>
5331 * symtab.c (lookup_language_this): End loop if block is NULL.
5333 2011-06-17 Tom Tromey <tromey@redhat.com>
5335 * valops.c (value_of_this): Use lookup_language_this.
5336 * symtab.h (lookup_language_this): Declare.
5337 * symtab.c (lookup_language_this): New function.
5338 (lookup_symbol_aux): Use lookup_language_this.
5339 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5341 2011-06-17 Tom Tromey <tromey@redhat.com>
5343 * value.h (value_of_this): Update.
5344 (value_of_local): Remove.
5345 * valops.c (value_of_this): Rename from value_of_local. Change
5347 * p-exp.y (exp): Update.
5348 (variable): Likewise.
5349 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5351 2011-06-17 Tom Tromey <tromey@redhat.com>
5353 * valops.c (value_of_local): Complain if NAME is NULL.
5354 * std-operator.def (OP_OBJC_SELF): Remove.
5355 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5356 * objc-exp.y (name_not_typename): Use OP_THIS.
5357 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5359 <OP_OBJC_SELF>: Remove.
5360 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5362 2011-06-16 Tristan Gingold <gingold@adacore.com>
5364 * python/py-events.h (gdb_py_events): Make it extern.
5365 * python/py-evtregistry.c (gdb_py_events): Declare.
5367 2011-06-16 Hui Zhu <teawater@gmail.com>
5369 * remote.c (remote_trace_set_readonly_regions): Add check for
5370 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5373 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5375 * arm-linux-tdep.c: Include "auxv.h".
5377 (ARM_LINUX_SIZEOF_VFP): Define.
5378 (arm_linux_supply_vfp): New function.
5379 (arm_linux_collect_vfp): Likewise.
5380 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5381 (arm_linux_fpa_regset_sections): New variable.
5382 (arm_linux_vfp_regset_sections): Likewise.
5383 (arm_linux_core_read_description): New function.
5384 (arm_linux_init_abi): Install arm_linux_core_read_description and
5385 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5386 appropriate for the architecture.
5387 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5388 (tdesc_arm_with_m): Declare.
5389 (tdesc_arm_with_iwmmxt): Likewise.
5390 (tdesc_arm_with_vfpv2): Likewise.
5391 (tdesc_arm_with_vfpv3): Likewise.
5392 (tdesc_arm_with_neon): Likewise.
5393 * arm-linux-nat.c: Move features/*.c includes ...
5394 * arm-tdep.c: ... here.
5395 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5396 target description data structures ...
5397 * arm-tdep.c (_initialize_arm_tdep): ... here.
5398 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5399 HWCAP_VFPv3D16): Move definitions ...
5400 * arm-linux-tdep.h: ... here.
5402 2011-06-15 Hui Zhu <teawater@gmail.com>
5404 * remote.c (remote_trace_set_readonly_regions): Add a check for
5407 2011-06-14 Tom Tromey <tromey@redhat.com>
5409 * coffread.c (coffread_objfile): Rename from current_objfile.
5410 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5411 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5413 2011-06-14 Tom Tromey <tromey@redhat.com>
5415 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5416 (class_symtab): Remove.
5417 (jv_dynamics_progspace_key): New global.
5418 (jv_per_objfile_free): Reset program space data. Update assert.
5419 Don't clear globals.
5420 (get_dynamics_objfile): Use and set program space data.
5421 (get_java_class_symtab): Use get_dynamics_objfile.
5422 (add_class_symbol): Likewise.
5423 (java_link_class_type): Likewise.
5424 (java_object_type, jv_clear_object_type, set_java_object_type):
5426 (get_java_object_type): Update. Don't cache result.
5427 (is_object_type): Don't call set_java_object_type.
5428 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5429 initialize jv_dynamics_progspace_key.
5431 2011-06-14 Tom Tromey <tromey@redhat.com>
5433 * symtab.h (current_objfile): Don't declare.
5434 * objfiles.h (current_objfile): Don't declare.
5435 * objfiles.c (current_objfile): Remove.
5436 * mdebugread.c (current_objfile): New file-scope global.
5437 * dbxread.c (current_objfile): New file-scope global.
5438 * coffread.c (current_objfile): New file-scope global.
5440 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5442 * top.h (line): Rename to ...
5443 (saved_command_line): ... this.
5444 (linesize): Rename to ...
5445 (saved_command_line_size): ... this.
5446 * top.c (line): Rename to ...
5447 (saved_command_line): ... this.
5448 (linesize): Rename to ...
5449 (saved_command_line_size): ... this.
5450 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5451 * event-top.c (command_line_handler): Adjust.
5452 * main.c (captured_main): Adjust.
5454 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5456 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5457 get_frame_func instead of get_frame_pc to determine the code
5458 address used to construct the frame ID.
5459 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5460 (i386_epilogue_frame_this_id): Likewise.
5461 (i386_epilogue_frame_prev_register): New function.
5462 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5463 (i386_stack_tramp_frame_sniffer): Fix coding style.
5464 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5465 (i386_gdbarch_init): Fix comments.
5467 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5469 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5470 instruction when walking back through the instruction stream.
5472 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5474 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5475 fullname parameters order.
5477 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5480 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5482 * psymtab.c (map_symbol_filenames_psymtab)
5483 (map_partial_symbol_filenames): Likewise.
5484 * psymtab.h: Include symfile.h.
5485 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5486 * symfile.h (symbol_filename_ftype): New.
5487 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5488 map_symbol_filenames, clarify more the naming in comment.
5490 2011-06-07 Doug Evans <dje@google.com>
5492 * cc-with-index.sh: Fix typos in comment.
5493 Look for ../../gdb, for fullname.exp.
5495 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5496 Pedro Alves <pedro@codesourcery.com>
5498 * cli/cli-cmds.c (shell_escape): Use waitpid.
5499 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5501 2011-06-07 Tristan Gingold <gingold@adacore.com>
5503 * xcoffread.c (dwarf2_xcoff_names): New variable.
5504 (aix_process_linenos): Add a guard.
5505 (xcoff_symfile_finish): Free dwarf2.
5506 (xcoff_initial_scan): Add dwarf2 support.
5508 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5510 * infcall.c (run_inferior_call): Don't mask async. Instead force
5511 a synchronous wait, if the target can async.
5513 * target.h (struct target_ops): Delete to_async_mask.
5514 (target_async_mask): Delete.
5515 * target.c (update_current_target): Delete references to to_async_mask.
5516 * linux-nat.c (linux_nat_async_mask_value): Delete.
5517 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5518 to linux_nat_async_mask_value.
5519 (linux_nat_async_mask): Delete.
5520 (linux_nat_async, linux_nat_close): Remove references to
5521 linux_nat_async_mask_value.
5522 * record.c (record_async_mask_value): Delete.
5523 (record_async): Remove references to record_async_mask_value.
5524 (record_async_mask): Delete.
5525 (record_can_async_p, record_is_async_p): Remove references to
5526 record_async_mask_value.
5527 (init_record_ops, init_record_core_ops): Remove references to
5529 * remote.c (remote_async_mask_value): Delete.
5530 (init_remote_ops): Remove reference to remote_async_mask.
5531 (remote_can_async_p, remote_is_async_p): Remove references to
5532 remote_async_mask_value.
5533 (remote_async): Remove references to remote_async_mask_value.
5534 (remote_async_mask): Delete.
5536 * infrun.c (fetch_inferior_event): Don't claim registers changed
5537 if the current thread is already not executing.
5539 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5541 From Stephen Kitt <steve@sk2.org>
5542 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5543 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5545 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5547 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5548 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5550 2011-06-03 Tom Tromey <tromey@redhat.com>
5552 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5554 * python/py-exitedevent.c (create_exited_event_object): Change
5555 type of 'exit_code'. Optionally add exit_code attribute.
5556 (emit_exited_event): Change type of 'exit_code'.
5557 * python/py-event.h (emit_exited_event): Update.
5558 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5559 * infrun.c (handle_inferior_event): Set exit code fields on
5561 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5563 * inferior.c (exit_inferior_1): Initialize new fields.
5565 2011-06-03 Tom Tromey <tromey@redhat.com>
5567 * dwarf2expr.c (get_signed_type): New function.
5568 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5570 2011-06-02 Keith Seitz <keiths@redhat.com>
5572 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5574 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5576 * top.h (simplified_command_loop): Delete declaration.
5578 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5580 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5581 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5583 2011-06-01 Yao Qi <yao@codesourcery.com>
5585 * objfiles.h (obj_section_addr): Update reference to objfile from
5587 (obj_section_endaddr): Likewise.
5589 2011-06-01 Daniel Jacobowitz <drow@false.org>
5591 * MAINTAINERS: Update my email address and affiliation. Also
5592 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5594 2010-05-31 Keith Seitz <keiths@redhat.com>
5597 * linespec.c (get_search_block): New function.
5598 (find_methods): Add FILE_SYMTATB parameter and use it and
5599 get_search_block to pass an appropriate block to
5600 lookup_symbol_in_namespace.
5601 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5602 Check if *ARGPTR starts with a filename first.
5603 If it does, call locate_first_half again to locate the next
5604 "first half" of the linespec.
5605 Pass FILE_SYMTATB to decode_objc and decode_compound.
5606 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5607 (locate_first_half): Stop on the first colon seen.
5608 (decode_compound): Add FILE_SYMTAB parameter.
5609 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5610 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5611 get_search_block with lookup_symbol.
5612 (find_method): Add FILE_SYMTAB parameter and pass it to
5614 (decode_objc): Use get_search_block.
5616 2010-05-31 Keith Seitz <keiths@redhat.com>
5619 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5620 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5621 and CP_ANONYMOUS_NAMESPACE_LEN.
5622 (cp_is_anonymous): Likewise.
5623 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5624 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5625 * dwarf2read.c (namespace_name): Likewise.
5626 (fixup_partial_die): Likewise.
5627 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5628 seen in the input, keep it.
5630 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5632 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5633 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5634 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5635 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5636 * remote.c (_initialize_remote): Register
5637 async_remote_interrupt_twice directly as
5638 sigint_remote_twice_token event.
5640 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5642 * target.h (enum inferior_event_type): Delete INF_ERROR.
5643 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5645 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5647 * interps.c (interp_set): Don't cancel continuations.
5649 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5651 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5653 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5655 * continuations.h (continuation_ftype): Add `err' parameter.
5656 Document parameters.
5657 (do_all_continuations, do_all_continuations_thread)
5658 (do_all_intermediate_continuations)
5659 (do_all_intermediate_continuations_thread)
5660 (do_all_inferior_continuations): Add `err' parameter.
5661 * continuations.c (do_my_continuations_1, do_my_continuations)
5662 (do_all_inferior_continuations, do_all_continuations_ptid)
5663 (do_all_continuations_thread_callback)
5664 (do_all_continuations_thread, do_all_continuations)
5665 (do_all_intermediate_continuations_thread_callback)
5666 (do_all_intermediate_continuations_thread)
5667 (do_all_intermediate_continuations): Add `err' parameter, and pass
5668 it down all the way to the continuations proper.
5669 * inf-loop.c (inferior_event_handler): If fetching an inferior
5670 event throws an error, don't pop the target, and still call the
5671 continuations, but with `err' set. Adjust all other continuation
5673 * breakpoint.c (until_break_command_continuation): Add `err'
5675 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5676 issue another step if `err' is set.
5677 (struct until_next_continuation_args): New.
5678 (until_next_continuation): Add `err' parameter. Adjust.
5679 (until_next_command): Adjust.
5680 (struct finish_command_continuation_args): Add `thread' field.
5681 (finish_command_continuation): Add `err' parameter. Handle it.
5682 (finish_forward): Adjust.
5683 (attach_command_continuation): Add `err' parameter. Handle it.
5684 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5685 cancel the continuations.
5686 * interps.c (interp_set): Adjust to cancel the continuations.
5687 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5688 continuations rather than discarding.
5689 (free_thread): Don't clear thread inferior resources here.
5690 (delete_thread_1): Do it here instead. And do it before removing
5691 the thread from the threads list. Tag the thread as exited before
5692 clearing thread inferior resources.
5694 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5696 * infcall.c (call_function_by_hand): Rephrase error message.
5698 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5700 * defs.h (struct thread_info, struct inferior): Delete forward
5702 * breakpoint.h (struct thread_info): New forward declaration.
5703 * observer.sh (struct inferior): New forward declaration.
5704 * python/python-internal.h (struct inferior): New forward
5707 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5709 * defs.h (struct continuation, continuation_ftype)
5710 (continuation_free_arg_ftype, add_continuation)
5711 (do_all_continuations, do_all_continuations_thread)
5712 (discard_all_continuations, discard_all_continuations_thread)
5713 (add_intermediate_continuation, do_all_intermediate_continuations)
5714 (do_all_intermediate_continuations_thread)
5715 (discard_all_intermediate_continuations)
5716 (discard_all_intermediate_continuations_thread)
5717 (add_inferior_continuation, do_all_inferior_continuations)
5718 (discard_all_inferior_continuations): Move to ...
5719 * continuations.h: ... this new file.
5720 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5721 infcmd.c, inferior.c, infrun.c, interps.c: Include
5724 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5725 Doug Evans <dje@google.com>
5727 Fix PR 10970, PR 12702.
5728 * linux-nat.c (linux_lwp_is_zombie): New function.
5729 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5730 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5732 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5734 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5736 (add_continuation, add_intermediate_continuation)
5737 (add_inferior_continuation): Use them.
5738 * continuations.c (struct continuation): Use them.
5739 (make_continuation_ftype): Delete.
5740 (make_continuation, add_inferior_continuation, add_continuation)
5741 (add_intermediate_continuation): Use continuation_ftype and
5742 continuation_free_arg_ftype. Rename parameters to shorter names.
5744 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5746 * continuations.c (make_continuation): Make it return void.
5747 (do_my_continuations): Rename to ...
5748 (do_my_continuations_1): ... this. Remove old_chain parameter and
5750 (do_my_continuations): New.
5751 (discard_my_continuations): Rename to ...
5752 (discard_my_continuations_1): ... this. Remove old_chain
5753 parameter and adjust.
5754 (discard_my_continuations): New.
5755 (add_inferior_continuation): Simplify.
5756 (do_all_inferior_continuations): Reimplement on top
5757 do_my_continuations.
5758 (discard_all_inferior_continuations): Simplify.
5759 (add_continuation): Simplify.
5760 (do_all_continuations_ptid): Simplify.
5761 (discard_all_continuations_thread_callback): Simplify.
5762 (add_intermediate_continuation): Simplify.
5763 (discard_all_intermediate_continuations_thread_callback):
5766 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5768 * utils.c (struct continuation, add_continuation)
5769 (add_inferior_continuation)
5770 (do_all_inferior_continuations, discard_all_inferior_continuations)
5771 (restore_thread_cleanup, do_all_continuations_ptid)
5772 (do_all_continuations_thread_callback)
5773 (do_all_continuations_thread, do_all_continuations)
5774 (discard_all_continuations_thread_callback)
5775 (discard_all_continuations_thread, discard_all_continuations)
5776 (add_intermediate_continuation)
5777 (do_all_intermediate_continuations_thread_callback)
5778 (do_all_intermediate_continuations_thread)
5779 (do_all_intermediate_continuations)
5780 (discard_all_intermediate_continuations_thread_callback)
5781 (discard_all_intermediate_continuations_thread)
5782 (discard_all_intermediate_continuations): Move to ...
5783 * continuations.c: ... this new file, and adjust to no longer
5784 implement continuations on top of cleanups.
5785 * Makefile.in (SFILES): Add continuations.c.
5786 (COMMON_OBS): Add continuations.o.
5788 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5790 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5791 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5792 Internal error on invalid values.
5793 * reverse.c: Don't handle EXEC_ERROR.
5794 * mi/mi-main.c: Don't handle EXEC_ERROR.
5796 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5798 * record.c: Include event-loop.h, inf-loop.h.
5799 (record_beneath_to_async): New global.
5800 (tmp_to_async): New global.
5801 (record_async_inferior_event_token): New global.
5802 (record_open_1): Don't error out if async is enabled.
5803 (record_open): Handle to_async. Create an async event source in
5805 (record_close): Delete the async event source.
5806 (record_resumed): New global.
5807 (record_execution_dir): New global.
5808 (record_resume, record_core_resume): Set them. Register the
5809 target on the event loop.
5810 (record_wait): Rename to ...
5811 (record_wait_1): ... this. Add more debug output. Handle
5812 TARGET_WNOHANG, and the target beneath returning
5813 TARGET_WAITKIND_IGNORE.
5814 (record_wait): Reimplement on top of record_wait_1.
5815 (record_async_mask_value): New global.
5816 (record_async, record_async_mask, record_can_async_p)
5817 (record_is_async_p, record_execution_direction): New functions.
5818 (init_record_ops, init_record_core_ops): Install new methods.
5819 * infrun.c (fetch_inferior_event): Temporarily switch the global
5820 execution direction to the direction the target was going.
5821 (execution_direction): Change type to int.
5822 * target.c (default_execution_direction): New function.
5823 (update_current_target): Inherit and de_fault
5824 to_execution_direction.
5825 * target.h (struct target_ops) <to_execution_direction>: New
5827 (target_execution_direction): New macro.
5828 * inferior.h (execution_direction): Change type to int.
5830 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5832 * infcall.c (call_function_by_hand): Don't allow calling functions
5833 in reverse execution mode.
5835 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5837 * infcmd.c (finish_command): Allow async finish in reverse.
5839 2011-05-26 Yao Qi <yao@codesourcery.com>
5841 * gdb_thread_db.h: Delete. Move to ...
5842 * common/gdb_thread_db.h: ... here.
5844 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5846 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5847 function's entry point instead of a manually managed momentary
5848 breakpoint, and only ever issue one proceed call.
5849 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5850 doing a reverse-finish, switch to stepi mode, to do another step.
5851 (insert_step_resume_breakpoint_at_sal): Make public.
5852 (normal_stop): No need to save function value return registers if
5854 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5856 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5858 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5859 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5860 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5862 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5863 step-resume breakpoints.
5864 (print_it_typical): Handle bp_hp_step_resume.
5865 (bpstat_what): Ditto.
5866 (bptype_string): Ditto.
5867 (print_one_breakpoint_location): Ditto.
5868 (allocate_bp_location): Ditto.
5870 (breakpoint_re_set_one): Ditto.
5871 * infrun.c (handle_inferior_event): Adjust. Split
5872 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5873 BPSTAT_WHAT_HP_STEP_RESUME.
5874 (insert_step_resume_breakpoint_at_sal): Rename to ...
5875 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5876 parameter. Handle it.
5877 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5878 insert_step_resume_breakpoint_at_sal_1.
5879 (insert_step_resume_breakpoint_at_frame): Rename to ...
5880 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5881 set a high-priority step-resume breakpoint.
5882 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5883 (insert_step_resume_breakpoint_at_caller): Ditto.
5885 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5887 * breakpoint.c (iterate_over_related_breakpoints): New.
5888 (do_map_delete_breakpoint): New.
5889 (delete_command): Pass do_map_delete_breakpoint to
5890 map_breakpoint_numbers.
5891 (do_disable_breakpoint): New.
5892 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5894 (do_enable_breakpoint): Rename to ...
5895 (enable_breakpoint_disp): ... this.
5896 (enable_breakpoint): Adjust.
5897 (do_enable_breakpoint): New.
5898 (enable_once_breakpoint): Delete.
5899 (do_map_enable_breakpoint): New.
5900 (do_map_enable_once_breakpoint): New.
5901 (enable_once_command, enable_delete_command)
5902 (delete_trace_command): Iterate over the breakpoint's related
5905 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5907 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5908 for ALPHA_ZERO_REGNUM.
5909 (alpha_supply_int_regs): Explicitly supply zero as the value for
5910 ALPHA_ZERO_REGNUM in the register cache.
5911 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5913 2011-05-26 Yao Qi <yao@codesourcery.com>
5915 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5917 2011-05-26 Tristan Gingold <gingold@adacore.com>
5919 * symfile.h (struct dwarf2_section_names): New type.
5920 (struct dwarf2_debug_sections): New type.
5921 (dwarf2_has_info): Add parameter.
5922 * dwarf2read.c (dwarf2_elf_names): New variable.
5923 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5924 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5925 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5926 (dwarf2_has_info): Add names parameter. Pass names
5927 to dwarf2_locate_sections.
5928 (section_is_p): Rewrite using the names parameter.
5929 (dwarf2_locate_sections): Use section names from the names parameter.
5930 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5931 * elfread.c (read_psyms): Ditto.
5932 * machoread.c (macho_symfile_read): Ditto.
5934 2011-05-25 Andreas Schwab <schwab@redhat.com>
5937 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5939 2011-05-24 Keith Seitz <keiths@redhat.com>
5942 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5943 (decode_compound): Unconditionally call keep_name_info.
5945 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5947 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5948 scope, clear its command list.
5949 (map_breakpoint_numbers): Don't walk the related breakpoints list
5952 2011-05-24 Tom Tromey <tromey@redhat.com>
5954 * MAINTAINERS: Move Jim Blandy to past maintainers.
5956 2011-05-24 Tristan Gingold <gingold@adacore.com>
5958 * symfile.h (enum dwarf2_section_enum): New type.
5959 (dwarf2_get_section_info): New prototype.
5960 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5961 section_name by sect. Use a switch to select the info.
5962 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5963 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5965 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5967 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5968 shared library event breakpoint if there's no execution.
5970 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5972 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5973 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5975 2011-05-23 Tom Tromey <tromey@redhat.com>
5977 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5980 2011-05-23 Doug Evans <dje@google.com>
5982 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5983 entry for RuntimeError to doc string.
5985 2011-05-23 Jerome Guitton <guitton@adacore.com>
5987 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5988 sequence for probing loops.
5990 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5992 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5995 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5997 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5998 zero as the value for %g0 in the register cache.
5999 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6000 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6002 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6004 * infrun.c (proceed): Set previous_inferior_ptid here.
6005 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6006 inferior_ptid, not null_ptid.
6007 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6008 (fetch_inferior_event): Nor here.
6010 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6012 * inf-loop.c (inferior_event_handler): Only output a message if
6015 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
6017 * MAINTAINERS: Update my e-mail address.
6019 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6021 * infrun.c (proceed): Switch the inferior event loop to
6022 INF_EXEC_COMPLETE if the target refused to resume from a
6025 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6027 * infcmd.c: Include "inf-loop.h".
6028 (step_once): When stepping into an inline subroutine, pretend the
6029 target has run. If the target can async, switch the inferior
6030 event loop to INF_EXEC_COMPLETE.
6031 * inferior.h (user_visible_resume_ptid): Declare.
6032 * infrun.c (user_visible_resume_ptid): New function, factored out
6035 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6036 that the current thread is running. Merge async and sync
6039 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6041 * infcmd.c (step_1): Simplify synchronous case.
6043 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6045 * tracepoint.c: Include exceptions.h.
6046 (TFILE_PID): Move higher in file.
6047 (tfile_open): Delay pushing the tfile target until we're assured
6048 the tfile header is present in the file. Wrap reading the initial
6049 newline-terminated lines in TRY_CATCH. Pop the target if the
6050 initial setup failed. Add the tfile's thread immediately
6051 aftwards, before any non-essential setup. Don't skip
6052 post_create_inferior if there are no traceframes present in the
6054 (tfile_close): Remove redundant check for null before xfree call.
6055 (tfile_thread_alive): New function.
6056 (init_tfile_ops): Register it as to_thread_alive callback.
6058 2011-05-20 Pedro Alves <pedro@codesourcery.com>
6060 * tracepoint.c (tfile_open): Delete #if 0'd code.
6062 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6064 Fix -readnow for -gdwarf-4 unused type units.
6065 * dwarf2read.c (struct signatured_type): Remove the field offset.
6066 (create_signatured_type_table_from_index): Remove its initialization.
6067 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6068 instead. Add a complaint call.
6069 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6070 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6071 (lookup_signatured_type_at_offset, read_signatured_type)
6072 (write_one_signatured_type): Update the field for per_cu.
6074 2011-05-19 Tom Tromey <tromey@redhat.com>
6076 * python/py-inferior.c (python_inferior_exit): Use
6078 (python_on_resume): Likewise.
6080 2011-05-19 Matt Rice <ratmice@gmail.com>
6082 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6084 2011-05-19 Hui Zhu <teawater@gmail.com>
6086 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6088 2011-05-19 Hui Zhu <teawater@gmail.com>
6090 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6092 2011-05-18 Tom Tromey <tromey@redhat.com>
6094 * dwarf2read.c (dwarf2_add_field): Constify.
6095 * value.c (value_static_field): Constify.
6096 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6098 * ax-gdb.c (gen_static_field): Constify
6100 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6102 * linux-nat.c (kill_callback): Use SIGKILL first.
6104 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6106 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6108 2011-05-18 Tom Tromey <tromey@redhat.com>
6110 * value.c (value_fn_field): Constify.
6111 * symtab.c (gdb_mangle_name): Constify.
6112 * stabsread.c (update_method_name_from_physname): Make 'physname'
6114 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6115 const. Use explicit fputc_filtered loop.
6116 (pascal_type_print_base): Constify.
6117 * p-lang.h (pascal_type_print_method_args): Update.
6118 * linespec.c (add_matching_methods): Constify.
6119 (add_constructors): Likewise.
6120 * jv-typeprint.c (java_type_print_base): Constify.
6121 * gdbtypes.h (struct cplus_struct_type)
6122 <fn_fieldlist.fn_field.physname>: Now const.
6123 * dwarf2read.c (compute_delayed_physnames): Constify.
6124 (dwarf2_add_member_fn): Likewise.
6125 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6127 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6129 * infrun.c (resume): Mention which is the current thread, and its
6130 current PC in debug output.
6131 (prepare_to_proceed): Mention the thread switching in debug
6134 2011-05-18 Tom Tromey <tromey@redhat.com>
6136 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6137 path check. Use xmalloc and cleanups.
6138 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6140 2011-05-17 Tom Tromey <tromey@redhat.com>
6142 * cp-valprint.c (cp_print_value_fields): Catch errors from
6145 2011-05-17 Tom Tromey <tromey@redhat.com>
6147 * dwarf2read.c (dwarf2_get_die_type): Call
6148 get_die_type_at_offset.
6149 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6150 get_base_type function.
6152 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6154 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6157 2011-05-16 Doug Evans <dje@google.com>
6159 * python/py-auto-load.c (source_section_scripts): Mention objfile
6162 2011-05-15 Doug Evans <dje@google.com>
6164 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6165 (try_thread_db_load_from_pdir): Call it. If unable to find
6166 libthread_db in directory of libpthread, see if we're looking at
6167 the separate-debug-info copy.
6169 * python/py-autoload.c (print_script): Print "Missing" instead of
6170 "No" for missing scripts.
6171 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6173 2011-05-13 Doug Evans <dje@google.com>
6175 * ui-file.c (stdio_file_write_async_safe): Add comment.
6177 2011-05-14 Hui Zhu <teawater@gmail.com>
6179 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6181 2011-05-13 Doug Evans <dje@google.com>
6183 Support $pdir and $sdir in libthread-db-search-path.
6184 * NEWS: Mention $sdir,$pdir.
6185 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6186 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6187 (try_thread_db_load_from_sdir): New function.
6188 (try_thread_db_load_from_dir): New function.
6189 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6190 system directories if search of libthread-db-search-path fails,
6191 that is now done via $sdir.
6192 (has_libpthread): New function.
6193 (thread_db_load): Remove search for libthread_db in directory of
6194 libpthread, that is now done via $pdir.
6196 * NEWS: Mention "info auto-load-scripts".
6197 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6198 script_not_found_warning_printed.
6199 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6200 all callers updated. Initialize script_not_found_warning_printed.
6201 (get_auto_load_pspace_data_for_loading): New function.
6202 (maybe_add_script): New function.
6203 (source_section_scripts): Simplify. Only print one warning regardless
6204 of the number of auto-load scripts not found.
6205 (clear_section_scripts): Clear script_not_found_warning_printed.
6206 (auto_load_objfile_script): Record script in hash table.
6207 (count_matching_scripts): New function.
6208 (maybe_print_script): Renamed from maybe_print_section_script, all
6209 callers updated. Rewrite to use ui_out_*.
6210 (info_auto_load_scripts): Renamed from
6211 maintenance_print_section_scripts, all callers updated.
6212 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6213 renamed as "info auto-load-scripts".
6215 2011-05-13 Tom Tromey <tromey@redhat.com>
6217 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6218 (read_sleb128): Likewise.
6220 2011-05-13 Tom Tromey <tromey@redhat.com>
6222 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6225 2011-05-13 Doug Evans <dje@google.com>
6227 * linux-nat.c (debug_linux_nat_async): Delete.
6228 Replace all references to use debug_linux_nat instead.
6229 (show_debug_linux_nat_async): Delete.
6230 (sigchld_handler): Call ui_file_write_async_safe instead of
6232 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6233 * ui-file.c (struct ui_file): New member to_write_async_safe.
6234 (null_file_write_async_safe): New function.
6235 (ui_file_write_async_safe): New function.
6236 (set_ui_file_write_async_safe): New function.
6237 (ui_file_new): Initialize to_write_async_safe.
6238 (stdio_file_write_async_safe): New function.
6239 (struct stdio_file): New member fd.
6240 (stdio_file_new): Initialize to_write_async_safe, fd.
6241 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6243 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6244 (set_ui_file_write_async_safe): Declare.
6245 (ui_file_write_async_safe): Declare.
6247 2011-05-13 Tom Tromey <tromey@redhat.com>
6249 * utils.c (do_value_free): New function.
6250 (make_cleanup_value_free): Likewise.
6251 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6253 (dwarf2_loc_desc_needs_frame): Call
6254 make_cleanup_value_free_to_mark.
6255 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6256 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6258 (new_dwarf_expr_context): Don't call value_mark.
6259 * dwarf2-frame.c (execute_stack_op): Call
6260 make_cleanup_value_free_to_mark.
6261 * defs.h (make_cleanup_value_free): Declare.
6263 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6265 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6266 prepare_execute_command.
6267 * top.c (prepare_execute_command): Return cleanup.
6268 (execute_command): Use cleanup from prepare_execute_command.
6269 * top.h (prepare_execute_command): Change prototype to return
6271 * defs.h (struct value): Add opaque declaration.
6272 (make_cleanup_value_free_to_mark): Add prototype.
6273 * utils.c (do_value_free_to_mark): New function.
6274 (make_cleanup_value_free_to_mark): Likewise.
6276 2011-05-12 Tom Tromey <tromey@redhat.com>
6278 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6279 cast left-hand-side to unsigned.
6281 2011-05-12 Tom Tromey <tromey@redhat.com>
6284 * value.h (value_from_contents): Declare.
6285 * value.c (value_from_contents): New function.
6286 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6287 (dwarf2_get_die_type): New function.
6288 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6289 (allocate_piece_closure): Acquire reference to values.
6290 (read_pieced_value): Update for value-based expressions.
6291 (write_pieced_value): Likewise.
6292 (free_pieced_value_closure): Call value_free as needed.
6293 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6294 Update for value-based expressions.
6295 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6296 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6297 <get_base_type>: New field.
6298 (struct dwarf_expr_piece) <v.value>: Change type.
6299 <v.regno>: New field.
6300 (struct dwarf_expr_context) <mark>: New field.
6301 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6302 (dwarf_expr_pop, dwarf_expr_push): Remove.
6303 (dwarf_expr_push_address): Declare.
6304 * dwarf2expr.c (dwarf_arch_cookie): New global.
6305 (struct dwarf_gdbarch_types): New.
6306 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6308 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6310 (dwarf_expr_push_address): New function.
6311 (dwarf_expr_pop): Now static.
6312 (dwarf_expr_fetch): Change return type.
6313 (dwarf_require_integral): New function.
6314 (dwarf_expr_fetch): Simplify.
6315 (add_piece): Update.
6316 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6318 (execute_stack_op) <sign_ext>: Remove.
6319 Use values for DWARF stack.
6320 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6321 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6323 (_initialize_dwarf2expr): New function.
6324 (add_piece): Update.
6325 (new_dwarf_expr_context): Set new field.
6326 (free_dwarf_expr_context): Call value_free_to_mark.
6327 * dwarf2-frame.c (no_base_type): New function.
6328 (execute_stack_op): Set get_base_type field. Update.
6330 2011-05-12 Tom Tromey <tromey@redhat.com>
6332 * dwarf2read.c (read_common_block): Fix formatting.
6334 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6336 * breakpoint.c (disable_breakpoint): Disable all locations
6337 associated with a tracepoint on target if a trace experiment is
6339 (disable_command): Disable a specific tracepoint location on target if
6340 a trace experiment is running.
6341 (do_enable_breakpoint): Enable all locations associated with a
6342 tracepoint on target if a trace experiment is running.
6343 (enable_command) Enable a specific tracepoint location on target if a
6344 trace experiment is running.
6345 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6346 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6347 to_disable_tracepoint.
6348 * target.h: Add declaration of struct bp_location.
6349 (struct target_ops): Add new functions
6350 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6351 to_disable_tracepoint to target operations.
6352 (target_supports_enable_disable_tracepoint): New macro.
6353 (target_enable_tracepoint): New macro.
6354 (target_disable_tracepoint): New macro.
6355 * remote.c (struct remote_state): Add new field.
6356 (remote_enable_disable_tracepoint_feature): New.
6357 (remote_protocol_features): Add new entry.
6358 (remote_supports_enable_disable_tracepoint): New.
6359 (remote_enable_tracepoint): New.
6360 (remote_disable_tracepoint): New.
6361 (init_remote_ops): Add remote_enable_tracepoint,
6362 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6363 to remote operations.
6364 * tracepoint.c (start_tracing): Allow tracing to start without any
6365 tracepoints enabled with just a warning if they can be re-enabled
6367 * NEWS: Add news item for the new behaviour of the enable and disable
6368 GDB commands when applied to tracepoints.
6369 Add news items for the new remote packets QTEnable and QTDisable.
6371 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6373 * config.in: Regenerate.
6374 * configure: Regenerate.
6375 * configure.ac <--with-system-readline> (for readline_echoing_p):
6377 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6378 (tui_old_rl_echoing_p): ... here.
6379 (tui_setup_io): Rename extern declaration readline_echoing_p to
6380 _rl_echoing_p. Adjust assignments for the both renames.
6382 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6384 * symtab.c (lookup_symtab): Run cleanup before returning.
6386 2011-05-11 Tom Tromey <tromey@redhat.com>
6388 * dwarf2read.c (handle_data_member_location): New function.
6389 (dwarf2_add_field): Use it.
6390 (read_common_block): Likewise.
6392 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6394 Make addrs->SECTINDEX always defined.
6395 * symfile.c (relative_addr_info_to_section_offsets): Check for
6396 SECTINDEX -1, not for zero ADDR.
6397 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6398 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6399 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6402 2011-05-10 Doug Evans <dje@google.com>
6404 * linux-thread-db.c: Whitespace cleanup.
6405 (try_thread_db_load_1): Fix comment.
6407 * linux-thread-db.c (set_libthread_db_search_path): New function.
6408 (_initialize_thread_db): Add setter for libthread-db-search-path.
6410 2011-05-09 Doug Evans <dje@google.com>
6412 * NEWS: Mention --with-iconv-bin.
6413 * configure.ac: New option --with-iconv-bin.
6414 * configure: Regenerate.
6415 * config.in: Regenerate.
6416 * defs.h (relocate_gdb_directory): Declare.
6417 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6418 removed progname parameter, and exported. All callers updated.
6419 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6421 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6422 adding missing call to restore_child_signals_mask.
6424 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6426 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6428 * infrun.c (proceed, start_remote): Adjust.
6429 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6430 and adjust to not handle it.
6431 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6432 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6433 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6434 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6435 * windows-nat.c (do_initial_windows_stuff): Adjust.
6436 * infcmd.c (attach_command): Adjust.
6437 (notice_new_inferior): Adjust.
6439 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6441 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6442 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6443 * spu-tdep.c (op_selb): Use correct value.
6445 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6447 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6448 "parent" parameter to symbol_file_add_from_bfd call.
6450 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6451 Thiago Jung Bauermann <bauerman@br.ibm.com>
6453 Implement support for PowerPC BookE masked watchpoints.
6454 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6456 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6457 method. Initialize to NULL in all existing breakpoint_ops instances.
6458 (struct breakpoint) <hw_wp_mask>: New field.
6459 * breakpoint.c (is_masked_watchpoint): Add prototype.
6460 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6461 breakpoint's breakpoint_ops.works_in_software_mode if available.
6462 (watchpoints_triggered): Handle the case of a hardware masked
6464 (watchpoint_check): Likewise.
6465 (works_in_software_mode_watchpoint): New function.
6466 (insert_masked_watchpoint, remove_masked_watchpoint)
6467 (resources_needed_masked_watchpoint)
6468 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6469 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6470 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6472 (masked_watchpoint_breakpoint_ops): New structure.
6473 (watch_command_1): Check for the existence of the `mask' parameter.
6474 Set b->ops according to the type of hardware watchpoint being created.
6475 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6476 (ppc_linux_remove_mask_watchpoint)
6477 (ppc_linux_masked_watch_num_registers): New functions.
6478 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6479 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6480 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6481 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6482 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6483 (target_masked_watch_num_registers): New functions.
6484 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6485 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6487 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6488 (target_masked_watch_num_registers): Add prototypes.
6490 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6493 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6494 (producer_is_gcc_ge_4_0): New function.
6495 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6496 symtab->language code.
6497 (var_decode_location): Set cu->has_loclist.
6498 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6499 skip. Intialize force_skip from locations_valid. Move the prologue
6500 skipping code into two passes.
6501 * symtab.h (struct symtab): Make the primary field a bitfield. New
6502 field locations_valid.
6504 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6506 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6507 (classify_inner_name): Call cp_lookup_nested_type with
6509 * cp-namespace.c (cp_lookup_nested_type): New variable
6510 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6511 type_name_no_tag_or_error with saved_parent_type.
6512 * dwarf2read.c (load_partial_dies): Read in any children of
6513 DW_TAG_typedef with complaint in such case.
6514 * gdbtypes.c (type_name_no_tag_or_error): New function.
6515 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6516 * valops.c (destructor_name_p): New comment for parameter type. Remove
6517 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6518 * value.h (destructor_name_p): Remove type const.
6520 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6522 * symtab.c (compare_symbol_name): New function.
6523 (completion_list_add_name, expand_partial_symbol_name): Call it,
6524 remove the variable ncmp.
6525 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6528 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6530 Demote to sw watchpoint only in update_watchpoint.
6531 * breakpoint.c (update_watchpoint): Change between software and
6532 hardware watchpoint for all kinds of watchpoints, not just
6533 read/write ones. Determine b->exact value here instead of
6534 in watch_command_1. Error out if there are not enough resources
6535 for a read or access hardware watchpoint.
6536 (watch_command_1): Remove logic of checking whether there are
6537 enough resources available, since update_watchpoint will do that
6538 work now. Don't set b->exact here. Catch exceptions thrown by
6539 update_watchpoint and delete the watchpoint.
6540 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6541 Use target_exact_watchpoints instead.
6542 (delete_breakpoint): Notify observers only if deleted watchpoint
6543 has a breakpoint number assigned to it.
6545 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6547 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6549 2011-05-05 Jerome Guitton <guitton@adacore.com>
6551 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6553 (i386_stack_tramp_frame_unwind): New static global.
6554 (i386_match_pattern): New function, extracted from i386_match_insn.
6555 (i386_match_insn): Use i386_match_pattern.
6556 (i386_match_insn_block): New function.
6557 (i386_tramp_chain_in_reg_insns)
6558 (i386_tramp_chain_on_stack_insns): New static variables.
6559 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6562 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6564 * configure.host (xscale*): Don't handle target.
6565 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6568 2011-05-04 Yao Qi <yao@codesourcery.com>
6570 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6572 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6575 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6576 | * elfread.c (elf_symtab_read): Stop memory leak.
6578 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6580 * nto-tdep.c (nto_target): Replace deprecated call to
6581 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6583 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6585 Fix false GCC warning.
6586 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6588 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6590 * breakpoint.c (update_watchpoint): Move code to change
6591 the enable state of breakpoint from here ...
6592 (do_enable_breakpoint): ... to here.
6594 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6596 * valprint.c (val_print_array_elements): Fixed poor performance
6597 of printing very large arrays with repeat_count_threshold set
6598 to unlimited. New comment.
6600 2011-04-29 Tom Tromey <tromey@redhat.com>
6602 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6603 (mi_parse): Likewise.
6604 * breakpoint.c (break_range_command): Use sizeof char*, not
6606 (create_breakpoint): Likewise.
6607 (parse_breakpoint_sals): Likewise.
6609 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6611 * linux-nat.c (linux_child_remove_fork_catchpoint)
6612 (linux_child_remove_vfork_catchpoint)
6613 (linux_child_remove_exec_catchpoint): New functions.
6614 (linux_target_install_ops): Install them.
6616 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6620 * varobj.c (install_default_visualizer): Do not install a
6621 visualizer if the varobj is CPLUS_FAKE_CHILD.
6622 (construct_visualizer): Likewise.
6624 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6626 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6627 case insensitive comparison.
6629 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6631 * infrun.c (proceed): Revert previous change.
6632 (resume): Instead, handle the case of signal delivery while stepping
6633 off a breakpoint location here, and only if software single-stepping
6634 is used. Handle nested signals.
6636 2011-04-28 Yao Qi <yao@codesourcery.com>
6638 * arm-tdep.c (copy_unmodified): Rename to ...
6639 (arm_copy_unmodified): .. this. New.
6640 (copy_preload): Move common part to ...
6641 (install_preload): .. this. New.
6642 (arm_copy_preload): New.
6643 (copy_preload_reg): Move common part to ...
6644 (install_preload_reg): ... this. New.
6645 (arm_copy_preload_reg): New.
6646 (copy_b_bl_blx): Move common part to ...
6647 (install_b_bl_blx): .. this. New.
6648 (arm_copy_b_bl_blx): New.
6649 (copy_bx_blx_reg): Move common part to ...
6650 (install_bx_blx_reg): ... this. New.
6651 (arm_copy_bx_blx_reg): New.
6652 (copy_alu_reg): Move common part to ...
6653 (install_alu_reg): ... this. New.
6654 (arm_copy_alu_reg): New.
6655 (copy_alu_shifted_reg): Move common part to ...
6656 (install_alu_shifted_reg): ... this. New.
6657 (copy_ldr_str_ldrb_strb): Move common part to ...
6658 (install_ldr_str_ldrb_strb): ... this. New.
6659 (arm_copy_ldr_str_ldrb_strb): New.
6660 (copy_copro_load_store): Move some common part to ...
6661 (install_copy_copro_load_store): ... this. New.
6662 (arm_copy_copro_load_store): New.
6664 (arm_copy_svc): Renamed from copy_svc.
6665 (copy_undef): Delete.
6666 (arm_copy_undef): Renamed from copy_undef.
6667 (decode_ext_reg_ld_st): Delete.
6668 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6669 (decode_svc_copro): Delete.
6670 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6671 (copy_copro_load_store, copy_alu_imm): update callers.
6672 (copy_extra_ld_st, copy_block_xfer): Likewise.
6673 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6674 (decode_miscellaneous, decode_dp_misc): Likewise.
6675 (decode_ld_st_word_ubyte, decode_media): Likewise.
6676 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6677 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6678 (decode_unconditional, decode_miscellaneous): Likewise.
6679 (decode_media, decode_b_bl_ldmstm): Likewise.
6680 (arm_process_displaced_insn): Likewise..
6681 (decode_misc_memhint_neon): Delete.
6682 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6683 (decode_miscellaneous): Delete.
6684 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6685 (decode_dp_misc): Delete.
6686 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6687 (decode_ld_st_word_ubyte): Delete.
6688 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6689 (decode_media): Delete.
6690 (arm_decode_media): Renamed from decode_media.
6691 (decode_b_bl_ldmstm): Delete.
6692 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6693 (decode_ext_reg_ld_st): Delete.
6694 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6695 (decode_unconditional): Delete.
6696 (arm_decode_unconditional): Renamed from decode_unconditional.
6698 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6700 Case insensitive lookups implementation.
6701 * dwarf2read.c: Include ctype.h.
6702 (struct mapped_index): New field version.
6703 (mapped_index_string_hash): New parameter index_version. New comment
6704 for it. Call tolower appropriately.
6705 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6706 Choose the right index version for mapped_index_string_hash.
6707 (dwarf2_read_index): Support also the index version 5. Initialize the
6708 new struct mapped_index field version.
6709 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6710 (find_slot): Explain the version needs. Pass INT_MAX for the new
6712 (write_psymtabs_to_index): Produce version 5.
6713 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6714 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6715 * psymtab.c (lookup_partial_symbol): Find the
6716 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6718 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6720 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6721 (completion_list_add_name): New variable ncmp, initialize it, use it.
6722 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6723 * utils.c (strcmp_iw): Support case_sensitive_off.
6724 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6725 New function comment part. New variables saved_string1,
6726 saved_string2 and case_pass. Add a proper second pass.
6728 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6730 Replace re_comp/re_exec by regcomp/regexec.
6731 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6732 (search_symbols_name_matches): Use them, use regexec.
6733 (search_symbols): New variable retval_chain, adjust the use of
6734 old_chain against it. Replace re_comp by regcomp. Use the new struct
6735 search_symbols_data fields, use regexec instead of re_exec.
6737 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6739 Format the code for the next patch.
6740 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6741 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6742 New variables c1 and c2.
6744 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6746 * infrun.c (proceed): Do not single-step into signal delivery
6747 when stepping off a breakpoint location.
6748 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6749 (insert_step_resume_breakpoint_at_caller): Likewise.
6750 (insert_step_resume_breakpoint_at_sal): Likewise.
6751 (insert_longjmp_resume_breakpoint): Likewise.
6753 2011-04-27 Yao Qi <yao@codesourcery.com>
6755 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6757 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6759 * procfs.c (procfs_pass_signals): Fix advance declaration.
6761 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6763 * target.h (struct target_ops): Remove to_notice_signals;
6764 add to_pass_signals.
6765 (target_notice_signals): Remove.
6766 (target_pass_signals): Add prototype.
6767 * target.c (update_current_target): Remove to_notice_signals;
6768 mention to_pass_signals.
6769 (target_pass_signals): New function.
6770 (debug_to_notice_signals): Remove.
6771 (setup_target_debug): Do not install debug_to_notice_signals.
6773 * infrun.c (signal_pass): New global.
6774 (resume): Call target_pass_signals.
6775 (handle_inferior_event): Report all signals while stepping over
6776 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6777 are re-inserted when stepping over a signal handler.
6778 (signal_cache_update): New function.
6779 (signal_stop_update): Call it.
6780 (signal_print_update): Likewise.
6781 (signal_pass_update): Likewise.
6782 (handle_command): Call signal_cache_update and target_pass_signals
6783 instead of target_notice_signals.
6784 (_initialize_infrun): Initialize signal_pass.
6786 * linux-nat.c (pass_mask): New global.
6787 (linux_nat_pass_signals): New function.
6788 (linux_nat_create_inferior): Report all signals initially.
6789 (linux_nat_attach): Likewise.
6790 (linux_nat_resume): Use pass_mask to decide whether to directly
6791 handle an inferior signal.
6792 (linux_nat_wait_1): Likewise.
6793 (linux_nat_add_target): Install to_pass_signals callback.
6795 * nto-procfs.c (notice_signals): Remove.
6796 (procfs_resume): Do not call notice_signals.
6797 (procfs_notice_signals): Remove.
6798 (procfs_pass_signals): New function.
6799 (init_procfs_ops): Install to_pass_signals callback instead of
6800 to_notice_signals callback.
6801 (_initialize_procfs): Report all signals initially.
6803 * procfs.c (procfs_notice_signals): Remove.
6804 (procfs_pass_signals): New function.
6805 (procfs_target): Install to_pass_signals callback instead of
6806 to_notice_signals callback.
6807 (register_gdb_signals): Remove.
6808 (procfs_debug_inferior): Report all signals initially.
6809 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6811 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6812 parameters; use them instead of calling signal_..._state routines.
6813 (remote_notice_signals): Remove.
6814 (remote_start_remote): Report all signals initially.
6815 (remote_resume): Do not call remote_pass_signals.
6816 (_initialize_remote): Install to_pass_signals callback instead of
6817 to_notice_signals callback.
6819 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6821 * breakpoint.c (user_settable_breakpoint): Delete.
6822 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6823 (delete_command): Check user_breakpoint_p instead of looking at
6824 the breakpoint's type.
6825 (disable_command): Ditto.
6826 (enable_command): Ditto.
6827 (delete_trace_command): Use user_breakpoint_p instead of looking
6828 at the breakpoint number directly. When checking if there are
6829 user visible tracepoints, in order to know whether to ask the user
6830 for confirmation, check whether the breakpoint is actually a
6833 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6835 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6838 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6840 MI breakpoint notifications.
6842 * annotate.c (breakpoint_changed): Adjust parameter type.
6843 * breakpoint.c (set_breakpoint_condition): Adjust to change
6844 in breakpoint_modified type.
6845 (breakpoint_set_commands): Likewise.
6846 (do_map_commands_command): Likewise.
6847 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6848 changed after bumping hit count.
6849 (bpstat_stop_status): Likewise.
6850 (print_one_breakpoint_location): Don't wrap in tuple here.
6851 (print_one_breakpoint): Always print individual locations.
6852 For locations, use unnamed tuple.
6853 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6855 (create_catchpoint, create_syscall_event_catchpoint): Call
6856 breakpoint_created obsever.
6857 (mention): Don't call breakpoint_created observer.
6858 (create_breakpoint_sal): Call breakpoint_created observer.
6859 (create_breakpoint, watch_command_1): Likewise.
6860 (create_ada_exception_breakpoint): Likewise.
6861 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6862 (locations_are_equal): New.
6863 (update_breakpoint_locations): If locations were changed, notify.
6864 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6865 Call breakpoint_modified observer.
6867 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6868 (mi_cmd_break_insert): Don't set observers for modify and delete.
6869 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6870 (mi_breakpoint_created, mi_breakpoint_deleted)
6871 (mi_breakpoint_modified): New.
6872 (mi_interpreter_init): Hook the above.
6873 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6874 while -break-* commands are executing.
6875 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6876 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6878 (mi_ui_out_impl): Hook in mi_redirect.
6879 (mi_field_skip): True to the name, skip the field, don't output
6880 a field with an empty value.
6882 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6883 (gdbpy_breakpoint_deleted): Adjust.
6884 * tui/tui-hooks.c (tui_event_create_breakpoint)
6885 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6887 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6889 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6890 (procfs_remove_hw_watchpoint): Likewise.
6892 2011-04-26 Michael Walle <michael@walle.cc>
6894 * remote.c (remote_start_remote): Ack packet after sending the
6897 2011-04-26 Yao Qi <yao@codesourcery.com>
6899 * linux-nat.c: Move common macros to ...
6900 Include linux-ptrace.h.
6901 * common/linux-ptrace.h: ... here. New.
6903 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6905 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6906 !objfile_has_partial_symbols. New comment.
6907 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6908 SYM_READ_PSYMBOLS is not present. Extend the comment.
6909 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6911 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6913 * defs.h (ENUM_BITFIELD): Remove.
6915 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6916 Eli Zaretskii <eliz@gnu.org>
6918 * NEWS: Document the new gdbserver --once option.
6920 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6922 * MAINTAINERS: Update my email address.
6924 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6926 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6927 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6928 function call if __STDC_ISO_10646__ macro is defined.
6929 (intermediate_encoding): New prototype.
6930 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6931 to generate compile time error for unsupported gdb_wchar_t size.
6932 (ENDIAN_SUFFIX): New macro.
6933 (intermediate_encoding): New function.
6935 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6937 * ada-lang.c (struct add_partial_datum): Update the comment for
6938 expand_partial_symbol_name.
6939 (ada_add_partial_symbol_completions): Rename to ...
6940 (ada_expand_partial_symbol_name): ... here, change return type, update
6941 function comment, call symbol_completion_match instead of
6942 symbol_completion_add.
6943 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6944 and ada_expand_partial_symbol_name.
6945 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6947 (dw2_map_symbol_names): Remove.
6948 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6949 * psymtab.c (map_symbol_names_psymtab): Remove.
6950 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6951 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6953 (psym_functions): Unlist map_symbol_names_psymtab.
6954 (map_partial_symbol_names): Rename to ...
6955 (expand_partial_symbol_names): ... here, change the FUN type, call
6956 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6957 * psymtab.h (map_partial_symbol_names): Rename to ...
6958 (expand_partial_symbol_names): ... here, change the FUN type.
6959 * symfile.h (struct quick_symbol_functions): Update the description of
6960 expand_symtabs_matching. Remove map_symbol_names.
6961 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6962 (struct add_name_data): Update the comment for
6963 expand_partial_symbol_name.
6964 (add_partial_symbol_name): Rename to ...
6965 (expand_partial_symbol_name): ... here. Replace
6966 completion_list_add_name call by strncmp.
6967 (default_make_symbol_completion_list_break_on): Use now
6968 expand_partial_symbol_names and expand_partial_symbol_name.
6969 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6971 2011-04-20 Tom Tromey <tromey@redhat.com>
6973 * dwarf2read.c (save_gdb_index_command): Replace format
6974 documentation with a pointer to the manual.
6976 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6978 * regcache.c: Include remote.h.
6979 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6980 (regcache_dump): Handle regcache_dump_remote.
6981 (maintenance_print_remote_registers): New function.
6982 (_initialize_regcache): Install "maint print remote-registers"
6984 * remote.c (map_regcache_remote_table): New function, factored out
6986 (init_remote_state): ... here.
6987 (remote_register_number_and_offset): New.
6988 * remote.h (remote_register_number_and_offset): Declare.
6990 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6992 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6993 null_ptid, assume and allow a NULL address space, instead of
6994 asking the target for the ptid's address space.
6995 * infrun.c (ptid_is_pid): Remove assertion.
6997 2011-04-19 Tom Tromey <tromey@redhat.com>
6999 * windows-tdep.c (windows_xfer_shared_library):
7000 * windows-nat.c (get_module_name, windows_make_so):
7001 * v850-tdep.c (v850_handle_pushm):
7002 * utils.c (null_cleanup, gdb_realpath):
7003 * ui-out.c (get_next_header):
7004 * tracepoint.c (clear_traceframe_info):
7005 * symtab.c (lookup_symtab):
7006 * serial.h (struct serial_ops):
7007 * mipsread.c (read_alphacoff_dynamic_symtab):
7008 * infcmd.c (print_return_value):
7009 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7010 * f-exp.y (parse_number):
7011 * exceptions.c (catch_exceptions):
7012 * dummy-frame.c (dummy_frame_this_id):
7013 * defs.h (struct cleanup):
7014 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7015 * arm-tdep.c (arm_push_dummy_call):
7016 * amd64-tdep.h (amd64_collect_xsave):
7017 * amd64-tdep.c (amd64_collect_xsave):
7018 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7019 * README (typing): Remove duplicate words.
7020 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7021 * infrun.c (siginfo_value_read): Fix typo.
7022 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7023 * top.c (source_line_number): Add comma.
7025 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7027 * thread.c (any_live_thread_of_process): Prioritize threads
7028 that are not executing.
7029 * gdbthread.h (any_live_thread_of_process): Update comment
7030 as per above change.
7032 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7034 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7035 (scan_xcoff_symtab): Likewise.
7037 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7039 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7042 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7043 Pedro Alves <pedro@codesourcery.com>
7045 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7046 variables to simplify code and avoid == operator at end of
7047 line as this is against GNU coding standards.
7049 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7051 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7052 lm_name to name_lm to avoid conflict with lm_name function.
7054 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7056 ARI fixes: Use only lowercase function name for static functions.
7057 * nto-tdep.c (LM_ADDR): Rename to...
7058 (lm_addr): New function name.
7059 (nto_relocate_section_addresses): Adapt to change above.
7060 * solib-sunos.c (LM_ADDR): Rename to...
7061 (lm_addr): New function name.
7062 (LM_NEXT): Rename to...
7063 (lm_next): New function name.
7064 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7065 function name changes above.
7066 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7067 (lm_addr_from_link_map): New function name.
7068 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7069 (has_lm_dynamic_from_link_map): New function name.
7070 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7071 (lm_dynamic_from_link_map): New function name.
7072 (LM_ADDR_CHECK): Rename to...
7073 (lm_addr_check): New function name.
7074 (LM_NEXT): Rename to...
7075 (lm_next): New function name.
7076 (LM_PREV): Rename to...
7077 (lm_prev): New function name.
7078 (LM_NAME): Rename to...
7079 (lm_name): New function name.
7080 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7081 (ignore_first_link_map_entry): New function name.
7082 (svr4_keep_data_in_core): Adapt to function name changes above.
7083 (svr4_current_sos): Likewise.
7084 (enable_break): Likewise.
7085 (svr4_relocate_section_addresses): Likewise.
7087 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7090 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7091 sprintf. Simplify code and avoid loosing memory.
7092 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7093 (call0_frame_cache): Remove && operator from end of line.
7095 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7097 Fix libraries displacement if they change whether they were prelinked.
7098 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7099 does not match. Comment why.
7101 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7103 * corelow.c: Include wrapper.h.
7104 (core_open): Call now gdb_target_find_new_threads.
7105 * wrapper.c: Include target.h.
7106 (gdb_target_find_new_threads): New.
7107 * wrapper.h (gdb_target_find_new_threads): New declaration.
7109 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7111 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7112 even if !TARGET_HAS_EXECUTION.
7114 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7116 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7117 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7118 bfd_get_synthetic_symtab.
7119 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7120 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7121 parameter parent, remove the call to add_separate_debug_objfile.
7122 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7123 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7124 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7125 parent, new comment for it, call add_separate_debug_objfile for it.
7126 (symbol_file_add_separate): Pass objfile as the parameter parent,
7127 remove the call to add_separate_debug_objfile.
7128 (symbol_file_add_from_bfd): New parameter parent, pass it.
7129 (symbol_file_add): Pass NULL to the new parameter parent.
7130 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7132 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7134 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7137 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7139 Fix Python access to inlined frames.
7140 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7141 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7143 2011-04-15 Tom Tromey <tromey@redhat.com>
7145 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7147 2011-04-15 Gary Benson <gbenson@redhat.com>
7149 * MAINTAINERS: Add myself to write-after-approval section.
7151 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7153 * remote-sim.c (sim_command_completer): New function.
7154 (_initialize_remote_sim): Set completer to sim_command_completer.
7156 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7158 * breakpoint.c (print_exception_catchpoint): Rename to ...
7159 (print_it_exception_catchpoint): ... this.
7160 (gnu_v3_exception_catchpoint_ops): Update with new name
7161 for print_it_exception_catchpoint.
7163 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7165 * MAINTAINERS: Add myself for write after approval privileges.
7167 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7169 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7171 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7173 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7175 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7177 * breakpoint.c (save_breakpoints): Verify whether
7178 breakpoint_ops.print_recreate is defined before calling it.
7180 2011-04-11 Gary Benson <gbenson@redhat.com>
7182 Fix failure with --enable-maintainer-mode.
7183 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7185 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7188 * symtab.c (search_symbols): Reorder the KIND description in the
7189 function comment. Remove the unused 4th element of types, types2,
7190 types3 and types4. New gdb_assert on KIND.
7191 (symtab_symbol_info): Remove the unused 4th element of classnames.
7192 New gdb_assert on KIND.
7193 * symtab.h (enum search_domain): New warning in the enum comment.
7194 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7197 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7199 Fix crash of gdb save-index on a STABS file.
7200 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7203 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7205 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7206 * dwarf2read.c: Include ctype.h.
7207 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7209 (dwarf2_add_field): Fix new_field->accessibility by calling
7210 dwarf2_default_access_attribute. Restructure setting accessibility
7212 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7213 is_private and is_protected by calling
7214 dwarf2_default_access_attribute.
7216 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7218 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7219 to the initialization.
7221 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7223 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7226 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7228 Remove support for old Cygwin 1.5 versions.
7229 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7230 function on old Cygwin version.
7231 * windows-nat.c: Remove cygwin version check and always define
7232 __USEWIDE for Cygwin compilation.
7234 2011-04-07 Yao Qi <yao@codesourcery.com>
7236 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7238 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7239 (arm_copy_svc): Remove parameters INSN and TO.
7240 (decode_svc_copro): Update caller.
7241 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7242 from function pointer `copy_svc_os'.
7244 2011-04-07 Yao Qi <yao@codesourcery.com>
7246 * arm-tdep.c (cleanup_branch): Set a correct return address in
7247 LR for ARM and Thumb.
7249 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7252 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7253 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7254 in the function comment, a new note on values compatibility.
7255 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7256 * symtab.h (SYMBOL_HASH_NEXT): New.
7258 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7260 * ppc-linux-nat.c (check_condition): Add len output parameter.
7261 Set it based on the memory region referenced in the condition
7262 expression. Update all callers.
7264 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7266 Fix crash regression on systems featuring .gdb_index.
7267 * objfiles.c (free_objfile): Move the
7268 forget_cached_source_info_for_objfile call earlier. Comment it.
7269 Extend the comment for objfile_free_data.
7271 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7273 Fix regression of displaying the debug format.
7274 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7277 2011-04-04 Tom Tromey <tromey@redhat.com>
7279 * cli/cli-interp.c (struct captured_execute_command_args):
7281 (do_captured_execute_command): Remove.
7282 (safe_execute_command): Use TRY_CATCH.
7283 * cli/cli-script.c (struct wrapped_read_command_file_args):
7285 (wrapped_read_command_file): Remove.
7286 (script_from_file): Use TRY_CATCH.
7287 * exceptions.c (catch_exception): Remove.
7288 * exceptions.h (catch_exception): Remove.
7289 (deprecated_throw_reason): Update comment.
7290 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7291 argument to 'context'.
7292 (mi_execute_command): Use TRY_CATCH.
7293 * remote.c (struct start_remote_args): Remove.
7294 (remote_start_remote): Update; change arguments.
7295 (remote_open_1): Use TRY_CATCH.
7297 2011-04-04 Tom Tromey <tromey@redhat.com>
7299 * tracepoint.c (scope_info): Update.
7300 * symtab.c (decode_line_spec): Update.
7301 * python/python.c (gdbpy_decode_line): Update.
7302 * linespec.h (decode_line_1): Update.
7303 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7304 (decode_compound, find_method, symtab_from_filename)
7305 (decode_variable): Likewise.
7306 * cli/cli-cmds.c (edit_command): Update.
7307 (list_command): Update.
7308 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7310 (create_breakpoint): Update.
7311 (until_break_command): Update.
7312 (addr_string_to_sals): Update.
7313 (decode_line_spec_1): Update.
7315 2011-04-04 Tom Tromey <tromey@redhat.com>
7317 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7318 (do_captured_parse_breakpoint): Remove.
7319 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7320 Use TRY_CATCH directly.
7322 2011-04-04 Tom Tromey <tromey@redhat.com>
7324 * symtab.h (free_symtab): Remove.
7325 (forget_cached_source_info_for_objfile): Declare.
7326 * symmisc.c (free_symtab): Remove.
7327 * source.c (forget_cached_source_info_for_objfile): New function.
7328 (forget_cached_source_info): Use it.
7329 * objfiles.c (free_objfile): Simplify check before calling
7330 clear_current_source_symtab_and_line. Call
7331 forget_cached_source_info_for_objfile.
7333 2011-04-04 Tom Tromey <tromey@redhat.com>
7335 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7336 (new_symtab): Don't set `free_code' on symtab.
7337 (new_linetable): Properly handle size==0.
7338 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7339 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7341 * jv-lang.c (struct jv_per_objfile_data): New.
7342 (jv_per_objfile_free): Free the data.
7343 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7344 (get_java_class_symtab): Set the `dict' field on the
7345 jv_per_objfile_data.
7346 (free_class_block): Remove.
7347 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7350 2011-04-04 Tom Tromey <tromey@redhat.com>
7352 * symfile.c (reread_symbols): Update.
7353 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7355 * objfiles.c (allocate_objfile): Update.
7356 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7358 * cp-namespace.c (lookup_symbol_file): Don't call
7359 lookup_possible_namespace_symbol.
7360 (initialize_namespace_symtab, get_possible_namespace_block)
7361 (free_namespace_block, cp_check_possible_namespace_symbols)
7362 (check_possible_namespace_symbols_loop)
7363 (check_one_possible_namespace_symbol)
7364 (lookup_possible_namespace_symbol): Remove.
7365 (maintenance_cplus_namespace): Replace with notice.
7366 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7368 2011-04-04 Tom Tromey <tromey@redhat.com>
7370 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7371 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7372 * symmisc.c (free_symtab): Don't free debugformat.
7373 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7374 (record_debugformat, record_producer): Document.
7375 * buildsym.c (end_symtab): Don't save debugformat and producer
7377 (end_symtab): Don't free debugformat and producer fields.
7378 (record_debugformat): Don't call xstrdup.
7379 (record_producer): Likewise.
7381 2011-04-04 Tom Tromey <tromey@redhat.com>
7383 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7384 (source_line_charpos, source_charpos_line): Remove.
7386 2011-04-04 Tom Tromey <tromey@redhat.com>
7388 * symtab.h (domain_enum): Split in two...
7389 (enum search_domain): New.
7390 (search_symbols): Update.
7391 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7392 redundant declarations.
7393 (search_symbols): Change 'kind' argument to search_domain.
7395 (print_symbol_info): Likewise.
7396 (symtab_symbol_info): Likewise.
7397 * symfile.h (struct quick_symbol_functions)
7398 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7399 <expand_symtabs_matching>: Likewise.
7400 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7401 (expand_symtabs_matching_via_partial): Update.
7402 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7403 (dw2_expand_symtabs_for_function): Update.
7404 * block.h: Moved anonymous enum...
7405 * defs.h (enum block_enum): ... here. Now named.
7407 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7409 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7410 * version.in: Bump version to 7.3.50.20110403-cvs.
7412 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7414 * NEWS: Create a new section for the next release branch.
7415 Rename the section of the current branch, now that it has
7418 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7420 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7421 for "fpscr" in target description.
7423 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7425 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7426 initialize it. Delay HASH initialization. Strip the part after open
7427 parenthesis for languages with qualifiers. Call do_cleanups.
7429 2011-04-01 Tom Tromey <tromey@redhat.com>
7431 * utils.c (report_command_stats): Don't print `-' for negative
7434 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7436 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7437 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7440 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7442 * breakpoint.h (bpdisp_text): Add declaration.
7443 * breakpoint.c (bpdisp_text): Make non-static.
7444 * ada-lang.c: #include "mi/mi-common.h".
7445 (print_it_exception): Rewrite to improve GDB/MI output.
7447 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7449 * arm-tdep.h (struct address_space): Add forward declaration.
7451 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7453 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7454 * arm-tdep.c (arm_override_mode): New global.
7455 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7456 execution mode heuristics.
7457 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7458 second single-step breakpoint if needed, using
7459 arm_insert_single_step_breakpoint.
7460 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7461 ARM execution mode, do not call thumb_get_next_pc_raw.
7462 (arm_get_next_pc): Encode execution mode in return value. Call
7463 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7464 (arm_insert_single_step_breakpoint): New function.
7465 (arm_software_single_step): Call it.
7466 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7467 argument to return execution mode of sigreturn target.
7468 (arm_linux_syscall_next_pc): Use it.
7469 (arm_linux_copy_svc): Update call.
7470 (arm_linux_software_single_step): Call
7471 arm_insert_single_step_breakpoint.
7473 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7475 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7478 2011-03-31 Tom Tromey <tromey@redhat.com>
7480 * varobj.c (update_dynamic_varobj_children): Properly handle
7481 errors from iterator.
7483 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7485 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7486 struct linkage name twice.
7488 2011-03-31 Tom Tromey <tromey@redhat.com>
7490 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7491 missing ">" to message.
7493 2011-03-31 Tom Tromey <tromey@redhat.com>
7495 * varobj.c (instantiate_pretty_printer): Remove duplicate
7498 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7500 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7501 if neither saved value nor register available (e.g. signal frame).
7503 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7505 * macroexp.c (expand): Avoid uninitialized variable
7508 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7510 * breakpoint.c (break_range_command): Fix typo in comment.
7512 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7513 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7515 Implement support for PowerPC BookE ranged breakpoints.
7516 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7517 * breakpoint.h (struct bp_target_info) <length>: New member
7519 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7520 instead of struct breakpoint as argument, and also add ASPACE
7521 and BP_ADDR arguments. Update all callers.
7522 (struct breakpoint_ops) <print_one_detail>: New method.
7523 (struct breakpoint) <addr_string_range_end>: New member variable.
7524 * breakpoint.c (breakpoint_location_address_match): Add function
7526 (insert_bp_location): Set bl->target_info.length.
7527 (breakpoint_here_p): Call breakpoint_location_address_match.
7528 (moribund_breakpoint_here_p): Likewise.
7529 (regular_breakpoint_inserted_here_p): Likewise.
7530 (breakpoint_thread_match): Likewise.
7531 (bpstat_stop_status): Likewise.
7532 (bpstat_check_location): Move call to
7533 breakpoint_ops.breakpoint_hit to the top.
7534 (print_one_breakpoint_location): Call
7535 breakpoint_ops.print_one_detail if available.
7536 (breakpoint_address_match_range): New function.
7537 (breakpoint_location_address_match): Likewise.
7538 (breakpoint_locations_match): Compare the length field of the
7540 (hw_breakpoint_used_count): Count resources used by all locations
7541 in a breakpoint, and use breakpoint_ops.resources_needed if
7543 (breakpoint_hit_ranged_breakpoint): New function.
7544 (resources_needed_ranged_breakpoint): Likewise.
7545 (print_it_ranged_breakpoint): Likewise.
7546 (print_one_ranged_breakpoint): Likewise.
7547 (print_one_detail_ranged_breakpoint): Likewise.
7548 (print_mention_ranged_breakpoint): Likewise.
7549 (print_recreate_ranged_breakpoint): Likewise.
7550 (ranged_breakpoint_ops): New structure.
7551 (find_breakpoint_range_end): New function.
7552 (break_range_command): Likewise.
7553 (delete_breakpoint): Free addr_string_range_end.
7554 (update_breakpoint_locations): Add SALS_END argument. Update
7555 all callers. Calculate breakpoint length if a non-zero SALS_END
7556 is given. Call breakpoint_locations_match instead of
7557 breakpoint_address_match.
7558 (reset_breakpoint): Find SaL of the end of the range if B is a
7560 (_initialize_breakpoint): Register break-range command.
7561 * defs.h (print_core_address): Add function prototype.
7562 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7564 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7565 (ppc_linux_remove_hw_breakpoint): Likewise.
7566 (_initialize_ppc_linux_nat): Initialize
7567 to_ranged_break_num_registers.
7568 * target.c (update_current_target): Add comment about
7569 to_ranged_break_num_registers.
7570 (target_ranged_break_num_registers): New function.
7571 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7573 (target_ranged_break_num_registers): Add function prototype.
7574 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7575 * utils.c (print_core_address): ... here.
7577 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7579 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7580 variable compiler warning.
7582 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7584 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7586 (re_set_breakpoint): ... to here ...
7587 (addr_string_to_sals): ... and here.
7589 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7591 * Makefile.in (SFILES): Add missing C sources.
7592 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7593 Add missing headers.
7595 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7597 * .gitignore: New file.
7599 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7601 * NEWS: Mention new cfi device simulation.
7603 2011-03-29 Tom Tromey <tromey@redhat.com>
7605 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7606 otherwise anonymous types.
7607 (dwarf2_name): Likewise.
7608 * valops.c (value_struct_elt_for_reference): Refine artificial
7609 type logic. Call error if j==-1.
7611 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7613 Fix false GCC warning.
7614 * infcall.c (find_function_addr): Initialize funaddr.
7616 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7618 Fix mingw compilation with --enable-targets=all.
7619 * remote-mips.c (gdb_usleep.h): Include header.
7620 (mips_enter_debug): Use gdb_usleep instead of sleep.
7622 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7624 Support resolution of STT_GNU_IFUNC via breakpoints.
7625 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7626 bp_gnu_ifunc_resolver_return.
7627 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7628 the loop. Support bp_gnu_ifunc_resolver and
7629 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7630 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7632 (bptype_string, print_one_breakpoint_location): Support
7633 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7634 (user_settable_breakpoint): Return true also for
7635 bp_gnu_ifunc_resolver.
7636 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7637 bp_gnu_ifunc_resolver_return.
7638 (set_breakpoint_location_function): New parameter explicit_loc,
7639 describe it. Call find_pc_partial_function_gnu_ifunc with new
7640 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7641 EXPLICIT_LOC is not set.
7642 (set_raw_breakpoint): Set EXPLICIT_LOC for
7643 set_breakpoint_location_function.
7644 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7645 set_breakpoint_location_function.
7646 (mention): Support bp_gnu_ifunc_resolver and
7647 bp_gnu_ifunc_resolver_return.
7648 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7649 set_breakpoint_location_function.
7650 (update_breakpoint_locations): Remove static.
7651 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7652 bp_gnu_ifunc_resolver_return.
7653 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7654 bp_gnu_ifunc_resolver_return.
7655 (update_breakpoint_locations): New declaration.
7656 * elfread.c: Include gdbthread.h and regcache.h.
7657 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7659 (elf_gnu_ifunc_fns): Install them.
7660 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7661 (stub_gnu_ifunc_resolver_return_stop): New functions.
7662 (stub_gnu_ifunc_fns): Install them.
7663 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7664 and gnu_ifunc_resolver_return_stop.
7665 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7667 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7669 STT_GNU_IFUNC reader implementation.
7670 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7671 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7672 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7673 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7674 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7675 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7676 (elf_gnu_ifunc_resolve_addr): New.
7677 (elf_symfile_read): Call elf_rel_plt_read.
7678 (elf_gnu_ifunc_fns): New.
7679 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7680 Install elf_gnu_ifunc_fns.
7681 * infcall.c (find_function_return_type): New function.
7682 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7683 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7684 (stub_gnu_ifunc_resolve_name): New functions.
7685 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7686 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7687 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7689 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7691 Code cleanup for later STT_GNU_IFUNC support.
7692 * infcall.c (find_function_addr): Remove variable code, use explicit
7693 dereferences for it. Move VALUE_TYPE initialization later.
7695 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7697 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7698 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7699 (clear_pc_function_cache): Clear it.
7700 (find_pc_partial_function): Rename to ...
7701 (find_pc_partial_function_gnu_ifunc): ... this function. New
7702 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7703 (find_pc_partial_function): New wrapper for this function.
7704 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7706 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7708 GDB internal type support for STT_GNU_IFUNC.
7709 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7710 (elf_symtab_read): Set mst_text_gnu_ifunc for
7711 BSF_GNU_INDIRECT_FUNCTION.
7712 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7713 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7714 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7715 nodebug_got_plt_symbol.
7716 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7717 (TYPE_GNU_IFUNC): New.
7718 (struct main_type): New field flag_gnu_ifunc.
7719 (struct builtin_type): New field builtin_func_func.
7720 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7721 nodebug_got_plt_symbol.
7722 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7723 (in_gnu_ifunc_stub): New.
7724 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7726 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7727 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7728 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7730 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7731 * symtab.c (search_symbols): Likewise.
7732 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7733 and mst_slot_got_plt.
7734 (in_gnu_ifunc_stub): New declaration.
7736 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7738 Support a ring of related breakpoints.
7739 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7740 other functions, add gdb_assert.
7741 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7742 watchpoint_del_at_next_stop.
7743 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7744 (bpstat_stop_status): Handle ring in related_breakpoint.
7745 (set_raw_breakpoint_without_location): Initialize ring in
7747 (delete_breakpoint): Handle ring in related_breakpoint, use
7748 watchpoint_del_at_next_stop.
7749 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7751 2011-03-28 Tom Tromey <tromey@redhat.com>
7754 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7755 with `language_minimal'.
7757 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7759 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7760 instead of checking for STT_ARM_TFUNC symbol type.
7762 2011-03-25 Tom Tromey <tromey@redhat.com>
7764 * linespec.c (symbol_found): Restore line-based result for
7765 non-LOC_LABEL symbols.
7767 2011-03-25 Kai Tietz <ktietz@redhat.com>
7769 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7770 instead of strcmp for comparison.
7771 (tui_source_is_displayed): Likewise.
7772 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7774 2011-03-24 Mark Wielaard <mjw@redhat.com>
7776 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7778 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7779 (find_partial_die_in_comp_unit): Likewise in comment.
7780 (read_attribute_value): Likewise.
7781 (lookup_die_type): Likewise.
7782 (dwarf_form_name): Likewise.
7783 (dump_die_shallow): Likewise.
7784 (follow_die_ref_or_sig): Likewise.
7786 2011-03-24 Tom Tromey <tromey@redhat.com>
7788 PR breakpoints/11816:
7789 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7790 (decode_compound): Update.
7791 (find_function_symbol): New function.
7792 (decode_dollar): Update.
7793 (decode_label): Add 'function_symbol' parameter. Handle
7794 function-relative labels.
7795 (decode_variable): Update.
7796 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7797 not its line. Set `special_display' and canonical name for
7800 2011-03-24 Tom Tromey <tromey@redhat.com>
7802 * linespec.h (struct linespec_result) <special_display>: New
7804 * breakpoint.h (struct breakpoint) <display_canonical>: New
7806 * breakpoint.c (print_breakpoint_location): Respect
7808 (create_breakpoint_sal): Add 'display_canonical' parameter.
7809 (create_breakpoints_sal): Update.
7810 (create_breakpoint): Update.
7812 2011-03-24 Tom Tromey <tromey@redhat.com>
7814 * symtab.c (decode_line_spec): Update.
7815 * linespec.c (build_canonical_line_spec): Change type of
7817 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7818 (find_method, decode_all_digits, decode_dollar, decode_label)
7819 (symbol_found): Likewise.
7820 (init_linespec_result): New function.
7821 * breakpoint.c (struct captured_parse_breakpoint_args)
7822 <canonical_p>: New field, replaces addr_string_p.
7823 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7825 (parse_breakpoint_sals): Likewise.
7826 (do_captured_parse_breakpoint): Update.
7827 (create_breakpoint): Use struct linespec_result.
7828 (until_break_command): Update.
7829 (breakpoint_re_set_one): Update.
7830 (decode_line_spec_1): Update.
7831 * linespec.h (struct linespec_result): New.
7832 (init_linespec_result): Declare.
7834 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7836 * regcache.c (regcache_raw_read): If the target didn't supply a
7837 given raw register, mark it as unavailable.
7839 2011-03-23 Kai Tietz <ktietz@redhat.com>
7841 * breakpoint.c (clear_command): Use filename_cmp
7842 instead of strcmp for comparison.
7843 * buildsym.c (watch_main_source_file_lossage): Likewise.
7844 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7845 checking just for slash.
7846 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7847 strrchr and filename_cmp instead of strcmp for filenames.
7848 (add_old_header_file): Use filename_cmp
7849 instead of strcmp for comparison.
7850 * exec.c (exec_set_section_address): Likewise.
7851 * macrotab.c (macro_lookup_inclusion): Likewise.
7852 (macro_lookup_inclusion): Likewise.
7853 * elfread.c (_initialize_elfread): Likewise.
7854 (elfstab_offset_sections): Likewise.
7855 (elfstab_offset_sections): Use lbasename instead of
7857 * mdebugread.c (parse_partial_symbols): Likewise.
7858 (arse_partial_symbols): Use filename_(n)cmp instead of
7859 str(n)cmp for comparison.
7860 * minsyms.c (lookup_minimal_symbol): Likewise.
7861 * psymtab.c (read_psymtabs_with_filename): Likewise.
7862 * solib.c (solib_read_symbols): Likewise.
7863 (reload_shared_libraries_1): Likewise.
7864 * symmisc.c (maintenance_print_symbols): Likewise.
7865 * symfile.c (separate_debug_file_exists): Likewise.
7866 (reread_symbols): Likewise.
7867 (find_separate_debug_file_by_debuglink): Likewise.
7868 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7869 * source.c (add_path): Likewise.
7870 * symtab.c (filename_seen): Likewise.
7871 (file_matches): Likewise.
7872 (print_symbol_info): Likewise.
7873 (maybe_add_partial_symtab_filename): Likewise.
7874 (make_source_files_completion_list): Likewise.
7875 * xml-syscall.c (init_sysinfo): Likewise.
7876 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7877 IS_DIR_SEPARATOR for checking for trailing path separator.
7879 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7881 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7882 label abort_expression.
7883 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7884 DWARF_VALUE_OPTIMIZED_OUT.
7886 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7889 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7890 to linkage_name. Invert its value. Update the function comment.
7891 (c_type_print_varspec_suffix): Invert it at the caller.
7892 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7894 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7896 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7897 errors when reading the `stop_pc'.
7898 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7901 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7903 * NEWS: Document gdb.Write stream keyword.
7905 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7908 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7909 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7910 (dwarf2_add_field): Fix new_field->accessibility for
7911 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7913 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7917 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7918 other error classes. Do not print stack trace.
7920 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7922 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7923 (dwarf2_add_field): Fix new_field->accessibility for
7924 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7926 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7928 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7929 encountering a load via a non-SP register.
7931 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7933 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7934 field in returned unwinder.
7936 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7938 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7940 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7942 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7945 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7947 * frame.c (frame_unwind_register): Throw an error if unwinding the
7949 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7950 an unwind stop reason.
7951 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7952 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7953 UNWIND_UNAVAILABLE>: New.
7954 * inline-frame.c (inline_frame_unwind): Install
7955 default_frame_unwind_stop_reason.
7956 * frame-unwind.c: Include "exceptions.h".
7957 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7958 (default_frame_unwind_stop_reason): New.
7959 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7960 (default_frame_unwind_stop_reason): Declare.
7961 (struct frame_unwind) <stop_reason>: New function pointer.
7963 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7964 * dwarf2-frame.c: Include exceptions.h.
7965 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7966 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7967 computing the CFA. If such an error was thrown, set
7968 unavailable_retaddr.
7969 (dwarf2_frame_unwind_stop_reason): New.
7970 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7972 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7973 (dwarf2_signal_frame_unwind): Ditto.
7975 * amd64-tdep.c: Include "exceptions.h".
7976 (struct amd64_frame_cache): New field "base_p".
7977 (amd64_init_frame_cache): Clear it.
7978 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7979 Avoid reading registers with functions that throw if the register
7980 is not necessary to compute the frame base.
7981 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7982 swallowing NOT_AVAILABLE_ERROR.
7983 (amd64_frame_unwind_stop_reason): New.
7984 (amd64_frame_this_id): Don't build a frame id if the frame base
7986 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7987 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7988 base_p if the frame base was computable.
7989 (amd64_sigtramp_frame_unwind_stop_reason): New.
7990 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7991 frame base was unavailable.
7992 (amd64_sigtramp_frame_unwind): Install
7993 amd64_sigtramp_frame_unwind_stop_reason.
7994 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7995 base_p if the frame base was computable.
7996 (amd64_epilogue_frame_unwind_stop_reason): New.
7997 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7998 frame base was unavailable.
7999 (amd64_epilogue_frame_unwind): Install
8000 amd64_epilogue_frame_unwind_stop_reason.
8001 * i386-tdep.c: Include "exceptions.h".
8002 (struct i386_frame_cache): New field "base_p".
8003 (i386_init_frame_cache): Clear it.
8004 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8005 Avoid reading registers with functions that throw if the register
8006 is not necessary to compute the frame base.
8007 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8008 swallowing NOT_AVAILABLE_ERROR.
8009 (i386_frame_unwind_stop_reason): New.
8010 (i386_frame_this_id): Don't build a frame id if the frame base was
8012 (i386_frame_prev_register): Handle unavailable SP.
8013 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8014 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8015 base_p if the frame base was computable.
8016 (i386_epilogue_frame_unwind_stop_reason): New.
8017 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8018 base was unavailable.
8019 (i386_epilogue_frame_unwind): Install
8020 i386_epilogue_frame_unwind_stop_reason.
8021 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8022 base_p if the frame base was computable.
8023 (i386_sigtramp_frame_unwind_stop_reason): New.
8024 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8025 base was unavailable.
8026 (i386_sigtramp_frame_unwind): Install
8027 i386_sigtramp_frame_unwind_stop_reason.
8028 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8029 type's size, not the register's.
8030 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8032 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8033 default_frame_unwind_stop_reason.
8034 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8035 (alpha_heuristic_frame_unwind): Ditto.
8036 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8037 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8038 * avr-tdep.c (avr_frame_unwind): Ditto.
8039 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8041 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8042 * frv-tdep.c (frv_frame_unwind): Ditto.
8043 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8044 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8045 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8046 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8047 (hppa_stub_frame_unwind): Ditto.
8048 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8049 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8050 (ia64_libunwind_frame_unwind)
8051 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8052 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8053 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8054 * m32c-tdep.c (m32c_unwind): Ditto.
8055 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8056 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8057 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8058 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8059 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8060 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8061 * mep-tdep.c (mep_frame_unwind): Ditto.
8062 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8063 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8064 (mips_stub_frame_unwind): Ditto.
8065 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8066 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8067 * mt-tdep.c (mt_frame_unwind): Ditto.
8068 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8069 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8070 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8071 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8072 (s390_sigtramp_frame_unwind): Ditto.
8073 * score-tdep.c (score_prologue_unwind): Ditto.
8074 * sh-tdep.c (sh_frame_unwind): Ditto.
8075 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8076 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8077 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8078 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8079 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8080 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8081 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8082 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8083 (sparc64obsd_trapframe_unwind): Ditto.
8084 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8085 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8086 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8087 * v850-tdep.c (v850_frame_unwind): Ditto.
8088 * vax-tdep.c (vax_frame_unwind): Ditto.
8089 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8090 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8091 * xtensa-tdep.c (xtensa_unwind): Ditto.
8093 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8095 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8096 there's always a frame. Use get_frame_pc_if_available instead of
8097 get_frame_pc, and if there's no PC available, don't look up a
8100 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8102 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8105 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8107 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8110 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8112 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8113 * frame.c (frame_unwind_caller_pc_if_available): New.
8114 * stack.c (frame_info): Handle unavailable PC.
8116 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8118 * frame.c (frame_unwind_pc): Rename to ...
8119 (frame_unwind_pc_if_available): ... this. New `pc' output
8120 parameter. Change return type to int. Gracefully handle
8121 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8122 happened, or 1 otherwise.
8123 (frame_unwind_pc): Reimplement on top of
8124 frame_unwind_pc_if_available.
8125 (get_frame_func): Rename to ...
8126 (get_frame_func_if_available): New `pc' output parameter. Change
8127 return type to int. Gracefully handle the PC not being available.
8128 (get_frame_func): Reimplement on top of
8129 get_frame_func_if_available.
8130 (select_frame): Handle the PC being unavailable.
8131 (get_prev_frame): Handle the PC being unavailable.
8132 (get_frame_pc_if_available): New.
8133 (get_frame_address_in_block_if_available): New.
8134 (find_frame_sal): Handle the frame PC not being available.
8135 * frame.h (get_frame_pc_if_available): Declare.
8136 (get_frame_address_in_block_if_available): Declare.
8137 (get_frame_func_if_available): Declare.
8138 * stack.c (print_frame_info): Handle the PC being unavailable.
8139 (find_frame_funname): Ditto.
8140 (print_frame): Handle the PC being unavailable.
8141 (get_frame_language): Ditto.
8142 * blockframe.c (get_frame_block): Ditto.
8143 * macroscope.c (default_macro_scope): Ditto.
8144 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8146 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8148 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8149 NOT_AVAILABLE_ERROR when evaluating the location expression.
8151 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8153 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8154 returning that the register piece is unavailable/optimized out.
8155 (write_pieced_value): Handle get_frame_register_bytes returning
8156 that the register piece is unavailable/optimized out when doing a
8157 read-modify write of a bitfield.
8158 * findvar.c (value_from_register): Handle get_frame_register_bytes
8159 returning that the register piece is unavailable/optimized out.
8160 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8161 and `unavailablep'. Throw error on bad debug info. Use
8162 frame_register instead of frame_register_read, to fill in the new
8164 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8166 * valops.c: (value_assign): Adjust, and handle
8167 get_frame_register_bytes failing.
8168 * spu-tdep.c: Include exceptions.h.
8169 (spu_software_single_step): Adjust, and handle
8170 get_frame_register_bytes failing.
8171 (spu_get_longjmp_target): Ditto.
8172 * gdbarch.sh (register_to_value): Change to return int. New
8173 parameters `optimizedp' and `unavailablep'.
8174 * gdbarch.h, gdbarch.c: Regenerate.
8175 * i386-tdep.c (i386_register_to_value): Adjust to new
8176 gdbarch_register_to_value interface.
8177 * i387-tdep.c (i387_register_to_value): Ditto.
8178 * i387-tdep.h (i387_register_to_value): Ditto.
8179 * alpha-tdep.c (alpha_register_to_value): Ditto.
8180 * ia64-tdep.c (ia64_register_to_value): Ditto.
8181 * m68k-tdep.c (m68k_register_to_value): Ditto.
8182 * mips-tdep.c (mips_register_to_value): Ditto.
8183 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8185 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8187 * findvar.c (value_of_register): Mark the value as unavailable, if
8188 the register is unavailable.
8189 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8190 (frame_register): New `unavailablep' parameter.
8191 (frame_register_read): Update comment.
8192 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8193 Set it if the register is unavailable. If the register is
8194 unavailable, clear the output buffer.
8195 (frame_register): New `unavailablep' parameter. Pass it down.
8196 (frame_unwind_register): Adjust.
8197 (put_frame_register): Adjust.
8198 (frame_register_read): Adjust. Also return false if the register
8200 (frame_register_unwind_location): Adjust.
8201 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8202 is unavailable, mark the value accordingly.
8203 * stack.c (frame_info): Handle unavailable registers.
8205 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8207 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8208 simplify, using regcache_cooked_read.
8210 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8212 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8213 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8214 (regcache_raw_read_unsigned, regcache_raw_read_part)
8215 (regcache_cooked_read, regcache_cooked_read_signed)
8216 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8217 (regcache_cooked_read_ftype): Change return to enum
8219 * regcache.c: Include exceptions.h
8220 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8221 (do_cooked_read): Change return to enum register_status. Always
8222 forward to regcache_cooked_read.
8223 (regcache_raw_read): Change return to enum register_status. If
8224 the register is not REG_VALID, memset the buffer. Return the
8226 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8227 return the register's status.
8228 (regcache_raw_read_unsigned): Ditto.
8229 (regcache_cooked_read): Change return to enum register_status.
8230 Assert that with read-only regcaches, the register's status must
8231 be known. If the regcache is read-only, and the register is not
8232 REG_VALID, memset the buffer. Return the register's status.
8233 (regcache_cooked_read_signed): Change return to enum
8234 register_status. Handle non-REG_VALID registers and return the
8236 (regcache_cooked_read_unsigned): Change return to enum
8237 register_status. Handle non-REG_VALID registers and return the
8239 (regcache_xfer_part, regcache_raw_read_part)
8240 (regcache_cooked_read_part): Change return to enum
8241 register_status. Return the register's status.
8242 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8244 (regcache_dump): Handle unavailable cooked registers.
8245 * frame.c (do_frame_register_read): Adjust interface to match
8246 regcache_cooked_read_ftype.
8247 * gdbarch.sh (pseudo_register_read): Change return to enum
8249 * gdbarch.h, gdbarch.c: Regenerate.
8251 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8253 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8254 register_status. If reading a raw register indicates the raw
8255 register is not valid, return the raw register's status,
8256 otherwise, return REG_VALID.
8257 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8258 register_status. Handle non-REG_VALID raw registers and return
8259 the register's status.
8260 * arm-tdep.c (arm_neon_quad_read)
8261 (arm_pseudo_read): Change return to enum register_status. Handle
8262 non-REG_VALID raw registers and return the register's status.
8263 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8264 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8265 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8266 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8267 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8269 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8270 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8271 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8272 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8273 (m32c_pseudo_register_read): Change return to enum
8274 register_status. Adjust.
8275 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8276 enum register_status. Return the register's status.
8277 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8278 register_status. Return the register's status.
8279 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8280 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8281 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8282 * rs6000-tdep.c (move_ev_register_func): New typedef.
8283 (e500_move_ev_register): Use it. Change return to enum
8284 register_status. Return the register's status.
8285 (do_regcache_raw_read): New function.
8286 (do_regcache_raw_write): New function.
8287 (e500_pseudo_register_read): Change return to enum
8288 register_status. Return the register's status. Use
8289 do_regcache_raw_read.
8290 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8291 (dfp_pseudo_register_read): Change return to enum register_status.
8292 Return the register's status.
8293 (vsx_pseudo_register_read): Ditto.
8294 (efpr_pseudo_register_read): Ditto.
8295 (rs6000_pseudo_register_read): Ditto.
8296 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8297 register_status. Return the register's status.
8298 * sh64-tdep.c (pseudo_register_read_portions): New function.
8299 (sh64_pseudo_register_read): Change return to enum
8300 register_status. Use pseudo_register_read_portions. Return the
8302 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8303 register_status. Return the register's status.
8304 * sh-tdep.c (pseudo_register_read_portions): New function.
8305 (sh_pseudo_register_read): Change return to enum register_status.
8306 Use pseudo_register_read_portions. Return the register's status.
8307 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8308 enum register_status. Return the register's status.
8309 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8310 * spu-tdep.c (spu_pseudo_register_read_spu)
8311 (spu_pseudo_register_read): Ditto.
8312 * xtensa-tdep.c (xtensa_register_read_masked)
8313 (xtensa_pseudo_register_read): Ditto.
8314 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8316 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8318 * python/py-value.c (valpy_getitem): Fix formatting of error function
8321 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8323 ARI fixes: Add missing internationalization markups throughout
8325 * darwin-nat-info.c: Ditto.
8328 * mi/mi-main.c: Ditto.
8330 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8332 ARI fixes: Add missing internationalization markups throughout
8335 * cp-name-parser.y: Ditto.
8338 * objc-exp.y: Ditto.
8341 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8343 ARI fixes: Messages should have no trailing new lines.
8344 * darwin-nat.c (mach_check_error): Remove trailing new line from
8345 warning function call message.
8346 * record.c (bfdcore_read): Idem for error call.
8348 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8350 * common/signals.c (target_signal_from_host): Add _ markup to error
8351 function call message.
8352 (target_signal_to_host): Add _ markup and remove trailing new line
8353 from warning call message.
8354 (target_signal_from_command): Add _ markup to error function call
8357 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8361 * python/python.c (gdbpy_write): Accept a stream argument and
8362 operate to the appropriate stream.
8363 (gdbpy_flush): Likewise.
8364 (_initialize_python): Add stream constants.
8365 (finish_python_initialization): Add GdbOutputErrorFile class.
8367 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8369 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8371 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8373 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8374 to store_signed_integer. Add debug message when relocating CALL
8375 instructions. Fix formatting of debug message.
8376 * i386-tdep.c (i386_relocate_instruction): Ditto.
8378 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8380 * target.h (struct target_ops): Remove to_lookup_symbol field.
8381 (target_lookup_symbol): Delete macro.
8382 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8383 (update_current_target, setup_target_debug): Remove handling
8384 of to_lookup_symbol target_ops field.
8385 * ada-tasks.c (get_known_tasks_addr): Remove use of
8386 target_lookup_symbol.
8387 * coffread.c (coff_symtab_read): Likewise.
8388 * dbxread.c (read_dbx_symtab): Ditto.
8390 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8393 * configure.ac: Add getthrds declaration check.
8394 * configure, config.in: Regenerate.
8395 * aix-thread.c (getthrds): Declare only if not already declared
8396 in procinfo.h. More declaration out of get_signaled_thread to
8399 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8401 * python/py-symtab.c: Populate symtab_object_methods,
8403 (stpy_is_valid): New function.
8404 (salpy_is_valid): Ditto.
8405 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8406 (sympy_is_valid): New function.
8407 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8408 (objfpy_is_valid): New function.
8409 * python/py-inferior.c: Populate inferior_object_methods.
8410 (infpy_is_valid): New function.
8411 * python/py-infthread.c: Populate thread_object_methods.
8412 (thpy_is_valid): New function.
8413 * python/py-block.c: Declare block_object_methods. Populate. Declare
8414 block_iterator_object_methods. Populate.
8415 (blpy_is_valid): New function.
8416 (blpy_iter_is_valid): Ditto.
8418 2011-03-16 Keith Seitz <keiths@redhat.com>
8420 * linespec.c (find_methods): Canonicalize NAME before looking
8422 (name_end): New function.
8423 (keep_name_info): New function.
8424 (decode_line_1): Use keep_name_info.
8425 (decode_compound): Likewise.
8426 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8427 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8430 * linespec.c (locate_first_half): Keep overload information, too.
8431 (decode_compound): Use a string to represent break characters
8433 If P points to a break character, do not increment it.
8434 For C++ and Java, keep overload information and relevant keywords.
8435 If we cannot find a symbol, search the minimal symbols.
8438 * linespec.c (decode_compound): Rename SAVED_ARG to
8440 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8442 Pass a valid block to lookup_symbol.
8443 (lookup_prefix_sym): Likewise.
8444 (find_method): Construct search name based on SYM_CLASS instead
8446 * psymtab.c (lookup_partial_symbol): Add language parameter.
8447 (lookup_symbol_aux_psymtabs): Likewise.
8448 Don't assume that the psymtab we found was the right one. Search
8449 for the desired symbol in the symtab to be certain.
8450 (psymtab_search_name): New function.
8451 (lookup_partial_symbol): Use psymtab_search_name.
8452 Add language parameter.
8453 (read_symtabs_for_function): Add language parameter and pass to
8454 lookup_partial_symbol.
8455 (find_symbol_file_from_partial): Likewise.
8457 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8460 * dwarf2read.c (noop_record_line): New function.
8461 (dwarf_decode_lines): Ignore line tables for GCd functions.
8463 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8465 Fix ARI warnings about new lines at the end of messages, which
8466 are unneeded as there is a new line added at the end of the message
8468 * darwin-nat.c (darwin_stop_inferior): Ditto.
8469 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8470 * dfp.c (decimal_to_number): Ditto.
8471 * exec.c (print_section_info): Ditto.
8472 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8473 * osdata.c (get_osdata): Ditto.
8474 * record.c (bfdcore_write): Ditto.
8475 * remote-mips.c (mips_readchar): Ditto.
8476 * remote.c (read_ptid): Ditto.
8477 * ser-mingw.c (ser_windows_raw): Ditto.
8478 * tracepoint.c (add_local_symbols): Ditto.
8479 * windows-nat.c (fake_create_process): Ditto.
8481 2011-03-16 Tom Tromey <tromey@redhat.com>
8483 * tracepoint.c (stop_tracing): Don't declare.
8484 * event-top.c (after_char_processing_hook): Add `(void)'.
8486 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8488 * NEWS: Add Parameter sub-classing description.
8490 2011-03-16 Kai Tietz <ktietz@redhat.com>
8492 * MAINTAINERS: Update my e-mail address.
8494 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8496 * MAINTAINERS: Add myself for write after approval privileges.
8498 2011-03-15 Michael Snyder <msnyder@vmware.com>
8500 * frame.c (find_frame_sal): Assert sym is not null.
8502 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8504 * objc-lang.c (selectors_info): Check strchr for null result.
8506 * stabsread.c (define_symbol): Guard against bad stabstring input.
8508 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8510 Remove trailing spaces and tabulations from pascal language
8515 p-valprint.c: Ditto.
8517 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8519 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8520 than LOW. Comment it.
8521 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8522 HIGHPC not strictly higher than LOWPC.
8524 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8526 Fix formatting of function declarations returning a pointer in
8528 * varobj.c (varobj_add_child): Ditto.
8529 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8530 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8532 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8534 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8535 for the "generic" vector ABI used with GCC 4.3 and later.
8536 (ppc64_sysv_abi_return_value): Likewise.
8538 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8540 * infcall.c (call_function_by_hand): Function return value is
8541 always a non_lval, even when using struct_return.
8543 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8545 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8546 (map_display_numbers): New.
8547 (do_delete_display): New.
8548 (undisplay_command): Use map_display_numbers.
8549 (do_enable_disable_display): New.
8550 (enable_disable_display_command): New function.
8551 (enable_display): Delete.
8552 (enable_display_command): New.
8553 (disable_display_command): Reimplement.
8554 (_initialize_printcmd): Adjust "enable display" command to use
8555 `enable_display_command' as callback.
8557 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8559 * NEWS: Add Python breakpoint 'stop' operation.
8561 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8563 * NEWS: Delete duplicate entry. Fix typo.
8565 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8567 Fix ARI warning about function names in first column.
8568 Put prototype declaration on same line as return type.
8569 * objc-exp.y: Ditto.
8571 * python/py-stopevent.h: Ditto.
8572 For long function names, split parameters to
8573 allow function name on same line as return type.
8574 * solib-pa64.c: Ditto.
8577 For long function declaration, use single line.
8578 * hppa-tdep.h: Ditto.
8579 * inferior.h: Ditto.
8581 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8583 * python/python.h: Declare gdbpy_should_stop and
8584 gdbpy_breakpoint_has_py_cond.
8585 * python/python.c: Add python.h to includes. Remove python.h from
8586 HAVE_PYTHON definition
8587 (gdbpy_should_stop): New dummy function.
8588 (gdbpy_breakpoint_has_py_cond): New dummy function.
8589 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8590 sub-classing capabilities.
8591 (gdbpy_should_stop): New function.
8592 (gdbpy_breakpoint_has_py_cond): New function.
8593 (local_setattro): New function.
8594 * breakpoint.c (condition_command): Add check for Python 'stop'
8596 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8597 operation function as part of stop/continue tests.
8599 2011-03-14 Tom Tromey <tromey@redhat.com>
8602 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8603 (needs_frame_dwarf_call): Likewise.
8605 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8607 Fix ARI warning about functions without parameters that do not
8609 * breakpoint.c (all_tracepoints): Replace () by (void).
8610 * f-exp.y (match_string_literal): Ditto.
8612 * m2-exp.y (yylex): Ditto.
8613 * mep-tdep.c (current_me_module): Ditto.
8614 (current_options): Ditto.
8615 (current_cop_data_bus_width): Ditto.
8616 (current_cr_names): Ditto.
8617 (current_cr_is_float): Ditto.
8618 (current_ccr_names): Ditto.
8619 * objc-exp.y (yylex): Ditto.
8620 * p-exp.y (yylex): Ditto.
8621 * remote.c (send_interrupt_sequence): Ditto.
8622 * tracepoint.c (current_trace_status): Ditto.
8623 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8624 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8626 2011-03-11 Michael Snyder <msnyder@vmware.com>
8628 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8629 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8630 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8631 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8632 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8634 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8635 (delete_async_event_handler): Ditto.
8637 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8639 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8641 * top.c (set_verbose): Assert showcmd was found.
8643 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8645 * xtensa-tdep.c (warning_once): Correct style issues.
8647 2011-03-11 Yao Qi <yao@codesourcery.com>
8649 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8651 2011-03-11 Andreas Schwab <schwab@redhat.com>
8653 * common/aclocal.m4: Remove.
8655 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8657 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8658 (xtensa_write_register, xtensa_read_register): Likewise.
8659 (xtensa_hextochar): Removed.
8660 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8662 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8664 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8665 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8666 (xtensa_alloc_frame_cache): Add initialization for new fields.
8667 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8668 (warning_once): New function.
8669 (xtensa_insn_kind): New item c0opc_and.
8670 (call0_classify_opcode): Add the case for AND instruction.
8671 (call0_track_op): Change arguments. New local variable litbase.
8672 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8673 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8675 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8676 (call0_analyze_prologue): Update the comments. Change arguments.
8677 Add the variety of updates to handle extended prologues, which now can
8678 conduct dynamic stack adjustments.
8679 (call0_frame_cache): Likewise.
8680 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8681 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8683 2011-03-10 Michael Snyder <msnyder@vmware.com>
8685 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8686 (cmd_qtframe): Ditto.
8687 (cmd_qtbuffer): Ditto.
8688 (cmd_bigqtbuffer): Ditto.
8690 2011-03-10 Tom Tromey <tromey@redhat.com>
8692 * tracepoint.c (trace_actions_command): Update.
8693 * thread.c (thread_apply_command): Update.
8694 * reverse.c (delete_bookmark_command): Update.
8695 (bookmarks_info): Update.
8696 * printcmd.c (undisplay_command): Update.
8697 * memattr.c (mem_enable_command): Update.
8698 (mem_disable_command): Update.
8699 (mem_delete_command): Update.
8700 * inferior.c (detach_inferior_command): Update.
8701 (kill_inferior_command): Update.
8702 (remove_inferior_command): Update.
8703 * cli/cli-utils.h (struct get_number_or_range_state): New.
8704 (init_number_or_range): Declare.
8705 (get_number_or_range): Update.
8706 * cli/cli-utils.c (init_number_or_range): New function.
8707 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8709 (number_is_in_list): Update.
8710 * breakpoint.h (get_tracepoint_by_number): Update.
8711 * breakpoint.c (map_breakpoint_numbers): Update for change to
8712 get_number_or_range.
8713 (find_location_by_number): Use get_number, not
8714 get_number_or_range.
8715 (trace_pass_set_count): New function.
8716 (trace_pass_command): Update for change to get_number_or_range.
8718 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8721 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8723 * python/py-param.c (add_setshow_generic): Add set/show callback
8724 parameters. Register Python object context.
8725 (get_show_value): New function.
8726 (get_set_value): New function.
8727 (call_doc_function): New function.
8728 (get_doc_string): Move behind get_show_value/get_set_value.
8730 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8732 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8734 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8736 * xtensa-tdep.c (xtensa_read_register): Add comment.
8737 (xtensa_write_register): Likewise.
8738 (xtensa_hextochar): Add comment and update to match coding conventions.
8739 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8740 (execute_l32e, execute_s32e, execute_code): Update comments.
8741 (xtensa_exception_handler_t): Update to match coding conventions.
8742 (xtensa_insn_kind): Likewise.
8744 2011-03-09 Michael Snyder <msnyder@vmware.com>
8746 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8748 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8750 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8752 2011-03-09 Tom Tromey <tromey@redhat.com>
8754 * thread.c (restore_selected_frame): Handle frame_level == -1.
8755 (make_cleanup_restore_current_thread): Use
8756 get_selected_frame_if_set.
8757 * frame.h (get_selected_frame_if_set): Declare.
8758 * frame.c (get_selected_frame_if_set): New function.
8760 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8762 * cli/cli-cmds.c (shell_escape): Use lbasename.
8763 * coffread.c (coff_start_symtab): Constify parameter.
8764 (complete_symtab): Constify `name' parameter.
8765 (coff_symtab_read): Constify `filestring' local.
8766 (coff_getfilename): Constify return and `result' local.
8768 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8769 * linux-fork.c (info_checkpoints_command): Use lbasename.
8770 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8771 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8772 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8773 * procfs.c (procfs_make_note_section): Use lbasename.
8774 * tui/tui-io.c (printable_part): Constity return and parameter.
8776 (print_filename): Constify parameters, and local `s'.
8777 (tui_rl_display_match_list): Constify local `temp'.
8779 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8782 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8783 Fix DWARF-3+ DW_AT_accessibility default assumption.
8784 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8785 cu->header.version >= 3.
8787 2011-03-09 Yao Qi <yao@codesourcery.com>
8789 * common/Makefile.in: Remove.
8790 * common/configure: Remove.
8791 * common/configure.ac: Remove.
8793 2011-03-09 Yao Qi <yao@codesourcery.com>
8796 2011-02-11 Yao Qi <yao@codesourcery.com>
8798 * common/Makefile.in: Add copyright header.
8800 2011-02-11 Yao Qi <yao@codesourcery.com>
8802 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8804 * configure.ac: Add common to sub dir.
8805 * configure: Regenerate.
8807 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8809 * xtensa-tdep.c (call0_ret): New function.
8810 (xtensa_skip_prologue): Speed up analysis.
8812 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8814 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8815 while executing MI command -data-list-changed-registers.
8817 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8819 * xtensa-tdep.c (xtensa_read_register): New function.
8820 (xtensa_write_register): New function.
8821 (xtensa_find_register_by_name): New function.
8822 (xtensa_windowed_frame_cache): Update comments in type description.
8823 (xtensa_frame_cache): Likewise.
8824 (xtensa_window_interrupt_insn): New function.
8825 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8826 (xtensa_insn_kind): Add new instructions.
8827 (rwx_special_register): New function.
8828 (call0_classify_opcode): Add new instructions to the analysis.
8829 (a0_saved, a7_saved, a11_saved): New variables.
8830 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8831 (execute_l32e): New function.
8832 (execute_s32e): New function.
8833 (xtensa_exception_handler_t): New type.
8834 (execute_code): New function.
8835 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8836 analysis for Xtensa Window Exception handlers.
8838 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8840 * xtensa-tdep.c (TX_PS): New.
8841 (windowing_enabled): Update to count for Call0 ABI.
8842 (xtensa_hextochar): New.
8843 (xtensa_init_reggroups): Make algorithm generic.
8844 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8846 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8848 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8850 2011-03-08 Michael Snyder <msnyder@vmware.com>
8852 * i386-tdep.c (i386_follow_jump): Check return value of
8854 (i386_analyze_struct_return): Ditto.
8855 (i386_skip_probe): Ditto.
8856 (i386_match_insn): Ditto.
8857 (i386_skip_noop): Ditto.
8858 (i386_analyze_frame_setup): Ditto.
8859 (i386_analyze_register_saves): Ditto.
8860 (i386_skip_prologue): Ditto.
8861 (i386_skip_main_prologue): Ditto.
8863 * target.c (read_whatever_is_readable): Fix memory leak.
8865 * i386-tdep.c (i386_process_record): Document fall through.
8867 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8869 Fix DWARF-3+ DW_AT_accessibility default assumption.
8870 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8871 cu->header.version >= 3.
8873 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8875 * remote.c (remote_check_symbols): Skip if the target has no
8878 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8880 * target.c (read_whatever_is_readable): Reformat comment,
8881 with a minor typo fix. Minor reformatting of the code.
8883 2011-03-08 Yao Qi <yao@codesourcery.com>
8885 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8886 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8887 Use cached result instead of calling displaced_in_arm_mode again.
8888 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8889 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8890 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8891 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8892 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8893 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8894 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8895 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8896 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8897 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8898 (arm_catch_kernel_helper_return): Likewise.
8899 * gdb/arm-tdep.h : Update function declarations.
8901 2011-03-07 Michael Snyder <msnyder@vmware.com>
8903 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8905 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8907 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8909 * elfread.c (elf_symtab_read): Stop memory leak.
8911 * main.c (captured_main): Fix memory leak.
8913 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8915 * ada-lang.c (compare_names): Call is_name_suffix with string1
8918 2011-03-07 Tom Tromey <tromey@redhat.com>
8920 * xcoffread.c (xcoff_sym_fns): Update.
8921 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8922 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8923 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8924 (symbol_file_add_with_addrs_or_offsets): Likewise.
8925 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8926 * somread.c (som_sym_fns): Update.
8927 * psymtab.h (require_partial_symbols): Declare.
8928 * psymtab.c (require_partial_symbols): New function.
8929 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8930 (ALL_OBJFILE_PSYMTABS): Undef.
8931 (ALL_PSYMTABS): Move from psympriv.h.
8932 (lookup_partial_symtab, find_pc_sect_psymtab)
8933 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8934 (find_last_source_symtab_from_partial)
8935 (forget_cached_source_info_partial)
8936 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8937 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8938 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8939 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8940 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8941 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8942 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8943 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8944 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8946 * mipsread.c (ecoff_sym_fns): Update.
8947 * machoread.c (macho_sym_fns): Update.
8948 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8949 (read_psyms): New function.
8950 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8951 (elf_sym_fns_lazy_psyms): New global.
8952 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8953 dwarf2_build_psymtabs.
8954 * dbxread.c (aout_sym_fns): Update.
8955 * coffread.c (coff_sym_fns): Update.
8957 2011-03-07 Tom Tromey <tromey@redhat.com>
8959 * infrun.c (print_exited_reason): Include inferior id and pid in
8962 2011-03-07 Tom Tromey <tromey@redhat.com>
8964 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8966 (target_has_execution_1): Update.
8967 (target_has_execution_current): Declare.
8968 (target_has_execution): Call target_has_execution_current.
8969 (default_child_has_execution): Update.
8970 * target.c (default_child_has_execution): Add 'the_ptid'
8972 (target_has_execution_1): Likewise.
8973 (target_has_execution_current): New function.
8974 (add_target): Update.
8975 (init_dummy_target): Update.
8976 * remote-m32r-sdi.c (m32r_has_execution): New function.
8977 (init_m32r_ops): Use it.
8978 * record.c (record_core_has_execution): Now static. Add
8979 'the_ptid' parameter.
8980 * inferior.c (have_live_inferiors): Don't save current thread.
8981 Use target_has_execution_1.
8983 2011-03-07 Yao Qi <yao@codesourcery.com>
8985 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8987 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8989 * elfread.c (elf_symtab_read): Minor reformatting.
8991 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8993 * objc-lang.c (selectors_info): Minor reformatting.
8995 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8997 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8999 2011-03-07 Joel Brobecker <brobecker@adacore.com>
9000 Michael Snyder <msnyder@vmware.com>
9002 * ada-valprint.c (ada_val_print_array): Move the declaration of
9003 "byte_order" and "elttype" inside the block where these variables
9004 are actually used. Remove some special handling for the case
9005 where "elttype" and "eltlen" are null. Replace by a comment
9006 and a couple of assertion checks.
9008 2011-03-05 Michael Snyder <msnyder@vmware.com>
9010 * source.c (add_path): Replace semicolon at end of block.
9011 * dwarf2expr.c (execute_stack_op): Ditto.
9013 2011-03-05 Mike Frysinger <vapier@gentoo.org>
9015 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9016 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9017 (bfin-*-*): Likewise.
9019 2011-03-05 Michael Snyder <msnyder@vmware.com>
9021 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9022 * mdebugread.c (parse_symbol): Ditto.
9023 * parse.c (parse_exp_in_context): Ditto.
9024 * source.c (add_path): Ditto.
9025 * utils.c (gnu_debuglink_crc32): Ditto.
9026 * varobj.c (variable_language): Ditto.
9028 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9030 2011-03-04 Michael Snyder <msnyder@vmware.com>
9032 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9034 * symfile.c (simple_overlay_update): Check for null return value
9035 from lookup_minimal_symbol.
9037 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9039 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9041 * eval.c (parse_and_eval_address_1): Remove function.
9042 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9043 instead of parse_and_eval_address_1.
9044 * value.h (parse_and_eval_address_1): Remove prototype.
9046 2011-03-04 Michael Snyder <msnyder@vmware.com>
9048 * remote.c (putpkt_binary): Document that case stmt falls through.
9050 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9052 * breakpointc (print_it_typical): Move NULL check from here...
9053 (print_bp_stop_message): ... to here.
9055 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9057 * breakpoint.c (enable_command): Use break instead of continue,
9058 and fill in a missing break.
9059 (disable_command): Ditto.
9061 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9063 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9064 (terminal_save_ours): Remove misleading comment.
9065 (inflow_inferior_data_cleanup): Free ttystate.
9066 (inflow_inferior_exit): Likewise.
9067 (copy_terminal_info): Copy ttystate.
9069 * serial.c (serial_copy_tty_state): New function.
9070 * serial.h (serial_copy_tty_state): Add prototype.
9071 (struct serial_ops): Add copy_tty_state callback.
9072 * ser-base.c (ser_base_copy_tty_state): New function.
9073 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9074 * ser-go32.c (dos_copy_tty_state): New function.
9075 (dos_ops): Install copy_tty_state callback.
9076 * ser-mingw.c (_initialize_ser_windows): Likewise.
9077 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9078 * ser-unix.c (hardwire_copy_tty_state): New function.
9079 (_initialize_ser_hardwire): Install it.
9081 2011-03-04 Michael Snyder <msnyder@vmware.com>
9083 * breakpoint.c (create_breakpoint): Add missing break statement.
9085 Reverting this patch:
9086 * infcall.c (call_function_by_hand): Add break statements for lint.
9088 Reverting this patch:
9089 * cli/cli-script.c (script_from_file): Add break for lint.
9091 2011-03-04 Michael Snyder <msnyder@vmware.com>
9093 * solib.c (reload_shared_libraries_1): Close memory leak.
9095 2011-03-03 Tom Tromey <tromey@redhat.com>
9098 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9101 2011-03-03 Michael Snyder <msnyder@vmware.com>
9103 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9104 fields of struct 'st' to zero.
9106 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9107 sal.pspace before calling set_current_source_symtab_and_line.
9109 2011-03-03 Yao Qi <yao@codesourcery.com>
9111 * Makefile.in (configure-common): Remove. Let Makefile
9112 in dir common to rebuild itself.
9113 (common/Makefile): Likewise.
9115 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9117 * utils.c (parse_escape): Add i18n markup in error message.
9119 2011-03-03 Yao Qi <yao@codesourcery.com>
9121 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9123 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9124 (displaced_write_reg, displaced_read_reg): Likewise.
9125 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9126 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9127 (cleanup_branch): Replace magic number 14 and 15 with
9128 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9130 2011-03-02 Michael Snyder <msnyder@vmware.com>
9132 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9134 * cli/cli-script.c (script_from_file): Add break for lint.
9136 * mdebugread.c (parse_partial_symbols): Fix indent.
9138 * target-descriptions.c (tdesc_gdb_type): No need to call
9139 xstrdup, callee saves a copy.
9141 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9143 * infcall.c (call_function_by_hand): Add break statements for lint.
9145 * utils.c (parse_escape): Escape the escape char.
9147 * python/py-inferior.c (build_inferior_list): Error out if
9148 PyList_Append fails.
9149 (gdbpy_inferiors): Error out if build_inferior_list fails.
9151 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9154 * record.c (record_restore): Move printf to before error return.
9156 2011-03-02 Yao Qi <yao@codesourcery.com>
9158 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9159 is_thumb and insn_size.
9160 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9161 on both ARM and Thumb mode.
9162 (arm_process_displaced_insn): Set is_thumb and insn_size.
9163 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9164 (arm_displaced_step_fixup): Likewise.
9166 2011-03-01 Michael Snyder <msnyder@vmware.com>
9168 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9170 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9172 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9174 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9176 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9179 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9180 which shadows function parameter.
9182 * tracepoint.c (create_tsv_from_upload): Superfluous call
9183 to xstrdup. Callee already calls xstrdup.
9185 * linespec.c (decode_line_1): Remove unnecessary null check.
9187 * tracepoint.c (scope_info): Fix mem leak, remove underused
9190 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9191 superfluous null check.
9193 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9194 (value_of_builtin_frame_fp_reg): Ditto.
9196 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9198 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9201 * linespec.c (decode_line_1): Check for null before dereference.
9203 * reverse.c (record_restore): Move null-check to before pointer
9206 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9208 * objc-lang.c (selectors_info): Add explanitory comment.
9209 (classes_info): Ditto.
9211 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9213 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9214 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9215 versions of the trampoline. Handle Thumb vs. ARM addresses.
9216 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9217 (arm_linux_init_abi): Install it.
9218 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9219 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9221 2011-02-28 Michael Snyder <msnyder@vmware.com>
9223 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9224 a little bigger, to avoid possibility of an overflow.
9226 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9227 buffers a little bigger, to avoid possibility of an overflow.
9229 * coffread.c (coff_getfilename): Add check to avoid overflow.
9231 * objc-lang.c (selectors_info): Add a small safety margin to
9233 (classes_info): Error out on too long REGEXP.
9235 * infrun.c (handle_inferior_event): Remove unused function call.
9237 * fork-child.c (fork_inferior): Remove ifdef'd code and
9240 * linux-thread-db.c (attach_thread): Discard unused value.
9242 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9244 * remote.c (remote_get_noisy_reply): Discard unused value.
9245 (remote_vcont_resume): Ditto.
9246 (remote_stop_ns): Ditto.
9248 * linespec.c (decode_objc): Delete unused variable.
9250 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9252 * dwarf2read.c (add_partial_symbol): Discard unused values.
9253 (read_base_type): Delete unused variable.
9255 * dbxread.c (read_dbx_symtab): Discard unused value.
9257 * eval.c (evaluate_subexp_standard): Delete unused variable,
9258 and discard unused values.
9260 * infcmd.c (_initialize_infcmd): Discard unused values.
9262 * stabsread.c (rs6000_builtin_type): Missing break statement.
9264 * dbxread.c (process_one_symbol): Discard unused value.
9266 * coffread.c (coff_end_symtab): Delete unused variable.
9268 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9269 (dwarf2_add_typedef): Delete unused variable.
9270 (read_namespace): Ditto.
9271 (dwarf_decode_macros): Ditto.
9273 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9275 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9277 * p-valprint.c (pascal_val_print): Discard unused value.
9279 * utils.c (nquery): Call va_end before return;
9283 * proc-service.c (ps_plog): Call va_end before return.
9285 2011-02-28 Tom Tromey <tromey@redhat.com>
9287 * python/python.c (gdbpy_value_cst): New global.
9288 (_initialize_python): Initialize it.
9289 * python/python-internal.h (gdbpy_value_cst): Declare.
9290 * python/py-value.c (convert_value_from_python): Use
9293 2011-02-28 Michael Snyder <msnyder@vmware.com>
9295 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9297 * breakpoint.c (catch_syscall_completer): Free malloced list.
9299 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9301 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9302 (lval_func_check_synthetic_pointer): Ditto.
9303 (lval_func_free_closure): Fix use-after-free.
9305 2011-02-28 Tom Tromey <tromey@redhat.com>
9307 * psymtab.c (expand_partial_symbol_tables): Use
9308 ALL_OBJFILE_PSYMTABS.
9310 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9312 * objc-lang.c (selectors_info): Error on too long REGEXP.
9314 2011-02-28 Michael Snyder <msnyder@vmware.com>
9316 * python/py-param.c (set_parameter_value): Add missing
9319 * linux-record.c (record_linux_system_call): Add missing
9322 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9324 * breakpoint.c (print_one_breakpoint_location): Remove unused
9325 argument PRINT_ADDRESS_BITS. Update callers.
9326 (print_one_breakpoint): Likewise.
9328 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9330 * breakpoint.c (wrap_indent_at_field): New function.
9331 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9332 Allocate ui_stream locally instead of using STB argument.
9333 (print_one_breakpoint_location): Update call.
9334 * ui-out.c (ui_out_query_field): New function.
9335 * ui-out.h (ui_out_query_field): Add prototype.
9337 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9339 From Michael Snyder <msnyder@vmware.com>
9340 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9342 2011-02-27 Michael Snyder <msnyder@vmware.com>
9344 * objc-lang.c (selectors_info): Prevent string overrun.
9346 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9349 * symtab.c (rbreak_command): Move variable 'file_name' to
9352 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9353 param with a local variable of the same name.
9355 2011-02-27 Michael Snyder <msnyder@vmware.com>
9357 * value.c (value_from_history_ref): New function.
9358 * value.h (value_from_history_ref): Export.
9359 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9360 to parse value history references.
9361 * cli/cli-utils.h (get_number_trailer): Update comment.
9363 2011-02-27 Michael Snyder <msnyder@vmware.com>
9365 * inferior.c (detach_inferior_command): Use get_number_or_range.
9366 (kill_inferior_command): Ditto.
9367 (remove_inferior_command): Ditto.
9368 (initialize_inferiors): Make command names plural.
9369 Update help strings.
9371 2011-02-27 Michael Snyder <msnyder@vmware.com>
9373 * darwin-nat-info.c: Fix comment typo.
9374 * dwarf2expr.h: Ditto.
9375 * fbsd-nat.c: Ditto.
9376 * fbsd-nat.h: Ditto.
9377 * frame-unwind.h: Ditto.
9379 * hppa-hpux-tdep.c: Ditto.
9380 * i386-linux-nat.c: Ditto.
9381 * linux-nat.c: Ditto.
9382 * nbsd-nat.c: Ditto.
9383 * nbsd-nat.h: Ditto.
9384 * ppc-linux-tdep.c: Ditto.
9387 * tui/tui-winsource.c: Ditto.
9389 2011-02-26 Michael Snyder <msnyder@vmware.com>
9391 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9393 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9395 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9396 with a local variable of the same name.
9398 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9399 param with a local variable of the same name.
9400 (i387_supply_xsave): Ditto.
9402 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9403 that it does not shadow a function parameter.
9405 * i386-nat.c (i386_length_and_rw_bits): Document that case
9406 statement is meant to fall through.
9408 * expprint.c (dump_subexp_body_standard): Document that case
9409 statement is meant to fall through.
9411 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9412 dead if statement. Condition can't be false.
9414 2011-02-25 Michael Snyder <msnyder@vmware.com>
9416 * arm-tdep.c: Fix typos in comments.
9417 * bsd-uthread.c: Ditto.
9418 * completer.c: Ditto.
9420 * cp-namespace.c: Ditto.
9421 * cp-support.c: Ditto.
9422 * cris-tdep.c: Ditto.
9424 * dwarf2read.c: Ditto.
9426 * gdbtypes.h: Ditto.
9427 * inferior.h: Ditto.
9428 * mdebugread.c: Ditto.
9429 * mips-tdep.c: Ditto.
9430 * ppc-linux-nat.c: Ditto.
9431 * ppc-linux-tdep.c: Ditto.
9432 * printcmd.c: Ditto.
9433 * sol-thread.c: Ditto.
9434 * solib-frv.c: Ditto.
9436 * sparc64-tdep.c: Ditto.
9437 * spu-tdep.c: Ditto.
9438 * stabsread.c: Ditto.
9443 * python/py-block.c: Ditto.
9444 * python/py-symbol.c: Ditto.
9445 * python/py-symtab.c: Ditto.
9446 * python/py-value.c: Ditto.
9447 * tui/tui-win.c: Ditto.
9449 2011-02-25 Michael Snyder <msnyder@vmware.com>
9451 * inferior.c (print_inferior): Accept a string instead of an int
9452 for requested_inferiors, and use get_number_or_range to parse it.
9453 (info_inferiors_command): Pass args string to print_inferior.
9454 (initialize_inferiors): Change help string for info inferiors.
9455 * inferior.h (print_inferior): Export prototype change.
9457 2011-02-25 Tom Tromey <tromey@redhat.com>
9459 * common/ax.def (invalid2): Set to 0x31.
9461 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9463 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9465 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9467 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9469 2011-02-24 Michael Snyder <msnyder@vmware.com>
9471 * Makefile.in (clean): Make clean should remove generated files
9472 observer.h and observer.inc.
9474 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9476 Revert the following patch (not approved yet):
9477 2011-02-21 Hui Zhu <teawater@gmail.com>
9478 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9479 * ax-gdb.c (gen_printf_expr_callback): New function.
9480 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9481 * ax-general.c (ax_memcpy): New function.
9482 (ax_print): Handle "printf".
9484 * ax.h (ax_memcpy): Forward declare.
9485 * common/ax.def (invalid2): Removed.
9486 (printf): New entry.
9487 * printcmd.c (printcmd.h): New include.
9488 (string_printf): New function.
9489 (ui_printf): Removed.
9490 (printf_command): Remove static. Call string_printf.
9491 (eval_command): Call string_printf.
9492 * printcmd.h: New file.
9493 * tracepoint.c (validate_actionline,
9494 encode_actions_1): handle printf_command.
9496 2011-02-23 Tom Tromey <tromey@redhat.com>
9498 * ax-general.c (ax_pick): Add missing newline.
9500 2011-02-23 Michael Snyder <msnyder@vmware.com>
9502 * breakpoint.c (breakpoint_1): Change first argument from an int
9503 to a char pointer, so that the function now accepts a list of
9504 breakpoints rather than just one. Use new function
9505 'number_is_in_list' to implement.
9506 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9507 (watchpoints_info): Ditto.
9508 (tracepoints_info): Ditto.
9509 (maintenance_info_breakpoints): Ditto.
9510 (_initialize_breakpoint): Update help strings to reflect the fact
9511 that these functions can now take more than one argument.
9512 * cli/cli-utils.c (number_is_in_list): New function.
9513 * cli/cli-utils.h (number_is_in_list): Export.
9515 2011-02-23 Michael Snyder <msnyder@vmware.com>
9517 * memattr.c (mem_enable_command): Use get_number_or_range.
9518 (mem_disable_command): Ditto.
9519 (mem_delete_command): Ditto.
9520 (_initialize_mem): Tweak usage message to reflect multiple
9523 2011-02-22 Doug Evans <dje@google.com>
9525 Add gdb.lookup_global_symbol python function.
9527 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9528 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9529 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9531 2011-02-22 Tom Tromey <tromey@redhat.com>
9533 * language.c (language_class_name_from_physname): Rename
9534 'curr_language' argument to 'lang'; use in body.
9536 2011-02-22 Michael Snyder <msnyder@vmware.com>
9538 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9540 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9542 * frame-unwind.h: Fix comment to mention the this frame, not the
9545 2011-02-22 Tom Tromey <tromey@redhat.com>
9547 * symfile.c (auto_solib_limit): Remove.
9548 * symfile.h (auto_solib_limit): Remove.
9550 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9552 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9554 2011-02-21 Michael Snyder <msnyder@vmware.com>
9556 * gdbthread.h (print_thread_info): Change prototype.
9557 * thread.c (print_thread_info): Accept char* instead of int for
9558 requested_threads argument. Use new function number_is_in_list
9559 to determine which threads to list.
9560 (info_threads_command): Pass char* to print_thread_info.
9561 * cli/cli-utils.c (number_is_in_list): New function.
9562 * cli/cli-utils.h (number_is_in_list): Export.
9563 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9565 (print_one_inferior): Ditto.
9566 (mi_cmd_list_thread_groups): Ditto.
9568 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9570 * common/Makefile.in (CFLAGS): New.
9571 (COMPILE): Add $(CFLAGS).
9573 2011-02-21 Tom Tromey <tromey@redhat.com>
9575 * breakpoint.c (catch_syscall_command_1): Fix typo.
9577 2011-02-21 Tom Tromey <tromey@redhat.com>
9579 * reverse.c: Include cli-utils.h.
9580 * printcmd.c: Include cli-utils.h.
9581 (string_printf): Use skip_spaces.
9582 * cli/cli-utils.h: New file.
9583 * cli/cli-utils.c: New file.
9584 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9585 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9586 * breakpoint.h (get_number, get_number_or_range): Move to
9588 * breakpoint.c: Include cli-utils.h.
9589 (get_number_trailer, get_number, get_number_or_range)
9590 (ep_skip_leading_whitespace): Move to cli-utils.c.
9591 (create_breakpoint_sal, find_condition_and_thread)
9592 (decode_static_tracepoint_spec, watch_command_1)
9593 (watch_maybe_just_location, ep_parse_optional_if_clause)
9594 (catch_fork_command_1, catch_exec_command_1)
9595 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9596 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9597 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9598 (HFILES_NO_SRCDIR): Add cli-utils.h.
9599 (cli-utils.o): New target.
9601 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9603 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9604 before calling discard_all_inferiors.
9606 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9608 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9609 (struct builtin_opencl_type): Remove.
9610 (builtin_opencl_type): Change return type to "struct type **".
9611 (lookup_opencl_vector_type): Update caller.
9612 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9613 (build_opencl_types): Install plain array of "struct type *"
9614 instead of "struct builtin_opencl_type".
9616 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9617 Ulrich Weigand <uweigand@de.ibm.com>
9619 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9620 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9621 (struct arm_linux_hwbp_cap): New type.
9622 (arm_linux_get_hwbp_cap): New function.
9623 (arm_linux_get_hw_breakpoint_count): Likewise.
9624 (arm_linux_get_hw_watchpoint_count): Likewise.
9625 (arm_linux_can_use_hw_breakpoint): Likewise.
9626 (arm_hwbp_type): New type.
9627 (arm_hwbp_control_t): Likewise.
9628 (struct arm_linux_hw_breakpoint): Likewise.
9629 (struct arm_linux_thread_points): Likewise.
9630 (arm_threads): New global variable.
9631 (arm_linux_find_breakpoints_by_tid): New function.
9632 (arm_hwbp_control_initialize): Likewise.
9633 (arm_hwbp_control_is_enabled): Likewise.
9634 (arm_hwbp_control_disable): Likewise.
9635 (arm_linux_hw_breakpoint_initialize): Likewise.
9636 (arm_linux_get_hwbp_type): Likewise.
9637 (arm_linux_hw_watchpoint_initialize): Likewise.
9638 (arm_linux_hw_breakpoint_equal): Likewise.
9639 (arm_linux_insert_hw_breakpoint1): Likewise.
9640 (arm_linux_remove_hw_breakpoint1): Likewise.
9641 (arm_linux_insert_hw_breakpoint): Likewise.
9642 (arm_linux_remove_hw_breakpoint): Likewise.
9643 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9644 (arm_linux_insert_watchpoint): Likewise.
9645 (arm_linux_remove_watchpoint): Likewise.
9646 (arm_linux_stopped_data_address): Likewise.
9647 (arm_linux_stopped_by_watchpoint): Likewise.
9648 (arm_linux_watchpoint_addr_within_range): Likewise.
9649 (arm_linux_new_thread): Likewise.
9650 (arm_linux_thread_exit): Likewise.
9651 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9652 related target callbacks. Register arm_linux_new_thread and
9653 arm_linux_thread_exit.
9654 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9655 * arm-tdep.c (arm_pc_is_thumb): Make global.
9656 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9658 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9660 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9661 per-frame locations while within a function epilogue.
9663 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9665 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9666 to GNU coding standards.
9668 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9670 Allow use of mingw native on Windows 95 OS.
9671 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9672 (ser_windows_close): Only call CancelIo if function exists.
9673 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9674 to check for existence of CancelIo function in kernel32 DLL.
9676 2011-02-21 Hui Zhu <teawater@gmail.com>
9678 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9679 * ax-gdb.c (gen_printf_expr_callback): New function.
9680 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9681 * ax-general.c (ax_memcpy): New function.
9682 (ax_print): Handle "printf".
9684 * ax.h (ax_memcpy): Forward declare.
9685 * common/ax.def (invalid2): Removed.
9686 (printf): New entry.
9687 * printcmd.c (printcmd.h): New include.
9688 (string_printf): New function.
9689 (ui_printf): Removed.
9690 (printf_command): Remove static. Call string_printf.
9691 (eval_command): Call string_printf.
9692 * printcmd.h: New file.
9693 * tracepoint.c (validate_actionline,
9694 encode_actions_1): handle printf_command.
9696 2011-02-19 Michael Snyder <msnyder@vmware.com>
9698 * reverse.c (delete_one_bookmark): Argument is now bookmark
9699 id rather than pointer to bookmark struct.
9700 (delete_bookmark_command): Use get_number_or_range.
9701 (goto_bookmark_command): Parse with get_number instead of strtoul.
9702 (bookmark_1): New function. Print info for one bookmark.
9703 (bookmarks_info): Use get_number_or_range and bookmark_1.
9705 2011-02-18 Michael Snyder <msnyder@vmware.com>
9707 * thread.c (info_threads_command): Re-implement using
9708 get_number_or_range.
9709 (thread_apply_command): Ditto.
9711 2011-02-18 Tom Tromey <tromey@redhat.com>
9713 * common/ax.def: New file.
9714 * ax.h (enum agent_op): Use ax.def.
9715 * ax-general.c (aop_map): Use ax.def.
9717 2011-02-18 Tom Tromey <tromey@redhat.com>
9719 * ax-general.c (aop_map): Add pick and rot.
9720 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9721 <DW_OP_rot>: Implement.
9722 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9724 * ax-general.c (ax_pick): New function.
9726 2011-02-18 Tom Tromey <tromey@redhat.com>
9728 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9730 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9731 Tom Tromey <tromey@redhat.com>
9733 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9734 make_symbol_overload_list_block with NULL BLOCK.
9735 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9737 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9739 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9740 * breakpoint.h (get_number_or_range): Declare.
9741 * printcmd.c (ALL_DISPLAYS): Declare.
9742 (delete_display): Reimplement taking a display pointer.
9743 (undisplay_command): Accept a range of displays to delete, using
9744 get_number_or_range.
9746 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9748 * c-valprint.c (c_val_print): Add embedded_offset to address
9749 for arrays of unspecified length.
9750 * p-valprint.c (pascal_val_print): Likewise.
9752 2011-02-18 Yao Qi <yao@codesourcery.com>
9754 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9755 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9756 (thumb_process_displaced_insn): New.
9757 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9758 call to arm_process_displaced_insn.
9759 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9761 2011-02-17 Tom Tromey <tromey@redhat.com>
9763 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9764 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9765 compile_dwarf_to_ax. No longer static. Call
9766 dwarf2_compile_cfa_to_ax.
9767 (locexpr_tracepoint_var_ref): Update.
9768 (loclist_tracepoint_var_ref): Update.
9769 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9770 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9771 argument; add 'gdbarch' and 'pc'.
9772 (dwarf2_compile_cfa_to_ax): New function.
9773 (dwarf2_frame_cache): Update.
9775 2011-02-17 Joel Brobecker <brobecker@adacore.com>
9777 * ada-lang.c (ada_type_of_array): Fix the size of the array
9778 in the case of an unconstrained packed array.
9780 2011-02-17 Yao Qi <yao@codesourcery.com>
9782 * common/Makefile.in: Add more targets for make.
9784 2011-02-16 Tom Tromey <tromey@redhat.com>
9786 * dwarf2loc.c (unimplemented): Fix typo.
9788 2011-02-16 Tom Tromey <tromey@redhat.com>
9790 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9791 (compile_dwarf_to_ax) <default>: Use unimplemented.
9792 <DW_OP_deref>: Update.
9793 (disassemble_dwarf_expression): Update.
9794 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9795 (decode_locdesc): Update.
9796 * dwarf2expr.h (dwarf_stack_op_name): Update.
9798 2011-02-16 Tom Tromey <tromey@redhat.com>
9800 * ax.h (struct aop_map) <name>: Now const.
9802 2011-02-16 Tom Tromey <tromey@redhat.com>
9804 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9807 2011-02-16 Yao Qi <yao@codesourcery.com>
9809 * infrun.c (get_displaced_step_closure_by_addr): New.
9810 * inferior.h: Declare it.
9811 * arm-tdep.c: (arm_pc_is_thumb): Call
9812 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9815 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9816 Jan Kratochvil <jan.kratochvil@redhat.com>
9819 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9821 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9822 Jan Kratochvil <jan.kratochvil@redhat.com>
9824 * value.c (value_contents_copy_raw): Extend describing comment.
9825 Assert that the destination contents we're overwriting are wholly
9827 (value_contents_copy): Extend describing comment.
9829 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9830 Jan Kratochvil <jan.kratochvil@redhat.com>
9832 * value.c (value_available_contents_eq): Remove redundant local
9833 variables. Fix available contents comparision.
9834 * value.h (value_available_contents_eq): Extend describing
9837 2011-02-16 Yao Qi <yao@codesourcery.com>
9839 * thread.c (info_threads_command): Add missing i18n markup and remove
9842 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9844 * breakpoint.c (longjmp_names): New variable.
9845 (struct breakpoint_objfile_data): New type.
9846 (breakpoint_objfile_key): New variable.
9847 (msym_not_found): New variable.
9848 (msym_not_found_p): New predicate.
9849 (get_breakpoint_objfile_data): New function.
9850 (create_overlay_event_breakpoint): Check per-objfile cache for
9852 (create_longjmp_master_breakpoint): Likewise.
9853 (create_std_terminate_master_breakpoint): Likewise.
9854 (create_exception_master_breakpoint): Likewise.
9855 (_initialize_breakpoint): Register per-objfile data key.
9857 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9859 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9861 (create_longjmp_master_breakpoint): Loop over longjmp names.
9862 (create_std_terminate_master_breakpoint): Const-propagate parameter
9864 (update_breakpoints_after_exec): Adjust.
9865 (breakpoint_re_set): Adjust.
9867 2011-02-15 Michael Snyder <msnyder@vmware.com>
9869 * thread.c (info_threads_command): Process arg as thread id,
9870 or list of thread ids.
9871 (thread_find_command): New command.
9872 (_initialize_thread): Document argument for info threads.
9873 Document 'thread find' command.
9874 * NEWS: Document new command "thread find".
9876 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9878 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9879 * aclocal.m4: Regenerated with aclocal-1.11.1.
9880 * common/configure: Regenerate with autoconf-2.64.
9882 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9884 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9885 bool data type to a size of one byte.
9887 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9888 Jan Kratochvil <jan.kratochvil@redhat.com>
9890 * target.c (memory_xfer_live_readonly_partial): Document where to
9891 look for interface description.
9893 2011-02-15 Yao Qi <yao@codesourcery.com>
9896 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9897 order to store PC value on stack instead of text section.
9899 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9901 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9902 the EFP register set size.
9903 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9904 data from the VMX register.
9905 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9906 and write data from/to the VMX register.
9908 2011-02-14 Michael Snyder <msnyder@vmware.com>
9910 * command.h (enum command_class): New class 'no_set_class', for
9911 "show" commands without a corresponding "set" command.
9912 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9913 * copying.c (_initialize_copying): Ditto for "show copying" and
9915 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9917 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9918 which there is no corresponding "set" command (eg. "show copying").
9920 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9921 Jan Kratochvil <jan.kratochvil@redhat.com>
9923 * exec.c (section_table_available_memory): Change `len' parameter
9925 * exec.h (section_table_available_memory): Ditto.
9926 * value.h (read_value_memory): Rename the `offset' parameter to
9929 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9930 Jan Kratochvil <jan.kratochvil@redhat.com>
9932 * memrange.c (compare_mem_ranges): Mention sort order in
9934 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9935 * tracepoint.c (traceframe_available_memory): Extend comment to
9936 mention what happens to RESULT when the target does not support
9939 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9940 Jan Kratochvil <jan.kratochvil@redhat.com>
9942 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9945 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9947 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9948 No longer handle NULL values.
9950 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9952 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9953 * value.c: Include "exceptions.h".
9954 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9956 * cp-abi.c: Include gdb_assert.h.
9957 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9958 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9960 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9961 parameters. No longer returns -1 on error.
9962 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9964 * cp-valprint.c: Include exceptions.h.
9965 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9966 the baseclass_offset. Handle unavailable base classes. Use
9967 val_print_invalid_address.
9968 * p-valprint.c: Include exceptions.h.
9969 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9970 when fetching the baseclass_offset. No longer expect
9971 baseclass_offset returning -1. Handle unavailable base classes.
9972 Use val_print_invalid_address.
9973 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9974 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9975 `embedded_offset' and `val' parameters. Adjust.
9976 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9977 parameter, and change its type to gdb_byte pointer. Add
9978 `embedded_offset' and `val' parameters. Adjust. No longer expect
9979 baseclass_offset returning -1.
9980 (value_dynamic_cast): Use value_contents_for_printing rather than
9981 value_contents. Adjust.
9982 (search_struct_field): No longer expect baseclass_offset returning
9984 (search_struct_method): If reading memory from the target is
9985 necessary, wrap it in a new value to pass to baseclass_offset. No
9986 longer expect baseclass_offset returning -1.
9987 (find_method_list): No longer expect baseclass_offset returning
9988 -1. Use value_contents_for_printing rather than value_contents.
9989 * valprint.c (val_print_invalid_address): New function.
9990 * valprint.h (val_print_invalid_address): Declare.
9991 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9992 and `val' parameters. No longer expect baseclass_offset returning
9994 * gnu-v2-abi.c: Include "exceptions.h".
9995 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9996 parameters. Handle unavailable memory. Recurse through
9997 gnuv2_baseclass_offset directly, rather than through
9998 baseclass_offset. No longer returns -1 on not found, instead
10000 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10001 `val' parameters. Adjust.
10003 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10005 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10006 almost but not quite adjacent.
10008 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10010 * value.h (value_entirely_available): Declare.
10011 * value.c (value_entirely_available): New function.
10012 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10013 real type if the pointer is unavailable.
10015 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10017 * valops.c (value_repeat): Use read_value_memory instead of
10020 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10022 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10023 * value.c (value_contents_copy_raw, value_contents_copy): New
10025 (value_primitive_field): Use value_contents_copy_raw instead of
10027 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10029 (value_array, value_slice): Ditto.
10030 * valarith.c (value_subscripted_rvalue): Use
10031 value_contents_copy_raw instead of memcpy.
10033 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10035 <unavailable> references.
10037 * valops.c (get_value_at): Use value_from_contents_and_address,
10038 avoiding read_memory.
10040 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10042 * c-valprint.c (c_val_print): Print a string with unavailable
10043 contents as an array.
10045 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10047 * value.h (unpack_bits_as_long): Delete declaration.
10048 (unpack_value_bits_as_long): Declare.
10049 (unpack_value_field_as_long): Declare.
10050 (value_field_bitfield): Declare.
10051 * value.c (unpack_bits_as_long): Rename to...
10052 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10053 value parameters. Return the extracted result in a new output
10054 parameter. If the value contents are unavailable, return false,
10055 otherwise return true.
10056 (unpack_value_bits_as_long): New.
10057 (unpack_field_as_long): Rename to...
10058 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10059 Add embedded_offset and value parameters. Return the extracted
10060 result in a new output parameter. If the value contents are
10061 unavailable, return false, otherwise return true.
10062 (unpack_value_field_as_long): New.
10063 (unpack_field_as_long_1): New.
10064 (unpack_field_as_long): Reimplement as wrapper around
10065 unpack_value_field_as_long_1.
10066 (value_field_bitfield): New function.
10067 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10068 unpack_value_bits_as_long. Mark the value as unavailable, if it
10070 * jv-valprint.c (java_print_value_fields): Use
10071 value_field_bitfield.
10072 * p-valprint.c (pascal_object_print_value_fields): Use
10073 value_field_bitfield.
10074 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10076 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10078 * value.c (get_internalvar_integer): Also return the int value of
10079 TYPE_CODE_INT INTERNALVAR_VALUE values.
10080 (set_internalvar): Don't special case TYPE_CODE_INT.
10082 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10084 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10085 INTERNALVAR_POINTER.
10087 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10088 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10089 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10091 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10093 * value.h (value_available_contents_eq): Declare.
10094 * value.c (find_first_range_overlap): New function.
10095 (value_available_contents_eq): New function.
10096 * valprint.c (val_print_array_elements): Use
10097 value_available_contents_eq.
10098 * ada-valprint.c (val_print_packed_array_elements): Use
10099 value_available_contents_eq.
10100 * jv-valprint.c (java_value_print): Use
10101 value_available_contents_eq.
10103 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10105 * target.c (target_read_live_memory): New function.
10106 (memory_xfer_live_readonly_partial): New.
10107 (memory_xfer_partial): If reading from a traceframe, fallback to
10108 reading unavailable read-only memory from read-only regions of
10109 live target memory.
10110 * tracepoint.c (disconnect_tracing): Adjust.
10111 (set_current_traceframe): New, factored out from
10112 set_traceframe_number.
10113 (set_traceframe_number): Reimplement to only change the traceframe
10114 number on the GDB side.
10115 (do_restore_current_traceframe_cleanup): Adjust.
10116 (make_cleanup_restore_traceframe_number): New.
10117 (cur_traceframe_number): New global.
10118 (tfile_open): Set cur_traceframe_number to no traceframe.
10119 (set_tfile_traceframe): New function.
10120 (tfile_trace_find): If looking up a traceframe using any method
10121 other than by number, make sure the current tfile traceframe
10122 matches gdb's current traceframe. Update the current tfile
10123 traceframe if the lookup succeeded.
10124 (tfile_fetch_registers, tfile_xfer_partial)
10125 (tfile_get_trace_state_variable_value): Make sure the remote
10126 traceframe matches gdb's current traceframe.
10127 * remote.c (remote_traceframe_number): New global.
10128 (remote_open_1): Set it to -1.
10129 (set_remote_traceframe): New function.
10130 (remote_fetch_registers, remote_store_registers)
10131 (remote_xfer_memory, remote_xfer_partial)
10132 (remote_get_trace_state_variable_value): Make sure the remote
10133 traceframe matches gdb's current traceframe.
10134 (remote_trace_find): If looking up a traceframe using any method
10135 other than by number, make sure the current remote traceframe
10136 matches gdb's current traceframe. Update the current remote
10137 traceframe if the lookup succeeded.
10138 * infrun.c (fetch_inferior_event): Adjust.
10139 * tracepoint.h (set_current_traceframe): Declare.
10140 (get_traceframe_number, set_traceframe_number): Add describing
10143 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10145 Mark pieces of values as unavailable if the corresponding memory
10148 * valops.c: Include tracepoint.h.
10149 (value_fetch_lazy): Use read_value_memory.
10150 (read_value_memory): New.
10151 * value.h (read_value_memory): Declare.
10152 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10153 * exec.c (section_table_available_memory): New function.
10154 * exec.h (section_table_available_memory): Declare.
10156 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10158 * Makefile.in (SFILES): Add memrange.c.
10159 (HFILES_NO_SRCDIR): Add memrange.h.
10160 (COMMON_OBS): Add memrange.o.
10161 * memrange.c: New file.
10162 * memrange.h: New file.
10163 * tracepoint.c: Include memrange.h.
10164 (struct mem_range): Delete.
10165 (mem_range_s): Delete.
10166 (traceframe_available_memory): New function.
10167 * tracepoint.h (traceframe_available_memory): Declare.
10169 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10171 * target.h (struct traceframe_info): Forward declare.
10172 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10173 (struct target_ops) <to_traceframe_info>: New field.
10174 (target_traceframe_info): New.
10175 * target.c (update_current_target): Inherit and default
10176 to_traceframe_info.
10177 * remote.c (PACKET_qXfer_traceframe_info): New.
10178 (remote_protocol_features): Register qXfer:traceframe-info:read.
10179 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10180 (remote_traceframe_info): New.
10181 (init_remote_ops): Install it.
10182 (_initialize_remote): Install "set/show remote traceframe-info"
10184 * tracepoint.h (parse_traceframe_info): Declare.
10185 * tracepoint.c (struct mem_range): New.
10186 (mem_range_s): New typedef.
10187 (struct traceframe_info): New.
10188 (traceframe_info): New global.
10189 (free_traceframe_info): New function.
10190 (clear_traceframe_info): New function.
10191 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10193 (build_traceframe_info): New function.
10194 (tfile_traceframe_info): New function.
10195 (init_tfile_ops): Install tfile_traceframe_info.
10196 (traceframe_info_start_memory, free_result): New functions.
10197 (memory_attributes, traceframe_info_elements): New globals.
10198 (parse_traceframe_info, get_traceframe_info): New functions.
10199 * features/traceframe-info.dtd: New file.
10200 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10202 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10204 Base support for <unavailable> value contents.
10206 * value.h (value_bytes_available): Declare.
10207 (mark_value_bytes_unavailable): Declare.
10208 * value.c (struct range): New struct.
10209 (range_s): New typedef.
10210 (ranges_overlap): New function.
10211 (range_lessthan): New function.
10212 (ranges_contain_p): New function.
10213 (struct value) <unavailable>: New field.
10214 (value_bytes_available): New function.
10215 (mark_value_bytes_unavailable): New function.
10216 (require_not_optimized_out): Constify parameter.
10217 (require_available): New function.
10218 (value_contents_all, value_contents): Require all bytes be
10220 (value_free): Free `unavailable'.
10221 (value_copy): Copy `unavailable'.
10222 * valprint.h (val_print_unavailable): Declare.
10223 * valprint.c (valprint_check_validity): Rename `offset' parameter
10224 to `embedded_offset'. If printing a scalar, check whether the
10225 value chunk is available.
10226 (val_print_unavailable): New.
10227 (val_print_scalar_formatted): Check whether the value is
10229 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10230 pretty-printing unavailable values.
10232 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10234 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10235 * c-typeprint.c (c_type_print_args): Update the function comment. New
10236 variable param_type, initialize it. Remove const/volatile qualifiers
10237 for language_cplus and !show_artificial. Use param_type.
10239 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10241 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10242 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10243 * symtab.h (struct symtab) <next>: Comment extension.
10245 2011-02-12 Yao Qi <yao@codesourcery.com>
10247 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10249 2011-02-11 Yao Qi <yao@codesourcery.com>
10251 * common/Makefile.in: Add copyright header.
10253 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10255 * infrun.c (proceed): Move switching out and in of tfind mode from
10257 (fetch_inferior_event): ... to here.
10259 2011-02-11 Yao Qi <yao@codesourcery.com>
10261 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10263 * configure.ac: Add common to sub dir.
10264 * configure: Regenerate.
10266 2011-02-11 Yao Qi <yao@codesourcery.com>
10270 * common/Makefile.in: New.
10271 * common/configure.ac: New.
10272 * common/aclocal.m4: New.
10273 * common/configure: Generate.
10275 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10277 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10278 side of the parenthesis.
10281 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10282 * vec.h (VEC_block_remove): Fix comment.
10284 2011-02-08 Michael Snyder <msnyder@vmware.com>
10286 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10288 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10290 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10291 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10294 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10297 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10299 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10300 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10302 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10304 * dwarf2read.c (read_subroutine_type): Set special calling
10305 convention flag for functions compiled by IBM XL C for OpenCL.
10306 * ppc-sysv-tdep.c: Include "dwarf2.h"
10307 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10308 calling convention.
10309 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10310 IBM OpenCL vector types calling convention.
10311 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10312 (ppc_sysv_abi_broken_return_value): Likewise.
10313 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10314 types calling convention.
10315 (ppc64_sysv_abi_return_value): Likewise.
10316 * spu-tdep.c: Include "dwarf2.h"
10317 (spu_return_value): Implement IBM OpenCL vector types calling
10320 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10322 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10323 correct ABI for AltiVec vector arguments.
10325 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10327 * valprint.c (val_print): Extend comment.
10328 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10329 interface explanation to val_print.
10330 (ada_val_print_array): Adjust comment to current interface.
10331 (print_field_values): Adjust comment to current interface.
10332 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10333 explanation to val_print.
10334 * f-valprint.c (f_val_print): Ditto.
10335 * jv-valprint.c (java_val_print): Ditto.
10336 * m2-valprint.c (m2_val_print): Ditto.
10337 * p-valprint.c (pascal_val_print): Ditto.
10339 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10341 * breakpoint.c (parse_breakpoint_sals): Fix description.
10343 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10344 Oguz Kayral <oguzkayral@gmail.com>
10346 * python/py-inferior.c (python_on_normal_stop): New function.
10347 (python_on_resume): New function.
10348 (python_inferior_exit): New function.
10349 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10350 inferior_exit observers.
10351 * python/py-evtregistry.c: New file.
10352 * python/py-threadevent.c : New file.
10353 * python/py-event.c: New file.
10354 * python/py-evts.c: New file.
10355 * python/py-continueevent.c: New file.
10356 * python/py-bpevent.c: New file.
10357 * python/py-signalevent.c: New file.
10358 * python/py-exetiedevent.c: New file.
10359 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10360 Move struct breakpoint_object from here...
10361 * python/python-internal.h: ... to here.
10362 * python/py-event.h: New file.
10363 * python/py-events.h: New file.
10364 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10365 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10366 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10367 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10368 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10369 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10370 Add build rules for all the above.
10372 2011-02-04 Tom Tromey <tromey@redhat.com>
10374 * dwarf2read.c (dwarf2_section_empty_p): New function.
10375 (dwarf2_read_section): Use dwarf2_section_empty_p.
10376 (dwarf2_section_size): New function.
10377 (dwarf2_get_section_info): Unconditionally read section.
10378 (dwarf2_read_index): Use dwarf2_section_empty_p.
10379 (partial_read_comp_unit_head): Use dwarf2_section_size.
10380 (dwarf2_symbol_mark_computed): Likewise.
10382 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10384 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10386 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10388 * mips-linux-tdep.c: Include xml-syscall.h.
10389 (mips_linux_get_syscall_number): New function.
10390 (mips_linux_init_abi): Add calls to
10391 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10392 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10393 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10394 * syscalls/mips-n32-linux.xml: New file.
10395 * syscalls/mips-n64-linux.xml: New file.
10396 * syscalls/mips-o32-linux.xml: New file.
10398 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10400 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10401 Complain about inverted range entries.
10402 (dwarf2_record_block_ranges): Likewise.
10404 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10407 * breakpoint.c (update_watchpoint): Fix name of the
10408 update_global_location_list function.
10409 (print_one_breakpoint): Fix typo.
10410 (_initialize_breakpoint): Remove extra space in hbreak help
10412 * breakpoint.h (struct bp_location) <length>: Fix field
10415 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10417 * regcache.c (registers_changed_ptid): Don't explictly always
10418 clear `current_regcache'. Only clear current_thread_ptid and
10419 current_thread_arch when PTID matches. Only reinit the frame
10420 cache if PTID matches the current inferior_ptid. Move alloca(0)
10422 (registers_changed): ... here.
10424 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10426 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10427 starts with __stack_chk_guard as stack guard symbol.
10429 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10431 * disasm.c (compare_lines): Handle the end of sequence markers
10432 within the line table to better support disassembling over
10433 compilation unit boundaries.
10435 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10437 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10438 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10439 implementation even if no symbols are available.
10440 (thumb_analyze_prologue): Update call to skip_prologue_function.
10441 (arm_analyze_prologue): Likewise.
10443 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10445 * arm-tdep.c: Include "observer.h".
10446 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10447 (arm_exidx_data_key): New static variable.
10448 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10449 (struct arm_exidx_data): Likewise.
10450 (arm_exidx_data_free): New function.
10451 (arm_compare_exidx_entries): Likewise.
10452 (arm_obj_section_from_vma): Likewise.
10453 (arm_exidx_new_objfile): Likewise.
10454 (arm_find_exidx_entry): Likewise.
10455 (arm_exidx_fill_cache): Likewise.
10456 (arm_exidx_unwind_sniffer): Likewise.
10457 (arm_exidx_unwind): New global variable.
10458 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10459 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10460 observer. Register arm_exidx_data_key as objfile data.
10462 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10464 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10465 due to accessing uninitialized variable. Fix indentation.
10467 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10469 * c-valprint.c (c_value_print): When doing virtual base pointer
10470 adjustment, create a new value with adjusted contents rather than
10471 changing the contents of the value being printed (and getting it
10474 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10476 * xml-support.c (xml_find_attribute): New.
10477 (xinclude_start_include): Use it.
10478 * xml-support.h (xml_find_attribute): Declare.
10479 * memory-map.c (memory_map_start_memory)
10480 (memory_map_start_property): Use xml_find_attribute.
10481 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10482 xml_find_attribute.
10483 * remote.c (start_thread): Use xml_find_attribute.
10484 * solib-target.c (library_list_start_segment)
10485 (library_list_start_section, library_list_start_library)
10486 (library_list_start_list): Use xml_find_attribute.
10487 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10488 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10489 (tdesc_start_field): Use xml_find_attribute.
10491 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10493 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10494 (BUILD_OCL_VTYPES): Update.
10496 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10498 * configure.ac: Work around non-GNU sed limitation when computing
10499 python version number.
10500 * configure: Regenerate.
10502 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10504 Fix debug printing of TYPE_INSTANCE.
10505 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10506 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10508 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10510 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10511 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10512 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10513 * ada-operator.inc: Rename the file to ...
10514 * ada-operator.def: ... here, wrap all the entries by macro OP.
10515 * expprint.c (op_name_standard): Remove all the entries. Include
10516 "std-operator.def" instead.
10517 * expression.h (enum exp_opcode): Include "std-operator.def" and
10518 "ada-operator.def". Move all the entries ...
10519 * std-operator.def: ... here, wrap all the entries by macro OP.
10521 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10523 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10524 * breakpoint.c (remove_jit_event_breakpoints): New function.
10525 * jit.c (jit_descriptor_addr): Delete.
10526 (registering_code): Delete.
10527 (clear_int): Delete.
10528 (jit_inferior_data): New variable.
10529 (struct jit_inferior_data): New type.
10530 (get_jit_inferior_data): New function.
10531 (jit_inferior_data_cleanup): New function.
10532 (jit_read_descriptor): Adjust.
10533 (jit_register_code): Adjust.
10534 (jit_breakpoint_re_set_internal): New function; move code here ...
10535 (jit_inferior_init): ... from here.
10536 (jit_breakpoint_re_set): Adjust.
10537 (jit_reset_inferior_data_and_breakpoints): New function.
10538 (jit_inferior_created_observer): Adjust.
10539 (jit_inferior_exit_hook): Adjust.
10540 (jit_executable_changed_observer): New function.
10541 (jit_event_handler): Adjust.
10542 (_initialize_jit): Adjust.
10544 2011-01-31 Michael Snyder <msnyder@vmware.com>
10546 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10549 2011-01-31 Tom Tromey <tromey@redhat.com>
10552 * python/python.c (execute_gdb_command): Call
10553 prevent_dont_repeat.
10554 * top.c (suppress_dont_repeat): New global.
10555 (dont_repeat): Use it.
10556 (prevent_dont_repeat): New function.
10557 * command.h (prevent_dont_repeat): Declare.
10559 2011-01-31 Tom Tromey <tromey@redhat.com>
10561 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10562 * python/py-breakpoint.c (bppy_set_silent): Use
10563 breakpoint_set_silent.
10564 (bppy_set_thread): Use breakpoint_set_thread.
10565 (bppy_set_task): Use breakpoint_set_task.
10566 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10567 (breakpoint_set_task): Declare.
10568 (make_breakpoint_silent): Remove.
10569 * breakpoint.c (breakpoint_set_silent): New function.
10570 (breakpoint_set_thread): Likewise.
10571 (breakpoint_set_task): Likewise.
10572 (make_breakpoint_silent): Remove.
10574 2011-01-31 Tom Tromey <tromey@redhat.com>
10576 * breakpoint.h (user_breakpoint_p): Declare.
10577 * breakpoint.c (user_breakpoint_p): New function.
10578 (breakpoint_1): Use it.
10579 (save_breakpoints): Likewise.
10581 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10583 * configure.ac: Add handling of Python distribution on Windows.
10584 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10585 sysconfig variables are not defined, then do not use them.
10586 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10587 instead. On Windows, return all paths using forward-slashes
10588 rather than backslashes.
10590 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10592 * configure.ac: Remove fallback behavior for building
10593 against Python. Remove tweaking of Python include path.
10594 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10595 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10596 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10597 Always restore CPPFLAGS and LIBS after linking test.
10598 * configure: Regenerated.
10599 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10600 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10601 * python/python-internal.h: Adjust includes of Python .h files.
10603 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10605 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10608 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10610 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10613 2011-01-31 Yao Qi <yao@codesourcery.com>
10615 * arm-linux-nat.c: Update calls to regcache_register_status
10616 instead of regcache_valid_p.
10617 * aix-thread.c: Likewise.
10618 * i386gnu-nat.c: Likewise.
10620 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10623 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10624 touching TYPE_FIELD_ARTIFICIAL.
10626 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10628 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10631 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10633 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10634 selected, don't try iterating over the traceframe's blocks.
10635 (tfile_has_stack): If there's no traceframe selected, then there's
10637 (tfile_has_registers): If there's no traceframe selected, then
10638 there's no registers.
10640 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10642 * target.c (memory_xfer_partial): No need to restore shadows if we
10643 haven't read anything.
10645 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10647 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10648 and val_print_scalar_formatted.
10650 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10652 * tracepoint.c (tfile_read): New.
10653 (tfile_open): Use it.
10654 (tfile_get_traceframe_address): Use it.
10655 (tfile_trace_find): Use it.
10656 (walk_blocks_callback_func): New typedef.
10657 (match_blocktype): New function.
10658 (traceframe_walk_blocks): New function.
10659 (traceframe_find_block_type): New function.
10660 (tfile_fetch_registers, tfile_xfer_partial)
10661 (tfile_get_trace_state_variable_value): Use
10662 traceframe_find_block_type and tfile_read.
10664 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10666 * remote-mips.c: Add internationalization mark ups. Remove
10667 trailing \n from already marked up strings.
10669 2011-01-26 Tom Tromey <tromey@redhat.com>
10671 * python/py-prettyprint.c (print_string_repr): Clear
10672 'addressprint' option when calling val_print_string.
10673 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10674 option when calling val_print_string.
10676 2011-01-26 Tom Tromey <tromey@redhat.com>
10678 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10680 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10682 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10683 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10684 (gdb_py_long_as_ulongest): New defines.
10685 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10686 (gdb_py_int_as_long): Declare.
10687 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10688 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10689 (valpy_long): Add comment.
10690 * python/py-utils.c (get_addr_from_python): Use
10691 gdb_py_long_as_ulongest. Handle overflow properly.
10692 (gdb_py_object_from_longest): New function.
10693 (gdb_py_object_from_ulongest): Likewise.
10694 (gdb_py_int_as_long): Likewise.
10695 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10696 * python/py-symtab.c (salpy_get_pc): Use
10697 gdb_py_long_from_ulongest.
10698 (salpy_get_line): Use PyInt_FromLong.
10699 * python/py-param.c (set_parameter_value): Use
10700 gdb_py_int_as_long.
10701 * python/py-lazy-string.c (stpy_get_address): Use
10702 gdb_py_long_from_ulongest.
10703 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10704 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10705 * python/py-breakpoint.c (bppy_set_thread): Use
10706 gdb_py_int_as_long.
10707 (bppy_set_task): Likewise.
10708 (bppy_set_ignore_count): Likewise.
10709 (bppy_set_hit_count): Likewise.
10710 * python/py-block.c (blpy_get_start): Use
10711 gdb_py_object_from_ulongest.
10712 (blpy_get_end): Likewise.
10713 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10715 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10718 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10719 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10720 equality test for objfile, initialize addr_low if needed.
10722 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10724 * tui/tui-regs.c (tui_register_format): Remove dead code.
10726 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10728 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10729 instead of print_scalar_formatted.
10730 (print_scalar_formatted): Don't handle 's' format strings here,
10731 and add an assertion that we never see such format here.
10732 * valprint.h (val_print_scalar_formatted): Declare.
10733 * valprint.c (val_print_scalar_formatted): New.
10734 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10735 instead of print_scalar_formatted.
10736 * jv-valprint.c (java_val_print): Ditto.
10737 * p-valprint.c (pascal_val_print): Ditto.
10738 * ada-valprint.c (ada_val_print_1): Ditto.
10739 * f-valprint.c (f_val_print): Ditto.
10740 * infcmd.c (registers_info): Ditto.
10741 * m2-valprint.c (m2_val_print): Ditto.
10743 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10745 * m2-valprint.c (print_unbounded_array): Pass
10746 value_contents_for_printing rather than value_contents, to
10747 m2_print_array_contents. Also pass in the value.
10749 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10751 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10752 (save_gdb_index_command): Switch to .gdb_index version 4.
10754 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10756 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10757 than frame_register, and always pass a valid value to val_print.
10759 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10761 Centralize printing "<optimized out>".
10763 * valprint.h (val_print_optimized_out): Declare.
10764 * cp-valprint.c (cp_print_value_fields): Use
10765 val_print_optimized_out.
10766 * jv-valprint.c (java_print_value_fields): Ditto.
10767 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10768 * printcmd.c (print_formatted): Ditto.
10769 * valprint.c (valprint_check_validity): Ditto.
10770 (value_check_printable): Ditto.
10771 (val_print_optimized_out): New.
10773 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10775 * infcmd.c (default_print_registers_info): Allocate values so to
10776 never pass a NULL value to val_print.
10778 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10780 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10781 boolean. Make sure to always pass a value that matches the
10782 contents buffer to callees. Preserve `address' for following
10784 * value.c (value_contents_for_printing_const): New.
10785 (value_address): Constify value argument.
10786 * value.h (value_contents_for_printing_const): Declare.
10787 (value_address): Constify value argument.
10789 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10791 * regcache.c (struct regcache_descr): Rename
10792 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10793 and sizeof_cooked_register_valid_p to
10794 sizeof_cooked_register_status.
10795 (init_regcache_descr): Adjust.
10796 (struct regcache): Rename register_valid_p field to
10798 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10799 (do_cooked_read): Adjust.
10800 (regcache_valid_p): Rename to ...
10801 (regcache_register_status): ... this. Adjust.
10802 (regcache_invalidate): Adjust.
10803 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10805 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10806 as unavailable, not valid.
10807 (regcache_dump): Adjust.
10808 * regcache.h (enum register_status): New.
10809 (regcache_register_status): Declare.
10810 (regcache_invalidate): Delete declaration.
10811 * corelow.c (get_core_registers): Adjust.
10812 * tracepoint.c (tfile_fetch_registers): Adjust.
10813 * trad-frame.c (REG_VALUE): Rename to ...
10814 (TF_REG_VALUE): ... this.
10815 (REG_UNKNOWN): Rename to ...
10816 (TF_REG_UNKNOWN): ... this.
10817 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10818 * mi/mi-main.c (register_changed_p): Adjust.
10820 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10822 * regcache.c (struct regcache_descr): Remove outdated comment.
10823 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10825 (regcache_xmalloc): Rename to ...
10826 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10827 Allocate the regcache type accordingly.
10828 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10829 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10830 cooked registers, not raw.
10831 (regcache_dup_no_passthrough): Delete.
10832 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10833 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10834 mention obsolete write_register_bytes.
10835 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10837 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10839 Stop remote_read_bytes from handling partial reads itself.
10841 * remote-fileio.c: Include target.h.
10842 (remote_fileio_write_bytes): Delete.
10843 (remote_fileio_func_open, remote_fileio_func_write)
10844 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10845 target_read_memory.
10846 (remote_fileio_func_stat): Use target_read_memory and
10847 target_write_memory.
10848 (remote_fileio_func_gettimeofday): Use target_write_memory.
10849 (remote_fileio_func_system): Use target_read_memory.
10850 * remote.c (remote_write_bytes): Make it static.
10851 (remote_read_bytes): Don't handle partial reads here.
10852 * remote.h (remote_read_bytes): Delete declaration.
10854 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10856 Simplify XML parsing a bit.
10858 * xml-support.h (gdb_xml_parse_quick): Declare.
10859 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10860 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10862 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10863 gdb_xml_create_parser_and_cleanup_1.
10864 (gdb_xml_parse_quick): New.
10865 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10866 * osdata.c (osdata_parse): Ditto.
10867 * remote.c (remote_threads_info): Ditto.
10868 * solib-target.c (solib_target_parse_libraries): Ditto.
10869 * xml-syscall.c (syscall_parse_xml): Ditto.
10870 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10872 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10874 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10875 with remote-mips.o added to gdb_target_obs.
10876 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10878 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10880 * ada-valprint.c (val_print_packed_array_elements): Pass the
10881 correct struct value to val_print.
10882 (ada_val_print_1): Ditto.
10884 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10886 Don't lose embedded_offset in printing routines throughout.
10888 * valprint.h (val_print_array_elements): Change prototype.
10889 * valprint.c (val_print_array_elements): Add `embedded_offset'
10890 parameter, and adjust to pass it down to val_print, while passing
10891 `valaddr' or `address' unmodified. Take embedded_offset into
10892 account when checking repetitions.
10893 * c-valprint.c (c_val_print): Pass embedded_offset to
10894 val_print_array_elements instead of adjusting `valaddr' and
10896 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10897 embedded_offset to val_print_array_elements instead of adjusting
10899 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10900 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10901 val_print_array_elements and pascal_object_print_value_fields
10902 instead of adjusting `valaddr'.
10903 (pascal_object_print_value_fields): Add `offset' parameter, and
10905 (pascal_object_print_value): Add `offset' parameter, and adjust to
10907 (pascal_object_print_static_field): Use
10908 value_contents_for_printing/value_embedded_offset, rather than
10910 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10911 parameter, and adjust to use it. Use
10912 value_contents_for_printing/value_embedded_offset, rather than
10914 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10915 (ada_val_print_array): Add `offset' parameter, and adjust to use
10917 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10918 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10919 Instead work with offsets. Use
10920 value_contents_for_printing/value_embedded_offset, rather than
10921 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10922 and use value_from_pointer to extract a target pointer, rather
10923 than value_from_longest.
10924 (print_variant_part): Add `offset' parameter. Replace
10925 `outer_valaddr' parameter by a new `outer_offset' parameter.
10926 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10927 (ada_value_print): Use
10928 value_contents_for_printing/value_embedded_offset, rather than
10930 (print_record): Add `offset' parameter, and adjust to pass it
10932 (print_field_values): Add `offset' parameter. Replace
10933 `outer_valaddr' parameter by a new `outer_offset' parameter.
10934 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10935 Use value_contents_for_printing/value_embedded_offset, rather than
10937 * d-valprint.c (dynamic_array_type): Use
10938 value_contents_for_printing/value_embedded_offset, rather than
10940 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10941 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10942 (java_print_value_fields): Take `offset' into account. Don't
10943 re-adjust `valaddr'. Instead pass down adjusted offsets.
10944 (java_val_print): Take `embedded_offset' into account. Pass it to
10945 java_print_value_fields.
10946 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10947 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10948 down adjusted offsets.
10949 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10950 (f_val_print): Take `embedded_offset' into account.
10952 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10954 * inflow.c: Include "gdbcmd.h".
10955 (interactive_mode): New static global, moved here from top.c.
10956 (show_interactive_mode): New function, moved here from top.c.
10957 use gdb_has_a_terminal instead of input_from_terminal_p to
10958 determine the current mode.
10959 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10961 (_initialize_inflow): Add the "set/show interactive-mode"
10962 commands. Moved here from top.c, after having adjusted slightly
10964 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10966 (input_from_terminal_p): Remove handling of "interactive-mode"
10967 setting, moved to infow.c.
10968 (init_main): Remove creation of the "set/show interactive-mode"
10969 commands, moved to inflow.c.
10971 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10973 * NEWS: Add entry for native ia64-hpux support.
10975 2011-01-19 Tom Tromey <tromey@redhat.com>
10978 * thread.c (free_thread): Free 'name'.
10979 (print_thread_info): Emit thread name. Change CLI output.
10980 (thread_name_command): New function.
10981 (do_captured_thread_select): Emit newline.
10982 (_initialize_thread): Register 'thread name' command.
10983 * target.h (struct target_ops) <to_thread_name>: New field.
10984 (target_thread_name): New macro.
10985 * target.c (update_current_target): Handle to_thread_name.
10986 * python/py-infthread.c (thpy_get_name): New function.
10987 (thpy_set_name): Likewise.
10988 (thread_object_getset): Add "name".
10989 * linux-nat.c (linux_nat_thread_name): New function.
10990 (linux_nat_add_target): Set to_thread_name.
10991 * gdbthread.h (struct thread_info) <name>: New field.
10993 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10995 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10996 (ada_val_print_1): Likewise.
10998 2011-01-18 Joel Brobecker <brobecker@adacore.com>
11000 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11001 upper limit address is not greater than the function end address
11002 when the upper limit could not be computed using the debugging
11005 2011-01-17 Tom Tromey <tromey@redhat.com>
11007 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11009 * utils.c: Include gdb_regex.h.
11010 (do_regfree_cleanup): New function.
11011 (make_regfree_cleanup): Likewise.
11012 (get_regcomp_error): Likewise.
11013 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11015 2011-01-17 Tom Tromey <tromey@redhat.com>
11017 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11018 re_compile_fastmap.
11020 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11022 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11023 for internal variables.
11024 (last_was_structop): New static variable.
11025 (COMPLETE): New token.
11026 (field_exp): New rule to group all '.' suffix handling.
11027 Add mark_struct_expression calls when approriate to be able
11028 to correctly find fields for completion.
11029 (yylex): Adapt to handle field completion and set INTVAR when
11032 2011-01-14 Yao Qi <yao@codesourcery.com>
11034 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11035 save_reggroup, restore_reggroup and all_reggroup.
11037 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11039 * ada-valprint. (ada_printchar): Use the correct type length
11040 in call to ada_emit_char.
11041 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11043 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11045 * solib-som.h (hpux_major_release): Declare variable here.
11046 * solib-som.c: Remove <sys/utsname.h> header.
11047 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11048 (hpux_major_release): Make global, change default value to
11049 DEFAULT_HPUX_MAJOR_RELEASE.
11050 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
11051 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11052 Add "solib-som.h" header.
11053 (set_hpux_major_release): New function.
11054 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11056 2011-01-14 Mike Frysinger <vapier@gentoo.org>
11058 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11060 2011-01-14 Joel Brobecker <brobecker@adacore.com>
11062 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11063 new-line at end of warning message.
11064 (ia64_hpux_store_register): Remove trailing new-line at end of
11066 * ia64-hpux-tdep.c: Rephrase comment.
11067 * solib-ia64-hpux.c (struct dld_info): Change type of field
11068 dld_flags from "long long" to ULONGEST.
11070 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11072 * target.h (deprecated_child_ops): Delete declaration.
11073 * target.c (deprecated_child_ops): Delete definition.
11075 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11077 * Makefile.in (hpux-thread.o): Delete rule.
11078 * configure.ac: Don't check for HPUX DCE threads support.
11079 * configure, config.in: Regenerate.
11080 * hppa-hpux-nat.c (child_suppress_run): Delete.
11081 (hppa_hpux_child_can_run): Delete.
11082 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11083 * hpux-thread.c: Delete.
11085 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11087 * hpux-thread.c (hpux_pid_to_str): Delete.
11089 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11091 * ada-valprint.c (ada_emit_char): Remove strange code.
11092 Check that c is <= UCHAR_MAX before passing it to isascii.
11093 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11095 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11097 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11098 to the case where instream is stdin.
11100 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11102 * ia64-tdep.h (struct regcache): Forward declare.
11103 (struct ia64_infcall_ops): New struct type.
11104 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11106 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11107 Renames ia64_find_global_pointer.
11108 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11109 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11110 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11112 (ia64_infcall_ops): New static global constant.
11113 (ia64_gdbarch_init): Set tdep->infcall_ops.
11114 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11115 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11116 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11117 (ia64_hpux_dummy_code): New static global constant.
11118 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11119 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11120 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11122 (ia64_hpux_infcall_ops): New static global constant.
11123 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11124 for inferior function calls to work properly on ia64-hpux.
11126 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11128 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11129 * ia64-tdep.h (struct frame_info): forward declaration.
11130 (struct gdbarch_tdep): Add field size_of_register_frame.
11131 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11132 to determine the size of the register frame.
11133 (ia64_size_of_register_frame): New function.
11134 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11135 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11136 (IA64_HPUX_UREG_REASON): New macro.
11137 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11139 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11140 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11141 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11144 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11146 Add support for ia64-hpux.
11147 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11148 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11150 * configure.host: Add handling for ia64-hpux hosts. Add associated
11152 * configure.tgt: Add handling for ia64-hpux targets.
11153 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11154 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11155 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11157 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11159 [ttrace] Compute thread list immediately after attach.
11160 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11162 (inf_ttrace_attach): Use it.
11164 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11166 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11167 if we could not determine the frame's function address. Instead,
11168 use the frame's PC, and then continue.
11170 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11172 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11173 not already defined.
11175 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11177 * ia64-tdep.c (ia64_struct_type_p): New function.
11178 (ia64_extract_return_value): Handle integral values that are
11179 less than 8 bytes long.
11180 (ia64_push_dummy_call): Likewise.
11182 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11184 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11185 floatformat_ia64_ext.
11186 (floatformat_ia64_ext_big): New static const.
11187 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11189 2011-01-12 Tom Tromey <tromey@redhat.com>
11191 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11193 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11194 (mi_cmd_thread_list_ids): Likewise.
11195 (mi_cmd_data_list_changed_registers): Likewise.
11196 (mi_cmd_data_list_register_values): Likewise.
11197 (mi_cmd_data_write_register_values): Likewise.
11198 (mi_cmd_data_evaluate_expression): Likewise.
11199 (mi_cmd_data_read_memory): Likewise.
11200 (mi_cmd_data_read_memory_bytes): Likewise.
11201 (mi_cmd_data_write_memory): Likewise.
11202 (mi_cmd_enable_timings): Likewise.
11203 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11204 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11205 (mi_cmd_var_delete): Likewise.
11206 (mi_cmd_var_set_format): Likewise.
11207 (mi_cmd_var_show_format): Likewise.
11208 (mi_cmd_var_info_num_children): Likewise.
11209 (mi_cmd_var_list_children): Likewise.
11210 (mi_cmd_var_info_type): Likewise.
11211 (mi_cmd_var_info_expression): Likewise.
11212 (mi_cmd_var_show_attributes): Likewise.
11213 (mi_cmd_var_assign): Likewise.
11214 (mi_cmd_var_update): Likewise.
11215 (mi_cmd_enable_pretty_printing): Likewise.
11216 (mi_cmd_var_set_update_range): Likewise.
11217 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11219 (mi_cmd_target_file_put): Likewise.
11220 (mi_cmd_target_file_delete): Likewise.
11221 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11223 (mi_cmd_stack_info_depth): Likewise.
11224 (mi_cmd_stack_list_locals): Likewise.
11225 (mi_cmd_stack_list_args): Likewise.
11226 (mi_cmd_stack_select_frame): Likewise.
11227 (mi_cmd_stack_select_frame): Likewise.
11228 (mi_cmd_stack_info_frame): Likewise.
11229 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11231 (mi_cmd_file_list_exec_source_files): Likewise.
11232 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11233 (mi_cmd_env_cd): Likewise.
11234 (mi_cmd_env_path): Likewise.
11235 (mi_cmd_env_dir): Likewise.
11236 (mi_cmd_inferior_tty_show): Likewise.
11237 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11238 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11239 (mi_cmd_break_watch): Likewise.
11241 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11243 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11244 (ppc_linux_insert_hw_breakpoint): Likewise.
11245 (ppc_linux_remove_hw_breakpoint): Likewise.
11246 (ppc_linux_insert_watchpoint): Likewise.
11248 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11249 Jan Kratochvil <jan.kratochvil@redhat.com>
11251 PR fortran/11104 and DWARF unbound arrays detection.
11252 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11253 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11254 unspecified upper bound.
11255 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11256 variables array_size_array, tmp_type and offset_item. New variable
11257 array. Remove call to f77_get_upperbound. New variables array_type
11258 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11259 the final call to deprecated_set_value_type.
11261 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11263 Make value allocations more lazy.
11264 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11265 instead of allocate_value and set_value_lazy when possible.
11266 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11267 instead of allocate_value and set_value_lazy.
11268 * findvar.c (value_of_register_lazy): Likewise.
11269 (read_var_value): Remove V preallocation, call just check_typedef in
11270 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11271 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11272 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11273 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11274 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11275 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11276 the end, remove set_value_lazy there.
11277 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11278 instead of allocate_value and set_value_lazy when possible.
11279 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11280 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11281 of allocate_value and set_value_lazy.
11282 (value_from_contents_and_address): Use allocate_value_lazy instead of
11283 allocate_value and set_value_lazy when possible.
11285 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11287 * disasm.c (dump_insns): Support dumping opcodes for MI.
11288 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11289 dumping of instruction opcodes.
11291 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11293 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11296 2011-01-11 Tom Tromey <tromey@redhat.com>
11298 * thread.c (do_captured_thread_select): Emit newline before
11301 2011-01-11 Michael Snyder <msnyder@vmware.com>
11303 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11304 * score-tdep.c: Ditto.
11305 * score-tdep.h: Ditto.
11306 * ser-base.c: Ditto.
11307 * ser-go32.c: Ditto.
11310 * ser-mingw.c: Ditto.
11311 * ser-pipe.c: Ditto.
11312 * ser-tcp.c: Ditto.
11313 * ser-unix.c: Ditto.
11314 * sh64-tdep.c: Ditto.
11315 * shnbsd-nat.c: Ditto.
11316 * sh-tdep.c: Ditto.
11317 * sh-tdep.h: Ditto.
11319 * solib-darwin.c: Ditto.
11320 * solib-frv.c: Ditto.
11322 * solib-irix.c: Ditto.
11323 * solib-osf.c: Ditto.
11324 * solib-pa64.c: Ditto.
11325 * solib-som.c: Ditto.
11326 * solib-spu.c: Ditto.
11327 * solib-sunos.c: Ditto.
11328 * solib-svr4.c: Ditto.
11330 * sol-thread.c: Ditto.
11331 * somread.c: Ditto.
11334 * sparc64-linux-tdep.c: Ditto.
11335 * sparc64-tdep.c: Ditto.
11336 * sparc-linux-nat.c: Ditto.
11337 * sparc-linux-tdep.c: Ditto.
11338 * sparc-sol2-nat.c: Ditto.
11339 * sparc-sol2-tdep.c: Ditto.
11340 * sparc-tdep.c: Ditto.
11341 * sparc-tdep.h: Ditto.
11342 * spu-tdep.c: Ditto.
11343 * stabsread.c: Ditto.
11344 * stabsread.h: Ditto.
11346 * symfile.c: Ditto.
11347 * symfile.h: Ditto.
11348 * symmisc.c: Ditto.
11352 * target-descriptions.c: Ditto.
11353 * target-descriptions.h: Ditto.
11355 * target-memory.c: Ditto.
11356 * terminal.h: Ditto.
11359 * tracepoint.c: Ditto.
11360 * tracepoint.h: Ditto.
11361 * trad-frame.h: Ditto.
11362 * typeprint.c: Ditto.
11364 2011-01-11 Michael Snyder <msnyder@vmware.com>
11366 * ui-file.c: Comment cleanup, mostly periods and spaces.
11367 * ui-file.h: Ditto.
11371 * v850-tdep.c: Ditto.
11372 * valarith.c: Ditto.
11374 * valprint.c: Ditto.
11375 * valprint.h: Ditto.
11380 * vax-tdep.c: Ditto.
11383 * version.h: Ditto.
11384 * windows-nat.c: Ditto.
11385 * windows-tdep.c: Ditto.
11386 * xcoffread.c: Ditto.
11387 * xcoffsolib.c: Ditto.
11388 * xml-support.c: Ditto.
11389 * xstormy16-tdep.c: Ditto.
11390 * xtensa-tdep.c: Ditto.
11391 * xtensa-tdep.h: Ditto.
11393 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11395 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11396 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11398 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11399 Thiago Jung Bauermann <bauerman@br.ibm.com>
11401 Implement support for PowerPC BookE ranged watchpoints.
11403 (struct breakpoint_ops) <resources_needed>: New method.
11404 Initialize to NULL in all existing breakpoint_ops instances.
11405 (struct breakpoint) <exact>: New field.
11406 (target_exact_watchpoints): Declare external global.
11407 * breakpoint.c (target_exact_watchpoints): New global flag.
11408 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11409 b->enable_state to bp_enabled before calling
11410 hw_watchpoint_used_count.
11411 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11412 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11414 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11415 if the watchpoint is exact.
11416 (resources_needed_watchpoint): New function.
11417 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11418 (watch_command_1): Set b->exact if the user asked for an exact
11419 watchpoint and one can be set.
11420 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11421 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11422 the user asks for an exact watchpoint and one can be set. Return
11423 number of needed debug registers to watch the expression.
11424 * gdbtypes.c (is_scalar_type): New function, based on
11425 valprint.c:scalar_type_p.
11426 (is_scalar_type_recursive): New function.
11427 * gdbtypes.h (is_scalar_type_recursive): Declare.
11428 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11429 handle regions when ranged watchpoints are available.
11430 (create_watchpoint_request): New function.
11431 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11432 create_watchpoint_request.
11433 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11434 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11435 `set powerpc' and `show powerpc' commands.
11436 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11437 Mention documentation comment in the target macro.
11438 (target_region_ok_for_hw_watchpoint): Document return value.
11440 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11442 * breakpoint.c (update_watchpoint): Decide on using a software or
11443 hardware watchpoint after the bp_locations are created.
11445 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11447 Convert hardware watchpoints to use breakpoint_ops.
11448 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11449 <insert_location>: ... this. Return int instead of void.
11450 Accept pointer to struct bp_location instead of pointer to
11451 struct breakpoint. Adapt all implementations.
11452 (breakpoint_ops) <remove>: Rename to...
11453 <remove_location>: ... this. Accept pointer to struct bp_location
11454 instead of pointer to struct breakpoint. Adapt all implementations.
11455 * breakpoint.c (insert_catchpoint): Delete function.
11456 (insert_bp_location): Call the watchpoint or catchpoint's
11457 breakpoint_ops.insert method.
11458 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11459 breakpoint_ops.remove method.
11460 (insert_watchpoint, remove_watchpoint): New functions.
11461 (watchpoint_breakpoint_ops): New structure.
11462 (watch_command_1): Initialize the OPS field.
11463 * inf-child.c (inf_child_insert_fork_catchpoint)
11464 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11465 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11466 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11468 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11469 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11470 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11471 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11472 * target.c (update_current_target): Change default implementation of
11473 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11474 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11475 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11476 to_set_syscall_catchpoint to return_one.
11477 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11478 (debug_to_insert_exec_catchpoint): Report return value.
11479 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11480 (to_insert_exec_catchpoint): Change declaration to return int instead
11483 2011-01-11 Michael Snyder <msnyder@vmware.com>
11485 * arm-tdep.c: Internationalization.
11487 * charset.c: Ditto.
11488 * fork-child.c: Ditto.
11489 * nto-procfs.c: Ditto.
11490 * ppc-sysv-tdep.c: Ditto.
11492 * remote-mips.c: Ditto.
11494 * rs6000-nat.c: Ditto.
11495 * rs6000-tdep.c: Ditto.
11499 * xml-support.c: Ditto.
11500 * mi/mi-cmd-break.c: Ditto.
11501 * mi/mi-cmd-var.c: Ditto.
11502 * mi/mi-interp.c: Ditto.
11503 * mi/mi-main.c: Ditto.
11505 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11507 * remote-sim.c (gdbsim_store_register): Update API to
11508 sim_store_register to check more error conditions.
11510 2011-01-10 Michael Snyder <msnyder@vmware.com>
11512 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11513 * nto-tdep.c: Ditto.
11514 * nto-tdep.h: Ditto.
11515 * objc-exp.y: Ditto.
11516 * objc-lang.c: Ditto.
11517 * objfiles.c: Ditto.
11518 * objfiles.h: Ditto.
11519 * observer.c: Ditto.
11520 * opencl-lang.c: Ditto.
11523 * parser-defs.h: Ditto.
11526 * posix-hdep.c: Ditto.
11527 * ppcbug-rom.c: Ditto.
11528 * ppc-linux-nat.c: Ditto.
11529 * ppc-linux-tdep.c: Ditto.
11530 * ppc-linux-tdep.h: Ditto.
11531 * ppcnbsd-tdep.c: Ditto.
11532 * ppcobsd-tdep.c: Ditto.
11533 * ppcobsd-tdep.h: Ditto.
11534 * ppc-sysv-tdep.c: Ditto.
11535 * ppc-tdep.h: Ditto.
11536 * printcmd.c: Ditto.
11537 * proc-abi.c: Ditto.
11538 * proc-flags.c: Ditto.
11540 * proc-utils.h: Ditto.
11541 * progspace.h: Ditto.
11542 * prologue-value.c: Ditto.
11543 * prologue-value.h: Ditto.
11544 * psympriv.h: Ditto.
11545 * psymtab.c: Ditto.
11546 * p-typeprint.c: Ditto.
11547 * p-valprint.c: Ditto.
11548 * ravenscar-sparc-thread.c: Ditto.
11549 * ravenscar-thread.c: Ditto.
11550 * ravenscar-thread.h: Ditto.
11552 * regcache.c: Ditto.
11553 * regcache.h: Ditto.
11555 * remote-fileio.c: Ditto.
11556 * remote-fileio.h: Ditto.
11558 * remote-m32r-sdi.c: Ditto.
11559 * remote-mips.c: Ditto.
11560 * remote-sim.c: Ditto.
11561 * rs6000-aix-tdep.c: Ditto.
11562 * rs6000-nat.c: Ditto.
11563 * rs6000-tdep.c: Ditto.
11565 2011-01-10 Michael Snyder <msnyder@vmware.com>
11567 * charset.c (validate): Internationalization.
11568 * coffread.c (read_one_sym): Ditto.
11569 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11570 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11571 * inflow.c (new_tty): Ditto.
11572 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11573 * m32c-tdep.c (m32c_return_value): Ditto.
11574 * mep-tdep.c (mep_store_return_value): Ditto.
11575 * score-tdep.c (score7_fetch_insn): Ditto.
11576 * ser-mingw.c (pipe_windows_open): Ditto.
11577 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11578 * spu-tdep.c (spu_register_type): Ditto.
11579 * tracepoint.c (trace_find_command): Ditto.
11580 * valarith.c (value_pos): Ditto.
11582 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11584 * ada-valprint.c (printstr): Minor comment reformatting.
11586 2011-01-08 Michael Snyder <msnyder@vmware.com>
11588 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11591 2011-01-08 Michael Snyder <msnyder@vmware.com>
11593 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11594 * hppa-hpux-tdep.c: Ditto.
11595 * hppa-linux-nat.c: Ditto.
11596 * hppa-linux-tdep.c: Ditto.
11597 * hppanbsd-tdep.c: Ditto.
11598 * hppa-tdep.c: Ditto.
11599 * hppa-tdep.h: Ditto.
11600 * hpux-thread.c: Ditto.
11601 * i386-cygwin-tdep.c: Ditto.
11602 * i386-darwin-nat.c: Ditto.
11603 * i386gnu-nat.c: Ditto.
11604 * i386-linux-nat.c: Ditto.
11605 * i386-linux-tdep.c: Ditto.
11606 * i386-nat.c: Ditto.
11607 * i386-nat.h: Ditto.
11608 * i386nbsd-tdep.c: Ditto.
11609 * i386-sol2-nat.c: Ditto.
11610 * i386-stub.c: Ditto.
11611 * i386-tdep.c: Ditto.
11612 * i386-tdep.h: Ditto.
11613 * i387-tdep.c: Ditto.
11614 * ia64-linux-nat.c: Ditto.
11615 * ia64-linux-tdep.c: Ditto.
11616 * ia64-tdep.c: Ditto.
11617 * infcall.c: Ditto.
11618 * infcall.h: Ditto.
11620 * inferior.c: Ditto.
11621 * inferior.h: Ditto.
11622 * infloop.c: Ditto.
11625 * interps.c: Ditto.
11626 * interps.h: Ditto.
11627 * iq2000-tdep.c: Ditto.
11628 * irix5-nat.c: Ditto.
11632 * jv-lang.c: Ditto.
11633 * jv-lang.h: Ditto.
11634 * jv-typeprint.c: Ditto.
11635 * jv-valprint.c: Ditto.
11636 * language.c: Ditto.
11637 * language.h: Ditto.
11638 * linespec.c: Ditto.
11639 * linux-fork.c: Ditto.
11640 * linux-nat.c: Ditto.
11641 * linux-thread-db.c: Ditto.
11642 * lm32-tdep.c: Ditto.
11644 2011-01-08 Michael Snyder <msnyder@vmware.com>
11646 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11647 * m2-lang.c: Ditto.
11648 * m2-typeprint.c: Ditto.
11649 * m2-valprint.c: Ditto.
11650 * m32c-tdep.c: Ditto.
11651 * m32r-linux-nat.c: Ditto.
11652 * m32r-rom.c: Ditto.
11653 * m32r-tdep.c: Ditto.
11654 * m32r-tdep.h: Ditto.
11655 * m68hc11-tdep.c: Ditto.
11656 * m58klinux-nat.c: Ditto.
11657 * m68k-tdep.c: Ditto.
11658 * m88k-tdep.c: Ditto.
11659 * m88k-tdep.h: Ditto.
11660 * machoread.c: Ditto.
11661 * macrocmd.c: Ditto.
11662 * macroexp.c: Ditto.
11663 * macrotab.c: Ditto.
11666 * mdebugread.c: Ditto.
11667 * mdebugread.h: Ditto.
11668 * memattr.c: Ditto.
11669 * memattr.h: Ditto.
11670 * memory-map.h: Ditto.
11671 * mep-tdep.c: Ditto.
11672 * microblaze-rom.c: Ditto.
11673 * microblaze-tdep.c: Ditto.
11674 * minsyms.c: Ditto.
11675 * mips-irix-tdep.c: Ditto.
11676 * mips-linux-nat.c: Ditto.
11677 * mips-linux-tdep.c: Ditto.
11678 * mips-linux-tdep.h: Ditto.
11679 * mipsnbsd-nat.c: Ditto.
11680 * mipsnbsd-tdep.c: Ditto.
11681 * mipsread.c: Ditto.
11682 * mips-tdep.c: Ditto.
11683 * mips-tdep.h: Ditto.
11684 * mn10300-linux-tdep.c: Ditto.
11685 * mn10300-tdep.c: Ditto.
11686 * mn10300-tdep.h: Ditto.
11687 * monitor.c: Ditto.
11688 * monitor.h: Ditto.
11689 * moxie-tdep.c: Ditto.
11690 * moxie-tdep.h: Ditto.
11691 * mt-tdep.c: Ditto.
11693 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11695 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11697 2011-01-08 Robert Millan <rmh@gnu.org>
11699 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11701 2011-01-07 Michael Snyder <msnyder@vmware.com>
11703 * charset.c (_initialize_charset): Fix typo in string.
11705 2011-01-07 Michael Snyder <msnyder@vmware.com>
11707 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11709 * tui/tui-layout.c (tui_set_layout_for_display_command):
11710 Split line so that operator goes to beginning of line.
11711 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11712 assignment out of if statement.
11714 2011-01-07 Michael Snyder <msnyder@vmware.com>
11716 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11717 * ada-lang.h: Ditto.
11718 * ada-tasks.c: Ditto.
11719 * ada-valprint.c: Ditto.
11720 * aix-threads.c: Ditto.
11721 * alpha-linux-nat.c: Ditto.
11722 * alpha-linux-tdep.c: Ditto.
11723 * alpha-mdebug-tdep.c: Ditto.
11724 * alpha-nat.c: Ditto.
11725 * alpha-osf1-tdep.c: Ditto.
11726 * alpha-tdep.c: Ditto.
11727 * alphabsd-nat.c: Ditto.
11728 * alphabsd-tdep.c: Ditto.
11729 * amd64-darwin-tdep.c: Ditto.
11730 * amd64-linux-nat.c: Ditto.
11731 * amd64-linux-tdep.c: Ditto.
11732 * amd64-sol2-tdep.c: Ditto.
11733 * amd64-tdep.c: Ditto.
11734 * amd64-fbsd-tdep.c: Ditto.
11735 * amd64-nbsd-tdep.c: Ditto.
11736 * amd64-obsd-tdep.c: Ditto.
11737 * amd64-linux-nat.c: Ditto.
11738 * amd64-linux-tdep.c: Ditto.
11739 * arm-tdep.c: Ditto.
11740 * arm-tdep.h: Ditto.
11741 * armnbsd-nat.c: Ditto.
11742 * avr-tdep.c: Ditto.
11743 * bfin-tdep.c: Ditto.
11744 * bsd-kvm.c: Ditto.
11745 * c-typeprintc: Ditto.
11746 * c-valprint.c: Ditto.
11747 * coff-pe-read.h: Ditto.
11748 * coffreead.c: Ditto.
11749 * cris-tdep.c: Ditto.
11751 * darwin-nat-info.c: Ditto.
11752 * darwin-nat.c: Ditto.
11753 * dbug-rom.c: Ditto.
11754 * dbxread.c: Ditto.
11757 * dec-thread.c: Ditto.
11759 * demangle.c: Ditto.
11760 * dicos-tdep.c: Ditto.
11761 * dictionary.c: Ditto.
11762 * dictionary.h: Ditto.
11763 * dink32-rom.c: Ditto.
11765 * doublest.c: Ditto.
11767 * dummy-frame.c: Ditto.
11768 * dwarf2-frame.c: Ditto.
11769 * dwarf2expr.c: Ditto.
11770 * dwarf2loc.c: Ditto.
11771 * dwarf2read.c: Ditto.
11772 * elfread.c: Ditto.
11773 * environ.c: Ditto.
11775 * event-top.h: Ditto.
11776 * exceptions.c: Ditto.
11777 * exceptions.h: Ditto.
11779 * expprint.c: Ditto.
11780 * expression.h: Ditto.
11784 * f-typeprint.c: Ditto.
11785 * f-valprint.c: Ditto.
11786 * fbsd-nat.c: Ditto.
11787 * findvar.c: Ditto.
11788 * fork-child.c: Ditto.
11791 * frv-linux-tdep.c: Ditto.
11792 * frv-tdep.c: Ditto.
11794 * gdb-stabs.h: Ditto.
11795 * gdb_assert.h: Ditto.
11796 * gdb_string.h: Ditto.
11797 * gdb_thread_db.h: Ditto.
11798 * gdb_wait.h: Ditto.
11799 * gdbarch.sh: Ditto.
11800 * gdbcore.h: Ditto.
11801 * gdbthread.h: Ditto.
11802 * gdbtypes.c: Ditto.
11803 * gdbtypes.h: Ditto.
11804 * gnu-nat.c: Ditto.
11805 * gnu-nat.h: Ditto.
11806 * gnu-v2-abi.c: Ditto.
11807 * gnu-v3-abi.c: Ditto.
11808 * go32-nat.c: Ditto.
11809 * gdbarch.c: Regenerate.
11810 * gdbarch.h: Regenerate.
11812 2011-01-07 Michael Snyder <msnyder@vmware.com>
11814 * ax-gdb.c: Adjust some long output strings.
11815 * breakpoint.c: Ditto.
11816 * charset.c: Ditto.
11818 * infcall.c: Ditto.
11820 * linux-nat.c: Ditto.
11821 * solib-pa64.c: Ditto.
11822 * solib-som.c: Ditto.
11824 2011-01-06 Tom Tromey <tromey@redhat.com>
11828 * python/python.c (GdbMethods): Add "newest_frame" method.
11829 * python/python-internal.h (gdbpy_newest_frame): Declare.
11830 * python/py-frame.c (gdbpy_newest_frame): New function.
11832 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11834 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11835 * jit.c (jit_debug): New variable.
11836 (show_jit_debug): New function.
11837 (struct target_buffer): Use ULONGEST.
11838 (bfd_open_from_target_memory): Likewise.
11839 (jit_register_code, jit_inferior_init): Add debug output.
11840 (_initialize_jit): Register "debug jit" command.
11842 2011-01-06 Tom Tromey <tromey@redhat.com>
11844 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11845 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11848 2011-01-06 Tom Tromey <tromey@redhat.com>
11850 * python/py-frame.c (frapy_block): Use get_frame_block.
11852 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11854 Do not stop on SIGPRIO signals by default
11855 * infrun.c (_initialize_infrun): Unset signal_stop and
11856 signal_print for TARGET_SIGNAL_PRIO.
11858 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11860 * ada-tasks.c: Fix style violation in comment.
11862 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11864 * linespec.c (decode_compound, find_method): Remove trailing \n
11865 at end of error string.
11866 * solib-irix.c (irix_current_sos): Likewise.
11867 * varobj.c (uninstall_variable): Likewise.
11869 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11871 * copyright.py: New script.
11872 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11873 Launch emacs without exec'ing. Call copyright.py afterwards.
11875 2011-01-05 Michael Snyder <msnyder@vmware.com>
11877 * addrmap.c: Shorten lines of >= 80 columns.
11878 * arch-utils.c: Ditto.
11879 * arch-utils.h: Ditto.
11881 * ax-general.c: Ditto.
11883 * blockframe.c: Ditto.
11884 * breakpoint.c: Ditto.
11885 * buildsym.c: Ditto.
11887 * c-typeprint.c: Ditto.
11888 * charset.c: Ditto.
11889 * coffread.c: Ditto.
11890 * command.h: Ditto.
11891 * corelow.c: Ditto.
11893 * cp-namespace.c: Ditto.
11894 * cp-support.c: Ditto.
11895 * dbug-rom.c: Ditto.
11896 * dbxread.c: Ditto.
11900 * dictionary.c: Ditto.
11902 * doublest.c: Ditto.
11903 * dwarf2-frame.c: Ditto.
11904 * dwarf2expr.c: Ditto.
11905 * dwarf2loc.c: Ditto.
11906 * dwarf2read.c: Ditto.
11907 * elfread.c: Ditto.
11909 * event-loop.c: Ditto.
11910 * event-loop.h: Ditto.
11911 * exceptions.h: Ditto.
11913 * expprint.c: Ditto.
11914 * expression.h: Ditto.
11916 * f-valprint.c: Ditto.
11917 * findcmd.c: Ditto.
11918 * frame-base.c: Ditto.
11919 * frame-unwind.c: Ditto.
11920 * frame-unwind.h: Ditto.
11924 * gdb-stabs.h: Ditto.
11925 * gdb_assert.h: Ditto.
11926 * gdb_dirent.h: Ditto.
11927 * gdb_obstack.h: Ditto.
11928 * gdbcore.h: Ditto.
11929 * gdbtypes.c: Ditto.
11930 * gdbtypes.h: Ditto.
11931 * inf-ttrace.c: Ditto.
11932 * infcall.c: Ditto.
11936 * inline-frame.h: Ditto.
11937 * language.c: Ditto.
11938 * language.h: Ditto.
11939 * libunwind-frame.c: Ditto.
11940 * libunwind-frame.h: Ditto.
11941 * linespec.c: Ditto.
11942 * linux-nat.c: Ditto.
11943 * linux-nat.h: Ditto.
11944 * linux-thread-db.c: Ditto.
11945 * machoread.c: Ditto.
11946 * macroexp.c: Ditto.
11947 * macrotab.c: Ditto.
11950 * mdebugread.c: Ditto.
11951 * memattr.c: Ditto.
11952 * minsyms.c: Ditto.
11953 * monitor.c: Ditto.
11954 * monitor.h: Ditto.
11955 * objfiles.c: Ditto.
11956 * objfiles.h: Ditto.
11958 * p-typeprint.c: Ditto.
11959 * p-valprint.c: Ditto.
11961 * printcmd.c: Ditto.
11962 * proc-events.c: Ditto.
11964 * progspace.c: Ditto.
11965 * progspace.h: Ditto.
11966 * psympriv.h: Ditto.
11967 * psymtab.c: Ditto.
11969 * regcache.c: Ditto.
11970 * regcache.h: Ditto.
11971 * remote-fileio.c: Ditto.
11973 * ser-mingw.c: Ditto.
11974 * ser-tcp.c: Ditto.
11975 * ser-unix.c: Ditto.
11978 * solib-frv.c: Ditto.
11979 * solib-irix.c: Ditto.
11980 * solib-osf.c: Ditto.
11981 * solib-pa64.c: Ditto.
11982 * solib-som.c: Ditto.
11983 * solib-sunos.c: Ditto.
11984 * solib-svr4.c: Ditto.
11985 * solib-target.c: Ditto.
11987 * somread.c: Ditto.
11989 * stabsread.c: Ditto.
11990 * stabsread.c: Ditto.
11993 * symfile-mem.c: Ditto.
11994 * symfile.c: Ditto.
11995 * symfile.h: Ditto.
11996 * symmisc.c: Ditto.
11999 * target-descriptions.c: Ditto.
12000 * target-memory.c: Ditto.
12003 * terminal.h: Ditto.
12006 * tracepoint.c: Ditto.
12007 * tracepoint.h: Ditto.
12008 * ui-file.c: Ditto.
12009 * ui-file.h: Ditto.
12011 * user-regs.c: Ditto.
12012 * user-regs.h: Ditto.
12014 * valarith.c: Ditto.
12016 * valprint.c: Ditto.
12017 * valprint.h: Ditto.
12022 * xcoffread.c: Ditto.
12023 * xcoffsolib.c: Ditto.
12024 * xcoffsolib.h: Ditto.
12025 * xml-syscall.c: Ditto.
12026 * xml-tdesc.c: Ditto.
12028 2011-01-05 Michael Snyder <msnyder@vmware.com>
12030 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12031 * cli/cli-decode.c: Ditto.
12032 * cli/cli-dump.c: Ditto.
12033 * cli/cli-logging.c: Ditto.
12034 * cli/cli-script.c: Ditto.
12035 * cli/cli-setshow.c: Ditto.
12036 * common/signals.c: Ditto.
12037 * mi/mi-cmd-break.c: Ditto.
12038 * mi/mi-cmd-disas.c: Ditto.
12039 * mi/mi-cmd-stack.c: Ditto.
12040 * mi/mi-cmd-var.c: Ditto.
12041 * mi/mi-cmds.c: Ditto.
12042 * mi/mi-common.h: Ditto.
12043 * mi/mi-console.c: Ditto.
12044 * mi/mi-interp.c: Ditto.
12045 * mi/mi-main.c: Ditto.
12046 * osf-share/cma_attr.c: Ditto.
12047 * osf-share/cma_deb_core.h: Ditto.
12048 * osf-share/cma_debug_client.h: Ditto.
12049 * osf-share/cma_handle.h: Ditto.
12050 * osf-share/cma_mutex.h: Ditto.
12051 * osf-share/cma_stack_int.h: Ditto.
12052 * osf-share/cma_tcb_defs.h: Ditto.
12053 * python/py-auto-load.c: Ditto.
12054 * python/py-breakpoint.c: Ditto.
12055 * python/py-cmd.c: Ditto.
12056 * python/py-frame.c: Ditto.
12057 * python/py-objfile.c: Ditto.
12058 * python/py-param.c: Ditto.
12059 * python/py-progspace.c: Ditto.
12060 * python/py-symbol.c: Ditto.
12061 * python/py-value.c: Ditto.
12062 * python/python-internal.h: Ditto.
12063 * python/python.c: Ditto.
12064 * tui/tui-data.c: Ditto.
12065 * tui/tui-disasm.c: Ditto.
12066 * tui/tui-hooks.c: Ditto.
12067 * tui/tui-io.c: Ditto.
12068 * tui/tui-layout.c: Ditto.
12069 * tui/tui-regs.c: Ditto.
12070 * tui/tui-source.c: Ditto.
12071 * tui/tui-stack.c: Ditto.
12072 * tui/tui-win.c: Ditto.
12073 * tui/tui-windata.c: Ditto.
12074 * tui/tui-winsource.c: Ditto.
12076 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12078 * configure.ac, gdb.1: Copyright year update.
12080 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12082 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12083 this_pc_in_block, morestack_msym and morestack_name. Check for
12084 "__morestack" minimal symbol there.
12086 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12088 * symfile.c (find_sym_fns): Add call to dont_repeat.
12090 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12092 Copyright year update in most files (performed by copyright.sh).
12094 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12096 * top.c (print_gdb_version): Update copyright year in version output.
12098 For older changes see ChangeLog-2010.
12104 version-control: never