1 2011-12-10 Doug Evans <dje@google.com>
3 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
4 debug_types_section. All uses updated.
5 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
6 to is_debug_types_section.
8 * python/py-auto-load.c (source_section_scripts): Call xfree
11 2011-12-10 Hui Zhu <teawater@gmail.com>
12 Yao Qi <yao@codesourcery.com>
14 * tracepoint.c (start_tracing): Clear `inserted' flag.
16 2011-12-10 Hui Zhu <teawater@gmail.com>
18 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
20 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
22 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
25 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
27 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
28 `marker' variables to `sal2' and `tpmarker' respectively
31 2011-12-09 Andrew Pinski <apinski@cavium.com>
33 * linespec.c (hash_address_entry): Use iterative_hash_object on each
34 field rather than the struct itself.
36 2011-12-09 Tom Tromey <tromey@redhat.com>
38 * breakpoint.c (compare_breakpoints): New function.
39 (clear_command): Remove duplicate breakpoints. Properly clean
42 2011-12-08 Maciej W. Rozycki <macro@mips.com>
43 Maciej W. Rozycki <macro@codesourcery.com>
45 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
46 address chunks retrieved from decoded lui/addiu pairs.
48 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
50 * mips-tdep.c (extended_offset): Correct calculation.
51 (unpack_mips16): Correct bitfield positions used for extraction
52 of the immediate argument; fix sign-extension of same.
53 (extended_mips16_next_pc): Correct B instruction's offset
54 calculation. Correct register decoding of the BEQZ and BNEZ
55 as well as jump-register instructions. Handle compact jumps.
57 2011-12-08 Tom Tromey <tromey@redhat.com>
59 * objfiles.h (struct objfile): Remove obsolete comment.
60 * objfiles.c (build_objfile_section_table): Remove obsolete
63 2011-12-07 Stan Shebs <stan@codesourcery.com>
65 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
66 maintainer of the tic6x target.
68 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
70 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
71 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
72 (arm_deal_with_atomic_sequence_raw): Likewise.
73 (arm_deal_with_atomic_sequence): Likewise.
74 (arm_software_single_step): Call it.
75 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
77 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
79 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
81 * s390-tdep.h: Likewise.
83 2011-12-07 Tristan Gingold <gingold@adacore.com>
85 * machoread.c (macho_symtab_read): Do not consider N_OPT as
86 a debugging stab. Improve complaint message.
88 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
90 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
91 load adjustment if still within the prologue.
93 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
95 * mips-tdep.c (mips32_next_pc): Fix floating point condition
98 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
100 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
101 of BLTZ* and BGEZ* instructions.
103 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
105 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
106 performed to determine whether an address refers to standard
108 (mips16_next_pc): Use mips_pc_is_mips16 instead of
111 2011-12-06 Pedro Alves <pedro@codesourcery.com>
113 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
114 (breakpoint_xfer_memory): ... this. Change prototype. Handle
116 * breakpoint.h (breakpoint_restore_shadows): Delete.
117 (breakpoint_xfer_memory): Declare.
118 * mem-break.c (default_memory_insert_breakpoint)
119 (default_memory_remove_breakpoint): Use target_write_raw_memory.
120 (memory_xfer_partial): Rename to ...
121 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
123 (memory_xfer_partial): New.
124 (target_write_raw_memory): New.
125 * target.h (target_write_raw_memory): New.
127 2011-12-06 Doug Evans <dje@google.com>
129 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
131 2011-12-06 Joel Brobecker <brobecker@acacore.com>
133 * language.h (struct language_defn): Add new component
134 la_symbol_name_compare.
135 * symfile.h (struct quick_symbol_functions): Update the profile
136 of parameter "name_matcher" for the expand_symtabs_matching
137 method. Update the documentation accordingly.
138 * ada-lang.h (ada_name_for_lookup): Add declaration.
139 * ada-lang.c (ada_name_for_lookup): New function, extracted out
140 from ada_iterate_over_symbols.
141 (ada_iterate_over_symbols): Do not encode symbol name anymore.
142 (ada_expand_partial_symbol_name): Adjust profile.
143 (ada_language_defn): Add value for la_symbol_name_compare field.
144 * linespec.c: #include "ada-lang.h".
145 (iterate_name_matcher): Add language parameter. Replace call
146 to strcmp_iw by call to language->la_symbol_name_compare.
147 (decode_variable): Encode COPY if current language is Ada.
148 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
149 of name_matcher parameter. Adjust call to name_matcher.
150 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
151 (expand_partial_symbol_names): Update profile of parameter "fun".
152 * psymtab.h (expand_partial_symbol_names): Update profile of
154 * symtab.c (demangle_for_lookup): Update function documentation.
155 (search_symbols_name_matches): Add language parameter.
156 (expand_partial_symbol_name): Likewise.
157 * c-lang.c (c_language_defn, cplus_language_defn)
158 (asm_language_defn, minimal_language_defn): Add value for
159 la_symbol_name_compare field.
160 * d-lang.c (d_language_defn): Likewise.
161 * f-lang.c (f_language_defn): Ditto.
162 * jv-lang.c (java_language_defn): Ditto.
163 * m2-lang.c (m2_language_defn): Ditto.
164 * objc-lang.c (objc_language_defn): Ditto.
165 * opencl-lang.c (opencl_language_defn): Ditto.
166 * p-lang.c (pascal_language_defn): Ditto.
167 * language.c (unknown_language_defn, auto_language_defn)
168 (local_language_defn): Ditto.
170 2011-12-06 Tom Tromey <tromey@redhat.com>
172 * linespec.c (iterate_over_all_matching_symtabs): Use
173 LA_ITERATE_OVER_SYMBOLS.
174 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
175 (find_function_symbols, decode_variable): Remove Ada special
177 * language.h (struct language_defn) <la_iterate_over_symbols>: New
179 (LA_ITERATE_OVER_SYMBOLS): New macro.
180 * language.c (unknown_language_defn, auto_language_defn)
181 (local_language_defn): Update.
182 * c-lang.c (c_language_defn, cplus_language_defn)
183 (asm_language_defn, minimal_language_defn): Update.
184 * d-lang.c (d_language_defn): Update.
185 * f-lang.c (f_language_defn): Update.
186 * jv-lang.c (java_language_defn): Update.
187 * m2-lang.c (m2_language_defn): Update.
188 * objc-lang.c (objc_language_defn): Update.
189 * opencl-lang.c (opencl_language_defn): Update.
190 * p-lang.c (pascal_language_defn): Update.
191 * ada-lang.c (ada_iterate_over_symbols): New function.
192 (ada_language_defn): Update.
194 2011-12-06 Tom Tromey <tromey@redhat.com>
195 Joel Brobecker <brobecker@acacore.com>
197 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
198 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
199 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
200 PR shlibs/8929, PR shlibs/7393:
201 * python/py-type.c (compare_maybe_null_strings): Rename from
203 (check_types_equal): Update.
204 * utils.c (compare_strings): New function.
205 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
207 * tracepoint.c (scope_info): Update.
208 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
209 * symtab.h (iterate_over_minimal_symbols)
210 (iterate_over_some_symtabs, iterate_over_symtabs)
211 (find_pcs_for_symtab_line, iterate_over_symbols)
212 (demangle_for_lookup): Declare.
213 (expand_line_sal): Remove.
214 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
215 (lookup_symtab_callback): New functions.
216 (lookup_symtab): Rewrite.
217 (demangle_for_lookup): New function, extract from
218 lookup_symbol_in_language.
219 (lookup_symbol_in_language): Use it.
220 (iterate_over_symbols): New function.
221 (find_line_symtab): Update.
222 (find_pcs_for_symtab_line): New functions.
223 (find_line_common): Add 'start' argument.
224 (decode_line_spec): Update. Change argument to 'flags', change
226 (append_expanded_sal): Remove.
227 (append_exact_match_to_sals): Remove.
228 (expand_line_sal): Remove.
229 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
231 <map_symtabs_matching_filename>: New field.
232 * stack.c (func_command): Only look in the current program space.
233 Use DECODE_LINE_FUNFIRSTLINE.
234 * source.c (line_info): Set pspace on sal. Check program space in
235 the loop. Use DECODE_LINE_LIST_MODE.
236 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
237 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
238 * python/python.c (gdbpy_decode_line): Update.
239 * psymtab.c (partial_map_expand_apply): New function.
240 (partial_map_symtabs_matching_filename): Rename from
241 lookup_partial_symbol. Update arguments.
242 (lookup_symtab_via_partial_symtab): Remove.
243 (psym_functions): Update.
244 * objc-lang.h (parse_selector, parse_method): Don't declare.
246 * objc-lang.c (parse_selector, parse_method): Now static.
247 (find_methods): Change arguments. Fill in a vector of symbol
249 (uniquify_strings): New function.
250 (find_imps): Change arguments.
251 * minsyms.c (iterate_over_minimal_symbols): New function.
252 * linespec.h (enum decode_line_flags): New.
253 (struct linespec_sals): New.
254 (struct linespec_result) <canonical>: Remove.
255 <pre_expanded, addr_string, sals>: New fields.
256 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
257 (decode_line_full): Declare.
258 (decode_line_1): Update.
259 * linespec.c (struct address_entry, struct linespec_state, struct
260 collect_info): New types.
261 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
262 (eq_address_entry, maybe_add_address): New functions.
263 (total_number_of_methods): Remove.
264 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
266 (find_methods): Change arguments. Don't canonicalize input.
268 (add_matching_methods, add_constructors)
269 (build_canonical_line_spec): Remove.
270 (filter_results, convert_results_to_lsals): New functions.
271 (decode_line_2): Change arguments. Rewrite for new data
273 (decode_line_internal): Rename from decode_line_1. Change
274 arguments. Add cleanups. Update for new data structures.
275 (linespec_state_constructor, linespec_state_destructor)
276 (decode_line_full, decode_line_1): New functions.
277 (decode_indirect): Change arguments. Update.
278 (locate_first_half): Use skip_spaces.
279 (decode_objc): Change arguments. Update for new data structures.
281 (decode_compound): Change arguments. Add cleanups. Remove
282 fallback code, replace with error.
283 (struct decode_compound_collector): New type.
284 (collect_one_symbol): New function.
285 (lookup_prefix_sym): Change arguments. Update.
286 (compare_symbol_name, add_all_symbol_names_from_pspace)
287 (find_superclass_methods ): New functions.
288 (find_method): Rewrite.
289 (struct symtab_collector): New type.
290 (add_symtabs_to_list, collect_symtabs_from_filename): New
292 (symtabs_from_filename): Change API. Rename from
293 symtab_from_filename.
294 (collect_function_symbols): New function.
295 (find_function_symbols): Change API. Rename from
296 find_function_symbol. Rewrite.
297 (decode_all_digits): Change arguments. Rewrite.
298 (decode_dollar): Change arguments. Use decode_variable.
299 (decode_label): Change arguments. Rewrite.
300 (collect_symbols): New function.
301 (minsym_found): Change arguments. Rewrite.
302 (check_minsym, search_minsyms_for_name)
303 (add_matching_symbols_to_info): New function.
304 (decode_variable): Change arguments. Iterate over all symbols.
305 (symbol_found): Remove.
306 (symbol_to_sal): New function.
307 (init_linespec_result, destroy_linespec_result)
308 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
310 (decode_digits_list_mode, decode_digits_ordinary): New functions.
311 * dwarf2read.c (dw2_map_expand_apply): New function.
312 (dw2_map_symtabs_matching_filename): Rename from
313 dw2_lookup_symtab. Change arguments.
314 (dwarf2_gdb_index_functions): Update.
315 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
316 * defs.h (compare_strings): Declare.
317 * cli/cli-cmds.c (compare_strings): Move to utils.c.
318 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
320 (compare_symtabs, filter_sals): New functions.
321 * breakpoint.h (struct bp_location) <line_number, source_file>:
323 (struct breakpoint) <line_number, source_file>: Remove.
325 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
326 (momentary_breakpoint_from_master, add_location_to_breakpoint):
327 Update for changes to locations.
328 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
330 (create_breakpoint_sal): Add 'filter' argument.
331 (remove_sal, expand_line_sal_maybe): Remove.
332 (create_breakpoints_sal): Remove 'sals' argument. Handle
333 pre-expanded sals and the filter.
334 (parse_breakpoint_sals): Use decode_line_full.
335 (check_fast_tracepoint_sals): Use get_sal_arch.
336 (create_breakpoint): Create a linespec_sals. Update.
337 (break_range_command): Use decode_line_full. Update.
338 (until_break_command): Update.
339 (clear_command): Update match conditions for linespec.c changes.
340 Use DECODE_LINE_LIST_MODE.
341 (say_where): Update for changes to locations.
342 (bp_location_dtor): Free 'source_file'.
343 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
344 (update_static_tracepoint): Update for changes to locations.
345 (update_breakpoint_locations): Disable ranged breakpoint if too
346 many locations match. Update.
347 (addr_string_to_sals): Use decode_line_full. Resolve all sal
349 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
350 (decode_line_spec_1): Update. Change argument name to 'flags',
351 change interpretation.
352 * block.h (block_containing_function): Declare.
353 * block.c (block_containing_function): New function.
354 * skip.c (skip_function_command): Update.
355 (skip_re_set): Update.
356 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
357 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
360 2011-12-06 Tom Tromey <tromey@redhat.com>
362 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
363 breakpoint's pspace to be NULL.
364 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
365 * breakpoint.c (init_raw_breakpoint): Conditionally set
367 (init_breakpoint_sal): Don't set breakpoint's pspace.
368 (prepare_re_set_context): Conditionally switch program space.
369 (addr_string_to_sals): Check executing_startup on location's
372 2011-12-06 Tom Tromey <tromey@redhat.com>
374 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
375 * breakpoint.c (should_be_inserted): Explicitly check if program
376 space is executing startup.
377 (describe_other_breakpoints): Update.
378 (disable_breakpoints_before_startup): Change executing_startup
379 earlier. Remove loop.
380 (enable_breakpoints_after_startup): Likewise.
381 (init_breakpoint_sal): Don't use bp_startup_disabled.
382 (create_breakpoint): Don't use bp_startup_disabled.
383 (update_global_location_list): Use should_be_inserted.
384 (bkpt_re_set): Update.
386 2011-12-06 Tom Tromey <tromey@redhat.com>
388 * python/lib/gdb/command/pretty_printers.py
389 (InfoPrettyPrinter.invoke1): Remove extra double quote.
391 2011-12-06 Tom Tromey <tromey@redhat.com>
395 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
397 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
398 (S390_LAST_BREAK_REGNUM): Likewise.
399 (S390_SYSTEM_CALL_REGNUM): Likewise.
400 (S390_NUM_REGS): Update.
402 (s390_regmap_last_break): Add declaration.
403 (s390x_regmap_last_break): Likewise.
404 (s390_regmap_system_call): Likewise.
406 (tdesc_s390_linux32v1): Add declaration.
407 (tdesc_s390_linux32v2): Likewise.
408 (tdesc_s390_linux64v1): Likewise.
409 (tdesc_s390_linux64v2): Likewise.
410 (tdesc_s390x_linux64v1): Likewise.
411 (tdesc_s390x_linux64v2): Likewise.
413 * s390-tdep.c: Include new target description files
414 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
415 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
416 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
417 (s390_cannot_store_register): New function.
418 (s390_write_pc): Likewise.
419 (s390_dwarf_regmap): Add fields for new registers.
420 (s390_regmap_gregset): Likewise.
421 (s390x_regmap_gregset): Likewise.
422 (s390_regmap_fpregset): Likewise.
423 (s390_regmap_upper): Likewise.
424 (s390_regmap_last_break): New variable.
425 (s390x_regmap_last_break): Likewise.
426 (s390_regmap_system_call): Likewise.
427 (s390_last_break_regset): Likewise.
428 (s390x_last_break_regset): Likewise.
429 (s390_system_call_regset): Likewise.
430 (s390_upper_regset_sections): Rename to ...
431 (s390_linux64_regset_sections): ... this.
432 (s390_linux32_regset_sections): New variable.
433 (s390x_linux64_regset_sections): Likewise.
434 (s390_linux32v1_regset_sections): Likewise.
435 (s390_linux32v2_regset_sections): Likewise.
436 (s390_linux64v1_regset_sections): Likewise.
437 (s390_linux64v2_regset_sections): Likewise.
438 (s390x_linux64v1_regset_sections): Likewise.
439 (s390x_linux64v2_regset_sections): Likewise.
440 (s390_regset_from_core_section): Handle .reg-s390-last-break and
441 .reg-s390-system-call core file sections.
442 (s390_core_read_description): Check for presence of
443 .reg-s390-last-break and .reg-s390-system-call core file
444 sections and return appropriate target description.
445 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
446 "last_break" and "system_call" in target description. Install
447 appropriate gdbarch_core_regset_sections array.
448 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
449 (_initialize_s390_tdep): Initialize additional target descriptions.
451 * s390-nat.c: Include "elf/common.h".
452 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
453 (have_regset_last_break): New static variable.
454 (have_regset_system_call): Likewise.
455 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
456 (s390_native_collect): Likewise.
457 (fetch_regset, store_regset, check_regset): New functions.
458 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
459 and S390_SYSTEM_CALL_REGNUM.
460 (s390_linux_store_inferior_registers): Likewise.
461 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
462 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
464 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
465 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
466 (s390-linux32v1-expedite): Define.
467 (s390-linux32v2-expedite): Likewise.
468 (s390-linux64v1-expedite): Likewise.
469 (s390-linux64v2-expedite): Likewise.
470 (s390x-linux64v1-expedite): Likewise.
471 (s390x-linux64v2-expedite): Likewise.
473 * features/s390-linux32.xml: Add orig_r2 register.
474 * features/s390-linux64.xml: Likewise.
475 * features/s390x-linux64.xml: Likewise.
476 * features/s390-linux32v1.xml: New file.
477 * features/s390-linux32v2.xml: Likewise.
478 * features/s390-linux64v1.xml: Likewise.
479 * features/s390-linux64v2.xml: Likewise.
480 * features/s390x-linux64v1.xml: Likewise.
481 * features/s390x-linux64v2.xml: Likewise.
483 * features/s390-linux32.c: Regenerate.
484 * features/s390-linux64.c: Likewise.
485 * features/s390x-linux64.c: Likewise.
486 * features/s390-linux32v1.c: New generated file.
487 * features/s390-linux32v2.c: Likewise.
488 * features/s390-linux64v1.c: Likewise.
489 * features/s390-linux64v2.c: Likewise.
490 * features/s390x-linux64v1.c: Likewise.
491 * features/s390x-linux64v2.c: Likewise.
493 * regformats/s390-linux32.dat: Regenerate.
494 * regformats/s390-linux64.dat: Regenerate.
495 * regformats/s390x-linux64.dat: Regenerate.
496 * regformats/s390-linux32v1.dat: New generated file.
497 * regformats/s390-linux32v2.dat: Likewise.
498 * regformats/s390-linux64v1.dat: Likewise.
499 * regformats/s390-linux64v2.dat: Likewise.
500 * regformats/s390x-linux64v1.dat: Likewise.
501 * regformats/s390x-linux64v2.dat: Likewise.
503 2011-12-05 Pedro Alves <pedro@codesourcery.com>
505 * linux-nat.c (resume_stopped_resumed_lwps): Call
508 2011-12-05 Pedro Alves <pedro@codesourcery.com>
510 * breakpoint.c: Include record.h.
511 (breakpoints_always_inserted_mode): Return false when the record
514 2011-12-05 Pedro Alves <pedro@codesourcery.com>
516 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
517 Reinstate perror_with_name call on ptrace error. Remove #if 0.
518 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
519 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
521 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
523 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
526 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
528 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
530 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
532 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
535 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
537 Fix compilation --without-expat.
538 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
540 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
542 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
543 Jan Kratochvil <jan.kratochvil@redhat.com>
545 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
546 * features/library-list-svr4.dtd: New file.
547 * remote.c (PACKET_qXfer_libraries_svr4): New.
548 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
549 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
550 * solib-svr4.c (struct svr4_library_list): New.
551 [HAVE_LIBEXPAT]: Include xml-support.h.
552 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
553 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
554 [HAVE_LIBEXPAT] (svr4_library_list_children)
555 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
556 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
557 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
558 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
559 (svr4_read_so_list): Extend the corruption message by addresses.
560 (svr4_current_sos): New variable library_list, call
561 svr4_current_sos_via_xfer_libraries.
562 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
564 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
567 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
568 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
570 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
573 * dwarf2read.c (process_psymtab_comp_unit): Set
574 PSYMTABS_ADDRMAP_SUPPORTED.
575 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
576 validity. New field psymtabs_addrmap_supported.
577 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
578 psymtabs_addrmap_supported.
579 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
580 !PSYMTABS_ADDRMAP_SUPPORTED.
581 (dump_psymtab, maintenance_info_psymtabs): Print also
582 psymtabs_addrmap_supported.
584 2011-12-01 Doug Evans <dje@google.com>
586 * python/py-type.c (type_object_methods): Fix "array" doc string.
588 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
590 * source.c (print_source_lines_base): Fix missing braces on else
591 clause leading to additional output.
593 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
595 * s390-nat.c (SUBOFF): Remove.
596 (s390_native_supply, s390_native_collect): New functions.
597 (supply_gregset, supply_fpregset): Use s390_native_supply.
598 (fill_gregset, fill_fpregset): Use s390_native_collect.
600 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
601 (s390_unwind_pseudo_register): New function.
602 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
603 registers instead of PC and CC.
604 (s390_backchain_frame_unwind_cache): Likewise.
605 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
607 (s390_trad_frame_prev_register): New function.
608 (s390_frame_prev_register): Use it.
609 (s390_sigtramp_frame_prev_register): Likewise.
610 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
611 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
612 special callback to unwind any pseudo.
614 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
615 * features/s390-core64.xml: Likewise.
616 * features/s390x-core64.xml: Likewise.
617 * features/s390-linux32.c: Regenerate.
618 * features/s390-linux64.c: Likewise.
619 * features/s390x-linux64.c: Likewise.
621 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
623 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
625 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
627 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
628 instruction. Add more diagnostic output.
630 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
632 * MAINTAINERS (Write After Approval): Add myself to the list.
634 2011-11-29 Sanjoy Das <sdas@igalia.com>
636 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
637 (jit_bfd_try_read_symtab): Fix comments.
639 2011-11-28 DJ Delorie <dj@redhat.com>
641 * NEWS: Mention RL78 simulator.
643 2011-11-28 Joel Brobecker <brobecker@adacore.com>
645 * symfile.h (struct quick_symbol_functions): Fix the documentation
646 of field map_matching_symbols, as symbols are sorted using
647 strcmp_iw_ordered, not strcmp_iw.
649 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
651 * symfile.h (struct quick_symbol_functions): Update the
652 documentation for field map_matching_symbols.
654 2011-11-28 Joel Brobecker <brobecker@adacore.com>
656 * ada-lang.c (compare_names): Fix wrong return value in case
657 string1 starts with the same contents as string2, followed
658 by an underscore that do not start a symbol name suffix.
660 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
665 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
666 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
667 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
669 * python/py-type.c (typy_strip_typedefs): Ditto.
670 (typy_legacy_template_argument): Ditto.
671 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
672 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
674 2011-11-27 Joel Brobecker <brobecker@acacore.com>
676 * remote.c (remote_get_tracepoint_status): Delete addrbuf
677 local variable. Avoid use of sprintf_vma.
679 2011-11-27 Sanjoy Das <sdas@igalia.com>
681 Fix regression in jit.exp.
682 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
683 (jit_register_code): Set the jit_objfile_data field to the correct
686 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
688 * alpha-tdep.c (br_opcode): New.
689 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
690 (alpha_deal_with_atomic_sequence): New function.
691 (alpha_gdbarch_init): Handle single stepping of atomic sequences
692 with alpha_deal_with_atomic_sequence.
694 2011-11-24 Tristan Gingold <gingold@adacore.com>
696 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
697 fields. Add oso_sym, end_sym and nbr_syms.
698 (macho_register_oso): Change interface.
699 (macho_symtab_add_minsym): New function.
700 (macho_symtab_read): Rewritten.
701 (get_archive_prefix_len): Remove trailing blanks.
702 (oso_el_compare_name): Add comment.
703 (struct macho_sym_hash_entry): New structure.
704 (macho_relocate_common_syms): Remove.
705 (macho_sym_hash_newfunc): New function.
706 (macho_resolve_oso_sym_with_minsym): Likewise.
707 (macho_add_oso_symfile): Rewritten.
708 (macho_symfile_read_all_oso): Remove trailing blanks.
709 Adjust code to free oso vector.
710 (macho_symfile_read): Likewise.
711 Move code to initialize minimal symbol
713 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
715 * mips-tdep.c (extended_offset): Fix formatting.
717 2011-11-23 Doug Evans <dje@google.com>
719 * dwarf2read.c (dw2_lookup_symtab): Add comment.
720 (dw2_expand_symtabs_with_filename): Ditto.
721 (dw2_expand_symtabs_matching): Ditto.
722 (dw2_map_symbol_filenames): Ditto.
724 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
726 * ada-lang.c (assign_aggregate): Minor reformatting.
728 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
730 * ada-lang.c (assign_aggregate): Remove declaration of local
731 variable `i' which is shadowing another variable with the same
732 name declared in the outer scope.
734 2011-11-23 Joel Brobecker <brobecker@adacore.com>
736 * ada-lang.c (get_base_type): Renames base_type. Adjust all
737 calls throughout this file.
739 2011-11-23 Joel Brobecker <brobecker@adacore.com>
741 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
744 2011-11-22 Tom Tromey <tromey@redhat.com>
747 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
748 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
749 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
750 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
751 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
752 (print_it_catch_syscall, print_it_catch_exec)
753 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
754 (bpstat_print): Add 'kind' argument. Handle
755 TARGET_WAITKIND_LOADED.
756 * infrun.c (normal_stop): Update for bpstat_print change. Don't
757 handle TARGET_WAITKIND_LOADED here.
758 * breakpoint.h (bpstat_print): Update.
760 2011-11-22 Tom Tromey <tromey@redhat.com>
762 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
764 2011-11-22 Tom Tromey <tromey@redhat.com>
766 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
767 Use static_assert to check the size of
768 async_reason_string_lookup.
769 * common/gdb_assert.h (static_assert): New macro.
771 2011-11-22 Alan Modra <amodra@gmail.com>
773 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
774 destination calculation. Don't expect >> to sign extend. Don't
775 add a break if branch lands inside the sequence anywhere.
777 2011-11-21 Keith Seitz <keiths@redhat.com>
779 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
780 -var-evaluate-expression of an enumeration and fix expected result.
781 * gdb.mi/mi2-varvdisplay.exp: Likewise.
783 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
785 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
786 the case where osdata->items is empty. Rename column names to a
787 canonical form to avoid problems with unusual column names.
789 2011-11-21 Yao Qi <yao@codesourcery.com>
791 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
793 2011-11-20 Stan Shebs <stan@codesourcery.com>
795 * NEWS: Mention tracepoint additions.
796 * breakpoint.h (struct tracepoint): New field traceframe_usage.
797 * breakpoint.c (print_one_breakpoint_location): Identify
798 tracepoints as such when reporting hit counts, report
800 (create_tracepoint_from_upload): Copy status info.
801 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
802 add fields user_name, notes, start_time, stop_time.
803 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
804 * tracepoint.c (trace_user): New global.
805 (trace_notes): New global.
806 (trace_stop_notes): New global.
807 (start_tracing): Add argument and trace note handling.
808 (stop_tracing): Ditto.
809 (trace_start_command): Add notes argument.
810 (trace_stop_command): Ditto.
811 (trace_status_command): Report additional status info.
812 (trace_status_mi): Similarly.
813 (trace_save): Update, record tracepoint status.
814 (set_disconnected_tracing): Call target method directly.
815 (send_disconnected_tracing_value): Remove.
816 (set_trace_user): New function.
817 (set_trace_notes): New function.
818 (set_trace_stop_notes): New function.
819 (parse_trace_status): Handle additional status.
820 (parse_tracepoint_status): New function.
821 (parse_tracepoint_definition): Call it.
822 (tfile_get_tracepoint_status): New function.
823 (init_tfile_ops): Use it.
824 (_initialize_tracepoint): Add new setshows.
825 * target.h (struct target_ops): New methods to_get_tracepoint_status
826 and to_set_trace_notes.
827 (target_get_tracepoint_status): New macro.
828 (target_set_trace_notes): New macro.
829 * target.c (update_current_target): Add new methods.
830 * remote.c (remote_get_tracepoint_status): New function.
831 (remote_set_trace_notes): New function.
832 (init_remote_ops): Add them.
833 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
834 (mi_cmd_trace_stop): Ditto.
836 2011-11-20 Sanjoy Das <sdas@igalia.com>
838 * jit.c: Include regcache.h.
839 (jit_gdbarch_data, jit_frame_unwind): New static variables.
840 (jit_unwind_reg_set_impl, free_reg_value_impl)
841 (jit_unwind_reg_get_impl, jit_frame_sniffer)
842 (jit_frame_unwind_stop_reason, jit_frame_this_id)
843 (jit_frame_prev_register, jit_dealloc_cache)
844 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
845 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
846 jit_prepend_unwinder.
847 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
849 2011-11-20 Sanjoy Das <sdas@igalia.com>
851 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
852 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
853 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
854 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
855 (finalize_symtab, jit_object_close_impl)
856 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
857 (free_objfile_data): New functions.
858 (_initialize_jit): Register jit_objfile_data with a proper cleanup
861 2011-11-20 Sanjoy Das <sdas@igalia.com>
863 * jit.c: Include gdb-dlfcn.h.
864 (loaded_jit_reader, reader_init_fn_sym): New static variables.
865 (jit_reader_load, jit_reader_load_command)
866 (jit_reader_unload_command): New functions.
867 (_initialize_jit): Add commands "jit-reader-load" and
870 2011-11-20 Sanjoy Das <sdas@igalia.com>
872 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
873 * config.in: Add new #define HAVE_LIBDL.
874 * configure.ac: Add check for -ldl.
875 * configure: Re-generated by autoconf.
876 * gdb-dlfcn.c: New file.
877 * gdb-dlfcn.h: New file.
879 2011-11-20 Sanjoy Das <sdas@igalia.com>
881 * config.in: Add new #defines: JIT_READER_DIR and
882 JIT_READER_DIR_RELOCATABLE.
883 * configure.ac: New GDB directory entry for jit-reader-dir.
884 * configure: Re-generated by autoconf.
885 * jit.c: New static variable: const char *jit_reader_dir.
886 (_initialize_jit): Relocate jit_reader_dir.
888 2011-11-20 Sanjoy Das <sdas@igalia.com>
890 * Makefile.in: Add jit-reader.h as a header. Have it installed in
892 * configure.ac: Generate a correct value for TARGET_PTR for
893 jit-reader.h. Tell configure to generate jit-reader.h from
895 * configure: Re-generated by autoconf.
896 * jit-reader.in: New file.
897 * jit.c: Include jit-reader.h.
899 2011-11-20 Sanjoy Das <sdas@igalia.com>
901 * MAINTAINERS (Write After Approval): Add myself to the list.
903 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
905 * findvar.c (read_frame_register_value): Respect value_offset
906 of the register value. Remove big-endian special case.
908 2011-11-18 Tom Tromey <tromey@redhat.com>
911 * remote.c (putpkt_for_catch_errors): New function.
912 (remote_kill): Use it.
914 2011-11-18 Yao Qi <yao@codesourcery.com>
916 * breakpoint.c (create_breakpoint): Produce query message according to
918 Allocate tracepoint per correct type.
919 Don't check SALs for pending fast tracepoints.
920 * tracepoint.c (process_tracepoint_on_disconnect): New.
921 (disconnect_tracing): Call process_tracepoint_on_disconnect.
923 2011-11-18 Yao Qi <yao@codesourcery.com>
925 * breakpoint.c (install_breakpoint): Add one more parameter so that
926 update_global_location_list is called conditionally.
927 (create_fork_vfork_event_catchpoint): Update.
928 (create_syscall_event_catchpoint): Update.
929 (create_breakpoint_sal): Update.
930 (create_breakpoint_sal): Update. Call do_cleanups before
932 * ada-lang.c (create_ada_exception_catchpoint): Update.
933 * breakpoint.h (install_breakpoint): Update declaration.
935 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
937 * spu-tdep.c (spu_return_value): Fix handling of
938 TYPE_CALLING_CONVENTION annotation.
940 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
942 * skip.c (skip_function_command): Work around uninitialized
945 2011-11-16 David S. Miller <davem@davemloft.net>
947 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
948 'tv_usec' to long for printf since these fields have a type which
951 2011-11-15 Doug Evans <dje@google.com>
953 * buildsym.c (add_symbol_to_list): Delete outdated comment.
955 2011-11-15 Paul Koning <paul_koning@dell.com>
957 * python/py-type.c (typy_get_composite): New function.
958 (typy_nonzero): New function.
959 (typy_values): Rename from typy_fields.
960 (typy_fields): New function.
961 (typy_length): Raise exception if not struct, union, or enum type.
962 (typy_getitem): Ditto.
963 (typy_has_key): Ditto.
964 (typy_make_iter): Ditto.
966 2011-11-15 Doug Evans <dje@google.com>
968 * NEWS: Mention new parameter basenames-may-differ.
969 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
970 ! basenames_may_differ.
971 * psymtab.c (lookup_partial_symtab): Ditto.
972 * symtab.c (lookup_symtab): Ditto.
973 (basenames_may_differ): New global.
974 (_initialize_symtab): New parameter basenames-may-differ.
975 * symtab.h (basenames_may_differ): Declare.
977 2011-11-15 Pedro Alves <pedro@codesourcery.com>
978 Luis Machado <lgustavo@codesourcery.com>
980 * auxv.c: Include observer.h.
981 (auxv_inferior_data_cleanup): New.
982 (invalidate_auxv_cache_inf): New.
983 (invalidate_auxv_cache): New.
984 (get_auxv_inferior_data): New.
985 (auxv_inferior_data): New static global.
986 (auxv_info): New structure.
987 (target_auxv_search): Use get_auxv_inferior_data instead of
988 target_read_alloc and don't free cached buffers.
989 (fprint_target_auxv): Likewise
990 (_initialize_auxv): Register per-inferior auxv cache and register
991 observers to invalidate auxv cache when needed.
993 2011-11-14 Doug Evans <dje@google.com>
995 Make "!" an alias for "shell".
997 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
998 adding "!" command, always add it.
999 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1000 command of length one.
1002 2011-11-14 Stan Shebs <stan@codesourcery.com>
1003 Kwok Cheung Yeung <kcy@codesourcery.com>
1005 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1006 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1007 the minimum instruction size for fast tracepoints.
1008 * target.h (struct target_ops): Add new method
1009 to_get_min_fast_tracepoint_insn_len.
1010 (target_get_min_fast_tracepoint_insn_len): New.
1011 * target.c (update_current_target): Set up new target operation.
1012 * remote.c (remote_write_bytes_aux): Fix typo.
1013 (remote_get_min_fast_tracepoint_insn_len): New.
1014 (init_remote_ops): Initialize new field.
1016 2011-11-14 Tom Tromey <tromey@redhat.com>
1018 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1019 (encode_actions): Likewise.
1021 2011-11-14 Yao Qi <yao@codesourcery.com>
1023 * remote.c (struct remote_state): <install_in_trace> new field.
1024 (PACKET_InstallInTrace): New enum value.
1025 (remote_install_in_trace_feature): Support InstallInTrace.
1026 (remote_supports_install_in_trace): Likewise.
1027 (remote_protocol_features): Likewise.
1028 (_initialize_remote): Likewise.
1029 (remote_can_download_tracepoint): New.
1030 * target.h (struct target): New field
1031 `to_can_download_tracepoint'.
1032 (target_can_download_tracepoint): New macro.
1033 * target.c (update_current_target): Update.
1034 * breakpoint.h (struct bp_location): Add comment on field
1036 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1038 (remove_breakpoints): Don't remove tracepoints.
1039 (tracepoint_locations_match ): New.
1040 (breakpoint_locations_match): Call it.
1041 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1042 (download_tracepoint_locations): New.
1043 (update_global_location_list): Call it.
1044 * tracepoint.c (find_matching_tracepoint): Delete.
1045 (find_matching_tracepoint_location): Renamed from
1046 find_matching_tracepoint. Return bp_location rather than
1048 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1049 tracepoint is found.
1051 2011-11-14 Yao Qi <yao@codesourcery.com>
1053 * target.h (struct target): <to_download_tracepoint> Change type
1054 of parameter from tracepoint to bp_location.
1055 * target.c (update_current_target): Update.
1056 * tracepoint.c (start_tracing): Update.
1057 * remote.c (remote_download_tracepoint): Remove loop for each location
1060 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1062 * i386-nat.c (i386_insert_hw_breakpoint): Call
1063 i386_update_inferior_debug_regs.
1064 (i386_remove_hw_breakpoint): Likewise.
1066 2011-11-14 Yao Qi <yao@codesourcery.com>
1068 * breakpoint.c (init_raw_breakpoint): Call
1069 add_location_to_breakpoint to replace duplicated code.
1070 (add_location_to_breakpoint): Adjust the breakpoint's
1071 address prior to allocating a location.
1073 2011-11-12 Matt Rice <ratmice@gmail.com>
1075 * macrocmd.c (macro_no_macro_info): New function.
1076 (macro_expand_command): Use macro_no_macro_info.
1077 (macro_expand_once_command): Ditto.
1078 (info_macro_command): Add argument processing,
1079 move info_definitions_command here.
1080 (_initialize_macrocmd): Remove info definitions command.
1081 Add arguments to info macro help text.
1082 * NEWS: Replace info definitions command with new info macro options.
1084 2011-11-11 Keith Seitz <keiths@redhat.com>
1087 * linespec.c (locate_first_half): Keep ':' if it looks
1088 like it could be part of a Windows path starting with
1091 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1093 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1094 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1096 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1098 * target.c (target_waitstatus_to_string): Handle
1099 TARGET_WAITKIND_NO_RESUMED.
1101 2011-11-10 Doug Evans <dje@google.com>
1103 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1105 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1106 (map_partial_symbol_filenames): Ditto. All callers updated.
1107 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1108 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1109 parameter need_fullname.
1111 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1112 * source.c (symtab_to_fullname): Ditto.
1114 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1115 * gdb-demangle.h: ... here. New file.
1116 * demangle.c: #include "gdb-demangle.h".
1117 (_initialize_demangler): Use initialize_file_ftype for prototype.
1118 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1119 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1121 * utils.c: Update. #include "gdb-demangle.h".
1122 * symtab.h (asm_demangle): Delete.
1123 (demangle): Move declaration next to use.
1124 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1125 * dwarf2read.c: #include "gdb-demangle.h".
1126 * gnu-v2-abi.c: Ditto.
1127 * jv-typeprint.c: Ditto.
1128 * mdebugread.c: Ditto.
1129 * p-typeprint.c: Ditto.
1130 * stabsread.c: Ditto.
1131 * printcmd.c: Ditto.
1132 (asm_demangle): Delete declaration.
1133 * tui/tui-stack.c: #include "gdb-demangle.h".
1135 * python/py-type.c (typy_fields_items): Call check_typedef.
1137 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1139 * findvar.c (read_frame_register_value): Read the correct bytes
1140 from registers on big-endian architectures.
1142 2011-11-10 Tom Tromey <tromey@redhat.com>
1144 * procfs.c (load_syscalls): Make a cleanup.
1145 (open_procinfo_files): fd==0 is ok.
1147 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1149 * procfs.c (iterate_over_mappings): Call do_cleanups before
1152 2011-11-09 Doug Evans <dje@google.com>
1154 * gdbtypes.c (check_typedef): Document that this function can
1157 2011-11-09 Tom Tromey <tromey@redhat.com>
1160 * valops.c (value_full_object): Return early if real type is
1161 smaller than the enclosing type.
1163 2011-11-08 Yao Qi <yao@codesourcery.com>
1165 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1167 2011-11-08 Meador Inge <meadori@codesourcery.com>
1169 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1170 register when the frame can't be determined.
1171 * arm-tdep.c (arm_analyze_prologue): Ditto.
1173 2011-11-07 Stan Shebs <stan@codesourcery.com>
1175 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1177 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1179 * infrun.c (handle_inferior_event): Minor reformatting.
1181 2011-11-05 Doug Evans <dje@google.com>
1183 * source.c (forget_cached_source_info_for_objfile): Move call to
1184 objfile->sf->qf->forget_cached_source_info outside of
1185 ALL_OBJFILE_SYMTABS loop.
1186 (forget_cached_source_info): Delete unused variable `s'.
1188 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1190 * i386-nat.c (dr_ref_count): Remove unused variable.
1192 2011-11-05 Doug Evans <dje@google.com>
1194 * main.c (captured_main): Set lim_at_start before calling
1195 make_command_stats_cleanup.
1197 2011-11-04 Doug Evans <dje@google.com>
1199 * utils.c: #include "timeval-utils.h".
1200 (cmd_stats): Rename start_time to start_cpu_time.
1201 New member start_wall_time.
1202 (report_command_stats): Report wall time.
1203 (make_command_stats_cleanup): Record start wall time.
1205 2011-11-04 Tom Tromey <tromey@redhat.com>
1207 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1209 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1211 * coff-pe-read.c: Include defs.h before bfd.h.
1213 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1217 * python/python.c (python_run_simple_file): Expand tilde in path.
1219 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1223 * python/py-type.c (typy_lookup_type): Do not return a type in
1224 an exception handler.
1226 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1227 Eli Zaretskii <eliz@gnu.org>
1229 * linux-nat.c (_initialize_linux_nat): Improve help
1230 for `info proc stat', `info proc status', `info proc cwd',
1231 `info proc cmdline' and `info proc exe'.
1233 2011-11-02 Stan Shebs <stan@codesourcery.com>
1235 String collection for tracepoints.
1236 * NEWS: Mention string collection.
1237 * common/ax.def (tracenz): New bytecode.
1238 * ax-gdb.h (trace_string_kludge): Declare.
1239 * ax-gdb.c: Include valprint.h and c-lang.h.
1240 (trace_string_kludge): New global.
1241 (gen_traced_pop): Add string case.
1242 (agent_command): Add string case.
1243 * tracepoint.h (decode_agent_options): Declare.
1244 * tracepoint.c: Include cli-utils.h.
1245 (decode_agent_options): New function.
1246 (validate_actionline): Call it.
1247 (encode_actions_1): Ditto.
1248 * target.h (struct target_ops): New method to_supports_string_tracing.
1249 (target_supports_string_tracing): New macro.
1250 * target.c (update_current_target): Add to_supports_string_tracing.
1251 * remote.c (struct remote_state): New field string_tracing.
1252 (remote_string_tracing_feature): New function.
1253 (remote_protocol_features): New feature tracenz.
1254 (remote_supports_string_tracing): New function.
1255 (init_remote_ops): Set to_supports_string_tracing.
1257 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1258 Jan Kratochvil <jan.kratochvil@redhat.com>
1260 * linux-nat.c: Include cli/cli-utils.h.
1261 (enum info_proc_what): New.
1262 (linux_nat_info_proc_cmd): Rename to ...
1263 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1264 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1265 status_f and stat_f from WHAT. Throw error on extra parameters.
1266 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1267 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1268 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1269 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1270 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1271 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1272 `info proc cmdline', `info proc exe' and `info proc all' as real
1273 subcommands of `info proc'.
1275 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1277 * Makefile.in: (SFILES): Add skip.c.
1278 (HFILES_NO_SRCDIR): Add skip.h.
1279 (COMMON_OBS): Add skip.o.
1280 * skip.h, skip.c: New.
1281 * breakpoint.h (set_default_breakpoint): Remove.
1282 (get_sal_arch): Declare.
1283 * breakpoint.c: Remove default_breakpoint_valid,
1284 default_breakpoint_address, default_breakpoint_symtab,
1285 default_breakpoint_line, default_breakpoint_pspace variables.
1286 (get_sal_arch): Make public.
1287 (set_default_breakpoint): Remove.
1288 (parse_breakpoint_sals, create_breakpoint, clear_command,
1289 decode_line_spec_1): Remove uses of default_breakpoint variables;
1290 replaced with function calls into stack.c.
1291 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1292 * cli/cli-cmds.c: Add skiplist.
1293 (init_cmd_lists): Initialize skiplist.
1294 (init_cli_cmds): Fix comment (classes of commands appear in
1295 alphabetical order).
1296 * infrun.c (handle_inferior_event): Add check that we don't step into
1297 a function whose pc is marked for skip.
1298 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1299 last_displayed_addr, last_displayed_symtab, last_displayed_line
1301 (set_last_displayed_sal): New static function.
1302 (print_frame_info): Switch call to set_default_breakpoint to call to
1303 set_last_displayed_sal.
1304 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1305 get_last_displayed_pspace, get_last_displayed_addr,
1306 get_last_displayed_symtab, get_last_displayed_line,
1307 get_last_displayed_sal): New public functions.
1308 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1309 get_last_displayed_pspace, get_last_displayed_addr,
1310 get_last_displayed_symtab, get_last_displayed_line,
1311 get_last_displayed_sal): Declare.
1313 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1315 * MAINTAINERS (Write After Approval): Add myself to the list.
1317 2011-10-29 Yao Qi <yao@codesourcery.com>
1319 * infcmd.c (disconnect_command): Call disconnect_tracing.
1321 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1324 * symtab.c (skip_prologue_sal): Code reformatting.
1326 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1329 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1330 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1333 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1335 * linux-nat.c (linux_nat_filter_event): Remove `options'
1336 parameter, and dead code that used it. If we're handling a
1337 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1338 in our lwp list, re-add it.
1339 (check_zombie_leaders): New.
1340 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1341 wait for children with WNOHANG, and always wait for all children.
1342 Don't check for no resumed children upfront. Simplify wait loop.
1343 Check for zombie thread group leaders after handling all wait
1344 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1345 unwaited-for children left.
1346 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1347 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1348 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1349 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1351 2011-10-28 Sterling Augustine <saugustine@google.com>
1353 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1354 * symtab.c (free_completion_list): New function.
1355 (do_free_completion_list): Likewise.
1356 (default_make_symbol_completion_list_break_on): New variable
1357 back_to. Call make_cleanup and discard_cleanups.
1358 (make_source_files_completion_list): Likewise.
1360 2011-10-28 Paul Koning <paul_koning@dell.com>
1362 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1363 * NEWS: Mention deep_items.
1365 2011-10-28 Alen Skondro <askondro@gmail.com>
1367 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1370 2011-10-27 Meador Inge <meadori@codesourcery.com>
1372 * MAINTAINERS (Write After Approval): Add myself to the list.
1374 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1376 * value.h (read_frame_register_value): Add declaration.
1377 * findvar.c (read_frame_register_value): New function.
1378 (value_from_register): Use read_frame_register_value
1379 instead of get_frame_register_value + value_contents_copy
1380 to get value contents.
1382 2011-10-27 Doug Evans <dje@google.com>
1384 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1385 source_script_from_stream if it may have been found on the search path.
1386 * python/py-auto-load.c (source_section_scripts): Pass full path to
1387 source_python_script_for_objfile.
1388 * python/python.c (source_python_script): Delete stream parameter.
1389 All callers updated.
1390 (source_python_script_for_objfile): Ditto.
1391 * python/python-internal.h (source_python_script_for_objfile): Update.
1392 * python/python.h (source_python_script): Update.
1394 2011-10-27 Tom Tromey <tromey@redhat.com>
1396 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1397 (ada_sals_for_line): Remove declarations.
1399 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1401 Move unwind reasons to an external .def file
1402 * frame.c (frame_stop_reason_string): Rewrite using
1403 unwind_stop_reasons.def.
1404 * frame.h (enum unwind_stop_reason): Likewise.
1405 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1406 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1407 constants for bound-checking.
1408 * unwind_stop_reasons.def: New file.
1409 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1410 instead of a distinct value.
1412 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1416 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1417 (convert_values_to_python): Return on Python tuple allocation
1418 failure. Return NULL on value conversion error.
1420 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1422 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1423 (bppy_set_task): Ditto.
1424 (bppy_delete_breakpoint): Ditto.
1425 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1426 (gdbpy_lookup_global_symbol): Ditto.
1427 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1428 * python/py-frame.c (frapy_is_valid): Ditto.
1429 (frame_info_to_frame_object): Ditto.
1430 * python/py-type.c (typy_lookup_type): Ditto.
1431 (typy_getitem): Ditto.
1432 (typy_has_key): Ditto.
1433 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1435 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1437 * gdbarch.h: Regenerate.
1439 2011-10-26 Meador Inge <meadori@codesourcery.com>
1441 * gdbarch.sh (function_list): Use 'pstring' when printing
1443 * gdbarch.c: Regenerate.
1445 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1447 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1448 and frame caches if PTID refers to all threads of a process.
1450 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1452 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1453 to create_breakpoint.
1455 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1457 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1458 (ppc_sysv_abi_push_dummy_call): Use it.
1459 (do_ppc_sysv_return_value): Likewise.
1460 (ppc64_sysv_abi_push_dummy_call): Likewise.
1461 (ppc64_sysv_abi_return_value): Likewise.
1463 2011-10-26 Paul Koning <paul_koning@dell.com>
1465 * python/lib/gdb/types.py (deepitems): New function.
1467 2011-10-25 Paul Koning <paul_koning@dell.com>
1471 * python/py-value.c (value_to_value_object): Remove fetching of
1472 the value if it was lazy.
1473 (valpy_get_is_lazy): New function.
1474 (valpy_fetch_lazy): New function.
1476 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1478 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1479 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1481 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1483 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1484 event, in non-stop, if not stopping, make sure the new lwp has
1485 last_resume_kind set to resume_continue. Assert that when we're
1486 resuming the new lwp, its last_resume_kind is resume_continue.
1488 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1490 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1491 already set when marking the event thread as not executing in
1494 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1496 * infrun.c (handle_inferior_event): Add debug output for
1497 TARGET_WAITKIND_NO_HISTORY.
1499 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1501 * NEWS: Move set/show extended-prompt to "New Options". Expand
1502 description. Fix typos.
1504 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1508 * python/py-param.c (call_doc_function): Correctly deference on
1511 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1513 * ada-tasks.c (print_ada_task_info): Fix computation of
1514 number of tasks displayed in command output.
1516 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1517 Ulrich Weigand <uweigand@de.ibm.com>
1519 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1520 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1521 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1522 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1525 2011-10-20 Cary Coutant <ccoutant@google.com>
1527 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1529 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1530 flag. Adjust all callers.
1531 (process_psymtab_comp_unit): Remove adjustment for type section.
1533 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1535 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1536 arguments by adding OBJFILE. Instead of getting objfile from
1537 symbol's symtab, use new argument OBJFILE.
1538 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1539 arguments by adding OBJFILE.
1540 * gdb/dwarf2read.c (new_symbol_full): Change call to
1541 cp_scan_for_anonymous_namespaces to match new signature.
1542 * gdb/stabsread.c (define_symbol): Change call to
1543 cp_scan_for_anonymous_namespaces to match new signature.
1545 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1550 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1552 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1553 leak. Delete unused variables.
1555 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1559 * python/py-frame.c (frapy_read_var): Use const struct *block.
1560 * python/py-type.c (typy_lookup_typename): Likewise.
1561 (typy_lookup_type): Likewise.
1562 (typy_legacy_template_argument): Likewise.
1563 (typy_template_argument): Likewise.
1564 (gdbpy_lookup_type): Likewise.
1565 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1566 * python/py-block.c (blpy_block_object): Likewise.
1567 (blpy_iter): Likewise.
1568 (blpy_get_start): Likewise.
1569 (blpy_get_end): Likewise.
1570 (blpy_get_function): Likewise.
1571 (blpy_get_superblock): Likewise.
1572 (set_block): Likewise.
1573 (block_to_block_object): Likewise.
1574 (block_object_to_block): Likewise.
1575 (blpy_is_valid): Likewise.
1576 (blpy_get_global_block): New function.
1577 (blpy_get_static_block): New function.
1578 (blpy_is_global): New function.
1579 (blpy_is_static): New function.
1580 * blockframe.c (block_innermost_frame): Likewise.
1581 * valops.c (value_of_variable): Likewise.
1582 * frame.h: Update prototypes.
1583 * python/python-internal.h: Likewise.
1584 * value.h: Likewise.
1586 2011-10-19 Cary Coutant <ccoutant@google.com>
1588 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1591 2011-10-19 Cary Coutant <ccoutant@google.com>
1593 * dwarf2read.c (peek_abbrev_code): New function.
1594 (dw2_get_file_names): Check for dummy compilation units.
1595 (create_debug_types_hash_table): Likewise.
1596 (process_psymtab_comp_unit): Likewise.
1597 (load_partial_comp_unit): Likewise.
1598 (load_full_comp_unit): Likewise.
1600 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1602 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1603 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1604 pt_phdr if PT_PHDR was found.
1606 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1608 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1609 type or "<unnamed type"> when there is no name assigned.
1610 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1611 avoid a sigint when no name is assigned.
1613 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1616 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1617 * dwarf2expr.c (ctx_no_read_reg): New function.
1618 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1619 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1620 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1621 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1623 2011-10-16 Doug Evans <dje@google.com>
1625 * NEWS: Document python gdb.printing.register_pretty_printer's new
1626 `replace' parameter.
1628 2011-10-14 Keith Seitz <keiths@redhat.com>
1631 * eval.c (evaluate_subexp_standard): Do not construct
1632 an array of types; pass the value array directly to
1633 find_overload_match.
1634 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1635 (rank_function): Take an array of values instead of types.
1636 (rank_one_type): Add struct value * parameter.
1637 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1638 (rank_function): For each argument, pass the argument's
1639 value to rank_one_type.
1640 (rank_one_type): Add VALUE parameter.
1641 If the parameter type is a pointer and the argument type
1642 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1644 Update all calls to rank_one_type, passing NULL for new
1646 * valarith.c (value_user_defined_cpp_op): Do not construct
1647 an array of types; pass the value array directly to
1648 find_overload_match.
1649 * valops.c (find_overload_method_list): Take an array of
1650 values instead of types.
1651 Save the type of OBJP for later use.
1652 Update calls to find_oload_champ, and find_oload_champ_namespace.
1653 (find_oload_champ_namespace): Take an array of values instead
1655 (find_oload_champ_namespace_loop): Likewise.
1656 (find_oload_champ): Likewise.
1657 (classify_oload_match): Inspect all arguments
1658 until INCOMPATIBLE is found. Return the worst badness found
1660 (compare_parameters): Update call to rank_one_type.
1661 * value.h (find_overload_match): Take an array of values instead
1664 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1666 Drop lazy lm_info reading.
1667 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1668 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1669 (lm_info_read): New function.
1670 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1671 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1672 lm_dynamic_from_link_map.
1673 (lm_next, lm_prev, lm_name): Remove.
1674 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1675 initialization incl. read_memory. No longer use lm_name.
1676 (svr4_free_so): Drop lm_info->lm freeing.
1677 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1678 explicit lm_addr and lm initialization.
1679 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1680 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1683 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1684 Paul Pluzhnikov <ppluzhnikov@google.com>
1686 * defs.h (struct so_list): New forward declaration.
1687 (make_cleanup_free_so): New declaration.
1688 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1689 (svr4_free_so): Move the function here from downwards. Handle NULL
1691 (svr4_free_library_list): New.
1692 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1693 Use more cleanups. Use new parameter ignore_first instead of
1694 ignore_first_link_map_entry.
1695 (svr4_current_sos): New variable ignore_first, initialize it. New
1696 variable back_to, use it for svr4_free_library_list protection.
1697 (svr4_free_so): Remove - move upwards.
1698 * utils.c: Include solist.h.
1699 (do_free_so, make_cleanup_free_so): New functions.
1701 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1703 Fix internal error regression.
1704 * value.c (value_primitive_field): Handle value_optimized_out. Move
1705 packed bitfields comment.
1707 2011-10-13 Tom Tromey <tromey@redhat.com>
1709 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1712 2011-10-13 Tom Tromey <tromey@redhat.com>
1714 * python/py-type.c (typy_has_key): Make 'field' const.
1716 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1718 * remote.c (remote_save_trace_data): Invert comparison.
1720 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1722 * tracepoint.c (trace_save_command): Use filename instead of
1725 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1727 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1730 2011-10-13 Yao Qi <yao@codesourcery.com>
1733 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1734 whether insn is a 32-bit Thumb-2 instruction.
1735 (thumb_in_function_epilogue_p): Likewise.
1736 (thumb_get_next_pc_raw): Likewise.
1737 (arm_breakpoint_from_pc): Likewise.
1739 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1741 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1742 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1743 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1744 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1745 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1747 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1749 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1750 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1751 clear DATA on zero SIZE.
1753 2011-10-12 Doug Evans <dje@google.com>
1755 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1756 header->first_die_offset here. All callers updated.
1758 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1760 Fix compatibility with texinfo versions older than 4.12.
1761 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1762 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1763 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1764 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1765 * configure: Regenerate.
1766 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1767 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1768 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1770 2011-10-12 Gary Benson <gbenson@redhat.com>
1772 * breakpoint.h (pc_at_non_inline_function): Declare.
1773 * breakpoint.c (is_non_inline_function,
1774 pc_at_non_inline_function): New functions.
1775 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1776 if the stop is at a location where functions cannot be inlined.
1778 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1780 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1781 the core wanted them stopped, or if they now have a pending event
1783 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1784 down to stop_and_resume_callback.
1785 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1786 having new pending events after calling linux_nat_filter_event.
1788 2011-10-11 Sterling Augustine <saugustine@google.com>
1790 * dwarf2read.c: Undo inadvertent changes in previous commit.
1792 2011-10-11 Sterling Augustine <saugustine@google.com>
1794 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1797 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1799 * symfile.c (separate_debug_file_exists): Fix condition.
1801 2011-10-11 David S. Miller <davem@davemloft.net>
1803 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1805 * regcache.h (regcache_restore): Remove declaration.
1807 * gdbarch.sh: New field 'long_long_align_bit'.
1808 * gdbarch.c, gdbarch.h: Regenerate.
1809 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1810 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1812 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1814 Revert this part of:
1815 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1816 Support @entry in input expressions.
1817 * c-exp.y (ENTRY, unknown_cpp_name): New.
1818 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1819 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1820 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1821 (name_not_typename: ENTRY): New.
1822 (yylex): Recognize ENTRY.
1824 Reimplement @entry in input expressions.
1825 * c-exp.y (ENTRY): New.
1826 (variable: name_not_typename ENTRY): New.
1827 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1829 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1831 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1832 parent and child's pids as soon as we detect a clone event.
1833 Adjust another debug message.
1835 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1837 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1838 not zombie instead of reading the whole file.
1840 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1842 Fix separate debuginfo warning with "remote:" access.
1843 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1844 * symfile.c (get_file_crc): New function with the code moved from ...
1845 (separate_debug_file_exists): ... this function, specifically variables
1846 buffer and count. New variable verified_as_different, set it. Remove
1847 file_crc initialization. Verify also if both files are not the same
1848 manually, if needed.
1850 2011-10-11 Yao Qi <yao@codesourcery.com>
1852 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1855 2011-10-10 Doug Evans <dje@google.com>
1857 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1858 libthread_db when we load libpthread or the main symbol file.
1859 (thread_db_inferior_created): New function.
1860 (_initialize_thread_db): Attach inferior_created observer.
1861 * linux-nat.c (linux_child_post_attach): Remove call to
1862 check_for_thread_db.
1863 (linux_child_post_startup_inferior): Ditto.
1864 * objfiles.h (OBJF_MAINLINE): Define.
1865 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1866 allocate_objfile when appropriate.
1868 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1871 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1872 Remove unused variables.
1873 (get_linux_version): Remove function.
1874 (_initialize_arm_linux_nat): Do not call it.
1876 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1878 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1879 new clone lwp if the core asked it to stop. Don't pass on
1880 unexpected signals to the new clone; leave them pending instead.
1882 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1884 * linux-nat.c (resume_lwp): Remove redundant debug output.
1886 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1888 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1889 last_resume_kind before clearing it, and use the copy instead to
1890 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1891 resume_clear_callback in the non-stop path too.
1893 2011-10-09 Yao Qi <yao@codesourcery.com>
1895 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1896 Honor OPTIONS and VAL's type.
1897 (common_val_print, value_print): Update to pass one more parameter.
1899 2011-10-09 Doug Evans <dje@google.com>
1901 Add new "alias" command.
1902 * NEWS: Mention new command.
1903 * command.h (valid_user_defined_cmd_name_p): Declare.
1904 * defs.h (make_cleanup_dyn_string_delete): Declare.
1905 * utils.c: #include "dyn-string.h".
1906 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1907 * cli/cli-cmds.c: #include "dyn-string.h".
1908 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1909 (init_cli_cmds): Add new command.
1910 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1912 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1914 Fix compatibility with older GCCs.
1915 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1916 * stack.c (read_frame_arg): Initialize val_deref.
1918 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1920 Entry values NEWS entries, DWARF disassembly support.
1921 * NEWS: New entry values entry.
1922 (set print entry-values, show print entry-values)
1923 (set debug entry-values, show debug entry-values): New entries.
1924 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1925 indent. Remove variable start. Move header printing out. Respect
1926 INDENT. Support DW_OP_GNU_entry_value.
1927 (locexpr_describe_location_1): Move the header printing here, extend
1928 the disassemble_dwarf_expression passed parameters.
1930 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1932 Display @entry parameter values even for references.
1933 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1934 coerce_ref_if_computed.
1935 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1936 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1937 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1938 existing push_dwarf_reg_entry_value call. Add new detection calling
1939 dwarf_block_to_dwarf_reg_deref. Update the error message.
1940 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1942 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1943 parameter deref_size, describe it in the comment.
1944 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1945 (dwarf_block_to_dwarf_reg_deref): New declaration.
1946 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1947 deref_size, describe it in the function comment. New variables
1948 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1949 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1950 describe it in the function comment. Fetch the alternative block
1951 accoring to DEREF_SIZE.
1952 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1953 (entry_data_value_free_closure, entry_data_value_funcs): New.
1954 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1955 outer_val, target_val, val and addr. Try to fetch and create also
1956 referenced value content.
1957 (pieced_value_funcs): NULL value for coerce_ref.
1958 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1959 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1960 coerce_ref_if_computed.
1961 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1962 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1963 * stack.c (read_frame_arg): Compare also dereferenced values.
1964 * value.c (value_computed_funcs): Make the parameter v const, use
1965 value_lval_const for it.
1966 (value_lval_const, coerce_ref_if_computed): New function.
1967 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1968 * value.h (struct lval_funcs): New field coerce_ref.
1969 (value_computed_funcs): Make the parameter v const.
1970 (value_lval_const, coerce_ref_if_computed): New declarations.
1972 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1974 Support @entry in input expressions.
1975 * c-exp.y (ENTRY, unknown_cpp_name): New.
1976 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1977 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1978 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1979 (name_not_typename: ENTRY): New.
1980 (yylex): Recognize ENTRY.
1981 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1982 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1984 * parse.c (operator_length_standard): Likewise.
1985 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1987 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1989 Display referenced values in backtraces.
1990 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1991 * stack.c (print_frame_arg): Likewise.
1993 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1995 Make some lval_funcs methods to default on NULL.
1996 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1998 (value_assign): Check if lval_computed write method is NULL.
1999 * value.h (struct lval_funcs): Comment NULL values for read and write
2002 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2004 Display @entry parameter values (without references).
2005 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2007 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2009 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2011 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2012 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2014 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2015 (loclist_read_variable_at_entry): New function.
2016 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2017 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2018 DW_AT_location, call dwarf_block_to_sp_offset for it.
2019 * frame.h (print_entry_values_no, print_entry_values_only)
2020 (print_entry_values_preferred, print_entry_values_if_needed)
2021 (print_entry_values_both, print_entry_values_compact)
2022 (print_entry_values_default, print_entry_values): New declarations.
2023 (struct frame_arg): New field entry_kind.
2024 (read_frame_arg): New parameter entryargp.
2025 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2026 arg->entry_kind. Optionally print the `@entry' suffix.
2027 (list_args_or_locals): New variable entryarg, initialize it.
2028 Initialize also entry_kind of arg and entryarg. Conditionalize
2029 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2030 xfree for entryarg.error.
2031 * stack.c (print_entry_values_no, print_entry_values_only)
2032 (print_entry_values_preferred, print_entry_values_if_needed)
2033 (print_entry_values_both, print_entry_values_compact)
2034 (print_entry_values_default, print_entry_values_choices)
2035 (print_entry_values): New variables.
2036 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2037 print the `@entry' suffix, possibly in combination for
2038 print_entry_values_compact.
2039 (read_frame_arg): New parameter entryargp, new variables entryval,
2040 entryval_error and val_equal. Read in also entryargp, respect
2041 print_entry_values, compare the values using val_equal, fill in also
2042 argp->entry_kind (together with entryargp->entry_kind).
2043 (print_frame_args): New variable entryarg, initialize it.
2044 Conditionalize print_frame_arg for arg, add print_frame_arg for
2045 entryarg. Call xfree for entryarg.error.
2046 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2047 * symtab.h (struct symbol_computed_ops): New field
2048 read_variable_at_entry.
2050 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2053 * frame.h (struct frame_arg): New definition.
2054 (read_frame_arg): New declaration.
2055 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2056 (list_args_or_locals): ... the code here. New variable arg, call
2057 read_frame_arg and list_arg_or_local with it. Unify the
2058 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2060 * stack.c (print_frame_arg): New functiom from the code of
2062 (read_frame_arg): New function.
2063 (print_frame_args): Remove variable val. New variable arg, call
2064 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2066 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2068 Protect entry values against self tail calls.
2069 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2070 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2072 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2074 Recognize virtual tail call frames.
2075 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2076 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2077 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2078 * dwarf2-frame-tailcall.c: New file.
2079 * dwarf2-frame-tailcall.h: New file.
2080 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2081 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2082 REGS.PREV only after CIE execution.
2083 (struct dwarf2_frame_cache): New field tailcall_cache.
2084 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2085 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2086 parts, try to find entry_cfa_sp_offset. Call
2087 dwarf2_tailcall_sniffer_first.
2088 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2090 (dwarf2_frame_dealloc_cache): New function.
2091 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2092 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2093 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2094 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2095 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2096 * dwarf2loc.c (func_addr_to_tail_call_list)
2097 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2098 (call_site_find_chain_1, call_site_find_chain): New.
2099 * dwarf2loc.h (struct call_site_chain): New.
2100 (call_site_find_chain): New declaration.
2101 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2102 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2103 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2104 * stack.c (frame_info): Support also TAILCALL_FRAME.
2106 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2108 Tail call sites reader implementation.
2109 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2110 fill in TYPE_TAIL_CALL_LIST.
2111 * gdbtypes.h (struct func_type): New field tail_call_list.
2112 (struct call_site): New field tail_call_next.
2113 (TYPE_TAIL_CALL_LIST): New definition.
2115 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2117 Implement basic support for DW_TAG_GNU_call_site.
2118 * block.c: Include gdbtypes.h and exceptions.h.
2119 (call_site_for_pc): New function.
2120 * block.h (call_site_for_pc): New declaration.
2121 * defs.h: Include hashtab.h.
2122 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2124 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2125 ctx_no_push_dwarf_reg_entry_value.
2126 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2127 (dwarf_block_to_dwarf_reg): New function.
2128 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2129 (ctx_no_push_dwarf_reg_entry_value): New function.
2130 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2131 push_dwarf_reg_entry_value.
2132 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2134 * dwarf2loc.c: Include gdbcmd.h.
2135 (dwarf_expr_ctx_funcs): New forward declaration.
2136 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2137 (dwarf_expr_reg_to_entry_parameter)
2138 (dwarf_expr_push_dwarf_reg_entry_value): New.
2139 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2140 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2141 (needs_dwarf_reg_entry_value): New function.
2142 (needs_frame_ctx_funcs): Install it.
2143 (_initialize_dwarf2loc): New function.
2144 * dwarf2loc.h (entry_values_debug): New declaration.
2145 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2146 (read_call_site_scope): New forward declaration.
2147 (process_full_comp_unit): Copy call_site_htab.
2148 (process_die): Support DW_TAG_GNU_call_site.
2149 (read_call_site_scope): New function.
2150 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2151 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2152 (cleanup_htab): Delete.
2153 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2154 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2155 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2156 FIELD_LOC_KIND_DWARF_BLOCK.
2157 * gdbtypes.h (enum field_loc_kind): New entry
2158 FIELD_LOC_KIND_DWARF_BLOCK.
2159 (struct main_type): New loc entry dwarf_block.
2160 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2161 (TYPE_FIELD_DWARF_BLOCK): New.
2162 * python/py-type.c: Include dwarf2loc.h.
2163 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2164 internal_error call on unknown FIELD_LOC_KIND.
2165 * symtab.h (struct symtab): New field call_site_htab.
2166 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2167 (core_addr_hash, core_addr_eq): New functions.
2169 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2172 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2173 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2174 calling_convention under func_stuff there.
2175 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2176 (init_type) <TYPE_CODE_FUNC>: Likewise.
2177 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2178 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2179 * gdbtypes.h (enum type_specific_kind): Change
2180 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2181 (struct main_type) <type_specific>: Change calling_convention to
2182 func_stuff. Move calling_convention to ...
2183 (struct func_type): ... this new struct.
2184 (INIT_FUNC_SPECIFIC): New #define.
2185 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2187 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2189 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2190 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2191 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2192 ctx->ref_addr_size. Handle its invalid value.
2193 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2194 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2195 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2196 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2197 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2198 (dwarf2_per_cu_ref_addr_size): New function.
2200 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2203 * dwarf2read.c (per_cu_header_read_in): New function.
2204 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2205 variables cu_header_local and cu_headerp.
2207 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2209 Fix initial language detection with -readnow.
2210 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2211 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2212 searches only for global symbols.
2214 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2216 Fix printed anonymous struct name.
2217 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2218 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2219 (anonymous_struct_prefix): New function.
2220 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2221 (dwarf2_name): Strip for anonymous structs any prefixes.
2223 2011-10-07 Doug Evans <dje@google.com>
2225 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2228 * python/lib/gdb/printing.py: Whitespace cleanup.
2230 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2233 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2235 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2236 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2237 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2238 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2239 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2240 (arm_linux_remove_watchpoint): Adjust.
2241 * i386-linux-nat.c (i386_linux_dr_set_control)
2242 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2243 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2244 (ia64_linux_remove_watchpoint): Adjust.
2245 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2246 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2247 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2248 (ppc_linux_insert_mask_watchpoint)
2249 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2250 (ppc_linux_remove_watchpoint): Adjust.
2251 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2254 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2256 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2257 (clear_win32_environment): New function for Cygwin to clear out
2259 (windows_create_inferior): Prepare new environment from in_env
2262 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2265 * python/py-value.c (valpy_call): Check that arguments are
2267 (is_intlike): Remove call to CHECK_TYPEDEF.
2268 (valpy_nonzero): Catch GDB exceptions.
2269 (valpy_absolute): Ditto.
2270 (valpy_lazy_string): Ditto.
2271 (valpy_call): Ditto.
2272 (valpy_get_is_optimized_out): Ditto.
2273 (valpy_long): Ditto.
2274 (valpy_float): Ditto.
2275 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2276 (valpy_richcompare): Ditto.
2278 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2280 * inferior.h (disable_randomization): Declare.
2281 * infrun.c (disable_randomization): New global variable.
2282 (show_disable_randomization): New function.
2283 (set_disable_randomization): Likewise.
2284 (_initialize_infrun): Install set/show disable-randomization
2286 * linux-nat.c (disable_randomization): Remove.
2287 (show_disable_randomization): Likewise.
2288 (set_disable_randomization): Likewise.
2289 (_initialize_linux_nat): No longer install set/show
2290 disable-randomization commands here.
2291 (linux_nat_supports_disable_randomization): New function.
2292 (linux_nat_add_target): Install it.
2293 * remote.c (PACKET_QDisableRandomization): New enum value.
2294 (remote_protocol_packets): Support QDisableRandomization.
2295 (_initialize_remote): Likewise.
2296 (remote_supports_disable_randomization): New function.
2297 (init_remote_ops): Install it.
2298 (extended_remote_supports_disable_randomization): New function.
2299 (init_extended_remote_ops): Install it.
2300 (extended_remote_disable_randomization): New function.
2301 (extended_remote_create_inferior_1): Call it.
2302 * target.h (struct target_ops): Add to_supports_disable_randomization.
2303 (target_supports_disable_randomization): Add prototype.
2304 * target.c (target_supports_disable_randomization): New function.
2305 (find_default_supports_disable_randomization): Likewise.
2306 (init_dummy_target): Install it.
2308 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2310 Allow Python notification of new object-file loadings.
2311 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2312 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2313 Add build rule for this file.
2314 * python/py-event.h (emit_new_objfile_event): New prototype.
2315 (newobjfile): New Python event emitter.
2316 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2317 Python event registry.
2318 * python/py-inferior.c: Include objfiles.h
2319 (python_new_objfile): New function.
2320 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2322 * python/py-newobjfileevent.c: New file.
2323 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2325 * python/python.c (_initialize_python): Add
2326 gdbpy_initialize_new_objfile_event call.
2327 * NEWS: Add item for new Python event "gdb.newobjfile"
2329 2011-10-05 Tristan Gingold <gingold@adacore.com>
2331 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2332 Extract the ravenscar task name from the symbol for the atcb.
2334 2011-10-04 Paul Koning <paul_koning@dell.com>
2336 * python/py-type.c (typy_make_iter): Add forward declaration.
2337 (typy_fields_items): Use the gdb.Type iterator.
2339 2011-10-04 Paul Koning <paul_koning@dell.com>
2341 * NEWS: Add entry for Python gdb.Type mapping methods.
2343 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2345 PR python/12691: Add the inferior to Python exited event
2346 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2348 * python/py-event.h (emit_exited_event): Likewise
2349 * python/-inferior.c (python_inferior_exit): Likewise
2351 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2353 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2354 in output of -ada-task-info GDB/MI command.
2356 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2358 * ada-lang.h (struct inferior): Declare.
2359 (print_ada_task_info): Add declaration.
2360 * ada-tasks.c (print_ada_task_info): Make non-static.
2361 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2362 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2363 * mi/mi-main.c: #include "ada-lang.h".
2364 (mi_cmd_list_features): Add "ada-task-info" to the list
2365 of supported features.
2366 (mi_cmd_ada_task_info): New function.
2368 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2370 * python/python.c (python_run_simple_file): New function.
2371 (source_python_script, source_python_script_for_objfile):
2372 Replace call to PyRun_SimpleFile by call to
2373 python_run_simple_file.
2375 2011-10-03 Paul Koning <paul_koning@dell.com>
2377 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2378 (value_to_value_object): Fetch value if it was lazy.
2380 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2383 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2384 Rearrange the code for it.
2386 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2388 * breakpoint.c (bkpt_print_recreate): Add call to
2389 print_recreate_thread.
2391 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2393 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2394 PTRACE_GETFDPIC_INTERP): Define.
2396 2011-09-28 Yao Qi <yao@codesourcery.com>
2398 * symfile.c (add_symbol_file_command): Update message on usage.
2400 2011-09-28 Paul Koning <paul_koning@dell.com>
2402 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2403 (typy_length, typy_get, typy_has_key, typy_make_iter)
2404 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2405 (typy_iterator_iter, typy_iterator_iternext)
2406 (typy_iterator_dealloc): New functions to implement standard
2407 Python mapping methods on gdb.Type object.
2408 (gdb.TypeIterator): New Python type.
2409 * python/python-internal.h (gdbpy_iter_kind): New enum.
2411 2011-09-28 David S. Miller <davem@davemloft.net>
2413 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2414 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2415 * sparc-tdep.c (sparc_complex_floating_p): New function.
2416 (sparc32_store_arguments): Handle complex floats.
2417 (sparc32_extract_return_value): Likewise.
2418 (sparc32_store_return_value): Likewise.
2419 (sparc32_stabs_argument_has_addr): Likewise.
2420 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2421 (sparc64_store_floating_fields): Handle complex floats.
2422 (sparc64_store_arguments): Likewise.
2423 (sparc64_store_return_value): Likewise.
2425 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2427 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2428 before the change on 2006-12-09.
2429 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2430 generates the environment block for CreateProcessA, modulo the
2431 Cygwin-specific parts that are not needed here.
2433 2011-09-27 Tristan Gingold <gingold@adacore.com>
2435 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2436 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2437 (darwin_solib_get_all_image_info_addr_at_init): New function.
2438 (darwin_solib_read_all_image_info_addr): Likewise.
2439 (darwin_solib_create_inferior_hook): Use the above two functions.
2440 * darwin-nat.c (darwin_execvp): Renames retval to res.
2441 (darwin_read_write_inferior): Update comment.
2442 (darwin_read_dyld_info): New function.
2443 (darwin_xfer_partial): Handle DYLD_INFO.
2445 2011-09-27 Stan Shebs <stan@codesourcery.com>
2447 Add return address collection for tracepoints.
2448 * tracepoint.c (encode_actions_1): Add case for $_ret.
2449 (validate_actionline): Check for $_ret.
2450 (trace_dump_actions): Ditto.
2451 * ax-gdb.h (gen_trace_for_return_address): Declare.
2452 * ax-gdb.c: Include arch-utils.h.
2453 (gen_trace_for_return_address): New function.
2454 (agent_command): Add return address special case.
2455 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2456 (amd64_gen_return_address): New function.
2457 (amd64_init_abi): Call it.
2458 * i386-tdep.c: Include ax.h and ax-gdb.h.
2459 (i386_gen_return_address): New function.
2460 (i386_init_abi): Call it.
2461 * arch-utils.h (default_gen_return_address): Declare.
2462 * arch-utils.c (default_gen_return_address): New function.
2463 * gdbarch.sh (gen_return_address): New method.
2464 * gdbarch.h, gdbarch.c: Regenerate.
2466 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2469 * i386-tdep.c (i386_frame_align): New.
2470 (i386_gdbarch_init): Use i386_frame_align.
2472 2011-09-23 Yao Qi <yao@codesourcery.com>
2474 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2477 2011-09-22 Tristan Gingold <gingold@adacore.com>
2479 * fork-child.c (fork_inferior): Add exec_fun parameter.
2480 Call exec_fun or execvp.
2481 * inferior.h: Adjust prototype.
2482 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2483 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2484 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2485 * procfs.c (procfs_create_inferior): Ditto.
2486 * darwin-nat.c (darwin_execvp): New function.
2487 (darwin_create_inferior): Use it.
2489 2011-09-22 Yao Qi <yao@codesourcery.com>
2491 * infrun.c (context_switch): Print debug message when switching to
2494 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2496 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2497 complex and vector types.
2498 (s390_return_value_convention): Likewise.
2500 (s390_value_from_register): Call check_typedef.
2501 (extend_simple_arg): Likewise.
2502 (alignment_of): Likewise.
2503 (s390_push_dummy_call): Likewise.
2504 (s390_return_value): Likewise.
2506 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2508 * event-top.c (async_disconnect): If an exception is thrown from
2509 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2511 * top.c (quit_cover): Return void and take no arguments.
2512 * top.h (quit_cover): Update prototype.
2514 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2516 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2517 current_uiout, not uiout.
2519 2011-09-19 Doug Evans <dje@google.com>
2521 * python/py-auto-load.c (source_section_scripts): Fix file
2523 * python/python.c (source_python_script_for_objfile): Tweak comments.
2525 2011-09-18 Yao Qi <yao@codesourcery.com>
2526 Ulrich Weigand <ulrich.weigand@linaro.org>
2528 Support displaced stepping for Thumb 16-bit insns.
2529 * arm-tdep.c (THUMB_NOP) Define.
2530 (thumb_copy_unmodified_16bit): New.
2531 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2532 (thumb_copy_alu_reg): New.
2533 (arm_copy_svc): Move some common code to ...
2534 (install_svc): ... here. New.
2535 (thumb_copy_svc): New.
2536 (install_pc_relative): New.
2537 (thumb_copy_pc_relative_16bit): New.
2538 (thumb_decode_pc_relative_16bit): New.
2539 (thumb_copy_16bit_ldr_literal): New.
2540 (thumb_copy_cbnz_cbz): New.
2541 (cleanup_pop_pc_16bit_all): New.
2542 (thumb_copy_pop_pc_16bit): New.
2543 (thumb_process_displaced_16bit_insn): New.
2544 (thumb_process_displaced_32bit_insn): New.
2545 (thumb_process_displaced_insn): process thumb instruction.
2547 Support displaced stepping for Thumb 32-bit insns.
2548 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2549 (thumb2_copy_preload): New.
2550 (thumb2_copy_copro_load_store): New.
2551 (thumb2_copy_b_bl_blx): New.
2552 (thumb2_copy_alu_imm): New.
2553 (thumb2_copy_load_reg_imm): New.
2554 (thumb2_copy_load_literal): New
2555 (thumb2_copy_block_xfer): New.
2556 (thumb_32bit_copy_undef): New.
2557 (thumb_32bit_copy_unpred): New.
2558 (thumb2_decode_ext_reg_ld_st): New.
2559 (thumb2_decode_svc_copro): New.
2560 (decode_thumb_32bit_store_single_data_item): New.
2561 (thumb_copy_pc_relative_32bit): New.
2562 (thumb_decode_pc_relative_32bit): New.
2563 (decode_thumb_32bit_ld_mem_hints): New.
2564 (thumb2_copy_table_branch): New
2565 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2568 2011-09-18 Yao Qi <yao@codesourcery.com>
2570 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2571 (install_b_bl_blx): Likewise.
2573 2011-09-17 Yao Qi <yao@codesourcery.com>
2575 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2576 (install_load_store): ... this. New.
2577 Change parameter BYTE to SIZE.
2578 (arm_copy_ldr_str_ldrb_strb): Update caller.
2579 (arm_decode_ld_st_word_ubyte): Update caller.
2581 2011-09-17 Yao Qi <yao@codesourcery.com>
2583 * infrun.c (displaced_step_fixup): Move some code ...
2584 (displaced_step_restore): ... here. New function.
2585 (handle_inferior_event): Cleanup displaced stepping state for both
2586 child and parent when get forked or vforked event.
2587 * regcache.c (get_thread_arch_aspace_regcache): New function.
2588 get_thread_arch_regcache (): Call it.
2590 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2592 * ada-tasks.c (print_ada_task_info): New function, merging
2593 short_task_info and info_tasks together. Reimplement using
2594 ui-out instead of printing to stdout directly. Move the code
2595 building and checking the task list here, instead of leaving it
2596 in info_tasks_command.
2597 (info_task): Move the code building and checking the task
2598 list here, instead of leaving it in info_tasks_command.
2599 (info_tasks_command): Delete code building and checking
2600 the task list - moved elsewhere. Update calls to info_tasks
2603 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2605 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2607 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2609 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2611 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2613 * ada-lang.h (ada_build_task_list): Remove parameter
2615 * ada-tasks.c (ada_build_task_list): Remove parameter
2616 `warn_if_null'. Adjust implementation and documentation.
2617 (valid_task_id, ada_get_environment_task)
2618 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2619 (info_tasks_command): Adjust implementation.
2620 (task_command): Likewise.
2621 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2622 to ada_build_task_list.
2624 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2626 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2627 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2628 (ada_tasks_inferior_data_handle): New static global.
2629 (get_ada_tasks_inferior_data): New function.
2630 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2631 (ada_get_environment_task, iterate_over_live_ada_tasks)
2632 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2634 (ada_set_current_inferior_known_tasks_addr): New function.
2635 (read_known_tasks, ada_build_task_list, short_task_info)
2636 (info_tasks, info_task, info_tasks_command, task_command_1)
2637 (task_command, ada_task_list_changed): Adjust.
2638 (ada_tasks_invalidate_inferior_data): New function.
2639 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2640 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2641 * ada-lang.h (struct inferior): Add declaration.
2642 (ada_task_list_changed): Update profile.
2643 * remote-wtx-pd.c: #include "inferior.h".
2644 (switch_to_pd_internal): Update call to ada_task_list_changed.
2646 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2648 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2649 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2650 (atcb_fieldno): Delete these static globals.
2651 (struct ada_tasks_pspace_data): New struct.
2652 (ada_tasks_pspace_data_handle): New static global.
2653 (get_ada_tasks_pspace_data): New function.
2654 (ada_tasks_invalidate_pspace_data): New function.
2655 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2656 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2657 (_initialize_tasks): Create this module's per-progspace
2660 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2662 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2664 2011-09-16 Tristan Gingold <gingold@adacore.com>
2666 * fork-child.c (fork_inferior): Update comment. Use alloca
2667 instead of xmalloc for argv. Move len and shell_command
2668 declarations in the block where they are used.
2669 Only call execvp. Factorize failure code.
2671 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2674 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2675 `exp_element' instead of an element of the same and make the function
2677 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2678 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2679 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2680 Change argument of `write_exp_elt' function call.
2681 Remove extra spaces from comments.
2682 * parser-defs.h (write_exp_elt): Remove prototype.
2684 2011-09-15 Paul Koning <paul_koning@dell.com>
2686 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2687 count of item appended to list.
2688 * python/py-type.c (typy_fields): Likewise.
2690 2011-09-15 Paul Koning <paul_koning@dell.com>
2692 * MAINTAINERS (Write After Approval): Add myself to the list.
2694 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2697 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2698 processes with multiple threads.
2699 (inf_has_multiple_thread_cb): New function.
2700 (inf_has_multiple_threads): New function.
2702 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2704 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2705 * python/py-inferior.c (GdbMethods): New Python method definition.
2707 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2709 Handle multiple breakpoint hits in Python interface:
2710 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2711 variable to breakpoints.
2712 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2713 bps instead of single breakpoint. Fix some space typos.
2714 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2715 variable to breakpoints.
2717 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2719 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2720 note if the breakpoint is internal.
2722 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2724 * MAINTAINERS (Write After Approval): Add myself to the list
2726 2011-09-14 Pedro Alves <pedro@codesourcery.com>
2728 * infrun.c (prepare_for_detach, wait_for_inferior)
2729 (fetch_inferior_event): Don't flush the register cache.
2730 * remote.c (struct stop_reply) <regcache>: Add comment.
2732 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2734 Remove excessive DWARF expressions memory duplication.
2735 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2737 (indirect_pieced_value): Remove variable result. Remove variable
2738 back_to and its use for baton.data.
2739 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2741 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2742 Update the function comment.
2744 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2746 * inferior.h (ALL_INFERIORS): New.
2747 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2748 for a stopped thread.
2749 (thread_db_find_new_threads): Look for threads in all inferiors.
2751 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2753 * breakpoint.c (update_watchpoint): Handle the case of the
2754 watchpoint to update not being in the breakpoint list yet.
2755 (hw_watchpoint_use_count): New, factored out from
2756 hw_watchpoint_used_count.
2757 (hw_watchpoint_used_count): Rename to ...
2758 (hw_watchpoint_used_count_others): ... this. Add `except'
2759 parameter. Don't count resources of `except'. Use
2760 hw_watchpoint_use_count.
2762 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2764 * gdbthread.h (enum thread_state): Moved here.
2765 (struct thread_info): Rename `executing_' field to `executing' and
2766 `state_' to `state'.
2767 * thread.c (enum thread_state): Moved to gdbthread.h.
2768 (new_thread, add_thread_silent, delete_thread_1)
2769 (any_live_thread_of_process, thread_alive, set_running)
2770 (set_running, is_thread_state, any_running, is_executing)
2771 (set_executing, finish_thread_state, print_thread_info)
2772 (do_captured_thread_select): Adjust.
2774 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2776 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2777 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2779 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2780 Matt Rice <ratmice@gmail.com>
2784 * interps.c (struct interp) <interpreter_out>: Delete field.
2785 (interp_new): Remove the data and uiout parameters and adjust.
2786 (interp_set): Only set the current_uiout from the interpreter's
2787 uiout after initializing the interpreter. Adjust call to
2789 (interp_ui_out): Adjust to call procs->ui_out_proc.
2790 (interp_data, interp_name): New.
2791 * interps.h (interp_init_ftype): Add `self' parameter.
2792 (interp_ui_out_ftype): New typedef.
2793 (struct interp_procs) <ui_out_proc>: New method pointer.
2794 (interp_new): Remove the data and uiout parameters.
2795 (interp_data, interp_name): Declare.
2796 * tui/tui-interp.c (tui_init): Adjust prototype.
2798 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2799 tui_out here. Adjust call to interp_new.
2800 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2801 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2803 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2804 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2805 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2806 Initialize mi->uiout depending on the mi_version as extracted from
2807 the interpreter's name.
2809 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2810 interp_new. Don't allocate the ui_out's of the interpreters here.
2812 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2814 * solib.c (solib_used): New function.
2815 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2816 by another so_list object before freeing it.
2818 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2821 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2824 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2827 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2828 (amd64_skip_xmm_prologue): ... this new function. Describe its
2829 parameters. No longer use amd64_prologue_line_bug.
2830 * defs.h (producer_is_gcc_ge_4): New declaration.
2831 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2832 (process_full_comp_unit): Update its caller. Remove
2833 amd64_prologue_line_bug initialization.
2834 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2835 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2837 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2839 * linux-nat.h (enum resume_kind): New.
2840 (struct lwp_info) <last_resume_kind>: New field.
2841 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2842 resume_stop on the new lwp.
2843 (add_lwp): Set last_resume_kind as resume_continue by default.
2844 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2845 (resume_lwp): New, factored out from resume_callback. Also check
2846 for pending status in lp->waitstatus.
2847 (resume_callback): Reimplement.
2848 (resume_clear_callback): Set last_resume_kind as resume_stop.
2849 (resume_set_callback): Set last_resume_kind as resume_continue.
2850 (linux_nat_resume, linux_handle_extended_wait): Set
2852 (running_callback): Also check lp->waitstatus for pending events.
2853 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2855 (stop_and_resume_callback): Don't re-resume if the core wanted the
2856 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2857 using an invalidated pointer.
2858 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2859 SIGSTOPs if the core wanted the LWP to stop.
2860 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2861 wanted the lwp to stop. If the core wanted the lwp to stop, and
2862 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2863 of TARGET_SIGNAL_STOP.
2864 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2865 here. Instead, signal the lwp, and set the last_resume_kind to
2868 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2870 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2871 -1 (error), if the lwp exits right after attaching.
2873 2011-09-08 Doug Evans <dje@google.com>
2875 * py-cmd.c: Some minor formatting fixes.
2876 (gdbpy_parse_command_name): Rename text arg to name, make const.
2877 All callers updated.
2878 * python-internal.h (gdbpy_parse_command_name): Update.
2880 * cli/cli-decode.c (add_cmd): Add comment.
2882 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2884 PR breakpoints/12435
2885 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2886 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2887 * dwarf2read.c (process_full_comp_unit): Initialize
2888 amd64_prologue_line_bug.
2889 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2891 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2893 Fix TUI screen corruption.
2894 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2897 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2899 * findvar.c (read_var_value): Never return NULL, throw an error
2900 instead. Update the function comment. State symbol name in the error
2902 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2904 * stack.c (print_frame_args): Likewise.
2905 * valops.c (value_of_variable): Likewise.
2907 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2909 * stack.c (print_frame_args): New variable except. Wrap
2910 read_var_value and common_val_print into TRY_CATCH.
2912 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2914 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2915 caller to value_of_this.
2916 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2918 * valops.c (value_of_this): Remove parameter complain and variable ret.
2919 Update function comment. Never return NULL by this code.
2920 (value_of_this_silent): New function.
2921 * value.h (value_of_this): Remove parameter complain.
2922 (value_of_this_silent): New declaration.
2924 2011-09-07 Yao Qi <yao@codesourcery.com>
2926 * gdbthread.h (struct thread_info): Remove fields
2927 `stepping_through_solib_after_catch' and
2928 `stepping_through_solib_catchpoints'.
2929 * infrun.c (init_thread_stepping_state): Update.
2930 (process_event_stop_test, currently_stepping): Update.
2931 (currently_stepping_or_nexting_callback): Update.
2933 2011-09-07 Yao Qi <yao@codesourcery.com>
2935 * gdbthread.h (struct thread_info): Comment on field
2936 `step_after_step_resume_breakpoint'.
2938 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2940 * remote.c (remote_console_output): Reindent.
2942 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
2944 * frame.c (has_stack_frames): Check for currently selected
2947 2011-09-06 Pedro Alves <pedro@codesourcery.com>
2949 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2950 (set_async_annotation_level, set_async_prompt, pop_prompt)
2951 (push_prompt, new_async_prompt): Delete declarations.
2952 * top.h (get_prompt, set_prompt): Change prototype.
2953 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2955 * top.c (command_loop):
2956 (top_prompt): New global.
2957 (get_prefix, set_prefix, get_suffix, ): Delete.
2958 (get_prompt, set_prompt): Rewrite.
2959 (show_new_async_prompt): Rename to ...
2960 (show_prompt): ... this.
2961 (init_main): Adjust. Don't handle --annotate=2 here.
2962 * event-top.c (new_async_prompt): Delete.
2963 (the_prompts): Delete.
2964 (more_to_come): Make static.
2965 (display_gdb_prompt): Use top_level_prompt() to compute the top
2966 level prompt, and don't notify the before_prompt observers
2967 directly here. Always trick readline into not trying to display
2968 the prompt if sync_execution and displaying the primary prompt.
2969 If displaying a local/secondary prompt, always show it, even if
2970 sync_execution is set.
2971 (change_annotation_level): Delete.
2972 (top_level_prompt): New, based on change_annotation_level.
2973 (push_prompt, pop_prompt): Delete.
2974 (async_disable_stdin): No longer pushes prompt.
2975 (command_line_handler): No longer pushes or pops prompt. If more
2976 input is expected, call display_gdb_prompt with an explicit empty
2978 (async_stop_sig): Adjust.
2979 (set_async_annotation_level, set_async_prompt): Delete.
2980 * python/python.c (before_prompt_hook): Adjust.
2982 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2986 * infrun.c (fetch_inferior_event): Check if there's a selected
2987 thread before checking if the selected thread is executing.
2989 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2991 * inf-loop.c (execute_command): Don't check if the current thread
2992 if running before synchronously waiting for command completion.
2993 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2995 (normal_stop): Call async_enable_stdin here.
2996 * inf-loop.c (inferior_event_handler): Don't call
2997 async_enable_stdin, nor handle "set exec-done-display" here.
2999 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3003 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3005 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3007 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3009 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3011 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3013 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3015 2011-09-02 Matt Rice <ratmice@gmail.com>
3018 * event-top.c (cli_command_loop): Replace readline setup with
3019 direct call to display_gdb_prompt.
3020 (display_gdb_prompt): Do not call observer mechanism during
3021 synchronous execution.
3023 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3025 * linux-nat.c (in_pid_list_p): New.
3026 (linux_record_stopped_pid): Delete.
3027 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3028 already attached to the LWP. Return an indication if so.
3029 (linux_nat_filter_event): Adjust.
3030 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3031 returning an indication to ignore this thread.
3033 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3035 * top.c: Include interps.h.
3036 (execute_command): If the target can async, but the interpreter is
3037 in sync mode, synchronously wait for the command to finish before
3039 (execute_command_to_string): Force the interpreter to sync mode.
3040 * infrun.c: Include interps.h.
3041 (fetch_inferior_event): Don't restore the prompt yet if the
3042 interpreter is in sync mode.
3043 * interps.c (interpreter_async): New global.
3044 * interps.h (interpreter_async): Declare.
3045 * inf-loop.c: Include interps.h.
3046 (inferior_event_handler): Don't print the language change or run
3047 breakpoint commands yet if the interpreter in is sync mode.
3048 * main.c (captured_command_loop): Flip the interpreter to async
3050 * cli/cli-script.c: Include interps.h.
3051 (execute_user_command, while_command, if_command): Force the
3052 interpreter to sync mode.
3053 * python/python.c: Include interps.h.
3054 (python_command, execute_gdb_command): Force the interpreter to
3057 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3059 * value.c (show_convenience): Catch errors thrown while printing
3060 each internal variable.
3061 * infrun.c (validate_siginfo_access): New function.
3062 (siginfo_value_read, siginfo_value_write): Call it.
3064 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3067 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3068 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3071 2011-08-29 Yao Qi <yao@codesourcery.com>
3073 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3075 (enable_break2): Update caller.
3076 * solib-frv.c (bfd_lookup_symbol): Removed.
3078 (enable_break2): Update caller.
3079 * solib-pa64.c (bfd_lookup_symbol): Removed.
3081 * solib-svr4.c (bfd_lookup_symbol): Removed.
3082 (cmp_name_and_sec_flags): New.
3083 (enable_break): Update caller.
3084 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3085 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3086 (gdb_bfd_lookup_symbol): New.
3087 * solib.h: Functions declarations.
3089 2011-08-29 Yao Qi <yao@codesourcery.com>
3091 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3094 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3096 Fix TUI stepi on code without symbols.
3097 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3100 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3103 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3104 and the static keyword.
3105 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3106 Make prefix an array.
3107 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3108 * mi/mi-main.c (get_register): Remove stb initialization and the static
3111 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3113 Code cleanup - make mi_opt const.
3114 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3116 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3117 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3118 (mi_cmd_env_dir): Likewise.
3119 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3120 (mi_cmd_target_file_put): Likewise.
3121 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3122 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3123 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3124 (mi_valid_noargs): Make opts const.
3125 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3126 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3127 (mi_cmd_data_read_memory): Likewise.
3128 (mi_cmd_data_read_memory_bytes): Likewise.
3129 (mi_cmd_data_write_memory): Likewise.
3131 2011-08-26 Matt Rice <ratmice@gmail.com>
3133 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3134 bcache_xmalloc, replace bcache_xmalloc with call to
3135 psymbol_bcache_init for psymbol_cache.
3136 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3138 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3140 * inf-loop.c (inferior_event_handler): Add exception_print in
3143 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3145 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3146 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3147 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3148 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3149 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3150 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3151 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3152 * infrun.c (fetch_inferior_event): Call
3153 make_bpstat_clear_actions_cleanup.
3154 * top.c (execute_command): New variable cleanup_if_error, call
3155 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3156 * utils.c (do_bpstat_clear_actions_cleanup)
3157 (make_bpstat_clear_actions_cleanup): New functions.
3159 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3161 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3162 either the parent or the child forks. Rename a couple locals.
3164 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3166 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3167 library call. Avoid reading the `status' local if all waitpid
3170 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3172 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3173 opening /proc/PID/task always succeeds.
3175 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3177 * linespec.c (symtab_from_filename): Check for the end of string.
3179 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3182 * varobj.c (cplus_describe_child): Add the keyword
3183 'class' to the output of the method when dealing
3184 with a cast to a base class.
3186 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3188 No functionality change.
3189 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3190 function comment a reference, new variables tp and bs, move here code
3191 from throw_exception.
3192 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3193 describe it in the comment.
3194 * exceptions.c (throw_exception): Remove variable tp, move the code for
3195 bpstat_clear_actions to bpstat_clear_actions.
3197 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3199 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3200 * linux-nat.c: Include linux-procfs.h.
3201 (linux_proc_get_tgid): Move to ...
3202 * common/linux-procfs.c: ... here. New file.
3203 * common/linux-procfs.h: New file.
3204 * linux-thread-db.c: Include linux-procfs.h.
3205 * Makefile.in: Update dependencies.
3206 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3207 * config/arm/linux.mh: Likewise.
3208 * config/i386/linux.mh: Likewise.
3209 * config/i386/linux64.mh: Likewise.
3210 * config/ia64/linux.mh: Likewise.
3211 * config/m32r/linux.mh: Likewise.
3212 * config/m68k/linux.mh: Likewise.
3213 * config/mips/linux.mh: Likewise.
3214 * config/pa/linux.mh: Likewise.
3215 * config/pa/linux.mh: Likewise.
3216 * config/powerpc/linux.mh: Likewise.
3217 * config/powerpc/ppc64-linux.mh: Likewise.
3218 * config/powerpc/spu-linux.mh: Likewise.
3219 * config/sparc/linux.mh: Likewise.
3220 * config/sparc/linux64.mh: Likewise.
3221 * config/xtensa/linux.mh: Likewise.
3223 2011-08-24 Hui Zhu <teawater@gmail.com>
3225 * tracepoint.c (cond_string_is_same): New function.
3226 (find_matching_tracepoint): Add condition check
3227 by cond_string_is_same.
3229 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3231 Fix build error in Darwin port.
3232 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3234 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3237 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3238 (command_line_is_silent): New function.
3239 (bpstat_do_actions_1): No longer use commands_left, use
3240 command_line_is_silent for commands.
3241 (bpstat_alloc): Remove clearing of commands_left.
3242 (bpstat_stop_status): Remove initialization of commands_left, use
3243 command_line_is_silent.
3244 * breakpoint.h (struct bpstats): Remove commands_left.
3246 2011-08-18 Keith Seitz <keiths@redhat.com>
3249 * cp-name-parser.y (struct demangle_info): Remove unused
3252 (allocate_info): Change return type to struct demangle_info *.
3253 Always allocate a new demangle_info.
3254 Remove unused PREV pointer.
3255 (cp_new_demangle_parse_info): New function.
3256 (cp_demangled_name_parse_free): New function.
3257 (do_demangled_name_parse_free_cleanup): New function.
3258 (make_cleanup_cp_demangled_name_parse_free): New function.
3259 (cp_demangled_name_to_comp): Change return type to
3260 struct demangle_parse_info *.
3261 Allocate a new storage for each call.
3262 (main): Update usage for cp_demangled_name_to_comp
3264 * cp-support.h (struct demangle_parse_info): New structure.
3265 (cp_demangled_name_to_comp): Update API change for
3267 (cp_new_demangle_parse_info): Declare.
3268 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3269 (cp_demangled_name_parse_free): Declare.
3270 * cp-support.c (cp_canonicalize_string): Update API
3271 change for cp_demangled_name_to_comp.
3272 (mangled_name_to_comp): Likewise.
3273 Return struct demangle_parse_info, too.
3274 (cp_class_name_from_physname): Update mangled_name_to_comp
3276 (method_name_from_physname): Likewise.
3277 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3278 (cp_remove_params): Likewise.
3279 * python/py-type.c (typy_legacy_template_argument): Likewise.
3281 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3282 (cp_merge_demangle_parse_infos): Declare.
3283 * cp-support.c (ignore_typedefs): New file global.
3284 (copy_string_to_obstack): New function.
3285 (inspect_type): New function.
3286 (replace_typedefs): New function.
3287 (replace_typedefs_qualified_name): New function.
3288 (cp_canonicalize_string_no_typedefs): New function.
3289 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3290 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3291 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3292 instead of cp_canonicalize_string.
3293 (find_method): Likewise.
3294 (decode_compound): Before looking up the name, call
3295 cp_canonicalize_string_no_typedefs.
3296 (decode_variable): Likewise.
3298 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3299 Tom Tromey <tromey@redhat.com>
3300 Matt Rice <ratmice@gmail.com>
3302 * python/lib/gdb/prompt.py: New file.
3303 * python/lib/gdb/command/prompt.py: New file.
3304 * NEWS: Document set extended-prompt and gdb.prompt library
3306 2011-08-16 Yao Qi <yao@codesourcery.com>
3308 * tic6x-linux-tdep.c: Move const arrays definition from here...
3309 * tic6x-tdep.c: to here ...
3311 2011-08-14 Yao Qi <yao@codesourcery.com>
3313 * NEWS: New port to Texas Instruments TMS320C6x.
3315 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3316 Bernd Schmidt <bernds@codesourcery.com>
3317 Yao Qi <yao@codesourcery.com>
3319 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3320 * solib-dsbt.c: New file. Support DSBT shared object.
3321 * tic6x-linux-tdep.c: New file.
3322 * tic6x-tdep.c: New file.
3323 * tic6x-tdep.h: New file.
3325 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3326 Yao Qi <yao@codesourcery.com>
3328 * remote.c (PACKET_qXfer_fdpic): New enum value.
3329 (remote_protocol_features): Add qXfer:fdpic:read packet.
3330 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3331 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3332 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3334 2011-08-14 Yao Qi <yao@codesourcery.com>
3336 Target description for tic6x.
3337 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3338 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3339 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3340 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3341 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3342 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3343 * features/tic6x-c64xp-linux.xml: New.
3344 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3345 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3346 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3347 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3348 * regformats/tic6x-c64xp.dat,
3349 regformats/tic6x-c62x-linux.dat: Generated.
3350 * regformats/tic6x-c64x-linux.dat,
3351 regformats/tic6x-c64xp-linux.dat: Generated.
3352 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3353 features/tic6x-*.c files.
3354 Add regformats/tic6x-*.dat files.
3356 2011-08-12 Doug Evans <dje@google.com>
3358 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3359 * python/py-symbol.c (sympy_get_type): New function.
3360 (symbol_object_getset): Add "type".
3362 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3366 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3368 (tui_show_register_group): Don't store a byte buffer in the data
3370 (tui_register_format): Skip registers with an empty name.
3371 (tui_get_register): Store a struct value in the data element's
3372 value field instead of a byte buffer holding the raw register
3373 contents. Account for optimized-out and unavailable registers
3374 when comparing register contents.
3376 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3378 * printcmd.c (current_display_number): Update comment.
3379 (disable_current_display_cleanup): Delete.
3380 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3381 catch errors thrown while evaluating and printing the display.
3383 2011-08-09 Tom Tromey <tromey@redhat.com>
3385 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3387 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3389 * elfread.c (elf_symtab_read): Rework comments.
3390 * maint.c (maintenance_command): Ditto.
3391 * somread.c (som_symtab_read): Ditto.
3392 * solib.c (solib_find, solib_map_sections, update_solib_list)
3393 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3394 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3395 (sharedlibrary_command, no_shared_libraries): Ditto.
3396 * solib-irix.c (locate_base, disable_break, enable_break)
3397 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3398 (irix_current_sos, irix_open_symbol_file_object)
3399 (irix_special_symbol_handling): Ditto.
3400 * solib-sunos.c (locate_base, first_link_map_member)
3401 (sunos_current_sos, disable_break, enable_break)
3402 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3404 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3405 (open_symbol_file_object, svr4_current_sos, enable_break)
3406 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3408 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3409 (frv_current_sos, enable_break, frv_special_symbol_handling)
3410 (frv_solib_create_inferior_hook): Ditto.
3411 * solist.h (struct target_so_ops): Extend the comments of the
3412 special_symbol_handling, current_sos and open_symbol_file_object
3415 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3417 * python/lib/gdb/__init__.py: Auto-load files in command and
3418 function directories.
3419 * python/python.c (finish_python_initialization): Use
3421 * python/lib/gdb/command/pretty_printers.py: Self register
3423 * NEWS: Document auto-loading.
3425 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3427 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3428 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3429 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3431 2011-08-08 Tom Tromey <tromey@redhat.com>
3433 * breakpoint.c (clean_up_filters): Remove.
3434 (catch_syscall_split_args): Use VEC_cleanup.
3436 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3438 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3439 (main): Uncomment "Demangling error\n".
3441 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3443 * solib-target.c (segment_attributes): Make them static.
3444 (section_attributes, library_children, library_attributes): Likewise.
3445 (library_list_children, library_list_attributes): Likesise.
3446 (library_list_elements): Likewise.
3448 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3450 * exceptions.c (throw_exception): Don't disable the current
3452 * printcmd.c (disable_current_display_cleanup): New function.
3453 (do_one_display): Install a cleanup to disable the current display
3454 if doing the display throws.
3456 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3458 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3459 initialization of the tp_new member to the corresponding
3460 gdbpy_initialize_* function.
3461 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3462 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3463 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3464 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3465 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3467 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3469 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3470 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3471 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3472 references to current_uiout.
3474 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3476 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3477 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3478 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3479 * top.c (gdb_readline_wrapper): Adjust.
3480 * tui/tui-interp.c (tui_command_loop):
3481 (_initialize_tui_interp): Don't install it.
3483 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3485 * ui-out.h (uiout): Rename to ...
3486 (current_uiout): ... this.
3487 * ui-out.c (uiout): Rename to ...
3488 (current_uiout): ... this.
3489 * ada-lang.c (print_it_exception, print_one_exception)
3490 (print_mention_exception): Adjust.
3491 * breakpoint.c (watchpoint_check): Adjust.
3492 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3493 (default_collect_info, watchpoints_info, print_one_catch_fork)
3494 (print_one_catch_vfork, print_one_catch_syscall)
3495 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3496 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3497 (print_it_watchpoint, print_mention_watchpoint)
3498 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3499 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3500 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3501 (bkpt_print_mention, momentary_bkpt_print_it)
3502 (tracepoint_print_mention, update_static_tracepoint)
3503 (tracepoints_info, save_breakpoints): Adjust.
3504 * cli-out.c (field_separator): Adjust.
3505 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3506 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3507 * frame.c (get_current_frame): Adjust.
3508 * infcmd.c (run_command_1, print_return_value): Adjust.
3509 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3510 * infrun.c (print_end_stepping_range_reason): Adjust.
3511 (print_signal_exited_reason, print_exited_reason): Adjust.
3512 (print_signal_received_reason, print_no_history_reason): Adjust.
3513 * interps.c (interp_set): Adjust.
3514 * osdata.c (info_osdata_command): Adjust.
3515 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3516 * remote-fileio.c (remote_fileio_request): Adjust.
3517 * remote.c (show_remote_cmd): Adjust.
3518 * solib.c (info_sharedlibrary_command): Adjust.
3519 * source.c (print_source_lines_base): Adjust.
3520 * stack.c (print_stack_frame): Adjust.
3521 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3522 * symfile-mem.c (add_vsyscall_page): Adjust.
3523 * symfile.c (load_progress, generic_load)
3524 (print_transfer_performance): Adjust.
3525 * thread.c (info_threads_command, restore_selected_frame)
3526 (thread_command): Adjust.
3527 * top.c (make_cleanup_restore_ui_file): Adjust.
3528 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3529 (print_one_static_tracepoint_marker): Adjust.
3530 * cli/cli-cmds.c (print_disassembly): Adjust.
3531 * cli/cli-decode.c (print_doc_line): Adjust.
3532 * cli/cli-interp.c (safe_execute_command): Adjust.
3533 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3534 (handle_redirections): Adjust.
3535 * cli/cli-script.c (show_user_1): Adjust.
3536 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3537 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3538 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3539 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3540 (mi_cmd_env_dir): Adjust.
3541 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3542 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3543 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3544 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3545 (list_args_or_locals): Adjust.
3546 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3547 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3548 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3549 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3550 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3551 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3552 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3553 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3554 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3555 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3556 (list_available_thread_groups, mi_cmd_list_thread_groups)
3557 (mi_cmd_data_list_register_names)
3558 (mi_cmd_data_list_changed_registers)
3559 (mi_cmd_data_list_register_values, get_register)
3560 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3561 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3562 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3563 (mi_execute_command, mi_load_progress): Adjust.
3564 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3565 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3567 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3568 * tui/tui-interp.c (tui_command_loop): Adjust.
3569 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3571 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3573 * exceptions.c (struct catcher): Remove saved_uiout field.
3574 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3575 no longer save/resvore the global ui_out builder.
3576 (catch_exceptions_with_msg): Save/override/restore the global
3577 ui_out builder manually instead of relying on TRY_CATCH to do it.
3578 (catch_errors): Save/restore the global ui_out builder manually
3579 instead of relying on TRY_CATCH to do it.
3580 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3582 (TRY_CATCH): Adjust.
3583 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3584 the global ui_out builder manually instead of relying on TRY_CATCH
3587 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3589 * breakpoint.c (update_global_location_list): Ensure
3590 invariant 'first loc marked not duplicated and inserted,
3591 following locs marked duplicated/not inserted' is respected
3592 for multiple locations at the same address.
3593 (unduplicated_should_be_inserted) New function.
3594 (swap_insertion) New function.
3596 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3598 * stack.c (print_frame_arguments_choices): Comment typo fix.
3600 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3603 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3604 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3605 argument. Update callers.
3607 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3610 * doublest.c (convert_doublest_to_floatformat): Pass correct
3611 mantissa length to put_field.
3613 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3615 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3616 exception_print code path.
3617 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3618 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3619 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3621 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3624 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3625 Remove, merge them into ...
3626 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3627 variable args and its initialization.
3628 (struct print_args_args, print_args_stub): Remove, merge them into
3630 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3632 (do_gdb_disassembly): ... here. Remove variable args and its
3634 (print_frame): Remove variable args and its initialization, new
3635 variable gdbarch and numargs (from print_args_stub), inline here
3636 print_args_stub with a TRY_CATCH.
3637 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3639 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3640 New variable e, remove variable btargs and its initialization.
3642 2011-08-01 Tristan Gingold <gingold@adacore.com>
3644 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3646 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3648 * breakpoint.c (insert_bp_location): Document return value.
3649 (insert_breakpoint_locations): Fix documentation.
3650 (remove_breakpoints): Add documentation.
3652 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3654 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3655 argument. Update callers.
3657 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3659 * stack.c (print_frame_info): Comment typo fix.
3661 2011-07-29 Sterling Augustine <saugustine@google.com>
3663 * MAINTAINERS (Write After Approval): Add myself to the list.
3665 2011-07-29 Tom Tromey <tromey@redhat.com>
3667 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3668 (library_list_start_segment): Update.
3669 (library_list_start_section): Update.
3671 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3673 * varobj.c (value_get_print_value): Move hint check later into the
3674 function. Comment function. Free thevalue before reusing it.
3676 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3677 Pedro Alves <pedro@codesourcery.com>
3679 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3681 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3682 Assert the result kind.
3683 * value.h (value_one): Remove parameter lv.
3685 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3687 Fix crash on lval_computed values.
3688 * valops.c (value_zero): Use not_lval for lval_computed.
3690 2011-07-27 Tom Tromey <tromey@redhat.com>
3692 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3693 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3695 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3697 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3698 "ptype" by their typedefs difference.
3700 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3702 * dwarf2expr.c (ctx_no_read_reg): New function.
3703 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3704 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3705 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3706 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3708 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3710 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3711 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3713 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3714 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3715 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3716 (ctx_no_get_base_type): Move the functions here.
3717 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3718 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3719 (ctx_no_get_base_type): New declarations.
3721 2011-07-27 Tom Tromey <tromey@redhat.com>
3723 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3725 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3726 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3728 2011-07-26 Sterling Augustine <saugustine@google.com>
3730 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3732 (dump_bfd_file): Likewise.
3734 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3736 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3737 (remote_hw_watchpoint_length_limit): New variable.
3738 (_initialize_remote) add set,show cmds for this new variable.
3739 * gdb.texinfo: document these new commands.
3740 * NEWS: Mention these new commands.
3742 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3744 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3745 true for software watchpoints.
3747 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3751 2011-07-26 Tom Tromey <tromey@redhat.com>
3753 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3754 * dwarf2read.c (read_indirect_string_at_offset): New function.
3755 (read_indirect_string): Use it.
3756 (dwarf_decode_macro_bytes): New function, taken from
3757 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3758 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3759 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3761 (struct dwarf2_per_objfile) <macro>: New field.
3762 (dwarf2_elf_names): Add .debug_macro.
3763 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3764 (dwarf2_locate_sections): Handle new section.
3765 (read_file_scope): Handle DW_AT_GNU_macros.
3766 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3768 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3770 * NEWS: Mention dcache configuration.
3771 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3772 (dcache_size, dcache_line_size): New variables.
3773 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3774 (struct dcache_block): Make it expandable.
3775 (struct dcache_struct): New field.
3776 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3777 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3778 (dcache_poke_byte, dcache_print_line): Adjust.
3779 (set_dcache_size, set_dcache_line_size): New functions.
3780 (set_dcache_command, show_dcache_command): New functions.
3781 (_initialize_dcache): Add new commands.
3783 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3785 * progspace.h (struct program_space): Add solib_add_generation.
3786 * infcmd.c (post_create_inferior): Only call solib_add if not
3788 * solib.c (solib_add): Increment solib_add_generation.
3790 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3792 Fix implicit pointer offsets.
3793 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3796 2011-07-25 Tom Tromey <tromey@redhat.com>
3798 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3800 (ada_exception_sal): Make 'ops' const.
3801 (ada_decode_exception_location): Likewise.
3802 (ada_decode_assert_location): Likewise.
3803 (catch_assert_command): Update.
3804 (catch_ada_exception_command): Update.
3805 (create_ada_exception_catchpoint): Make 'ops' const.
3806 * breakpoint.c (set_raw_breakpoint_without_location)
3807 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3809 (create_internal_breakpoint): Update.
3810 (init_raw_breakpoint_without_location): Make 'ops' const.
3811 (init_raw_breakpoint, init_catchpoint)
3812 (create_fork_vfork_event_catchpoint)
3813 (create_syscall_event_catchpoint, init_breakpoint_sal)
3814 (create_breakpoint_sal, create_breakpoints_sal)
3815 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3816 * breakpoint.h (struct breakpoint) <ops>: Now const.
3817 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3820 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3822 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3824 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3826 * breakpoint.h (print_recreate_thread): Declare.
3827 (struct breakpoint): Move step_count, pass_count,
3828 number_on_target, static_trace_marker_id,
3829 static_trace_marker_id_idx ...
3830 (struct tracepoint): ... to this new struct.
3831 (get_tracepoint, get_tracepoint_by_number_on_target)
3832 (get_tracepoint_by_number): Change return type to struct
3834 * breakpoint.c (is_tracepoint_type): New, factored out from
3836 (is_tracepoint): Adjust.
3837 (print_one_breakpoint_location): Cast to struct tracepoint as
3838 necessary, and adjust.
3839 (print_recreate_catch_fork, print_recreate_catch_vfork)
3840 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3841 print_recreate_thread.
3842 (init_breakpoint_sal): New, factored out from
3843 create_breakpoint_sal.
3844 (create_breakpoint_sal): Reimplement.
3845 (create_breakpoint): Allocate a struct tracecepoint if the caller
3846 wanted a tracepoint. Use init_breakpoint_sal and
3848 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3849 (print_recreate_masked_watchpoint)
3850 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3851 (tracepoint_print_one_detail): Adjust.
3852 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3853 Dump the pass count here.
3854 (update_static_tracepoint): Adjust.
3855 (addr_string_to_sals): Adjust.
3856 (create_tracepoint_from_upload): Adjust. Change return type to
3857 struct tracepoint pointer.
3858 (trace_pass_set_count): Change parameter type to struct tracepoint
3859 pointer, and adjust.
3860 (trace_pass_command): Adjust.
3861 (get_tracepoint, get_tracepoint_by_number_on_target)
3862 (get_tracepoint_by_number): Change return type to struct
3863 tracepoint pointer, and adjust.
3864 (print_recreate_thread): New, factored out from save_breakpoints.
3865 (save_breakpoints): Don't print thread and task and passcount
3867 * remote.c (remote_download_tracepoint): Adjust.
3868 * tracepoint.c (trace_actions_command, validate_actionline)
3869 (start_tracing, tfind_1, trace_find_tracepoint_command)
3870 (trace_dump_command): Adjust.
3871 (find_matching_tracepoint): Change return type to struct
3872 tracepoint pointer, and adjust.
3873 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3874 (tfile_trace_find, tfile_fetch_registers): Adjust.
3875 * tracepoint.h (create_tracepoint_from_upload): Change return type
3876 to struct tracepoint pointer.
3877 * ada-lang.c (print_recreate_exception): Call
3878 print_recreate_thread.
3879 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3881 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3883 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3884 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3885 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3886 watchpoint_thread, watchpoint_triggered ...
3887 (struct watchpoint): ... to this new struct.
3888 (is_watchpoint): Declare.
3889 (install_breakpoint): Add new `internal' parameter.
3890 * breakpoint.c (is_watchpoint): Delete declaration.
3891 (set_breakpoint_condition): Handle watchpoints.
3892 (is_watchpoint): Make public.
3893 (watchpoint_in_thread_scope): Change parameter type to struct
3895 (watchpoint_del_at_next_stop): Change parameter type to struct
3896 watchpoint. Remove assertion. Adjust.
3897 (update_watchpoint): Ditto.
3898 (insert_breakpoints, breakpoint_init_inferior)
3899 (watchpoints_triggered, watchpoint_check)
3900 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3901 (bpstat_stop_status, print_one_breakpoint_location)
3902 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3903 to struct watchpoint as necessary, and adjust.
3904 (install_breakpoint): Add `internal' argument. If true, don't
3905 mention the new breakpoint. Use set_breakpoint_number.
3906 (create_fork_vfork_event_catchpoint)
3907 (create_syscall_event_catchpoint): Adjust.
3908 (dtor_watchpoint): New.
3909 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3910 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3911 (print_it_watchpoint, print_mention_watchpoint)
3912 (print_recreate_watchpoint, insert_masked_watchpoint)
3913 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3914 (print_one_detail_masked_watchpoint)
3915 (print_mention_masked_watchpoint)
3916 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3917 necessary, and adjust.
3918 (watch_command_1): Allocate and initialize a struct watchpoint
3919 instead of a struct breakpoint. Use install_breakpoint.
3920 (catch_exec_command_1): Adjust.
3921 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3923 (delete_breakpoint, enable_breakpoint_disp)
3924 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3925 as necessary, and adjust.
3926 (initialize_breakpoint_ops): Install dtor_watchpoint as
3927 watchpoints' dtor method.
3928 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3929 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3930 to struct watchpoint as necessary, and adjust.
3932 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3934 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3935 the the base class ops table.
3936 (catch_exception_breakpoint_ops)
3937 (catch_exception_unhandled_breakpoint_ops)
3938 (catch_assert_breakpoint_ops): Don't statically initialize.
3939 (initialize_ada_catchpoint_ops): New.
3940 (_initialize_ada_language): Call it.
3941 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3942 (bkpt_breakpoint_ops): Forward declare.
3943 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3944 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3945 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3946 (masked_watchpoint_breakpoint_ops)
3947 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3948 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3949 base class ops table.
3950 (null_re_set, null_check_status, null_works_in_software_mode)
3951 (null_resources_needed, null_print_one_detail): Delete.
3952 (bkpt_dtor): Rename to ...
3953 (base_breakpoint_dtor): ... this. Make static.
3954 (bkpt_allocate_location): Rename to ...
3955 (base_breakpoint_allocate_location): ... this. Make static.
3956 (base_breakpoint_re_set): New.
3957 (internal_error_pure_virtual_called): New.
3958 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3959 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3960 (base_breakpoint_works_in_software_mode)
3961 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3962 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3963 (base_breakpoint_print_recreate): New functions.
3964 (base_breakpoint_ops): New global.
3965 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3966 (bkpt_breakpoint_hit): Make static.
3967 (bkpt_check_status): Delete.
3968 (bkpt_resources_needed): Make static.
3969 (bkpt_works_in_software_mode): Delete.
3970 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3972 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3973 (momentary_breakpoint_ops): Don't statically initialize.
3974 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3976 (tracepoint_insert_location, tracepoint_remove_location)
3977 (tracepoint_check_status, tracepoint_works_in_software_mode)
3978 (tracepoint_print_it): Delete.
3979 (tracepoint_breakpoint_ops): Don't statically initialize.
3980 (initialize_breakpoint_ops): New.
3981 (_initialize_breakpoint): Call it.
3982 * breakpoint.h (null_re_set, null_works_in_software_mode)
3983 (null_resources_needed, null_check_status, null_print_one_detail):
3984 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3985 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3986 (bkpt_check_status, bkpt_resources_needed)
3987 (bkpt_works_in_software_mode, bkpt_print_it)
3988 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3989 Delete declarations.
3990 (initialize_breakpoint_ops): Declare.
3992 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3994 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3995 (momentary_bkpt_print_it): Simplify.
3997 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3999 Split internal, momentary and user breakpoints breakpoint_ops
4002 * breakpoint.c (internal_breakpoint_ops)
4003 (momentary_breakpoint_ops): Forward declare.
4004 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4005 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4006 (create_overlay_event_breakpoint)
4007 (create_std_terminate_master_breakpoint)
4008 (create_exception_master_breakpoint): Create breakpoints with
4009 internal_breakpoint_ops vtable.
4010 (set_longjmp_breakpoint): Create momentary breakpoints with
4011 momentary_breakpoint_ops vtable, using
4012 momentary_breakpoint_from_master.
4013 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4014 (create_solib_event_breakpoint): Create breakpoints with
4015 internal_breakpoint_ops vtable.
4016 (set_momentary_breakpoint): Create breakpoints with
4017 momentary_breakpoint_ops vtable.
4018 (momentary_breakpoint_from_master): New, factored out from
4019 clone_momentary_breakpoint.
4020 (clone_momentary_breakpoint): Adjust.
4021 (watch_command_1): Create scope breakpoints with
4022 momentary_breakpoint_ops vtable.
4023 (bkpt_re_set): Remove handling of internal and momentary
4025 (bkpt_print_mention, bkpt_print_recreate): New.
4026 (bkpt_breakpoint_ops): Adjust.
4027 (internal_bkpt_re_set, internal_bkpt_check_status)
4028 (internal_bkpt_print_it, internal_bkpt_print_mention)
4029 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4030 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4031 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4032 (momentary_bkpt_print_recreate): New.
4033 (momentary_breakpoint_ops): New.
4035 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4037 Implement most breakpoint_ops methods for all breakpoint types,
4038 and move the default handlings to the proper callbacks.
4040 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4041 works_in_software_mode method.
4042 (insert_bp_location): Go through breakpoint_ops->insert_location
4043 for software and hardware watchpoints.
4044 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4046 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4047 for software and hardware watchpoints.
4048 (print_it_typical): Delete.
4049 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4051 (watchpoint_check): Adjust comment.
4052 (bpstat_check_location): Simply always call the breakpoint's
4053 breakpoint_hit method.
4054 (bpstat_stop_status): Always call the breakpoint's check_status
4055 method. Remove special cases for watchpoints and internal event
4056 breakpoints from here (moved to the check_status implementations).
4057 (print_one_breakpoint_location): Assume b->ops is never NULL.
4058 Remove static tracepoint marker id printing from here (moved to
4059 the print_one_detail callback implementation of tracepoints).
4060 (init_bp_location): Assert OPS is never NULL.
4061 (allocate_bp_location): Always call the breakpoint's
4062 allocate_location method, and remove the default code from here.
4063 (free_bp_location): Always call the location's dtor method, and
4064 remove the default code from here.
4065 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4066 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4067 parameter. Pass it down.
4068 (set_raw_breakpoint): Ditto.
4069 (print_it_catch_fork): Adjust to take a bpstat as argument.
4070 (catch_fork_breakpoint_ops): Install methods.
4071 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4072 (catch_vfork_breakpoint_ops): Install methods.
4073 (dtor_catch_syscall): Call the base dtor.
4074 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4075 (catch_syscall_breakpoint_ops): Install methods.
4076 (dtor_catch_exec): Call the base dtor.
4077 (print_it_catch_exec): Adjust to take a bpstat as argument.
4078 (catch_exec_breakpoint_ops): Install methods.
4079 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4080 the breakpoint's resources_needed method, and remove the default
4082 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4084 (clone_momentary_breakpoint): Clone the original's ops.
4085 (mention): Always call the breakpoint's print_mention method, and
4086 remove the default code from here.
4087 (create_breakpoint_sal): Adjust to pass the ops to
4088 set_raw_breakpoint rather than setting it manually.
4089 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4090 ops to set_raw_breakpoint_without_location rather than setting it
4092 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4093 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4094 (ranged_breakpoint_ops): Install methods.
4095 (break_range_command): Adjust to pass the ops to
4096 set_raw_breakpoint rather than setting it manually.
4097 (re_set_watchpoint, breakpoint_hit_watchpoint)
4098 (check_status_watchpoint, resources_needed_watchpoint)
4099 (works_in_software_mode_watchpoint, print_it_watchpoint)
4100 (print_mention_watchpoint, print_recreate_watchpoint): New
4102 (watchpoint_breakpoint_ops): Install new methods.
4103 (print_it_masked_watchpoint): New function.
4104 (masked_watchpoint_breakpoint_ops): Install new methods.
4105 (watch_command_1): Adjust to pass the right breakpoint_ops to
4106 set_raw_breakpoint_without_location rather than setting it
4107 manually later. Record the current pspace.
4108 (print_it_exception_catchpoint): Adjust to take a bpstat as
4110 (gnu_v3_exception_catchpoint_ops): Install new methods.
4111 (say_where): New function.
4112 (null_re_set, null_check_status, null_works_in_software_mode)
4113 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4115 (bp_location_ops): New global.
4116 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4117 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4118 (bkpt_check_status, bkpt_resources_needed)
4119 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4120 (bkpt_print_recreate): New functions.
4121 (bkpt_breakpoint_ops): New global.
4122 (tracepoint_re_set, tracepoint_insert_location)
4123 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4124 (tracepoint_check_status, tracepoint_works_in_software_mode)
4125 (tracepoint_print_it, tracepoint_print_one_detail)
4126 (tracepoint_print_mention, tracepoint_print_recreate): New
4128 (tracepoint_breakpoint_ops): New global.
4129 (delete_breakpoint): Always call the breakpoint's dtor method, and
4130 remove the default handling from here.
4131 (breakpoint_re_set_default): Make static.
4132 (breakpoint_re_set_one): Always call the breakpoints re_set
4133 method, and remove the default handling from here.
4134 (trace_command, ftrace_command, strace_command)
4135 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4136 to create_breakpoint.
4137 (save_breakpoints): Always call the breakpoint's print_recreate
4138 method, and remove the default handling from here.
4140 * ada-lang.c (dtor_exception): Call the base dtor.
4141 (re_set_exception): Call the base method.
4142 (print_it_exception, print_it_catch_exception): Adjust to take a
4144 (catch_exception_breakpoint_ops): Install methods.
4145 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4147 (catch_exception_unhandled_breakpoint_ops): Install methods.
4148 (print_it_catch_assert): Adjust to take a bpstat as argument.
4149 (catch_assert_breakpoint_ops): Install methods.
4151 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4152 to take a bpstat as argument.
4153 (enum print_stop_action): Add describing comments to each enum
4155 (breakpoint_re_set_default): Delete declaration.
4156 (null_re_set, null_works_in_software_mode, null_resources_needed)
4157 (null_check_status, null_print_one_detail): Declare.
4158 (bkpt_breakpoint_ops): Declare.
4159 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4160 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4161 (bkpt_check_status, bkpt_resources_needed)
4162 (bkpt_works_in_software_mode, bkpt_print_it)
4163 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4166 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4167 bkpt_breakpoint_ops.
4168 * python/py-breakpoint.c (bppy_init): Ditto.
4170 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4172 * MAINTAINERS (Write After Approval): Add myself to the list.
4174 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4176 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4178 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4180 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4181 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4182 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4184 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4185 (struct i386_debug_reg_state): New.
4186 (i386_init_dregs): New.
4188 (i386_cleanup_dregs): Use i386_init_dregs.
4189 (i386_show_dr): Add state parameter and adjust.
4190 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4192 (i386_remove_aligned_watchpoint): Likewise.
4193 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4194 (i386_update_inferior_debug_regs): New.
4195 (i386_insert_watchpoint): Work on a local mirror of the debug
4196 registers, and only update the inferior on success.
4197 (i386_remove_watchpoint): Ditto.
4198 (i386_region_ok_for_watchpoint): Adjust.
4199 (i386_stopped_data_address): Adjust.
4200 (i386_insert_hw_breakpoint): Adjust.
4201 (i386_remove_hw_breakpoint): Adjust.
4203 2011-07-22 Tom Tromey <tromey@redhat.com>
4205 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4206 from amd64_pseudo_register_read. Change arguments. Call
4207 mark_value_bytes_unavailable when needed.
4208 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4209 set_gdbarch_pseudo_register_read.
4210 * sentinel-frame.c (sentinel_frame_prev_register): Use
4211 regcache_cooked_read_value.
4212 * regcache.h (regcache_cooked_read_value): Declare.
4213 * regcache.c (regcache_cooked_read_value): New function.
4214 (regcache_cooked_read): Call
4215 gdbarch_pseudo_register_read_value if available.
4216 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4217 (i386_pseudo_register_read): Remove.
4218 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4219 i386_pseudo_register_read. Change arguments. Call
4220 mark_value_bytes_unavailable when needed.
4221 (i386_pseudo_register_read_value): New function.
4222 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4223 not set_gdbarch_pseudo_register_read.
4224 * gdbarch.sh (pseudo_register_read_value): New method.
4225 * gdbarch.c, gdbarch.h: Rebuild.
4226 * findvar.c (value_from_register): Call get_frame_register_value.
4228 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4230 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4232 (display_gdb_prompt): Likewise.
4233 (change_annotation_level): Likewise.
4234 (push_prompt): Likewise.
4235 (pop_prompt): Likewise.
4236 (handle_stop_sig): Use get_prompt with a level.
4237 * top.c (command_loop): Use get_prompt with a level.
4238 (set_async_annotation_level): Use set_prompt with a level.
4239 (get_prefix): New function.
4240 (set_prefix): Ditto.
4241 (set_suffix): Ditto.
4242 (get_suffix): Ditto.
4243 (get_prompt): Accept a level argument.
4244 (set_prompt): Accept a level argument. Free old prompts. Set
4245 new_async_prompt if level is 0.
4246 (init_main): Use set_prompt with a level. Do not set
4248 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4249 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4250 Modify set_prompt, get_prompt to account for levels.
4251 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4253 * python/python.c (before_prompt_hook): Use set_prompt.
4255 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4257 * defs.h: Add guard against inclusion in gdbserver.
4258 (struct ptid, ptid_t): Move to common/ptid.h.
4259 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4260 xsnprintf, internal_error): Move to common/common-utils.h.
4262 * gdb_assert.h: Move into common/ sub-directory.
4263 * gdb_locale.h: Ditto.
4264 * gdb_dirent.h: Ditto.
4265 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4266 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4267 Move into common/ptid.h.
4268 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4269 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4270 Change nomem to malloc_failure.
4271 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4272 * utils.c (nomem): Rename to malloc_failure.
4273 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4274 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4275 (gdb_buildargv): Change nomem to malloc_failure.
4276 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4277 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4278 ptid_is_pid): Move into common/ptid.c.
4279 (initialize_infrun): Delete initialization of null_ptid and
4281 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4282 linux_common_xfer_osdata.
4283 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4284 common/ptid.c and common/buffer.c.
4285 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4286 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4287 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4288 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4290 * common/gdb_assert.h: New.
4291 * common/gdb_dirent.h: New.
4292 * common/gdb_locale.h: New.
4293 * common/buffer.c: New.
4294 * common/buffer.h: New.
4295 * common/ptid.c: New.
4296 * common/ptid.h: New.
4297 * common/xml-utils.c: New.
4298 * common/xml-utils.h: New.
4299 * common/common-utils.c: New.
4300 * common/common-utils.h: New.
4301 * common/linux-osdata.c: New.
4302 * common/linux-osdata.h: New.
4303 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4304 * config/arm/linux.mh (NATDEPFILES): Ditto.
4305 * config/i386/linux.mh (NATDEPFILES): Ditto.
4306 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4307 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4308 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4309 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4310 * config/mips/linux.mh (NATDEPFILES): Ditto.
4311 * config/pa/linux.mh (NATDEPFILES): Ditto.
4312 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4313 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4314 * config/s390/s390.mh (NATDEPFILES): Ditto.
4315 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4316 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4317 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4319 2011-07-21 Matt Rice <ratmice@gmail.com>
4321 * NEWS: Add info macros and info definitions commands.
4323 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4325 * NEWS: Document Python prompt substitution hook.
4327 2011-07-18 Matt Rice <ratmice@gmail.com>
4330 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4331 * macrotab.c (foreach_macro): Ditto.
4332 (foreach_macro_in_scope): Ditto.
4333 * macrocmd.c (print_macro_callback): New function.
4334 (info_macro_command): Move some code to print_macro_definition.
4335 (print_macro_definition): New function.
4336 (print_one_macro): Add new arguments to callback.
4337 (info_definitions_command): New function.
4338 (info_macros_command): Ditto.
4339 (_initialize_macrocmd): Add info macros and info definitions commands.
4340 * symtab.c (add_macro_name): Add new arguments to callback.
4342 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4343 Tom Tromey <tromey@redhat.com>
4345 * top.c (set_prompt): Rewrite to free previous prompt, free
4346 asynch_new_prompt and set both on new prompts.
4347 * event-top.c (display_gdb_prompt): Add prompt substitution
4349 * python/python.c (before_prompt_hook): New function.
4351 2011-07-20 Matt Rice <ratmice@gmail.com>
4353 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4354 arguments to store_unsigned_integer.
4356 2011-07-20 Tom Tromey <tromey@redhat.com>
4358 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4359 in some declaration-only cases.
4361 2011-07-18 Tom Tromey <tromey@redhat.com>
4364 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4365 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4366 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4367 <debug_type_section>: New field.
4368 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4369 (load_cu): Use appropriate section.
4370 (create_signatured_type_table_from_index): Add 'section'
4372 (dwarf2_read_index): Only allow a single .debug_types section.
4373 (dw2_get_file_names): Use appropriate section.
4374 (read_type_comp_unit_head): Add 'section' argument.
4375 (create_debug_types_hash_table): Loop over all .debug_types
4377 (init_cu_die_reader): Use appropriate section.
4378 (process_psymtab_comp_unit, load_partial_comp_unit)
4379 (load_full_comp_unit, read_die_and_children, find_partial_die)
4380 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4381 (lookup_signatured_type_at_offset): Add 'section' argument.
4382 (read_signatured_type_at_offset): Add 'sect' argument.
4383 (read_signatured_type): Use appropriate section.
4384 (set_die_type, get_die_type_at_offset): Update.
4385 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4387 (write_psymtabs_to_index): Don't allow index with more than one
4388 .debug_types section.
4390 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4392 Fix crash if referenced CU is aged out.
4393 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4394 xfree of block.data.
4395 (indirect_pieced_value): New variable back_to, use to for xfree of
4397 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4399 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4400 (load_cu): New function from ...
4401 (dw2_do_instantiate_symtab): ... the code here ...
4402 (process_full_comp_unit): ... and here.
4403 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4406 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4408 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4411 2011-07-19 Gary Benson <gbenson@redhat.com>
4413 * infrun.c (struct execution_control_state): New member
4414 stop_func_filled_in.
4415 (clear_stop_func, fill_in_stop_func): New functions.
4416 (handle_inferior_event): Call clear_stop_func rather than
4417 manipulating the execution control state directly.
4418 Call fill_in_stop_func lazily as required rather than
4419 directly calling find_pc_partial_function in all cases.
4421 2011-07-18 Tom Tromey <tromey@redhat.com>
4423 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4424 checking for variable-sized array.
4426 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4428 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4429 of supported languages.
4430 * varobj.c: Add top definitions and basic implementation of the
4431 following callbacks: ada_number_of_children, ada_name_of_variable,
4432 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4433 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4434 (languages): Register Ada-specific callbacks.
4435 (variable_language): Add the Ada case in the language setter switch.
4437 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4439 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4441 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4444 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4445 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4446 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4447 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4448 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4449 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4450 (struct dwarf_expr_context_funcs): New, move here methods from ...
4451 (struct dwarf_expr_context): ... here. New fields funcs.
4452 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4453 (dwarf_expr_ctx_funcs): New.
4454 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4455 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4456 (needs_frame_ctx_funcs): New.
4457 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4459 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4461 * MAINTAINERS (Write After Approval): Add myself to the list.
4463 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4465 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4466 that CIE pointer of an FDE really points to a CIE .
4468 2011-07-15 Hui Zhu <teawater@gmail.com>
4470 * remote.c (remote_get_trace_status): Add comments.
4472 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4474 Code cleanup - constify struct lval_funcs.
4475 * dwarf2loc.c (pieced_value_funcs): Make it const.
4476 * infrun.c (siginfo_value_funcs): Likewise.
4477 * opencl-lang.c (opencl_value_funcs): Likewise.
4478 * valops.c (value_assign, value_ind): Make the funcs variable const.
4479 * value.c (struct value): Make location.computed.funcs target const.
4480 Rearrange the comments.
4481 (allocate_computed_value): Make the funcs parameter target const.
4482 (value_computed_funcs): Return the funcs target const.
4483 (value_free, value_copy, set_value_component_location): Make the funcs
4485 * value.h (allocate_computed_value): Make the funcs parameter target
4487 (value_computed_funcs): Return the funcs target const.
4488 * windows-tdep.c (tlb_value_funcs): Make it const.
4490 2011-07-14 Hui Zhu <teawater@gmail.com>
4492 * remote.c (remote_get_trace_status): Initialize p.
4494 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4497 * remote.c (remote_get_trace_status): New variable ex. Put
4498 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4500 2011-07-13 Tom Tromey <tromey@redhat.com>
4502 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4503 value_from_contents for final conversion.
4505 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4508 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4509 Indent prototypes so they do not get into tags.
4511 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4513 Code cleanup making also optimized out values lazy.
4514 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4515 allocate_optimized_out_value. Twice.
4516 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4517 * findvar.c (read_var_value): Likewise.
4518 * value.c (allocate_optimized_out_value): New function.
4519 * value.h (allocate_optimized_out_value): New declaration.
4521 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4523 Fix occasional crash of CTRL-C during DWARF read in.
4524 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4526 2011-07-11 Tom Tromey <tromey@redhat.com>
4528 * regcache.c (struct regcache_descr): Fix typo.
4529 * i387-tdep.c (i387_supply_xsave): Fix typo.
4531 2011-07-11 Tom Tromey <tromey@redhat.com>
4533 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4534 (read_file_scope, read_type_unit_scope): Use it.
4536 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4538 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4541 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4544 * python/python.c: Set gdbpy_should_print_stack default to off.
4545 (set_python): Deprecate maint set python print-stack to
4547 (_initialize_python): Deprecate maint set/show python print-stack.
4548 Add new prefix command, python. Add new setting, print-backtrace.
4549 * NEWS: Document set python print-stack. Document default change.
4551 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4553 * python/py-inferior.c (infpy_dealloc): New function.
4554 (inferior_to_inferior_object): Return a new object, or a
4555 new reference to the existing object.
4556 (find_thread_object): Cleanup references to inferior.
4557 (delete_thread_object): Ditto.
4558 * python/py-infthread.c (create_thread_object): Do not increment
4559 inferior reference count.
4561 2011-07-08 Tom Tromey <tromey@redhat.com>
4563 * dwarf2loc.c (locexpr_regname): New function.
4564 (locexpr_describe_location_piece): Use it.
4565 (disassemble_dwarf_expression): Add per_cu argument. Use
4567 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4568 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4570 (locexpr_describe_location_1): Add per_cu argument.
4571 (locexpr_describe_location): Update.
4572 (loclist_describe_location): Update.
4574 2011-07-08 Tom Tromey <tromey@redhat.com>
4576 * dwarf2expr.c (execute_stack_op): Add QUIT.
4578 2011-07-07 Hui Zhu <teawater@gmail.com>
4581 2011-07-06 Hui Zhu <teawater@gmail.com>
4582 * remote.c (remote_start_remote): Add TRY_CATCH for
4583 remote_get_trace_status.
4584 * tracepoint.c (disconnect_tracing): Ditto.
4586 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4588 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4589 variables as signed, not unsigned.
4591 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4593 * jit.c (jit_inferior_init): Reformat forward declaration.
4595 2011-07-06 Matt Rice <ratmice@gmail.com>
4597 * MAINTAINERS (Write After Approval): Add myself to the list.
4599 2011-07-06 Hui Zhu <teawater@gmail.com>
4601 * remote.c (remote_start_remote): Add TRY_CATCH for
4602 remote_get_trace_status.
4603 * tracepoint.c (disconnect_tracing): Ditto.
4605 2011-07-05 Tom Tromey <tromey@redhat.com>
4607 * symtab.c (operator_chars): Now static.
4608 * linespec.c (operator_chars): Don't declare.
4610 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4612 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4614 2011-07-05 Tom Tromey <tromey@redhat.com>
4616 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4617 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4618 (TYPE_CPLUS_REALLY_JAVA): New macro.
4619 * dwarf2read.c (process_structure_scope): Set
4620 TYPE_CPLUS_REALLY_JAVA.
4622 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4624 * ada-lang.c: Fix typos.
4625 * amd64-tdep.c: Likewise.
4626 * breakpoint.c: Likewise.
4627 * cli/cli-decode.c: Likewise.
4628 * findcmd.c: Likewise.
4629 * inline-frame.c: Likewise.
4630 * mi/mi-main.c: Likewise.
4631 * minsyms.c: Likewise.
4632 * monitor.c: Likewise.
4633 * monitor.h: Likewise.
4634 * prologue-value.c: Likewise.
4635 * reverse.c: Likewise.
4636 * s390-tdep.c: Likewise.
4638 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4640 * jit.c (jit_inferior_init): Forward declare.
4641 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4643 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4645 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4647 2011-07-04 Tristan Gingold <gingold@adacore.com>
4649 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4650 (tcb_fieldno): Add activation_link field.
4651 (get_known_tasks_addr): Moved and rewritten.
4652 (get_tcb_types_info): Set activation_link field.
4653 (read_known_tasks_array): Add parameter. Rewritten.
4654 (read_known_tasks_list): New function.
4655 (read_known_tasks): New function.
4656 (ada_build_task_list): Call read_known_tasks instead of
4657 read_known_tasks_array.
4658 * ravenscar-thread.c: Add first_task_name constant.
4659 (has_ravenscar_runtime): Check for task list too.
4661 2011-07-04 Tristan Gingold <gingold@adacore.com>
4663 * ada-tasks.c: Renames fieldno to actb_fieldno.
4664 (ada_get_task_number): Indentation.
4665 (get_tcb_types_info): Remove all parameters. Write directly
4667 (ptid_from_atcb_common): Adjust.
4668 (read_atcb): Adjust.
4670 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4672 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4674 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4676 * ui-out.c (ui_out_field_core_addr): Mention that the function
4677 description is in the header file.
4678 * ui-out.h (ui_out_field_core_addr): Document function.
4680 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4682 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4683 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4685 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4687 * symtab.c (expand_line_sal): Remove empty line.
4689 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4691 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4692 same way as ELFOSABI_NONE.
4693 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4695 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4697 * breakpoint.c: Fix typos in comments.
4698 * linespec.c: Likewise.
4699 * symtab.c: Likewise.
4701 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4703 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4704 section in separate object files.
4706 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4708 Fix false GCC warning.
4709 * linespec.c (decode_line_1): Initialize values.
4711 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4713 * linespec.c (find_method): Accept the function type automatically only
4714 if it was specified with parameter types.
4716 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4718 Stop on first linespec terminator instead of eating what we can.
4719 * linespec.c (is_linespec_boundary): New function.
4720 (name_end): Remove function.
4721 (keep_name_info): New parameter on_boundary, replace the body.
4722 (decode_line_1): Provide the parameter to keep_name_info.
4723 (decode_compound): Likewise. Drop the trailing java return type
4726 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4728 Fall back linespec to minimal symbols.
4729 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4730 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4731 (find_method, symbol_found): Change error to cplusplus_error.
4733 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4735 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4737 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4738 Tom Tromey <tromey@redhat.com>
4740 * dwarf2read.c (check_physname): New variable.
4741 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4742 (show_check_physname): New function.
4743 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4745 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4747 * machoread.c (macho_symfile_read): Delete OBE comment.
4749 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4751 * machoread.c (struct macho_oso_data): Delete.
4752 (current_oso): Delete.
4753 (macho_relocate_common_syms): New function, mostly extracted
4755 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4756 Remove code that sets and unset current_oso.
4757 (macho_symfile_relocate): Delete handling of common symbols,
4758 now moved to macho_relocate_common_syms.
4760 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4762 * darwin-nat.c (darwin_ptrace): Add documentation.
4763 Set errno to zero before calling ptrace. If ptrace returns
4764 -1 and errno is zero, then change then return zero.
4765 (darwin_kill_inferior): Issue a warning instead of triggering
4766 a failed assertion when the PT_KILL ptrace operations returned
4769 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4771 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4772 only when inf->private->no_ptrace.
4774 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4776 * ada-lang.c (print_it_exception): Print temporary catchpoints
4777 as "Temporary catchpoint".
4778 (print_mention_exception): Likewise.
4780 2011-07-01 Tom Tromey <tromey@redhat.com>
4782 * jv-lang.c (java_language_defn): Use java_printchar,
4784 (java_get_encoding): New function.
4785 (java_emit_char): Use generic_emit_char.
4786 (java_printchar): New function.
4787 (java_printstr): Likewise.
4789 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4791 * ada-typeprint.c (print_record_type): If unable to decode
4792 the name of the parent type, use the encoded name.
4794 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4796 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4797 pointer to constrained packed array type output.
4798 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4799 packed array output.
4801 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4803 * ada-typeprint.c (print_array_type): removed if condition on show
4804 being negative for bounds printing.
4806 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4808 * ada-lang.c (ada_identical_enum_types_p): New function.
4809 (symbols_are_identical_enums): New function.
4810 (remove_extra_symbols): Do nothing if NSYMS < 2.
4811 Use symbols_are_identical_enums.
4813 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4815 * ada-valprint.c (ada_value_print): Handle typedefs.
4817 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4819 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4821 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4823 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4824 (decode_constrained_packed_array): Likewise.
4825 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4827 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4829 * ada-exp.y (convert_char_literal): Handle typedef types.
4831 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4833 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4835 2011-06-30 Tom Tromey <tromey@redhat.com>
4837 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4838 * valops.c (find_overload_match): Call do_cleanups on early exit
4840 * solib.c (solib_find): Call do_cleanups on early exit path.
4842 2011-06-30 Tom Tromey <tromey@redhat.com>
4844 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4845 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4846 return paths. Defer final do_cleanups until last return.
4847 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4850 2011-06-30 Tom Tromey <tromey@redhat.com>
4852 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4854 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4856 * MAINTAINERS (Write After Approval): Add myself to the list.
4858 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4860 Disable epilogue unwinders on recent GCCs.
4861 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4862 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4863 * dwarf2read.c (process_full_comp_unit): Initialize
4864 EPILOGUE_UNWIND_VALID.
4865 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4866 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4867 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4869 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4871 Code cleanup - reformatting.
4872 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4873 (producer_is_gcc_ge_4): ... here, change the return value.
4874 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4877 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4879 Fix non-only rename list for Fortran modules import.
4880 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4881 cp_add_using_directive caller.
4882 (cp_add_using_directive): New parameter excludes, describe it. New
4883 variables ix and param. Compare if also excludes match. Allocate NEW
4884 with variable size, initialize EXCLUDES there.
4885 (cp_lookup_symbol_imports): New variable excludep, test
4886 current->EXCLUDES with it.
4887 * cp-support.h: Include vec.h.
4888 (struct using_direct): New field excludes, describe it.
4889 (DEF_VEC_P (const_char_ptr)): New.
4890 (cp_add_using_directive): New parameter excludes.
4891 * defs.h (const_char_ptr): New typedef.
4892 * dwarf2read.c (read_import_statement): New variables child_die,
4893 excludes and cleanups, read in excludes.
4894 (read_namespace): Adjust the cp_add_using_directive caller.
4896 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4899 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4900 negative comparisons.
4902 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4904 * mi/mi-main.c (mi_cmd_list_features): Emit
4905 breakpoint-notifications.
4907 2011-06-29 Tom Tromey <tromey@redhat.com>
4910 * valprint.h (generic_emit_char, generic_printstr): Declare.
4911 * valprint.c (wchar_printable, append_string_as_wide)
4912 (print_wchar): Move from c-lang.c.
4913 (generic_emit_char): New function; mostly taken from c_emit_char.
4914 (generic_printstr): New function; mostly taken from c_printstr.
4915 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4916 represented as arrays.
4917 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4919 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4920 identically to TYPE_CODE_INT.
4921 * f-lang.c (f_get_encoding): New function.
4922 (f_emit_char): Use generic_emit_char.
4923 (f_printchar): Replace comment.
4924 (f_printstr): Use generic_printstr.
4925 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4926 "character" types specially.
4927 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4929 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4931 (c_emit_char): Call generic_emit_char.
4932 (c_printstr): Call generic_printstr.
4934 2011-06-29 Gary Benson <gbenson@redhat.com>
4936 * breakpoint.c (bpstat_what): Removed duplicated case.
4938 2011-06-28 Tom Tromey <tromey@redhat.com>
4940 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4942 2011-06-27 Tom Tromey <tromey@redhat.com>
4944 * valops.c (find_overload_match): Call do_cleanups before early
4946 * top.c (execute_command): Call do_cleanups before early return.
4947 (command_loop): Likewise.
4948 * stack.c (backtrace_command): Make a null cleanup early. Don't
4949 conditionally call do_cleanups.
4950 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4952 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4953 so cleanups are always run.
4954 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4955 * findcmd.c (parse_find_args): Call do_cleanups on early return
4957 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4958 Don't conditionally call do_cleanups.
4959 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4962 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4964 * MAINTAINERS (Write After Approval): Use default email address.
4966 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4968 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4970 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4972 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4973 saved_regs_mask and copied_regs_mask fields.
4974 (sparc_record_save_insn): New prototype.
4975 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4976 (sparc_record_save_insn): New function.
4977 (sparc_analyze_prologue): Add head comment. Recognize store insns
4978 of call-saved registers. Use OFFSET consistently. Recognize flat
4979 frames and cache their settings.
4980 (sparc32_skip_prologue): Handle flat frames.
4981 (sparc_frame_cache): Add frame_offset to the base address.
4982 (sparc32_frame_cache): Adjust to new frame description.
4983 (sparc32_frame_prev_register): Likewise.
4984 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4985 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4986 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4987 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4988 frame by calling sparc_record_save_insn.
4989 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4990 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4991 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4993 2011-06-27 Tristan Gingold <gingold@adacore.com>
4995 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4996 field by map_addr and map_len.
4997 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4998 (munmap_section_buffer): Likewise.
5000 2011-06-24 Tom Tromey <tromey@redhat.com>
5002 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5003 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5004 * python/python.c (gdbpy_parameter): Make 'arg' const.
5005 (execute_gdb_command): Likewise.
5006 (gdbpy_decode_line): Likewise. Copy it.
5007 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5008 (gdbpy_write): Make 'arg' const.
5009 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5011 (gdbpy_lookup_type): Likewise.
5012 * python/py-prettyprint.c (print_children): Make 'name' const.
5013 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5014 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5016 * python/py-function.c (fnpy_init): Make 'name' const.
5017 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5018 (gdbpy_string_to_argv): Make 'input' const.
5019 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5021 * gdbtypes.h (lookup_typename): Update.
5022 * gdbtypes.c (lookup_typename): Make 'name' const.
5023 (lookup_struct): Likewise.
5024 (lookup_union): Likewise.
5025 (lookup_enum): Likewise.
5027 2011-06-24 Tom Tromey <tromey@redhat.com>
5029 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5030 gdb_thread_db.h. Move all common/ entries to be together.
5031 (TAGS): Don't depend on DEPFILES.
5033 2011-06-23 Yao Qi <yao@codesourcery.com>
5035 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5036 * remote.c (remote_start_remote): ... here.
5037 * monitor.c (monitor_open): ... here.
5039 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5041 * gdbtypes.c (append_composite_type_field_aligned): Fix
5042 calculation of bit position based on alignment.
5044 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5046 * breakpoint.c (bpstat_stop_status): Call the check_status
5047 breakpoint_ops method.
5048 (print_one_breakpoint_location): Also print the condition for Ada
5049 exception catchpoints.
5050 (allocate_bp_location): New, factored out from
5051 allocate_bp_location.
5052 (allocate_bp_location): Adjust. Call the owner breakpoint's
5053 allocate_location method, if there is one.
5054 (free_bp_location): Call the locations's dtor method, if there is
5056 (init_raw_breakpoint_without_location): New breakpoint_ops
5058 (set_raw_breakpoint_without_location): Adjust.
5059 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5060 (set_raw_breakpoint): Adjust.
5061 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5062 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5063 re_set and check_status methods.
5064 (init_catchpoint): Don't memset, initialize thread, addr_string
5065 and enable_state. Pass the ops down to init_raw_breakpoint.
5066 (install_catchpoint): Rename to ...
5067 (install_breakpoint): ... this, and make extern.
5068 (create_fork_vfork_event_catchpoint): Adjust.
5069 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5070 re_set and check_status methods.
5071 (create_syscall_event_catchpoint): Adjust.
5072 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5073 (masked_watchpoint_breakpoint_ops): Install NULL
5074 allocate_location, re_set and check_status methods.
5075 (catch_exec_command_1): Adjust.
5076 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5077 re_set and check_status methods.
5078 (create_ada_exception_breakpoint): Rename to ...
5079 (init_ada_exception_breakpoint): ... this. Add a struct
5080 breakpoint parameter, and delete the exp_string, cond_string and
5081 cond parameters. Use init_raw_breakpoint, and don't install or
5082 mention the breakpoint yet. Don't clear breakpoint fields that
5083 init_raw_breakpoint already clears.
5084 (re_set_breakpoint): Delete, split into ...
5085 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5087 (breakpoint_re_set_one): Call the breakpoint's
5088 breakpoint_ops->re_set implementation, if there's one. Adjust.
5089 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5090 (struct bp_location_ops): New type.
5091 (struct bp_location): New field `ops'.
5092 (struct breakpoint_ops): New `allocate_location', `re_set' and
5093 `check_status' fields. Make `breakpoint_hit''s description match
5095 (init_bp_location): Declare.
5096 (breakpoint_re_set_default): Declare.
5097 (create_ada_exception_breakpoint): Rename to ...
5098 (init_ada_exception_breakpoint): ... this. Add a struct
5099 breakpoint parameter, and delete the exp_string, cond_string and
5101 (install_breakpoint): Declare.
5102 * ada-lang.c: Include exceptions.h.
5103 <Ada exceptions description>: Update.
5104 (struct ada_catchpoint_location): New type.
5105 (ada_catchpoint_location_dtor): New function.
5106 (ada_catchpoint_location_ops): New global.
5107 (ada_catchpoint): New type.
5108 (create_excep_cond_exprs): New function.
5109 (dtor_exception, allocate_location_exception, re_set_exception)
5110 (should_stop_exception, check_status_exception): New functions.
5111 (print_one_exception, print_mention_exception)
5112 (print_recreate_exception): Adjust.
5113 (dtor_catch_exception, allocate_location_catch_exception)
5114 (re_set_catch_exception, check_status_catch_exception): New
5116 (catch_exception_breakpoint_ops): Install them.
5117 (dtor_catch_exception_unhandled)
5118 (allocate_location_catch_exception_unhandled)
5119 (re_set_catch_exception_unhandled)
5120 (check_status_catch_exception_unhandled): New functions.
5121 (catch_exception_unhandled_breakpoint_ops): Install them.
5122 (dtor_catch_assert, allocate_location_catch_assert)
5123 (re_set_catch_assert, check_status_catch_assert): New functions.
5124 (catch_assert_breakpoint_ops): Install them.
5125 (ada_exception_catchpoint_p): Delete.
5126 (catch_ada_exception_command_split)
5127 (ada_exception_catchpoint_cond_string): Rename exp_string
5128 parameter to excep_string. Adjust.
5129 (ada_parse_catchpoint_condition): Delete.
5130 (ada_exception_sal): Rename the exp_string parameter to
5131 excep_string. Delete the cond_string and cond parameters.
5133 (ada_decode_exception_location): Rename the exp_string parameter
5134 to excep_string. Delete the cond_string and cond parameters.
5136 (create_ada_exception_catchpoint): New function.
5137 (catch_ada_exception_command, ada_decode_assert_location)
5138 (catch_assert_command): Adjust.
5139 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5141 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5143 * ada-lang.c: Include arch-utils.h.
5144 (ada_decode_exception_location): Make static.
5145 (catch_ada_exception_command): Moved here from breakpoint.c.
5146 (ada_decode_assert_location): Make static.
5147 (catch_assert_command): Moved here from breakpoint.c.
5148 (_initialize_ada_lang): Install the exception and assert
5149 catchpoint commands here.
5150 * ada-lang.h (ada_decode_exception_location)
5151 (ada_decode_assert_location): Delete declarations.
5152 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5154 (create_ada_exception_breakpoint): Make extern.
5155 (catch_ada_exception_command, catch_assert_command): Moved to
5157 (add_catch_command): Make extern.
5158 (_initilize_breakpoint): Don't install the exception and assert
5159 catchpoint commands here.
5160 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5162 (add_catch_command, create_ada_exception_breakpoint): Declare.
5164 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5166 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5167 the breakpoint to the breakpoint chain here.
5168 (set_raw_breakpoint_without_location): Add the breakpoint to the
5169 breakpoint chain here.
5170 (init_raw_breakpoint): Adjust comments.
5171 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5173 (init_catchpoint): Don't set the catchpoint's breakpoint number
5175 (install_catchpoint): New function.
5176 (create_fork_vfork_event_catchpoint)
5177 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5178 use install_catchpoint.
5180 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5182 * breakpoint.c (create_catchpoint_without_mention)
5183 (create_catchpoint): Delete.
5185 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5187 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5188 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5189 reference to exec_pathname.
5190 (struct exec_catchpoint): New type.
5191 (dtor_catch_exec): New function.
5192 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5193 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5194 (catch_exec_command_1): Adjust to use init_catchpoint.
5195 (delete_breakpoint): Remove reference to exec_pathname.
5197 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5199 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5200 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5201 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5202 reference to syscalls_to_be_caught.
5203 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5205 (struct syscall_catchpoint): New type.
5206 (dtor_catch_syscall): New function.
5207 (insert_catch_syscall, remove_catch_syscall)
5208 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5209 (print_recreate_catch_syscall): Adjust.
5210 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5211 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5212 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5213 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5214 (masked_watchpoint_breakpoint_ops)
5215 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5216 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5217 there is one. Remove references to syscalls_to_be_caught.
5218 (catching_syscall_number): Adjust.
5219 * ada-lang.c (catch_exception_breakpoint_ops)
5220 (catch_exception_unhandled_breakpoint_ops)
5221 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5223 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5225 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5227 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5228 reference to forked_inferior_pid.
5229 (struct fork_catchpoint): New type.
5230 (breakpoint_hit_catch_fork, print_it_catch_fork)
5231 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5232 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5233 (create_fork_vfork_event_catchpoint): Adjust to use
5236 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5238 * breakpoint.c (add_to_breakpoint_chain)
5239 (init_raw_breakpoint_without_location): New functions, factored
5241 (set_raw_breakpoint_without_location): ... this one.
5242 (init_raw_breakpoint): New function, factored out from
5243 set_raw_breakpoint and adjusted to use
5244 init_raw_breakpoint_without_location.
5245 (set_raw_breakpoint): Adjust.
5246 (init_catchpoint): New function, factored out from
5247 create_catchpoint_without_mention and adjusted to use
5248 init_raw_breakpoint.
5249 (create_catchpoint_without_mention): Adjust.
5251 2011-06-22 Tom Tromey <tromey@redhat.com>
5253 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5254 argument of 0 specially.
5256 2011-06-22 Yao Qi <yao@codesourcery.com>
5258 * infrun.c (handle_inferior_event): Remove write-only local variable
5259 `sw_single_step_trap_p'.
5261 2011-06-20 Tom Tromey <tromey@redhat.com>
5263 * symtab.c (lookup_language_this): End loop if block is NULL.
5265 2011-06-17 Tom Tromey <tromey@redhat.com>
5267 * valops.c (value_of_this): Use lookup_language_this.
5268 * symtab.h (lookup_language_this): Declare.
5269 * symtab.c (lookup_language_this): New function.
5270 (lookup_symbol_aux): Use lookup_language_this.
5271 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5273 2011-06-17 Tom Tromey <tromey@redhat.com>
5275 * value.h (value_of_this): Update.
5276 (value_of_local): Remove.
5277 * valops.c (value_of_this): Rename from value_of_local. Change
5279 * p-exp.y (exp): Update.
5280 (variable): Likewise.
5281 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5283 2011-06-17 Tom Tromey <tromey@redhat.com>
5285 * valops.c (value_of_local): Complain if NAME is NULL.
5286 * std-operator.def (OP_OBJC_SELF): Remove.
5287 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5288 * objc-exp.y (name_not_typename): Use OP_THIS.
5289 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5291 <OP_OBJC_SELF>: Remove.
5292 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5294 2011-06-16 Tristan Gingold <gingold@adacore.com>
5296 * python/py-events.h (gdb_py_events): Make it extern.
5297 * python/py-evtregistry.c (gdb_py_events): Declare.
5299 2011-06-16 Hui Zhu <teawater@gmail.com>
5301 * remote.c (remote_trace_set_readonly_regions): Add check for
5302 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5305 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5307 * arm-linux-tdep.c: Include "auxv.h".
5309 (ARM_LINUX_SIZEOF_VFP): Define.
5310 (arm_linux_supply_vfp): New function.
5311 (arm_linux_collect_vfp): Likewise.
5312 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5313 (arm_linux_fpa_regset_sections): New variable.
5314 (arm_linux_vfp_regset_sections): Likewise.
5315 (arm_linux_core_read_description): New function.
5316 (arm_linux_init_abi): Install arm_linux_core_read_description and
5317 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5318 appropriate for the architecture.
5319 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5320 (tdesc_arm_with_m): Declare.
5321 (tdesc_arm_with_iwmmxt): Likewise.
5322 (tdesc_arm_with_vfpv2): Likewise.
5323 (tdesc_arm_with_vfpv3): Likewise.
5324 (tdesc_arm_with_neon): Likewise.
5325 * arm-linux-nat.c: Move features/*.c includes ...
5326 * arm-tdep.c: ... here.
5327 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5328 target description data structures ...
5329 * arm-tdep.c (_initialize_arm_tdep): ... here.
5330 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5331 HWCAP_VFPv3D16): Move definitions ...
5332 * arm-linux-tdep.h: ... here.
5334 2011-06-15 Hui Zhu <teawater@gmail.com>
5336 * remote.c (remote_trace_set_readonly_regions): Add a check for
5339 2011-06-14 Tom Tromey <tromey@redhat.com>
5341 * coffread.c (coffread_objfile): Rename from current_objfile.
5342 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5343 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5345 2011-06-14 Tom Tromey <tromey@redhat.com>
5347 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5348 (class_symtab): Remove.
5349 (jv_dynamics_progspace_key): New global.
5350 (jv_per_objfile_free): Reset program space data. Update assert.
5351 Don't clear globals.
5352 (get_dynamics_objfile): Use and set program space data.
5353 (get_java_class_symtab): Use get_dynamics_objfile.
5354 (add_class_symbol): Likewise.
5355 (java_link_class_type): Likewise.
5356 (java_object_type, jv_clear_object_type, set_java_object_type):
5358 (get_java_object_type): Update. Don't cache result.
5359 (is_object_type): Don't call set_java_object_type.
5360 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5361 initialize jv_dynamics_progspace_key.
5363 2011-06-14 Tom Tromey <tromey@redhat.com>
5365 * symtab.h (current_objfile): Don't declare.
5366 * objfiles.h (current_objfile): Don't declare.
5367 * objfiles.c (current_objfile): Remove.
5368 * mdebugread.c (current_objfile): New file-scope global.
5369 * dbxread.c (current_objfile): New file-scope global.
5370 * coffread.c (current_objfile): New file-scope global.
5372 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5374 * top.h (line): Rename to ...
5375 (saved_command_line): ... this.
5376 (linesize): Rename to ...
5377 (saved_command_line_size): ... this.
5378 * top.c (line): Rename to ...
5379 (saved_command_line): ... this.
5380 (linesize): Rename to ...
5381 (saved_command_line_size): ... this.
5382 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5383 * event-top.c (command_line_handler): Adjust.
5384 * main.c (captured_main): Adjust.
5386 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5388 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5389 get_frame_func instead of get_frame_pc to determine the code
5390 address used to construct the frame ID.
5391 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5392 (i386_epilogue_frame_this_id): Likewise.
5393 (i386_epilogue_frame_prev_register): New function.
5394 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5395 (i386_stack_tramp_frame_sniffer): Fix coding style.
5396 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5397 (i386_gdbarch_init): Fix comments.
5399 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5401 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5402 instruction when walking back through the instruction stream.
5404 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5406 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5407 fullname parameters order.
5409 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5412 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5414 * psymtab.c (map_symbol_filenames_psymtab)
5415 (map_partial_symbol_filenames): Likewise.
5416 * psymtab.h: Include symfile.h.
5417 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5418 * symfile.h (symbol_filename_ftype): New.
5419 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5420 map_symbol_filenames, clarify more the naming in comment.
5422 2011-06-07 Doug Evans <dje@google.com>
5424 * cc-with-index.sh: Fix typos in comment.
5425 Look for ../../gdb, for fullname.exp.
5427 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5428 Pedro Alves <pedro@codesourcery.com>
5430 * cli/cli-cmds.c (shell_escape): Use waitpid.
5431 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5433 2011-06-07 Tristan Gingold <gingold@adacore.com>
5435 * xcoffread.c (dwarf2_xcoff_names): New variable.
5436 (aix_process_linenos): Add a guard.
5437 (xcoff_symfile_finish): Free dwarf2.
5438 (xcoff_initial_scan): Add dwarf2 support.
5440 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5442 * infcall.c (run_inferior_call): Don't mask async. Instead force
5443 a synchronous wait, if the target can async.
5445 * target.h (struct target_ops): Delete to_async_mask.
5446 (target_async_mask): Delete.
5447 * target.c (update_current_target): Delete references to to_async_mask.
5448 * linux-nat.c (linux_nat_async_mask_value): Delete.
5449 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5450 to linux_nat_async_mask_value.
5451 (linux_nat_async_mask): Delete.
5452 (linux_nat_async, linux_nat_close): Remove references to
5453 linux_nat_async_mask_value.
5454 * record.c (record_async_mask_value): Delete.
5455 (record_async): Remove references to record_async_mask_value.
5456 (record_async_mask): Delete.
5457 (record_can_async_p, record_is_async_p): Remove references to
5458 record_async_mask_value.
5459 (init_record_ops, init_record_core_ops): Remove references to
5461 * remote.c (remote_async_mask_value): Delete.
5462 (init_remote_ops): Remove reference to remote_async_mask.
5463 (remote_can_async_p, remote_is_async_p): Remove references to
5464 remote_async_mask_value.
5465 (remote_async): Remove references to remote_async_mask_value.
5466 (remote_async_mask): Delete.
5468 * infrun.c (fetch_inferior_event): Don't claim registers changed
5469 if the current thread is already not executing.
5471 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5473 From Stephen Kitt <steve@sk2.org>
5474 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5475 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5477 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5479 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5480 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5482 2011-06-03 Tom Tromey <tromey@redhat.com>
5484 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5486 * python/py-exitedevent.c (create_exited_event_object): Change
5487 type of 'exit_code'. Optionally add exit_code attribute.
5488 (emit_exited_event): Change type of 'exit_code'.
5489 * python/py-event.h (emit_exited_event): Update.
5490 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5491 * infrun.c (handle_inferior_event): Set exit code fields on
5493 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5495 * inferior.c (exit_inferior_1): Initialize new fields.
5497 2011-06-03 Tom Tromey <tromey@redhat.com>
5499 * dwarf2expr.c (get_signed_type): New function.
5500 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5502 2011-06-02 Keith Seitz <keiths@redhat.com>
5504 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5506 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5508 * top.h (simplified_command_loop): Delete declaration.
5510 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5512 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5513 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5515 2011-06-01 Yao Qi <yao@codesourcery.com>
5517 * objfiles.h (obj_section_addr): Update reference to objfile from
5519 (obj_section_endaddr): Likewise.
5521 2011-06-01 Daniel Jacobowitz <drow@false.org>
5523 * MAINTAINERS: Update my email address and affiliation. Also
5524 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5526 2010-05-31 Keith Seitz <keiths@redhat.com>
5529 * linespec.c (get_search_block): New function.
5530 (find_methods): Add FILE_SYMTATB parameter and use it and
5531 get_search_block to pass an appropriate block to
5532 lookup_symbol_in_namespace.
5533 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5534 Check if *ARGPTR starts with a filename first.
5535 If it does, call locate_first_half again to locate the next
5536 "first half" of the linespec.
5537 Pass FILE_SYMTATB to decode_objc and decode_compound.
5538 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5539 (locate_first_half): Stop on the first colon seen.
5540 (decode_compound): Add FILE_SYMTAB parameter.
5541 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5542 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5543 get_search_block with lookup_symbol.
5544 (find_method): Add FILE_SYMTAB parameter and pass it to
5546 (decode_objc): Use get_search_block.
5548 2010-05-31 Keith Seitz <keiths@redhat.com>
5551 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5552 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5553 and CP_ANONYMOUS_NAMESPACE_LEN.
5554 (cp_is_anonymous): Likewise.
5555 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5556 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5557 * dwarf2read.c (namespace_name): Likewise.
5558 (fixup_partial_die): Likewise.
5559 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5560 seen in the input, keep it.
5562 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5564 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5565 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5566 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5567 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5568 * remote.c (_initialize_remote): Register
5569 async_remote_interrupt_twice directly as
5570 sigint_remote_twice_token event.
5572 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5574 * target.h (enum inferior_event_type): Delete INF_ERROR.
5575 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5577 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5579 * interps.c (interp_set): Don't cancel continuations.
5581 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5583 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5585 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5587 * continuations.h (continuation_ftype): Add `err' parameter.
5588 Document parameters.
5589 (do_all_continuations, do_all_continuations_thread)
5590 (do_all_intermediate_continuations)
5591 (do_all_intermediate_continuations_thread)
5592 (do_all_inferior_continuations): Add `err' parameter.
5593 * continuations.c (do_my_continuations_1, do_my_continuations)
5594 (do_all_inferior_continuations, do_all_continuations_ptid)
5595 (do_all_continuations_thread_callback)
5596 (do_all_continuations_thread, do_all_continuations)
5597 (do_all_intermediate_continuations_thread_callback)
5598 (do_all_intermediate_continuations_thread)
5599 (do_all_intermediate_continuations): Add `err' parameter, and pass
5600 it down all the way to the continuations proper.
5601 * inf-loop.c (inferior_event_handler): If fetching an inferior
5602 event throws an error, don't pop the target, and still call the
5603 continuations, but with `err' set. Adjust all other continuation
5605 * breakpoint.c (until_break_command_continuation): Add `err'
5607 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5608 issue another step if `err' is set.
5609 (struct until_next_continuation_args): New.
5610 (until_next_continuation): Add `err' parameter. Adjust.
5611 (until_next_command): Adjust.
5612 (struct finish_command_continuation_args): Add `thread' field.
5613 (finish_command_continuation): Add `err' parameter. Handle it.
5614 (finish_forward): Adjust.
5615 (attach_command_continuation): Add `err' parameter. Handle it.
5616 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5617 cancel the continuations.
5618 * interps.c (interp_set): Adjust to cancel the continuations.
5619 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5620 continuations rather than discarding.
5621 (free_thread): Don't clear thread inferior resources here.
5622 (delete_thread_1): Do it here instead. And do it before removing
5623 the thread from the threads list. Tag the thread as exited before
5624 clearing thread inferior resources.
5626 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5628 * infcall.c (call_function_by_hand): Rephrase error message.
5630 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5632 * defs.h (struct thread_info, struct inferior): Delete forward
5634 * breakpoint.h (struct thread_info): New forward declaration.
5635 * observer.sh (struct inferior): New forward declaration.
5636 * python/python-internal.h (struct inferior): New forward
5639 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5641 * defs.h (struct continuation, continuation_ftype)
5642 (continuation_free_arg_ftype, add_continuation)
5643 (do_all_continuations, do_all_continuations_thread)
5644 (discard_all_continuations, discard_all_continuations_thread)
5645 (add_intermediate_continuation, do_all_intermediate_continuations)
5646 (do_all_intermediate_continuations_thread)
5647 (discard_all_intermediate_continuations)
5648 (discard_all_intermediate_continuations_thread)
5649 (add_inferior_continuation, do_all_inferior_continuations)
5650 (discard_all_inferior_continuations): Move to ...
5651 * continuations.h: ... this new file.
5652 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5653 infcmd.c, inferior.c, infrun.c, interps.c: Include
5656 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5657 Doug Evans <dje@google.com>
5659 Fix PR 10970, PR 12702.
5660 * linux-nat.c (linux_lwp_is_zombie): New function.
5661 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5662 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5664 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5666 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5668 (add_continuation, add_intermediate_continuation)
5669 (add_inferior_continuation): Use them.
5670 * continuations.c (struct continuation): Use them.
5671 (make_continuation_ftype): Delete.
5672 (make_continuation, add_inferior_continuation, add_continuation)
5673 (add_intermediate_continuation): Use continuation_ftype and
5674 continuation_free_arg_ftype. Rename parameters to shorter names.
5676 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5678 * continuations.c (make_continuation): Make it return void.
5679 (do_my_continuations): Rename to ...
5680 (do_my_continuations_1): ... this. Remove old_chain parameter and
5682 (do_my_continuations): New.
5683 (discard_my_continuations): Rename to ...
5684 (discard_my_continuations_1): ... this. Remove old_chain
5685 parameter and adjust.
5686 (discard_my_continuations): New.
5687 (add_inferior_continuation): Simplify.
5688 (do_all_inferior_continuations): Reimplement on top
5689 do_my_continuations.
5690 (discard_all_inferior_continuations): Simplify.
5691 (add_continuation): Simplify.
5692 (do_all_continuations_ptid): Simplify.
5693 (discard_all_continuations_thread_callback): Simplify.
5694 (add_intermediate_continuation): Simplify.
5695 (discard_all_intermediate_continuations_thread_callback):
5698 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5700 * utils.c (struct continuation, add_continuation)
5701 (add_inferior_continuation)
5702 (do_all_inferior_continuations, discard_all_inferior_continuations)
5703 (restore_thread_cleanup, do_all_continuations_ptid)
5704 (do_all_continuations_thread_callback)
5705 (do_all_continuations_thread, do_all_continuations)
5706 (discard_all_continuations_thread_callback)
5707 (discard_all_continuations_thread, discard_all_continuations)
5708 (add_intermediate_continuation)
5709 (do_all_intermediate_continuations_thread_callback)
5710 (do_all_intermediate_continuations_thread)
5711 (do_all_intermediate_continuations)
5712 (discard_all_intermediate_continuations_thread_callback)
5713 (discard_all_intermediate_continuations_thread)
5714 (discard_all_intermediate_continuations): Move to ...
5715 * continuations.c: ... this new file, and adjust to no longer
5716 implement continuations on top of cleanups.
5717 * Makefile.in (SFILES): Add continuations.c.
5718 (COMMON_OBS): Add continuations.o.
5720 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5722 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5723 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5724 Internal error on invalid values.
5725 * reverse.c: Don't handle EXEC_ERROR.
5726 * mi/mi-main.c: Don't handle EXEC_ERROR.
5728 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5730 * record.c: Include event-loop.h, inf-loop.h.
5731 (record_beneath_to_async): New global.
5732 (tmp_to_async): New global.
5733 (record_async_inferior_event_token): New global.
5734 (record_open_1): Don't error out if async is enabled.
5735 (record_open): Handle to_async. Create an async event source in
5737 (record_close): Delete the async event source.
5738 (record_resumed): New global.
5739 (record_execution_dir): New global.
5740 (record_resume, record_core_resume): Set them. Register the
5741 target on the event loop.
5742 (record_wait): Rename to ...
5743 (record_wait_1): ... this. Add more debug output. Handle
5744 TARGET_WNOHANG, and the target beneath returning
5745 TARGET_WAITKIND_IGNORE.
5746 (record_wait): Reimplement on top of record_wait_1.
5747 (record_async_mask_value): New global.
5748 (record_async, record_async_mask, record_can_async_p)
5749 (record_is_async_p, record_execution_direction): New functions.
5750 (init_record_ops, init_record_core_ops): Install new methods.
5751 * infrun.c (fetch_inferior_event): Temporarily switch the global
5752 execution direction to the direction the target was going.
5753 (execution_direction): Change type to int.
5754 * target.c (default_execution_direction): New function.
5755 (update_current_target): Inherit and de_fault
5756 to_execution_direction.
5757 * target.h (struct target_ops) <to_execution_direction>: New
5759 (target_execution_direction): New macro.
5760 * inferior.h (execution_direction): Change type to int.
5762 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5764 * infcall.c (call_function_by_hand): Don't allow calling functions
5765 in reverse execution mode.
5767 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5769 * infcmd.c (finish_command): Allow async finish in reverse.
5771 2011-05-26 Yao Qi <yao@codesourcery.com>
5773 * gdb_thread_db.h: Delete. Move to ...
5774 * common/gdb_thread_db.h: ... here.
5776 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5778 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5779 function's entry point instead of a manually managed momentary
5780 breakpoint, and only ever issue one proceed call.
5781 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5782 doing a reverse-finish, switch to stepi mode, to do another step.
5783 (insert_step_resume_breakpoint_at_sal): Make public.
5784 (normal_stop): No need to save function value return registers if
5786 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5788 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5790 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5791 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5792 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5794 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5795 step-resume breakpoints.
5796 (print_it_typical): Handle bp_hp_step_resume.
5797 (bpstat_what): Ditto.
5798 (bptype_string): Ditto.
5799 (print_one_breakpoint_location): Ditto.
5800 (allocate_bp_location): Ditto.
5802 (breakpoint_re_set_one): Ditto.
5803 * infrun.c (handle_inferior_event): Adjust. Split
5804 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5805 BPSTAT_WHAT_HP_STEP_RESUME.
5806 (insert_step_resume_breakpoint_at_sal): Rename to ...
5807 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5808 parameter. Handle it.
5809 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5810 insert_step_resume_breakpoint_at_sal_1.
5811 (insert_step_resume_breakpoint_at_frame): Rename to ...
5812 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5813 set a high-priority step-resume breakpoint.
5814 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5815 (insert_step_resume_breakpoint_at_caller): Ditto.
5817 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5819 * breakpoint.c (iterate_over_related_breakpoints): New.
5820 (do_map_delete_breakpoint): New.
5821 (delete_command): Pass do_map_delete_breakpoint to
5822 map_breakpoint_numbers.
5823 (do_disable_breakpoint): New.
5824 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5826 (do_enable_breakpoint): Rename to ...
5827 (enable_breakpoint_disp): ... this.
5828 (enable_breakpoint): Adjust.
5829 (do_enable_breakpoint): New.
5830 (enable_once_breakpoint): Delete.
5831 (do_map_enable_breakpoint): New.
5832 (do_map_enable_once_breakpoint): New.
5833 (enable_once_command, enable_delete_command)
5834 (delete_trace_command): Iterate over the breakpoint's related
5837 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5839 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5840 for ALPHA_ZERO_REGNUM.
5841 (alpha_supply_int_regs): Explicitly supply zero as the value for
5842 ALPHA_ZERO_REGNUM in the register cache.
5843 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5845 2011-05-26 Yao Qi <yao@codesourcery.com>
5847 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5849 2011-05-26 Tristan Gingold <gingold@adacore.com>
5851 * symfile.h (struct dwarf2_section_names): New type.
5852 (struct dwarf2_debug_sections): New type.
5853 (dwarf2_has_info): Add parameter.
5854 * dwarf2read.c (dwarf2_elf_names): New variable.
5855 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5856 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5857 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5858 (dwarf2_has_info): Add names parameter. Pass names
5859 to dwarf2_locate_sections.
5860 (section_is_p): Rewrite using the names parameter.
5861 (dwarf2_locate_sections): Use section names from the names parameter.
5862 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5863 * elfread.c (read_psyms): Ditto.
5864 * machoread.c (macho_symfile_read): Ditto.
5866 2011-05-25 Andreas Schwab <schwab@redhat.com>
5869 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5871 2011-05-24 Keith Seitz <keiths@redhat.com>
5874 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5875 (decode_compound): Unconditionally call keep_name_info.
5877 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5879 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5880 scope, clear its command list.
5881 (map_breakpoint_numbers): Don't walk the related breakpoints list
5884 2011-05-24 Tom Tromey <tromey@redhat.com>
5886 * MAINTAINERS: Move Jim Blandy to past maintainers.
5888 2011-05-24 Tristan Gingold <gingold@adacore.com>
5890 * symfile.h (enum dwarf2_section_enum): New type.
5891 (dwarf2_get_section_info): New prototype.
5892 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5893 section_name by sect. Use a switch to select the info.
5894 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5895 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5897 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5899 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5900 shared library event breakpoint if there's no execution.
5902 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5904 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5905 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5907 2011-05-23 Tom Tromey <tromey@redhat.com>
5909 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5912 2011-05-23 Doug Evans <dje@google.com>
5914 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5915 entry for RuntimeError to doc string.
5917 2011-05-23 Jerome Guitton <guitton@adacore.com>
5919 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5920 sequence for probing loops.
5922 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5924 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5927 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5929 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5930 zero as the value for %g0 in the register cache.
5931 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5932 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5934 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5936 * infrun.c (proceed): Set previous_inferior_ptid here.
5937 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5938 inferior_ptid, not null_ptid.
5939 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5940 (fetch_inferior_event): Nor here.
5942 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5944 * inf-loop.c (inferior_event_handler): Only output a message if
5947 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
5949 * MAINTAINERS: Update my e-mail address.
5951 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5953 * infrun.c (proceed): Switch the inferior event loop to
5954 INF_EXEC_COMPLETE if the target refused to resume from a
5957 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5959 * infcmd.c: Include "inf-loop.h".
5960 (step_once): When stepping into an inline subroutine, pretend the
5961 target has run. If the target can async, switch the inferior
5962 event loop to INF_EXEC_COMPLETE.
5963 * inferior.h (user_visible_resume_ptid): Declare.
5964 * infrun.c (user_visible_resume_ptid): New function, factored out
5967 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5968 that the current thread is running. Merge async and sync
5971 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5973 * infcmd.c (step_1): Simplify synchronous case.
5975 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5977 * tracepoint.c: Include exceptions.h.
5978 (TFILE_PID): Move higher in file.
5979 (tfile_open): Delay pushing the tfile target until we're assured
5980 the tfile header is present in the file. Wrap reading the initial
5981 newline-terminated lines in TRY_CATCH. Pop the target if the
5982 initial setup failed. Add the tfile's thread immediately
5983 aftwards, before any non-essential setup. Don't skip
5984 post_create_inferior if there are no traceframes present in the
5986 (tfile_close): Remove redundant check for null before xfree call.
5987 (tfile_thread_alive): New function.
5988 (init_tfile_ops): Register it as to_thread_alive callback.
5990 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5992 * tracepoint.c (tfile_open): Delete #if 0'd code.
5994 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5996 Fix -readnow for -gdwarf-4 unused type units.
5997 * dwarf2read.c (struct signatured_type): Remove the field offset.
5998 (create_signatured_type_table_from_index): Remove its initialization.
5999 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6000 instead. Add a complaint call.
6001 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6002 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6003 (lookup_signatured_type_at_offset, read_signatured_type)
6004 (write_one_signatured_type): Update the field for per_cu.
6006 2011-05-19 Tom Tromey <tromey@redhat.com>
6008 * python/py-inferior.c (python_inferior_exit): Use
6010 (python_on_resume): Likewise.
6012 2011-05-19 Matt Rice <ratmice@gmail.com>
6014 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6016 2011-05-19 Hui Zhu <teawater@gmail.com>
6018 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6020 2011-05-19 Hui Zhu <teawater@gmail.com>
6022 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6024 2011-05-18 Tom Tromey <tromey@redhat.com>
6026 * dwarf2read.c (dwarf2_add_field): Constify.
6027 * value.c (value_static_field): Constify.
6028 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6030 * ax-gdb.c (gen_static_field): Constify
6032 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6034 * linux-nat.c (kill_callback): Use SIGKILL first.
6036 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6038 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6040 2011-05-18 Tom Tromey <tromey@redhat.com>
6042 * value.c (value_fn_field): Constify.
6043 * symtab.c (gdb_mangle_name): Constify.
6044 * stabsread.c (update_method_name_from_physname): Make 'physname'
6046 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6047 const. Use explicit fputc_filtered loop.
6048 (pascal_type_print_base): Constify.
6049 * p-lang.h (pascal_type_print_method_args): Update.
6050 * linespec.c (add_matching_methods): Constify.
6051 (add_constructors): Likewise.
6052 * jv-typeprint.c (java_type_print_base): Constify.
6053 * gdbtypes.h (struct cplus_struct_type)
6054 <fn_fieldlist.fn_field.physname>: Now const.
6055 * dwarf2read.c (compute_delayed_physnames): Constify.
6056 (dwarf2_add_member_fn): Likewise.
6057 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6059 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6061 * infrun.c (resume): Mention which is the current thread, and its
6062 current PC in debug output.
6063 (prepare_to_proceed): Mention the thread switching in debug
6066 2011-05-18 Tom Tromey <tromey@redhat.com>
6068 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6069 path check. Use xmalloc and cleanups.
6070 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6072 2011-05-17 Tom Tromey <tromey@redhat.com>
6074 * cp-valprint.c (cp_print_value_fields): Catch errors from
6077 2011-05-17 Tom Tromey <tromey@redhat.com>
6079 * dwarf2read.c (dwarf2_get_die_type): Call
6080 get_die_type_at_offset.
6081 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6082 get_base_type function.
6084 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6086 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6089 2011-05-16 Doug Evans <dje@google.com>
6091 * python/py-auto-load.c (source_section_scripts): Mention objfile
6094 2011-05-15 Doug Evans <dje@google.com>
6096 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6097 (try_thread_db_load_from_pdir): Call it. If unable to find
6098 libthread_db in directory of libpthread, see if we're looking at
6099 the separate-debug-info copy.
6101 * python/py-autoload.c (print_script): Print "Missing" instead of
6102 "No" for missing scripts.
6103 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6105 2011-05-13 Doug Evans <dje@google.com>
6107 * ui-file.c (stdio_file_write_async_safe): Add comment.
6109 2011-05-14 Hui Zhu <teawater@gmail.com>
6111 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6113 2011-05-13 Doug Evans <dje@google.com>
6115 Support $pdir and $sdir in libthread-db-search-path.
6116 * NEWS: Mention $sdir,$pdir.
6117 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6118 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6119 (try_thread_db_load_from_sdir): New function.
6120 (try_thread_db_load_from_dir): New function.
6121 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6122 system directories if search of libthread-db-search-path fails,
6123 that is now done via $sdir.
6124 (has_libpthread): New function.
6125 (thread_db_load): Remove search for libthread_db in directory of
6126 libpthread, that is now done via $pdir.
6128 * NEWS: Mention "info auto-load-scripts".
6129 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6130 script_not_found_warning_printed.
6131 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6132 all callers updated. Initialize script_not_found_warning_printed.
6133 (get_auto_load_pspace_data_for_loading): New function.
6134 (maybe_add_script): New function.
6135 (source_section_scripts): Simplify. Only print one warning regardless
6136 of the number of auto-load scripts not found.
6137 (clear_section_scripts): Clear script_not_found_warning_printed.
6138 (auto_load_objfile_script): Record script in hash table.
6139 (count_matching_scripts): New function.
6140 (maybe_print_script): Renamed from maybe_print_section_script, all
6141 callers updated. Rewrite to use ui_out_*.
6142 (info_auto_load_scripts): Renamed from
6143 maintenance_print_section_scripts, all callers updated.
6144 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6145 renamed as "info auto-load-scripts".
6147 2011-05-13 Tom Tromey <tromey@redhat.com>
6149 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6150 (read_sleb128): Likewise.
6152 2011-05-13 Tom Tromey <tromey@redhat.com>
6154 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6157 2011-05-13 Doug Evans <dje@google.com>
6159 * linux-nat.c (debug_linux_nat_async): Delete.
6160 Replace all references to use debug_linux_nat instead.
6161 (show_debug_linux_nat_async): Delete.
6162 (sigchld_handler): Call ui_file_write_async_safe instead of
6164 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6165 * ui-file.c (struct ui_file): New member to_write_async_safe.
6166 (null_file_write_async_safe): New function.
6167 (ui_file_write_async_safe): New function.
6168 (set_ui_file_write_async_safe): New function.
6169 (ui_file_new): Initialize to_write_async_safe.
6170 (stdio_file_write_async_safe): New function.
6171 (struct stdio_file): New member fd.
6172 (stdio_file_new): Initialize to_write_async_safe, fd.
6173 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6175 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6176 (set_ui_file_write_async_safe): Declare.
6177 (ui_file_write_async_safe): Declare.
6179 2011-05-13 Tom Tromey <tromey@redhat.com>
6181 * utils.c (do_value_free): New function.
6182 (make_cleanup_value_free): Likewise.
6183 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6185 (dwarf2_loc_desc_needs_frame): Call
6186 make_cleanup_value_free_to_mark.
6187 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6188 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6190 (new_dwarf_expr_context): Don't call value_mark.
6191 * dwarf2-frame.c (execute_stack_op): Call
6192 make_cleanup_value_free_to_mark.
6193 * defs.h (make_cleanup_value_free): Declare.
6195 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6197 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6198 prepare_execute_command.
6199 * top.c (prepare_execute_command): Return cleanup.
6200 (execute_command): Use cleanup from prepare_execute_command.
6201 * top.h (prepare_execute_command): Change prototype to return
6203 * defs.h (struct value): Add opaque declaration.
6204 (make_cleanup_value_free_to_mark): Add prototype.
6205 * utils.c (do_value_free_to_mark): New function.
6206 (make_cleanup_value_free_to_mark): Likewise.
6208 2011-05-12 Tom Tromey <tromey@redhat.com>
6210 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6211 cast left-hand-side to unsigned.
6213 2011-05-12 Tom Tromey <tromey@redhat.com>
6216 * value.h (value_from_contents): Declare.
6217 * value.c (value_from_contents): New function.
6218 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6219 (dwarf2_get_die_type): New function.
6220 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6221 (allocate_piece_closure): Acquire reference to values.
6222 (read_pieced_value): Update for value-based expressions.
6223 (write_pieced_value): Likewise.
6224 (free_pieced_value_closure): Call value_free as needed.
6225 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6226 Update for value-based expressions.
6227 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6228 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6229 <get_base_type>: New field.
6230 (struct dwarf_expr_piece) <v.value>: Change type.
6231 <v.regno>: New field.
6232 (struct dwarf_expr_context) <mark>: New field.
6233 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6234 (dwarf_expr_pop, dwarf_expr_push): Remove.
6235 (dwarf_expr_push_address): Declare.
6236 * dwarf2expr.c (dwarf_arch_cookie): New global.
6237 (struct dwarf_gdbarch_types): New.
6238 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6240 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6242 (dwarf_expr_push_address): New function.
6243 (dwarf_expr_pop): Now static.
6244 (dwarf_expr_fetch): Change return type.
6245 (dwarf_require_integral): New function.
6246 (dwarf_expr_fetch): Simplify.
6247 (add_piece): Update.
6248 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6250 (execute_stack_op) <sign_ext>: Remove.
6251 Use values for DWARF stack.
6252 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6253 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6255 (_initialize_dwarf2expr): New function.
6256 (add_piece): Update.
6257 (new_dwarf_expr_context): Set new field.
6258 (free_dwarf_expr_context): Call value_free_to_mark.
6259 * dwarf2-frame.c (no_base_type): New function.
6260 (execute_stack_op): Set get_base_type field. Update.
6262 2011-05-12 Tom Tromey <tromey@redhat.com>
6264 * dwarf2read.c (read_common_block): Fix formatting.
6266 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6268 * breakpoint.c (disable_breakpoint): Disable all locations
6269 associated with a tracepoint on target if a trace experiment is
6271 (disable_command): Disable a specific tracepoint location on target if
6272 a trace experiment is running.
6273 (do_enable_breakpoint): Enable all locations associated with a
6274 tracepoint on target if a trace experiment is running.
6275 (enable_command) Enable a specific tracepoint location on target if a
6276 trace experiment is running.
6277 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6278 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6279 to_disable_tracepoint.
6280 * target.h: Add declaration of struct bp_location.
6281 (struct target_ops): Add new functions
6282 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6283 to_disable_tracepoint to target operations.
6284 (target_supports_enable_disable_tracepoint): New macro.
6285 (target_enable_tracepoint): New macro.
6286 (target_disable_tracepoint): New macro.
6287 * remote.c (struct remote_state): Add new field.
6288 (remote_enable_disable_tracepoint_feature): New.
6289 (remote_protocol_features): Add new entry.
6290 (remote_supports_enable_disable_tracepoint): New.
6291 (remote_enable_tracepoint): New.
6292 (remote_disable_tracepoint): New.
6293 (init_remote_ops): Add remote_enable_tracepoint,
6294 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6295 to remote operations.
6296 * tracepoint.c (start_tracing): Allow tracing to start without any
6297 tracepoints enabled with just a warning if they can be re-enabled
6299 * NEWS: Add news item for the new behaviour of the enable and disable
6300 GDB commands when applied to tracepoints.
6301 Add news items for the new remote packets QTEnable and QTDisable.
6303 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6305 * config.in: Regenerate.
6306 * configure: Regenerate.
6307 * configure.ac <--with-system-readline> (for readline_echoing_p):
6309 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6310 (tui_old_rl_echoing_p): ... here.
6311 (tui_setup_io): Rename extern declaration readline_echoing_p to
6312 _rl_echoing_p. Adjust assignments for the both renames.
6314 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6316 * symtab.c (lookup_symtab): Run cleanup before returning.
6318 2011-05-11 Tom Tromey <tromey@redhat.com>
6320 * dwarf2read.c (handle_data_member_location): New function.
6321 (dwarf2_add_field): Use it.
6322 (read_common_block): Likewise.
6324 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6326 Make addrs->SECTINDEX always defined.
6327 * symfile.c (relative_addr_info_to_section_offsets): Check for
6328 SECTINDEX -1, not for zero ADDR.
6329 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6330 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6331 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6334 2011-05-10 Doug Evans <dje@google.com>
6336 * linux-thread-db.c: Whitespace cleanup.
6337 (try_thread_db_load_1): Fix comment.
6339 * linux-thread-db.c (set_libthread_db_search_path): New function.
6340 (_initialize_thread_db): Add setter for libthread-db-search-path.
6342 2011-05-09 Doug Evans <dje@google.com>
6344 * NEWS: Mention --with-iconv-bin.
6345 * configure.ac: New option --with-iconv-bin.
6346 * configure: Regenerate.
6347 * config.in: Regenerate.
6348 * defs.h (relocate_gdb_directory): Declare.
6349 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6350 removed progname parameter, and exported. All callers updated.
6351 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6353 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6354 adding missing call to restore_child_signals_mask.
6356 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6358 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6360 * infrun.c (proceed, start_remote): Adjust.
6361 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6362 and adjust to not handle it.
6363 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6364 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6365 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6366 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6367 * windows-nat.c (do_initial_windows_stuff): Adjust.
6368 * infcmd.c (attach_command): Adjust.
6369 (notice_new_inferior): Adjust.
6371 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6373 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6374 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6375 * spu-tdep.c (op_selb): Use correct value.
6377 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6379 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6380 "parent" parameter to symbol_file_add_from_bfd call.
6382 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6383 Thiago Jung Bauermann <bauerman@br.ibm.com>
6385 Implement support for PowerPC BookE masked watchpoints.
6386 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6388 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6389 method. Initialize to NULL in all existing breakpoint_ops instances.
6390 (struct breakpoint) <hw_wp_mask>: New field.
6391 * breakpoint.c (is_masked_watchpoint): Add prototype.
6392 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6393 breakpoint's breakpoint_ops.works_in_software_mode if available.
6394 (watchpoints_triggered): Handle the case of a hardware masked
6396 (watchpoint_check): Likewise.
6397 (works_in_software_mode_watchpoint): New function.
6398 (insert_masked_watchpoint, remove_masked_watchpoint)
6399 (resources_needed_masked_watchpoint)
6400 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6401 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6402 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6404 (masked_watchpoint_breakpoint_ops): New structure.
6405 (watch_command_1): Check for the existence of the `mask' parameter.
6406 Set b->ops according to the type of hardware watchpoint being created.
6407 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6408 (ppc_linux_remove_mask_watchpoint)
6409 (ppc_linux_masked_watch_num_registers): New functions.
6410 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6411 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6412 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6413 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6414 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6415 (target_masked_watch_num_registers): New functions.
6416 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6417 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6419 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6420 (target_masked_watch_num_registers): Add prototypes.
6422 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6425 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6426 (producer_is_gcc_ge_4_0): New function.
6427 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6428 symtab->language code.
6429 (var_decode_location): Set cu->has_loclist.
6430 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6431 skip. Intialize force_skip from locations_valid. Move the prologue
6432 skipping code into two passes.
6433 * symtab.h (struct symtab): Make the primary field a bitfield. New
6434 field locations_valid.
6436 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6438 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6439 (classify_inner_name): Call cp_lookup_nested_type with
6441 * cp-namespace.c (cp_lookup_nested_type): New variable
6442 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6443 type_name_no_tag_or_error with saved_parent_type.
6444 * dwarf2read.c (load_partial_dies): Read in any children of
6445 DW_TAG_typedef with complaint in such case.
6446 * gdbtypes.c (type_name_no_tag_or_error): New function.
6447 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6448 * valops.c (destructor_name_p): New comment for parameter type. Remove
6449 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6450 * value.h (destructor_name_p): Remove type const.
6452 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6454 * symtab.c (compare_symbol_name): New function.
6455 (completion_list_add_name, expand_partial_symbol_name): Call it,
6456 remove the variable ncmp.
6457 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6460 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6462 Demote to sw watchpoint only in update_watchpoint.
6463 * breakpoint.c (update_watchpoint): Change between software and
6464 hardware watchpoint for all kinds of watchpoints, not just
6465 read/write ones. Determine b->exact value here instead of
6466 in watch_command_1. Error out if there are not enough resources
6467 for a read or access hardware watchpoint.
6468 (watch_command_1): Remove logic of checking whether there are
6469 enough resources available, since update_watchpoint will do that
6470 work now. Don't set b->exact here. Catch exceptions thrown by
6471 update_watchpoint and delete the watchpoint.
6472 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6473 Use target_exact_watchpoints instead.
6474 (delete_breakpoint): Notify observers only if deleted watchpoint
6475 has a breakpoint number assigned to it.
6477 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6479 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6481 2011-05-05 Jerome Guitton <guitton@adacore.com>
6483 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6485 (i386_stack_tramp_frame_unwind): New static global.
6486 (i386_match_pattern): New function, extracted from i386_match_insn.
6487 (i386_match_insn): Use i386_match_pattern.
6488 (i386_match_insn_block): New function.
6489 (i386_tramp_chain_in_reg_insns)
6490 (i386_tramp_chain_on_stack_insns): New static variables.
6491 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6494 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6496 * configure.host (xscale*): Don't handle target.
6497 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6500 2011-05-04 Yao Qi <yao@codesourcery.com>
6502 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6504 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6507 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6508 | * elfread.c (elf_symtab_read): Stop memory leak.
6510 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6512 * nto-tdep.c (nto_target): Replace deprecated call to
6513 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6515 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6517 Fix false GCC warning.
6518 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6520 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6522 * breakpoint.c (update_watchpoint): Move code to change
6523 the enable state of breakpoint from here ...
6524 (do_enable_breakpoint): ... to here.
6526 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6528 * valprint.c (val_print_array_elements): Fixed poor performance
6529 of printing very large arrays with repeat_count_threshold set
6530 to unlimited. New comment.
6532 2011-04-29 Tom Tromey <tromey@redhat.com>
6534 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6535 (mi_parse): Likewise.
6536 * breakpoint.c (break_range_command): Use sizeof char*, not
6538 (create_breakpoint): Likewise.
6539 (parse_breakpoint_sals): Likewise.
6541 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6543 * linux-nat.c (linux_child_remove_fork_catchpoint)
6544 (linux_child_remove_vfork_catchpoint)
6545 (linux_child_remove_exec_catchpoint): New functions.
6546 (linux_target_install_ops): Install them.
6548 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6552 * varobj.c (install_default_visualizer): Do not install a
6553 visualizer if the varobj is CPLUS_FAKE_CHILD.
6554 (construct_visualizer): Likewise.
6556 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6558 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6559 case insensitive comparison.
6561 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6563 * infrun.c (proceed): Revert previous change.
6564 (resume): Instead, handle the case of signal delivery while stepping
6565 off a breakpoint location here, and only if software single-stepping
6566 is used. Handle nested signals.
6568 2011-04-28 Yao Qi <yao@codesourcery.com>
6570 * arm-tdep.c (copy_unmodified): Rename to ...
6571 (arm_copy_unmodified): .. this. New.
6572 (copy_preload): Move common part to ...
6573 (install_preload): .. this. New.
6574 (arm_copy_preload): New.
6575 (copy_preload_reg): Move common part to ...
6576 (install_preload_reg): ... this. New.
6577 (arm_copy_preload_reg): New.
6578 (copy_b_bl_blx): Move common part to ...
6579 (install_b_bl_blx): .. this. New.
6580 (arm_copy_b_bl_blx): New.
6581 (copy_bx_blx_reg): Move common part to ...
6582 (install_bx_blx_reg): ... this. New.
6583 (arm_copy_bx_blx_reg): New.
6584 (copy_alu_reg): Move common part to ...
6585 (install_alu_reg): ... this. New.
6586 (arm_copy_alu_reg): New.
6587 (copy_alu_shifted_reg): Move common part to ...
6588 (install_alu_shifted_reg): ... this. New.
6589 (copy_ldr_str_ldrb_strb): Move common part to ...
6590 (install_ldr_str_ldrb_strb): ... this. New.
6591 (arm_copy_ldr_str_ldrb_strb): New.
6592 (copy_copro_load_store): Move some common part to ...
6593 (install_copy_copro_load_store): ... this. New.
6594 (arm_copy_copro_load_store): New.
6596 (arm_copy_svc): Renamed from copy_svc.
6597 (copy_undef): Delete.
6598 (arm_copy_undef): Renamed from copy_undef.
6599 (decode_ext_reg_ld_st): Delete.
6600 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6601 (decode_svc_copro): Delete.
6602 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6603 (copy_copro_load_store, copy_alu_imm): update callers.
6604 (copy_extra_ld_st, copy_block_xfer): Likewise.
6605 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6606 (decode_miscellaneous, decode_dp_misc): Likewise.
6607 (decode_ld_st_word_ubyte, decode_media): Likewise.
6608 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6609 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6610 (decode_unconditional, decode_miscellaneous): Likewise.
6611 (decode_media, decode_b_bl_ldmstm): Likewise.
6612 (arm_process_displaced_insn): Likewise..
6613 (decode_misc_memhint_neon): Delete.
6614 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6615 (decode_miscellaneous): Delete.
6616 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6617 (decode_dp_misc): Delete.
6618 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6619 (decode_ld_st_word_ubyte): Delete.
6620 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6621 (decode_media): Delete.
6622 (arm_decode_media): Renamed from decode_media.
6623 (decode_b_bl_ldmstm): Delete.
6624 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6625 (decode_ext_reg_ld_st): Delete.
6626 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6627 (decode_unconditional): Delete.
6628 (arm_decode_unconditional): Renamed from decode_unconditional.
6630 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6632 Case insensitive lookups implementation.
6633 * dwarf2read.c: Include ctype.h.
6634 (struct mapped_index): New field version.
6635 (mapped_index_string_hash): New parameter index_version. New comment
6636 for it. Call tolower appropriately.
6637 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6638 Choose the right index version for mapped_index_string_hash.
6639 (dwarf2_read_index): Support also the index version 5. Initialize the
6640 new struct mapped_index field version.
6641 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6642 (find_slot): Explain the version needs. Pass INT_MAX for the new
6644 (write_psymtabs_to_index): Produce version 5.
6645 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6646 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6647 * psymtab.c (lookup_partial_symbol): Find the
6648 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6650 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6652 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6653 (completion_list_add_name): New variable ncmp, initialize it, use it.
6654 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6655 * utils.c (strcmp_iw): Support case_sensitive_off.
6656 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6657 New function comment part. New variables saved_string1,
6658 saved_string2 and case_pass. Add a proper second pass.
6660 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6662 Replace re_comp/re_exec by regcomp/regexec.
6663 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6664 (search_symbols_name_matches): Use them, use regexec.
6665 (search_symbols): New variable retval_chain, adjust the use of
6666 old_chain against it. Replace re_comp by regcomp. Use the new struct
6667 search_symbols_data fields, use regexec instead of re_exec.
6669 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6671 Format the code for the next patch.
6672 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6673 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6674 New variables c1 and c2.
6676 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6678 * infrun.c (proceed): Do not single-step into signal delivery
6679 when stepping off a breakpoint location.
6680 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6681 (insert_step_resume_breakpoint_at_caller): Likewise.
6682 (insert_step_resume_breakpoint_at_sal): Likewise.
6683 (insert_longjmp_resume_breakpoint): Likewise.
6685 2011-04-27 Yao Qi <yao@codesourcery.com>
6687 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6689 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6691 * procfs.c (procfs_pass_signals): Fix advance declaration.
6693 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6695 * target.h (struct target_ops): Remove to_notice_signals;
6696 add to_pass_signals.
6697 (target_notice_signals): Remove.
6698 (target_pass_signals): Add prototype.
6699 * target.c (update_current_target): Remove to_notice_signals;
6700 mention to_pass_signals.
6701 (target_pass_signals): New function.
6702 (debug_to_notice_signals): Remove.
6703 (setup_target_debug): Do not install debug_to_notice_signals.
6705 * infrun.c (signal_pass): New global.
6706 (resume): Call target_pass_signals.
6707 (handle_inferior_event): Report all signals while stepping over
6708 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6709 are re-inserted when stepping over a signal handler.
6710 (signal_cache_update): New function.
6711 (signal_stop_update): Call it.
6712 (signal_print_update): Likewise.
6713 (signal_pass_update): Likewise.
6714 (handle_command): Call signal_cache_update and target_pass_signals
6715 instead of target_notice_signals.
6716 (_initialize_infrun): Initialize signal_pass.
6718 * linux-nat.c (pass_mask): New global.
6719 (linux_nat_pass_signals): New function.
6720 (linux_nat_create_inferior): Report all signals initially.
6721 (linux_nat_attach): Likewise.
6722 (linux_nat_resume): Use pass_mask to decide whether to directly
6723 handle an inferior signal.
6724 (linux_nat_wait_1): Likewise.
6725 (linux_nat_add_target): Install to_pass_signals callback.
6727 * nto-procfs.c (notice_signals): Remove.
6728 (procfs_resume): Do not call notice_signals.
6729 (procfs_notice_signals): Remove.
6730 (procfs_pass_signals): New function.
6731 (init_procfs_ops): Install to_pass_signals callback instead of
6732 to_notice_signals callback.
6733 (_initialize_procfs): Report all signals initially.
6735 * procfs.c (procfs_notice_signals): Remove.
6736 (procfs_pass_signals): New function.
6737 (procfs_target): Install to_pass_signals callback instead of
6738 to_notice_signals callback.
6739 (register_gdb_signals): Remove.
6740 (procfs_debug_inferior): Report all signals initially.
6741 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6743 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6744 parameters; use them instead of calling signal_..._state routines.
6745 (remote_notice_signals): Remove.
6746 (remote_start_remote): Report all signals initially.
6747 (remote_resume): Do not call remote_pass_signals.
6748 (_initialize_remote): Install to_pass_signals callback instead of
6749 to_notice_signals callback.
6751 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6753 * breakpoint.c (user_settable_breakpoint): Delete.
6754 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6755 (delete_command): Check user_breakpoint_p instead of looking at
6756 the breakpoint's type.
6757 (disable_command): Ditto.
6758 (enable_command): Ditto.
6759 (delete_trace_command): Use user_breakpoint_p instead of looking
6760 at the breakpoint number directly. When checking if there are
6761 user visible tracepoints, in order to know whether to ask the user
6762 for confirmation, check whether the breakpoint is actually a
6765 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6767 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6770 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6772 MI breakpoint notifications.
6774 * annotate.c (breakpoint_changed): Adjust parameter type.
6775 * breakpoint.c (set_breakpoint_condition): Adjust to change
6776 in breakpoint_modified type.
6777 (breakpoint_set_commands): Likewise.
6778 (do_map_commands_command): Likewise.
6779 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6780 changed after bumping hit count.
6781 (bpstat_stop_status): Likewise.
6782 (print_one_breakpoint_location): Don't wrap in tuple here.
6783 (print_one_breakpoint): Always print individual locations.
6784 For locations, use unnamed tuple.
6785 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6787 (create_catchpoint, create_syscall_event_catchpoint): Call
6788 breakpoint_created obsever.
6789 (mention): Don't call breakpoint_created observer.
6790 (create_breakpoint_sal): Call breakpoint_created observer.
6791 (create_breakpoint, watch_command_1): Likewise.
6792 (create_ada_exception_breakpoint): Likewise.
6793 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6794 (locations_are_equal): New.
6795 (update_breakpoint_locations): If locations were changed, notify.
6796 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6797 Call breakpoint_modified observer.
6799 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6800 (mi_cmd_break_insert): Don't set observers for modify and delete.
6801 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6802 (mi_breakpoint_created, mi_breakpoint_deleted)
6803 (mi_breakpoint_modified): New.
6804 (mi_interpreter_init): Hook the above.
6805 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6806 while -break-* commands are executing.
6807 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6808 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6810 (mi_ui_out_impl): Hook in mi_redirect.
6811 (mi_field_skip): True to the name, skip the field, don't output
6812 a field with an empty value.
6814 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6815 (gdbpy_breakpoint_deleted): Adjust.
6816 * tui/tui-hooks.c (tui_event_create_breakpoint)
6817 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6819 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6821 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6822 (procfs_remove_hw_watchpoint): Likewise.
6824 2011-04-26 Michael Walle <michael@walle.cc>
6826 * remote.c (remote_start_remote): Ack packet after sending the
6829 2011-04-26 Yao Qi <yao@codesourcery.com>
6831 * linux-nat.c: Move common macros to ...
6832 Include linux-ptrace.h.
6833 * common/linux-ptrace.h: ... here. New.
6835 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6837 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6838 !objfile_has_partial_symbols. New comment.
6839 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6840 SYM_READ_PSYMBOLS is not present. Extend the comment.
6841 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6843 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6845 * defs.h (ENUM_BITFIELD): Remove.
6847 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6848 Eli Zaretskii <eliz@gnu.org>
6850 * NEWS: Document the new gdbserver --once option.
6852 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6854 * MAINTAINERS: Update my email address.
6856 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6858 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6859 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6860 function call if __STDC_ISO_10646__ macro is defined.
6861 (intermediate_encoding): New prototype.
6862 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6863 to generate compile time error for unsupported gdb_wchar_t size.
6864 (ENDIAN_SUFFIX): New macro.
6865 (intermediate_encoding): New function.
6867 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6869 * ada-lang.c (struct add_partial_datum): Update the comment for
6870 expand_partial_symbol_name.
6871 (ada_add_partial_symbol_completions): Rename to ...
6872 (ada_expand_partial_symbol_name): ... here, change return type, update
6873 function comment, call symbol_completion_match instead of
6874 symbol_completion_add.
6875 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6876 and ada_expand_partial_symbol_name.
6877 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6879 (dw2_map_symbol_names): Remove.
6880 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6881 * psymtab.c (map_symbol_names_psymtab): Remove.
6882 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6883 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6885 (psym_functions): Unlist map_symbol_names_psymtab.
6886 (map_partial_symbol_names): Rename to ...
6887 (expand_partial_symbol_names): ... here, change the FUN type, call
6888 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6889 * psymtab.h (map_partial_symbol_names): Rename to ...
6890 (expand_partial_symbol_names): ... here, change the FUN type.
6891 * symfile.h (struct quick_symbol_functions): Update the description of
6892 expand_symtabs_matching. Remove map_symbol_names.
6893 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6894 (struct add_name_data): Update the comment for
6895 expand_partial_symbol_name.
6896 (add_partial_symbol_name): Rename to ...
6897 (expand_partial_symbol_name): ... here. Replace
6898 completion_list_add_name call by strncmp.
6899 (default_make_symbol_completion_list_break_on): Use now
6900 expand_partial_symbol_names and expand_partial_symbol_name.
6901 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6903 2011-04-20 Tom Tromey <tromey@redhat.com>
6905 * dwarf2read.c (save_gdb_index_command): Replace format
6906 documentation with a pointer to the manual.
6908 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6910 * regcache.c: Include remote.h.
6911 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6912 (regcache_dump): Handle regcache_dump_remote.
6913 (maintenance_print_remote_registers): New function.
6914 (_initialize_regcache): Install "maint print remote-registers"
6916 * remote.c (map_regcache_remote_table): New function, factored out
6918 (init_remote_state): ... here.
6919 (remote_register_number_and_offset): New.
6920 * remote.h (remote_register_number_and_offset): Declare.
6922 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6924 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6925 null_ptid, assume and allow a NULL address space, instead of
6926 asking the target for the ptid's address space.
6927 * infrun.c (ptid_is_pid): Remove assertion.
6929 2011-04-19 Tom Tromey <tromey@redhat.com>
6931 * windows-tdep.c (windows_xfer_shared_library):
6932 * windows-nat.c (get_module_name, windows_make_so):
6933 * v850-tdep.c (v850_handle_pushm):
6934 * utils.c (null_cleanup, gdb_realpath):
6935 * ui-out.c (get_next_header):
6936 * tracepoint.c (clear_traceframe_info):
6937 * symtab.c (lookup_symtab):
6938 * serial.h (struct serial_ops):
6939 * mipsread.c (read_alphacoff_dynamic_symtab):
6940 * infcmd.c (print_return_value):
6941 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6942 * f-exp.y (parse_number):
6943 * exceptions.c (catch_exceptions):
6944 * dummy-frame.c (dummy_frame_this_id):
6945 * defs.h (struct cleanup):
6946 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6947 * arm-tdep.c (arm_push_dummy_call):
6948 * amd64-tdep.h (amd64_collect_xsave):
6949 * amd64-tdep.c (amd64_collect_xsave):
6950 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6951 * README (typing): Remove duplicate words.
6952 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6953 * infrun.c (siginfo_value_read): Fix typo.
6954 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6955 * top.c (source_line_number): Add comma.
6957 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6959 * thread.c (any_live_thread_of_process): Prioritize threads
6960 that are not executing.
6961 * gdbthread.h (any_live_thread_of_process): Update comment
6962 as per above change.
6964 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6966 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6967 (scan_xcoff_symtab): Likewise.
6969 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6971 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6974 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6975 Pedro Alves <pedro@codesourcery.com>
6977 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6978 variables to simplify code and avoid == operator at end of
6979 line as this is against GNU coding standards.
6981 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6983 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6984 lm_name to name_lm to avoid conflict with lm_name function.
6986 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6988 ARI fixes: Use only lowercase function name for static functions.
6989 * nto-tdep.c (LM_ADDR): Rename to...
6990 (lm_addr): New function name.
6991 (nto_relocate_section_addresses): Adapt to change above.
6992 * solib-sunos.c (LM_ADDR): Rename to...
6993 (lm_addr): New function name.
6994 (LM_NEXT): Rename to...
6995 (lm_next): New function name.
6996 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6997 function name changes above.
6998 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6999 (lm_addr_from_link_map): New function name.
7000 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7001 (has_lm_dynamic_from_link_map): New function name.
7002 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7003 (lm_dynamic_from_link_map): New function name.
7004 (LM_ADDR_CHECK): Rename to...
7005 (lm_addr_check): New function name.
7006 (LM_NEXT): Rename to...
7007 (lm_next): New function name.
7008 (LM_PREV): Rename to...
7009 (lm_prev): New function name.
7010 (LM_NAME): Rename to...
7011 (lm_name): New function name.
7012 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7013 (ignore_first_link_map_entry): New function name.
7014 (svr4_keep_data_in_core): Adapt to function name changes above.
7015 (svr4_current_sos): Likewise.
7016 (enable_break): Likewise.
7017 (svr4_relocate_section_addresses): Likewise.
7019 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7022 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7023 sprintf. Simplify code and avoid loosing memory.
7024 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7025 (call0_frame_cache): Remove && operator from end of line.
7027 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7029 Fix libraries displacement if they change whether they were prelinked.
7030 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7031 does not match. Comment why.
7033 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7035 * corelow.c: Include wrapper.h.
7036 (core_open): Call now gdb_target_find_new_threads.
7037 * wrapper.c: Include target.h.
7038 (gdb_target_find_new_threads): New.
7039 * wrapper.h (gdb_target_find_new_threads): New declaration.
7041 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7043 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7044 even if !TARGET_HAS_EXECUTION.
7046 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7048 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7049 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7050 bfd_get_synthetic_symtab.
7051 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7052 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7053 parameter parent, remove the call to add_separate_debug_objfile.
7054 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7055 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7056 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7057 parent, new comment for it, call add_separate_debug_objfile for it.
7058 (symbol_file_add_separate): Pass objfile as the parameter parent,
7059 remove the call to add_separate_debug_objfile.
7060 (symbol_file_add_from_bfd): New parameter parent, pass it.
7061 (symbol_file_add): Pass NULL to the new parameter parent.
7062 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7064 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7066 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7069 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7071 Fix Python access to inlined frames.
7072 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7073 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7075 2011-04-15 Tom Tromey <tromey@redhat.com>
7077 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7079 2011-04-15 Gary Benson <gbenson@redhat.com>
7081 * MAINTAINERS: Add myself to write-after-approval section.
7083 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7085 * remote-sim.c (sim_command_completer): New function.
7086 (_initialize_remote_sim): Set completer to sim_command_completer.
7088 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7090 * breakpoint.c (print_exception_catchpoint): Rename to ...
7091 (print_it_exception_catchpoint): ... this.
7092 (gnu_v3_exception_catchpoint_ops): Update with new name
7093 for print_it_exception_catchpoint.
7095 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7097 * MAINTAINERS: Add myself for write after approval privileges.
7099 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7101 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7103 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7105 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7107 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7109 * breakpoint.c (save_breakpoints): Verify whether
7110 breakpoint_ops.print_recreate is defined before calling it.
7112 2011-04-11 Gary Benson <gbenson@redhat.com>
7114 Fix failure with --enable-maintainer-mode.
7115 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7117 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7120 * symtab.c (search_symbols): Reorder the KIND description in the
7121 function comment. Remove the unused 4th element of types, types2,
7122 types3 and types4. New gdb_assert on KIND.
7123 (symtab_symbol_info): Remove the unused 4th element of classnames.
7124 New gdb_assert on KIND.
7125 * symtab.h (enum search_domain): New warning in the enum comment.
7126 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7129 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7131 Fix crash of gdb save-index on a STABS file.
7132 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7135 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7137 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7138 * dwarf2read.c: Include ctype.h.
7139 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7141 (dwarf2_add_field): Fix new_field->accessibility by calling
7142 dwarf2_default_access_attribute. Restructure setting accessibility
7144 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7145 is_private and is_protected by calling
7146 dwarf2_default_access_attribute.
7148 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7150 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7151 to the initialization.
7153 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7155 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7158 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7160 Remove support for old Cygwin 1.5 versions.
7161 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7162 function on old Cygwin version.
7163 * windows-nat.c: Remove cygwin version check and always define
7164 __USEWIDE for Cygwin compilation.
7166 2011-04-07 Yao Qi <yao@codesourcery.com>
7168 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7170 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7171 (arm_copy_svc): Remove parameters INSN and TO.
7172 (decode_svc_copro): Update caller.
7173 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7174 from function pointer `copy_svc_os'.
7176 2011-04-07 Yao Qi <yao@codesourcery.com>
7178 * arm-tdep.c (cleanup_branch): Set a correct return address in
7179 LR for ARM and Thumb.
7181 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7184 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7185 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7186 in the function comment, a new note on values compatibility.
7187 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7188 * symtab.h (SYMBOL_HASH_NEXT): New.
7190 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7192 * ppc-linux-nat.c (check_condition): Add len output parameter.
7193 Set it based on the memory region referenced in the condition
7194 expression. Update all callers.
7196 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7198 Fix crash regression on systems featuring .gdb_index.
7199 * objfiles.c (free_objfile): Move the
7200 forget_cached_source_info_for_objfile call earlier. Comment it.
7201 Extend the comment for objfile_free_data.
7203 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7205 Fix regression of displaying the debug format.
7206 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7209 2011-04-04 Tom Tromey <tromey@redhat.com>
7211 * cli/cli-interp.c (struct captured_execute_command_args):
7213 (do_captured_execute_command): Remove.
7214 (safe_execute_command): Use TRY_CATCH.
7215 * cli/cli-script.c (struct wrapped_read_command_file_args):
7217 (wrapped_read_command_file): Remove.
7218 (script_from_file): Use TRY_CATCH.
7219 * exceptions.c (catch_exception): Remove.
7220 * exceptions.h (catch_exception): Remove.
7221 (deprecated_throw_reason): Update comment.
7222 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7223 argument to 'context'.
7224 (mi_execute_command): Use TRY_CATCH.
7225 * remote.c (struct start_remote_args): Remove.
7226 (remote_start_remote): Update; change arguments.
7227 (remote_open_1): Use TRY_CATCH.
7229 2011-04-04 Tom Tromey <tromey@redhat.com>
7231 * tracepoint.c (scope_info): Update.
7232 * symtab.c (decode_line_spec): Update.
7233 * python/python.c (gdbpy_decode_line): Update.
7234 * linespec.h (decode_line_1): Update.
7235 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7236 (decode_compound, find_method, symtab_from_filename)
7237 (decode_variable): Likewise.
7238 * cli/cli-cmds.c (edit_command): Update.
7239 (list_command): Update.
7240 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7242 (create_breakpoint): Update.
7243 (until_break_command): Update.
7244 (addr_string_to_sals): Update.
7245 (decode_line_spec_1): Update.
7247 2011-04-04 Tom Tromey <tromey@redhat.com>
7249 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7250 (do_captured_parse_breakpoint): Remove.
7251 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7252 Use TRY_CATCH directly.
7254 2011-04-04 Tom Tromey <tromey@redhat.com>
7256 * symtab.h (free_symtab): Remove.
7257 (forget_cached_source_info_for_objfile): Declare.
7258 * symmisc.c (free_symtab): Remove.
7259 * source.c (forget_cached_source_info_for_objfile): New function.
7260 (forget_cached_source_info): Use it.
7261 * objfiles.c (free_objfile): Simplify check before calling
7262 clear_current_source_symtab_and_line. Call
7263 forget_cached_source_info_for_objfile.
7265 2011-04-04 Tom Tromey <tromey@redhat.com>
7267 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7268 (new_symtab): Don't set `free_code' on symtab.
7269 (new_linetable): Properly handle size==0.
7270 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7271 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7273 * jv-lang.c (struct jv_per_objfile_data): New.
7274 (jv_per_objfile_free): Free the data.
7275 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7276 (get_java_class_symtab): Set the `dict' field on the
7277 jv_per_objfile_data.
7278 (free_class_block): Remove.
7279 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7282 2011-04-04 Tom Tromey <tromey@redhat.com>
7284 * symfile.c (reread_symbols): Update.
7285 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7287 * objfiles.c (allocate_objfile): Update.
7288 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7290 * cp-namespace.c (lookup_symbol_file): Don't call
7291 lookup_possible_namespace_symbol.
7292 (initialize_namespace_symtab, get_possible_namespace_block)
7293 (free_namespace_block, cp_check_possible_namespace_symbols)
7294 (check_possible_namespace_symbols_loop)
7295 (check_one_possible_namespace_symbol)
7296 (lookup_possible_namespace_symbol): Remove.
7297 (maintenance_cplus_namespace): Replace with notice.
7298 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7300 2011-04-04 Tom Tromey <tromey@redhat.com>
7302 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7303 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7304 * symmisc.c (free_symtab): Don't free debugformat.
7305 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7306 (record_debugformat, record_producer): Document.
7307 * buildsym.c (end_symtab): Don't save debugformat and producer
7309 (end_symtab): Don't free debugformat and producer fields.
7310 (record_debugformat): Don't call xstrdup.
7311 (record_producer): Likewise.
7313 2011-04-04 Tom Tromey <tromey@redhat.com>
7315 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7316 (source_line_charpos, source_charpos_line): Remove.
7318 2011-04-04 Tom Tromey <tromey@redhat.com>
7320 * symtab.h (domain_enum): Split in two...
7321 (enum search_domain): New.
7322 (search_symbols): Update.
7323 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7324 redundant declarations.
7325 (search_symbols): Change 'kind' argument to search_domain.
7327 (print_symbol_info): Likewise.
7328 (symtab_symbol_info): Likewise.
7329 * symfile.h (struct quick_symbol_functions)
7330 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7331 <expand_symtabs_matching>: Likewise.
7332 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7333 (expand_symtabs_matching_via_partial): Update.
7334 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7335 (dw2_expand_symtabs_for_function): Update.
7336 * block.h: Moved anonymous enum...
7337 * defs.h (enum block_enum): ... here. Now named.
7339 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7341 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7342 * version.in: Bump version to 7.3.50.20110403-cvs.
7344 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7346 * NEWS: Create a new section for the next release branch.
7347 Rename the section of the current branch, now that it has
7350 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7352 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7353 for "fpscr" in target description.
7355 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7357 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7358 initialize it. Delay HASH initialization. Strip the part after open
7359 parenthesis for languages with qualifiers. Call do_cleanups.
7361 2011-04-01 Tom Tromey <tromey@redhat.com>
7363 * utils.c (report_command_stats): Don't print `-' for negative
7366 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7368 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7369 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7372 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7374 * breakpoint.h (bpdisp_text): Add declaration.
7375 * breakpoint.c (bpdisp_text): Make non-static.
7376 * ada-lang.c: #include "mi/mi-common.h".
7377 (print_it_exception): Rewrite to improve GDB/MI output.
7379 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7381 * arm-tdep.h (struct address_space): Add forward declaration.
7383 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7385 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7386 * arm-tdep.c (arm_override_mode): New global.
7387 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7388 execution mode heuristics.
7389 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7390 second single-step breakpoint if needed, using
7391 arm_insert_single_step_breakpoint.
7392 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7393 ARM execution mode, do not call thumb_get_next_pc_raw.
7394 (arm_get_next_pc): Encode execution mode in return value. Call
7395 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7396 (arm_insert_single_step_breakpoint): New function.
7397 (arm_software_single_step): Call it.
7398 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7399 argument to return execution mode of sigreturn target.
7400 (arm_linux_syscall_next_pc): Use it.
7401 (arm_linux_copy_svc): Update call.
7402 (arm_linux_software_single_step): Call
7403 arm_insert_single_step_breakpoint.
7405 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7407 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7410 2011-03-31 Tom Tromey <tromey@redhat.com>
7412 * varobj.c (update_dynamic_varobj_children): Properly handle
7413 errors from iterator.
7415 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7417 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7418 struct linkage name twice.
7420 2011-03-31 Tom Tromey <tromey@redhat.com>
7422 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7423 missing ">" to message.
7425 2011-03-31 Tom Tromey <tromey@redhat.com>
7427 * varobj.c (instantiate_pretty_printer): Remove duplicate
7430 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7432 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7433 if neither saved value nor register available (e.g. signal frame).
7435 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7437 * macroexp.c (expand): Avoid uninitialized variable
7440 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7442 * breakpoint.c (break_range_command): Fix typo in comment.
7444 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7445 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7447 Implement support for PowerPC BookE ranged breakpoints.
7448 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7449 * breakpoint.h (struct bp_target_info) <length>: New member
7451 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7452 instead of struct breakpoint as argument, and also add ASPACE
7453 and BP_ADDR arguments. Update all callers.
7454 (struct breakpoint_ops) <print_one_detail>: New method.
7455 (struct breakpoint) <addr_string_range_end>: New member variable.
7456 * breakpoint.c (breakpoint_location_address_match): Add function
7458 (insert_bp_location): Set bl->target_info.length.
7459 (breakpoint_here_p): Call breakpoint_location_address_match.
7460 (moribund_breakpoint_here_p): Likewise.
7461 (regular_breakpoint_inserted_here_p): Likewise.
7462 (breakpoint_thread_match): Likewise.
7463 (bpstat_stop_status): Likewise.
7464 (bpstat_check_location): Move call to
7465 breakpoint_ops.breakpoint_hit to the top.
7466 (print_one_breakpoint_location): Call
7467 breakpoint_ops.print_one_detail if available.
7468 (breakpoint_address_match_range): New function.
7469 (breakpoint_location_address_match): Likewise.
7470 (breakpoint_locations_match): Compare the length field of the
7472 (hw_breakpoint_used_count): Count resources used by all locations
7473 in a breakpoint, and use breakpoint_ops.resources_needed if
7475 (breakpoint_hit_ranged_breakpoint): New function.
7476 (resources_needed_ranged_breakpoint): Likewise.
7477 (print_it_ranged_breakpoint): Likewise.
7478 (print_one_ranged_breakpoint): Likewise.
7479 (print_one_detail_ranged_breakpoint): Likewise.
7480 (print_mention_ranged_breakpoint): Likewise.
7481 (print_recreate_ranged_breakpoint): Likewise.
7482 (ranged_breakpoint_ops): New structure.
7483 (find_breakpoint_range_end): New function.
7484 (break_range_command): Likewise.
7485 (delete_breakpoint): Free addr_string_range_end.
7486 (update_breakpoint_locations): Add SALS_END argument. Update
7487 all callers. Calculate breakpoint length if a non-zero SALS_END
7488 is given. Call breakpoint_locations_match instead of
7489 breakpoint_address_match.
7490 (reset_breakpoint): Find SaL of the end of the range if B is a
7492 (_initialize_breakpoint): Register break-range command.
7493 * defs.h (print_core_address): Add function prototype.
7494 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7496 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7497 (ppc_linux_remove_hw_breakpoint): Likewise.
7498 (_initialize_ppc_linux_nat): Initialize
7499 to_ranged_break_num_registers.
7500 * target.c (update_current_target): Add comment about
7501 to_ranged_break_num_registers.
7502 (target_ranged_break_num_registers): New function.
7503 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7505 (target_ranged_break_num_registers): Add function prototype.
7506 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7507 * utils.c (print_core_address): ... here.
7509 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7511 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7512 variable compiler warning.
7514 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7516 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7518 (re_set_breakpoint): ... to here ...
7519 (addr_string_to_sals): ... and here.
7521 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7523 * Makefile.in (SFILES): Add missing C sources.
7524 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7525 Add missing headers.
7527 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7529 * .gitignore: New file.
7531 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7533 * NEWS: Mention new cfi device simulation.
7535 2011-03-29 Tom Tromey <tromey@redhat.com>
7537 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7538 otherwise anonymous types.
7539 (dwarf2_name): Likewise.
7540 * valops.c (value_struct_elt_for_reference): Refine artificial
7541 type logic. Call error if j==-1.
7543 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7545 Fix false GCC warning.
7546 * infcall.c (find_function_addr): Initialize funaddr.
7548 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7550 Fix mingw compilation with --enable-targets=all.
7551 * remote-mips.c (gdb_usleep.h): Include header.
7552 (mips_enter_debug): Use gdb_usleep instead of sleep.
7554 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7556 Support resolution of STT_GNU_IFUNC via breakpoints.
7557 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7558 bp_gnu_ifunc_resolver_return.
7559 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7560 the loop. Support bp_gnu_ifunc_resolver and
7561 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7562 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7564 (bptype_string, print_one_breakpoint_location): Support
7565 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7566 (user_settable_breakpoint): Return true also for
7567 bp_gnu_ifunc_resolver.
7568 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7569 bp_gnu_ifunc_resolver_return.
7570 (set_breakpoint_location_function): New parameter explicit_loc,
7571 describe it. Call find_pc_partial_function_gnu_ifunc with new
7572 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7573 EXPLICIT_LOC is not set.
7574 (set_raw_breakpoint): Set EXPLICIT_LOC for
7575 set_breakpoint_location_function.
7576 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7577 set_breakpoint_location_function.
7578 (mention): Support bp_gnu_ifunc_resolver and
7579 bp_gnu_ifunc_resolver_return.
7580 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7581 set_breakpoint_location_function.
7582 (update_breakpoint_locations): Remove static.
7583 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7584 bp_gnu_ifunc_resolver_return.
7585 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7586 bp_gnu_ifunc_resolver_return.
7587 (update_breakpoint_locations): New declaration.
7588 * elfread.c: Include gdbthread.h and regcache.h.
7589 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7591 (elf_gnu_ifunc_fns): Install them.
7592 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7593 (stub_gnu_ifunc_resolver_return_stop): New functions.
7594 (stub_gnu_ifunc_fns): Install them.
7595 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7596 and gnu_ifunc_resolver_return_stop.
7597 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7599 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7601 STT_GNU_IFUNC reader implementation.
7602 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7603 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7604 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7605 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7606 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7607 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7608 (elf_gnu_ifunc_resolve_addr): New.
7609 (elf_symfile_read): Call elf_rel_plt_read.
7610 (elf_gnu_ifunc_fns): New.
7611 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7612 Install elf_gnu_ifunc_fns.
7613 * infcall.c (find_function_return_type): New function.
7614 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7615 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7616 (stub_gnu_ifunc_resolve_name): New functions.
7617 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7618 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7619 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7621 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7623 Code cleanup for later STT_GNU_IFUNC support.
7624 * infcall.c (find_function_addr): Remove variable code, use explicit
7625 dereferences for it. Move VALUE_TYPE initialization later.
7627 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7629 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7630 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7631 (clear_pc_function_cache): Clear it.
7632 (find_pc_partial_function): Rename to ...
7633 (find_pc_partial_function_gnu_ifunc): ... this function. New
7634 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7635 (find_pc_partial_function): New wrapper for this function.
7636 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7638 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7640 GDB internal type support for STT_GNU_IFUNC.
7641 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7642 (elf_symtab_read): Set mst_text_gnu_ifunc for
7643 BSF_GNU_INDIRECT_FUNCTION.
7644 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7645 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7646 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7647 nodebug_got_plt_symbol.
7648 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7649 (TYPE_GNU_IFUNC): New.
7650 (struct main_type): New field flag_gnu_ifunc.
7651 (struct builtin_type): New field builtin_func_func.
7652 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7653 nodebug_got_plt_symbol.
7654 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7655 (in_gnu_ifunc_stub): New.
7656 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7658 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7659 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7660 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7662 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7663 * symtab.c (search_symbols): Likewise.
7664 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7665 and mst_slot_got_plt.
7666 (in_gnu_ifunc_stub): New declaration.
7668 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7670 Support a ring of related breakpoints.
7671 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7672 other functions, add gdb_assert.
7673 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7674 watchpoint_del_at_next_stop.
7675 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7676 (bpstat_stop_status): Handle ring in related_breakpoint.
7677 (set_raw_breakpoint_without_location): Initialize ring in
7679 (delete_breakpoint): Handle ring in related_breakpoint, use
7680 watchpoint_del_at_next_stop.
7681 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7683 2011-03-28 Tom Tromey <tromey@redhat.com>
7686 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7687 with `language_minimal'.
7689 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7691 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7692 instead of checking for STT_ARM_TFUNC symbol type.
7694 2011-03-25 Tom Tromey <tromey@redhat.com>
7696 * linespec.c (symbol_found): Restore line-based result for
7697 non-LOC_LABEL symbols.
7699 2011-03-25 Kai Tietz <ktietz@redhat.com>
7701 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7702 instead of strcmp for comparison.
7703 (tui_source_is_displayed): Likewise.
7704 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7706 2011-03-24 Mark Wielaard <mjw@redhat.com>
7708 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7710 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7711 (find_partial_die_in_comp_unit): Likewise in comment.
7712 (read_attribute_value): Likewise.
7713 (lookup_die_type): Likewise.
7714 (dwarf_form_name): Likewise.
7715 (dump_die_shallow): Likewise.
7716 (follow_die_ref_or_sig): Likewise.
7718 2011-03-24 Tom Tromey <tromey@redhat.com>
7720 PR breakpoints/11816:
7721 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7722 (decode_compound): Update.
7723 (find_function_symbol): New function.
7724 (decode_dollar): Update.
7725 (decode_label): Add 'function_symbol' parameter. Handle
7726 function-relative labels.
7727 (decode_variable): Update.
7728 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7729 not its line. Set `special_display' and canonical name for
7732 2011-03-24 Tom Tromey <tromey@redhat.com>
7734 * linespec.h (struct linespec_result) <special_display>: New
7736 * breakpoint.h (struct breakpoint) <display_canonical>: New
7738 * breakpoint.c (print_breakpoint_location): Respect
7740 (create_breakpoint_sal): Add 'display_canonical' parameter.
7741 (create_breakpoints_sal): Update.
7742 (create_breakpoint): Update.
7744 2011-03-24 Tom Tromey <tromey@redhat.com>
7746 * symtab.c (decode_line_spec): Update.
7747 * linespec.c (build_canonical_line_spec): Change type of
7749 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7750 (find_method, decode_all_digits, decode_dollar, decode_label)
7751 (symbol_found): Likewise.
7752 (init_linespec_result): New function.
7753 * breakpoint.c (struct captured_parse_breakpoint_args)
7754 <canonical_p>: New field, replaces addr_string_p.
7755 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7757 (parse_breakpoint_sals): Likewise.
7758 (do_captured_parse_breakpoint): Update.
7759 (create_breakpoint): Use struct linespec_result.
7760 (until_break_command): Update.
7761 (breakpoint_re_set_one): Update.
7762 (decode_line_spec_1): Update.
7763 * linespec.h (struct linespec_result): New.
7764 (init_linespec_result): Declare.
7766 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7768 * regcache.c (regcache_raw_read): If the target didn't supply a
7769 given raw register, mark it as unavailable.
7771 2011-03-23 Kai Tietz <ktietz@redhat.com>
7773 * breakpoint.c (clear_command): Use filename_cmp
7774 instead of strcmp for comparison.
7775 * buildsym.c (watch_main_source_file_lossage): Likewise.
7776 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7777 checking just for slash.
7778 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7779 strrchr and filename_cmp instead of strcmp for filenames.
7780 (add_old_header_file): Use filename_cmp
7781 instead of strcmp for comparison.
7782 * exec.c (exec_set_section_address): Likewise.
7783 * macrotab.c (macro_lookup_inclusion): Likewise.
7784 (macro_lookup_inclusion): Likewise.
7785 * elfread.c (_initialize_elfread): Likewise.
7786 (elfstab_offset_sections): Likewise.
7787 (elfstab_offset_sections): Use lbasename instead of
7789 * mdebugread.c (parse_partial_symbols): Likewise.
7790 (arse_partial_symbols): Use filename_(n)cmp instead of
7791 str(n)cmp for comparison.
7792 * minsyms.c (lookup_minimal_symbol): Likewise.
7793 * psymtab.c (read_psymtabs_with_filename): Likewise.
7794 * solib.c (solib_read_symbols): Likewise.
7795 (reload_shared_libraries_1): Likewise.
7796 * symmisc.c (maintenance_print_symbols): Likewise.
7797 * symfile.c (separate_debug_file_exists): Likewise.
7798 (reread_symbols): Likewise.
7799 (find_separate_debug_file_by_debuglink): Likewise.
7800 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7801 * source.c (add_path): Likewise.
7802 * symtab.c (filename_seen): Likewise.
7803 (file_matches): Likewise.
7804 (print_symbol_info): Likewise.
7805 (maybe_add_partial_symtab_filename): Likewise.
7806 (make_source_files_completion_list): Likewise.
7807 * xml-syscall.c (init_sysinfo): Likewise.
7808 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7809 IS_DIR_SEPARATOR for checking for trailing path separator.
7811 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7813 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7814 label abort_expression.
7815 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7816 DWARF_VALUE_OPTIMIZED_OUT.
7818 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7821 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7822 to linkage_name. Invert its value. Update the function comment.
7823 (c_type_print_varspec_suffix): Invert it at the caller.
7824 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7826 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7828 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7829 errors when reading the `stop_pc'.
7830 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7833 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7835 * NEWS: Document gdb.Write stream keyword.
7837 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7840 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7841 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7842 (dwarf2_add_field): Fix new_field->accessibility for
7843 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7845 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7849 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7850 other error classes. Do not print stack trace.
7852 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7854 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7855 (dwarf2_add_field): Fix new_field->accessibility for
7856 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7858 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7860 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7861 encountering a load via a non-SP register.
7863 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7865 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7866 field in returned unwinder.
7868 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7870 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7872 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7874 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7877 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7879 * frame.c (frame_unwind_register): Throw an error if unwinding the
7881 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7882 an unwind stop reason.
7883 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7884 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7885 UNWIND_UNAVAILABLE>: New.
7886 * inline-frame.c (inline_frame_unwind): Install
7887 default_frame_unwind_stop_reason.
7888 * frame-unwind.c: Include "exceptions.h".
7889 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7890 (default_frame_unwind_stop_reason): New.
7891 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7892 (default_frame_unwind_stop_reason): Declare.
7893 (struct frame_unwind) <stop_reason>: New function pointer.
7895 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7896 * dwarf2-frame.c: Include exceptions.h.
7897 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7898 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7899 computing the CFA. If such an error was thrown, set
7900 unavailable_retaddr.
7901 (dwarf2_frame_unwind_stop_reason): New.
7902 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7904 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7905 (dwarf2_signal_frame_unwind): Ditto.
7907 * amd64-tdep.c: Include "exceptions.h".
7908 (struct amd64_frame_cache): New field "base_p".
7909 (amd64_init_frame_cache): Clear it.
7910 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7911 Avoid reading registers with functions that throw if the register
7912 is not necessary to compute the frame base.
7913 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7914 swallowing NOT_AVAILABLE_ERROR.
7915 (amd64_frame_unwind_stop_reason): New.
7916 (amd64_frame_this_id): Don't build a frame id if the frame base
7918 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7919 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7920 base_p if the frame base was computable.
7921 (amd64_sigtramp_frame_unwind_stop_reason): New.
7922 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7923 frame base was unavailable.
7924 (amd64_sigtramp_frame_unwind): Install
7925 amd64_sigtramp_frame_unwind_stop_reason.
7926 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7927 base_p if the frame base was computable.
7928 (amd64_epilogue_frame_unwind_stop_reason): New.
7929 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7930 frame base was unavailable.
7931 (amd64_epilogue_frame_unwind): Install
7932 amd64_epilogue_frame_unwind_stop_reason.
7933 * i386-tdep.c: Include "exceptions.h".
7934 (struct i386_frame_cache): New field "base_p".
7935 (i386_init_frame_cache): Clear it.
7936 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7937 Avoid reading registers with functions that throw if the register
7938 is not necessary to compute the frame base.
7939 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7940 swallowing NOT_AVAILABLE_ERROR.
7941 (i386_frame_unwind_stop_reason): New.
7942 (i386_frame_this_id): Don't build a frame id if the frame base was
7944 (i386_frame_prev_register): Handle unavailable SP.
7945 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7946 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7947 base_p if the frame base was computable.
7948 (i386_epilogue_frame_unwind_stop_reason): New.
7949 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7950 base was unavailable.
7951 (i386_epilogue_frame_unwind): Install
7952 i386_epilogue_frame_unwind_stop_reason.
7953 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7954 base_p if the frame base was computable.
7955 (i386_sigtramp_frame_unwind_stop_reason): New.
7956 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7957 base was unavailable.
7958 (i386_sigtramp_frame_unwind): Install
7959 i386_sigtramp_frame_unwind_stop_reason.
7960 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7961 type's size, not the register's.
7962 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7964 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7965 default_frame_unwind_stop_reason.
7966 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7967 (alpha_heuristic_frame_unwind): Ditto.
7968 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7969 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7970 * avr-tdep.c (avr_frame_unwind): Ditto.
7971 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7973 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7974 * frv-tdep.c (frv_frame_unwind): Ditto.
7975 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7976 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7977 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7978 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7979 (hppa_stub_frame_unwind): Ditto.
7980 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7981 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7982 (ia64_libunwind_frame_unwind)
7983 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7984 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7985 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7986 * m32c-tdep.c (m32c_unwind): Ditto.
7987 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7988 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7989 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7990 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7991 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7992 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7993 * mep-tdep.c (mep_frame_unwind): Ditto.
7994 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7995 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7996 (mips_stub_frame_unwind): Ditto.
7997 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7998 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7999 * mt-tdep.c (mt_frame_unwind): Ditto.
8000 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8001 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8002 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8003 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8004 (s390_sigtramp_frame_unwind): Ditto.
8005 * score-tdep.c (score_prologue_unwind): Ditto.
8006 * sh-tdep.c (sh_frame_unwind): Ditto.
8007 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8008 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8009 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8010 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8011 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8012 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8013 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8014 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8015 (sparc64obsd_trapframe_unwind): Ditto.
8016 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8017 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8018 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8019 * v850-tdep.c (v850_frame_unwind): Ditto.
8020 * vax-tdep.c (vax_frame_unwind): Ditto.
8021 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8022 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8023 * xtensa-tdep.c (xtensa_unwind): Ditto.
8025 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8027 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8028 there's always a frame. Use get_frame_pc_if_available instead of
8029 get_frame_pc, and if there's no PC available, don't look up a
8032 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8034 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8037 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8039 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8042 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8044 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8045 * frame.c (frame_unwind_caller_pc_if_available): New.
8046 * stack.c (frame_info): Handle unavailable PC.
8048 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8050 * frame.c (frame_unwind_pc): Rename to ...
8051 (frame_unwind_pc_if_available): ... this. New `pc' output
8052 parameter. Change return type to int. Gracefully handle
8053 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8054 happened, or 1 otherwise.
8055 (frame_unwind_pc): Reimplement on top of
8056 frame_unwind_pc_if_available.
8057 (get_frame_func): Rename to ...
8058 (get_frame_func_if_available): New `pc' output parameter. Change
8059 return type to int. Gracefully handle the PC not being available.
8060 (get_frame_func): Reimplement on top of
8061 get_frame_func_if_available.
8062 (select_frame): Handle the PC being unavailable.
8063 (get_prev_frame): Handle the PC being unavailable.
8064 (get_frame_pc_if_available): New.
8065 (get_frame_address_in_block_if_available): New.
8066 (find_frame_sal): Handle the frame PC not being available.
8067 * frame.h (get_frame_pc_if_available): Declare.
8068 (get_frame_address_in_block_if_available): Declare.
8069 (get_frame_func_if_available): Declare.
8070 * stack.c (print_frame_info): Handle the PC being unavailable.
8071 (find_frame_funname): Ditto.
8072 (print_frame): Handle the PC being unavailable.
8073 (get_frame_language): Ditto.
8074 * blockframe.c (get_frame_block): Ditto.
8075 * macroscope.c (default_macro_scope): Ditto.
8076 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8078 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8080 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8081 NOT_AVAILABLE_ERROR when evaluating the location expression.
8083 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8085 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8086 returning that the register piece is unavailable/optimized out.
8087 (write_pieced_value): Handle get_frame_register_bytes returning
8088 that the register piece is unavailable/optimized out when doing a
8089 read-modify write of a bitfield.
8090 * findvar.c (value_from_register): Handle get_frame_register_bytes
8091 returning that the register piece is unavailable/optimized out.
8092 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8093 and `unavailablep'. Throw error on bad debug info. Use
8094 frame_register instead of frame_register_read, to fill in the new
8096 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8098 * valops.c: (value_assign): Adjust, and handle
8099 get_frame_register_bytes failing.
8100 * spu-tdep.c: Include exceptions.h.
8101 (spu_software_single_step): Adjust, and handle
8102 get_frame_register_bytes failing.
8103 (spu_get_longjmp_target): Ditto.
8104 * gdbarch.sh (register_to_value): Change to return int. New
8105 parameters `optimizedp' and `unavailablep'.
8106 * gdbarch.h, gdbarch.c: Regenerate.
8107 * i386-tdep.c (i386_register_to_value): Adjust to new
8108 gdbarch_register_to_value interface.
8109 * i387-tdep.c (i387_register_to_value): Ditto.
8110 * i387-tdep.h (i387_register_to_value): Ditto.
8111 * alpha-tdep.c (alpha_register_to_value): Ditto.
8112 * ia64-tdep.c (ia64_register_to_value): Ditto.
8113 * m68k-tdep.c (m68k_register_to_value): Ditto.
8114 * mips-tdep.c (mips_register_to_value): Ditto.
8115 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8117 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8119 * findvar.c (value_of_register): Mark the value as unavailable, if
8120 the register is unavailable.
8121 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8122 (frame_register): New `unavailablep' parameter.
8123 (frame_register_read): Update comment.
8124 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8125 Set it if the register is unavailable. If the register is
8126 unavailable, clear the output buffer.
8127 (frame_register): New `unavailablep' parameter. Pass it down.
8128 (frame_unwind_register): Adjust.
8129 (put_frame_register): Adjust.
8130 (frame_register_read): Adjust. Also return false if the register
8132 (frame_register_unwind_location): Adjust.
8133 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8134 is unavailable, mark the value accordingly.
8135 * stack.c (frame_info): Handle unavailable registers.
8137 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8139 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8140 simplify, using regcache_cooked_read.
8142 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8144 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8145 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8146 (regcache_raw_read_unsigned, regcache_raw_read_part)
8147 (regcache_cooked_read, regcache_cooked_read_signed)
8148 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8149 (regcache_cooked_read_ftype): Change return to enum
8151 * regcache.c: Include exceptions.h
8152 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8153 (do_cooked_read): Change return to enum register_status. Always
8154 forward to regcache_cooked_read.
8155 (regcache_raw_read): Change return to enum register_status. If
8156 the register is not REG_VALID, memset the buffer. Return the
8158 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8159 return the register's status.
8160 (regcache_raw_read_unsigned): Ditto.
8161 (regcache_cooked_read): Change return to enum register_status.
8162 Assert that with read-only regcaches, the register's status must
8163 be known. If the regcache is read-only, and the register is not
8164 REG_VALID, memset the buffer. Return the register's status.
8165 (regcache_cooked_read_signed): Change return to enum
8166 register_status. Handle non-REG_VALID registers and return the
8168 (regcache_cooked_read_unsigned): Change return to enum
8169 register_status. Handle non-REG_VALID registers and return the
8171 (regcache_xfer_part, regcache_raw_read_part)
8172 (regcache_cooked_read_part): Change return to enum
8173 register_status. Return the register's status.
8174 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8176 (regcache_dump): Handle unavailable cooked registers.
8177 * frame.c (do_frame_register_read): Adjust interface to match
8178 regcache_cooked_read_ftype.
8179 * gdbarch.sh (pseudo_register_read): Change return to enum
8181 * gdbarch.h, gdbarch.c: Regenerate.
8183 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8185 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8186 register_status. If reading a raw register indicates the raw
8187 register is not valid, return the raw register's status,
8188 otherwise, return REG_VALID.
8189 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8190 register_status. Handle non-REG_VALID raw registers and return
8191 the register's status.
8192 * arm-tdep.c (arm_neon_quad_read)
8193 (arm_pseudo_read): Change return to enum register_status. Handle
8194 non-REG_VALID raw registers and return the register's status.
8195 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8196 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8197 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8198 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8199 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8201 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8202 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8203 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8204 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8205 (m32c_pseudo_register_read): Change return to enum
8206 register_status. Adjust.
8207 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8208 enum register_status. Return the register's status.
8209 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8210 register_status. Return the register's status.
8211 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8212 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8213 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8214 * rs6000-tdep.c (move_ev_register_func): New typedef.
8215 (e500_move_ev_register): Use it. Change return to enum
8216 register_status. Return the register's status.
8217 (do_regcache_raw_read): New function.
8218 (do_regcache_raw_write): New function.
8219 (e500_pseudo_register_read): Change return to enum
8220 register_status. Return the register's status. Use
8221 do_regcache_raw_read.
8222 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8223 (dfp_pseudo_register_read): Change return to enum register_status.
8224 Return the register's status.
8225 (vsx_pseudo_register_read): Ditto.
8226 (efpr_pseudo_register_read): Ditto.
8227 (rs6000_pseudo_register_read): Ditto.
8228 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8229 register_status. Return the register's status.
8230 * sh64-tdep.c (pseudo_register_read_portions): New function.
8231 (sh64_pseudo_register_read): Change return to enum
8232 register_status. Use pseudo_register_read_portions. Return the
8234 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8235 register_status. Return the register's status.
8236 * sh-tdep.c (pseudo_register_read_portions): New function.
8237 (sh_pseudo_register_read): Change return to enum register_status.
8238 Use pseudo_register_read_portions. Return the register's status.
8239 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8240 enum register_status. Return the register's status.
8241 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8242 * spu-tdep.c (spu_pseudo_register_read_spu)
8243 (spu_pseudo_register_read): Ditto.
8244 * xtensa-tdep.c (xtensa_register_read_masked)
8245 (xtensa_pseudo_register_read): Ditto.
8246 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8248 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8250 * python/py-value.c (valpy_getitem): Fix formatting of error function
8253 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8255 ARI fixes: Add missing internationalization markups throughout
8257 * darwin-nat-info.c: Ditto.
8260 * mi/mi-main.c: Ditto.
8262 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8264 ARI fixes: Add missing internationalization markups throughout
8267 * cp-name-parser.y: Ditto.
8270 * objc-exp.y: Ditto.
8273 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8275 ARI fixes: Messages should have no trailing new lines.
8276 * darwin-nat.c (mach_check_error): Remove trailing new line from
8277 warning function call message.
8278 * record.c (bfdcore_read): Idem for error call.
8280 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8282 * common/signals.c (target_signal_from_host): Add _ markup to error
8283 function call message.
8284 (target_signal_to_host): Add _ markup and remove trailing new line
8285 from warning call message.
8286 (target_signal_from_command): Add _ markup to error function call
8289 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8293 * python/python.c (gdbpy_write): Accept a stream argument and
8294 operate to the appropriate stream.
8295 (gdbpy_flush): Likewise.
8296 (_initialize_python): Add stream constants.
8297 (finish_python_initialization): Add GdbOutputErrorFile class.
8299 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8301 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8303 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8305 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8306 to store_signed_integer. Add debug message when relocating CALL
8307 instructions. Fix formatting of debug message.
8308 * i386-tdep.c (i386_relocate_instruction): Ditto.
8310 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8312 * target.h (struct target_ops): Remove to_lookup_symbol field.
8313 (target_lookup_symbol): Delete macro.
8314 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8315 (update_current_target, setup_target_debug): Remove handling
8316 of to_lookup_symbol target_ops field.
8317 * ada-tasks.c (get_known_tasks_addr): Remove use of
8318 target_lookup_symbol.
8319 * coffread.c (coff_symtab_read): Likewise.
8320 * dbxread.c (read_dbx_symtab): Ditto.
8322 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8325 * configure.ac: Add getthrds declaration check.
8326 * configure, config.in: Regenerate.
8327 * aix-thread.c (getthrds): Declare only if not already declared
8328 in procinfo.h. More declaration out of get_signaled_thread to
8331 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8333 * python/py-symtab.c: Populate symtab_object_methods,
8335 (stpy_is_valid): New function.
8336 (salpy_is_valid): Ditto.
8337 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8338 (sympy_is_valid): New function.
8339 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8340 (objfpy_is_valid): New function.
8341 * python/py-inferior.c: Populate inferior_object_methods.
8342 (infpy_is_valid): New function.
8343 * python/py-infthread.c: Populate thread_object_methods.
8344 (thpy_is_valid): New function.
8345 * python/py-block.c: Declare block_object_methods. Populate. Declare
8346 block_iterator_object_methods. Populate.
8347 (blpy_is_valid): New function.
8348 (blpy_iter_is_valid): Ditto.
8350 2011-03-16 Keith Seitz <keiths@redhat.com>
8352 * linespec.c (find_methods): Canonicalize NAME before looking
8354 (name_end): New function.
8355 (keep_name_info): New function.
8356 (decode_line_1): Use keep_name_info.
8357 (decode_compound): Likewise.
8358 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8359 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8362 * linespec.c (locate_first_half): Keep overload information, too.
8363 (decode_compound): Use a string to represent break characters
8365 If P points to a break character, do not increment it.
8366 For C++ and Java, keep overload information and relevant keywords.
8367 If we cannot find a symbol, search the minimal symbols.
8370 * linespec.c (decode_compound): Rename SAVED_ARG to
8372 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8374 Pass a valid block to lookup_symbol.
8375 (lookup_prefix_sym): Likewise.
8376 (find_method): Construct search name based on SYM_CLASS instead
8378 * psymtab.c (lookup_partial_symbol): Add language parameter.
8379 (lookup_symbol_aux_psymtabs): Likewise.
8380 Don't assume that the psymtab we found was the right one. Search
8381 for the desired symbol in the symtab to be certain.
8382 (psymtab_search_name): New function.
8383 (lookup_partial_symbol): Use psymtab_search_name.
8384 Add language parameter.
8385 (read_symtabs_for_function): Add language parameter and pass to
8386 lookup_partial_symbol.
8387 (find_symbol_file_from_partial): Likewise.
8389 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8392 * dwarf2read.c (noop_record_line): New function.
8393 (dwarf_decode_lines): Ignore line tables for GCd functions.
8395 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8397 Fix ARI warnings about new lines at the end of messages, which
8398 are unneeded as there is a new line added at the end of the message
8400 * darwin-nat.c (darwin_stop_inferior): Ditto.
8401 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8402 * dfp.c (decimal_to_number): Ditto.
8403 * exec.c (print_section_info): Ditto.
8404 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8405 * osdata.c (get_osdata): Ditto.
8406 * record.c (bfdcore_write): Ditto.
8407 * remote-mips.c (mips_readchar): Ditto.
8408 * remote.c (read_ptid): Ditto.
8409 * ser-mingw.c (ser_windows_raw): Ditto.
8410 * tracepoint.c (add_local_symbols): Ditto.
8411 * windows-nat.c (fake_create_process): Ditto.
8413 2011-03-16 Tom Tromey <tromey@redhat.com>
8415 * tracepoint.c (stop_tracing): Don't declare.
8416 * event-top.c (after_char_processing_hook): Add `(void)'.
8418 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8420 * NEWS: Add Parameter sub-classing description.
8422 2011-03-16 Kai Tietz <ktietz@redhat.com>
8424 * MAINTAINERS: Update my e-mail address.
8426 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8428 * MAINTAINERS: Add myself for write after approval privileges.
8430 2011-03-15 Michael Snyder <msnyder@vmware.com>
8432 * frame.c (find_frame_sal): Assert sym is not null.
8434 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8436 * objc-lang.c (selectors_info): Check strchr for null result.
8438 * stabsread.c (define_symbol): Guard against bad stabstring input.
8440 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8442 Remove trailing spaces and tabulations from pascal language
8447 p-valprint.c: Ditto.
8449 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8451 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8452 than LOW. Comment it.
8453 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8454 HIGHPC not strictly higher than LOWPC.
8456 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8458 Fix formatting of function declarations returning a pointer in
8460 * varobj.c (varobj_add_child): Ditto.
8461 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8462 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8464 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8466 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8467 for the "generic" vector ABI used with GCC 4.3 and later.
8468 (ppc64_sysv_abi_return_value): Likewise.
8470 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8472 * infcall.c (call_function_by_hand): Function return value is
8473 always a non_lval, even when using struct_return.
8475 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8477 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8478 (map_display_numbers): New.
8479 (do_delete_display): New.
8480 (undisplay_command): Use map_display_numbers.
8481 (do_enable_disable_display): New.
8482 (enable_disable_display_command): New function.
8483 (enable_display): Delete.
8484 (enable_display_command): New.
8485 (disable_display_command): Reimplement.
8486 (_initialize_printcmd): Adjust "enable display" command to use
8487 `enable_display_command' as callback.
8489 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8491 * NEWS: Add Python breakpoint 'stop' operation.
8493 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8495 * NEWS: Delete duplicate entry. Fix typo.
8497 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8499 Fix ARI warning about function names in first column.
8500 Put prototype declaration on same line as return type.
8501 * objc-exp.y: Ditto.
8503 * python/py-stopevent.h: Ditto.
8504 For long function names, split parameters to
8505 allow function name on same line as return type.
8506 * solib-pa64.c: Ditto.
8509 For long function declaration, use single line.
8510 * hppa-tdep.h: Ditto.
8511 * inferior.h: Ditto.
8513 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8515 * python/python.h: Declare gdbpy_should_stop and
8516 gdbpy_breakpoint_has_py_cond.
8517 * python/python.c: Add python.h to includes. Remove python.h from
8518 HAVE_PYTHON definition
8519 (gdbpy_should_stop): New dummy function.
8520 (gdbpy_breakpoint_has_py_cond): New dummy function.
8521 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8522 sub-classing capabilities.
8523 (gdbpy_should_stop): New function.
8524 (gdbpy_breakpoint_has_py_cond): New function.
8525 (local_setattro): New function.
8526 * breakpoint.c (condition_command): Add check for Python 'stop'
8528 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8529 operation function as part of stop/continue tests.
8531 2011-03-14 Tom Tromey <tromey@redhat.com>
8534 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8535 (needs_frame_dwarf_call): Likewise.
8537 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8539 Fix ARI warning about functions without parameters that do not
8541 * breakpoint.c (all_tracepoints): Replace () by (void).
8542 * f-exp.y (match_string_literal): Ditto.
8544 * m2-exp.y (yylex): Ditto.
8545 * mep-tdep.c (current_me_module): Ditto.
8546 (current_options): Ditto.
8547 (current_cop_data_bus_width): Ditto.
8548 (current_cr_names): Ditto.
8549 (current_cr_is_float): Ditto.
8550 (current_ccr_names): Ditto.
8551 * objc-exp.y (yylex): Ditto.
8552 * p-exp.y (yylex): Ditto.
8553 * remote.c (send_interrupt_sequence): Ditto.
8554 * tracepoint.c (current_trace_status): Ditto.
8555 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8556 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8558 2011-03-11 Michael Snyder <msnyder@vmware.com>
8560 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8561 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8562 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8563 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8564 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8566 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8567 (delete_async_event_handler): Ditto.
8569 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8571 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8573 * top.c (set_verbose): Assert showcmd was found.
8575 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8577 * xtensa-tdep.c (warning_once): Correct style issues.
8579 2011-03-11 Yao Qi <yao@codesourcery.com>
8581 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8583 2011-03-11 Andreas Schwab <schwab@redhat.com>
8585 * common/aclocal.m4: Remove.
8587 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8589 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8590 (xtensa_write_register, xtensa_read_register): Likewise.
8591 (xtensa_hextochar): Removed.
8592 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8594 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8596 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8597 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8598 (xtensa_alloc_frame_cache): Add initialization for new fields.
8599 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8600 (warning_once): New function.
8601 (xtensa_insn_kind): New item c0opc_and.
8602 (call0_classify_opcode): Add the case for AND instruction.
8603 (call0_track_op): Change arguments. New local variable litbase.
8604 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8605 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8607 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8608 (call0_analyze_prologue): Update the comments. Change arguments.
8609 Add the variety of updates to handle extended prologues, which now can
8610 conduct dynamic stack adjustments.
8611 (call0_frame_cache): Likewise.
8612 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8613 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8615 2011-03-10 Michael Snyder <msnyder@vmware.com>
8617 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8618 (cmd_qtframe): Ditto.
8619 (cmd_qtbuffer): Ditto.
8620 (cmd_bigqtbuffer): Ditto.
8622 2011-03-10 Tom Tromey <tromey@redhat.com>
8624 * tracepoint.c (trace_actions_command): Update.
8625 * thread.c (thread_apply_command): Update.
8626 * reverse.c (delete_bookmark_command): Update.
8627 (bookmarks_info): Update.
8628 * printcmd.c (undisplay_command): Update.
8629 * memattr.c (mem_enable_command): Update.
8630 (mem_disable_command): Update.
8631 (mem_delete_command): Update.
8632 * inferior.c (detach_inferior_command): Update.
8633 (kill_inferior_command): Update.
8634 (remove_inferior_command): Update.
8635 * cli/cli-utils.h (struct get_number_or_range_state): New.
8636 (init_number_or_range): Declare.
8637 (get_number_or_range): Update.
8638 * cli/cli-utils.c (init_number_or_range): New function.
8639 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8641 (number_is_in_list): Update.
8642 * breakpoint.h (get_tracepoint_by_number): Update.
8643 * breakpoint.c (map_breakpoint_numbers): Update for change to
8644 get_number_or_range.
8645 (find_location_by_number): Use get_number, not
8646 get_number_or_range.
8647 (trace_pass_set_count): New function.
8648 (trace_pass_command): Update for change to get_number_or_range.
8650 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8653 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8655 * python/py-param.c (add_setshow_generic): Add set/show callback
8656 parameters. Register Python object context.
8657 (get_show_value): New function.
8658 (get_set_value): New function.
8659 (call_doc_function): New function.
8660 (get_doc_string): Move behind get_show_value/get_set_value.
8662 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8664 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8666 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8668 * xtensa-tdep.c (xtensa_read_register): Add comment.
8669 (xtensa_write_register): Likewise.
8670 (xtensa_hextochar): Add comment and update to match coding conventions.
8671 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8672 (execute_l32e, execute_s32e, execute_code): Update comments.
8673 (xtensa_exception_handler_t): Update to match coding conventions.
8674 (xtensa_insn_kind): Likewise.
8676 2011-03-09 Michael Snyder <msnyder@vmware.com>
8678 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8680 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8682 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8684 2011-03-09 Tom Tromey <tromey@redhat.com>
8686 * thread.c (restore_selected_frame): Handle frame_level == -1.
8687 (make_cleanup_restore_current_thread): Use
8688 get_selected_frame_if_set.
8689 * frame.h (get_selected_frame_if_set): Declare.
8690 * frame.c (get_selected_frame_if_set): New function.
8692 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8694 * cli/cli-cmds.c (shell_escape): Use lbasename.
8695 * coffread.c (coff_start_symtab): Constify parameter.
8696 (complete_symtab): Constify `name' parameter.
8697 (coff_symtab_read): Constify `filestring' local.
8698 (coff_getfilename): Constify return and `result' local.
8700 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8701 * linux-fork.c (info_checkpoints_command): Use lbasename.
8702 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8703 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8704 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8705 * procfs.c (procfs_make_note_section): Use lbasename.
8706 * tui/tui-io.c (printable_part): Constity return and parameter.
8708 (print_filename): Constify parameters, and local `s'.
8709 (tui_rl_display_match_list): Constify local `temp'.
8711 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8714 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8715 Fix DWARF-3+ DW_AT_accessibility default assumption.
8716 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8717 cu->header.version >= 3.
8719 2011-03-09 Yao Qi <yao@codesourcery.com>
8721 * common/Makefile.in: Remove.
8722 * common/configure: Remove.
8723 * common/configure.ac: Remove.
8725 2011-03-09 Yao Qi <yao@codesourcery.com>
8728 2011-02-11 Yao Qi <yao@codesourcery.com>
8730 * common/Makefile.in: Add copyright header.
8732 2011-02-11 Yao Qi <yao@codesourcery.com>
8734 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8736 * configure.ac: Add common to sub dir.
8737 * configure: Regenerate.
8739 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8741 * xtensa-tdep.c (call0_ret): New function.
8742 (xtensa_skip_prologue): Speed up analysis.
8744 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8746 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8747 while executing MI command -data-list-changed-registers.
8749 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8751 * xtensa-tdep.c (xtensa_read_register): New function.
8752 (xtensa_write_register): New function.
8753 (xtensa_find_register_by_name): New function.
8754 (xtensa_windowed_frame_cache): Update comments in type description.
8755 (xtensa_frame_cache): Likewise.
8756 (xtensa_window_interrupt_insn): New function.
8757 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8758 (xtensa_insn_kind): Add new instructions.
8759 (rwx_special_register): New function.
8760 (call0_classify_opcode): Add new instructions to the analysis.
8761 (a0_saved, a7_saved, a11_saved): New variables.
8762 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8763 (execute_l32e): New function.
8764 (execute_s32e): New function.
8765 (xtensa_exception_handler_t): New type.
8766 (execute_code): New function.
8767 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8768 analysis for Xtensa Window Exception handlers.
8770 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8772 * xtensa-tdep.c (TX_PS): New.
8773 (windowing_enabled): Update to count for Call0 ABI.
8774 (xtensa_hextochar): New.
8775 (xtensa_init_reggroups): Make algorithm generic.
8776 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8778 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8780 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8782 2011-03-08 Michael Snyder <msnyder@vmware.com>
8784 * i386-tdep.c (i386_follow_jump): Check return value of
8786 (i386_analyze_struct_return): Ditto.
8787 (i386_skip_probe): Ditto.
8788 (i386_match_insn): Ditto.
8789 (i386_skip_noop): Ditto.
8790 (i386_analyze_frame_setup): Ditto.
8791 (i386_analyze_register_saves): Ditto.
8792 (i386_skip_prologue): Ditto.
8793 (i386_skip_main_prologue): Ditto.
8795 * target.c (read_whatever_is_readable): Fix memory leak.
8797 * i386-tdep.c (i386_process_record): Document fall through.
8799 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8801 Fix DWARF-3+ DW_AT_accessibility default assumption.
8802 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8803 cu->header.version >= 3.
8805 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8807 * remote.c (remote_check_symbols): Skip if the target has no
8810 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8812 * target.c (read_whatever_is_readable): Reformat comment,
8813 with a minor typo fix. Minor reformatting of the code.
8815 2011-03-08 Yao Qi <yao@codesourcery.com>
8817 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8818 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8819 Use cached result instead of calling displaced_in_arm_mode again.
8820 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8821 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8822 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8823 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8824 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8825 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8826 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8827 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8828 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8829 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8830 (arm_catch_kernel_helper_return): Likewise.
8831 * gdb/arm-tdep.h : Update function declarations.
8833 2011-03-07 Michael Snyder <msnyder@vmware.com>
8835 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8837 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8839 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8841 * elfread.c (elf_symtab_read): Stop memory leak.
8843 * main.c (captured_main): Fix memory leak.
8845 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8847 * ada-lang.c (compare_names): Call is_name_suffix with string1
8850 2011-03-07 Tom Tromey <tromey@redhat.com>
8852 * xcoffread.c (xcoff_sym_fns): Update.
8853 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8854 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8855 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8856 (symbol_file_add_with_addrs_or_offsets): Likewise.
8857 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8858 * somread.c (som_sym_fns): Update.
8859 * psymtab.h (require_partial_symbols): Declare.
8860 * psymtab.c (require_partial_symbols): New function.
8861 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8862 (ALL_OBJFILE_PSYMTABS): Undef.
8863 (ALL_PSYMTABS): Move from psympriv.h.
8864 (lookup_partial_symtab, find_pc_sect_psymtab)
8865 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8866 (find_last_source_symtab_from_partial)
8867 (forget_cached_source_info_partial)
8868 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8869 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8870 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8871 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8872 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8873 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8874 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8875 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8876 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8878 * mipsread.c (ecoff_sym_fns): Update.
8879 * machoread.c (macho_sym_fns): Update.
8880 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8881 (read_psyms): New function.
8882 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8883 (elf_sym_fns_lazy_psyms): New global.
8884 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8885 dwarf2_build_psymtabs.
8886 * dbxread.c (aout_sym_fns): Update.
8887 * coffread.c (coff_sym_fns): Update.
8889 2011-03-07 Tom Tromey <tromey@redhat.com>
8891 * infrun.c (print_exited_reason): Include inferior id and pid in
8894 2011-03-07 Tom Tromey <tromey@redhat.com>
8896 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8898 (target_has_execution_1): Update.
8899 (target_has_execution_current): Declare.
8900 (target_has_execution): Call target_has_execution_current.
8901 (default_child_has_execution): Update.
8902 * target.c (default_child_has_execution): Add 'the_ptid'
8904 (target_has_execution_1): Likewise.
8905 (target_has_execution_current): New function.
8906 (add_target): Update.
8907 (init_dummy_target): Update.
8908 * remote-m32r-sdi.c (m32r_has_execution): New function.
8909 (init_m32r_ops): Use it.
8910 * record.c (record_core_has_execution): Now static. Add
8911 'the_ptid' parameter.
8912 * inferior.c (have_live_inferiors): Don't save current thread.
8913 Use target_has_execution_1.
8915 2011-03-07 Yao Qi <yao@codesourcery.com>
8917 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8919 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8921 * elfread.c (elf_symtab_read): Minor reformatting.
8923 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8925 * objc-lang.c (selectors_info): Minor reformatting.
8927 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8929 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8931 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8932 Michael Snyder <msnyder@vmware.com>
8934 * ada-valprint.c (ada_val_print_array): Move the declaration of
8935 "byte_order" and "elttype" inside the block where these variables
8936 are actually used. Remove some special handling for the case
8937 where "elttype" and "eltlen" are null. Replace by a comment
8938 and a couple of assertion checks.
8940 2011-03-05 Michael Snyder <msnyder@vmware.com>
8942 * source.c (add_path): Replace semicolon at end of block.
8943 * dwarf2expr.c (execute_stack_op): Ditto.
8945 2011-03-05 Mike Frysinger <vapier@gentoo.org>
8947 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8948 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8949 (bfin-*-*): Likewise.
8951 2011-03-05 Michael Snyder <msnyder@vmware.com>
8953 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8954 * mdebugread.c (parse_symbol): Ditto.
8955 * parse.c (parse_exp_in_context): Ditto.
8956 * source.c (add_path): Ditto.
8957 * utils.c (gnu_debuglink_crc32): Ditto.
8958 * varobj.c (variable_language): Ditto.
8960 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8962 2011-03-04 Michael Snyder <msnyder@vmware.com>
8964 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8966 * symfile.c (simple_overlay_update): Check for null return value
8967 from lookup_minimal_symbol.
8969 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8971 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8973 * eval.c (parse_and_eval_address_1): Remove function.
8974 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8975 instead of parse_and_eval_address_1.
8976 * value.h (parse_and_eval_address_1): Remove prototype.
8978 2011-03-04 Michael Snyder <msnyder@vmware.com>
8980 * remote.c (putpkt_binary): Document that case stmt falls through.
8982 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8984 * breakpointc (print_it_typical): Move NULL check from here...
8985 (print_bp_stop_message): ... to here.
8987 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8989 * breakpoint.c (enable_command): Use break instead of continue,
8990 and fill in a missing break.
8991 (disable_command): Ditto.
8993 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8995 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8996 (terminal_save_ours): Remove misleading comment.
8997 (inflow_inferior_data_cleanup): Free ttystate.
8998 (inflow_inferior_exit): Likewise.
8999 (copy_terminal_info): Copy ttystate.
9001 * serial.c (serial_copy_tty_state): New function.
9002 * serial.h (serial_copy_tty_state): Add prototype.
9003 (struct serial_ops): Add copy_tty_state callback.
9004 * ser-base.c (ser_base_copy_tty_state): New function.
9005 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9006 * ser-go32.c (dos_copy_tty_state): New function.
9007 (dos_ops): Install copy_tty_state callback.
9008 * ser-mingw.c (_initialize_ser_windows): Likewise.
9009 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9010 * ser-unix.c (hardwire_copy_tty_state): New function.
9011 (_initialize_ser_hardwire): Install it.
9013 2011-03-04 Michael Snyder <msnyder@vmware.com>
9015 * breakpoint.c (create_breakpoint): Add missing break statement.
9017 Reverting this patch:
9018 * infcall.c (call_function_by_hand): Add break statements for lint.
9020 Reverting this patch:
9021 * cli/cli-script.c (script_from_file): Add break for lint.
9023 2011-03-04 Michael Snyder <msnyder@vmware.com>
9025 * solib.c (reload_shared_libraries_1): Close memory leak.
9027 2011-03-03 Tom Tromey <tromey@redhat.com>
9030 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9033 2011-03-03 Michael Snyder <msnyder@vmware.com>
9035 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9036 fields of struct 'st' to zero.
9038 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9039 sal.pspace before calling set_current_source_symtab_and_line.
9041 2011-03-03 Yao Qi <yao@codesourcery.com>
9043 * Makefile.in (configure-common): Remove. Let Makefile
9044 in dir common to rebuild itself.
9045 (common/Makefile): Likewise.
9047 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9049 * utils.c (parse_escape): Add i18n markup in error message.
9051 2011-03-03 Yao Qi <yao@codesourcery.com>
9053 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9055 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9056 (displaced_write_reg, displaced_read_reg): Likewise.
9057 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9058 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9059 (cleanup_branch): Replace magic number 14 and 15 with
9060 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9062 2011-03-02 Michael Snyder <msnyder@vmware.com>
9064 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9066 * cli/cli-script.c (script_from_file): Add break for lint.
9068 * mdebugread.c (parse_partial_symbols): Fix indent.
9070 * target-descriptions.c (tdesc_gdb_type): No need to call
9071 xstrdup, callee saves a copy.
9073 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9075 * infcall.c (call_function_by_hand): Add break statements for lint.
9077 * utils.c (parse_escape): Escape the escape char.
9079 * python/py-inferior.c (build_inferior_list): Error out if
9080 PyList_Append fails.
9081 (gdbpy_inferiors): Error out if build_inferior_list fails.
9083 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9086 * record.c (record_restore): Move printf to before error return.
9088 2011-03-02 Yao Qi <yao@codesourcery.com>
9090 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9091 is_thumb and insn_size.
9092 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9093 on both ARM and Thumb mode.
9094 (arm_process_displaced_insn): Set is_thumb and insn_size.
9095 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9096 (arm_displaced_step_fixup): Likewise.
9098 2011-03-01 Michael Snyder <msnyder@vmware.com>
9100 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9102 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9104 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9106 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9108 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9111 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9112 which shadows function parameter.
9114 * tracepoint.c (create_tsv_from_upload): Superfluous call
9115 to xstrdup. Callee already calls xstrdup.
9117 * linespec.c (decode_line_1): Remove unnecessary null check.
9119 * tracepoint.c (scope_info): Fix mem leak, remove underused
9122 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9123 superfluous null check.
9125 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9126 (value_of_builtin_frame_fp_reg): Ditto.
9128 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9130 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9133 * linespec.c (decode_line_1): Check for null before dereference.
9135 * reverse.c (record_restore): Move null-check to before pointer
9138 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9140 * objc-lang.c (selectors_info): Add explanitory comment.
9141 (classes_info): Ditto.
9143 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9145 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9146 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9147 versions of the trampoline. Handle Thumb vs. ARM addresses.
9148 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9149 (arm_linux_init_abi): Install it.
9150 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9151 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9153 2011-02-28 Michael Snyder <msnyder@vmware.com>
9155 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9156 a little bigger, to avoid possibility of an overflow.
9158 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9159 buffers a little bigger, to avoid possibility of an overflow.
9161 * coffread.c (coff_getfilename): Add check to avoid overflow.
9163 * objc-lang.c (selectors_info): Add a small safety margin to
9165 (classes_info): Error out on too long REGEXP.
9167 * infrun.c (handle_inferior_event): Remove unused function call.
9169 * fork-child.c (fork_inferior): Remove ifdef'd code and
9172 * linux-thread-db.c (attach_thread): Discard unused value.
9174 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9176 * remote.c (remote_get_noisy_reply): Discard unused value.
9177 (remote_vcont_resume): Ditto.
9178 (remote_stop_ns): Ditto.
9180 * linespec.c (decode_objc): Delete unused variable.
9182 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9184 * dwarf2read.c (add_partial_symbol): Discard unused values.
9185 (read_base_type): Delete unused variable.
9187 * dbxread.c (read_dbx_symtab): Discard unused value.
9189 * eval.c (evaluate_subexp_standard): Delete unused variable,
9190 and discard unused values.
9192 * infcmd.c (_initialize_infcmd): Discard unused values.
9194 * stabsread.c (rs6000_builtin_type): Missing break statement.
9196 * dbxread.c (process_one_symbol): Discard unused value.
9198 * coffread.c (coff_end_symtab): Delete unused variable.
9200 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9201 (dwarf2_add_typedef): Delete unused variable.
9202 (read_namespace): Ditto.
9203 (dwarf_decode_macros): Ditto.
9205 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9207 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9209 * p-valprint.c (pascal_val_print): Discard unused value.
9211 * utils.c (nquery): Call va_end before return;
9215 * proc-service.c (ps_plog): Call va_end before return.
9217 2011-02-28 Tom Tromey <tromey@redhat.com>
9219 * python/python.c (gdbpy_value_cst): New global.
9220 (_initialize_python): Initialize it.
9221 * python/python-internal.h (gdbpy_value_cst): Declare.
9222 * python/py-value.c (convert_value_from_python): Use
9225 2011-02-28 Michael Snyder <msnyder@vmware.com>
9227 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9229 * breakpoint.c (catch_syscall_completer): Free malloced list.
9231 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9233 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9234 (lval_func_check_synthetic_pointer): Ditto.
9235 (lval_func_free_closure): Fix use-after-free.
9237 2011-02-28 Tom Tromey <tromey@redhat.com>
9239 * psymtab.c (expand_partial_symbol_tables): Use
9240 ALL_OBJFILE_PSYMTABS.
9242 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9244 * objc-lang.c (selectors_info): Error on too long REGEXP.
9246 2011-02-28 Michael Snyder <msnyder@vmware.com>
9248 * python/py-param.c (set_parameter_value): Add missing
9251 * linux-record.c (record_linux_system_call): Add missing
9254 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9256 * breakpoint.c (print_one_breakpoint_location): Remove unused
9257 argument PRINT_ADDRESS_BITS. Update callers.
9258 (print_one_breakpoint): Likewise.
9260 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9262 * breakpoint.c (wrap_indent_at_field): New function.
9263 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9264 Allocate ui_stream locally instead of using STB argument.
9265 (print_one_breakpoint_location): Update call.
9266 * ui-out.c (ui_out_query_field): New function.
9267 * ui-out.h (ui_out_query_field): Add prototype.
9269 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9271 From Michael Snyder <msnyder@vmware.com>
9272 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9274 2011-02-27 Michael Snyder <msnyder@vmware.com>
9276 * objc-lang.c (selectors_info): Prevent string overrun.
9278 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9281 * symtab.c (rbreak_command): Move variable 'file_name' to
9284 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9285 param with a local variable of the same name.
9287 2011-02-27 Michael Snyder <msnyder@vmware.com>
9289 * value.c (value_from_history_ref): New function.
9290 * value.h (value_from_history_ref): Export.
9291 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9292 to parse value history references.
9293 * cli/cli-utils.h (get_number_trailer): Update comment.
9295 2011-02-27 Michael Snyder <msnyder@vmware.com>
9297 * inferior.c (detach_inferior_command): Use get_number_or_range.
9298 (kill_inferior_command): Ditto.
9299 (remove_inferior_command): Ditto.
9300 (initialize_inferiors): Make command names plural.
9301 Update help strings.
9303 2011-02-27 Michael Snyder <msnyder@vmware.com>
9305 * darwin-nat-info.c: Fix comment typo.
9306 * dwarf2expr.h: Ditto.
9307 * fbsd-nat.c: Ditto.
9308 * fbsd-nat.h: Ditto.
9309 * frame-unwind.h: Ditto.
9311 * hppa-hpux-tdep.c: Ditto.
9312 * i386-linux-nat.c: Ditto.
9313 * linux-nat.c: Ditto.
9314 * nbsd-nat.c: Ditto.
9315 * nbsd-nat.h: Ditto.
9316 * ppc-linux-tdep.c: Ditto.
9319 * tui/tui-winsource.c: Ditto.
9321 2011-02-26 Michael Snyder <msnyder@vmware.com>
9323 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9325 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9327 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9328 with a local variable of the same name.
9330 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9331 param with a local variable of the same name.
9332 (i387_supply_xsave): Ditto.
9334 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9335 that it does not shadow a function parameter.
9337 * i386-nat.c (i386_length_and_rw_bits): Document that case
9338 statement is meant to fall through.
9340 * expprint.c (dump_subexp_body_standard): Document that case
9341 statement is meant to fall through.
9343 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9344 dead if statement. Condition can't be false.
9346 2011-02-25 Michael Snyder <msnyder@vmware.com>
9348 * arm-tdep.c: Fix typos in comments.
9349 * bsd-uthread.c: Ditto.
9350 * completer.c: Ditto.
9352 * cp-namespace.c: Ditto.
9353 * cp-support.c: Ditto.
9354 * cris-tdep.c: Ditto.
9356 * dwarf2read.c: Ditto.
9358 * gdbtypes.h: Ditto.
9359 * inferior.h: Ditto.
9360 * mdebugread.c: Ditto.
9361 * mips-tdep.c: Ditto.
9362 * ppc-linux-nat.c: Ditto.
9363 * ppc-linux-tdep.c: Ditto.
9364 * printcmd.c: Ditto.
9365 * sol-thread.c: Ditto.
9366 * solib-frv.c: Ditto.
9368 * sparc64-tdep.c: Ditto.
9369 * spu-tdep.c: Ditto.
9370 * stabsread.c: Ditto.
9375 * python/py-block.c: Ditto.
9376 * python/py-symbol.c: Ditto.
9377 * python/py-symtab.c: Ditto.
9378 * python/py-value.c: Ditto.
9379 * tui/tui-win.c: Ditto.
9381 2011-02-25 Michael Snyder <msnyder@vmware.com>
9383 * inferior.c (print_inferior): Accept a string instead of an int
9384 for requested_inferiors, and use get_number_or_range to parse it.
9385 (info_inferiors_command): Pass args string to print_inferior.
9386 (initialize_inferiors): Change help string for info inferiors.
9387 * inferior.h (print_inferior): Export prototype change.
9389 2011-02-25 Tom Tromey <tromey@redhat.com>
9391 * common/ax.def (invalid2): Set to 0x31.
9393 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9395 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9397 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9399 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9401 2011-02-24 Michael Snyder <msnyder@vmware.com>
9403 * Makefile.in (clean): Make clean should remove generated files
9404 observer.h and observer.inc.
9406 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9408 Revert the following patch (not approved yet):
9409 2011-02-21 Hui Zhu <teawater@gmail.com>
9410 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9411 * ax-gdb.c (gen_printf_expr_callback): New function.
9412 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9413 * ax-general.c (ax_memcpy): New function.
9414 (ax_print): Handle "printf".
9416 * ax.h (ax_memcpy): Forward declare.
9417 * common/ax.def (invalid2): Removed.
9418 (printf): New entry.
9419 * printcmd.c (printcmd.h): New include.
9420 (string_printf): New function.
9421 (ui_printf): Removed.
9422 (printf_command): Remove static. Call string_printf.
9423 (eval_command): Call string_printf.
9424 * printcmd.h: New file.
9425 * tracepoint.c (validate_actionline,
9426 encode_actions_1): handle printf_command.
9428 2011-02-23 Tom Tromey <tromey@redhat.com>
9430 * ax-general.c (ax_pick): Add missing newline.
9432 2011-02-23 Michael Snyder <msnyder@vmware.com>
9434 * breakpoint.c (breakpoint_1): Change first argument from an int
9435 to a char pointer, so that the function now accepts a list of
9436 breakpoints rather than just one. Use new function
9437 'number_is_in_list' to implement.
9438 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9439 (watchpoints_info): Ditto.
9440 (tracepoints_info): Ditto.
9441 (maintenance_info_breakpoints): Ditto.
9442 (_initialize_breakpoint): Update help strings to reflect the fact
9443 that these functions can now take more than one argument.
9444 * cli/cli-utils.c (number_is_in_list): New function.
9445 * cli/cli-utils.h (number_is_in_list): Export.
9447 2011-02-23 Michael Snyder <msnyder@vmware.com>
9449 * memattr.c (mem_enable_command): Use get_number_or_range.
9450 (mem_disable_command): Ditto.
9451 (mem_delete_command): Ditto.
9452 (_initialize_mem): Tweak usage message to reflect multiple
9455 2011-02-22 Doug Evans <dje@google.com>
9457 Add gdb.lookup_global_symbol python function.
9459 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9460 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9461 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9463 2011-02-22 Tom Tromey <tromey@redhat.com>
9465 * language.c (language_class_name_from_physname): Rename
9466 'curr_language' argument to 'lang'; use in body.
9468 2011-02-22 Michael Snyder <msnyder@vmware.com>
9470 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9472 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9474 * frame-unwind.h: Fix comment to mention the this frame, not the
9477 2011-02-22 Tom Tromey <tromey@redhat.com>
9479 * symfile.c (auto_solib_limit): Remove.
9480 * symfile.h (auto_solib_limit): Remove.
9482 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9484 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9486 2011-02-21 Michael Snyder <msnyder@vmware.com>
9488 * gdbthread.h (print_thread_info): Change prototype.
9489 * thread.c (print_thread_info): Accept char* instead of int for
9490 requested_threads argument. Use new function number_is_in_list
9491 to determine which threads to list.
9492 (info_threads_command): Pass char* to print_thread_info.
9493 * cli/cli-utils.c (number_is_in_list): New function.
9494 * cli/cli-utils.h (number_is_in_list): Export.
9495 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9497 (print_one_inferior): Ditto.
9498 (mi_cmd_list_thread_groups): Ditto.
9500 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9502 * common/Makefile.in (CFLAGS): New.
9503 (COMPILE): Add $(CFLAGS).
9505 2011-02-21 Tom Tromey <tromey@redhat.com>
9507 * breakpoint.c (catch_syscall_command_1): Fix typo.
9509 2011-02-21 Tom Tromey <tromey@redhat.com>
9511 * reverse.c: Include cli-utils.h.
9512 * printcmd.c: Include cli-utils.h.
9513 (string_printf): Use skip_spaces.
9514 * cli/cli-utils.h: New file.
9515 * cli/cli-utils.c: New file.
9516 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9517 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9518 * breakpoint.h (get_number, get_number_or_range): Move to
9520 * breakpoint.c: Include cli-utils.h.
9521 (get_number_trailer, get_number, get_number_or_range)
9522 (ep_skip_leading_whitespace): Move to cli-utils.c.
9523 (create_breakpoint_sal, find_condition_and_thread)
9524 (decode_static_tracepoint_spec, watch_command_1)
9525 (watch_maybe_just_location, ep_parse_optional_if_clause)
9526 (catch_fork_command_1, catch_exec_command_1)
9527 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9528 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9529 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9530 (HFILES_NO_SRCDIR): Add cli-utils.h.
9531 (cli-utils.o): New target.
9533 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9535 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9536 before calling discard_all_inferiors.
9538 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9540 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9541 (struct builtin_opencl_type): Remove.
9542 (builtin_opencl_type): Change return type to "struct type **".
9543 (lookup_opencl_vector_type): Update caller.
9544 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9545 (build_opencl_types): Install plain array of "struct type *"
9546 instead of "struct builtin_opencl_type".
9548 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9549 Ulrich Weigand <uweigand@de.ibm.com>
9551 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9552 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9553 (struct arm_linux_hwbp_cap): New type.
9554 (arm_linux_get_hwbp_cap): New function.
9555 (arm_linux_get_hw_breakpoint_count): Likewise.
9556 (arm_linux_get_hw_watchpoint_count): Likewise.
9557 (arm_linux_can_use_hw_breakpoint): Likewise.
9558 (arm_hwbp_type): New type.
9559 (arm_hwbp_control_t): Likewise.
9560 (struct arm_linux_hw_breakpoint): Likewise.
9561 (struct arm_linux_thread_points): Likewise.
9562 (arm_threads): New global variable.
9563 (arm_linux_find_breakpoints_by_tid): New function.
9564 (arm_hwbp_control_initialize): Likewise.
9565 (arm_hwbp_control_is_enabled): Likewise.
9566 (arm_hwbp_control_disable): Likewise.
9567 (arm_linux_hw_breakpoint_initialize): Likewise.
9568 (arm_linux_get_hwbp_type): Likewise.
9569 (arm_linux_hw_watchpoint_initialize): Likewise.
9570 (arm_linux_hw_breakpoint_equal): Likewise.
9571 (arm_linux_insert_hw_breakpoint1): Likewise.
9572 (arm_linux_remove_hw_breakpoint1): Likewise.
9573 (arm_linux_insert_hw_breakpoint): Likewise.
9574 (arm_linux_remove_hw_breakpoint): Likewise.
9575 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9576 (arm_linux_insert_watchpoint): Likewise.
9577 (arm_linux_remove_watchpoint): Likewise.
9578 (arm_linux_stopped_data_address): Likewise.
9579 (arm_linux_stopped_by_watchpoint): Likewise.
9580 (arm_linux_watchpoint_addr_within_range): Likewise.
9581 (arm_linux_new_thread): Likewise.
9582 (arm_linux_thread_exit): Likewise.
9583 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9584 related target callbacks. Register arm_linux_new_thread and
9585 arm_linux_thread_exit.
9586 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9587 * arm-tdep.c (arm_pc_is_thumb): Make global.
9588 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9590 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9592 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9593 per-frame locations while within a function epilogue.
9595 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9597 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9598 to GNU coding standards.
9600 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9602 Allow use of mingw native on Windows 95 OS.
9603 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9604 (ser_windows_close): Only call CancelIo if function exists.
9605 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9606 to check for existence of CancelIo function in kernel32 DLL.
9608 2011-02-21 Hui Zhu <teawater@gmail.com>
9610 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9611 * ax-gdb.c (gen_printf_expr_callback): New function.
9612 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9613 * ax-general.c (ax_memcpy): New function.
9614 (ax_print): Handle "printf".
9616 * ax.h (ax_memcpy): Forward declare.
9617 * common/ax.def (invalid2): Removed.
9618 (printf): New entry.
9619 * printcmd.c (printcmd.h): New include.
9620 (string_printf): New function.
9621 (ui_printf): Removed.
9622 (printf_command): Remove static. Call string_printf.
9623 (eval_command): Call string_printf.
9624 * printcmd.h: New file.
9625 * tracepoint.c (validate_actionline,
9626 encode_actions_1): handle printf_command.
9628 2011-02-19 Michael Snyder <msnyder@vmware.com>
9630 * reverse.c (delete_one_bookmark): Argument is now bookmark
9631 id rather than pointer to bookmark struct.
9632 (delete_bookmark_command): Use get_number_or_range.
9633 (goto_bookmark_command): Parse with get_number instead of strtoul.
9634 (bookmark_1): New function. Print info for one bookmark.
9635 (bookmarks_info): Use get_number_or_range and bookmark_1.
9637 2011-02-18 Michael Snyder <msnyder@vmware.com>
9639 * thread.c (info_threads_command): Re-implement using
9640 get_number_or_range.
9641 (thread_apply_command): Ditto.
9643 2011-02-18 Tom Tromey <tromey@redhat.com>
9645 * common/ax.def: New file.
9646 * ax.h (enum agent_op): Use ax.def.
9647 * ax-general.c (aop_map): Use ax.def.
9649 2011-02-18 Tom Tromey <tromey@redhat.com>
9651 * ax-general.c (aop_map): Add pick and rot.
9652 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9653 <DW_OP_rot>: Implement.
9654 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9656 * ax-general.c (ax_pick): New function.
9658 2011-02-18 Tom Tromey <tromey@redhat.com>
9660 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9662 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9663 Tom Tromey <tromey@redhat.com>
9665 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9666 make_symbol_overload_list_block with NULL BLOCK.
9667 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9669 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9671 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9672 * breakpoint.h (get_number_or_range): Declare.
9673 * printcmd.c (ALL_DISPLAYS): Declare.
9674 (delete_display): Reimplement taking a display pointer.
9675 (undisplay_command): Accept a range of displays to delete, using
9676 get_number_or_range.
9678 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9680 * c-valprint.c (c_val_print): Add embedded_offset to address
9681 for arrays of unspecified length.
9682 * p-valprint.c (pascal_val_print): Likewise.
9684 2011-02-18 Yao Qi <yao@codesourcery.com>
9686 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9687 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9688 (thumb_process_displaced_insn): New.
9689 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9690 call to arm_process_displaced_insn.
9691 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9693 2011-02-17 Tom Tromey <tromey@redhat.com>
9695 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9696 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9697 compile_dwarf_to_ax. No longer static. Call
9698 dwarf2_compile_cfa_to_ax.
9699 (locexpr_tracepoint_var_ref): Update.
9700 (loclist_tracepoint_var_ref): Update.
9701 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9702 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9703 argument; add 'gdbarch' and 'pc'.
9704 (dwarf2_compile_cfa_to_ax): New function.
9705 (dwarf2_frame_cache): Update.
9707 2011-02-17 Joel Brobecker <brobecker@adacore.com>
9709 * ada-lang.c (ada_type_of_array): Fix the size of the array
9710 in the case of an unconstrained packed array.
9712 2011-02-17 Yao Qi <yao@codesourcery.com>
9714 * common/Makefile.in: Add more targets for make.
9716 2011-02-16 Tom Tromey <tromey@redhat.com>
9718 * dwarf2loc.c (unimplemented): Fix typo.
9720 2011-02-16 Tom Tromey <tromey@redhat.com>
9722 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9723 (compile_dwarf_to_ax) <default>: Use unimplemented.
9724 <DW_OP_deref>: Update.
9725 (disassemble_dwarf_expression): Update.
9726 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9727 (decode_locdesc): Update.
9728 * dwarf2expr.h (dwarf_stack_op_name): Update.
9730 2011-02-16 Tom Tromey <tromey@redhat.com>
9732 * ax.h (struct aop_map) <name>: Now const.
9734 2011-02-16 Tom Tromey <tromey@redhat.com>
9736 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9739 2011-02-16 Yao Qi <yao@codesourcery.com>
9741 * infrun.c (get_displaced_step_closure_by_addr): New.
9742 * inferior.h: Declare it.
9743 * arm-tdep.c: (arm_pc_is_thumb): Call
9744 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9747 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9748 Jan Kratochvil <jan.kratochvil@redhat.com>
9751 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9753 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9754 Jan Kratochvil <jan.kratochvil@redhat.com>
9756 * value.c (value_contents_copy_raw): Extend describing comment.
9757 Assert that the destination contents we're overwriting are wholly
9759 (value_contents_copy): Extend describing comment.
9761 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9762 Jan Kratochvil <jan.kratochvil@redhat.com>
9764 * value.c (value_available_contents_eq): Remove redundant local
9765 variables. Fix available contents comparision.
9766 * value.h (value_available_contents_eq): Extend describing
9769 2011-02-16 Yao Qi <yao@codesourcery.com>
9771 * thread.c (info_threads_command): Add missing i18n markup and remove
9774 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9776 * breakpoint.c (longjmp_names): New variable.
9777 (struct breakpoint_objfile_data): New type.
9778 (breakpoint_objfile_key): New variable.
9779 (msym_not_found): New variable.
9780 (msym_not_found_p): New predicate.
9781 (get_breakpoint_objfile_data): New function.
9782 (create_overlay_event_breakpoint): Check per-objfile cache for
9784 (create_longjmp_master_breakpoint): Likewise.
9785 (create_std_terminate_master_breakpoint): Likewise.
9786 (create_exception_master_breakpoint): Likewise.
9787 (_initialize_breakpoint): Register per-objfile data key.
9789 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9791 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9793 (create_longjmp_master_breakpoint): Loop over longjmp names.
9794 (create_std_terminate_master_breakpoint): Const-propagate parameter
9796 (update_breakpoints_after_exec): Adjust.
9797 (breakpoint_re_set): Adjust.
9799 2011-02-15 Michael Snyder <msnyder@vmware.com>
9801 * thread.c (info_threads_command): Process arg as thread id,
9802 or list of thread ids.
9803 (thread_find_command): New command.
9804 (_initialize_thread): Document argument for info threads.
9805 Document 'thread find' command.
9806 * NEWS: Document new command "thread find".
9808 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9810 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9811 * aclocal.m4: Regenerated with aclocal-1.11.1.
9812 * common/configure: Regenerate with autoconf-2.64.
9814 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9816 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9817 bool data type to a size of one byte.
9819 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9820 Jan Kratochvil <jan.kratochvil@redhat.com>
9822 * target.c (memory_xfer_live_readonly_partial): Document where to
9823 look for interface description.
9825 2011-02-15 Yao Qi <yao@codesourcery.com>
9828 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9829 order to store PC value on stack instead of text section.
9831 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9833 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9834 the EFP register set size.
9835 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9836 data from the VMX register.
9837 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9838 and write data from/to the VMX register.
9840 2011-02-14 Michael Snyder <msnyder@vmware.com>
9842 * command.h (enum command_class): New class 'no_set_class', for
9843 "show" commands without a corresponding "set" command.
9844 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9845 * copying.c (_initialize_copying): Ditto for "show copying" and
9847 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9849 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9850 which there is no corresponding "set" command (eg. "show copying").
9852 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9853 Jan Kratochvil <jan.kratochvil@redhat.com>
9855 * exec.c (section_table_available_memory): Change `len' parameter
9857 * exec.h (section_table_available_memory): Ditto.
9858 * value.h (read_value_memory): Rename the `offset' parameter to
9861 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9862 Jan Kratochvil <jan.kratochvil@redhat.com>
9864 * memrange.c (compare_mem_ranges): Mention sort order in
9866 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9867 * tracepoint.c (traceframe_available_memory): Extend comment to
9868 mention what happens to RESULT when the target does not support
9871 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9872 Jan Kratochvil <jan.kratochvil@redhat.com>
9874 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9877 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9879 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9880 No longer handle NULL values.
9882 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9884 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9885 * value.c: Include "exceptions.h".
9886 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9888 * cp-abi.c: Include gdb_assert.h.
9889 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9890 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9892 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9893 parameters. No longer returns -1 on error.
9894 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9896 * cp-valprint.c: Include exceptions.h.
9897 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9898 the baseclass_offset. Handle unavailable base classes. Use
9899 val_print_invalid_address.
9900 * p-valprint.c: Include exceptions.h.
9901 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9902 when fetching the baseclass_offset. No longer expect
9903 baseclass_offset returning -1. Handle unavailable base classes.
9904 Use val_print_invalid_address.
9905 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9906 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9907 `embedded_offset' and `val' parameters. Adjust.
9908 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9909 parameter, and change its type to gdb_byte pointer. Add
9910 `embedded_offset' and `val' parameters. Adjust. No longer expect
9911 baseclass_offset returning -1.
9912 (value_dynamic_cast): Use value_contents_for_printing rather than
9913 value_contents. Adjust.
9914 (search_struct_field): No longer expect baseclass_offset returning
9916 (search_struct_method): If reading memory from the target is
9917 necessary, wrap it in a new value to pass to baseclass_offset. No
9918 longer expect baseclass_offset returning -1.
9919 (find_method_list): No longer expect baseclass_offset returning
9920 -1. Use value_contents_for_printing rather than value_contents.
9921 * valprint.c (val_print_invalid_address): New function.
9922 * valprint.h (val_print_invalid_address): Declare.
9923 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9924 and `val' parameters. No longer expect baseclass_offset returning
9926 * gnu-v2-abi.c: Include "exceptions.h".
9927 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9928 parameters. Handle unavailable memory. Recurse through
9929 gnuv2_baseclass_offset directly, rather than through
9930 baseclass_offset. No longer returns -1 on not found, instead
9932 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9933 `val' parameters. Adjust.
9935 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9937 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9938 almost but not quite adjacent.
9940 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9942 * value.h (value_entirely_available): Declare.
9943 * value.c (value_entirely_available): New function.
9944 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9945 real type if the pointer is unavailable.
9947 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9949 * valops.c (value_repeat): Use read_value_memory instead of
9952 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9954 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9955 * value.c (value_contents_copy_raw, value_contents_copy): New
9957 (value_primitive_field): Use value_contents_copy_raw instead of
9959 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9961 (value_array, value_slice): Ditto.
9962 * valarith.c (value_subscripted_rvalue): Use
9963 value_contents_copy_raw instead of memcpy.
9965 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9967 <unavailable> references.
9969 * valops.c (get_value_at): Use value_from_contents_and_address,
9970 avoiding read_memory.
9972 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9974 * c-valprint.c (c_val_print): Print a string with unavailable
9975 contents as an array.
9977 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9979 * value.h (unpack_bits_as_long): Delete declaration.
9980 (unpack_value_bits_as_long): Declare.
9981 (unpack_value_field_as_long): Declare.
9982 (value_field_bitfield): Declare.
9983 * value.c (unpack_bits_as_long): Rename to...
9984 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9985 value parameters. Return the extracted result in a new output
9986 parameter. If the value contents are unavailable, return false,
9987 otherwise return true.
9988 (unpack_value_bits_as_long): New.
9989 (unpack_field_as_long): Rename to...
9990 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9991 Add embedded_offset and value parameters. Return the extracted
9992 result in a new output parameter. If the value contents are
9993 unavailable, return false, otherwise return true.
9994 (unpack_value_field_as_long): New.
9995 (unpack_field_as_long_1): New.
9996 (unpack_field_as_long): Reimplement as wrapper around
9997 unpack_value_field_as_long_1.
9998 (value_field_bitfield): New function.
9999 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10000 unpack_value_bits_as_long. Mark the value as unavailable, if it
10002 * jv-valprint.c (java_print_value_fields): Use
10003 value_field_bitfield.
10004 * p-valprint.c (pascal_object_print_value_fields): Use
10005 value_field_bitfield.
10006 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10008 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10010 * value.c (get_internalvar_integer): Also return the int value of
10011 TYPE_CODE_INT INTERNALVAR_VALUE values.
10012 (set_internalvar): Don't special case TYPE_CODE_INT.
10014 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10016 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10017 INTERNALVAR_POINTER.
10019 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10020 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10021 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10023 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10025 * value.h (value_available_contents_eq): Declare.
10026 * value.c (find_first_range_overlap): New function.
10027 (value_available_contents_eq): New function.
10028 * valprint.c (val_print_array_elements): Use
10029 value_available_contents_eq.
10030 * ada-valprint.c (val_print_packed_array_elements): Use
10031 value_available_contents_eq.
10032 * jv-valprint.c (java_value_print): Use
10033 value_available_contents_eq.
10035 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10037 * target.c (target_read_live_memory): New function.
10038 (memory_xfer_live_readonly_partial): New.
10039 (memory_xfer_partial): If reading from a traceframe, fallback to
10040 reading unavailable read-only memory from read-only regions of
10041 live target memory.
10042 * tracepoint.c (disconnect_tracing): Adjust.
10043 (set_current_traceframe): New, factored out from
10044 set_traceframe_number.
10045 (set_traceframe_number): Reimplement to only change the traceframe
10046 number on the GDB side.
10047 (do_restore_current_traceframe_cleanup): Adjust.
10048 (make_cleanup_restore_traceframe_number): New.
10049 (cur_traceframe_number): New global.
10050 (tfile_open): Set cur_traceframe_number to no traceframe.
10051 (set_tfile_traceframe): New function.
10052 (tfile_trace_find): If looking up a traceframe using any method
10053 other than by number, make sure the current tfile traceframe
10054 matches gdb's current traceframe. Update the current tfile
10055 traceframe if the lookup succeeded.
10056 (tfile_fetch_registers, tfile_xfer_partial)
10057 (tfile_get_trace_state_variable_value): Make sure the remote
10058 traceframe matches gdb's current traceframe.
10059 * remote.c (remote_traceframe_number): New global.
10060 (remote_open_1): Set it to -1.
10061 (set_remote_traceframe): New function.
10062 (remote_fetch_registers, remote_store_registers)
10063 (remote_xfer_memory, remote_xfer_partial)
10064 (remote_get_trace_state_variable_value): Make sure the remote
10065 traceframe matches gdb's current traceframe.
10066 (remote_trace_find): If looking up a traceframe using any method
10067 other than by number, make sure the current remote traceframe
10068 matches gdb's current traceframe. Update the current remote
10069 traceframe if the lookup succeeded.
10070 * infrun.c (fetch_inferior_event): Adjust.
10071 * tracepoint.h (set_current_traceframe): Declare.
10072 (get_traceframe_number, set_traceframe_number): Add describing
10075 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10077 Mark pieces of values as unavailable if the corresponding memory
10080 * valops.c: Include tracepoint.h.
10081 (value_fetch_lazy): Use read_value_memory.
10082 (read_value_memory): New.
10083 * value.h (read_value_memory): Declare.
10084 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10085 * exec.c (section_table_available_memory): New function.
10086 * exec.h (section_table_available_memory): Declare.
10088 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10090 * Makefile.in (SFILES): Add memrange.c.
10091 (HFILES_NO_SRCDIR): Add memrange.h.
10092 (COMMON_OBS): Add memrange.o.
10093 * memrange.c: New file.
10094 * memrange.h: New file.
10095 * tracepoint.c: Include memrange.h.
10096 (struct mem_range): Delete.
10097 (mem_range_s): Delete.
10098 (traceframe_available_memory): New function.
10099 * tracepoint.h (traceframe_available_memory): Declare.
10101 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10103 * target.h (struct traceframe_info): Forward declare.
10104 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10105 (struct target_ops) <to_traceframe_info>: New field.
10106 (target_traceframe_info): New.
10107 * target.c (update_current_target): Inherit and default
10108 to_traceframe_info.
10109 * remote.c (PACKET_qXfer_traceframe_info): New.
10110 (remote_protocol_features): Register qXfer:traceframe-info:read.
10111 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10112 (remote_traceframe_info): New.
10113 (init_remote_ops): Install it.
10114 (_initialize_remote): Install "set/show remote traceframe-info"
10116 * tracepoint.h (parse_traceframe_info): Declare.
10117 * tracepoint.c (struct mem_range): New.
10118 (mem_range_s): New typedef.
10119 (struct traceframe_info): New.
10120 (traceframe_info): New global.
10121 (free_traceframe_info): New function.
10122 (clear_traceframe_info): New function.
10123 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10125 (build_traceframe_info): New function.
10126 (tfile_traceframe_info): New function.
10127 (init_tfile_ops): Install tfile_traceframe_info.
10128 (traceframe_info_start_memory, free_result): New functions.
10129 (memory_attributes, traceframe_info_elements): New globals.
10130 (parse_traceframe_info, get_traceframe_info): New functions.
10131 * features/traceframe-info.dtd: New file.
10132 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10134 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10136 Base support for <unavailable> value contents.
10138 * value.h (value_bytes_available): Declare.
10139 (mark_value_bytes_unavailable): Declare.
10140 * value.c (struct range): New struct.
10141 (range_s): New typedef.
10142 (ranges_overlap): New function.
10143 (range_lessthan): New function.
10144 (ranges_contain_p): New function.
10145 (struct value) <unavailable>: New field.
10146 (value_bytes_available): New function.
10147 (mark_value_bytes_unavailable): New function.
10148 (require_not_optimized_out): Constify parameter.
10149 (require_available): New function.
10150 (value_contents_all, value_contents): Require all bytes be
10152 (value_free): Free `unavailable'.
10153 (value_copy): Copy `unavailable'.
10154 * valprint.h (val_print_unavailable): Declare.
10155 * valprint.c (valprint_check_validity): Rename `offset' parameter
10156 to `embedded_offset'. If printing a scalar, check whether the
10157 value chunk is available.
10158 (val_print_unavailable): New.
10159 (val_print_scalar_formatted): Check whether the value is
10161 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10162 pretty-printing unavailable values.
10164 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10166 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10167 * c-typeprint.c (c_type_print_args): Update the function comment. New
10168 variable param_type, initialize it. Remove const/volatile qualifiers
10169 for language_cplus and !show_artificial. Use param_type.
10171 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10173 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10174 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10175 * symtab.h (struct symtab) <next>: Comment extension.
10177 2011-02-12 Yao Qi <yao@codesourcery.com>
10179 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10181 2011-02-11 Yao Qi <yao@codesourcery.com>
10183 * common/Makefile.in: Add copyright header.
10185 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10187 * infrun.c (proceed): Move switching out and in of tfind mode from
10189 (fetch_inferior_event): ... to here.
10191 2011-02-11 Yao Qi <yao@codesourcery.com>
10193 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10195 * configure.ac: Add common to sub dir.
10196 * configure: Regenerate.
10198 2011-02-11 Yao Qi <yao@codesourcery.com>
10202 * common/Makefile.in: New.
10203 * common/configure.ac: New.
10204 * common/aclocal.m4: New.
10205 * common/configure: Generate.
10207 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10209 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10210 side of the parenthesis.
10213 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10214 * vec.h (VEC_block_remove): Fix comment.
10216 2011-02-08 Michael Snyder <msnyder@vmware.com>
10218 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10220 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10222 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10223 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10226 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10229 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10231 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10232 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10234 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10236 * dwarf2read.c (read_subroutine_type): Set special calling
10237 convention flag for functions compiled by IBM XL C for OpenCL.
10238 * ppc-sysv-tdep.c: Include "dwarf2.h"
10239 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10240 calling convention.
10241 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10242 IBM OpenCL vector types calling convention.
10243 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10244 (ppc_sysv_abi_broken_return_value): Likewise.
10245 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10246 types calling convention.
10247 (ppc64_sysv_abi_return_value): Likewise.
10248 * spu-tdep.c: Include "dwarf2.h"
10249 (spu_return_value): Implement IBM OpenCL vector types calling
10252 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10254 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10255 correct ABI for AltiVec vector arguments.
10257 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10259 * valprint.c (val_print): Extend comment.
10260 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10261 interface explanation to val_print.
10262 (ada_val_print_array): Adjust comment to current interface.
10263 (print_field_values): Adjust comment to current interface.
10264 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10265 explanation to val_print.
10266 * f-valprint.c (f_val_print): Ditto.
10267 * jv-valprint.c (java_val_print): Ditto.
10268 * m2-valprint.c (m2_val_print): Ditto.
10269 * p-valprint.c (pascal_val_print): Ditto.
10271 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10273 * breakpoint.c (parse_breakpoint_sals): Fix description.
10275 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10276 Oguz Kayral <oguzkayral@gmail.com>
10278 * python/py-inferior.c (python_on_normal_stop): New function.
10279 (python_on_resume): New function.
10280 (python_inferior_exit): New function.
10281 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10282 inferior_exit observers.
10283 * python/py-evtregistry.c: New file.
10284 * python/py-threadevent.c : New file.
10285 * python/py-event.c: New file.
10286 * python/py-evts.c: New file.
10287 * python/py-continueevent.c: New file.
10288 * python/py-bpevent.c: New file.
10289 * python/py-signalevent.c: New file.
10290 * python/py-exetiedevent.c: New file.
10291 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10292 Move struct breakpoint_object from here...
10293 * python/python-internal.h: ... to here.
10294 * python/py-event.h: New file.
10295 * python/py-events.h: New file.
10296 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10297 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10298 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10299 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10300 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10301 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10302 Add build rules for all the above.
10304 2011-02-04 Tom Tromey <tromey@redhat.com>
10306 * dwarf2read.c (dwarf2_section_empty_p): New function.
10307 (dwarf2_read_section): Use dwarf2_section_empty_p.
10308 (dwarf2_section_size): New function.
10309 (dwarf2_get_section_info): Unconditionally read section.
10310 (dwarf2_read_index): Use dwarf2_section_empty_p.
10311 (partial_read_comp_unit_head): Use dwarf2_section_size.
10312 (dwarf2_symbol_mark_computed): Likewise.
10314 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10316 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10318 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10320 * mips-linux-tdep.c: Include xml-syscall.h.
10321 (mips_linux_get_syscall_number): New function.
10322 (mips_linux_init_abi): Add calls to
10323 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10324 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10325 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10326 * syscalls/mips-n32-linux.xml: New file.
10327 * syscalls/mips-n64-linux.xml: New file.
10328 * syscalls/mips-o32-linux.xml: New file.
10330 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10332 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10333 Complain about inverted range entries.
10334 (dwarf2_record_block_ranges): Likewise.
10336 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10339 * breakpoint.c (update_watchpoint): Fix name of the
10340 update_global_location_list function.
10341 (print_one_breakpoint): Fix typo.
10342 (_initialize_breakpoint): Remove extra space in hbreak help
10344 * breakpoint.h (struct bp_location) <length>: Fix field
10347 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10349 * regcache.c (registers_changed_ptid): Don't explictly always
10350 clear `current_regcache'. Only clear current_thread_ptid and
10351 current_thread_arch when PTID matches. Only reinit the frame
10352 cache if PTID matches the current inferior_ptid. Move alloca(0)
10354 (registers_changed): ... here.
10356 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10358 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10359 starts with __stack_chk_guard as stack guard symbol.
10361 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10363 * disasm.c (compare_lines): Handle the end of sequence markers
10364 within the line table to better support disassembling over
10365 compilation unit boundaries.
10367 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10369 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10370 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10371 implementation even if no symbols are available.
10372 (thumb_analyze_prologue): Update call to skip_prologue_function.
10373 (arm_analyze_prologue): Likewise.
10375 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10377 * arm-tdep.c: Include "observer.h".
10378 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10379 (arm_exidx_data_key): New static variable.
10380 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10381 (struct arm_exidx_data): Likewise.
10382 (arm_exidx_data_free): New function.
10383 (arm_compare_exidx_entries): Likewise.
10384 (arm_obj_section_from_vma): Likewise.
10385 (arm_exidx_new_objfile): Likewise.
10386 (arm_find_exidx_entry): Likewise.
10387 (arm_exidx_fill_cache): Likewise.
10388 (arm_exidx_unwind_sniffer): Likewise.
10389 (arm_exidx_unwind): New global variable.
10390 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10391 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10392 observer. Register arm_exidx_data_key as objfile data.
10394 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10396 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10397 due to accessing uninitialized variable. Fix indentation.
10399 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10401 * c-valprint.c (c_value_print): When doing virtual base pointer
10402 adjustment, create a new value with adjusted contents rather than
10403 changing the contents of the value being printed (and getting it
10406 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10408 * xml-support.c (xml_find_attribute): New.
10409 (xinclude_start_include): Use it.
10410 * xml-support.h (xml_find_attribute): Declare.
10411 * memory-map.c (memory_map_start_memory)
10412 (memory_map_start_property): Use xml_find_attribute.
10413 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10414 xml_find_attribute.
10415 * remote.c (start_thread): Use xml_find_attribute.
10416 * solib-target.c (library_list_start_segment)
10417 (library_list_start_section, library_list_start_library)
10418 (library_list_start_list): Use xml_find_attribute.
10419 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10420 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10421 (tdesc_start_field): Use xml_find_attribute.
10423 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10425 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10426 (BUILD_OCL_VTYPES): Update.
10428 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10430 * configure.ac: Work around non-GNU sed limitation when computing
10431 python version number.
10432 * configure: Regenerate.
10434 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10436 Fix debug printing of TYPE_INSTANCE.
10437 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10438 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10440 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10442 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10443 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10444 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10445 * ada-operator.inc: Rename the file to ...
10446 * ada-operator.def: ... here, wrap all the entries by macro OP.
10447 * expprint.c (op_name_standard): Remove all the entries. Include
10448 "std-operator.def" instead.
10449 * expression.h (enum exp_opcode): Include "std-operator.def" and
10450 "ada-operator.def". Move all the entries ...
10451 * std-operator.def: ... here, wrap all the entries by macro OP.
10453 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10455 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10456 * breakpoint.c (remove_jit_event_breakpoints): New function.
10457 * jit.c (jit_descriptor_addr): Delete.
10458 (registering_code): Delete.
10459 (clear_int): Delete.
10460 (jit_inferior_data): New variable.
10461 (struct jit_inferior_data): New type.
10462 (get_jit_inferior_data): New function.
10463 (jit_inferior_data_cleanup): New function.
10464 (jit_read_descriptor): Adjust.
10465 (jit_register_code): Adjust.
10466 (jit_breakpoint_re_set_internal): New function; move code here ...
10467 (jit_inferior_init): ... from here.
10468 (jit_breakpoint_re_set): Adjust.
10469 (jit_reset_inferior_data_and_breakpoints): New function.
10470 (jit_inferior_created_observer): Adjust.
10471 (jit_inferior_exit_hook): Adjust.
10472 (jit_executable_changed_observer): New function.
10473 (jit_event_handler): Adjust.
10474 (_initialize_jit): Adjust.
10476 2011-01-31 Michael Snyder <msnyder@vmware.com>
10478 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10481 2011-01-31 Tom Tromey <tromey@redhat.com>
10484 * python/python.c (execute_gdb_command): Call
10485 prevent_dont_repeat.
10486 * top.c (suppress_dont_repeat): New global.
10487 (dont_repeat): Use it.
10488 (prevent_dont_repeat): New function.
10489 * command.h (prevent_dont_repeat): Declare.
10491 2011-01-31 Tom Tromey <tromey@redhat.com>
10493 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10494 * python/py-breakpoint.c (bppy_set_silent): Use
10495 breakpoint_set_silent.
10496 (bppy_set_thread): Use breakpoint_set_thread.
10497 (bppy_set_task): Use breakpoint_set_task.
10498 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10499 (breakpoint_set_task): Declare.
10500 (make_breakpoint_silent): Remove.
10501 * breakpoint.c (breakpoint_set_silent): New function.
10502 (breakpoint_set_thread): Likewise.
10503 (breakpoint_set_task): Likewise.
10504 (make_breakpoint_silent): Remove.
10506 2011-01-31 Tom Tromey <tromey@redhat.com>
10508 * breakpoint.h (user_breakpoint_p): Declare.
10509 * breakpoint.c (user_breakpoint_p): New function.
10510 (breakpoint_1): Use it.
10511 (save_breakpoints): Likewise.
10513 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10515 * configure.ac: Add handling of Python distribution on Windows.
10516 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10517 sysconfig variables are not defined, then do not use them.
10518 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10519 instead. On Windows, return all paths using forward-slashes
10520 rather than backslashes.
10522 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10524 * configure.ac: Remove fallback behavior for building
10525 against Python. Remove tweaking of Python include path.
10526 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10527 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10528 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10529 Always restore CPPFLAGS and LIBS after linking test.
10530 * configure: Regenerated.
10531 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10532 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10533 * python/python-internal.h: Adjust includes of Python .h files.
10535 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10537 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10540 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10542 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10545 2011-01-31 Yao Qi <yao@codesourcery.com>
10547 * arm-linux-nat.c: Update calls to regcache_register_status
10548 instead of regcache_valid_p.
10549 * aix-thread.c: Likewise.
10550 * i386gnu-nat.c: Likewise.
10552 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10555 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10556 touching TYPE_FIELD_ARTIFICIAL.
10558 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10560 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10563 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10565 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10566 selected, don't try iterating over the traceframe's blocks.
10567 (tfile_has_stack): If there's no traceframe selected, then there's
10569 (tfile_has_registers): If there's no traceframe selected, then
10570 there's no registers.
10572 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10574 * target.c (memory_xfer_partial): No need to restore shadows if we
10575 haven't read anything.
10577 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10579 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10580 and val_print_scalar_formatted.
10582 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10584 * tracepoint.c (tfile_read): New.
10585 (tfile_open): Use it.
10586 (tfile_get_traceframe_address): Use it.
10587 (tfile_trace_find): Use it.
10588 (walk_blocks_callback_func): New typedef.
10589 (match_blocktype): New function.
10590 (traceframe_walk_blocks): New function.
10591 (traceframe_find_block_type): New function.
10592 (tfile_fetch_registers, tfile_xfer_partial)
10593 (tfile_get_trace_state_variable_value): Use
10594 traceframe_find_block_type and tfile_read.
10596 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10598 * remote-mips.c: Add internationalization mark ups. Remove
10599 trailing \n from already marked up strings.
10601 2011-01-26 Tom Tromey <tromey@redhat.com>
10603 * python/py-prettyprint.c (print_string_repr): Clear
10604 'addressprint' option when calling val_print_string.
10605 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10606 option when calling val_print_string.
10608 2011-01-26 Tom Tromey <tromey@redhat.com>
10610 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10612 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10614 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10615 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10616 (gdb_py_long_as_ulongest): New defines.
10617 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10618 (gdb_py_int_as_long): Declare.
10619 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10620 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10621 (valpy_long): Add comment.
10622 * python/py-utils.c (get_addr_from_python): Use
10623 gdb_py_long_as_ulongest. Handle overflow properly.
10624 (gdb_py_object_from_longest): New function.
10625 (gdb_py_object_from_ulongest): Likewise.
10626 (gdb_py_int_as_long): Likewise.
10627 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10628 * python/py-symtab.c (salpy_get_pc): Use
10629 gdb_py_long_from_ulongest.
10630 (salpy_get_line): Use PyInt_FromLong.
10631 * python/py-param.c (set_parameter_value): Use
10632 gdb_py_int_as_long.
10633 * python/py-lazy-string.c (stpy_get_address): Use
10634 gdb_py_long_from_ulongest.
10635 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10636 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10637 * python/py-breakpoint.c (bppy_set_thread): Use
10638 gdb_py_int_as_long.
10639 (bppy_set_task): Likewise.
10640 (bppy_set_ignore_count): Likewise.
10641 (bppy_set_hit_count): Likewise.
10642 * python/py-block.c (blpy_get_start): Use
10643 gdb_py_object_from_ulongest.
10644 (blpy_get_end): Likewise.
10645 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10647 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10650 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10651 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10652 equality test for objfile, initialize addr_low if needed.
10654 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10656 * tui/tui-regs.c (tui_register_format): Remove dead code.
10658 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10660 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10661 instead of print_scalar_formatted.
10662 (print_scalar_formatted): Don't handle 's' format strings here,
10663 and add an assertion that we never see such format here.
10664 * valprint.h (val_print_scalar_formatted): Declare.
10665 * valprint.c (val_print_scalar_formatted): New.
10666 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10667 instead of print_scalar_formatted.
10668 * jv-valprint.c (java_val_print): Ditto.
10669 * p-valprint.c (pascal_val_print): Ditto.
10670 * ada-valprint.c (ada_val_print_1): Ditto.
10671 * f-valprint.c (f_val_print): Ditto.
10672 * infcmd.c (registers_info): Ditto.
10673 * m2-valprint.c (m2_val_print): Ditto.
10675 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10677 * m2-valprint.c (print_unbounded_array): Pass
10678 value_contents_for_printing rather than value_contents, to
10679 m2_print_array_contents. Also pass in the value.
10681 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10683 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10684 (save_gdb_index_command): Switch to .gdb_index version 4.
10686 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10688 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10689 than frame_register, and always pass a valid value to val_print.
10691 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10693 Centralize printing "<optimized out>".
10695 * valprint.h (val_print_optimized_out): Declare.
10696 * cp-valprint.c (cp_print_value_fields): Use
10697 val_print_optimized_out.
10698 * jv-valprint.c (java_print_value_fields): Ditto.
10699 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10700 * printcmd.c (print_formatted): Ditto.
10701 * valprint.c (valprint_check_validity): Ditto.
10702 (value_check_printable): Ditto.
10703 (val_print_optimized_out): New.
10705 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10707 * infcmd.c (default_print_registers_info): Allocate values so to
10708 never pass a NULL value to val_print.
10710 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10712 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10713 boolean. Make sure to always pass a value that matches the
10714 contents buffer to callees. Preserve `address' for following
10716 * value.c (value_contents_for_printing_const): New.
10717 (value_address): Constify value argument.
10718 * value.h (value_contents_for_printing_const): Declare.
10719 (value_address): Constify value argument.
10721 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10723 * regcache.c (struct regcache_descr): Rename
10724 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10725 and sizeof_cooked_register_valid_p to
10726 sizeof_cooked_register_status.
10727 (init_regcache_descr): Adjust.
10728 (struct regcache): Rename register_valid_p field to
10730 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10731 (do_cooked_read): Adjust.
10732 (regcache_valid_p): Rename to ...
10733 (regcache_register_status): ... this. Adjust.
10734 (regcache_invalidate): Adjust.
10735 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10737 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10738 as unavailable, not valid.
10739 (regcache_dump): Adjust.
10740 * regcache.h (enum register_status): New.
10741 (regcache_register_status): Declare.
10742 (regcache_invalidate): Delete declaration.
10743 * corelow.c (get_core_registers): Adjust.
10744 * tracepoint.c (tfile_fetch_registers): Adjust.
10745 * trad-frame.c (REG_VALUE): Rename to ...
10746 (TF_REG_VALUE): ... this.
10747 (REG_UNKNOWN): Rename to ...
10748 (TF_REG_UNKNOWN): ... this.
10749 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10750 * mi/mi-main.c (register_changed_p): Adjust.
10752 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10754 * regcache.c (struct regcache_descr): Remove outdated comment.
10755 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10757 (regcache_xmalloc): Rename to ...
10758 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10759 Allocate the regcache type accordingly.
10760 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10761 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10762 cooked registers, not raw.
10763 (regcache_dup_no_passthrough): Delete.
10764 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10765 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10766 mention obsolete write_register_bytes.
10767 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10769 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10771 Stop remote_read_bytes from handling partial reads itself.
10773 * remote-fileio.c: Include target.h.
10774 (remote_fileio_write_bytes): Delete.
10775 (remote_fileio_func_open, remote_fileio_func_write)
10776 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10777 target_read_memory.
10778 (remote_fileio_func_stat): Use target_read_memory and
10779 target_write_memory.
10780 (remote_fileio_func_gettimeofday): Use target_write_memory.
10781 (remote_fileio_func_system): Use target_read_memory.
10782 * remote.c (remote_write_bytes): Make it static.
10783 (remote_read_bytes): Don't handle partial reads here.
10784 * remote.h (remote_read_bytes): Delete declaration.
10786 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10788 Simplify XML parsing a bit.
10790 * xml-support.h (gdb_xml_parse_quick): Declare.
10791 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10792 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10794 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10795 gdb_xml_create_parser_and_cleanup_1.
10796 (gdb_xml_parse_quick): New.
10797 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10798 * osdata.c (osdata_parse): Ditto.
10799 * remote.c (remote_threads_info): Ditto.
10800 * solib-target.c (solib_target_parse_libraries): Ditto.
10801 * xml-syscall.c (syscall_parse_xml): Ditto.
10802 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10804 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10806 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10807 with remote-mips.o added to gdb_target_obs.
10808 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10810 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10812 * ada-valprint.c (val_print_packed_array_elements): Pass the
10813 correct struct value to val_print.
10814 (ada_val_print_1): Ditto.
10816 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10818 Don't lose embedded_offset in printing routines throughout.
10820 * valprint.h (val_print_array_elements): Change prototype.
10821 * valprint.c (val_print_array_elements): Add `embedded_offset'
10822 parameter, and adjust to pass it down to val_print, while passing
10823 `valaddr' or `address' unmodified. Take embedded_offset into
10824 account when checking repetitions.
10825 * c-valprint.c (c_val_print): Pass embedded_offset to
10826 val_print_array_elements instead of adjusting `valaddr' and
10828 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10829 embedded_offset to val_print_array_elements instead of adjusting
10831 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10832 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10833 val_print_array_elements and pascal_object_print_value_fields
10834 instead of adjusting `valaddr'.
10835 (pascal_object_print_value_fields): Add `offset' parameter, and
10837 (pascal_object_print_value): Add `offset' parameter, and adjust to
10839 (pascal_object_print_static_field): Use
10840 value_contents_for_printing/value_embedded_offset, rather than
10842 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10843 parameter, and adjust to use it. Use
10844 value_contents_for_printing/value_embedded_offset, rather than
10846 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10847 (ada_val_print_array): Add `offset' parameter, and adjust to use
10849 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10850 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10851 Instead work with offsets. Use
10852 value_contents_for_printing/value_embedded_offset, rather than
10853 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10854 and use value_from_pointer to extract a target pointer, rather
10855 than value_from_longest.
10856 (print_variant_part): Add `offset' parameter. Replace
10857 `outer_valaddr' parameter by a new `outer_offset' parameter.
10858 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10859 (ada_value_print): Use
10860 value_contents_for_printing/value_embedded_offset, rather than
10862 (print_record): Add `offset' parameter, and adjust to pass it
10864 (print_field_values): Add `offset' parameter. Replace
10865 `outer_valaddr' parameter by a new `outer_offset' parameter.
10866 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10867 Use value_contents_for_printing/value_embedded_offset, rather than
10869 * d-valprint.c (dynamic_array_type): Use
10870 value_contents_for_printing/value_embedded_offset, rather than
10872 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10873 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10874 (java_print_value_fields): Take `offset' into account. Don't
10875 re-adjust `valaddr'. Instead pass down adjusted offsets.
10876 (java_val_print): Take `embedded_offset' into account. Pass it to
10877 java_print_value_fields.
10878 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10879 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10880 down adjusted offsets.
10881 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10882 (f_val_print): Take `embedded_offset' into account.
10884 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10886 * inflow.c: Include "gdbcmd.h".
10887 (interactive_mode): New static global, moved here from top.c.
10888 (show_interactive_mode): New function, moved here from top.c.
10889 use gdb_has_a_terminal instead of input_from_terminal_p to
10890 determine the current mode.
10891 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10893 (_initialize_inflow): Add the "set/show interactive-mode"
10894 commands. Moved here from top.c, after having adjusted slightly
10896 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10898 (input_from_terminal_p): Remove handling of "interactive-mode"
10899 setting, moved to infow.c.
10900 (init_main): Remove creation of the "set/show interactive-mode"
10901 commands, moved to inflow.c.
10903 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10905 * NEWS: Add entry for native ia64-hpux support.
10907 2011-01-19 Tom Tromey <tromey@redhat.com>
10910 * thread.c (free_thread): Free 'name'.
10911 (print_thread_info): Emit thread name. Change CLI output.
10912 (thread_name_command): New function.
10913 (do_captured_thread_select): Emit newline.
10914 (_initialize_thread): Register 'thread name' command.
10915 * target.h (struct target_ops) <to_thread_name>: New field.
10916 (target_thread_name): New macro.
10917 * target.c (update_current_target): Handle to_thread_name.
10918 * python/py-infthread.c (thpy_get_name): New function.
10919 (thpy_set_name): Likewise.
10920 (thread_object_getset): Add "name".
10921 * linux-nat.c (linux_nat_thread_name): New function.
10922 (linux_nat_add_target): Set to_thread_name.
10923 * gdbthread.h (struct thread_info) <name>: New field.
10925 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10927 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10928 (ada_val_print_1): Likewise.
10930 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10932 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10933 upper limit address is not greater than the function end address
10934 when the upper limit could not be computed using the debugging
10937 2011-01-17 Tom Tromey <tromey@redhat.com>
10939 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10941 * utils.c: Include gdb_regex.h.
10942 (do_regfree_cleanup): New function.
10943 (make_regfree_cleanup): Likewise.
10944 (get_regcomp_error): Likewise.
10945 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10947 2011-01-17 Tom Tromey <tromey@redhat.com>
10949 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10950 re_compile_fastmap.
10952 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10954 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10955 for internal variables.
10956 (last_was_structop): New static variable.
10957 (COMPLETE): New token.
10958 (field_exp): New rule to group all '.' suffix handling.
10959 Add mark_struct_expression calls when approriate to be able
10960 to correctly find fields for completion.
10961 (yylex): Adapt to handle field completion and set INTVAR when
10964 2011-01-14 Yao Qi <yao@codesourcery.com>
10966 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10967 save_reggroup, restore_reggroup and all_reggroup.
10969 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10971 * ada-valprint. (ada_printchar): Use the correct type length
10972 in call to ada_emit_char.
10973 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10975 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10977 * solib-som.h (hpux_major_release): Declare variable here.
10978 * solib-som.c: Remove <sys/utsname.h> header.
10979 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10980 (hpux_major_release): Make global, change default value to
10981 DEFAULT_HPUX_MAJOR_RELEASE.
10982 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10983 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10984 Add "solib-som.h" header.
10985 (set_hpux_major_release): New function.
10986 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10988 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10990 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10992 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10994 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10995 new-line at end of warning message.
10996 (ia64_hpux_store_register): Remove trailing new-line at end of
10998 * ia64-hpux-tdep.c: Rephrase comment.
10999 * solib-ia64-hpux.c (struct dld_info): Change type of field
11000 dld_flags from "long long" to ULONGEST.
11002 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11004 * target.h (deprecated_child_ops): Delete declaration.
11005 * target.c (deprecated_child_ops): Delete definition.
11007 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11009 * Makefile.in (hpux-thread.o): Delete rule.
11010 * configure.ac: Don't check for HPUX DCE threads support.
11011 * configure, config.in: Regenerate.
11012 * hppa-hpux-nat.c (child_suppress_run): Delete.
11013 (hppa_hpux_child_can_run): Delete.
11014 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11015 * hpux-thread.c: Delete.
11017 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11019 * hpux-thread.c (hpux_pid_to_str): Delete.
11021 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11023 * ada-valprint.c (ada_emit_char): Remove strange code.
11024 Check that c is <= UCHAR_MAX before passing it to isascii.
11025 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11027 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11029 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11030 to the case where instream is stdin.
11032 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11034 * ia64-tdep.h (struct regcache): Forward declare.
11035 (struct ia64_infcall_ops): New struct type.
11036 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11038 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11039 Renames ia64_find_global_pointer.
11040 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11041 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11042 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11044 (ia64_infcall_ops): New static global constant.
11045 (ia64_gdbarch_init): Set tdep->infcall_ops.
11046 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11047 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11048 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11049 (ia64_hpux_dummy_code): New static global constant.
11050 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11051 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11052 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11054 (ia64_hpux_infcall_ops): New static global constant.
11055 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11056 for inferior function calls to work properly on ia64-hpux.
11058 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11060 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11061 * ia64-tdep.h (struct frame_info): forward declaration.
11062 (struct gdbarch_tdep): Add field size_of_register_frame.
11063 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11064 to determine the size of the register frame.
11065 (ia64_size_of_register_frame): New function.
11066 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11067 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11068 (IA64_HPUX_UREG_REASON): New macro.
11069 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11071 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11072 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11073 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11076 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11078 Add support for ia64-hpux.
11079 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11080 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11082 * configure.host: Add handling for ia64-hpux hosts. Add associated
11084 * configure.tgt: Add handling for ia64-hpux targets.
11085 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11086 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11087 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11089 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11091 [ttrace] Compute thread list immediately after attach.
11092 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11094 (inf_ttrace_attach): Use it.
11096 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11098 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11099 if we could not determine the frame's function address. Instead,
11100 use the frame's PC, and then continue.
11102 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11104 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11105 not already defined.
11107 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11109 * ia64-tdep.c (ia64_struct_type_p): New function.
11110 (ia64_extract_return_value): Handle integral values that are
11111 less than 8 bytes long.
11112 (ia64_push_dummy_call): Likewise.
11114 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11116 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11117 floatformat_ia64_ext.
11118 (floatformat_ia64_ext_big): New static const.
11119 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11121 2011-01-12 Tom Tromey <tromey@redhat.com>
11123 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11125 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11126 (mi_cmd_thread_list_ids): Likewise.
11127 (mi_cmd_data_list_changed_registers): Likewise.
11128 (mi_cmd_data_list_register_values): Likewise.
11129 (mi_cmd_data_write_register_values): Likewise.
11130 (mi_cmd_data_evaluate_expression): Likewise.
11131 (mi_cmd_data_read_memory): Likewise.
11132 (mi_cmd_data_read_memory_bytes): Likewise.
11133 (mi_cmd_data_write_memory): Likewise.
11134 (mi_cmd_enable_timings): Likewise.
11135 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11136 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11137 (mi_cmd_var_delete): Likewise.
11138 (mi_cmd_var_set_format): Likewise.
11139 (mi_cmd_var_show_format): Likewise.
11140 (mi_cmd_var_info_num_children): Likewise.
11141 (mi_cmd_var_list_children): Likewise.
11142 (mi_cmd_var_info_type): Likewise.
11143 (mi_cmd_var_info_expression): Likewise.
11144 (mi_cmd_var_show_attributes): Likewise.
11145 (mi_cmd_var_assign): Likewise.
11146 (mi_cmd_var_update): Likewise.
11147 (mi_cmd_enable_pretty_printing): Likewise.
11148 (mi_cmd_var_set_update_range): Likewise.
11149 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11151 (mi_cmd_target_file_put): Likewise.
11152 (mi_cmd_target_file_delete): Likewise.
11153 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11155 (mi_cmd_stack_info_depth): Likewise.
11156 (mi_cmd_stack_list_locals): Likewise.
11157 (mi_cmd_stack_list_args): Likewise.
11158 (mi_cmd_stack_select_frame): Likewise.
11159 (mi_cmd_stack_select_frame): Likewise.
11160 (mi_cmd_stack_info_frame): Likewise.
11161 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11163 (mi_cmd_file_list_exec_source_files): Likewise.
11164 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11165 (mi_cmd_env_cd): Likewise.
11166 (mi_cmd_env_path): Likewise.
11167 (mi_cmd_env_dir): Likewise.
11168 (mi_cmd_inferior_tty_show): Likewise.
11169 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11170 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11171 (mi_cmd_break_watch): Likewise.
11173 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11175 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11176 (ppc_linux_insert_hw_breakpoint): Likewise.
11177 (ppc_linux_remove_hw_breakpoint): Likewise.
11178 (ppc_linux_insert_watchpoint): Likewise.
11180 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11181 Jan Kratochvil <jan.kratochvil@redhat.com>
11183 PR fortran/11104 and DWARF unbound arrays detection.
11184 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11185 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11186 unspecified upper bound.
11187 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11188 variables array_size_array, tmp_type and offset_item. New variable
11189 array. Remove call to f77_get_upperbound. New variables array_type
11190 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11191 the final call to deprecated_set_value_type.
11193 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11195 Make value allocations more lazy.
11196 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11197 instead of allocate_value and set_value_lazy when possible.
11198 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11199 instead of allocate_value and set_value_lazy.
11200 * findvar.c (value_of_register_lazy): Likewise.
11201 (read_var_value): Remove V preallocation, call just check_typedef in
11202 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11203 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11204 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11205 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11206 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11207 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11208 the end, remove set_value_lazy there.
11209 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11210 instead of allocate_value and set_value_lazy when possible.
11211 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11212 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11213 of allocate_value and set_value_lazy.
11214 (value_from_contents_and_address): Use allocate_value_lazy instead of
11215 allocate_value and set_value_lazy when possible.
11217 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11219 * disasm.c (dump_insns): Support dumping opcodes for MI.
11220 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11221 dumping of instruction opcodes.
11223 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11225 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11228 2011-01-11 Tom Tromey <tromey@redhat.com>
11230 * thread.c (do_captured_thread_select): Emit newline before
11233 2011-01-11 Michael Snyder <msnyder@vmware.com>
11235 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11236 * score-tdep.c: Ditto.
11237 * score-tdep.h: Ditto.
11238 * ser-base.c: Ditto.
11239 * ser-go32.c: Ditto.
11242 * ser-mingw.c: Ditto.
11243 * ser-pipe.c: Ditto.
11244 * ser-tcp.c: Ditto.
11245 * ser-unix.c: Ditto.
11246 * sh64-tdep.c: Ditto.
11247 * shnbsd-nat.c: Ditto.
11248 * sh-tdep.c: Ditto.
11249 * sh-tdep.h: Ditto.
11251 * solib-darwin.c: Ditto.
11252 * solib-frv.c: Ditto.
11254 * solib-irix.c: Ditto.
11255 * solib-osf.c: Ditto.
11256 * solib-pa64.c: Ditto.
11257 * solib-som.c: Ditto.
11258 * solib-spu.c: Ditto.
11259 * solib-sunos.c: Ditto.
11260 * solib-svr4.c: Ditto.
11262 * sol-thread.c: Ditto.
11263 * somread.c: Ditto.
11266 * sparc64-linux-tdep.c: Ditto.
11267 * sparc64-tdep.c: Ditto.
11268 * sparc-linux-nat.c: Ditto.
11269 * sparc-linux-tdep.c: Ditto.
11270 * sparc-sol2-nat.c: Ditto.
11271 * sparc-sol2-tdep.c: Ditto.
11272 * sparc-tdep.c: Ditto.
11273 * sparc-tdep.h: Ditto.
11274 * spu-tdep.c: Ditto.
11275 * stabsread.c: Ditto.
11276 * stabsread.h: Ditto.
11278 * symfile.c: Ditto.
11279 * symfile.h: Ditto.
11280 * symmisc.c: Ditto.
11284 * target-descriptions.c: Ditto.
11285 * target-descriptions.h: Ditto.
11287 * target-memory.c: Ditto.
11288 * terminal.h: Ditto.
11291 * tracepoint.c: Ditto.
11292 * tracepoint.h: Ditto.
11293 * trad-frame.h: Ditto.
11294 * typeprint.c: Ditto.
11296 2011-01-11 Michael Snyder <msnyder@vmware.com>
11298 * ui-file.c: Comment cleanup, mostly periods and spaces.
11299 * ui-file.h: Ditto.
11303 * v850-tdep.c: Ditto.
11304 * valarith.c: Ditto.
11306 * valprint.c: Ditto.
11307 * valprint.h: Ditto.
11312 * vax-tdep.c: Ditto.
11315 * version.h: Ditto.
11316 * windows-nat.c: Ditto.
11317 * windows-tdep.c: Ditto.
11318 * xcoffread.c: Ditto.
11319 * xcoffsolib.c: Ditto.
11320 * xml-support.c: Ditto.
11321 * xstormy16-tdep.c: Ditto.
11322 * xtensa-tdep.c: Ditto.
11323 * xtensa-tdep.h: Ditto.
11325 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11327 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11328 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11330 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11331 Thiago Jung Bauermann <bauerman@br.ibm.com>
11333 Implement support for PowerPC BookE ranged watchpoints.
11335 (struct breakpoint_ops) <resources_needed>: New method.
11336 Initialize to NULL in all existing breakpoint_ops instances.
11337 (struct breakpoint) <exact>: New field.
11338 (target_exact_watchpoints): Declare external global.
11339 * breakpoint.c (target_exact_watchpoints): New global flag.
11340 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11341 b->enable_state to bp_enabled before calling
11342 hw_watchpoint_used_count.
11343 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11344 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11346 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11347 if the watchpoint is exact.
11348 (resources_needed_watchpoint): New function.
11349 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11350 (watch_command_1): Set b->exact if the user asked for an exact
11351 watchpoint and one can be set.
11352 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11353 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11354 the user asks for an exact watchpoint and one can be set. Return
11355 number of needed debug registers to watch the expression.
11356 * gdbtypes.c (is_scalar_type): New function, based on
11357 valprint.c:scalar_type_p.
11358 (is_scalar_type_recursive): New function.
11359 * gdbtypes.h (is_scalar_type_recursive): Declare.
11360 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11361 handle regions when ranged watchpoints are available.
11362 (create_watchpoint_request): New function.
11363 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11364 create_watchpoint_request.
11365 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11366 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11367 `set powerpc' and `show powerpc' commands.
11368 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11369 Mention documentation comment in the target macro.
11370 (target_region_ok_for_hw_watchpoint): Document return value.
11372 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11374 * breakpoint.c (update_watchpoint): Decide on using a software or
11375 hardware watchpoint after the bp_locations are created.
11377 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11379 Convert hardware watchpoints to use breakpoint_ops.
11380 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11381 <insert_location>: ... this. Return int instead of void.
11382 Accept pointer to struct bp_location instead of pointer to
11383 struct breakpoint. Adapt all implementations.
11384 (breakpoint_ops) <remove>: Rename to...
11385 <remove_location>: ... this. Accept pointer to struct bp_location
11386 instead of pointer to struct breakpoint. Adapt all implementations.
11387 * breakpoint.c (insert_catchpoint): Delete function.
11388 (insert_bp_location): Call the watchpoint or catchpoint's
11389 breakpoint_ops.insert method.
11390 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11391 breakpoint_ops.remove method.
11392 (insert_watchpoint, remove_watchpoint): New functions.
11393 (watchpoint_breakpoint_ops): New structure.
11394 (watch_command_1): Initialize the OPS field.
11395 * inf-child.c (inf_child_insert_fork_catchpoint)
11396 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11397 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11398 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11400 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11401 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11402 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11403 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11404 * target.c (update_current_target): Change default implementation of
11405 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11406 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11407 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11408 to_set_syscall_catchpoint to return_one.
11409 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11410 (debug_to_insert_exec_catchpoint): Report return value.
11411 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11412 (to_insert_exec_catchpoint): Change declaration to return int instead
11415 2011-01-11 Michael Snyder <msnyder@vmware.com>
11417 * arm-tdep.c: Internationalization.
11419 * charset.c: Ditto.
11420 * fork-child.c: Ditto.
11421 * nto-procfs.c: Ditto.
11422 * ppc-sysv-tdep.c: Ditto.
11424 * remote-mips.c: Ditto.
11426 * rs6000-nat.c: Ditto.
11427 * rs6000-tdep.c: Ditto.
11431 * xml-support.c: Ditto.
11432 * mi/mi-cmd-break.c: Ditto.
11433 * mi/mi-cmd-var.c: Ditto.
11434 * mi/mi-interp.c: Ditto.
11435 * mi/mi-main.c: Ditto.
11437 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11439 * remote-sim.c (gdbsim_store_register): Update API to
11440 sim_store_register to check more error conditions.
11442 2011-01-10 Michael Snyder <msnyder@vmware.com>
11444 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11445 * nto-tdep.c: Ditto.
11446 * nto-tdep.h: Ditto.
11447 * objc-exp.y: Ditto.
11448 * objc-lang.c: Ditto.
11449 * objfiles.c: Ditto.
11450 * objfiles.h: Ditto.
11451 * observer.c: Ditto.
11452 * opencl-lang.c: Ditto.
11455 * parser-defs.h: Ditto.
11458 * posix-hdep.c: Ditto.
11459 * ppcbug-rom.c: Ditto.
11460 * ppc-linux-nat.c: Ditto.
11461 * ppc-linux-tdep.c: Ditto.
11462 * ppc-linux-tdep.h: Ditto.
11463 * ppcnbsd-tdep.c: Ditto.
11464 * ppcobsd-tdep.c: Ditto.
11465 * ppcobsd-tdep.h: Ditto.
11466 * ppc-sysv-tdep.c: Ditto.
11467 * ppc-tdep.h: Ditto.
11468 * printcmd.c: Ditto.
11469 * proc-abi.c: Ditto.
11470 * proc-flags.c: Ditto.
11472 * proc-utils.h: Ditto.
11473 * progspace.h: Ditto.
11474 * prologue-value.c: Ditto.
11475 * prologue-value.h: Ditto.
11476 * psympriv.h: Ditto.
11477 * psymtab.c: Ditto.
11478 * p-typeprint.c: Ditto.
11479 * p-valprint.c: Ditto.
11480 * ravenscar-sparc-thread.c: Ditto.
11481 * ravenscar-thread.c: Ditto.
11482 * ravenscar-thread.h: Ditto.
11484 * regcache.c: Ditto.
11485 * regcache.h: Ditto.
11487 * remote-fileio.c: Ditto.
11488 * remote-fileio.h: Ditto.
11490 * remote-m32r-sdi.c: Ditto.
11491 * remote-mips.c: Ditto.
11492 * remote-sim.c: Ditto.
11493 * rs6000-aix-tdep.c: Ditto.
11494 * rs6000-nat.c: Ditto.
11495 * rs6000-tdep.c: Ditto.
11497 2011-01-10 Michael Snyder <msnyder@vmware.com>
11499 * charset.c (validate): Internationalization.
11500 * coffread.c (read_one_sym): Ditto.
11501 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11502 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11503 * inflow.c (new_tty): Ditto.
11504 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11505 * m32c-tdep.c (m32c_return_value): Ditto.
11506 * mep-tdep.c (mep_store_return_value): Ditto.
11507 * score-tdep.c (score7_fetch_insn): Ditto.
11508 * ser-mingw.c (pipe_windows_open): Ditto.
11509 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11510 * spu-tdep.c (spu_register_type): Ditto.
11511 * tracepoint.c (trace_find_command): Ditto.
11512 * valarith.c (value_pos): Ditto.
11514 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11516 * ada-valprint.c (printstr): Minor comment reformatting.
11518 2011-01-08 Michael Snyder <msnyder@vmware.com>
11520 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11523 2011-01-08 Michael Snyder <msnyder@vmware.com>
11525 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11526 * hppa-hpux-tdep.c: Ditto.
11527 * hppa-linux-nat.c: Ditto.
11528 * hppa-linux-tdep.c: Ditto.
11529 * hppanbsd-tdep.c: Ditto.
11530 * hppa-tdep.c: Ditto.
11531 * hppa-tdep.h: Ditto.
11532 * hpux-thread.c: Ditto.
11533 * i386-cygwin-tdep.c: Ditto.
11534 * i386-darwin-nat.c: Ditto.
11535 * i386gnu-nat.c: Ditto.
11536 * i386-linux-nat.c: Ditto.
11537 * i386-linux-tdep.c: Ditto.
11538 * i386-nat.c: Ditto.
11539 * i386-nat.h: Ditto.
11540 * i386nbsd-tdep.c: Ditto.
11541 * i386-sol2-nat.c: Ditto.
11542 * i386-stub.c: Ditto.
11543 * i386-tdep.c: Ditto.
11544 * i386-tdep.h: Ditto.
11545 * i387-tdep.c: Ditto.
11546 * ia64-linux-nat.c: Ditto.
11547 * ia64-linux-tdep.c: Ditto.
11548 * ia64-tdep.c: Ditto.
11549 * infcall.c: Ditto.
11550 * infcall.h: Ditto.
11552 * inferior.c: Ditto.
11553 * inferior.h: Ditto.
11554 * infloop.c: Ditto.
11557 * interps.c: Ditto.
11558 * interps.h: Ditto.
11559 * iq2000-tdep.c: Ditto.
11560 * irix5-nat.c: Ditto.
11564 * jv-lang.c: Ditto.
11565 * jv-lang.h: Ditto.
11566 * jv-typeprint.c: Ditto.
11567 * jv-valprint.c: Ditto.
11568 * language.c: Ditto.
11569 * language.h: Ditto.
11570 * linespec.c: Ditto.
11571 * linux-fork.c: Ditto.
11572 * linux-nat.c: Ditto.
11573 * linux-thread-db.c: Ditto.
11574 * lm32-tdep.c: Ditto.
11576 2011-01-08 Michael Snyder <msnyder@vmware.com>
11578 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11579 * m2-lang.c: Ditto.
11580 * m2-typeprint.c: Ditto.
11581 * m2-valprint.c: Ditto.
11582 * m32c-tdep.c: Ditto.
11583 * m32r-linux-nat.c: Ditto.
11584 * m32r-rom.c: Ditto.
11585 * m32r-tdep.c: Ditto.
11586 * m32r-tdep.h: Ditto.
11587 * m68hc11-tdep.c: Ditto.
11588 * m58klinux-nat.c: Ditto.
11589 * m68k-tdep.c: Ditto.
11590 * m88k-tdep.c: Ditto.
11591 * m88k-tdep.h: Ditto.
11592 * machoread.c: Ditto.
11593 * macrocmd.c: Ditto.
11594 * macroexp.c: Ditto.
11595 * macrotab.c: Ditto.
11598 * mdebugread.c: Ditto.
11599 * mdebugread.h: Ditto.
11600 * memattr.c: Ditto.
11601 * memattr.h: Ditto.
11602 * memory-map.h: Ditto.
11603 * mep-tdep.c: Ditto.
11604 * microblaze-rom.c: Ditto.
11605 * microblaze-tdep.c: Ditto.
11606 * minsyms.c: Ditto.
11607 * mips-irix-tdep.c: Ditto.
11608 * mips-linux-nat.c: Ditto.
11609 * mips-linux-tdep.c: Ditto.
11610 * mips-linux-tdep.h: Ditto.
11611 * mipsnbsd-nat.c: Ditto.
11612 * mipsnbsd-tdep.c: Ditto.
11613 * mipsread.c: Ditto.
11614 * mips-tdep.c: Ditto.
11615 * mips-tdep.h: Ditto.
11616 * mn10300-linux-tdep.c: Ditto.
11617 * mn10300-tdep.c: Ditto.
11618 * mn10300-tdep.h: Ditto.
11619 * monitor.c: Ditto.
11620 * monitor.h: Ditto.
11621 * moxie-tdep.c: Ditto.
11622 * moxie-tdep.h: Ditto.
11623 * mt-tdep.c: Ditto.
11625 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11627 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11629 2011-01-08 Robert Millan <rmh@gnu.org>
11631 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11633 2011-01-07 Michael Snyder <msnyder@vmware.com>
11635 * charset.c (_initialize_charset): Fix typo in string.
11637 2011-01-07 Michael Snyder <msnyder@vmware.com>
11639 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11641 * tui/tui-layout.c (tui_set_layout_for_display_command):
11642 Split line so that operator goes to beginning of line.
11643 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11644 assignment out of if statement.
11646 2011-01-07 Michael Snyder <msnyder@vmware.com>
11648 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11649 * ada-lang.h: Ditto.
11650 * ada-tasks.c: Ditto.
11651 * ada-valprint.c: Ditto.
11652 * aix-threads.c: Ditto.
11653 * alpha-linux-nat.c: Ditto.
11654 * alpha-linux-tdep.c: Ditto.
11655 * alpha-mdebug-tdep.c: Ditto.
11656 * alpha-nat.c: Ditto.
11657 * alpha-osf1-tdep.c: Ditto.
11658 * alpha-tdep.c: Ditto.
11659 * alphabsd-nat.c: Ditto.
11660 * alphabsd-tdep.c: Ditto.
11661 * amd64-darwin-tdep.c: Ditto.
11662 * amd64-linux-nat.c: Ditto.
11663 * amd64-linux-tdep.c: Ditto.
11664 * amd64-sol2-tdep.c: Ditto.
11665 * amd64-tdep.c: Ditto.
11666 * amd64-fbsd-tdep.c: Ditto.
11667 * amd64-nbsd-tdep.c: Ditto.
11668 * amd64-obsd-tdep.c: Ditto.
11669 * amd64-linux-nat.c: Ditto.
11670 * amd64-linux-tdep.c: Ditto.
11671 * arm-tdep.c: Ditto.
11672 * arm-tdep.h: Ditto.
11673 * armnbsd-nat.c: Ditto.
11674 * avr-tdep.c: Ditto.
11675 * bfin-tdep.c: Ditto.
11676 * bsd-kvm.c: Ditto.
11677 * c-typeprintc: Ditto.
11678 * c-valprint.c: Ditto.
11679 * coff-pe-read.h: Ditto.
11680 * coffreead.c: Ditto.
11681 * cris-tdep.c: Ditto.
11683 * darwin-nat-info.c: Ditto.
11684 * darwin-nat.c: Ditto.
11685 * dbug-rom.c: Ditto.
11686 * dbxread.c: Ditto.
11689 * dec-thread.c: Ditto.
11691 * demangle.c: Ditto.
11692 * dicos-tdep.c: Ditto.
11693 * dictionary.c: Ditto.
11694 * dictionary.h: Ditto.
11695 * dink32-rom.c: Ditto.
11697 * doublest.c: Ditto.
11699 * dummy-frame.c: Ditto.
11700 * dwarf2-frame.c: Ditto.
11701 * dwarf2expr.c: Ditto.
11702 * dwarf2loc.c: Ditto.
11703 * dwarf2read.c: Ditto.
11704 * elfread.c: Ditto.
11705 * environ.c: Ditto.
11707 * event-top.h: Ditto.
11708 * exceptions.c: Ditto.
11709 * exceptions.h: Ditto.
11711 * expprint.c: Ditto.
11712 * expression.h: Ditto.
11716 * f-typeprint.c: Ditto.
11717 * f-valprint.c: Ditto.
11718 * fbsd-nat.c: Ditto.
11719 * findvar.c: Ditto.
11720 * fork-child.c: Ditto.
11723 * frv-linux-tdep.c: Ditto.
11724 * frv-tdep.c: Ditto.
11726 * gdb-stabs.h: Ditto.
11727 * gdb_assert.h: Ditto.
11728 * gdb_string.h: Ditto.
11729 * gdb_thread_db.h: Ditto.
11730 * gdb_wait.h: Ditto.
11731 * gdbarch.sh: Ditto.
11732 * gdbcore.h: Ditto.
11733 * gdbthread.h: Ditto.
11734 * gdbtypes.c: Ditto.
11735 * gdbtypes.h: Ditto.
11736 * gnu-nat.c: Ditto.
11737 * gnu-nat.h: Ditto.
11738 * gnu-v2-abi.c: Ditto.
11739 * gnu-v3-abi.c: Ditto.
11740 * go32-nat.c: Ditto.
11741 * gdbarch.c: Regenerate.
11742 * gdbarch.h: Regenerate.
11744 2011-01-07 Michael Snyder <msnyder@vmware.com>
11746 * ax-gdb.c: Adjust some long output strings.
11747 * breakpoint.c: Ditto.
11748 * charset.c: Ditto.
11750 * infcall.c: Ditto.
11752 * linux-nat.c: Ditto.
11753 * solib-pa64.c: Ditto.
11754 * solib-som.c: Ditto.
11756 2011-01-06 Tom Tromey <tromey@redhat.com>
11760 * python/python.c (GdbMethods): Add "newest_frame" method.
11761 * python/python-internal.h (gdbpy_newest_frame): Declare.
11762 * python/py-frame.c (gdbpy_newest_frame): New function.
11764 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11766 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11767 * jit.c (jit_debug): New variable.
11768 (show_jit_debug): New function.
11769 (struct target_buffer): Use ULONGEST.
11770 (bfd_open_from_target_memory): Likewise.
11771 (jit_register_code, jit_inferior_init): Add debug output.
11772 (_initialize_jit): Register "debug jit" command.
11774 2011-01-06 Tom Tromey <tromey@redhat.com>
11776 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11777 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11780 2011-01-06 Tom Tromey <tromey@redhat.com>
11782 * python/py-frame.c (frapy_block): Use get_frame_block.
11784 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11786 Do not stop on SIGPRIO signals by default
11787 * infrun.c (_initialize_infrun): Unset signal_stop and
11788 signal_print for TARGET_SIGNAL_PRIO.
11790 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11792 * ada-tasks.c: Fix style violation in comment.
11794 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11796 * linespec.c (decode_compound, find_method): Remove trailing \n
11797 at end of error string.
11798 * solib-irix.c (irix_current_sos): Likewise.
11799 * varobj.c (uninstall_variable): Likewise.
11801 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11803 * copyright.py: New script.
11804 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11805 Launch emacs without exec'ing. Call copyright.py afterwards.
11807 2011-01-05 Michael Snyder <msnyder@vmware.com>
11809 * addrmap.c: Shorten lines of >= 80 columns.
11810 * arch-utils.c: Ditto.
11811 * arch-utils.h: Ditto.
11813 * ax-general.c: Ditto.
11815 * blockframe.c: Ditto.
11816 * breakpoint.c: Ditto.
11817 * buildsym.c: Ditto.
11819 * c-typeprint.c: Ditto.
11820 * charset.c: Ditto.
11821 * coffread.c: Ditto.
11822 * command.h: Ditto.
11823 * corelow.c: Ditto.
11825 * cp-namespace.c: Ditto.
11826 * cp-support.c: Ditto.
11827 * dbug-rom.c: Ditto.
11828 * dbxread.c: Ditto.
11832 * dictionary.c: Ditto.
11834 * doublest.c: Ditto.
11835 * dwarf2-frame.c: Ditto.
11836 * dwarf2expr.c: Ditto.
11837 * dwarf2loc.c: Ditto.
11838 * dwarf2read.c: Ditto.
11839 * elfread.c: Ditto.
11841 * event-loop.c: Ditto.
11842 * event-loop.h: Ditto.
11843 * exceptions.h: Ditto.
11845 * expprint.c: Ditto.
11846 * expression.h: Ditto.
11848 * f-valprint.c: Ditto.
11849 * findcmd.c: Ditto.
11850 * frame-base.c: Ditto.
11851 * frame-unwind.c: Ditto.
11852 * frame-unwind.h: Ditto.
11856 * gdb-stabs.h: Ditto.
11857 * gdb_assert.h: Ditto.
11858 * gdb_dirent.h: Ditto.
11859 * gdb_obstack.h: Ditto.
11860 * gdbcore.h: Ditto.
11861 * gdbtypes.c: Ditto.
11862 * gdbtypes.h: Ditto.
11863 * inf-ttrace.c: Ditto.
11864 * infcall.c: Ditto.
11868 * inline-frame.h: Ditto.
11869 * language.c: Ditto.
11870 * language.h: Ditto.
11871 * libunwind-frame.c: Ditto.
11872 * libunwind-frame.h: Ditto.
11873 * linespec.c: Ditto.
11874 * linux-nat.c: Ditto.
11875 * linux-nat.h: Ditto.
11876 * linux-thread-db.c: Ditto.
11877 * machoread.c: Ditto.
11878 * macroexp.c: Ditto.
11879 * macrotab.c: Ditto.
11882 * mdebugread.c: Ditto.
11883 * memattr.c: Ditto.
11884 * minsyms.c: Ditto.
11885 * monitor.c: Ditto.
11886 * monitor.h: Ditto.
11887 * objfiles.c: Ditto.
11888 * objfiles.h: Ditto.
11890 * p-typeprint.c: Ditto.
11891 * p-valprint.c: Ditto.
11893 * printcmd.c: Ditto.
11894 * proc-events.c: Ditto.
11896 * progspace.c: Ditto.
11897 * progspace.h: Ditto.
11898 * psympriv.h: Ditto.
11899 * psymtab.c: Ditto.
11901 * regcache.c: Ditto.
11902 * regcache.h: Ditto.
11903 * remote-fileio.c: Ditto.
11905 * ser-mingw.c: Ditto.
11906 * ser-tcp.c: Ditto.
11907 * ser-unix.c: Ditto.
11910 * solib-frv.c: Ditto.
11911 * solib-irix.c: Ditto.
11912 * solib-osf.c: Ditto.
11913 * solib-pa64.c: Ditto.
11914 * solib-som.c: Ditto.
11915 * solib-sunos.c: Ditto.
11916 * solib-svr4.c: Ditto.
11917 * solib-target.c: Ditto.
11919 * somread.c: Ditto.
11921 * stabsread.c: Ditto.
11922 * stabsread.c: Ditto.
11925 * symfile-mem.c: Ditto.
11926 * symfile.c: Ditto.
11927 * symfile.h: Ditto.
11928 * symmisc.c: Ditto.
11931 * target-descriptions.c: Ditto.
11932 * target-memory.c: Ditto.
11935 * terminal.h: Ditto.
11938 * tracepoint.c: Ditto.
11939 * tracepoint.h: Ditto.
11940 * ui-file.c: Ditto.
11941 * ui-file.h: Ditto.
11943 * user-regs.c: Ditto.
11944 * user-regs.h: Ditto.
11946 * valarith.c: Ditto.
11948 * valprint.c: Ditto.
11949 * valprint.h: Ditto.
11954 * xcoffread.c: Ditto.
11955 * xcoffsolib.c: Ditto.
11956 * xcoffsolib.h: Ditto.
11957 * xml-syscall.c: Ditto.
11958 * xml-tdesc.c: Ditto.
11960 2011-01-05 Michael Snyder <msnyder@vmware.com>
11962 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11963 * cli/cli-decode.c: Ditto.
11964 * cli/cli-dump.c: Ditto.
11965 * cli/cli-logging.c: Ditto.
11966 * cli/cli-script.c: Ditto.
11967 * cli/cli-setshow.c: Ditto.
11968 * common/signals.c: Ditto.
11969 * mi/mi-cmd-break.c: Ditto.
11970 * mi/mi-cmd-disas.c: Ditto.
11971 * mi/mi-cmd-stack.c: Ditto.
11972 * mi/mi-cmd-var.c: Ditto.
11973 * mi/mi-cmds.c: Ditto.
11974 * mi/mi-common.h: Ditto.
11975 * mi/mi-console.c: Ditto.
11976 * mi/mi-interp.c: Ditto.
11977 * mi/mi-main.c: Ditto.
11978 * osf-share/cma_attr.c: Ditto.
11979 * osf-share/cma_deb_core.h: Ditto.
11980 * osf-share/cma_debug_client.h: Ditto.
11981 * osf-share/cma_handle.h: Ditto.
11982 * osf-share/cma_mutex.h: Ditto.
11983 * osf-share/cma_stack_int.h: Ditto.
11984 * osf-share/cma_tcb_defs.h: Ditto.
11985 * python/py-auto-load.c: Ditto.
11986 * python/py-breakpoint.c: Ditto.
11987 * python/py-cmd.c: Ditto.
11988 * python/py-frame.c: Ditto.
11989 * python/py-objfile.c: Ditto.
11990 * python/py-param.c: Ditto.
11991 * python/py-progspace.c: Ditto.
11992 * python/py-symbol.c: Ditto.
11993 * python/py-value.c: Ditto.
11994 * python/python-internal.h: Ditto.
11995 * python/python.c: Ditto.
11996 * tui/tui-data.c: Ditto.
11997 * tui/tui-disasm.c: Ditto.
11998 * tui/tui-hooks.c: Ditto.
11999 * tui/tui-io.c: Ditto.
12000 * tui/tui-layout.c: Ditto.
12001 * tui/tui-regs.c: Ditto.
12002 * tui/tui-source.c: Ditto.
12003 * tui/tui-stack.c: Ditto.
12004 * tui/tui-win.c: Ditto.
12005 * tui/tui-windata.c: Ditto.
12006 * tui/tui-winsource.c: Ditto.
12008 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12010 * configure.ac, gdb.1: Copyright year update.
12012 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12014 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12015 this_pc_in_block, morestack_msym and morestack_name. Check for
12016 "__morestack" minimal symbol there.
12018 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12020 * symfile.c (find_sym_fns): Add call to dont_repeat.
12022 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12024 Copyright year update in most files (performed by copyright.sh).
12026 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12028 * top.c (print_gdb_version): Update copyright year in version output.
12030 For older changes see ChangeLog-2010.
12036 version-control: never