1 2011-12-10 Doug Evans <dje@google.com>
3 * python/py-auto-load.c (source_section_scripts): Call xfree
6 2011-12-10 Hui Zhu <teawater@gmail.com>
7 Yao Qi <yao@codesourcery.com>
9 * tracepoint.c (start_tracing): Clear `inserted' flag.
11 2011-12-10 Hui Zhu <teawater@gmail.com>
13 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
15 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
17 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
20 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
22 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
23 `marker' variables to `sal2' and `tpmarker' respectively
26 2011-12-09 Andrew Pinski <apinski@cavium.com>
28 * linespec.c (hash_address_entry): Use iterative_hash_object on each
29 field rather than the struct itself.
31 2011-12-09 Tom Tromey <tromey@redhat.com>
33 * breakpoint.c (compare_breakpoints): New function.
34 (clear_command): Remove duplicate breakpoints. Properly clean
37 2011-12-08 Maciej W. Rozycki <macro@mips.com>
38 Maciej W. Rozycki <macro@codesourcery.com>
40 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
41 address chunks retrieved from decoded lui/addiu pairs.
43 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
45 * mips-tdep.c (extended_offset): Correct calculation.
46 (unpack_mips16): Correct bitfield positions used for extraction
47 of the immediate argument; fix sign-extension of same.
48 (extended_mips16_next_pc): Correct B instruction's offset
49 calculation. Correct register decoding of the BEQZ and BNEZ
50 as well as jump-register instructions. Handle compact jumps.
52 2011-12-08 Tom Tromey <tromey@redhat.com>
54 * objfiles.h (struct objfile): Remove obsolete comment.
55 * objfiles.c (build_objfile_section_table): Remove obsolete
58 2011-12-07 Stan Shebs <stan@codesourcery.com>
60 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
61 maintainer of the tic6x target.
63 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
65 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
66 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
67 (arm_deal_with_atomic_sequence_raw): Likewise.
68 (arm_deal_with_atomic_sequence): Likewise.
69 (arm_software_single_step): Call it.
70 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
72 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
74 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
76 * s390-tdep.h: Likewise.
78 2011-12-07 Tristan Gingold <gingold@adacore.com>
80 * machoread.c (macho_symtab_read): Do not consider N_OPT as
81 a debugging stab. Improve complaint message.
83 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
85 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
86 load adjustment if still within the prologue.
88 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
90 * mips-tdep.c (mips32_next_pc): Fix floating point condition
93 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
95 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
96 of BLTZ* and BGEZ* instructions.
98 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
100 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
101 performed to determine whether an address refers to standard
103 (mips16_next_pc): Use mips_pc_is_mips16 instead of
106 2011-12-06 Pedro Alves <pedro@codesourcery.com>
108 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
109 (breakpoint_xfer_memory): ... this. Change prototype. Handle
111 * breakpoint.h (breakpoint_restore_shadows): Delete.
112 (breakpoint_xfer_memory): Declare.
113 * mem-break.c (default_memory_insert_breakpoint)
114 (default_memory_remove_breakpoint): Use target_write_raw_memory.
115 (memory_xfer_partial): Rename to ...
116 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
118 (memory_xfer_partial): New.
119 (target_write_raw_memory): New.
120 * target.h (target_write_raw_memory): New.
122 2011-12-06 Doug Evans <dje@google.com>
124 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
126 2011-12-06 Joel Brobecker <brobecker@acacore.com>
128 * language.h (struct language_defn): Add new component
129 la_symbol_name_compare.
130 * symfile.h (struct quick_symbol_functions): Update the profile
131 of parameter "name_matcher" for the expand_symtabs_matching
132 method. Update the documentation accordingly.
133 * ada-lang.h (ada_name_for_lookup): Add declaration.
134 * ada-lang.c (ada_name_for_lookup): New function, extracted out
135 from ada_iterate_over_symbols.
136 (ada_iterate_over_symbols): Do not encode symbol name anymore.
137 (ada_expand_partial_symbol_name): Adjust profile.
138 (ada_language_defn): Add value for la_symbol_name_compare field.
139 * linespec.c: #include "ada-lang.h".
140 (iterate_name_matcher): Add language parameter. Replace call
141 to strcmp_iw by call to language->la_symbol_name_compare.
142 (decode_variable): Encode COPY if current language is Ada.
143 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
144 of name_matcher parameter. Adjust call to name_matcher.
145 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
146 (expand_partial_symbol_names): Update profile of parameter "fun".
147 * psymtab.h (expand_partial_symbol_names): Update profile of
149 * symtab.c (demangle_for_lookup): Update function documentation.
150 (search_symbols_name_matches): Add language parameter.
151 (expand_partial_symbol_name): Likewise.
152 * c-lang.c (c_language_defn, cplus_language_defn)
153 (asm_language_defn, minimal_language_defn): Add value for
154 la_symbol_name_compare field.
155 * d-lang.c (d_language_defn): Likewise.
156 * f-lang.c (f_language_defn): Ditto.
157 * jv-lang.c (java_language_defn): Ditto.
158 * m2-lang.c (m2_language_defn): Ditto.
159 * objc-lang.c (objc_language_defn): Ditto.
160 * opencl-lang.c (opencl_language_defn): Ditto.
161 * p-lang.c (pascal_language_defn): Ditto.
162 * language.c (unknown_language_defn, auto_language_defn)
163 (local_language_defn): Ditto.
165 2011-12-06 Tom Tromey <tromey@redhat.com>
167 * linespec.c (iterate_over_all_matching_symtabs): Use
168 LA_ITERATE_OVER_SYMBOLS.
169 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
170 (find_function_symbols, decode_variable): Remove Ada special
172 * language.h (struct language_defn) <la_iterate_over_symbols>: New
174 (LA_ITERATE_OVER_SYMBOLS): New macro.
175 * language.c (unknown_language_defn, auto_language_defn)
176 (local_language_defn): Update.
177 * c-lang.c (c_language_defn, cplus_language_defn)
178 (asm_language_defn, minimal_language_defn): Update.
179 * d-lang.c (d_language_defn): Update.
180 * f-lang.c (f_language_defn): Update.
181 * jv-lang.c (java_language_defn): Update.
182 * m2-lang.c (m2_language_defn): Update.
183 * objc-lang.c (objc_language_defn): Update.
184 * opencl-lang.c (opencl_language_defn): Update.
185 * p-lang.c (pascal_language_defn): Update.
186 * ada-lang.c (ada_iterate_over_symbols): New function.
187 (ada_language_defn): Update.
189 2011-12-06 Tom Tromey <tromey@redhat.com>
190 Joel Brobecker <brobecker@acacore.com>
192 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
193 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
194 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
195 PR shlibs/8929, PR shlibs/7393:
196 * python/py-type.c (compare_maybe_null_strings): Rename from
198 (check_types_equal): Update.
199 * utils.c (compare_strings): New function.
200 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
202 * tracepoint.c (scope_info): Update.
203 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
204 * symtab.h (iterate_over_minimal_symbols)
205 (iterate_over_some_symtabs, iterate_over_symtabs)
206 (find_pcs_for_symtab_line, iterate_over_symbols)
207 (demangle_for_lookup): Declare.
208 (expand_line_sal): Remove.
209 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
210 (lookup_symtab_callback): New functions.
211 (lookup_symtab): Rewrite.
212 (demangle_for_lookup): New function, extract from
213 lookup_symbol_in_language.
214 (lookup_symbol_in_language): Use it.
215 (iterate_over_symbols): New function.
216 (find_line_symtab): Update.
217 (find_pcs_for_symtab_line): New functions.
218 (find_line_common): Add 'start' argument.
219 (decode_line_spec): Update. Change argument to 'flags', change
221 (append_expanded_sal): Remove.
222 (append_exact_match_to_sals): Remove.
223 (expand_line_sal): Remove.
224 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
226 <map_symtabs_matching_filename>: New field.
227 * stack.c (func_command): Only look in the current program space.
228 Use DECODE_LINE_FUNFIRSTLINE.
229 * source.c (line_info): Set pspace on sal. Check program space in
230 the loop. Use DECODE_LINE_LIST_MODE.
231 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
232 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
233 * python/python.c (gdbpy_decode_line): Update.
234 * psymtab.c (partial_map_expand_apply): New function.
235 (partial_map_symtabs_matching_filename): Rename from
236 lookup_partial_symbol. Update arguments.
237 (lookup_symtab_via_partial_symtab): Remove.
238 (psym_functions): Update.
239 * objc-lang.h (parse_selector, parse_method): Don't declare.
241 * objc-lang.c (parse_selector, parse_method): Now static.
242 (find_methods): Change arguments. Fill in a vector of symbol
244 (uniquify_strings): New function.
245 (find_imps): Change arguments.
246 * minsyms.c (iterate_over_minimal_symbols): New function.
247 * linespec.h (enum decode_line_flags): New.
248 (struct linespec_sals): New.
249 (struct linespec_result) <canonical>: Remove.
250 <pre_expanded, addr_string, sals>: New fields.
251 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
252 (decode_line_full): Declare.
253 (decode_line_1): Update.
254 * linespec.c (struct address_entry, struct linespec_state, struct
255 collect_info): New types.
256 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
257 (eq_address_entry, maybe_add_address): New functions.
258 (total_number_of_methods): Remove.
259 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
261 (find_methods): Change arguments. Don't canonicalize input.
263 (add_matching_methods, add_constructors)
264 (build_canonical_line_spec): Remove.
265 (filter_results, convert_results_to_lsals): New functions.
266 (decode_line_2): Change arguments. Rewrite for new data
268 (decode_line_internal): Rename from decode_line_1. Change
269 arguments. Add cleanups. Update for new data structures.
270 (linespec_state_constructor, linespec_state_destructor)
271 (decode_line_full, decode_line_1): New functions.
272 (decode_indirect): Change arguments. Update.
273 (locate_first_half): Use skip_spaces.
274 (decode_objc): Change arguments. Update for new data structures.
276 (decode_compound): Change arguments. Add cleanups. Remove
277 fallback code, replace with error.
278 (struct decode_compound_collector): New type.
279 (collect_one_symbol): New function.
280 (lookup_prefix_sym): Change arguments. Update.
281 (compare_symbol_name, add_all_symbol_names_from_pspace)
282 (find_superclass_methods ): New functions.
283 (find_method): Rewrite.
284 (struct symtab_collector): New type.
285 (add_symtabs_to_list, collect_symtabs_from_filename): New
287 (symtabs_from_filename): Change API. Rename from
288 symtab_from_filename.
289 (collect_function_symbols): New function.
290 (find_function_symbols): Change API. Rename from
291 find_function_symbol. Rewrite.
292 (decode_all_digits): Change arguments. Rewrite.
293 (decode_dollar): Change arguments. Use decode_variable.
294 (decode_label): Change arguments. Rewrite.
295 (collect_symbols): New function.
296 (minsym_found): Change arguments. Rewrite.
297 (check_minsym, search_minsyms_for_name)
298 (add_matching_symbols_to_info): New function.
299 (decode_variable): Change arguments. Iterate over all symbols.
300 (symbol_found): Remove.
301 (symbol_to_sal): New function.
302 (init_linespec_result, destroy_linespec_result)
303 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
305 (decode_digits_list_mode, decode_digits_ordinary): New functions.
306 * dwarf2read.c (dw2_map_expand_apply): New function.
307 (dw2_map_symtabs_matching_filename): Rename from
308 dw2_lookup_symtab. Change arguments.
309 (dwarf2_gdb_index_functions): Update.
310 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
311 * defs.h (compare_strings): Declare.
312 * cli/cli-cmds.c (compare_strings): Move to utils.c.
313 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
315 (compare_symtabs, filter_sals): New functions.
316 * breakpoint.h (struct bp_location) <line_number, source_file>:
318 (struct breakpoint) <line_number, source_file>: Remove.
320 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
321 (momentary_breakpoint_from_master, add_location_to_breakpoint):
322 Update for changes to locations.
323 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
325 (create_breakpoint_sal): Add 'filter' argument.
326 (remove_sal, expand_line_sal_maybe): Remove.
327 (create_breakpoints_sal): Remove 'sals' argument. Handle
328 pre-expanded sals and the filter.
329 (parse_breakpoint_sals): Use decode_line_full.
330 (check_fast_tracepoint_sals): Use get_sal_arch.
331 (create_breakpoint): Create a linespec_sals. Update.
332 (break_range_command): Use decode_line_full. Update.
333 (until_break_command): Update.
334 (clear_command): Update match conditions for linespec.c changes.
335 Use DECODE_LINE_LIST_MODE.
336 (say_where): Update for changes to locations.
337 (bp_location_dtor): Free 'source_file'.
338 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
339 (update_static_tracepoint): Update for changes to locations.
340 (update_breakpoint_locations): Disable ranged breakpoint if too
341 many locations match. Update.
342 (addr_string_to_sals): Use decode_line_full. Resolve all sal
344 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
345 (decode_line_spec_1): Update. Change argument name to 'flags',
346 change interpretation.
347 * block.h (block_containing_function): Declare.
348 * block.c (block_containing_function): New function.
349 * skip.c (skip_function_command): Update.
350 (skip_re_set): Update.
351 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
352 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
355 2011-12-06 Tom Tromey <tromey@redhat.com>
357 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
358 breakpoint's pspace to be NULL.
359 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
360 * breakpoint.c (init_raw_breakpoint): Conditionally set
362 (init_breakpoint_sal): Don't set breakpoint's pspace.
363 (prepare_re_set_context): Conditionally switch program space.
364 (addr_string_to_sals): Check executing_startup on location's
367 2011-12-06 Tom Tromey <tromey@redhat.com>
369 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
370 * breakpoint.c (should_be_inserted): Explicitly check if program
371 space is executing startup.
372 (describe_other_breakpoints): Update.
373 (disable_breakpoints_before_startup): Change executing_startup
374 earlier. Remove loop.
375 (enable_breakpoints_after_startup): Likewise.
376 (init_breakpoint_sal): Don't use bp_startup_disabled.
377 (create_breakpoint): Don't use bp_startup_disabled.
378 (update_global_location_list): Use should_be_inserted.
379 (bkpt_re_set): Update.
381 2011-12-06 Tom Tromey <tromey@redhat.com>
383 * python/lib/gdb/command/pretty_printers.py
384 (InfoPrettyPrinter.invoke1): Remove extra double quote.
386 2011-12-06 Tom Tromey <tromey@redhat.com>
390 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
392 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
393 (S390_LAST_BREAK_REGNUM): Likewise.
394 (S390_SYSTEM_CALL_REGNUM): Likewise.
395 (S390_NUM_REGS): Update.
397 (s390_regmap_last_break): Add declaration.
398 (s390x_regmap_last_break): Likewise.
399 (s390_regmap_system_call): Likewise.
401 (tdesc_s390_linux32v1): Add declaration.
402 (tdesc_s390_linux32v2): Likewise.
403 (tdesc_s390_linux64v1): Likewise.
404 (tdesc_s390_linux64v2): Likewise.
405 (tdesc_s390x_linux64v1): Likewise.
406 (tdesc_s390x_linux64v2): Likewise.
408 * s390-tdep.c: Include new target description files
409 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
410 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
411 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
412 (s390_cannot_store_register): New function.
413 (s390_write_pc): Likewise.
414 (s390_dwarf_regmap): Add fields for new registers.
415 (s390_regmap_gregset): Likewise.
416 (s390x_regmap_gregset): Likewise.
417 (s390_regmap_fpregset): Likewise.
418 (s390_regmap_upper): Likewise.
419 (s390_regmap_last_break): New variable.
420 (s390x_regmap_last_break): Likewise.
421 (s390_regmap_system_call): Likewise.
422 (s390_last_break_regset): Likewise.
423 (s390x_last_break_regset): Likewise.
424 (s390_system_call_regset): Likewise.
425 (s390_upper_regset_sections): Rename to ...
426 (s390_linux64_regset_sections): ... this.
427 (s390_linux32_regset_sections): New variable.
428 (s390x_linux64_regset_sections): Likewise.
429 (s390_linux32v1_regset_sections): Likewise.
430 (s390_linux32v2_regset_sections): Likewise.
431 (s390_linux64v1_regset_sections): Likewise.
432 (s390_linux64v2_regset_sections): Likewise.
433 (s390x_linux64v1_regset_sections): Likewise.
434 (s390x_linux64v2_regset_sections): Likewise.
435 (s390_regset_from_core_section): Handle .reg-s390-last-break and
436 .reg-s390-system-call core file sections.
437 (s390_core_read_description): Check for presence of
438 .reg-s390-last-break and .reg-s390-system-call core file
439 sections and return appropriate target description.
440 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
441 "last_break" and "system_call" in target description. Install
442 appropriate gdbarch_core_regset_sections array.
443 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
444 (_initialize_s390_tdep): Initialize additional target descriptions.
446 * s390-nat.c: Include "elf/common.h".
447 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
448 (have_regset_last_break): New static variable.
449 (have_regset_system_call): Likewise.
450 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
451 (s390_native_collect): Likewise.
452 (fetch_regset, store_regset, check_regset): New functions.
453 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
454 and S390_SYSTEM_CALL_REGNUM.
455 (s390_linux_store_inferior_registers): Likewise.
456 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
457 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
459 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
460 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
461 (s390-linux32v1-expedite): Define.
462 (s390-linux32v2-expedite): Likewise.
463 (s390-linux64v1-expedite): Likewise.
464 (s390-linux64v2-expedite): Likewise.
465 (s390x-linux64v1-expedite): Likewise.
466 (s390x-linux64v2-expedite): Likewise.
468 * features/s390-linux32.xml: Add orig_r2 register.
469 * features/s390-linux64.xml: Likewise.
470 * features/s390x-linux64.xml: Likewise.
471 * features/s390-linux32v1.xml: New file.
472 * features/s390-linux32v2.xml: Likewise.
473 * features/s390-linux64v1.xml: Likewise.
474 * features/s390-linux64v2.xml: Likewise.
475 * features/s390x-linux64v1.xml: Likewise.
476 * features/s390x-linux64v2.xml: Likewise.
478 * features/s390-linux32.c: Regenerate.
479 * features/s390-linux64.c: Likewise.
480 * features/s390x-linux64.c: Likewise.
481 * features/s390-linux32v1.c: New generated file.
482 * features/s390-linux32v2.c: Likewise.
483 * features/s390-linux64v1.c: Likewise.
484 * features/s390-linux64v2.c: Likewise.
485 * features/s390x-linux64v1.c: Likewise.
486 * features/s390x-linux64v2.c: Likewise.
488 * regformats/s390-linux32.dat: Regenerate.
489 * regformats/s390-linux64.dat: Regenerate.
490 * regformats/s390x-linux64.dat: Regenerate.
491 * regformats/s390-linux32v1.dat: New generated file.
492 * regformats/s390-linux32v2.dat: Likewise.
493 * regformats/s390-linux64v1.dat: Likewise.
494 * regformats/s390-linux64v2.dat: Likewise.
495 * regformats/s390x-linux64v1.dat: Likewise.
496 * regformats/s390x-linux64v2.dat: Likewise.
498 2011-12-05 Pedro Alves <pedro@codesourcery.com>
500 * linux-nat.c (resume_stopped_resumed_lwps): Call
503 2011-12-05 Pedro Alves <pedro@codesourcery.com>
505 * breakpoint.c: Include record.h.
506 (breakpoints_always_inserted_mode): Return false when the record
509 2011-12-05 Pedro Alves <pedro@codesourcery.com>
511 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
512 Reinstate perror_with_name call on ptrace error. Remove #if 0.
513 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
514 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
516 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
518 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
521 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
523 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
525 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
527 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
530 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
532 Fix compilation --without-expat.
533 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
535 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
537 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
538 Jan Kratochvil <jan.kratochvil@redhat.com>
540 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
541 * features/library-list-svr4.dtd: New file.
542 * remote.c (PACKET_qXfer_libraries_svr4): New.
543 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
544 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
545 * solib-svr4.c (struct svr4_library_list): New.
546 [HAVE_LIBEXPAT]: Include xml-support.h.
547 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
548 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
549 [HAVE_LIBEXPAT] (svr4_library_list_children)
550 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
551 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
552 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
553 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
554 (svr4_read_so_list): Extend the corruption message by addresses.
555 (svr4_current_sos): New variable library_list, call
556 svr4_current_sos_via_xfer_libraries.
557 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
559 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
562 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
563 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
565 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
568 * dwarf2read.c (process_psymtab_comp_unit): Set
569 PSYMTABS_ADDRMAP_SUPPORTED.
570 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
571 validity. New field psymtabs_addrmap_supported.
572 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
573 psymtabs_addrmap_supported.
574 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
575 !PSYMTABS_ADDRMAP_SUPPORTED.
576 (dump_psymtab, maintenance_info_psymtabs): Print also
577 psymtabs_addrmap_supported.
579 2011-12-01 Doug Evans <dje@google.com>
581 * python/py-type.c (type_object_methods): Fix "array" doc string.
583 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
585 * source.c (print_source_lines_base): Fix missing braces on else
586 clause leading to additional output.
588 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
590 * s390-nat.c (SUBOFF): Remove.
591 (s390_native_supply, s390_native_collect): New functions.
592 (supply_gregset, supply_fpregset): Use s390_native_supply.
593 (fill_gregset, fill_fpregset): Use s390_native_collect.
595 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
596 (s390_unwind_pseudo_register): New function.
597 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
598 registers instead of PC and CC.
599 (s390_backchain_frame_unwind_cache): Likewise.
600 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
602 (s390_trad_frame_prev_register): New function.
603 (s390_frame_prev_register): Use it.
604 (s390_sigtramp_frame_prev_register): Likewise.
605 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
606 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
607 special callback to unwind any pseudo.
609 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
610 * features/s390-core64.xml: Likewise.
611 * features/s390x-core64.xml: Likewise.
612 * features/s390-linux32.c: Regenerate.
613 * features/s390-linux64.c: Likewise.
614 * features/s390x-linux64.c: Likewise.
616 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
618 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
620 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
622 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
623 instruction. Add more diagnostic output.
625 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
627 * MAINTAINERS (Write After Approval): Add myself to the list.
629 2011-11-29 Sanjoy Das <sdas@igalia.com>
631 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
632 (jit_bfd_try_read_symtab): Fix comments.
634 2011-11-28 DJ Delorie <dj@redhat.com>
636 * NEWS: Mention RL78 simulator.
638 2011-11-28 Joel Brobecker <brobecker@adacore.com>
640 * symfile.h (struct quick_symbol_functions): Fix the documentation
641 of field map_matching_symbols, as symbols are sorted using
642 strcmp_iw_ordered, not strcmp_iw.
644 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
646 * symfile.h (struct quick_symbol_functions): Update the
647 documentation for field map_matching_symbols.
649 2011-11-28 Joel Brobecker <brobecker@adacore.com>
651 * ada-lang.c (compare_names): Fix wrong return value in case
652 string1 starts with the same contents as string2, followed
653 by an underscore that do not start a symbol name suffix.
655 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
660 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
661 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
662 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
664 * python/py-type.c (typy_strip_typedefs): Ditto.
665 (typy_legacy_template_argument): Ditto.
666 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
667 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
669 2011-11-27 Joel Brobecker <brobecker@acacore.com>
671 * remote.c (remote_get_tracepoint_status): Delete addrbuf
672 local variable. Avoid use of sprintf_vma.
674 2011-11-27 Sanjoy Das <sdas@igalia.com>
676 Fix regression in jit.exp.
677 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
678 (jit_register_code): Set the jit_objfile_data field to the correct
681 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
683 * alpha-tdep.c (br_opcode): New.
684 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
685 (alpha_deal_with_atomic_sequence): New function.
686 (alpha_gdbarch_init): Handle single stepping of atomic sequences
687 with alpha_deal_with_atomic_sequence.
689 2011-11-24 Tristan Gingold <gingold@adacore.com>
691 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
692 fields. Add oso_sym, end_sym and nbr_syms.
693 (macho_register_oso): Change interface.
694 (macho_symtab_add_minsym): New function.
695 (macho_symtab_read): Rewritten.
696 (get_archive_prefix_len): Remove trailing blanks.
697 (oso_el_compare_name): Add comment.
698 (struct macho_sym_hash_entry): New structure.
699 (macho_relocate_common_syms): Remove.
700 (macho_sym_hash_newfunc): New function.
701 (macho_resolve_oso_sym_with_minsym): Likewise.
702 (macho_add_oso_symfile): Rewritten.
703 (macho_symfile_read_all_oso): Remove trailing blanks.
704 Adjust code to free oso vector.
705 (macho_symfile_read): Likewise.
706 Move code to initialize minimal symbol
708 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
710 * mips-tdep.c (extended_offset): Fix formatting.
712 2011-11-23 Doug Evans <dje@google.com>
714 * dwarf2read.c (dw2_lookup_symtab): Add comment.
715 (dw2_expand_symtabs_with_filename): Ditto.
716 (dw2_expand_symtabs_matching): Ditto.
717 (dw2_map_symbol_filenames): Ditto.
719 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
721 * ada-lang.c (assign_aggregate): Minor reformatting.
723 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
725 * ada-lang.c (assign_aggregate): Remove declaration of local
726 variable `i' which is shadowing another variable with the same
727 name declared in the outer scope.
729 2011-11-23 Joel Brobecker <brobecker@adacore.com>
731 * ada-lang.c (get_base_type): Renames base_type. Adjust all
732 calls throughout this file.
734 2011-11-23 Joel Brobecker <brobecker@adacore.com>
736 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
739 2011-11-22 Tom Tromey <tromey@redhat.com>
742 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
743 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
744 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
745 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
746 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
747 (print_it_catch_syscall, print_it_catch_exec)
748 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
749 (bpstat_print): Add 'kind' argument. Handle
750 TARGET_WAITKIND_LOADED.
751 * infrun.c (normal_stop): Update for bpstat_print change. Don't
752 handle TARGET_WAITKIND_LOADED here.
753 * breakpoint.h (bpstat_print): Update.
755 2011-11-22 Tom Tromey <tromey@redhat.com>
757 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
759 2011-11-22 Tom Tromey <tromey@redhat.com>
761 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
762 Use static_assert to check the size of
763 async_reason_string_lookup.
764 * common/gdb_assert.h (static_assert): New macro.
766 2011-11-22 Alan Modra <amodra@gmail.com>
768 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
769 destination calculation. Don't expect >> to sign extend. Don't
770 add a break if branch lands inside the sequence anywhere.
772 2011-11-21 Keith Seitz <keiths@redhat.com>
774 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
775 -var-evaluate-expression of an enumeration and fix expected result.
776 * gdb.mi/mi2-varvdisplay.exp: Likewise.
778 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
780 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
781 the case where osdata->items is empty. Rename column names to a
782 canonical form to avoid problems with unusual column names.
784 2011-11-21 Yao Qi <yao@codesourcery.com>
786 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
788 2011-11-20 Stan Shebs <stan@codesourcery.com>
790 * NEWS: Mention tracepoint additions.
791 * breakpoint.h (struct tracepoint): New field traceframe_usage.
792 * breakpoint.c (print_one_breakpoint_location): Identify
793 tracepoints as such when reporting hit counts, report
795 (create_tracepoint_from_upload): Copy status info.
796 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
797 add fields user_name, notes, start_time, stop_time.
798 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
799 * tracepoint.c (trace_user): New global.
800 (trace_notes): New global.
801 (trace_stop_notes): New global.
802 (start_tracing): Add argument and trace note handling.
803 (stop_tracing): Ditto.
804 (trace_start_command): Add notes argument.
805 (trace_stop_command): Ditto.
806 (trace_status_command): Report additional status info.
807 (trace_status_mi): Similarly.
808 (trace_save): Update, record tracepoint status.
809 (set_disconnected_tracing): Call target method directly.
810 (send_disconnected_tracing_value): Remove.
811 (set_trace_user): New function.
812 (set_trace_notes): New function.
813 (set_trace_stop_notes): New function.
814 (parse_trace_status): Handle additional status.
815 (parse_tracepoint_status): New function.
816 (parse_tracepoint_definition): Call it.
817 (tfile_get_tracepoint_status): New function.
818 (init_tfile_ops): Use it.
819 (_initialize_tracepoint): Add new setshows.
820 * target.h (struct target_ops): New methods to_get_tracepoint_status
821 and to_set_trace_notes.
822 (target_get_tracepoint_status): New macro.
823 (target_set_trace_notes): New macro.
824 * target.c (update_current_target): Add new methods.
825 * remote.c (remote_get_tracepoint_status): New function.
826 (remote_set_trace_notes): New function.
827 (init_remote_ops): Add them.
828 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
829 (mi_cmd_trace_stop): Ditto.
831 2011-11-20 Sanjoy Das <sdas@igalia.com>
833 * jit.c: Include regcache.h.
834 (jit_gdbarch_data, jit_frame_unwind): New static variables.
835 (jit_unwind_reg_set_impl, free_reg_value_impl)
836 (jit_unwind_reg_get_impl, jit_frame_sniffer)
837 (jit_frame_unwind_stop_reason, jit_frame_this_id)
838 (jit_frame_prev_register, jit_dealloc_cache)
839 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
840 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
841 jit_prepend_unwinder.
842 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
844 2011-11-20 Sanjoy Das <sdas@igalia.com>
846 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
847 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
848 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
849 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
850 (finalize_symtab, jit_object_close_impl)
851 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
852 (free_objfile_data): New functions.
853 (_initialize_jit): Register jit_objfile_data with a proper cleanup
856 2011-11-20 Sanjoy Das <sdas@igalia.com>
858 * jit.c: Include gdb-dlfcn.h.
859 (loaded_jit_reader, reader_init_fn_sym): New static variables.
860 (jit_reader_load, jit_reader_load_command)
861 (jit_reader_unload_command): New functions.
862 (_initialize_jit): Add commands "jit-reader-load" and
865 2011-11-20 Sanjoy Das <sdas@igalia.com>
867 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
868 * config.in: Add new #define HAVE_LIBDL.
869 * configure.ac: Add check for -ldl.
870 * configure: Re-generated by autoconf.
871 * gdb-dlfcn.c: New file.
872 * gdb-dlfcn.h: New file.
874 2011-11-20 Sanjoy Das <sdas@igalia.com>
876 * config.in: Add new #defines: JIT_READER_DIR and
877 JIT_READER_DIR_RELOCATABLE.
878 * configure.ac: New GDB directory entry for jit-reader-dir.
879 * configure: Re-generated by autoconf.
880 * jit.c: New static variable: const char *jit_reader_dir.
881 (_initialize_jit): Relocate jit_reader_dir.
883 2011-11-20 Sanjoy Das <sdas@igalia.com>
885 * Makefile.in: Add jit-reader.h as a header. Have it installed in
887 * configure.ac: Generate a correct value for TARGET_PTR for
888 jit-reader.h. Tell configure to generate jit-reader.h from
890 * configure: Re-generated by autoconf.
891 * jit-reader.in: New file.
892 * jit.c: Include jit-reader.h.
894 2011-11-20 Sanjoy Das <sdas@igalia.com>
896 * MAINTAINERS (Write After Approval): Add myself to the list.
898 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
900 * findvar.c (read_frame_register_value): Respect value_offset
901 of the register value. Remove big-endian special case.
903 2011-11-18 Tom Tromey <tromey@redhat.com>
906 * remote.c (putpkt_for_catch_errors): New function.
907 (remote_kill): Use it.
909 2011-11-18 Yao Qi <yao@codesourcery.com>
911 * breakpoint.c (create_breakpoint): Produce query message according to
913 Allocate tracepoint per correct type.
914 Don't check SALs for pending fast tracepoints.
915 * tracepoint.c (process_tracepoint_on_disconnect): New.
916 (disconnect_tracing): Call process_tracepoint_on_disconnect.
918 2011-11-18 Yao Qi <yao@codesourcery.com>
920 * breakpoint.c (install_breakpoint): Add one more parameter so that
921 update_global_location_list is called conditionally.
922 (create_fork_vfork_event_catchpoint): Update.
923 (create_syscall_event_catchpoint): Update.
924 (create_breakpoint_sal): Update.
925 (create_breakpoint_sal): Update. Call do_cleanups before
927 * ada-lang.c (create_ada_exception_catchpoint): Update.
928 * breakpoint.h (install_breakpoint): Update declaration.
930 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
932 * spu-tdep.c (spu_return_value): Fix handling of
933 TYPE_CALLING_CONVENTION annotation.
935 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
937 * skip.c (skip_function_command): Work around uninitialized
940 2011-11-16 David S. Miller <davem@davemloft.net>
942 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
943 'tv_usec' to long for printf since these fields have a type which
946 2011-11-15 Doug Evans <dje@google.com>
948 * buildsym.c (add_symbol_to_list): Delete outdated comment.
950 2011-11-15 Paul Koning <paul_koning@dell.com>
952 * python/py-type.c (typy_get_composite): New function.
953 (typy_nonzero): New function.
954 (typy_values): Rename from typy_fields.
955 (typy_fields): New function.
956 (typy_length): Raise exception if not struct, union, or enum type.
957 (typy_getitem): Ditto.
958 (typy_has_key): Ditto.
959 (typy_make_iter): Ditto.
961 2011-11-15 Doug Evans <dje@google.com>
963 * NEWS: Mention new parameter basenames-may-differ.
964 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
965 ! basenames_may_differ.
966 * psymtab.c (lookup_partial_symtab): Ditto.
967 * symtab.c (lookup_symtab): Ditto.
968 (basenames_may_differ): New global.
969 (_initialize_symtab): New parameter basenames-may-differ.
970 * symtab.h (basenames_may_differ): Declare.
972 2011-11-15 Pedro Alves <pedro@codesourcery.com>
973 Luis Machado <lgustavo@codesourcery.com>
975 * auxv.c: Include observer.h.
976 (auxv_inferior_data_cleanup): New.
977 (invalidate_auxv_cache_inf): New.
978 (invalidate_auxv_cache): New.
979 (get_auxv_inferior_data): New.
980 (auxv_inferior_data): New static global.
981 (auxv_info): New structure.
982 (target_auxv_search): Use get_auxv_inferior_data instead of
983 target_read_alloc and don't free cached buffers.
984 (fprint_target_auxv): Likewise
985 (_initialize_auxv): Register per-inferior auxv cache and register
986 observers to invalidate auxv cache when needed.
988 2011-11-14 Doug Evans <dje@google.com>
990 Make "!" an alias for "shell".
992 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
993 adding "!" command, always add it.
994 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
995 command of length one.
997 2011-11-14 Stan Shebs <stan@codesourcery.com>
998 Kwok Cheung Yeung <kcy@codesourcery.com>
1000 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1001 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1002 the minimum instruction size for fast tracepoints.
1003 * target.h (struct target_ops): Add new method
1004 to_get_min_fast_tracepoint_insn_len.
1005 (target_get_min_fast_tracepoint_insn_len): New.
1006 * target.c (update_current_target): Set up new target operation.
1007 * remote.c (remote_write_bytes_aux): Fix typo.
1008 (remote_get_min_fast_tracepoint_insn_len): New.
1009 (init_remote_ops): Initialize new field.
1011 2011-11-14 Tom Tromey <tromey@redhat.com>
1013 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1014 (encode_actions): Likewise.
1016 2011-11-14 Yao Qi <yao@codesourcery.com>
1018 * remote.c (struct remote_state): <install_in_trace> new field.
1019 (PACKET_InstallInTrace): New enum value.
1020 (remote_install_in_trace_feature): Support InstallInTrace.
1021 (remote_supports_install_in_trace): Likewise.
1022 (remote_protocol_features): Likewise.
1023 (_initialize_remote): Likewise.
1024 (remote_can_download_tracepoint): New.
1025 * target.h (struct target): New field
1026 `to_can_download_tracepoint'.
1027 (target_can_download_tracepoint): New macro.
1028 * target.c (update_current_target): Update.
1029 * breakpoint.h (struct bp_location): Add comment on field
1031 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1033 (remove_breakpoints): Don't remove tracepoints.
1034 (tracepoint_locations_match ): New.
1035 (breakpoint_locations_match): Call it.
1036 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1037 (download_tracepoint_locations): New.
1038 (update_global_location_list): Call it.
1039 * tracepoint.c (find_matching_tracepoint): Delete.
1040 (find_matching_tracepoint_location): Renamed from
1041 find_matching_tracepoint. Return bp_location rather than
1043 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1044 tracepoint is found.
1046 2011-11-14 Yao Qi <yao@codesourcery.com>
1048 * target.h (struct target): <to_download_tracepoint> Change type
1049 of parameter from tracepoint to bp_location.
1050 * target.c (update_current_target): Update.
1051 * tracepoint.c (start_tracing): Update.
1052 * remote.c (remote_download_tracepoint): Remove loop for each location
1055 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1057 * i386-nat.c (i386_insert_hw_breakpoint): Call
1058 i386_update_inferior_debug_regs.
1059 (i386_remove_hw_breakpoint): Likewise.
1061 2011-11-14 Yao Qi <yao@codesourcery.com>
1063 * breakpoint.c (init_raw_breakpoint): Call
1064 add_location_to_breakpoint to replace duplicated code.
1065 (add_location_to_breakpoint): Adjust the breakpoint's
1066 address prior to allocating a location.
1068 2011-11-12 Matt Rice <ratmice@gmail.com>
1070 * macrocmd.c (macro_no_macro_info): New function.
1071 (macro_expand_command): Use macro_no_macro_info.
1072 (macro_expand_once_command): Ditto.
1073 (info_macro_command): Add argument processing,
1074 move info_definitions_command here.
1075 (_initialize_macrocmd): Remove info definitions command.
1076 Add arguments to info macro help text.
1077 * NEWS: Replace info definitions command with new info macro options.
1079 2011-11-11 Keith Seitz <keiths@redhat.com>
1082 * linespec.c (locate_first_half): Keep ':' if it looks
1083 like it could be part of a Windows path starting with
1086 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1088 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1089 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1091 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1093 * target.c (target_waitstatus_to_string): Handle
1094 TARGET_WAITKIND_NO_RESUMED.
1096 2011-11-10 Doug Evans <dje@google.com>
1098 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1100 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1101 (map_partial_symbol_filenames): Ditto. All callers updated.
1102 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1103 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1104 parameter need_fullname.
1106 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1107 * source.c (symtab_to_fullname): Ditto.
1109 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1110 * gdb-demangle.h: ... here. New file.
1111 * demangle.c: #include "gdb-demangle.h".
1112 (_initialize_demangler): Use initialize_file_ftype for prototype.
1113 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1114 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1116 * utils.c: Update. #include "gdb-demangle.h".
1117 * symtab.h (asm_demangle): Delete.
1118 (demangle): Move declaration next to use.
1119 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1120 * dwarf2read.c: #include "gdb-demangle.h".
1121 * gnu-v2-abi.c: Ditto.
1122 * jv-typeprint.c: Ditto.
1123 * mdebugread.c: Ditto.
1124 * p-typeprint.c: Ditto.
1125 * stabsread.c: Ditto.
1126 * printcmd.c: Ditto.
1127 (asm_demangle): Delete declaration.
1128 * tui/tui-stack.c: #include "gdb-demangle.h".
1130 * python/py-type.c (typy_fields_items): Call check_typedef.
1132 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1134 * findvar.c (read_frame_register_value): Read the correct bytes
1135 from registers on big-endian architectures.
1137 2011-11-10 Tom Tromey <tromey@redhat.com>
1139 * procfs.c (load_syscalls): Make a cleanup.
1140 (open_procinfo_files): fd==0 is ok.
1142 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1144 * procfs.c (iterate_over_mappings): Call do_cleanups before
1147 2011-11-09 Doug Evans <dje@google.com>
1149 * gdbtypes.c (check_typedef): Document that this function can
1152 2011-11-09 Tom Tromey <tromey@redhat.com>
1155 * valops.c (value_full_object): Return early if real type is
1156 smaller than the enclosing type.
1158 2011-11-08 Yao Qi <yao@codesourcery.com>
1160 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1162 2011-11-08 Meador Inge <meadori@codesourcery.com>
1164 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1165 register when the frame can't be determined.
1166 * arm-tdep.c (arm_analyze_prologue): Ditto.
1168 2011-11-07 Stan Shebs <stan@codesourcery.com>
1170 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1172 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1174 * infrun.c (handle_inferior_event): Minor reformatting.
1176 2011-11-05 Doug Evans <dje@google.com>
1178 * source.c (forget_cached_source_info_for_objfile): Move call to
1179 objfile->sf->qf->forget_cached_source_info outside of
1180 ALL_OBJFILE_SYMTABS loop.
1181 (forget_cached_source_info): Delete unused variable `s'.
1183 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1185 * i386-nat.c (dr_ref_count): Remove unused variable.
1187 2011-11-05 Doug Evans <dje@google.com>
1189 * main.c (captured_main): Set lim_at_start before calling
1190 make_command_stats_cleanup.
1192 2011-11-04 Doug Evans <dje@google.com>
1194 * utils.c: #include "timeval-utils.h".
1195 (cmd_stats): Rename start_time to start_cpu_time.
1196 New member start_wall_time.
1197 (report_command_stats): Report wall time.
1198 (make_command_stats_cleanup): Record start wall time.
1200 2011-11-04 Tom Tromey <tromey@redhat.com>
1202 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1204 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1206 * coff-pe-read.c: Include defs.h before bfd.h.
1208 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1212 * python/python.c (python_run_simple_file): Expand tilde in path.
1214 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1218 * python/py-type.c (typy_lookup_type): Do not return a type in
1219 an exception handler.
1221 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1222 Eli Zaretskii <eliz@gnu.org>
1224 * linux-nat.c (_initialize_linux_nat): Improve help
1225 for `info proc stat', `info proc status', `info proc cwd',
1226 `info proc cmdline' and `info proc exe'.
1228 2011-11-02 Stan Shebs <stan@codesourcery.com>
1230 String collection for tracepoints.
1231 * NEWS: Mention string collection.
1232 * common/ax.def (tracenz): New bytecode.
1233 * ax-gdb.h (trace_string_kludge): Declare.
1234 * ax-gdb.c: Include valprint.h and c-lang.h.
1235 (trace_string_kludge): New global.
1236 (gen_traced_pop): Add string case.
1237 (agent_command): Add string case.
1238 * tracepoint.h (decode_agent_options): Declare.
1239 * tracepoint.c: Include cli-utils.h.
1240 (decode_agent_options): New function.
1241 (validate_actionline): Call it.
1242 (encode_actions_1): Ditto.
1243 * target.h (struct target_ops): New method to_supports_string_tracing.
1244 (target_supports_string_tracing): New macro.
1245 * target.c (update_current_target): Add to_supports_string_tracing.
1246 * remote.c (struct remote_state): New field string_tracing.
1247 (remote_string_tracing_feature): New function.
1248 (remote_protocol_features): New feature tracenz.
1249 (remote_supports_string_tracing): New function.
1250 (init_remote_ops): Set to_supports_string_tracing.
1252 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1253 Jan Kratochvil <jan.kratochvil@redhat.com>
1255 * linux-nat.c: Include cli/cli-utils.h.
1256 (enum info_proc_what): New.
1257 (linux_nat_info_proc_cmd): Rename to ...
1258 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1259 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1260 status_f and stat_f from WHAT. Throw error on extra parameters.
1261 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1262 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1263 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1264 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1265 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1266 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1267 `info proc cmdline', `info proc exe' and `info proc all' as real
1268 subcommands of `info proc'.
1270 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1272 * Makefile.in: (SFILES): Add skip.c.
1273 (HFILES_NO_SRCDIR): Add skip.h.
1274 (COMMON_OBS): Add skip.o.
1275 * skip.h, skip.c: New.
1276 * breakpoint.h (set_default_breakpoint): Remove.
1277 (get_sal_arch): Declare.
1278 * breakpoint.c: Remove default_breakpoint_valid,
1279 default_breakpoint_address, default_breakpoint_symtab,
1280 default_breakpoint_line, default_breakpoint_pspace variables.
1281 (get_sal_arch): Make public.
1282 (set_default_breakpoint): Remove.
1283 (parse_breakpoint_sals, create_breakpoint, clear_command,
1284 decode_line_spec_1): Remove uses of default_breakpoint variables;
1285 replaced with function calls into stack.c.
1286 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1287 * cli/cli-cmds.c: Add skiplist.
1288 (init_cmd_lists): Initialize skiplist.
1289 (init_cli_cmds): Fix comment (classes of commands appear in
1290 alphabetical order).
1291 * infrun.c (handle_inferior_event): Add check that we don't step into
1292 a function whose pc is marked for skip.
1293 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1294 last_displayed_addr, last_displayed_symtab, last_displayed_line
1296 (set_last_displayed_sal): New static function.
1297 (print_frame_info): Switch call to set_default_breakpoint to call to
1298 set_last_displayed_sal.
1299 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1300 get_last_displayed_pspace, get_last_displayed_addr,
1301 get_last_displayed_symtab, get_last_displayed_line,
1302 get_last_displayed_sal): New public functions.
1303 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1304 get_last_displayed_pspace, get_last_displayed_addr,
1305 get_last_displayed_symtab, get_last_displayed_line,
1306 get_last_displayed_sal): Declare.
1308 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1310 * MAINTAINERS (Write After Approval): Add myself to the list.
1312 2011-10-29 Yao Qi <yao@codesourcery.com>
1314 * infcmd.c (disconnect_command): Call disconnect_tracing.
1316 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1319 * symtab.c (skip_prologue_sal): Code reformatting.
1321 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1324 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1325 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1328 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1330 * linux-nat.c (linux_nat_filter_event): Remove `options'
1331 parameter, and dead code that used it. If we're handling a
1332 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1333 in our lwp list, re-add it.
1334 (check_zombie_leaders): New.
1335 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1336 wait for children with WNOHANG, and always wait for all children.
1337 Don't check for no resumed children upfront. Simplify wait loop.
1338 Check for zombie thread group leaders after handling all wait
1339 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1340 unwaited-for children left.
1341 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1342 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1343 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1344 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1346 2011-10-28 Sterling Augustine <saugustine@google.com>
1348 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1349 * symtab.c (free_completion_list): New function.
1350 (do_free_completion_list): Likewise.
1351 (default_make_symbol_completion_list_break_on): New variable
1352 back_to. Call make_cleanup and discard_cleanups.
1353 (make_source_files_completion_list): Likewise.
1355 2011-10-28 Paul Koning <paul_koning@dell.com>
1357 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1358 * NEWS: Mention deep_items.
1360 2011-10-28 Alen Skondro <askondro@gmail.com>
1362 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1365 2011-10-27 Meador Inge <meadori@codesourcery.com>
1367 * MAINTAINERS (Write After Approval): Add myself to the list.
1369 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1371 * value.h (read_frame_register_value): Add declaration.
1372 * findvar.c (read_frame_register_value): New function.
1373 (value_from_register): Use read_frame_register_value
1374 instead of get_frame_register_value + value_contents_copy
1375 to get value contents.
1377 2011-10-27 Doug Evans <dje@google.com>
1379 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1380 source_script_from_stream if it may have been found on the search path.
1381 * python/py-auto-load.c (source_section_scripts): Pass full path to
1382 source_python_script_for_objfile.
1383 * python/python.c (source_python_script): Delete stream parameter.
1384 All callers updated.
1385 (source_python_script_for_objfile): Ditto.
1386 * python/python-internal.h (source_python_script_for_objfile): Update.
1387 * python/python.h (source_python_script): Update.
1389 2011-10-27 Tom Tromey <tromey@redhat.com>
1391 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1392 (ada_sals_for_line): Remove declarations.
1394 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1396 Move unwind reasons to an external .def file
1397 * frame.c (frame_stop_reason_string): Rewrite using
1398 unwind_stop_reasons.def.
1399 * frame.h (enum unwind_stop_reason): Likewise.
1400 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1401 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1402 constants for bound-checking.
1403 * unwind_stop_reasons.def: New file.
1404 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1405 instead of a distinct value.
1407 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1411 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1412 (convert_values_to_python): Return on Python tuple allocation
1413 failure. Return NULL on value conversion error.
1415 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1417 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1418 (bppy_set_task): Ditto.
1419 (bppy_delete_breakpoint): Ditto.
1420 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1421 (gdbpy_lookup_global_symbol): Ditto.
1422 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1423 * python/py-frame.c (frapy_is_valid): Ditto.
1424 (frame_info_to_frame_object): Ditto.
1425 * python/py-type.c (typy_lookup_type): Ditto.
1426 (typy_getitem): Ditto.
1427 (typy_has_key): Ditto.
1428 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1430 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1432 * gdbarch.h: Regenerate.
1434 2011-10-26 Meador Inge <meadori@codesourcery.com>
1436 * gdbarch.sh (function_list): Use 'pstring' when printing
1438 * gdbarch.c: Regenerate.
1440 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1442 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1443 and frame caches if PTID refers to all threads of a process.
1445 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1447 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1448 to create_breakpoint.
1450 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1452 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1453 (ppc_sysv_abi_push_dummy_call): Use it.
1454 (do_ppc_sysv_return_value): Likewise.
1455 (ppc64_sysv_abi_push_dummy_call): Likewise.
1456 (ppc64_sysv_abi_return_value): Likewise.
1458 2011-10-26 Paul Koning <paul_koning@dell.com>
1460 * python/lib/gdb/types.py (deepitems): New function.
1462 2011-10-25 Paul Koning <paul_koning@dell.com>
1466 * python/py-value.c (value_to_value_object): Remove fetching of
1467 the value if it was lazy.
1468 (valpy_get_is_lazy): New function.
1469 (valpy_fetch_lazy): New function.
1471 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1473 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1474 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1476 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1478 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1479 event, in non-stop, if not stopping, make sure the new lwp has
1480 last_resume_kind set to resume_continue. Assert that when we're
1481 resuming the new lwp, its last_resume_kind is resume_continue.
1483 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1485 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1486 already set when marking the event thread as not executing in
1489 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1491 * infrun.c (handle_inferior_event): Add debug output for
1492 TARGET_WAITKIND_NO_HISTORY.
1494 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1496 * NEWS: Move set/show extended-prompt to "New Options". Expand
1497 description. Fix typos.
1499 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1503 * python/py-param.c (call_doc_function): Correctly deference on
1506 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1508 * ada-tasks.c (print_ada_task_info): Fix computation of
1509 number of tasks displayed in command output.
1511 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1512 Ulrich Weigand <uweigand@de.ibm.com>
1514 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1515 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1516 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1517 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1520 2011-10-20 Cary Coutant <ccoutant@google.com>
1522 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1524 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1525 flag. Adjust all callers.
1526 (process_psymtab_comp_unit): Remove adjustment for type section.
1528 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1530 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1531 arguments by adding OBJFILE. Instead of getting objfile from
1532 symbol's symtab, use new argument OBJFILE.
1533 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1534 arguments by adding OBJFILE.
1535 * gdb/dwarf2read.c (new_symbol_full): Change call to
1536 cp_scan_for_anonymous_namespaces to match new signature.
1537 * gdb/stabsread.c (define_symbol): Change call to
1538 cp_scan_for_anonymous_namespaces to match new signature.
1540 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1545 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1547 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1548 leak. Delete unused variables.
1550 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1554 * python/py-frame.c (frapy_read_var): Use const struct *block.
1555 * python/py-type.c (typy_lookup_typename): Likewise.
1556 (typy_lookup_type): Likewise.
1557 (typy_legacy_template_argument): Likewise.
1558 (typy_template_argument): Likewise.
1559 (gdbpy_lookup_type): Likewise.
1560 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1561 * python/py-block.c (blpy_block_object): Likewise.
1562 (blpy_iter): Likewise.
1563 (blpy_get_start): Likewise.
1564 (blpy_get_end): Likewise.
1565 (blpy_get_function): Likewise.
1566 (blpy_get_superblock): Likewise.
1567 (set_block): Likewise.
1568 (block_to_block_object): Likewise.
1569 (block_object_to_block): Likewise.
1570 (blpy_is_valid): Likewise.
1571 (blpy_get_global_block): New function.
1572 (blpy_get_static_block): New function.
1573 (blpy_is_global): New function.
1574 (blpy_is_static): New function.
1575 * blockframe.c (block_innermost_frame): Likewise.
1576 * valops.c (value_of_variable): Likewise.
1577 * frame.h: Update prototypes.
1578 * python/python-internal.h: Likewise.
1579 * value.h: Likewise.
1581 2011-10-19 Cary Coutant <ccoutant@google.com>
1583 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1586 2011-10-19 Cary Coutant <ccoutant@google.com>
1588 * dwarf2read.c (peek_abbrev_code): New function.
1589 (dw2_get_file_names): Check for dummy compilation units.
1590 (create_debug_types_hash_table): Likewise.
1591 (process_psymtab_comp_unit): Likewise.
1592 (load_partial_comp_unit): Likewise.
1593 (load_full_comp_unit): Likewise.
1595 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1597 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1598 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1599 pt_phdr if PT_PHDR was found.
1601 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1603 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1604 type or "<unnamed type"> when there is no name assigned.
1605 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1606 avoid a sigint when no name is assigned.
1608 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1611 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1612 * dwarf2expr.c (ctx_no_read_reg): New function.
1613 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1614 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1615 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1616 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1618 2011-10-16 Doug Evans <dje@google.com>
1620 * NEWS: Document python gdb.printing.register_pretty_printer's new
1621 `replace' parameter.
1623 2011-10-14 Keith Seitz <keiths@redhat.com>
1626 * eval.c (evaluate_subexp_standard): Do not construct
1627 an array of types; pass the value array directly to
1628 find_overload_match.
1629 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1630 (rank_function): Take an array of values instead of types.
1631 (rank_one_type): Add struct value * parameter.
1632 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1633 (rank_function): For each argument, pass the argument's
1634 value to rank_one_type.
1635 (rank_one_type): Add VALUE parameter.
1636 If the parameter type is a pointer and the argument type
1637 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1639 Update all calls to rank_one_type, passing NULL for new
1641 * valarith.c (value_user_defined_cpp_op): Do not construct
1642 an array of types; pass the value array directly to
1643 find_overload_match.
1644 * valops.c (find_overload_method_list): Take an array of
1645 values instead of types.
1646 Save the type of OBJP for later use.
1647 Update calls to find_oload_champ, and find_oload_champ_namespace.
1648 (find_oload_champ_namespace): Take an array of values instead
1650 (find_oload_champ_namespace_loop): Likewise.
1651 (find_oload_champ): Likewise.
1652 (classify_oload_match): Inspect all arguments
1653 until INCOMPATIBLE is found. Return the worst badness found
1655 (compare_parameters): Update call to rank_one_type.
1656 * value.h (find_overload_match): Take an array of values instead
1659 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1661 Drop lazy lm_info reading.
1662 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1663 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1664 (lm_info_read): New function.
1665 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1666 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1667 lm_dynamic_from_link_map.
1668 (lm_next, lm_prev, lm_name): Remove.
1669 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1670 initialization incl. read_memory. No longer use lm_name.
1671 (svr4_free_so): Drop lm_info->lm freeing.
1672 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1673 explicit lm_addr and lm initialization.
1674 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1675 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1678 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1679 Paul Pluzhnikov <ppluzhnikov@google.com>
1681 * defs.h (struct so_list): New forward declaration.
1682 (make_cleanup_free_so): New declaration.
1683 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1684 (svr4_free_so): Move the function here from downwards. Handle NULL
1686 (svr4_free_library_list): New.
1687 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1688 Use more cleanups. Use new parameter ignore_first instead of
1689 ignore_first_link_map_entry.
1690 (svr4_current_sos): New variable ignore_first, initialize it. New
1691 variable back_to, use it for svr4_free_library_list protection.
1692 (svr4_free_so): Remove - move upwards.
1693 * utils.c: Include solist.h.
1694 (do_free_so, make_cleanup_free_so): New functions.
1696 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1698 Fix internal error regression.
1699 * value.c (value_primitive_field): Handle value_optimized_out. Move
1700 packed bitfields comment.
1702 2011-10-13 Tom Tromey <tromey@redhat.com>
1704 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1707 2011-10-13 Tom Tromey <tromey@redhat.com>
1709 * python/py-type.c (typy_has_key): Make 'field' const.
1711 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1713 * remote.c (remote_save_trace_data): Invert comparison.
1715 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1717 * tracepoint.c (trace_save_command): Use filename instead of
1720 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1722 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1725 2011-10-13 Yao Qi <yao@codesourcery.com>
1728 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1729 whether insn is a 32-bit Thumb-2 instruction.
1730 (thumb_in_function_epilogue_p): Likewise.
1731 (thumb_get_next_pc_raw): Likewise.
1732 (arm_breakpoint_from_pc): Likewise.
1734 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1736 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1737 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1738 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1739 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1740 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1742 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1744 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1745 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1746 clear DATA on zero SIZE.
1748 2011-10-12 Doug Evans <dje@google.com>
1750 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1751 header->first_die_offset here. All callers updated.
1753 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1755 Fix compatibility with texinfo versions older than 4.12.
1756 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1757 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1758 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1759 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1760 * configure: Regenerate.
1761 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1762 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1763 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1765 2011-10-12 Gary Benson <gbenson@redhat.com>
1767 * breakpoint.h (pc_at_non_inline_function): Declare.
1768 * breakpoint.c (is_non_inline_function,
1769 pc_at_non_inline_function): New functions.
1770 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1771 if the stop is at a location where functions cannot be inlined.
1773 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1775 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1776 the core wanted them stopped, or if they now have a pending event
1778 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1779 down to stop_and_resume_callback.
1780 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1781 having new pending events after calling linux_nat_filter_event.
1783 2011-10-11 Sterling Augustine <saugustine@google.com>
1785 * dwarf2read.c: Undo inadvertent changes in previous commit.
1787 2011-10-11 Sterling Augustine <saugustine@google.com>
1789 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1792 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1794 * symfile.c (separate_debug_file_exists): Fix condition.
1796 2011-10-11 David S. Miller <davem@davemloft.net>
1798 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1800 * regcache.h (regcache_restore): Remove declaration.
1802 * gdbarch.sh: New field 'long_long_align_bit'.
1803 * gdbarch.c, gdbarch.h: Regenerate.
1804 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1805 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1807 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1809 Revert this part of:
1810 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1811 Support @entry in input expressions.
1812 * c-exp.y (ENTRY, unknown_cpp_name): New.
1813 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1814 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1815 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1816 (name_not_typename: ENTRY): New.
1817 (yylex): Recognize ENTRY.
1819 Reimplement @entry in input expressions.
1820 * c-exp.y (ENTRY): New.
1821 (variable: name_not_typename ENTRY): New.
1822 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1824 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1826 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1827 parent and child's pids as soon as we detect a clone event.
1828 Adjust another debug message.
1830 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1832 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1833 not zombie instead of reading the whole file.
1835 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1837 Fix separate debuginfo warning with "remote:" access.
1838 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1839 * symfile.c (get_file_crc): New function with the code moved from ...
1840 (separate_debug_file_exists): ... this function, specifically variables
1841 buffer and count. New variable verified_as_different, set it. Remove
1842 file_crc initialization. Verify also if both files are not the same
1843 manually, if needed.
1845 2011-10-11 Yao Qi <yao@codesourcery.com>
1847 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1850 2011-10-10 Doug Evans <dje@google.com>
1852 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1853 libthread_db when we load libpthread or the main symbol file.
1854 (thread_db_inferior_created): New function.
1855 (_initialize_thread_db): Attach inferior_created observer.
1856 * linux-nat.c (linux_child_post_attach): Remove call to
1857 check_for_thread_db.
1858 (linux_child_post_startup_inferior): Ditto.
1859 * objfiles.h (OBJF_MAINLINE): Define.
1860 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1861 allocate_objfile when appropriate.
1863 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1866 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1867 Remove unused variables.
1868 (get_linux_version): Remove function.
1869 (_initialize_arm_linux_nat): Do not call it.
1871 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1873 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1874 new clone lwp if the core asked it to stop. Don't pass on
1875 unexpected signals to the new clone; leave them pending instead.
1877 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1879 * linux-nat.c (resume_lwp): Remove redundant debug output.
1881 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1883 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1884 last_resume_kind before clearing it, and use the copy instead to
1885 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1886 resume_clear_callback in the non-stop path too.
1888 2011-10-09 Yao Qi <yao@codesourcery.com>
1890 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1891 Honor OPTIONS and VAL's type.
1892 (common_val_print, value_print): Update to pass one more parameter.
1894 2011-10-09 Doug Evans <dje@google.com>
1896 Add new "alias" command.
1897 * NEWS: Mention new command.
1898 * command.h (valid_user_defined_cmd_name_p): Declare.
1899 * defs.h (make_cleanup_dyn_string_delete): Declare.
1900 * utils.c: #include "dyn-string.h".
1901 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1902 * cli/cli-cmds.c: #include "dyn-string.h".
1903 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1904 (init_cli_cmds): Add new command.
1905 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1907 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1909 Fix compatibility with older GCCs.
1910 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1911 * stack.c (read_frame_arg): Initialize val_deref.
1913 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1915 Entry values NEWS entries, DWARF disassembly support.
1916 * NEWS: New entry values entry.
1917 (set print entry-values, show print entry-values)
1918 (set debug entry-values, show debug entry-values): New entries.
1919 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1920 indent. Remove variable start. Move header printing out. Respect
1921 INDENT. Support DW_OP_GNU_entry_value.
1922 (locexpr_describe_location_1): Move the header printing here, extend
1923 the disassemble_dwarf_expression passed parameters.
1925 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1927 Display @entry parameter values even for references.
1928 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1929 coerce_ref_if_computed.
1930 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1931 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1932 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1933 existing push_dwarf_reg_entry_value call. Add new detection calling
1934 dwarf_block_to_dwarf_reg_deref. Update the error message.
1935 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1937 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1938 parameter deref_size, describe it in the comment.
1939 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1940 (dwarf_block_to_dwarf_reg_deref): New declaration.
1941 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1942 deref_size, describe it in the function comment. New variables
1943 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1944 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1945 describe it in the function comment. Fetch the alternative block
1946 accoring to DEREF_SIZE.
1947 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1948 (entry_data_value_free_closure, entry_data_value_funcs): New.
1949 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1950 outer_val, target_val, val and addr. Try to fetch and create also
1951 referenced value content.
1952 (pieced_value_funcs): NULL value for coerce_ref.
1953 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1954 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1955 coerce_ref_if_computed.
1956 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1957 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1958 * stack.c (read_frame_arg): Compare also dereferenced values.
1959 * value.c (value_computed_funcs): Make the parameter v const, use
1960 value_lval_const for it.
1961 (value_lval_const, coerce_ref_if_computed): New function.
1962 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1963 * value.h (struct lval_funcs): New field coerce_ref.
1964 (value_computed_funcs): Make the parameter v const.
1965 (value_lval_const, coerce_ref_if_computed): New declarations.
1967 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1969 Support @entry in input expressions.
1970 * c-exp.y (ENTRY, unknown_cpp_name): New.
1971 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1972 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1973 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1974 (name_not_typename: ENTRY): New.
1975 (yylex): Recognize ENTRY.
1976 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1977 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1979 * parse.c (operator_length_standard): Likewise.
1980 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1982 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1984 Display referenced values in backtraces.
1985 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1986 * stack.c (print_frame_arg): Likewise.
1988 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1990 Make some lval_funcs methods to default on NULL.
1991 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1993 (value_assign): Check if lval_computed write method is NULL.
1994 * value.h (struct lval_funcs): Comment NULL values for read and write
1997 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1999 Display @entry parameter values (without references).
2000 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2002 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2004 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2006 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2007 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2009 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2010 (loclist_read_variable_at_entry): New function.
2011 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2012 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2013 DW_AT_location, call dwarf_block_to_sp_offset for it.
2014 * frame.h (print_entry_values_no, print_entry_values_only)
2015 (print_entry_values_preferred, print_entry_values_if_needed)
2016 (print_entry_values_both, print_entry_values_compact)
2017 (print_entry_values_default, print_entry_values): New declarations.
2018 (struct frame_arg): New field entry_kind.
2019 (read_frame_arg): New parameter entryargp.
2020 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2021 arg->entry_kind. Optionally print the `@entry' suffix.
2022 (list_args_or_locals): New variable entryarg, initialize it.
2023 Initialize also entry_kind of arg and entryarg. Conditionalize
2024 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2025 xfree for entryarg.error.
2026 * stack.c (print_entry_values_no, print_entry_values_only)
2027 (print_entry_values_preferred, print_entry_values_if_needed)
2028 (print_entry_values_both, print_entry_values_compact)
2029 (print_entry_values_default, print_entry_values_choices)
2030 (print_entry_values): New variables.
2031 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2032 print the `@entry' suffix, possibly in combination for
2033 print_entry_values_compact.
2034 (read_frame_arg): New parameter entryargp, new variables entryval,
2035 entryval_error and val_equal. Read in also entryargp, respect
2036 print_entry_values, compare the values using val_equal, fill in also
2037 argp->entry_kind (together with entryargp->entry_kind).
2038 (print_frame_args): New variable entryarg, initialize it.
2039 Conditionalize print_frame_arg for arg, add print_frame_arg for
2040 entryarg. Call xfree for entryarg.error.
2041 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2042 * symtab.h (struct symbol_computed_ops): New field
2043 read_variable_at_entry.
2045 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2048 * frame.h (struct frame_arg): New definition.
2049 (read_frame_arg): New declaration.
2050 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2051 (list_args_or_locals): ... the code here. New variable arg, call
2052 read_frame_arg and list_arg_or_local with it. Unify the
2053 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2055 * stack.c (print_frame_arg): New functiom from the code of
2057 (read_frame_arg): New function.
2058 (print_frame_args): Remove variable val. New variable arg, call
2059 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2061 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2063 Protect entry values against self tail calls.
2064 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2065 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2067 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2069 Recognize virtual tail call frames.
2070 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2071 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2072 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2073 * dwarf2-frame-tailcall.c: New file.
2074 * dwarf2-frame-tailcall.h: New file.
2075 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2076 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2077 REGS.PREV only after CIE execution.
2078 (struct dwarf2_frame_cache): New field tailcall_cache.
2079 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2080 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2081 parts, try to find entry_cfa_sp_offset. Call
2082 dwarf2_tailcall_sniffer_first.
2083 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2085 (dwarf2_frame_dealloc_cache): New function.
2086 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2087 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2088 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2089 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2090 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2091 * dwarf2loc.c (func_addr_to_tail_call_list)
2092 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2093 (call_site_find_chain_1, call_site_find_chain): New.
2094 * dwarf2loc.h (struct call_site_chain): New.
2095 (call_site_find_chain): New declaration.
2096 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2097 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2098 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2099 * stack.c (frame_info): Support also TAILCALL_FRAME.
2101 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2103 Tail call sites reader implementation.
2104 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2105 fill in TYPE_TAIL_CALL_LIST.
2106 * gdbtypes.h (struct func_type): New field tail_call_list.
2107 (struct call_site): New field tail_call_next.
2108 (TYPE_TAIL_CALL_LIST): New definition.
2110 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2112 Implement basic support for DW_TAG_GNU_call_site.
2113 * block.c: Include gdbtypes.h and exceptions.h.
2114 (call_site_for_pc): New function.
2115 * block.h (call_site_for_pc): New declaration.
2116 * defs.h: Include hashtab.h.
2117 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2119 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2120 ctx_no_push_dwarf_reg_entry_value.
2121 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2122 (dwarf_block_to_dwarf_reg): New function.
2123 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2124 (ctx_no_push_dwarf_reg_entry_value): New function.
2125 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2126 push_dwarf_reg_entry_value.
2127 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2129 * dwarf2loc.c: Include gdbcmd.h.
2130 (dwarf_expr_ctx_funcs): New forward declaration.
2131 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2132 (dwarf_expr_reg_to_entry_parameter)
2133 (dwarf_expr_push_dwarf_reg_entry_value): New.
2134 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2135 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2136 (needs_dwarf_reg_entry_value): New function.
2137 (needs_frame_ctx_funcs): Install it.
2138 (_initialize_dwarf2loc): New function.
2139 * dwarf2loc.h (entry_values_debug): New declaration.
2140 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2141 (read_call_site_scope): New forward declaration.
2142 (process_full_comp_unit): Copy call_site_htab.
2143 (process_die): Support DW_TAG_GNU_call_site.
2144 (read_call_site_scope): New function.
2145 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2146 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2147 (cleanup_htab): Delete.
2148 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2149 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2150 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2151 FIELD_LOC_KIND_DWARF_BLOCK.
2152 * gdbtypes.h (enum field_loc_kind): New entry
2153 FIELD_LOC_KIND_DWARF_BLOCK.
2154 (struct main_type): New loc entry dwarf_block.
2155 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2156 (TYPE_FIELD_DWARF_BLOCK): New.
2157 * python/py-type.c: Include dwarf2loc.h.
2158 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2159 internal_error call on unknown FIELD_LOC_KIND.
2160 * symtab.h (struct symtab): New field call_site_htab.
2161 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2162 (core_addr_hash, core_addr_eq): New functions.
2164 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2167 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2168 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2169 calling_convention under func_stuff there.
2170 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2171 (init_type) <TYPE_CODE_FUNC>: Likewise.
2172 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2173 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2174 * gdbtypes.h (enum type_specific_kind): Change
2175 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2176 (struct main_type) <type_specific>: Change calling_convention to
2177 func_stuff. Move calling_convention to ...
2178 (struct func_type): ... this new struct.
2179 (INIT_FUNC_SPECIFIC): New #define.
2180 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2182 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2184 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2185 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2186 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2187 ctx->ref_addr_size. Handle its invalid value.
2188 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2189 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2190 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2191 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2192 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2193 (dwarf2_per_cu_ref_addr_size): New function.
2195 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2198 * dwarf2read.c (per_cu_header_read_in): New function.
2199 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2200 variables cu_header_local and cu_headerp.
2202 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2204 Fix initial language detection with -readnow.
2205 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2206 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2207 searches only for global symbols.
2209 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2211 Fix printed anonymous struct name.
2212 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2213 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2214 (anonymous_struct_prefix): New function.
2215 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2216 (dwarf2_name): Strip for anonymous structs any prefixes.
2218 2011-10-07 Doug Evans <dje@google.com>
2220 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2223 * python/lib/gdb/printing.py: Whitespace cleanup.
2225 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2228 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2230 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2231 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2232 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2233 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2234 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2235 (arm_linux_remove_watchpoint): Adjust.
2236 * i386-linux-nat.c (i386_linux_dr_set_control)
2237 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2238 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2239 (ia64_linux_remove_watchpoint): Adjust.
2240 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2241 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2242 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2243 (ppc_linux_insert_mask_watchpoint)
2244 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2245 (ppc_linux_remove_watchpoint): Adjust.
2246 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2249 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2251 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2252 (clear_win32_environment): New function for Cygwin to clear out
2254 (windows_create_inferior): Prepare new environment from in_env
2257 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2260 * python/py-value.c (valpy_call): Check that arguments are
2262 (is_intlike): Remove call to CHECK_TYPEDEF.
2263 (valpy_nonzero): Catch GDB exceptions.
2264 (valpy_absolute): Ditto.
2265 (valpy_lazy_string): Ditto.
2266 (valpy_call): Ditto.
2267 (valpy_get_is_optimized_out): Ditto.
2268 (valpy_long): Ditto.
2269 (valpy_float): Ditto.
2270 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2271 (valpy_richcompare): Ditto.
2273 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2275 * inferior.h (disable_randomization): Declare.
2276 * infrun.c (disable_randomization): New global variable.
2277 (show_disable_randomization): New function.
2278 (set_disable_randomization): Likewise.
2279 (_initialize_infrun): Install set/show disable-randomization
2281 * linux-nat.c (disable_randomization): Remove.
2282 (show_disable_randomization): Likewise.
2283 (set_disable_randomization): Likewise.
2284 (_initialize_linux_nat): No longer install set/show
2285 disable-randomization commands here.
2286 (linux_nat_supports_disable_randomization): New function.
2287 (linux_nat_add_target): Install it.
2288 * remote.c (PACKET_QDisableRandomization): New enum value.
2289 (remote_protocol_packets): Support QDisableRandomization.
2290 (_initialize_remote): Likewise.
2291 (remote_supports_disable_randomization): New function.
2292 (init_remote_ops): Install it.
2293 (extended_remote_supports_disable_randomization): New function.
2294 (init_extended_remote_ops): Install it.
2295 (extended_remote_disable_randomization): New function.
2296 (extended_remote_create_inferior_1): Call it.
2297 * target.h (struct target_ops): Add to_supports_disable_randomization.
2298 (target_supports_disable_randomization): Add prototype.
2299 * target.c (target_supports_disable_randomization): New function.
2300 (find_default_supports_disable_randomization): Likewise.
2301 (init_dummy_target): Install it.
2303 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2305 Allow Python notification of new object-file loadings.
2306 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2307 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2308 Add build rule for this file.
2309 * python/py-event.h (emit_new_objfile_event): New prototype.
2310 (newobjfile): New Python event emitter.
2311 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2312 Python event registry.
2313 * python/py-inferior.c: Include objfiles.h
2314 (python_new_objfile): New function.
2315 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2317 * python/py-newobjfileevent.c: New file.
2318 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2320 * python/python.c (_initialize_python): Add
2321 gdbpy_initialize_new_objfile_event call.
2322 * NEWS: Add item for new Python event "gdb.newobjfile"
2324 2011-10-05 Tristan Gingold <gingold@adacore.com>
2326 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2327 Extract the ravenscar task name from the symbol for the atcb.
2329 2011-10-04 Paul Koning <paul_koning@dell.com>
2331 * python/py-type.c (typy_make_iter): Add forward declaration.
2332 (typy_fields_items): Use the gdb.Type iterator.
2334 2011-10-04 Paul Koning <paul_koning@dell.com>
2336 * NEWS: Add entry for Python gdb.Type mapping methods.
2338 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2340 PR python/12691: Add the inferior to Python exited event
2341 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2343 * python/py-event.h (emit_exited_event): Likewise
2344 * python/-inferior.c (python_inferior_exit): Likewise
2346 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2348 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2349 in output of -ada-task-info GDB/MI command.
2351 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2353 * ada-lang.h (struct inferior): Declare.
2354 (print_ada_task_info): Add declaration.
2355 * ada-tasks.c (print_ada_task_info): Make non-static.
2356 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2357 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2358 * mi/mi-main.c: #include "ada-lang.h".
2359 (mi_cmd_list_features): Add "ada-task-info" to the list
2360 of supported features.
2361 (mi_cmd_ada_task_info): New function.
2363 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2365 * python/python.c (python_run_simple_file): New function.
2366 (source_python_script, source_python_script_for_objfile):
2367 Replace call to PyRun_SimpleFile by call to
2368 python_run_simple_file.
2370 2011-10-03 Paul Koning <paul_koning@dell.com>
2372 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2373 (value_to_value_object): Fetch value if it was lazy.
2375 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2378 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2379 Rearrange the code for it.
2381 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2383 * breakpoint.c (bkpt_print_recreate): Add call to
2384 print_recreate_thread.
2386 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2388 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2389 PTRACE_GETFDPIC_INTERP): Define.
2391 2011-09-28 Yao Qi <yao@codesourcery.com>
2393 * symfile.c (add_symbol_file_command): Update message on usage.
2395 2011-09-28 Paul Koning <paul_koning@dell.com>
2397 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2398 (typy_length, typy_get, typy_has_key, typy_make_iter)
2399 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2400 (typy_iterator_iter, typy_iterator_iternext)
2401 (typy_iterator_dealloc): New functions to implement standard
2402 Python mapping methods on gdb.Type object.
2403 (gdb.TypeIterator): New Python type.
2404 * python/python-internal.h (gdbpy_iter_kind): New enum.
2406 2011-09-28 David S. Miller <davem@davemloft.net>
2408 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2409 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2410 * sparc-tdep.c (sparc_complex_floating_p): New function.
2411 (sparc32_store_arguments): Handle complex floats.
2412 (sparc32_extract_return_value): Likewise.
2413 (sparc32_store_return_value): Likewise.
2414 (sparc32_stabs_argument_has_addr): Likewise.
2415 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2416 (sparc64_store_floating_fields): Handle complex floats.
2417 (sparc64_store_arguments): Likewise.
2418 (sparc64_store_return_value): Likewise.
2420 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2422 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2423 before the change on 2006-12-09.
2424 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2425 generates the environment block for CreateProcessA, modulo the
2426 Cygwin-specific parts that are not needed here.
2428 2011-09-27 Tristan Gingold <gingold@adacore.com>
2430 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2431 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2432 (darwin_solib_get_all_image_info_addr_at_init): New function.
2433 (darwin_solib_read_all_image_info_addr): Likewise.
2434 (darwin_solib_create_inferior_hook): Use the above two functions.
2435 * darwin-nat.c (darwin_execvp): Renames retval to res.
2436 (darwin_read_write_inferior): Update comment.
2437 (darwin_read_dyld_info): New function.
2438 (darwin_xfer_partial): Handle DYLD_INFO.
2440 2011-09-27 Stan Shebs <stan@codesourcery.com>
2442 Add return address collection for tracepoints.
2443 * tracepoint.c (encode_actions_1): Add case for $_ret.
2444 (validate_actionline): Check for $_ret.
2445 (trace_dump_actions): Ditto.
2446 * ax-gdb.h (gen_trace_for_return_address): Declare.
2447 * ax-gdb.c: Include arch-utils.h.
2448 (gen_trace_for_return_address): New function.
2449 (agent_command): Add return address special case.
2450 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2451 (amd64_gen_return_address): New function.
2452 (amd64_init_abi): Call it.
2453 * i386-tdep.c: Include ax.h and ax-gdb.h.
2454 (i386_gen_return_address): New function.
2455 (i386_init_abi): Call it.
2456 * arch-utils.h (default_gen_return_address): Declare.
2457 * arch-utils.c (default_gen_return_address): New function.
2458 * gdbarch.sh (gen_return_address): New method.
2459 * gdbarch.h, gdbarch.c: Regenerate.
2461 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2464 * i386-tdep.c (i386_frame_align): New.
2465 (i386_gdbarch_init): Use i386_frame_align.
2467 2011-09-23 Yao Qi <yao@codesourcery.com>
2469 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2472 2011-09-22 Tristan Gingold <gingold@adacore.com>
2474 * fork-child.c (fork_inferior): Add exec_fun parameter.
2475 Call exec_fun or execvp.
2476 * inferior.h: Adjust prototype.
2477 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2478 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2479 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2480 * procfs.c (procfs_create_inferior): Ditto.
2481 * darwin-nat.c (darwin_execvp): New function.
2482 (darwin_create_inferior): Use it.
2484 2011-09-22 Yao Qi <yao@codesourcery.com>
2486 * infrun.c (context_switch): Print debug message when switching to
2489 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2491 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2492 complex and vector types.
2493 (s390_return_value_convention): Likewise.
2495 (s390_value_from_register): Call check_typedef.
2496 (extend_simple_arg): Likewise.
2497 (alignment_of): Likewise.
2498 (s390_push_dummy_call): Likewise.
2499 (s390_return_value): Likewise.
2501 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2503 * event-top.c (async_disconnect): If an exception is thrown from
2504 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2506 * top.c (quit_cover): Return void and take no arguments.
2507 * top.h (quit_cover): Update prototype.
2509 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2511 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2512 current_uiout, not uiout.
2514 2011-09-19 Doug Evans <dje@google.com>
2516 * python/py-auto-load.c (source_section_scripts): Fix file
2518 * python/python.c (source_python_script_for_objfile): Tweak comments.
2520 2011-09-18 Yao Qi <yao@codesourcery.com>
2521 Ulrich Weigand <ulrich.weigand@linaro.org>
2523 Support displaced stepping for Thumb 16-bit insns.
2524 * arm-tdep.c (THUMB_NOP) Define.
2525 (thumb_copy_unmodified_16bit): New.
2526 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2527 (thumb_copy_alu_reg): New.
2528 (arm_copy_svc): Move some common code to ...
2529 (install_svc): ... here. New.
2530 (thumb_copy_svc): New.
2531 (install_pc_relative): New.
2532 (thumb_copy_pc_relative_16bit): New.
2533 (thumb_decode_pc_relative_16bit): New.
2534 (thumb_copy_16bit_ldr_literal): New.
2535 (thumb_copy_cbnz_cbz): New.
2536 (cleanup_pop_pc_16bit_all): New.
2537 (thumb_copy_pop_pc_16bit): New.
2538 (thumb_process_displaced_16bit_insn): New.
2539 (thumb_process_displaced_32bit_insn): New.
2540 (thumb_process_displaced_insn): process thumb instruction.
2542 Support displaced stepping for Thumb 32-bit insns.
2543 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2544 (thumb2_copy_preload): New.
2545 (thumb2_copy_copro_load_store): New.
2546 (thumb2_copy_b_bl_blx): New.
2547 (thumb2_copy_alu_imm): New.
2548 (thumb2_copy_load_reg_imm): New.
2549 (thumb2_copy_load_literal): New
2550 (thumb2_copy_block_xfer): New.
2551 (thumb_32bit_copy_undef): New.
2552 (thumb_32bit_copy_unpred): New.
2553 (thumb2_decode_ext_reg_ld_st): New.
2554 (thumb2_decode_svc_copro): New.
2555 (decode_thumb_32bit_store_single_data_item): New.
2556 (thumb_copy_pc_relative_32bit): New.
2557 (thumb_decode_pc_relative_32bit): New.
2558 (decode_thumb_32bit_ld_mem_hints): New.
2559 (thumb2_copy_table_branch): New
2560 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2563 2011-09-18 Yao Qi <yao@codesourcery.com>
2565 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2566 (install_b_bl_blx): Likewise.
2568 2011-09-17 Yao Qi <yao@codesourcery.com>
2570 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2571 (install_load_store): ... this. New.
2572 Change parameter BYTE to SIZE.
2573 (arm_copy_ldr_str_ldrb_strb): Update caller.
2574 (arm_decode_ld_st_word_ubyte): Update caller.
2576 2011-09-17 Yao Qi <yao@codesourcery.com>
2578 * infrun.c (displaced_step_fixup): Move some code ...
2579 (displaced_step_restore): ... here. New function.
2580 (handle_inferior_event): Cleanup displaced stepping state for both
2581 child and parent when get forked or vforked event.
2582 * regcache.c (get_thread_arch_aspace_regcache): New function.
2583 get_thread_arch_regcache (): Call it.
2585 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2587 * ada-tasks.c (print_ada_task_info): New function, merging
2588 short_task_info and info_tasks together. Reimplement using
2589 ui-out instead of printing to stdout directly. Move the code
2590 building and checking the task list here, instead of leaving it
2591 in info_tasks_command.
2592 (info_task): Move the code building and checking the task
2593 list here, instead of leaving it in info_tasks_command.
2594 (info_tasks_command): Delete code building and checking
2595 the task list - moved elsewhere. Update calls to info_tasks
2598 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2600 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2602 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2604 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2606 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2608 * ada-lang.h (ada_build_task_list): Remove parameter
2610 * ada-tasks.c (ada_build_task_list): Remove parameter
2611 `warn_if_null'. Adjust implementation and documentation.
2612 (valid_task_id, ada_get_environment_task)
2613 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2614 (info_tasks_command): Adjust implementation.
2615 (task_command): Likewise.
2616 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2617 to ada_build_task_list.
2619 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2621 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2622 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2623 (ada_tasks_inferior_data_handle): New static global.
2624 (get_ada_tasks_inferior_data): New function.
2625 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2626 (ada_get_environment_task, iterate_over_live_ada_tasks)
2627 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2629 (ada_set_current_inferior_known_tasks_addr): New function.
2630 (read_known_tasks, ada_build_task_list, short_task_info)
2631 (info_tasks, info_task, info_tasks_command, task_command_1)
2632 (task_command, ada_task_list_changed): Adjust.
2633 (ada_tasks_invalidate_inferior_data): New function.
2634 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2635 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2636 * ada-lang.h (struct inferior): Add declaration.
2637 (ada_task_list_changed): Update profile.
2638 * remote-wtx-pd.c: #include "inferior.h".
2639 (switch_to_pd_internal): Update call to ada_task_list_changed.
2641 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2643 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2644 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2645 (atcb_fieldno): Delete these static globals.
2646 (struct ada_tasks_pspace_data): New struct.
2647 (ada_tasks_pspace_data_handle): New static global.
2648 (get_ada_tasks_pspace_data): New function.
2649 (ada_tasks_invalidate_pspace_data): New function.
2650 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2651 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2652 (_initialize_tasks): Create this module's per-progspace
2655 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2657 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2659 2011-09-16 Tristan Gingold <gingold@adacore.com>
2661 * fork-child.c (fork_inferior): Update comment. Use alloca
2662 instead of xmalloc for argv. Move len and shell_command
2663 declarations in the block where they are used.
2664 Only call execvp. Factorize failure code.
2666 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2669 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2670 `exp_element' instead of an element of the same and make the function
2672 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2673 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2674 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2675 Change argument of `write_exp_elt' function call.
2676 Remove extra spaces from comments.
2677 * parser-defs.h (write_exp_elt): Remove prototype.
2679 2011-09-15 Paul Koning <paul_koning@dell.com>
2681 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2682 count of item appended to list.
2683 * python/py-type.c (typy_fields): Likewise.
2685 2011-09-15 Paul Koning <paul_koning@dell.com>
2687 * MAINTAINERS (Write After Approval): Add myself to the list.
2689 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2692 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2693 processes with multiple threads.
2694 (inf_has_multiple_thread_cb): New function.
2695 (inf_has_multiple_threads): New function.
2697 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2699 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2700 * python/py-inferior.c (GdbMethods): New Python method definition.
2702 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2704 Handle multiple breakpoint hits in Python interface:
2705 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2706 variable to breakpoints.
2707 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2708 bps instead of single breakpoint. Fix some space typos.
2709 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2710 variable to breakpoints.
2712 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2714 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2715 note if the breakpoint is internal.
2717 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2719 * MAINTAINERS (Write After Approval): Add myself to the list
2721 2011-09-14 Pedro Alves <pedro@codesourcery.com>
2723 * infrun.c (prepare_for_detach, wait_for_inferior)
2724 (fetch_inferior_event): Don't flush the register cache.
2725 * remote.c (struct stop_reply) <regcache>: Add comment.
2727 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2729 Remove excessive DWARF expressions memory duplication.
2730 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2732 (indirect_pieced_value): Remove variable result. Remove variable
2733 back_to and its use for baton.data.
2734 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2736 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2737 Update the function comment.
2739 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2741 * inferior.h (ALL_INFERIORS): New.
2742 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2743 for a stopped thread.
2744 (thread_db_find_new_threads): Look for threads in all inferiors.
2746 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2748 * breakpoint.c (update_watchpoint): Handle the case of the
2749 watchpoint to update not being in the breakpoint list yet.
2750 (hw_watchpoint_use_count): New, factored out from
2751 hw_watchpoint_used_count.
2752 (hw_watchpoint_used_count): Rename to ...
2753 (hw_watchpoint_used_count_others): ... this. Add `except'
2754 parameter. Don't count resources of `except'. Use
2755 hw_watchpoint_use_count.
2757 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2759 * gdbthread.h (enum thread_state): Moved here.
2760 (struct thread_info): Rename `executing_' field to `executing' and
2761 `state_' to `state'.
2762 * thread.c (enum thread_state): Moved to gdbthread.h.
2763 (new_thread, add_thread_silent, delete_thread_1)
2764 (any_live_thread_of_process, thread_alive, set_running)
2765 (set_running, is_thread_state, any_running, is_executing)
2766 (set_executing, finish_thread_state, print_thread_info)
2767 (do_captured_thread_select): Adjust.
2769 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2771 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2772 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2774 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2775 Matt Rice <ratmice@gmail.com>
2779 * interps.c (struct interp) <interpreter_out>: Delete field.
2780 (interp_new): Remove the data and uiout parameters and adjust.
2781 (interp_set): Only set the current_uiout from the interpreter's
2782 uiout after initializing the interpreter. Adjust call to
2784 (interp_ui_out): Adjust to call procs->ui_out_proc.
2785 (interp_data, interp_name): New.
2786 * interps.h (interp_init_ftype): Add `self' parameter.
2787 (interp_ui_out_ftype): New typedef.
2788 (struct interp_procs) <ui_out_proc>: New method pointer.
2789 (interp_new): Remove the data and uiout parameters.
2790 (interp_data, interp_name): Declare.
2791 * tui/tui-interp.c (tui_init): Adjust prototype.
2793 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2794 tui_out here. Adjust call to interp_new.
2795 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2796 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2798 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2799 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2800 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2801 Initialize mi->uiout depending on the mi_version as extracted from
2802 the interpreter's name.
2804 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2805 interp_new. Don't allocate the ui_out's of the interpreters here.
2807 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2809 * solib.c (solib_used): New function.
2810 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2811 by another so_list object before freeing it.
2813 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2816 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2819 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2822 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2823 (amd64_skip_xmm_prologue): ... this new function. Describe its
2824 parameters. No longer use amd64_prologue_line_bug.
2825 * defs.h (producer_is_gcc_ge_4): New declaration.
2826 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2827 (process_full_comp_unit): Update its caller. Remove
2828 amd64_prologue_line_bug initialization.
2829 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2830 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2832 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2834 * linux-nat.h (enum resume_kind): New.
2835 (struct lwp_info) <last_resume_kind>: New field.
2836 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2837 resume_stop on the new lwp.
2838 (add_lwp): Set last_resume_kind as resume_continue by default.
2839 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2840 (resume_lwp): New, factored out from resume_callback. Also check
2841 for pending status in lp->waitstatus.
2842 (resume_callback): Reimplement.
2843 (resume_clear_callback): Set last_resume_kind as resume_stop.
2844 (resume_set_callback): Set last_resume_kind as resume_continue.
2845 (linux_nat_resume, linux_handle_extended_wait): Set
2847 (running_callback): Also check lp->waitstatus for pending events.
2848 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2850 (stop_and_resume_callback): Don't re-resume if the core wanted the
2851 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2852 using an invalidated pointer.
2853 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2854 SIGSTOPs if the core wanted the LWP to stop.
2855 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2856 wanted the lwp to stop. If the core wanted the lwp to stop, and
2857 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2858 of TARGET_SIGNAL_STOP.
2859 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2860 here. Instead, signal the lwp, and set the last_resume_kind to
2863 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2865 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2866 -1 (error), if the lwp exits right after attaching.
2868 2011-09-08 Doug Evans <dje@google.com>
2870 * py-cmd.c: Some minor formatting fixes.
2871 (gdbpy_parse_command_name): Rename text arg to name, make const.
2872 All callers updated.
2873 * python-internal.h (gdbpy_parse_command_name): Update.
2875 * cli/cli-decode.c (add_cmd): Add comment.
2877 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2879 PR breakpoints/12435
2880 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2881 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2882 * dwarf2read.c (process_full_comp_unit): Initialize
2883 amd64_prologue_line_bug.
2884 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2886 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2888 Fix TUI screen corruption.
2889 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2892 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2894 * findvar.c (read_var_value): Never return NULL, throw an error
2895 instead. Update the function comment. State symbol name in the error
2897 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2899 * stack.c (print_frame_args): Likewise.
2900 * valops.c (value_of_variable): Likewise.
2902 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2904 * stack.c (print_frame_args): New variable except. Wrap
2905 read_var_value and common_val_print into TRY_CATCH.
2907 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2909 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2910 caller to value_of_this.
2911 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2913 * valops.c (value_of_this): Remove parameter complain and variable ret.
2914 Update function comment. Never return NULL by this code.
2915 (value_of_this_silent): New function.
2916 * value.h (value_of_this): Remove parameter complain.
2917 (value_of_this_silent): New declaration.
2919 2011-09-07 Yao Qi <yao@codesourcery.com>
2921 * gdbthread.h (struct thread_info): Remove fields
2922 `stepping_through_solib_after_catch' and
2923 `stepping_through_solib_catchpoints'.
2924 * infrun.c (init_thread_stepping_state): Update.
2925 (process_event_stop_test, currently_stepping): Update.
2926 (currently_stepping_or_nexting_callback): Update.
2928 2011-09-07 Yao Qi <yao@codesourcery.com>
2930 * gdbthread.h (struct thread_info): Comment on field
2931 `step_after_step_resume_breakpoint'.
2933 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2935 * remote.c (remote_console_output): Reindent.
2937 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
2939 * frame.c (has_stack_frames): Check for currently selected
2942 2011-09-06 Pedro Alves <pedro@codesourcery.com>
2944 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2945 (set_async_annotation_level, set_async_prompt, pop_prompt)
2946 (push_prompt, new_async_prompt): Delete declarations.
2947 * top.h (get_prompt, set_prompt): Change prototype.
2948 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2950 * top.c (command_loop):
2951 (top_prompt): New global.
2952 (get_prefix, set_prefix, get_suffix, ): Delete.
2953 (get_prompt, set_prompt): Rewrite.
2954 (show_new_async_prompt): Rename to ...
2955 (show_prompt): ... this.
2956 (init_main): Adjust. Don't handle --annotate=2 here.
2957 * event-top.c (new_async_prompt): Delete.
2958 (the_prompts): Delete.
2959 (more_to_come): Make static.
2960 (display_gdb_prompt): Use top_level_prompt() to compute the top
2961 level prompt, and don't notify the before_prompt observers
2962 directly here. Always trick readline into not trying to display
2963 the prompt if sync_execution and displaying the primary prompt.
2964 If displaying a local/secondary prompt, always show it, even if
2965 sync_execution is set.
2966 (change_annotation_level): Delete.
2967 (top_level_prompt): New, based on change_annotation_level.
2968 (push_prompt, pop_prompt): Delete.
2969 (async_disable_stdin): No longer pushes prompt.
2970 (command_line_handler): No longer pushes or pops prompt. If more
2971 input is expected, call display_gdb_prompt with an explicit empty
2973 (async_stop_sig): Adjust.
2974 (set_async_annotation_level, set_async_prompt): Delete.
2975 * python/python.c (before_prompt_hook): Adjust.
2977 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2981 * infrun.c (fetch_inferior_event): Check if there's a selected
2982 thread before checking if the selected thread is executing.
2984 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2986 * inf-loop.c (execute_command): Don't check if the current thread
2987 if running before synchronously waiting for command completion.
2988 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2990 (normal_stop): Call async_enable_stdin here.
2991 * inf-loop.c (inferior_event_handler): Don't call
2992 async_enable_stdin, nor handle "set exec-done-display" here.
2994 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2998 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3000 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3002 2011-09-04 Joel Brobecker <brobecker@adacore.com>
3004 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3006 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3008 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3010 2011-09-02 Matt Rice <ratmice@gmail.com>
3013 * event-top.c (cli_command_loop): Replace readline setup with
3014 direct call to display_gdb_prompt.
3015 (display_gdb_prompt): Do not call observer mechanism during
3016 synchronous execution.
3018 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3020 * linux-nat.c (in_pid_list_p): New.
3021 (linux_record_stopped_pid): Delete.
3022 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3023 already attached to the LWP. Return an indication if so.
3024 (linux_nat_filter_event): Adjust.
3025 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3026 returning an indication to ignore this thread.
3028 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3030 * top.c: Include interps.h.
3031 (execute_command): If the target can async, but the interpreter is
3032 in sync mode, synchronously wait for the command to finish before
3034 (execute_command_to_string): Force the interpreter to sync mode.
3035 * infrun.c: Include interps.h.
3036 (fetch_inferior_event): Don't restore the prompt yet if the
3037 interpreter is in sync mode.
3038 * interps.c (interpreter_async): New global.
3039 * interps.h (interpreter_async): Declare.
3040 * inf-loop.c: Include interps.h.
3041 (inferior_event_handler): Don't print the language change or run
3042 breakpoint commands yet if the interpreter in is sync mode.
3043 * main.c (captured_command_loop): Flip the interpreter to async
3045 * cli/cli-script.c: Include interps.h.
3046 (execute_user_command, while_command, if_command): Force the
3047 interpreter to sync mode.
3048 * python/python.c: Include interps.h.
3049 (python_command, execute_gdb_command): Force the interpreter to
3052 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3054 * value.c (show_convenience): Catch errors thrown while printing
3055 each internal variable.
3056 * infrun.c (validate_siginfo_access): New function.
3057 (siginfo_value_read, siginfo_value_write): Call it.
3059 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3062 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3063 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3066 2011-08-29 Yao Qi <yao@codesourcery.com>
3068 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3070 (enable_break2): Update caller.
3071 * solib-frv.c (bfd_lookup_symbol): Removed.
3073 (enable_break2): Update caller.
3074 * solib-pa64.c (bfd_lookup_symbol): Removed.
3076 * solib-svr4.c (bfd_lookup_symbol): Removed.
3077 (cmp_name_and_sec_flags): New.
3078 (enable_break): Update caller.
3079 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3080 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3081 (gdb_bfd_lookup_symbol): New.
3082 * solib.h: Functions declarations.
3084 2011-08-29 Yao Qi <yao@codesourcery.com>
3086 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3089 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3091 Fix TUI stepi on code without symbols.
3092 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3095 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3098 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3099 and the static keyword.
3100 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3101 Make prefix an array.
3102 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3103 * mi/mi-main.c (get_register): Remove stb initialization and the static
3106 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3108 Code cleanup - make mi_opt const.
3109 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3111 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3112 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3113 (mi_cmd_env_dir): Likewise.
3114 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3115 (mi_cmd_target_file_put): Likewise.
3116 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3117 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3118 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3119 (mi_valid_noargs): Make opts const.
3120 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3121 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3122 (mi_cmd_data_read_memory): Likewise.
3123 (mi_cmd_data_read_memory_bytes): Likewise.
3124 (mi_cmd_data_write_memory): Likewise.
3126 2011-08-26 Matt Rice <ratmice@gmail.com>
3128 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3129 bcache_xmalloc, replace bcache_xmalloc with call to
3130 psymbol_bcache_init for psymbol_cache.
3131 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3133 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3135 * inf-loop.c (inferior_event_handler): Add exception_print in
3138 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3140 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3141 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3142 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3143 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3144 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3145 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3146 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3147 * infrun.c (fetch_inferior_event): Call
3148 make_bpstat_clear_actions_cleanup.
3149 * top.c (execute_command): New variable cleanup_if_error, call
3150 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3151 * utils.c (do_bpstat_clear_actions_cleanup)
3152 (make_bpstat_clear_actions_cleanup): New functions.
3154 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3156 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3157 either the parent or the child forks. Rename a couple locals.
3159 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3161 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3162 library call. Avoid reading the `status' local if all waitpid
3165 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3167 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3168 opening /proc/PID/task always succeeds.
3170 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3172 * linespec.c (symtab_from_filename): Check for the end of string.
3174 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3177 * varobj.c (cplus_describe_child): Add the keyword
3178 'class' to the output of the method when dealing
3179 with a cast to a base class.
3181 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3183 No functionality change.
3184 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3185 function comment a reference, new variables tp and bs, move here code
3186 from throw_exception.
3187 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3188 describe it in the comment.
3189 * exceptions.c (throw_exception): Remove variable tp, move the code for
3190 bpstat_clear_actions to bpstat_clear_actions.
3192 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3194 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3195 * linux-nat.c: Include linux-procfs.h.
3196 (linux_proc_get_tgid): Move to ...
3197 * common/linux-procfs.c: ... here. New file.
3198 * common/linux-procfs.h: New file.
3199 * linux-thread-db.c: Include linux-procfs.h.
3200 * Makefile.in: Update dependencies.
3201 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3202 * config/arm/linux.mh: Likewise.
3203 * config/i386/linux.mh: Likewise.
3204 * config/i386/linux64.mh: Likewise.
3205 * config/ia64/linux.mh: Likewise.
3206 * config/m32r/linux.mh: Likewise.
3207 * config/m68k/linux.mh: Likewise.
3208 * config/mips/linux.mh: Likewise.
3209 * config/pa/linux.mh: Likewise.
3210 * config/pa/linux.mh: Likewise.
3211 * config/powerpc/linux.mh: Likewise.
3212 * config/powerpc/ppc64-linux.mh: Likewise.
3213 * config/powerpc/spu-linux.mh: Likewise.
3214 * config/sparc/linux.mh: Likewise.
3215 * config/sparc/linux64.mh: Likewise.
3216 * config/xtensa/linux.mh: Likewise.
3218 2011-08-24 Hui Zhu <teawater@gmail.com>
3220 * tracepoint.c (cond_string_is_same): New function.
3221 (find_matching_tracepoint): Add condition check
3222 by cond_string_is_same.
3224 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3226 Fix build error in Darwin port.
3227 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3229 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3232 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3233 (command_line_is_silent): New function.
3234 (bpstat_do_actions_1): No longer use commands_left, use
3235 command_line_is_silent for commands.
3236 (bpstat_alloc): Remove clearing of commands_left.
3237 (bpstat_stop_status): Remove initialization of commands_left, use
3238 command_line_is_silent.
3239 * breakpoint.h (struct bpstats): Remove commands_left.
3241 2011-08-18 Keith Seitz <keiths@redhat.com>
3244 * cp-name-parser.y (struct demangle_info): Remove unused
3247 (allocate_info): Change return type to struct demangle_info *.
3248 Always allocate a new demangle_info.
3249 Remove unused PREV pointer.
3250 (cp_new_demangle_parse_info): New function.
3251 (cp_demangled_name_parse_free): New function.
3252 (do_demangled_name_parse_free_cleanup): New function.
3253 (make_cleanup_cp_demangled_name_parse_free): New function.
3254 (cp_demangled_name_to_comp): Change return type to
3255 struct demangle_parse_info *.
3256 Allocate a new storage for each call.
3257 (main): Update usage for cp_demangled_name_to_comp
3259 * cp-support.h (struct demangle_parse_info): New structure.
3260 (cp_demangled_name_to_comp): Update API change for
3262 (cp_new_demangle_parse_info): Declare.
3263 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3264 (cp_demangled_name_parse_free): Declare.
3265 * cp-support.c (cp_canonicalize_string): Update API
3266 change for cp_demangled_name_to_comp.
3267 (mangled_name_to_comp): Likewise.
3268 Return struct demangle_parse_info, too.
3269 (cp_class_name_from_physname): Update mangled_name_to_comp
3271 (method_name_from_physname): Likewise.
3272 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3273 (cp_remove_params): Likewise.
3274 * python/py-type.c (typy_legacy_template_argument): Likewise.
3276 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3277 (cp_merge_demangle_parse_infos): Declare.
3278 * cp-support.c (ignore_typedefs): New file global.
3279 (copy_string_to_obstack): New function.
3280 (inspect_type): New function.
3281 (replace_typedefs): New function.
3282 (replace_typedefs_qualified_name): New function.
3283 (cp_canonicalize_string_no_typedefs): New function.
3284 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3285 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3286 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3287 instead of cp_canonicalize_string.
3288 (find_method): Likewise.
3289 (decode_compound): Before looking up the name, call
3290 cp_canonicalize_string_no_typedefs.
3291 (decode_variable): Likewise.
3293 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3294 Tom Tromey <tromey@redhat.com>
3295 Matt Rice <ratmice@gmail.com>
3297 * python/lib/gdb/prompt.py: New file.
3298 * python/lib/gdb/command/prompt.py: New file.
3299 * NEWS: Document set extended-prompt and gdb.prompt library
3301 2011-08-16 Yao Qi <yao@codesourcery.com>
3303 * tic6x-linux-tdep.c: Move const arrays definition from here...
3304 * tic6x-tdep.c: to here ...
3306 2011-08-14 Yao Qi <yao@codesourcery.com>
3308 * NEWS: New port to Texas Instruments TMS320C6x.
3310 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3311 Bernd Schmidt <bernds@codesourcery.com>
3312 Yao Qi <yao@codesourcery.com>
3314 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3315 * solib-dsbt.c: New file. Support DSBT shared object.
3316 * tic6x-linux-tdep.c: New file.
3317 * tic6x-tdep.c: New file.
3318 * tic6x-tdep.h: New file.
3320 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3321 Yao Qi <yao@codesourcery.com>
3323 * remote.c (PACKET_qXfer_fdpic): New enum value.
3324 (remote_protocol_features): Add qXfer:fdpic:read packet.
3325 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3326 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3327 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3329 2011-08-14 Yao Qi <yao@codesourcery.com>
3331 Target description for tic6x.
3332 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3333 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3334 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3335 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3336 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3337 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3338 * features/tic6x-c64xp-linux.xml: New.
3339 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3340 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3341 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3342 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3343 * regformats/tic6x-c64xp.dat,
3344 regformats/tic6x-c62x-linux.dat: Generated.
3345 * regformats/tic6x-c64x-linux.dat,
3346 regformats/tic6x-c64xp-linux.dat: Generated.
3347 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3348 features/tic6x-*.c files.
3349 Add regformats/tic6x-*.dat files.
3351 2011-08-12 Doug Evans <dje@google.com>
3353 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3354 * python/py-symbol.c (sympy_get_type): New function.
3355 (symbol_object_getset): Add "type".
3357 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3361 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3363 (tui_show_register_group): Don't store a byte buffer in the data
3365 (tui_register_format): Skip registers with an empty name.
3366 (tui_get_register): Store a struct value in the data element's
3367 value field instead of a byte buffer holding the raw register
3368 contents. Account for optimized-out and unavailable registers
3369 when comparing register contents.
3371 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3373 * printcmd.c (current_display_number): Update comment.
3374 (disable_current_display_cleanup): Delete.
3375 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3376 catch errors thrown while evaluating and printing the display.
3378 2011-08-09 Tom Tromey <tromey@redhat.com>
3380 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3382 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3384 * elfread.c (elf_symtab_read): Rework comments.
3385 * maint.c (maintenance_command): Ditto.
3386 * somread.c (som_symtab_read): Ditto.
3387 * solib.c (solib_find, solib_map_sections, update_solib_list)
3388 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3389 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3390 (sharedlibrary_command, no_shared_libraries): Ditto.
3391 * solib-irix.c (locate_base, disable_break, enable_break)
3392 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3393 (irix_current_sos, irix_open_symbol_file_object)
3394 (irix_special_symbol_handling): Ditto.
3395 * solib-sunos.c (locate_base, first_link_map_member)
3396 (sunos_current_sos, disable_break, enable_break)
3397 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3399 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3400 (open_symbol_file_object, svr4_current_sos, enable_break)
3401 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3403 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3404 (frv_current_sos, enable_break, frv_special_symbol_handling)
3405 (frv_solib_create_inferior_hook): Ditto.
3406 * solist.h (struct target_so_ops): Extend the comments of the
3407 special_symbol_handling, current_sos and open_symbol_file_object
3410 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3412 * python/lib/gdb/__init__.py: Auto-load files in command and
3413 function directories.
3414 * python/python.c (finish_python_initialization): Use
3416 * python/lib/gdb/command/pretty_printers.py: Self register
3418 * NEWS: Document auto-loading.
3420 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3422 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3423 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3424 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3426 2011-08-08 Tom Tromey <tromey@redhat.com>
3428 * breakpoint.c (clean_up_filters): Remove.
3429 (catch_syscall_split_args): Use VEC_cleanup.
3431 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3433 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3434 (main): Uncomment "Demangling error\n".
3436 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3438 * solib-target.c (segment_attributes): Make them static.
3439 (section_attributes, library_children, library_attributes): Likewise.
3440 (library_list_children, library_list_attributes): Likesise.
3441 (library_list_elements): Likewise.
3443 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3445 * exceptions.c (throw_exception): Don't disable the current
3447 * printcmd.c (disable_current_display_cleanup): New function.
3448 (do_one_display): Install a cleanup to disable the current display
3449 if doing the display throws.
3451 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3453 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3454 initialization of the tp_new member to the corresponding
3455 gdbpy_initialize_* function.
3456 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3457 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3458 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3459 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3460 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3462 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3464 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3465 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3466 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3467 references to current_uiout.
3469 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3471 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3472 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3473 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3474 * top.c (gdb_readline_wrapper): Adjust.
3475 * tui/tui-interp.c (tui_command_loop):
3476 (_initialize_tui_interp): Don't install it.
3478 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3480 * ui-out.h (uiout): Rename to ...
3481 (current_uiout): ... this.
3482 * ui-out.c (uiout): Rename to ...
3483 (current_uiout): ... this.
3484 * ada-lang.c (print_it_exception, print_one_exception)
3485 (print_mention_exception): Adjust.
3486 * breakpoint.c (watchpoint_check): Adjust.
3487 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3488 (default_collect_info, watchpoints_info, print_one_catch_fork)
3489 (print_one_catch_vfork, print_one_catch_syscall)
3490 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3491 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3492 (print_it_watchpoint, print_mention_watchpoint)
3493 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3494 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3495 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3496 (bkpt_print_mention, momentary_bkpt_print_it)
3497 (tracepoint_print_mention, update_static_tracepoint)
3498 (tracepoints_info, save_breakpoints): Adjust.
3499 * cli-out.c (field_separator): Adjust.
3500 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3501 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3502 * frame.c (get_current_frame): Adjust.
3503 * infcmd.c (run_command_1, print_return_value): Adjust.
3504 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3505 * infrun.c (print_end_stepping_range_reason): Adjust.
3506 (print_signal_exited_reason, print_exited_reason): Adjust.
3507 (print_signal_received_reason, print_no_history_reason): Adjust.
3508 * interps.c (interp_set): Adjust.
3509 * osdata.c (info_osdata_command): Adjust.
3510 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3511 * remote-fileio.c (remote_fileio_request): Adjust.
3512 * remote.c (show_remote_cmd): Adjust.
3513 * solib.c (info_sharedlibrary_command): Adjust.
3514 * source.c (print_source_lines_base): Adjust.
3515 * stack.c (print_stack_frame): Adjust.
3516 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3517 * symfile-mem.c (add_vsyscall_page): Adjust.
3518 * symfile.c (load_progress, generic_load)
3519 (print_transfer_performance): Adjust.
3520 * thread.c (info_threads_command, restore_selected_frame)
3521 (thread_command): Adjust.
3522 * top.c (make_cleanup_restore_ui_file): Adjust.
3523 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3524 (print_one_static_tracepoint_marker): Adjust.
3525 * cli/cli-cmds.c (print_disassembly): Adjust.
3526 * cli/cli-decode.c (print_doc_line): Adjust.
3527 * cli/cli-interp.c (safe_execute_command): Adjust.
3528 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3529 (handle_redirections): Adjust.
3530 * cli/cli-script.c (show_user_1): Adjust.
3531 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3532 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3533 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3534 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3535 (mi_cmd_env_dir): Adjust.
3536 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3537 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3538 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3539 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3540 (list_args_or_locals): Adjust.
3541 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3542 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3543 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3544 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3545 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3546 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3547 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3548 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3549 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3550 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3551 (list_available_thread_groups, mi_cmd_list_thread_groups)
3552 (mi_cmd_data_list_register_names)
3553 (mi_cmd_data_list_changed_registers)
3554 (mi_cmd_data_list_register_values, get_register)
3555 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3556 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3557 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3558 (mi_execute_command, mi_load_progress): Adjust.
3559 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3560 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3562 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3563 * tui/tui-interp.c (tui_command_loop): Adjust.
3564 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3566 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3568 * exceptions.c (struct catcher): Remove saved_uiout field.
3569 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3570 no longer save/resvore the global ui_out builder.
3571 (catch_exceptions_with_msg): Save/override/restore the global
3572 ui_out builder manually instead of relying on TRY_CATCH to do it.
3573 (catch_errors): Save/restore the global ui_out builder manually
3574 instead of relying on TRY_CATCH to do it.
3575 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3577 (TRY_CATCH): Adjust.
3578 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3579 the global ui_out builder manually instead of relying on TRY_CATCH
3582 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3584 * breakpoint.c (update_global_location_list): Ensure
3585 invariant 'first loc marked not duplicated and inserted,
3586 following locs marked duplicated/not inserted' is respected
3587 for multiple locations at the same address.
3588 (unduplicated_should_be_inserted) New function.
3589 (swap_insertion) New function.
3591 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3593 * stack.c (print_frame_arguments_choices): Comment typo fix.
3595 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3598 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3599 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3600 argument. Update callers.
3602 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3605 * doublest.c (convert_doublest_to_floatformat): Pass correct
3606 mantissa length to put_field.
3608 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3610 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3611 exception_print code path.
3612 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3613 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3614 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3616 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3619 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3620 Remove, merge them into ...
3621 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3622 variable args and its initialization.
3623 (struct print_args_args, print_args_stub): Remove, merge them into
3625 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3627 (do_gdb_disassembly): ... here. Remove variable args and its
3629 (print_frame): Remove variable args and its initialization, new
3630 variable gdbarch and numargs (from print_args_stub), inline here
3631 print_args_stub with a TRY_CATCH.
3632 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3634 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3635 New variable e, remove variable btargs and its initialization.
3637 2011-08-01 Tristan Gingold <gingold@adacore.com>
3639 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3641 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3643 * breakpoint.c (insert_bp_location): Document return value.
3644 (insert_breakpoint_locations): Fix documentation.
3645 (remove_breakpoints): Add documentation.
3647 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3649 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3650 argument. Update callers.
3652 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3654 * stack.c (print_frame_info): Comment typo fix.
3656 2011-07-29 Sterling Augustine <saugustine@google.com>
3658 * MAINTAINERS (Write After Approval): Add myself to the list.
3660 2011-07-29 Tom Tromey <tromey@redhat.com>
3662 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3663 (library_list_start_segment): Update.
3664 (library_list_start_section): Update.
3666 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3668 * varobj.c (value_get_print_value): Move hint check later into the
3669 function. Comment function. Free thevalue before reusing it.
3671 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3672 Pedro Alves <pedro@codesourcery.com>
3674 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3676 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3677 Assert the result kind.
3678 * value.h (value_one): Remove parameter lv.
3680 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3682 Fix crash on lval_computed values.
3683 * valops.c (value_zero): Use not_lval for lval_computed.
3685 2011-07-27 Tom Tromey <tromey@redhat.com>
3687 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3688 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3690 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3692 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3693 "ptype" by their typedefs difference.
3695 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3697 * dwarf2expr.c (ctx_no_read_reg): New function.
3698 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3699 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3700 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3701 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3703 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3705 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3706 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3708 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3709 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3710 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3711 (ctx_no_get_base_type): Move the functions here.
3712 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3713 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3714 (ctx_no_get_base_type): New declarations.
3716 2011-07-27 Tom Tromey <tromey@redhat.com>
3718 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3720 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3721 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3723 2011-07-26 Sterling Augustine <saugustine@google.com>
3725 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3727 (dump_bfd_file): Likewise.
3729 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3731 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3732 (remote_hw_watchpoint_length_limit): New variable.
3733 (_initialize_remote) add set,show cmds for this new variable.
3734 * gdb.texinfo: document these new commands.
3735 * NEWS: Mention these new commands.
3737 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3739 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3740 true for software watchpoints.
3742 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3746 2011-07-26 Tom Tromey <tromey@redhat.com>
3748 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3749 * dwarf2read.c (read_indirect_string_at_offset): New function.
3750 (read_indirect_string): Use it.
3751 (dwarf_decode_macro_bytes): New function, taken from
3752 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3753 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3754 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3756 (struct dwarf2_per_objfile) <macro>: New field.
3757 (dwarf2_elf_names): Add .debug_macro.
3758 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3759 (dwarf2_locate_sections): Handle new section.
3760 (read_file_scope): Handle DW_AT_GNU_macros.
3761 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3763 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3765 * NEWS: Mention dcache configuration.
3766 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3767 (dcache_size, dcache_line_size): New variables.
3768 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3769 (struct dcache_block): Make it expandable.
3770 (struct dcache_struct): New field.
3771 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3772 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3773 (dcache_poke_byte, dcache_print_line): Adjust.
3774 (set_dcache_size, set_dcache_line_size): New functions.
3775 (set_dcache_command, show_dcache_command): New functions.
3776 (_initialize_dcache): Add new commands.
3778 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3780 * progspace.h (struct program_space): Add solib_add_generation.
3781 * infcmd.c (post_create_inferior): Only call solib_add if not
3783 * solib.c (solib_add): Increment solib_add_generation.
3785 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3787 Fix implicit pointer offsets.
3788 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3791 2011-07-25 Tom Tromey <tromey@redhat.com>
3793 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3795 (ada_exception_sal): Make 'ops' const.
3796 (ada_decode_exception_location): Likewise.
3797 (ada_decode_assert_location): Likewise.
3798 (catch_assert_command): Update.
3799 (catch_ada_exception_command): Update.
3800 (create_ada_exception_catchpoint): Make 'ops' const.
3801 * breakpoint.c (set_raw_breakpoint_without_location)
3802 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3804 (create_internal_breakpoint): Update.
3805 (init_raw_breakpoint_without_location): Make 'ops' const.
3806 (init_raw_breakpoint, init_catchpoint)
3807 (create_fork_vfork_event_catchpoint)
3808 (create_syscall_event_catchpoint, init_breakpoint_sal)
3809 (create_breakpoint_sal, create_breakpoints_sal)
3810 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3811 * breakpoint.h (struct breakpoint) <ops>: Now const.
3812 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3815 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3817 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3819 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3821 * breakpoint.h (print_recreate_thread): Declare.
3822 (struct breakpoint): Move step_count, pass_count,
3823 number_on_target, static_trace_marker_id,
3824 static_trace_marker_id_idx ...
3825 (struct tracepoint): ... to this new struct.
3826 (get_tracepoint, get_tracepoint_by_number_on_target)
3827 (get_tracepoint_by_number): Change return type to struct
3829 * breakpoint.c (is_tracepoint_type): New, factored out from
3831 (is_tracepoint): Adjust.
3832 (print_one_breakpoint_location): Cast to struct tracepoint as
3833 necessary, and adjust.
3834 (print_recreate_catch_fork, print_recreate_catch_vfork)
3835 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3836 print_recreate_thread.
3837 (init_breakpoint_sal): New, factored out from
3838 create_breakpoint_sal.
3839 (create_breakpoint_sal): Reimplement.
3840 (create_breakpoint): Allocate a struct tracecepoint if the caller
3841 wanted a tracepoint. Use init_breakpoint_sal and
3843 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3844 (print_recreate_masked_watchpoint)
3845 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3846 (tracepoint_print_one_detail): Adjust.
3847 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3848 Dump the pass count here.
3849 (update_static_tracepoint): Adjust.
3850 (addr_string_to_sals): Adjust.
3851 (create_tracepoint_from_upload): Adjust. Change return type to
3852 struct tracepoint pointer.
3853 (trace_pass_set_count): Change parameter type to struct tracepoint
3854 pointer, and adjust.
3855 (trace_pass_command): Adjust.
3856 (get_tracepoint, get_tracepoint_by_number_on_target)
3857 (get_tracepoint_by_number): Change return type to struct
3858 tracepoint pointer, and adjust.
3859 (print_recreate_thread): New, factored out from save_breakpoints.
3860 (save_breakpoints): Don't print thread and task and passcount
3862 * remote.c (remote_download_tracepoint): Adjust.
3863 * tracepoint.c (trace_actions_command, validate_actionline)
3864 (start_tracing, tfind_1, trace_find_tracepoint_command)
3865 (trace_dump_command): Adjust.
3866 (find_matching_tracepoint): Change return type to struct
3867 tracepoint pointer, and adjust.
3868 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3869 (tfile_trace_find, tfile_fetch_registers): Adjust.
3870 * tracepoint.h (create_tracepoint_from_upload): Change return type
3871 to struct tracepoint pointer.
3872 * ada-lang.c (print_recreate_exception): Call
3873 print_recreate_thread.
3874 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3876 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3878 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3879 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3880 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3881 watchpoint_thread, watchpoint_triggered ...
3882 (struct watchpoint): ... to this new struct.
3883 (is_watchpoint): Declare.
3884 (install_breakpoint): Add new `internal' parameter.
3885 * breakpoint.c (is_watchpoint): Delete declaration.
3886 (set_breakpoint_condition): Handle watchpoints.
3887 (is_watchpoint): Make public.
3888 (watchpoint_in_thread_scope): Change parameter type to struct
3890 (watchpoint_del_at_next_stop): Change parameter type to struct
3891 watchpoint. Remove assertion. Adjust.
3892 (update_watchpoint): Ditto.
3893 (insert_breakpoints, breakpoint_init_inferior)
3894 (watchpoints_triggered, watchpoint_check)
3895 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3896 (bpstat_stop_status, print_one_breakpoint_location)
3897 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3898 to struct watchpoint as necessary, and adjust.
3899 (install_breakpoint): Add `internal' argument. If true, don't
3900 mention the new breakpoint. Use set_breakpoint_number.
3901 (create_fork_vfork_event_catchpoint)
3902 (create_syscall_event_catchpoint): Adjust.
3903 (dtor_watchpoint): New.
3904 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3905 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3906 (print_it_watchpoint, print_mention_watchpoint)
3907 (print_recreate_watchpoint, insert_masked_watchpoint)
3908 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3909 (print_one_detail_masked_watchpoint)
3910 (print_mention_masked_watchpoint)
3911 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3912 necessary, and adjust.
3913 (watch_command_1): Allocate and initialize a struct watchpoint
3914 instead of a struct breakpoint. Use install_breakpoint.
3915 (catch_exec_command_1): Adjust.
3916 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3918 (delete_breakpoint, enable_breakpoint_disp)
3919 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3920 as necessary, and adjust.
3921 (initialize_breakpoint_ops): Install dtor_watchpoint as
3922 watchpoints' dtor method.
3923 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3924 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3925 to struct watchpoint as necessary, and adjust.
3927 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3929 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3930 the the base class ops table.
3931 (catch_exception_breakpoint_ops)
3932 (catch_exception_unhandled_breakpoint_ops)
3933 (catch_assert_breakpoint_ops): Don't statically initialize.
3934 (initialize_ada_catchpoint_ops): New.
3935 (_initialize_ada_language): Call it.
3936 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3937 (bkpt_breakpoint_ops): Forward declare.
3938 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3939 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3940 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3941 (masked_watchpoint_breakpoint_ops)
3942 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3943 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3944 base class ops table.
3945 (null_re_set, null_check_status, null_works_in_software_mode)
3946 (null_resources_needed, null_print_one_detail): Delete.
3947 (bkpt_dtor): Rename to ...
3948 (base_breakpoint_dtor): ... this. Make static.
3949 (bkpt_allocate_location): Rename to ...
3950 (base_breakpoint_allocate_location): ... this. Make static.
3951 (base_breakpoint_re_set): New.
3952 (internal_error_pure_virtual_called): New.
3953 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3954 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3955 (base_breakpoint_works_in_software_mode)
3956 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3957 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3958 (base_breakpoint_print_recreate): New functions.
3959 (base_breakpoint_ops): New global.
3960 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3961 (bkpt_breakpoint_hit): Make static.
3962 (bkpt_check_status): Delete.
3963 (bkpt_resources_needed): Make static.
3964 (bkpt_works_in_software_mode): Delete.
3965 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3967 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3968 (momentary_breakpoint_ops): Don't statically initialize.
3969 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3971 (tracepoint_insert_location, tracepoint_remove_location)
3972 (tracepoint_check_status, tracepoint_works_in_software_mode)
3973 (tracepoint_print_it): Delete.
3974 (tracepoint_breakpoint_ops): Don't statically initialize.
3975 (initialize_breakpoint_ops): New.
3976 (_initialize_breakpoint): Call it.
3977 * breakpoint.h (null_re_set, null_works_in_software_mode)
3978 (null_resources_needed, null_check_status, null_print_one_detail):
3979 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3980 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3981 (bkpt_check_status, bkpt_resources_needed)
3982 (bkpt_works_in_software_mode, bkpt_print_it)
3983 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3984 Delete declarations.
3985 (initialize_breakpoint_ops): Declare.
3987 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3989 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3990 (momentary_bkpt_print_it): Simplify.
3992 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3994 Split internal, momentary and user breakpoints breakpoint_ops
3997 * breakpoint.c (internal_breakpoint_ops)
3998 (momentary_breakpoint_ops): Forward declare.
3999 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4000 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4001 (create_overlay_event_breakpoint)
4002 (create_std_terminate_master_breakpoint)
4003 (create_exception_master_breakpoint): Create breakpoints with
4004 internal_breakpoint_ops vtable.
4005 (set_longjmp_breakpoint): Create momentary breakpoints with
4006 momentary_breakpoint_ops vtable, using
4007 momentary_breakpoint_from_master.
4008 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4009 (create_solib_event_breakpoint): Create breakpoints with
4010 internal_breakpoint_ops vtable.
4011 (set_momentary_breakpoint): Create breakpoints with
4012 momentary_breakpoint_ops vtable.
4013 (momentary_breakpoint_from_master): New, factored out from
4014 clone_momentary_breakpoint.
4015 (clone_momentary_breakpoint): Adjust.
4016 (watch_command_1): Create scope breakpoints with
4017 momentary_breakpoint_ops vtable.
4018 (bkpt_re_set): Remove handling of internal and momentary
4020 (bkpt_print_mention, bkpt_print_recreate): New.
4021 (bkpt_breakpoint_ops): Adjust.
4022 (internal_bkpt_re_set, internal_bkpt_check_status)
4023 (internal_bkpt_print_it, internal_bkpt_print_mention)
4024 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4025 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4026 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4027 (momentary_bkpt_print_recreate): New.
4028 (momentary_breakpoint_ops): New.
4030 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4032 Implement most breakpoint_ops methods for all breakpoint types,
4033 and move the default handlings to the proper callbacks.
4035 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4036 works_in_software_mode method.
4037 (insert_bp_location): Go through breakpoint_ops->insert_location
4038 for software and hardware watchpoints.
4039 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4041 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4042 for software and hardware watchpoints.
4043 (print_it_typical): Delete.
4044 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4046 (watchpoint_check): Adjust comment.
4047 (bpstat_check_location): Simply always call the breakpoint's
4048 breakpoint_hit method.
4049 (bpstat_stop_status): Always call the breakpoint's check_status
4050 method. Remove special cases for watchpoints and internal event
4051 breakpoints from here (moved to the check_status implementations).
4052 (print_one_breakpoint_location): Assume b->ops is never NULL.
4053 Remove static tracepoint marker id printing from here (moved to
4054 the print_one_detail callback implementation of tracepoints).
4055 (init_bp_location): Assert OPS is never NULL.
4056 (allocate_bp_location): Always call the breakpoint's
4057 allocate_location method, and remove the default code from here.
4058 (free_bp_location): Always call the location's dtor method, and
4059 remove the default code from here.
4060 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4061 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4062 parameter. Pass it down.
4063 (set_raw_breakpoint): Ditto.
4064 (print_it_catch_fork): Adjust to take a bpstat as argument.
4065 (catch_fork_breakpoint_ops): Install methods.
4066 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4067 (catch_vfork_breakpoint_ops): Install methods.
4068 (dtor_catch_syscall): Call the base dtor.
4069 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4070 (catch_syscall_breakpoint_ops): Install methods.
4071 (dtor_catch_exec): Call the base dtor.
4072 (print_it_catch_exec): Adjust to take a bpstat as argument.
4073 (catch_exec_breakpoint_ops): Install methods.
4074 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4075 the breakpoint's resources_needed method, and remove the default
4077 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4079 (clone_momentary_breakpoint): Clone the original's ops.
4080 (mention): Always call the breakpoint's print_mention method, and
4081 remove the default code from here.
4082 (create_breakpoint_sal): Adjust to pass the ops to
4083 set_raw_breakpoint rather than setting it manually.
4084 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4085 ops to set_raw_breakpoint_without_location rather than setting it
4087 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4088 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4089 (ranged_breakpoint_ops): Install methods.
4090 (break_range_command): Adjust to pass the ops to
4091 set_raw_breakpoint rather than setting it manually.
4092 (re_set_watchpoint, breakpoint_hit_watchpoint)
4093 (check_status_watchpoint, resources_needed_watchpoint)
4094 (works_in_software_mode_watchpoint, print_it_watchpoint)
4095 (print_mention_watchpoint, print_recreate_watchpoint): New
4097 (watchpoint_breakpoint_ops): Install new methods.
4098 (print_it_masked_watchpoint): New function.
4099 (masked_watchpoint_breakpoint_ops): Install new methods.
4100 (watch_command_1): Adjust to pass the right breakpoint_ops to
4101 set_raw_breakpoint_without_location rather than setting it
4102 manually later. Record the current pspace.
4103 (print_it_exception_catchpoint): Adjust to take a bpstat as
4105 (gnu_v3_exception_catchpoint_ops): Install new methods.
4106 (say_where): New function.
4107 (null_re_set, null_check_status, null_works_in_software_mode)
4108 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4110 (bp_location_ops): New global.
4111 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4112 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4113 (bkpt_check_status, bkpt_resources_needed)
4114 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4115 (bkpt_print_recreate): New functions.
4116 (bkpt_breakpoint_ops): New global.
4117 (tracepoint_re_set, tracepoint_insert_location)
4118 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4119 (tracepoint_check_status, tracepoint_works_in_software_mode)
4120 (tracepoint_print_it, tracepoint_print_one_detail)
4121 (tracepoint_print_mention, tracepoint_print_recreate): New
4123 (tracepoint_breakpoint_ops): New global.
4124 (delete_breakpoint): Always call the breakpoint's dtor method, and
4125 remove the default handling from here.
4126 (breakpoint_re_set_default): Make static.
4127 (breakpoint_re_set_one): Always call the breakpoints re_set
4128 method, and remove the default handling from here.
4129 (trace_command, ftrace_command, strace_command)
4130 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4131 to create_breakpoint.
4132 (save_breakpoints): Always call the breakpoint's print_recreate
4133 method, and remove the default handling from here.
4135 * ada-lang.c (dtor_exception): Call the base dtor.
4136 (re_set_exception): Call the base method.
4137 (print_it_exception, print_it_catch_exception): Adjust to take a
4139 (catch_exception_breakpoint_ops): Install methods.
4140 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4142 (catch_exception_unhandled_breakpoint_ops): Install methods.
4143 (print_it_catch_assert): Adjust to take a bpstat as argument.
4144 (catch_assert_breakpoint_ops): Install methods.
4146 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4147 to take a bpstat as argument.
4148 (enum print_stop_action): Add describing comments to each enum
4150 (breakpoint_re_set_default): Delete declaration.
4151 (null_re_set, null_works_in_software_mode, null_resources_needed)
4152 (null_check_status, null_print_one_detail): Declare.
4153 (bkpt_breakpoint_ops): Declare.
4154 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4155 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4156 (bkpt_check_status, bkpt_resources_needed)
4157 (bkpt_works_in_software_mode, bkpt_print_it)
4158 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4161 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4162 bkpt_breakpoint_ops.
4163 * python/py-breakpoint.c (bppy_init): Ditto.
4165 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4167 * MAINTAINERS (Write After Approval): Add myself to the list.
4169 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4171 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4173 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4175 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4176 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4177 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4179 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4180 (struct i386_debug_reg_state): New.
4181 (i386_init_dregs): New.
4183 (i386_cleanup_dregs): Use i386_init_dregs.
4184 (i386_show_dr): Add state parameter and adjust.
4185 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4187 (i386_remove_aligned_watchpoint): Likewise.
4188 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4189 (i386_update_inferior_debug_regs): New.
4190 (i386_insert_watchpoint): Work on a local mirror of the debug
4191 registers, and only update the inferior on success.
4192 (i386_remove_watchpoint): Ditto.
4193 (i386_region_ok_for_watchpoint): Adjust.
4194 (i386_stopped_data_address): Adjust.
4195 (i386_insert_hw_breakpoint): Adjust.
4196 (i386_remove_hw_breakpoint): Adjust.
4198 2011-07-22 Tom Tromey <tromey@redhat.com>
4200 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4201 from amd64_pseudo_register_read. Change arguments. Call
4202 mark_value_bytes_unavailable when needed.
4203 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4204 set_gdbarch_pseudo_register_read.
4205 * sentinel-frame.c (sentinel_frame_prev_register): Use
4206 regcache_cooked_read_value.
4207 * regcache.h (regcache_cooked_read_value): Declare.
4208 * regcache.c (regcache_cooked_read_value): New function.
4209 (regcache_cooked_read): Call
4210 gdbarch_pseudo_register_read_value if available.
4211 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4212 (i386_pseudo_register_read): Remove.
4213 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4214 i386_pseudo_register_read. Change arguments. Call
4215 mark_value_bytes_unavailable when needed.
4216 (i386_pseudo_register_read_value): New function.
4217 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4218 not set_gdbarch_pseudo_register_read.
4219 * gdbarch.sh (pseudo_register_read_value): New method.
4220 * gdbarch.c, gdbarch.h: Rebuild.
4221 * findvar.c (value_from_register): Call get_frame_register_value.
4223 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4225 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4227 (display_gdb_prompt): Likewise.
4228 (change_annotation_level): Likewise.
4229 (push_prompt): Likewise.
4230 (pop_prompt): Likewise.
4231 (handle_stop_sig): Use get_prompt with a level.
4232 * top.c (command_loop): Use get_prompt with a level.
4233 (set_async_annotation_level): Use set_prompt with a level.
4234 (get_prefix): New function.
4235 (set_prefix): Ditto.
4236 (set_suffix): Ditto.
4237 (get_suffix): Ditto.
4238 (get_prompt): Accept a level argument.
4239 (set_prompt): Accept a level argument. Free old prompts. Set
4240 new_async_prompt if level is 0.
4241 (init_main): Use set_prompt with a level. Do not set
4243 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4244 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4245 Modify set_prompt, get_prompt to account for levels.
4246 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4248 * python/python.c (before_prompt_hook): Use set_prompt.
4250 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4252 * defs.h: Add guard against inclusion in gdbserver.
4253 (struct ptid, ptid_t): Move to common/ptid.h.
4254 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4255 xsnprintf, internal_error): Move to common/common-utils.h.
4257 * gdb_assert.h: Move into common/ sub-directory.
4258 * gdb_locale.h: Ditto.
4259 * gdb_dirent.h: Ditto.
4260 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4261 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4262 Move into common/ptid.h.
4263 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4264 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4265 Change nomem to malloc_failure.
4266 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4267 * utils.c (nomem): Rename to malloc_failure.
4268 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4269 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4270 (gdb_buildargv): Change nomem to malloc_failure.
4271 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4272 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4273 ptid_is_pid): Move into common/ptid.c.
4274 (initialize_infrun): Delete initialization of null_ptid and
4276 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4277 linux_common_xfer_osdata.
4278 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4279 common/ptid.c and common/buffer.c.
4280 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4281 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4282 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4283 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4285 * common/gdb_assert.h: New.
4286 * common/gdb_dirent.h: New.
4287 * common/gdb_locale.h: New.
4288 * common/buffer.c: New.
4289 * common/buffer.h: New.
4290 * common/ptid.c: New.
4291 * common/ptid.h: New.
4292 * common/xml-utils.c: New.
4293 * common/xml-utils.h: New.
4294 * common/common-utils.c: New.
4295 * common/common-utils.h: New.
4296 * common/linux-osdata.c: New.
4297 * common/linux-osdata.h: New.
4298 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4299 * config/arm/linux.mh (NATDEPFILES): Ditto.
4300 * config/i386/linux.mh (NATDEPFILES): Ditto.
4301 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4302 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4303 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4304 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4305 * config/mips/linux.mh (NATDEPFILES): Ditto.
4306 * config/pa/linux.mh (NATDEPFILES): Ditto.
4307 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4308 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4309 * config/s390/s390.mh (NATDEPFILES): Ditto.
4310 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4311 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4312 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4314 2011-07-21 Matt Rice <ratmice@gmail.com>
4316 * NEWS: Add info macros and info definitions commands.
4318 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4320 * NEWS: Document Python prompt substitution hook.
4322 2011-07-18 Matt Rice <ratmice@gmail.com>
4325 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4326 * macrotab.c (foreach_macro): Ditto.
4327 (foreach_macro_in_scope): Ditto.
4328 * macrocmd.c (print_macro_callback): New function.
4329 (info_macro_command): Move some code to print_macro_definition.
4330 (print_macro_definition): New function.
4331 (print_one_macro): Add new arguments to callback.
4332 (info_definitions_command): New function.
4333 (info_macros_command): Ditto.
4334 (_initialize_macrocmd): Add info macros and info definitions commands.
4335 * symtab.c (add_macro_name): Add new arguments to callback.
4337 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4338 Tom Tromey <tromey@redhat.com>
4340 * top.c (set_prompt): Rewrite to free previous prompt, free
4341 asynch_new_prompt and set both on new prompts.
4342 * event-top.c (display_gdb_prompt): Add prompt substitution
4344 * python/python.c (before_prompt_hook): New function.
4346 2011-07-20 Matt Rice <ratmice@gmail.com>
4348 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4349 arguments to store_unsigned_integer.
4351 2011-07-20 Tom Tromey <tromey@redhat.com>
4353 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4354 in some declaration-only cases.
4356 2011-07-18 Tom Tromey <tromey@redhat.com>
4359 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4360 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4361 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4362 <debug_type_section>: New field.
4363 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4364 (load_cu): Use appropriate section.
4365 (create_signatured_type_table_from_index): Add 'section'
4367 (dwarf2_read_index): Only allow a single .debug_types section.
4368 (dw2_get_file_names): Use appropriate section.
4369 (read_type_comp_unit_head): Add 'section' argument.
4370 (create_debug_types_hash_table): Loop over all .debug_types
4372 (init_cu_die_reader): Use appropriate section.
4373 (process_psymtab_comp_unit, load_partial_comp_unit)
4374 (load_full_comp_unit, read_die_and_children, find_partial_die)
4375 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4376 (lookup_signatured_type_at_offset): Add 'section' argument.
4377 (read_signatured_type_at_offset): Add 'sect' argument.
4378 (read_signatured_type): Use appropriate section.
4379 (set_die_type, get_die_type_at_offset): Update.
4380 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4382 (write_psymtabs_to_index): Don't allow index with more than one
4383 .debug_types section.
4385 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4387 Fix crash if referenced CU is aged out.
4388 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4389 xfree of block.data.
4390 (indirect_pieced_value): New variable back_to, use to for xfree of
4392 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4394 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4395 (load_cu): New function from ...
4396 (dw2_do_instantiate_symtab): ... the code here ...
4397 (process_full_comp_unit): ... and here.
4398 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4401 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4403 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4406 2011-07-19 Gary Benson <gbenson@redhat.com>
4408 * infrun.c (struct execution_control_state): New member
4409 stop_func_filled_in.
4410 (clear_stop_func, fill_in_stop_func): New functions.
4411 (handle_inferior_event): Call clear_stop_func rather than
4412 manipulating the execution control state directly.
4413 Call fill_in_stop_func lazily as required rather than
4414 directly calling find_pc_partial_function in all cases.
4416 2011-07-18 Tom Tromey <tromey@redhat.com>
4418 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4419 checking for variable-sized array.
4421 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4423 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4424 of supported languages.
4425 * varobj.c: Add top definitions and basic implementation of the
4426 following callbacks: ada_number_of_children, ada_name_of_variable,
4427 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4428 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4429 (languages): Register Ada-specific callbacks.
4430 (variable_language): Add the Ada case in the language setter switch.
4432 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4434 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4436 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4439 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4440 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4441 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4442 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4443 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4444 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4445 (struct dwarf_expr_context_funcs): New, move here methods from ...
4446 (struct dwarf_expr_context): ... here. New fields funcs.
4447 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4448 (dwarf_expr_ctx_funcs): New.
4449 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4450 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4451 (needs_frame_ctx_funcs): New.
4452 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4454 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4456 * MAINTAINERS (Write After Approval): Add myself to the list.
4458 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4460 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4461 that CIE pointer of an FDE really points to a CIE .
4463 2011-07-15 Hui Zhu <teawater@gmail.com>
4465 * remote.c (remote_get_trace_status): Add comments.
4467 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4469 Code cleanup - constify struct lval_funcs.
4470 * dwarf2loc.c (pieced_value_funcs): Make it const.
4471 * infrun.c (siginfo_value_funcs): Likewise.
4472 * opencl-lang.c (opencl_value_funcs): Likewise.
4473 * valops.c (value_assign, value_ind): Make the funcs variable const.
4474 * value.c (struct value): Make location.computed.funcs target const.
4475 Rearrange the comments.
4476 (allocate_computed_value): Make the funcs parameter target const.
4477 (value_computed_funcs): Return the funcs target const.
4478 (value_free, value_copy, set_value_component_location): Make the funcs
4480 * value.h (allocate_computed_value): Make the funcs parameter target
4482 (value_computed_funcs): Return the funcs target const.
4483 * windows-tdep.c (tlb_value_funcs): Make it const.
4485 2011-07-14 Hui Zhu <teawater@gmail.com>
4487 * remote.c (remote_get_trace_status): Initialize p.
4489 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4492 * remote.c (remote_get_trace_status): New variable ex. Put
4493 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4495 2011-07-13 Tom Tromey <tromey@redhat.com>
4497 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4498 value_from_contents for final conversion.
4500 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4503 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4504 Indent prototypes so they do not get into tags.
4506 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4508 Code cleanup making also optimized out values lazy.
4509 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4510 allocate_optimized_out_value. Twice.
4511 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4512 * findvar.c (read_var_value): Likewise.
4513 * value.c (allocate_optimized_out_value): New function.
4514 * value.h (allocate_optimized_out_value): New declaration.
4516 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4518 Fix occasional crash of CTRL-C during DWARF read in.
4519 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4521 2011-07-11 Tom Tromey <tromey@redhat.com>
4523 * regcache.c (struct regcache_descr): Fix typo.
4524 * i387-tdep.c (i387_supply_xsave): Fix typo.
4526 2011-07-11 Tom Tromey <tromey@redhat.com>
4528 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4529 (read_file_scope, read_type_unit_scope): Use it.
4531 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4533 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4536 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4539 * python/python.c: Set gdbpy_should_print_stack default to off.
4540 (set_python): Deprecate maint set python print-stack to
4542 (_initialize_python): Deprecate maint set/show python print-stack.
4543 Add new prefix command, python. Add new setting, print-backtrace.
4544 * NEWS: Document set python print-stack. Document default change.
4546 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4548 * python/py-inferior.c (infpy_dealloc): New function.
4549 (inferior_to_inferior_object): Return a new object, or a
4550 new reference to the existing object.
4551 (find_thread_object): Cleanup references to inferior.
4552 (delete_thread_object): Ditto.
4553 * python/py-infthread.c (create_thread_object): Do not increment
4554 inferior reference count.
4556 2011-07-08 Tom Tromey <tromey@redhat.com>
4558 * dwarf2loc.c (locexpr_regname): New function.
4559 (locexpr_describe_location_piece): Use it.
4560 (disassemble_dwarf_expression): Add per_cu argument. Use
4562 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4563 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4565 (locexpr_describe_location_1): Add per_cu argument.
4566 (locexpr_describe_location): Update.
4567 (loclist_describe_location): Update.
4569 2011-07-08 Tom Tromey <tromey@redhat.com>
4571 * dwarf2expr.c (execute_stack_op): Add QUIT.
4573 2011-07-07 Hui Zhu <teawater@gmail.com>
4576 2011-07-06 Hui Zhu <teawater@gmail.com>
4577 * remote.c (remote_start_remote): Add TRY_CATCH for
4578 remote_get_trace_status.
4579 * tracepoint.c (disconnect_tracing): Ditto.
4581 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4583 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4584 variables as signed, not unsigned.
4586 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4588 * jit.c (jit_inferior_init): Reformat forward declaration.
4590 2011-07-06 Matt Rice <ratmice@gmail.com>
4592 * MAINTAINERS (Write After Approval): Add myself to the list.
4594 2011-07-06 Hui Zhu <teawater@gmail.com>
4596 * remote.c (remote_start_remote): Add TRY_CATCH for
4597 remote_get_trace_status.
4598 * tracepoint.c (disconnect_tracing): Ditto.
4600 2011-07-05 Tom Tromey <tromey@redhat.com>
4602 * symtab.c (operator_chars): Now static.
4603 * linespec.c (operator_chars): Don't declare.
4605 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4607 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4609 2011-07-05 Tom Tromey <tromey@redhat.com>
4611 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4612 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4613 (TYPE_CPLUS_REALLY_JAVA): New macro.
4614 * dwarf2read.c (process_structure_scope): Set
4615 TYPE_CPLUS_REALLY_JAVA.
4617 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4619 * ada-lang.c: Fix typos.
4620 * amd64-tdep.c: Likewise.
4621 * breakpoint.c: Likewise.
4622 * cli/cli-decode.c: Likewise.
4623 * findcmd.c: Likewise.
4624 * inline-frame.c: Likewise.
4625 * mi/mi-main.c: Likewise.
4626 * minsyms.c: Likewise.
4627 * monitor.c: Likewise.
4628 * monitor.h: Likewise.
4629 * prologue-value.c: Likewise.
4630 * reverse.c: Likewise.
4631 * s390-tdep.c: Likewise.
4633 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4635 * jit.c (jit_inferior_init): Forward declare.
4636 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4638 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4640 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4642 2011-07-04 Tristan Gingold <gingold@adacore.com>
4644 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4645 (tcb_fieldno): Add activation_link field.
4646 (get_known_tasks_addr): Moved and rewritten.
4647 (get_tcb_types_info): Set activation_link field.
4648 (read_known_tasks_array): Add parameter. Rewritten.
4649 (read_known_tasks_list): New function.
4650 (read_known_tasks): New function.
4651 (ada_build_task_list): Call read_known_tasks instead of
4652 read_known_tasks_array.
4653 * ravenscar-thread.c: Add first_task_name constant.
4654 (has_ravenscar_runtime): Check for task list too.
4656 2011-07-04 Tristan Gingold <gingold@adacore.com>
4658 * ada-tasks.c: Renames fieldno to actb_fieldno.
4659 (ada_get_task_number): Indentation.
4660 (get_tcb_types_info): Remove all parameters. Write directly
4662 (ptid_from_atcb_common): Adjust.
4663 (read_atcb): Adjust.
4665 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4667 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4669 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4671 * ui-out.c (ui_out_field_core_addr): Mention that the function
4672 description is in the header file.
4673 * ui-out.h (ui_out_field_core_addr): Document function.
4675 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4677 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4678 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4680 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4682 * symtab.c (expand_line_sal): Remove empty line.
4684 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4686 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4687 same way as ELFOSABI_NONE.
4688 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4690 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4692 * breakpoint.c: Fix typos in comments.
4693 * linespec.c: Likewise.
4694 * symtab.c: Likewise.
4696 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4698 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4699 section in separate object files.
4701 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4703 Fix false GCC warning.
4704 * linespec.c (decode_line_1): Initialize values.
4706 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4708 * linespec.c (find_method): Accept the function type automatically only
4709 if it was specified with parameter types.
4711 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4713 Stop on first linespec terminator instead of eating what we can.
4714 * linespec.c (is_linespec_boundary): New function.
4715 (name_end): Remove function.
4716 (keep_name_info): New parameter on_boundary, replace the body.
4717 (decode_line_1): Provide the parameter to keep_name_info.
4718 (decode_compound): Likewise. Drop the trailing java return type
4721 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4723 Fall back linespec to minimal symbols.
4724 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4725 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4726 (find_method, symbol_found): Change error to cplusplus_error.
4728 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4730 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4732 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4733 Tom Tromey <tromey@redhat.com>
4735 * dwarf2read.c (check_physname): New variable.
4736 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4737 (show_check_physname): New function.
4738 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4740 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4742 * machoread.c (macho_symfile_read): Delete OBE comment.
4744 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4746 * machoread.c (struct macho_oso_data): Delete.
4747 (current_oso): Delete.
4748 (macho_relocate_common_syms): New function, mostly extracted
4750 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4751 Remove code that sets and unset current_oso.
4752 (macho_symfile_relocate): Delete handling of common symbols,
4753 now moved to macho_relocate_common_syms.
4755 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4757 * darwin-nat.c (darwin_ptrace): Add documentation.
4758 Set errno to zero before calling ptrace. If ptrace returns
4759 -1 and errno is zero, then change then return zero.
4760 (darwin_kill_inferior): Issue a warning instead of triggering
4761 a failed assertion when the PT_KILL ptrace operations returned
4764 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4766 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4767 only when inf->private->no_ptrace.
4769 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4771 * ada-lang.c (print_it_exception): Print temporary catchpoints
4772 as "Temporary catchpoint".
4773 (print_mention_exception): Likewise.
4775 2011-07-01 Tom Tromey <tromey@redhat.com>
4777 * jv-lang.c (java_language_defn): Use java_printchar,
4779 (java_get_encoding): New function.
4780 (java_emit_char): Use generic_emit_char.
4781 (java_printchar): New function.
4782 (java_printstr): Likewise.
4784 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4786 * ada-typeprint.c (print_record_type): If unable to decode
4787 the name of the parent type, use the encoded name.
4789 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4791 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4792 pointer to constrained packed array type output.
4793 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4794 packed array output.
4796 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4798 * ada-typeprint.c (print_array_type): removed if condition on show
4799 being negative for bounds printing.
4801 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4803 * ada-lang.c (ada_identical_enum_types_p): New function.
4804 (symbols_are_identical_enums): New function.
4805 (remove_extra_symbols): Do nothing if NSYMS < 2.
4806 Use symbols_are_identical_enums.
4808 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4810 * ada-valprint.c (ada_value_print): Handle typedefs.
4812 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4814 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4816 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4818 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4819 (decode_constrained_packed_array): Likewise.
4820 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4822 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4824 * ada-exp.y (convert_char_literal): Handle typedef types.
4826 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4828 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4830 2011-06-30 Tom Tromey <tromey@redhat.com>
4832 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4833 * valops.c (find_overload_match): Call do_cleanups on early exit
4835 * solib.c (solib_find): Call do_cleanups on early exit path.
4837 2011-06-30 Tom Tromey <tromey@redhat.com>
4839 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4840 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4841 return paths. Defer final do_cleanups until last return.
4842 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4845 2011-06-30 Tom Tromey <tromey@redhat.com>
4847 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4849 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4851 * MAINTAINERS (Write After Approval): Add myself to the list.
4853 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4855 Disable epilogue unwinders on recent GCCs.
4856 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4857 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4858 * dwarf2read.c (process_full_comp_unit): Initialize
4859 EPILOGUE_UNWIND_VALID.
4860 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4861 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4862 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4864 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4866 Code cleanup - reformatting.
4867 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4868 (producer_is_gcc_ge_4): ... here, change the return value.
4869 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4872 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4874 Fix non-only rename list for Fortran modules import.
4875 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4876 cp_add_using_directive caller.
4877 (cp_add_using_directive): New parameter excludes, describe it. New
4878 variables ix and param. Compare if also excludes match. Allocate NEW
4879 with variable size, initialize EXCLUDES there.
4880 (cp_lookup_symbol_imports): New variable excludep, test
4881 current->EXCLUDES with it.
4882 * cp-support.h: Include vec.h.
4883 (struct using_direct): New field excludes, describe it.
4884 (DEF_VEC_P (const_char_ptr)): New.
4885 (cp_add_using_directive): New parameter excludes.
4886 * defs.h (const_char_ptr): New typedef.
4887 * dwarf2read.c (read_import_statement): New variables child_die,
4888 excludes and cleanups, read in excludes.
4889 (read_namespace): Adjust the cp_add_using_directive caller.
4891 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4894 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4895 negative comparisons.
4897 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4899 * mi/mi-main.c (mi_cmd_list_features): Emit
4900 breakpoint-notifications.
4902 2011-06-29 Tom Tromey <tromey@redhat.com>
4905 * valprint.h (generic_emit_char, generic_printstr): Declare.
4906 * valprint.c (wchar_printable, append_string_as_wide)
4907 (print_wchar): Move from c-lang.c.
4908 (generic_emit_char): New function; mostly taken from c_emit_char.
4909 (generic_printstr): New function; mostly taken from c_printstr.
4910 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4911 represented as arrays.
4912 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4914 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4915 identically to TYPE_CODE_INT.
4916 * f-lang.c (f_get_encoding): New function.
4917 (f_emit_char): Use generic_emit_char.
4918 (f_printchar): Replace comment.
4919 (f_printstr): Use generic_printstr.
4920 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4921 "character" types specially.
4922 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4924 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4926 (c_emit_char): Call generic_emit_char.
4927 (c_printstr): Call generic_printstr.
4929 2011-06-29 Gary Benson <gbenson@redhat.com>
4931 * breakpoint.c (bpstat_what): Removed duplicated case.
4933 2011-06-28 Tom Tromey <tromey@redhat.com>
4935 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4937 2011-06-27 Tom Tromey <tromey@redhat.com>
4939 * valops.c (find_overload_match): Call do_cleanups before early
4941 * top.c (execute_command): Call do_cleanups before early return.
4942 (command_loop): Likewise.
4943 * stack.c (backtrace_command): Make a null cleanup early. Don't
4944 conditionally call do_cleanups.
4945 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4947 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4948 so cleanups are always run.
4949 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4950 * findcmd.c (parse_find_args): Call do_cleanups on early return
4952 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4953 Don't conditionally call do_cleanups.
4954 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4957 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4959 * MAINTAINERS (Write After Approval): Use default email address.
4961 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4963 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4965 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4967 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4968 saved_regs_mask and copied_regs_mask fields.
4969 (sparc_record_save_insn): New prototype.
4970 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4971 (sparc_record_save_insn): New function.
4972 (sparc_analyze_prologue): Add head comment. Recognize store insns
4973 of call-saved registers. Use OFFSET consistently. Recognize flat
4974 frames and cache their settings.
4975 (sparc32_skip_prologue): Handle flat frames.
4976 (sparc_frame_cache): Add frame_offset to the base address.
4977 (sparc32_frame_cache): Adjust to new frame description.
4978 (sparc32_frame_prev_register): Likewise.
4979 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4980 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4981 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4982 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4983 frame by calling sparc_record_save_insn.
4984 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4985 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4986 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4988 2011-06-27 Tristan Gingold <gingold@adacore.com>
4990 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4991 field by map_addr and map_len.
4992 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4993 (munmap_section_buffer): Likewise.
4995 2011-06-24 Tom Tromey <tromey@redhat.com>
4997 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4998 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4999 * python/python.c (gdbpy_parameter): Make 'arg' const.
5000 (execute_gdb_command): Likewise.
5001 (gdbpy_decode_line): Likewise. Copy it.
5002 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5003 (gdbpy_write): Make 'arg' const.
5004 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5006 (gdbpy_lookup_type): Likewise.
5007 * python/py-prettyprint.c (print_children): Make 'name' const.
5008 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5009 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5011 * python/py-function.c (fnpy_init): Make 'name' const.
5012 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5013 (gdbpy_string_to_argv): Make 'input' const.
5014 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5016 * gdbtypes.h (lookup_typename): Update.
5017 * gdbtypes.c (lookup_typename): Make 'name' const.
5018 (lookup_struct): Likewise.
5019 (lookup_union): Likewise.
5020 (lookup_enum): Likewise.
5022 2011-06-24 Tom Tromey <tromey@redhat.com>
5024 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5025 gdb_thread_db.h. Move all common/ entries to be together.
5026 (TAGS): Don't depend on DEPFILES.
5028 2011-06-23 Yao Qi <yao@codesourcery.com>
5030 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5031 * remote.c (remote_start_remote): ... here.
5032 * monitor.c (monitor_open): ... here.
5034 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5036 * gdbtypes.c (append_composite_type_field_aligned): Fix
5037 calculation of bit position based on alignment.
5039 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5041 * breakpoint.c (bpstat_stop_status): Call the check_status
5042 breakpoint_ops method.
5043 (print_one_breakpoint_location): Also print the condition for Ada
5044 exception catchpoints.
5045 (allocate_bp_location): New, factored out from
5046 allocate_bp_location.
5047 (allocate_bp_location): Adjust. Call the owner breakpoint's
5048 allocate_location method, if there is one.
5049 (free_bp_location): Call the locations's dtor method, if there is
5051 (init_raw_breakpoint_without_location): New breakpoint_ops
5053 (set_raw_breakpoint_without_location): Adjust.
5054 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5055 (set_raw_breakpoint): Adjust.
5056 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5057 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5058 re_set and check_status methods.
5059 (init_catchpoint): Don't memset, initialize thread, addr_string
5060 and enable_state. Pass the ops down to init_raw_breakpoint.
5061 (install_catchpoint): Rename to ...
5062 (install_breakpoint): ... this, and make extern.
5063 (create_fork_vfork_event_catchpoint): Adjust.
5064 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5065 re_set and check_status methods.
5066 (create_syscall_event_catchpoint): Adjust.
5067 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5068 (masked_watchpoint_breakpoint_ops): Install NULL
5069 allocate_location, re_set and check_status methods.
5070 (catch_exec_command_1): Adjust.
5071 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5072 re_set and check_status methods.
5073 (create_ada_exception_breakpoint): Rename to ...
5074 (init_ada_exception_breakpoint): ... this. Add a struct
5075 breakpoint parameter, and delete the exp_string, cond_string and
5076 cond parameters. Use init_raw_breakpoint, and don't install or
5077 mention the breakpoint yet. Don't clear breakpoint fields that
5078 init_raw_breakpoint already clears.
5079 (re_set_breakpoint): Delete, split into ...
5080 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5082 (breakpoint_re_set_one): Call the breakpoint's
5083 breakpoint_ops->re_set implementation, if there's one. Adjust.
5084 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5085 (struct bp_location_ops): New type.
5086 (struct bp_location): New field `ops'.
5087 (struct breakpoint_ops): New `allocate_location', `re_set' and
5088 `check_status' fields. Make `breakpoint_hit''s description match
5090 (init_bp_location): Declare.
5091 (breakpoint_re_set_default): Declare.
5092 (create_ada_exception_breakpoint): Rename to ...
5093 (init_ada_exception_breakpoint): ... this. Add a struct
5094 breakpoint parameter, and delete the exp_string, cond_string and
5096 (install_breakpoint): Declare.
5097 * ada-lang.c: Include exceptions.h.
5098 <Ada exceptions description>: Update.
5099 (struct ada_catchpoint_location): New type.
5100 (ada_catchpoint_location_dtor): New function.
5101 (ada_catchpoint_location_ops): New global.
5102 (ada_catchpoint): New type.
5103 (create_excep_cond_exprs): New function.
5104 (dtor_exception, allocate_location_exception, re_set_exception)
5105 (should_stop_exception, check_status_exception): New functions.
5106 (print_one_exception, print_mention_exception)
5107 (print_recreate_exception): Adjust.
5108 (dtor_catch_exception, allocate_location_catch_exception)
5109 (re_set_catch_exception, check_status_catch_exception): New
5111 (catch_exception_breakpoint_ops): Install them.
5112 (dtor_catch_exception_unhandled)
5113 (allocate_location_catch_exception_unhandled)
5114 (re_set_catch_exception_unhandled)
5115 (check_status_catch_exception_unhandled): New functions.
5116 (catch_exception_unhandled_breakpoint_ops): Install them.
5117 (dtor_catch_assert, allocate_location_catch_assert)
5118 (re_set_catch_assert, check_status_catch_assert): New functions.
5119 (catch_assert_breakpoint_ops): Install them.
5120 (ada_exception_catchpoint_p): Delete.
5121 (catch_ada_exception_command_split)
5122 (ada_exception_catchpoint_cond_string): Rename exp_string
5123 parameter to excep_string. Adjust.
5124 (ada_parse_catchpoint_condition): Delete.
5125 (ada_exception_sal): Rename the exp_string parameter to
5126 excep_string. Delete the cond_string and cond parameters.
5128 (ada_decode_exception_location): Rename the exp_string parameter
5129 to excep_string. Delete the cond_string and cond parameters.
5131 (create_ada_exception_catchpoint): New function.
5132 (catch_ada_exception_command, ada_decode_assert_location)
5133 (catch_assert_command): Adjust.
5134 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5136 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5138 * ada-lang.c: Include arch-utils.h.
5139 (ada_decode_exception_location): Make static.
5140 (catch_ada_exception_command): Moved here from breakpoint.c.
5141 (ada_decode_assert_location): Make static.
5142 (catch_assert_command): Moved here from breakpoint.c.
5143 (_initialize_ada_lang): Install the exception and assert
5144 catchpoint commands here.
5145 * ada-lang.h (ada_decode_exception_location)
5146 (ada_decode_assert_location): Delete declarations.
5147 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5149 (create_ada_exception_breakpoint): Make extern.
5150 (catch_ada_exception_command, catch_assert_command): Moved to
5152 (add_catch_command): Make extern.
5153 (_initilize_breakpoint): Don't install the exception and assert
5154 catchpoint commands here.
5155 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5157 (add_catch_command, create_ada_exception_breakpoint): Declare.
5159 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5161 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5162 the breakpoint to the breakpoint chain here.
5163 (set_raw_breakpoint_without_location): Add the breakpoint to the
5164 breakpoint chain here.
5165 (init_raw_breakpoint): Adjust comments.
5166 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5168 (init_catchpoint): Don't set the catchpoint's breakpoint number
5170 (install_catchpoint): New function.
5171 (create_fork_vfork_event_catchpoint)
5172 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5173 use install_catchpoint.
5175 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5177 * breakpoint.c (create_catchpoint_without_mention)
5178 (create_catchpoint): Delete.
5180 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5182 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5183 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5184 reference to exec_pathname.
5185 (struct exec_catchpoint): New type.
5186 (dtor_catch_exec): New function.
5187 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5188 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5189 (catch_exec_command_1): Adjust to use init_catchpoint.
5190 (delete_breakpoint): Remove reference to exec_pathname.
5192 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5194 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5195 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5196 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5197 reference to syscalls_to_be_caught.
5198 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5200 (struct syscall_catchpoint): New type.
5201 (dtor_catch_syscall): New function.
5202 (insert_catch_syscall, remove_catch_syscall)
5203 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5204 (print_recreate_catch_syscall): Adjust.
5205 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5206 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5207 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5208 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5209 (masked_watchpoint_breakpoint_ops)
5210 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5211 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5212 there is one. Remove references to syscalls_to_be_caught.
5213 (catching_syscall_number): Adjust.
5214 * ada-lang.c (catch_exception_breakpoint_ops)
5215 (catch_exception_unhandled_breakpoint_ops)
5216 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5218 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5220 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5222 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5223 reference to forked_inferior_pid.
5224 (struct fork_catchpoint): New type.
5225 (breakpoint_hit_catch_fork, print_it_catch_fork)
5226 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5227 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5228 (create_fork_vfork_event_catchpoint): Adjust to use
5231 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5233 * breakpoint.c (add_to_breakpoint_chain)
5234 (init_raw_breakpoint_without_location): New functions, factored
5236 (set_raw_breakpoint_without_location): ... this one.
5237 (init_raw_breakpoint): New function, factored out from
5238 set_raw_breakpoint and adjusted to use
5239 init_raw_breakpoint_without_location.
5240 (set_raw_breakpoint): Adjust.
5241 (init_catchpoint): New function, factored out from
5242 create_catchpoint_without_mention and adjusted to use
5243 init_raw_breakpoint.
5244 (create_catchpoint_without_mention): Adjust.
5246 2011-06-22 Tom Tromey <tromey@redhat.com>
5248 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5249 argument of 0 specially.
5251 2011-06-22 Yao Qi <yao@codesourcery.com>
5253 * infrun.c (handle_inferior_event): Remove write-only local variable
5254 `sw_single_step_trap_p'.
5256 2011-06-20 Tom Tromey <tromey@redhat.com>
5258 * symtab.c (lookup_language_this): End loop if block is NULL.
5260 2011-06-17 Tom Tromey <tromey@redhat.com>
5262 * valops.c (value_of_this): Use lookup_language_this.
5263 * symtab.h (lookup_language_this): Declare.
5264 * symtab.c (lookup_language_this): New function.
5265 (lookup_symbol_aux): Use lookup_language_this.
5266 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5268 2011-06-17 Tom Tromey <tromey@redhat.com>
5270 * value.h (value_of_this): Update.
5271 (value_of_local): Remove.
5272 * valops.c (value_of_this): Rename from value_of_local. Change
5274 * p-exp.y (exp): Update.
5275 (variable): Likewise.
5276 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5278 2011-06-17 Tom Tromey <tromey@redhat.com>
5280 * valops.c (value_of_local): Complain if NAME is NULL.
5281 * std-operator.def (OP_OBJC_SELF): Remove.
5282 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5283 * objc-exp.y (name_not_typename): Use OP_THIS.
5284 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5286 <OP_OBJC_SELF>: Remove.
5287 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5289 2011-06-16 Tristan Gingold <gingold@adacore.com>
5291 * python/py-events.h (gdb_py_events): Make it extern.
5292 * python/py-evtregistry.c (gdb_py_events): Declare.
5294 2011-06-16 Hui Zhu <teawater@gmail.com>
5296 * remote.c (remote_trace_set_readonly_regions): Add check for
5297 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5300 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5302 * arm-linux-tdep.c: Include "auxv.h".
5304 (ARM_LINUX_SIZEOF_VFP): Define.
5305 (arm_linux_supply_vfp): New function.
5306 (arm_linux_collect_vfp): Likewise.
5307 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5308 (arm_linux_fpa_regset_sections): New variable.
5309 (arm_linux_vfp_regset_sections): Likewise.
5310 (arm_linux_core_read_description): New function.
5311 (arm_linux_init_abi): Install arm_linux_core_read_description and
5312 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5313 appropriate for the architecture.
5314 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5315 (tdesc_arm_with_m): Declare.
5316 (tdesc_arm_with_iwmmxt): Likewise.
5317 (tdesc_arm_with_vfpv2): Likewise.
5318 (tdesc_arm_with_vfpv3): Likewise.
5319 (tdesc_arm_with_neon): Likewise.
5320 * arm-linux-nat.c: Move features/*.c includes ...
5321 * arm-tdep.c: ... here.
5322 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5323 target description data structures ...
5324 * arm-tdep.c (_initialize_arm_tdep): ... here.
5325 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5326 HWCAP_VFPv3D16): Move definitions ...
5327 * arm-linux-tdep.h: ... here.
5329 2011-06-15 Hui Zhu <teawater@gmail.com>
5331 * remote.c (remote_trace_set_readonly_regions): Add a check for
5334 2011-06-14 Tom Tromey <tromey@redhat.com>
5336 * coffread.c (coffread_objfile): Rename from current_objfile.
5337 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5338 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5340 2011-06-14 Tom Tromey <tromey@redhat.com>
5342 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5343 (class_symtab): Remove.
5344 (jv_dynamics_progspace_key): New global.
5345 (jv_per_objfile_free): Reset program space data. Update assert.
5346 Don't clear globals.
5347 (get_dynamics_objfile): Use and set program space data.
5348 (get_java_class_symtab): Use get_dynamics_objfile.
5349 (add_class_symbol): Likewise.
5350 (java_link_class_type): Likewise.
5351 (java_object_type, jv_clear_object_type, set_java_object_type):
5353 (get_java_object_type): Update. Don't cache result.
5354 (is_object_type): Don't call set_java_object_type.
5355 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5356 initialize jv_dynamics_progspace_key.
5358 2011-06-14 Tom Tromey <tromey@redhat.com>
5360 * symtab.h (current_objfile): Don't declare.
5361 * objfiles.h (current_objfile): Don't declare.
5362 * objfiles.c (current_objfile): Remove.
5363 * mdebugread.c (current_objfile): New file-scope global.
5364 * dbxread.c (current_objfile): New file-scope global.
5365 * coffread.c (current_objfile): New file-scope global.
5367 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5369 * top.h (line): Rename to ...
5370 (saved_command_line): ... this.
5371 (linesize): Rename to ...
5372 (saved_command_line_size): ... this.
5373 * top.c (line): Rename to ...
5374 (saved_command_line): ... this.
5375 (linesize): Rename to ...
5376 (saved_command_line_size): ... this.
5377 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5378 * event-top.c (command_line_handler): Adjust.
5379 * main.c (captured_main): Adjust.
5381 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5383 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5384 get_frame_func instead of get_frame_pc to determine the code
5385 address used to construct the frame ID.
5386 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5387 (i386_epilogue_frame_this_id): Likewise.
5388 (i386_epilogue_frame_prev_register): New function.
5389 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5390 (i386_stack_tramp_frame_sniffer): Fix coding style.
5391 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5392 (i386_gdbarch_init): Fix comments.
5394 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5396 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5397 instruction when walking back through the instruction stream.
5399 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5401 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5402 fullname parameters order.
5404 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5407 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5409 * psymtab.c (map_symbol_filenames_psymtab)
5410 (map_partial_symbol_filenames): Likewise.
5411 * psymtab.h: Include symfile.h.
5412 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5413 * symfile.h (symbol_filename_ftype): New.
5414 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5415 map_symbol_filenames, clarify more the naming in comment.
5417 2011-06-07 Doug Evans <dje@google.com>
5419 * cc-with-index.sh: Fix typos in comment.
5420 Look for ../../gdb, for fullname.exp.
5422 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5423 Pedro Alves <pedro@codesourcery.com>
5425 * cli/cli-cmds.c (shell_escape): Use waitpid.
5426 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5428 2011-06-07 Tristan Gingold <gingold@adacore.com>
5430 * xcoffread.c (dwarf2_xcoff_names): New variable.
5431 (aix_process_linenos): Add a guard.
5432 (xcoff_symfile_finish): Free dwarf2.
5433 (xcoff_initial_scan): Add dwarf2 support.
5435 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5437 * infcall.c (run_inferior_call): Don't mask async. Instead force
5438 a synchronous wait, if the target can async.
5440 * target.h (struct target_ops): Delete to_async_mask.
5441 (target_async_mask): Delete.
5442 * target.c (update_current_target): Delete references to to_async_mask.
5443 * linux-nat.c (linux_nat_async_mask_value): Delete.
5444 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5445 to linux_nat_async_mask_value.
5446 (linux_nat_async_mask): Delete.
5447 (linux_nat_async, linux_nat_close): Remove references to
5448 linux_nat_async_mask_value.
5449 * record.c (record_async_mask_value): Delete.
5450 (record_async): Remove references to record_async_mask_value.
5451 (record_async_mask): Delete.
5452 (record_can_async_p, record_is_async_p): Remove references to
5453 record_async_mask_value.
5454 (init_record_ops, init_record_core_ops): Remove references to
5456 * remote.c (remote_async_mask_value): Delete.
5457 (init_remote_ops): Remove reference to remote_async_mask.
5458 (remote_can_async_p, remote_is_async_p): Remove references to
5459 remote_async_mask_value.
5460 (remote_async): Remove references to remote_async_mask_value.
5461 (remote_async_mask): Delete.
5463 * infrun.c (fetch_inferior_event): Don't claim registers changed
5464 if the current thread is already not executing.
5466 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5468 From Stephen Kitt <steve@sk2.org>
5469 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5470 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5472 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5474 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5475 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5477 2011-06-03 Tom Tromey <tromey@redhat.com>
5479 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5481 * python/py-exitedevent.c (create_exited_event_object): Change
5482 type of 'exit_code'. Optionally add exit_code attribute.
5483 (emit_exited_event): Change type of 'exit_code'.
5484 * python/py-event.h (emit_exited_event): Update.
5485 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5486 * infrun.c (handle_inferior_event): Set exit code fields on
5488 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5490 * inferior.c (exit_inferior_1): Initialize new fields.
5492 2011-06-03 Tom Tromey <tromey@redhat.com>
5494 * dwarf2expr.c (get_signed_type): New function.
5495 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5497 2011-06-02 Keith Seitz <keiths@redhat.com>
5499 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5501 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5503 * top.h (simplified_command_loop): Delete declaration.
5505 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5507 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5508 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5510 2011-06-01 Yao Qi <yao@codesourcery.com>
5512 * objfiles.h (obj_section_addr): Update reference to objfile from
5514 (obj_section_endaddr): Likewise.
5516 2011-06-01 Daniel Jacobowitz <drow@false.org>
5518 * MAINTAINERS: Update my email address and affiliation. Also
5519 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5521 2010-05-31 Keith Seitz <keiths@redhat.com>
5524 * linespec.c (get_search_block): New function.
5525 (find_methods): Add FILE_SYMTATB parameter and use it and
5526 get_search_block to pass an appropriate block to
5527 lookup_symbol_in_namespace.
5528 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5529 Check if *ARGPTR starts with a filename first.
5530 If it does, call locate_first_half again to locate the next
5531 "first half" of the linespec.
5532 Pass FILE_SYMTATB to decode_objc and decode_compound.
5533 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5534 (locate_first_half): Stop on the first colon seen.
5535 (decode_compound): Add FILE_SYMTAB parameter.
5536 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5537 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5538 get_search_block with lookup_symbol.
5539 (find_method): Add FILE_SYMTAB parameter and pass it to
5541 (decode_objc): Use get_search_block.
5543 2010-05-31 Keith Seitz <keiths@redhat.com>
5546 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5547 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5548 and CP_ANONYMOUS_NAMESPACE_LEN.
5549 (cp_is_anonymous): Likewise.
5550 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5551 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5552 * dwarf2read.c (namespace_name): Likewise.
5553 (fixup_partial_die): Likewise.
5554 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5555 seen in the input, keep it.
5557 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5559 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5560 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5561 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5562 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5563 * remote.c (_initialize_remote): Register
5564 async_remote_interrupt_twice directly as
5565 sigint_remote_twice_token event.
5567 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5569 * target.h (enum inferior_event_type): Delete INF_ERROR.
5570 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5572 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5574 * interps.c (interp_set): Don't cancel continuations.
5576 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5578 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5580 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5582 * continuations.h (continuation_ftype): Add `err' parameter.
5583 Document parameters.
5584 (do_all_continuations, do_all_continuations_thread)
5585 (do_all_intermediate_continuations)
5586 (do_all_intermediate_continuations_thread)
5587 (do_all_inferior_continuations): Add `err' parameter.
5588 * continuations.c (do_my_continuations_1, do_my_continuations)
5589 (do_all_inferior_continuations, do_all_continuations_ptid)
5590 (do_all_continuations_thread_callback)
5591 (do_all_continuations_thread, do_all_continuations)
5592 (do_all_intermediate_continuations_thread_callback)
5593 (do_all_intermediate_continuations_thread)
5594 (do_all_intermediate_continuations): Add `err' parameter, and pass
5595 it down all the way to the continuations proper.
5596 * inf-loop.c (inferior_event_handler): If fetching an inferior
5597 event throws an error, don't pop the target, and still call the
5598 continuations, but with `err' set. Adjust all other continuation
5600 * breakpoint.c (until_break_command_continuation): Add `err'
5602 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5603 issue another step if `err' is set.
5604 (struct until_next_continuation_args): New.
5605 (until_next_continuation): Add `err' parameter. Adjust.
5606 (until_next_command): Adjust.
5607 (struct finish_command_continuation_args): Add `thread' field.
5608 (finish_command_continuation): Add `err' parameter. Handle it.
5609 (finish_forward): Adjust.
5610 (attach_command_continuation): Add `err' parameter. Handle it.
5611 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5612 cancel the continuations.
5613 * interps.c (interp_set): Adjust to cancel the continuations.
5614 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5615 continuations rather than discarding.
5616 (free_thread): Don't clear thread inferior resources here.
5617 (delete_thread_1): Do it here instead. And do it before removing
5618 the thread from the threads list. Tag the thread as exited before
5619 clearing thread inferior resources.
5621 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5623 * infcall.c (call_function_by_hand): Rephrase error message.
5625 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5627 * defs.h (struct thread_info, struct inferior): Delete forward
5629 * breakpoint.h (struct thread_info): New forward declaration.
5630 * observer.sh (struct inferior): New forward declaration.
5631 * python/python-internal.h (struct inferior): New forward
5634 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5636 * defs.h (struct continuation, continuation_ftype)
5637 (continuation_free_arg_ftype, add_continuation)
5638 (do_all_continuations, do_all_continuations_thread)
5639 (discard_all_continuations, discard_all_continuations_thread)
5640 (add_intermediate_continuation, do_all_intermediate_continuations)
5641 (do_all_intermediate_continuations_thread)
5642 (discard_all_intermediate_continuations)
5643 (discard_all_intermediate_continuations_thread)
5644 (add_inferior_continuation, do_all_inferior_continuations)
5645 (discard_all_inferior_continuations): Move to ...
5646 * continuations.h: ... this new file.
5647 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5648 infcmd.c, inferior.c, infrun.c, interps.c: Include
5651 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5652 Doug Evans <dje@google.com>
5654 Fix PR 10970, PR 12702.
5655 * linux-nat.c (linux_lwp_is_zombie): New function.
5656 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5657 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5659 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5661 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5663 (add_continuation, add_intermediate_continuation)
5664 (add_inferior_continuation): Use them.
5665 * continuations.c (struct continuation): Use them.
5666 (make_continuation_ftype): Delete.
5667 (make_continuation, add_inferior_continuation, add_continuation)
5668 (add_intermediate_continuation): Use continuation_ftype and
5669 continuation_free_arg_ftype. Rename parameters to shorter names.
5671 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5673 * continuations.c (make_continuation): Make it return void.
5674 (do_my_continuations): Rename to ...
5675 (do_my_continuations_1): ... this. Remove old_chain parameter and
5677 (do_my_continuations): New.
5678 (discard_my_continuations): Rename to ...
5679 (discard_my_continuations_1): ... this. Remove old_chain
5680 parameter and adjust.
5681 (discard_my_continuations): New.
5682 (add_inferior_continuation): Simplify.
5683 (do_all_inferior_continuations): Reimplement on top
5684 do_my_continuations.
5685 (discard_all_inferior_continuations): Simplify.
5686 (add_continuation): Simplify.
5687 (do_all_continuations_ptid): Simplify.
5688 (discard_all_continuations_thread_callback): Simplify.
5689 (add_intermediate_continuation): Simplify.
5690 (discard_all_intermediate_continuations_thread_callback):
5693 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5695 * utils.c (struct continuation, add_continuation)
5696 (add_inferior_continuation)
5697 (do_all_inferior_continuations, discard_all_inferior_continuations)
5698 (restore_thread_cleanup, do_all_continuations_ptid)
5699 (do_all_continuations_thread_callback)
5700 (do_all_continuations_thread, do_all_continuations)
5701 (discard_all_continuations_thread_callback)
5702 (discard_all_continuations_thread, discard_all_continuations)
5703 (add_intermediate_continuation)
5704 (do_all_intermediate_continuations_thread_callback)
5705 (do_all_intermediate_continuations_thread)
5706 (do_all_intermediate_continuations)
5707 (discard_all_intermediate_continuations_thread_callback)
5708 (discard_all_intermediate_continuations_thread)
5709 (discard_all_intermediate_continuations): Move to ...
5710 * continuations.c: ... this new file, and adjust to no longer
5711 implement continuations on top of cleanups.
5712 * Makefile.in (SFILES): Add continuations.c.
5713 (COMMON_OBS): Add continuations.o.
5715 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5717 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5718 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5719 Internal error on invalid values.
5720 * reverse.c: Don't handle EXEC_ERROR.
5721 * mi/mi-main.c: Don't handle EXEC_ERROR.
5723 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5725 * record.c: Include event-loop.h, inf-loop.h.
5726 (record_beneath_to_async): New global.
5727 (tmp_to_async): New global.
5728 (record_async_inferior_event_token): New global.
5729 (record_open_1): Don't error out if async is enabled.
5730 (record_open): Handle to_async. Create an async event source in
5732 (record_close): Delete the async event source.
5733 (record_resumed): New global.
5734 (record_execution_dir): New global.
5735 (record_resume, record_core_resume): Set them. Register the
5736 target on the event loop.
5737 (record_wait): Rename to ...
5738 (record_wait_1): ... this. Add more debug output. Handle
5739 TARGET_WNOHANG, and the target beneath returning
5740 TARGET_WAITKIND_IGNORE.
5741 (record_wait): Reimplement on top of record_wait_1.
5742 (record_async_mask_value): New global.
5743 (record_async, record_async_mask, record_can_async_p)
5744 (record_is_async_p, record_execution_direction): New functions.
5745 (init_record_ops, init_record_core_ops): Install new methods.
5746 * infrun.c (fetch_inferior_event): Temporarily switch the global
5747 execution direction to the direction the target was going.
5748 (execution_direction): Change type to int.
5749 * target.c (default_execution_direction): New function.
5750 (update_current_target): Inherit and de_fault
5751 to_execution_direction.
5752 * target.h (struct target_ops) <to_execution_direction>: New
5754 (target_execution_direction): New macro.
5755 * inferior.h (execution_direction): Change type to int.
5757 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5759 * infcall.c (call_function_by_hand): Don't allow calling functions
5760 in reverse execution mode.
5762 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5764 * infcmd.c (finish_command): Allow async finish in reverse.
5766 2011-05-26 Yao Qi <yao@codesourcery.com>
5768 * gdb_thread_db.h: Delete. Move to ...
5769 * common/gdb_thread_db.h: ... here.
5771 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5773 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5774 function's entry point instead of a manually managed momentary
5775 breakpoint, and only ever issue one proceed call.
5776 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5777 doing a reverse-finish, switch to stepi mode, to do another step.
5778 (insert_step_resume_breakpoint_at_sal): Make public.
5779 (normal_stop): No need to save function value return registers if
5781 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5783 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5785 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5786 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5787 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5789 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5790 step-resume breakpoints.
5791 (print_it_typical): Handle bp_hp_step_resume.
5792 (bpstat_what): Ditto.
5793 (bptype_string): Ditto.
5794 (print_one_breakpoint_location): Ditto.
5795 (allocate_bp_location): Ditto.
5797 (breakpoint_re_set_one): Ditto.
5798 * infrun.c (handle_inferior_event): Adjust. Split
5799 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5800 BPSTAT_WHAT_HP_STEP_RESUME.
5801 (insert_step_resume_breakpoint_at_sal): Rename to ...
5802 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5803 parameter. Handle it.
5804 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5805 insert_step_resume_breakpoint_at_sal_1.
5806 (insert_step_resume_breakpoint_at_frame): Rename to ...
5807 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5808 set a high-priority step-resume breakpoint.
5809 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5810 (insert_step_resume_breakpoint_at_caller): Ditto.
5812 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5814 * breakpoint.c (iterate_over_related_breakpoints): New.
5815 (do_map_delete_breakpoint): New.
5816 (delete_command): Pass do_map_delete_breakpoint to
5817 map_breakpoint_numbers.
5818 (do_disable_breakpoint): New.
5819 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5821 (do_enable_breakpoint): Rename to ...
5822 (enable_breakpoint_disp): ... this.
5823 (enable_breakpoint): Adjust.
5824 (do_enable_breakpoint): New.
5825 (enable_once_breakpoint): Delete.
5826 (do_map_enable_breakpoint): New.
5827 (do_map_enable_once_breakpoint): New.
5828 (enable_once_command, enable_delete_command)
5829 (delete_trace_command): Iterate over the breakpoint's related
5832 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5834 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5835 for ALPHA_ZERO_REGNUM.
5836 (alpha_supply_int_regs): Explicitly supply zero as the value for
5837 ALPHA_ZERO_REGNUM in the register cache.
5838 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5840 2011-05-26 Yao Qi <yao@codesourcery.com>
5842 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5844 2011-05-26 Tristan Gingold <gingold@adacore.com>
5846 * symfile.h (struct dwarf2_section_names): New type.
5847 (struct dwarf2_debug_sections): New type.
5848 (dwarf2_has_info): Add parameter.
5849 * dwarf2read.c (dwarf2_elf_names): New variable.
5850 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5851 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5852 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5853 (dwarf2_has_info): Add names parameter. Pass names
5854 to dwarf2_locate_sections.
5855 (section_is_p): Rewrite using the names parameter.
5856 (dwarf2_locate_sections): Use section names from the names parameter.
5857 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5858 * elfread.c (read_psyms): Ditto.
5859 * machoread.c (macho_symfile_read): Ditto.
5861 2011-05-25 Andreas Schwab <schwab@redhat.com>
5864 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5866 2011-05-24 Keith Seitz <keiths@redhat.com>
5869 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5870 (decode_compound): Unconditionally call keep_name_info.
5872 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5874 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5875 scope, clear its command list.
5876 (map_breakpoint_numbers): Don't walk the related breakpoints list
5879 2011-05-24 Tom Tromey <tromey@redhat.com>
5881 * MAINTAINERS: Move Jim Blandy to past maintainers.
5883 2011-05-24 Tristan Gingold <gingold@adacore.com>
5885 * symfile.h (enum dwarf2_section_enum): New type.
5886 (dwarf2_get_section_info): New prototype.
5887 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5888 section_name by sect. Use a switch to select the info.
5889 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5890 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5892 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5894 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5895 shared library event breakpoint if there's no execution.
5897 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5899 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5900 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5902 2011-05-23 Tom Tromey <tromey@redhat.com>
5904 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5907 2011-05-23 Doug Evans <dje@google.com>
5909 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5910 entry for RuntimeError to doc string.
5912 2011-05-23 Jerome Guitton <guitton@adacore.com>
5914 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5915 sequence for probing loops.
5917 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5919 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5922 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5924 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5925 zero as the value for %g0 in the register cache.
5926 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5927 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5929 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5931 * infrun.c (proceed): Set previous_inferior_ptid here.
5932 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5933 inferior_ptid, not null_ptid.
5934 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5935 (fetch_inferior_event): Nor here.
5937 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5939 * inf-loop.c (inferior_event_handler): Only output a message if
5942 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
5944 * MAINTAINERS: Update my e-mail address.
5946 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5948 * infrun.c (proceed): Switch the inferior event loop to
5949 INF_EXEC_COMPLETE if the target refused to resume from a
5952 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5954 * infcmd.c: Include "inf-loop.h".
5955 (step_once): When stepping into an inline subroutine, pretend the
5956 target has run. If the target can async, switch the inferior
5957 event loop to INF_EXEC_COMPLETE.
5958 * inferior.h (user_visible_resume_ptid): Declare.
5959 * infrun.c (user_visible_resume_ptid): New function, factored out
5962 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5963 that the current thread is running. Merge async and sync
5966 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5968 * infcmd.c (step_1): Simplify synchronous case.
5970 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5972 * tracepoint.c: Include exceptions.h.
5973 (TFILE_PID): Move higher in file.
5974 (tfile_open): Delay pushing the tfile target until we're assured
5975 the tfile header is present in the file. Wrap reading the initial
5976 newline-terminated lines in TRY_CATCH. Pop the target if the
5977 initial setup failed. Add the tfile's thread immediately
5978 aftwards, before any non-essential setup. Don't skip
5979 post_create_inferior if there are no traceframes present in the
5981 (tfile_close): Remove redundant check for null before xfree call.
5982 (tfile_thread_alive): New function.
5983 (init_tfile_ops): Register it as to_thread_alive callback.
5985 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5987 * tracepoint.c (tfile_open): Delete #if 0'd code.
5989 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5991 Fix -readnow for -gdwarf-4 unused type units.
5992 * dwarf2read.c (struct signatured_type): Remove the field offset.
5993 (create_signatured_type_table_from_index): Remove its initialization.
5994 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5995 instead. Add a complaint call.
5996 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5997 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5998 (lookup_signatured_type_at_offset, read_signatured_type)
5999 (write_one_signatured_type): Update the field for per_cu.
6001 2011-05-19 Tom Tromey <tromey@redhat.com>
6003 * python/py-inferior.c (python_inferior_exit): Use
6005 (python_on_resume): Likewise.
6007 2011-05-19 Matt Rice <ratmice@gmail.com>
6009 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6011 2011-05-19 Hui Zhu <teawater@gmail.com>
6013 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6015 2011-05-19 Hui Zhu <teawater@gmail.com>
6017 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6019 2011-05-18 Tom Tromey <tromey@redhat.com>
6021 * dwarf2read.c (dwarf2_add_field): Constify.
6022 * value.c (value_static_field): Constify.
6023 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6025 * ax-gdb.c (gen_static_field): Constify
6027 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6029 * linux-nat.c (kill_callback): Use SIGKILL first.
6031 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6033 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6035 2011-05-18 Tom Tromey <tromey@redhat.com>
6037 * value.c (value_fn_field): Constify.
6038 * symtab.c (gdb_mangle_name): Constify.
6039 * stabsread.c (update_method_name_from_physname): Make 'physname'
6041 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6042 const. Use explicit fputc_filtered loop.
6043 (pascal_type_print_base): Constify.
6044 * p-lang.h (pascal_type_print_method_args): Update.
6045 * linespec.c (add_matching_methods): Constify.
6046 (add_constructors): Likewise.
6047 * jv-typeprint.c (java_type_print_base): Constify.
6048 * gdbtypes.h (struct cplus_struct_type)
6049 <fn_fieldlist.fn_field.physname>: Now const.
6050 * dwarf2read.c (compute_delayed_physnames): Constify.
6051 (dwarf2_add_member_fn): Likewise.
6052 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6054 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6056 * infrun.c (resume): Mention which is the current thread, and its
6057 current PC in debug output.
6058 (prepare_to_proceed): Mention the thread switching in debug
6061 2011-05-18 Tom Tromey <tromey@redhat.com>
6063 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6064 path check. Use xmalloc and cleanups.
6065 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6067 2011-05-17 Tom Tromey <tromey@redhat.com>
6069 * cp-valprint.c (cp_print_value_fields): Catch errors from
6072 2011-05-17 Tom Tromey <tromey@redhat.com>
6074 * dwarf2read.c (dwarf2_get_die_type): Call
6075 get_die_type_at_offset.
6076 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6077 get_base_type function.
6079 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6081 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6084 2011-05-16 Doug Evans <dje@google.com>
6086 * python/py-auto-load.c (source_section_scripts): Mention objfile
6089 2011-05-15 Doug Evans <dje@google.com>
6091 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6092 (try_thread_db_load_from_pdir): Call it. If unable to find
6093 libthread_db in directory of libpthread, see if we're looking at
6094 the separate-debug-info copy.
6096 * python/py-autoload.c (print_script): Print "Missing" instead of
6097 "No" for missing scripts.
6098 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6100 2011-05-13 Doug Evans <dje@google.com>
6102 * ui-file.c (stdio_file_write_async_safe): Add comment.
6104 2011-05-14 Hui Zhu <teawater@gmail.com>
6106 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6108 2011-05-13 Doug Evans <dje@google.com>
6110 Support $pdir and $sdir in libthread-db-search-path.
6111 * NEWS: Mention $sdir,$pdir.
6112 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6113 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6114 (try_thread_db_load_from_sdir): New function.
6115 (try_thread_db_load_from_dir): New function.
6116 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6117 system directories if search of libthread-db-search-path fails,
6118 that is now done via $sdir.
6119 (has_libpthread): New function.
6120 (thread_db_load): Remove search for libthread_db in directory of
6121 libpthread, that is now done via $pdir.
6123 * NEWS: Mention "info auto-load-scripts".
6124 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6125 script_not_found_warning_printed.
6126 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6127 all callers updated. Initialize script_not_found_warning_printed.
6128 (get_auto_load_pspace_data_for_loading): New function.
6129 (maybe_add_script): New function.
6130 (source_section_scripts): Simplify. Only print one warning regardless
6131 of the number of auto-load scripts not found.
6132 (clear_section_scripts): Clear script_not_found_warning_printed.
6133 (auto_load_objfile_script): Record script in hash table.
6134 (count_matching_scripts): New function.
6135 (maybe_print_script): Renamed from maybe_print_section_script, all
6136 callers updated. Rewrite to use ui_out_*.
6137 (info_auto_load_scripts): Renamed from
6138 maintenance_print_section_scripts, all callers updated.
6139 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6140 renamed as "info auto-load-scripts".
6142 2011-05-13 Tom Tromey <tromey@redhat.com>
6144 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6145 (read_sleb128): Likewise.
6147 2011-05-13 Tom Tromey <tromey@redhat.com>
6149 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6152 2011-05-13 Doug Evans <dje@google.com>
6154 * linux-nat.c (debug_linux_nat_async): Delete.
6155 Replace all references to use debug_linux_nat instead.
6156 (show_debug_linux_nat_async): Delete.
6157 (sigchld_handler): Call ui_file_write_async_safe instead of
6159 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6160 * ui-file.c (struct ui_file): New member to_write_async_safe.
6161 (null_file_write_async_safe): New function.
6162 (ui_file_write_async_safe): New function.
6163 (set_ui_file_write_async_safe): New function.
6164 (ui_file_new): Initialize to_write_async_safe.
6165 (stdio_file_write_async_safe): New function.
6166 (struct stdio_file): New member fd.
6167 (stdio_file_new): Initialize to_write_async_safe, fd.
6168 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6170 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6171 (set_ui_file_write_async_safe): Declare.
6172 (ui_file_write_async_safe): Declare.
6174 2011-05-13 Tom Tromey <tromey@redhat.com>
6176 * utils.c (do_value_free): New function.
6177 (make_cleanup_value_free): Likewise.
6178 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6180 (dwarf2_loc_desc_needs_frame): Call
6181 make_cleanup_value_free_to_mark.
6182 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6183 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6185 (new_dwarf_expr_context): Don't call value_mark.
6186 * dwarf2-frame.c (execute_stack_op): Call
6187 make_cleanup_value_free_to_mark.
6188 * defs.h (make_cleanup_value_free): Declare.
6190 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6192 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6193 prepare_execute_command.
6194 * top.c (prepare_execute_command): Return cleanup.
6195 (execute_command): Use cleanup from prepare_execute_command.
6196 * top.h (prepare_execute_command): Change prototype to return
6198 * defs.h (struct value): Add opaque declaration.
6199 (make_cleanup_value_free_to_mark): Add prototype.
6200 * utils.c (do_value_free_to_mark): New function.
6201 (make_cleanup_value_free_to_mark): Likewise.
6203 2011-05-12 Tom Tromey <tromey@redhat.com>
6205 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6206 cast left-hand-side to unsigned.
6208 2011-05-12 Tom Tromey <tromey@redhat.com>
6211 * value.h (value_from_contents): Declare.
6212 * value.c (value_from_contents): New function.
6213 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6214 (dwarf2_get_die_type): New function.
6215 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6216 (allocate_piece_closure): Acquire reference to values.
6217 (read_pieced_value): Update for value-based expressions.
6218 (write_pieced_value): Likewise.
6219 (free_pieced_value_closure): Call value_free as needed.
6220 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6221 Update for value-based expressions.
6222 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6223 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6224 <get_base_type>: New field.
6225 (struct dwarf_expr_piece) <v.value>: Change type.
6226 <v.regno>: New field.
6227 (struct dwarf_expr_context) <mark>: New field.
6228 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6229 (dwarf_expr_pop, dwarf_expr_push): Remove.
6230 (dwarf_expr_push_address): Declare.
6231 * dwarf2expr.c (dwarf_arch_cookie): New global.
6232 (struct dwarf_gdbarch_types): New.
6233 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6235 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6237 (dwarf_expr_push_address): New function.
6238 (dwarf_expr_pop): Now static.
6239 (dwarf_expr_fetch): Change return type.
6240 (dwarf_require_integral): New function.
6241 (dwarf_expr_fetch): Simplify.
6242 (add_piece): Update.
6243 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6245 (execute_stack_op) <sign_ext>: Remove.
6246 Use values for DWARF stack.
6247 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6248 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6250 (_initialize_dwarf2expr): New function.
6251 (add_piece): Update.
6252 (new_dwarf_expr_context): Set new field.
6253 (free_dwarf_expr_context): Call value_free_to_mark.
6254 * dwarf2-frame.c (no_base_type): New function.
6255 (execute_stack_op): Set get_base_type field. Update.
6257 2011-05-12 Tom Tromey <tromey@redhat.com>
6259 * dwarf2read.c (read_common_block): Fix formatting.
6261 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6263 * breakpoint.c (disable_breakpoint): Disable all locations
6264 associated with a tracepoint on target if a trace experiment is
6266 (disable_command): Disable a specific tracepoint location on target if
6267 a trace experiment is running.
6268 (do_enable_breakpoint): Enable all locations associated with a
6269 tracepoint on target if a trace experiment is running.
6270 (enable_command) Enable a specific tracepoint location on target if a
6271 trace experiment is running.
6272 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6273 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6274 to_disable_tracepoint.
6275 * target.h: Add declaration of struct bp_location.
6276 (struct target_ops): Add new functions
6277 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6278 to_disable_tracepoint to target operations.
6279 (target_supports_enable_disable_tracepoint): New macro.
6280 (target_enable_tracepoint): New macro.
6281 (target_disable_tracepoint): New macro.
6282 * remote.c (struct remote_state): Add new field.
6283 (remote_enable_disable_tracepoint_feature): New.
6284 (remote_protocol_features): Add new entry.
6285 (remote_supports_enable_disable_tracepoint): New.
6286 (remote_enable_tracepoint): New.
6287 (remote_disable_tracepoint): New.
6288 (init_remote_ops): Add remote_enable_tracepoint,
6289 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6290 to remote operations.
6291 * tracepoint.c (start_tracing): Allow tracing to start without any
6292 tracepoints enabled with just a warning if they can be re-enabled
6294 * NEWS: Add news item for the new behaviour of the enable and disable
6295 GDB commands when applied to tracepoints.
6296 Add news items for the new remote packets QTEnable and QTDisable.
6298 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6300 * config.in: Regenerate.
6301 * configure: Regenerate.
6302 * configure.ac <--with-system-readline> (for readline_echoing_p):
6304 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6305 (tui_old_rl_echoing_p): ... here.
6306 (tui_setup_io): Rename extern declaration readline_echoing_p to
6307 _rl_echoing_p. Adjust assignments for the both renames.
6309 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6311 * symtab.c (lookup_symtab): Run cleanup before returning.
6313 2011-05-11 Tom Tromey <tromey@redhat.com>
6315 * dwarf2read.c (handle_data_member_location): New function.
6316 (dwarf2_add_field): Use it.
6317 (read_common_block): Likewise.
6319 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6321 Make addrs->SECTINDEX always defined.
6322 * symfile.c (relative_addr_info_to_section_offsets): Check for
6323 SECTINDEX -1, not for zero ADDR.
6324 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6325 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6326 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6329 2011-05-10 Doug Evans <dje@google.com>
6331 * linux-thread-db.c: Whitespace cleanup.
6332 (try_thread_db_load_1): Fix comment.
6334 * linux-thread-db.c (set_libthread_db_search_path): New function.
6335 (_initialize_thread_db): Add setter for libthread-db-search-path.
6337 2011-05-09 Doug Evans <dje@google.com>
6339 * NEWS: Mention --with-iconv-bin.
6340 * configure.ac: New option --with-iconv-bin.
6341 * configure: Regenerate.
6342 * config.in: Regenerate.
6343 * defs.h (relocate_gdb_directory): Declare.
6344 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6345 removed progname parameter, and exported. All callers updated.
6346 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6348 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6349 adding missing call to restore_child_signals_mask.
6351 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6353 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6355 * infrun.c (proceed, start_remote): Adjust.
6356 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6357 and adjust to not handle it.
6358 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6359 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6360 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6361 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6362 * windows-nat.c (do_initial_windows_stuff): Adjust.
6363 * infcmd.c (attach_command): Adjust.
6364 (notice_new_inferior): Adjust.
6366 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6368 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6369 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6370 * spu-tdep.c (op_selb): Use correct value.
6372 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6374 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6375 "parent" parameter to symbol_file_add_from_bfd call.
6377 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6378 Thiago Jung Bauermann <bauerman@br.ibm.com>
6380 Implement support for PowerPC BookE masked watchpoints.
6381 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6383 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6384 method. Initialize to NULL in all existing breakpoint_ops instances.
6385 (struct breakpoint) <hw_wp_mask>: New field.
6386 * breakpoint.c (is_masked_watchpoint): Add prototype.
6387 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6388 breakpoint's breakpoint_ops.works_in_software_mode if available.
6389 (watchpoints_triggered): Handle the case of a hardware masked
6391 (watchpoint_check): Likewise.
6392 (works_in_software_mode_watchpoint): New function.
6393 (insert_masked_watchpoint, remove_masked_watchpoint)
6394 (resources_needed_masked_watchpoint)
6395 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6396 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6397 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6399 (masked_watchpoint_breakpoint_ops): New structure.
6400 (watch_command_1): Check for the existence of the `mask' parameter.
6401 Set b->ops according to the type of hardware watchpoint being created.
6402 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6403 (ppc_linux_remove_mask_watchpoint)
6404 (ppc_linux_masked_watch_num_registers): New functions.
6405 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6406 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6407 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6408 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6409 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6410 (target_masked_watch_num_registers): New functions.
6411 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6412 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6414 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6415 (target_masked_watch_num_registers): Add prototypes.
6417 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6420 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6421 (producer_is_gcc_ge_4_0): New function.
6422 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6423 symtab->language code.
6424 (var_decode_location): Set cu->has_loclist.
6425 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6426 skip. Intialize force_skip from locations_valid. Move the prologue
6427 skipping code into two passes.
6428 * symtab.h (struct symtab): Make the primary field a bitfield. New
6429 field locations_valid.
6431 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6433 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6434 (classify_inner_name): Call cp_lookup_nested_type with
6436 * cp-namespace.c (cp_lookup_nested_type): New variable
6437 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6438 type_name_no_tag_or_error with saved_parent_type.
6439 * dwarf2read.c (load_partial_dies): Read in any children of
6440 DW_TAG_typedef with complaint in such case.
6441 * gdbtypes.c (type_name_no_tag_or_error): New function.
6442 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6443 * valops.c (destructor_name_p): New comment for parameter type. Remove
6444 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6445 * value.h (destructor_name_p): Remove type const.
6447 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6449 * symtab.c (compare_symbol_name): New function.
6450 (completion_list_add_name, expand_partial_symbol_name): Call it,
6451 remove the variable ncmp.
6452 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6455 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6457 Demote to sw watchpoint only in update_watchpoint.
6458 * breakpoint.c (update_watchpoint): Change between software and
6459 hardware watchpoint for all kinds of watchpoints, not just
6460 read/write ones. Determine b->exact value here instead of
6461 in watch_command_1. Error out if there are not enough resources
6462 for a read or access hardware watchpoint.
6463 (watch_command_1): Remove logic of checking whether there are
6464 enough resources available, since update_watchpoint will do that
6465 work now. Don't set b->exact here. Catch exceptions thrown by
6466 update_watchpoint and delete the watchpoint.
6467 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6468 Use target_exact_watchpoints instead.
6469 (delete_breakpoint): Notify observers only if deleted watchpoint
6470 has a breakpoint number assigned to it.
6472 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6474 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6476 2011-05-05 Jerome Guitton <guitton@adacore.com>
6478 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6480 (i386_stack_tramp_frame_unwind): New static global.
6481 (i386_match_pattern): New function, extracted from i386_match_insn.
6482 (i386_match_insn): Use i386_match_pattern.
6483 (i386_match_insn_block): New function.
6484 (i386_tramp_chain_in_reg_insns)
6485 (i386_tramp_chain_on_stack_insns): New static variables.
6486 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6489 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6491 * configure.host (xscale*): Don't handle target.
6492 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6495 2011-05-04 Yao Qi <yao@codesourcery.com>
6497 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6499 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6502 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6503 | * elfread.c (elf_symtab_read): Stop memory leak.
6505 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6507 * nto-tdep.c (nto_target): Replace deprecated call to
6508 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6510 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6512 Fix false GCC warning.
6513 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6515 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6517 * breakpoint.c (update_watchpoint): Move code to change
6518 the enable state of breakpoint from here ...
6519 (do_enable_breakpoint): ... to here.
6521 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6523 * valprint.c (val_print_array_elements): Fixed poor performance
6524 of printing very large arrays with repeat_count_threshold set
6525 to unlimited. New comment.
6527 2011-04-29 Tom Tromey <tromey@redhat.com>
6529 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6530 (mi_parse): Likewise.
6531 * breakpoint.c (break_range_command): Use sizeof char*, not
6533 (create_breakpoint): Likewise.
6534 (parse_breakpoint_sals): Likewise.
6536 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6538 * linux-nat.c (linux_child_remove_fork_catchpoint)
6539 (linux_child_remove_vfork_catchpoint)
6540 (linux_child_remove_exec_catchpoint): New functions.
6541 (linux_target_install_ops): Install them.
6543 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6547 * varobj.c (install_default_visualizer): Do not install a
6548 visualizer if the varobj is CPLUS_FAKE_CHILD.
6549 (construct_visualizer): Likewise.
6551 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6553 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6554 case insensitive comparison.
6556 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6558 * infrun.c (proceed): Revert previous change.
6559 (resume): Instead, handle the case of signal delivery while stepping
6560 off a breakpoint location here, and only if software single-stepping
6561 is used. Handle nested signals.
6563 2011-04-28 Yao Qi <yao@codesourcery.com>
6565 * arm-tdep.c (copy_unmodified): Rename to ...
6566 (arm_copy_unmodified): .. this. New.
6567 (copy_preload): Move common part to ...
6568 (install_preload): .. this. New.
6569 (arm_copy_preload): New.
6570 (copy_preload_reg): Move common part to ...
6571 (install_preload_reg): ... this. New.
6572 (arm_copy_preload_reg): New.
6573 (copy_b_bl_blx): Move common part to ...
6574 (install_b_bl_blx): .. this. New.
6575 (arm_copy_b_bl_blx): New.
6576 (copy_bx_blx_reg): Move common part to ...
6577 (install_bx_blx_reg): ... this. New.
6578 (arm_copy_bx_blx_reg): New.
6579 (copy_alu_reg): Move common part to ...
6580 (install_alu_reg): ... this. New.
6581 (arm_copy_alu_reg): New.
6582 (copy_alu_shifted_reg): Move common part to ...
6583 (install_alu_shifted_reg): ... this. New.
6584 (copy_ldr_str_ldrb_strb): Move common part to ...
6585 (install_ldr_str_ldrb_strb): ... this. New.
6586 (arm_copy_ldr_str_ldrb_strb): New.
6587 (copy_copro_load_store): Move some common part to ...
6588 (install_copy_copro_load_store): ... this. New.
6589 (arm_copy_copro_load_store): New.
6591 (arm_copy_svc): Renamed from copy_svc.
6592 (copy_undef): Delete.
6593 (arm_copy_undef): Renamed from copy_undef.
6594 (decode_ext_reg_ld_st): Delete.
6595 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6596 (decode_svc_copro): Delete.
6597 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6598 (copy_copro_load_store, copy_alu_imm): update callers.
6599 (copy_extra_ld_st, copy_block_xfer): Likewise.
6600 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6601 (decode_miscellaneous, decode_dp_misc): Likewise.
6602 (decode_ld_st_word_ubyte, decode_media): Likewise.
6603 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6604 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6605 (decode_unconditional, decode_miscellaneous): Likewise.
6606 (decode_media, decode_b_bl_ldmstm): Likewise.
6607 (arm_process_displaced_insn): Likewise..
6608 (decode_misc_memhint_neon): Delete.
6609 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6610 (decode_miscellaneous): Delete.
6611 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6612 (decode_dp_misc): Delete.
6613 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6614 (decode_ld_st_word_ubyte): Delete.
6615 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6616 (decode_media): Delete.
6617 (arm_decode_media): Renamed from decode_media.
6618 (decode_b_bl_ldmstm): Delete.
6619 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6620 (decode_ext_reg_ld_st): Delete.
6621 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6622 (decode_unconditional): Delete.
6623 (arm_decode_unconditional): Renamed from decode_unconditional.
6625 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6627 Case insensitive lookups implementation.
6628 * dwarf2read.c: Include ctype.h.
6629 (struct mapped_index): New field version.
6630 (mapped_index_string_hash): New parameter index_version. New comment
6631 for it. Call tolower appropriately.
6632 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6633 Choose the right index version for mapped_index_string_hash.
6634 (dwarf2_read_index): Support also the index version 5. Initialize the
6635 new struct mapped_index field version.
6636 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6637 (find_slot): Explain the version needs. Pass INT_MAX for the new
6639 (write_psymtabs_to_index): Produce version 5.
6640 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6641 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6642 * psymtab.c (lookup_partial_symbol): Find the
6643 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6645 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6647 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6648 (completion_list_add_name): New variable ncmp, initialize it, use it.
6649 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6650 * utils.c (strcmp_iw): Support case_sensitive_off.
6651 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6652 New function comment part. New variables saved_string1,
6653 saved_string2 and case_pass. Add a proper second pass.
6655 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6657 Replace re_comp/re_exec by regcomp/regexec.
6658 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6659 (search_symbols_name_matches): Use them, use regexec.
6660 (search_symbols): New variable retval_chain, adjust the use of
6661 old_chain against it. Replace re_comp by regcomp. Use the new struct
6662 search_symbols_data fields, use regexec instead of re_exec.
6664 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6666 Format the code for the next patch.
6667 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6668 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6669 New variables c1 and c2.
6671 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6673 * infrun.c (proceed): Do not single-step into signal delivery
6674 when stepping off a breakpoint location.
6675 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6676 (insert_step_resume_breakpoint_at_caller): Likewise.
6677 (insert_step_resume_breakpoint_at_sal): Likewise.
6678 (insert_longjmp_resume_breakpoint): Likewise.
6680 2011-04-27 Yao Qi <yao@codesourcery.com>
6682 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6684 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6686 * procfs.c (procfs_pass_signals): Fix advance declaration.
6688 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6690 * target.h (struct target_ops): Remove to_notice_signals;
6691 add to_pass_signals.
6692 (target_notice_signals): Remove.
6693 (target_pass_signals): Add prototype.
6694 * target.c (update_current_target): Remove to_notice_signals;
6695 mention to_pass_signals.
6696 (target_pass_signals): New function.
6697 (debug_to_notice_signals): Remove.
6698 (setup_target_debug): Do not install debug_to_notice_signals.
6700 * infrun.c (signal_pass): New global.
6701 (resume): Call target_pass_signals.
6702 (handle_inferior_event): Report all signals while stepping over
6703 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6704 are re-inserted when stepping over a signal handler.
6705 (signal_cache_update): New function.
6706 (signal_stop_update): Call it.
6707 (signal_print_update): Likewise.
6708 (signal_pass_update): Likewise.
6709 (handle_command): Call signal_cache_update and target_pass_signals
6710 instead of target_notice_signals.
6711 (_initialize_infrun): Initialize signal_pass.
6713 * linux-nat.c (pass_mask): New global.
6714 (linux_nat_pass_signals): New function.
6715 (linux_nat_create_inferior): Report all signals initially.
6716 (linux_nat_attach): Likewise.
6717 (linux_nat_resume): Use pass_mask to decide whether to directly
6718 handle an inferior signal.
6719 (linux_nat_wait_1): Likewise.
6720 (linux_nat_add_target): Install to_pass_signals callback.
6722 * nto-procfs.c (notice_signals): Remove.
6723 (procfs_resume): Do not call notice_signals.
6724 (procfs_notice_signals): Remove.
6725 (procfs_pass_signals): New function.
6726 (init_procfs_ops): Install to_pass_signals callback instead of
6727 to_notice_signals callback.
6728 (_initialize_procfs): Report all signals initially.
6730 * procfs.c (procfs_notice_signals): Remove.
6731 (procfs_pass_signals): New function.
6732 (procfs_target): Install to_pass_signals callback instead of
6733 to_notice_signals callback.
6734 (register_gdb_signals): Remove.
6735 (procfs_debug_inferior): Report all signals initially.
6736 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6738 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6739 parameters; use them instead of calling signal_..._state routines.
6740 (remote_notice_signals): Remove.
6741 (remote_start_remote): Report all signals initially.
6742 (remote_resume): Do not call remote_pass_signals.
6743 (_initialize_remote): Install to_pass_signals callback instead of
6744 to_notice_signals callback.
6746 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6748 * breakpoint.c (user_settable_breakpoint): Delete.
6749 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6750 (delete_command): Check user_breakpoint_p instead of looking at
6751 the breakpoint's type.
6752 (disable_command): Ditto.
6753 (enable_command): Ditto.
6754 (delete_trace_command): Use user_breakpoint_p instead of looking
6755 at the breakpoint number directly. When checking if there are
6756 user visible tracepoints, in order to know whether to ask the user
6757 for confirmation, check whether the breakpoint is actually a
6760 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6762 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6765 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6767 MI breakpoint notifications.
6769 * annotate.c (breakpoint_changed): Adjust parameter type.
6770 * breakpoint.c (set_breakpoint_condition): Adjust to change
6771 in breakpoint_modified type.
6772 (breakpoint_set_commands): Likewise.
6773 (do_map_commands_command): Likewise.
6774 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6775 changed after bumping hit count.
6776 (bpstat_stop_status): Likewise.
6777 (print_one_breakpoint_location): Don't wrap in tuple here.
6778 (print_one_breakpoint): Always print individual locations.
6779 For locations, use unnamed tuple.
6780 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6782 (create_catchpoint, create_syscall_event_catchpoint): Call
6783 breakpoint_created obsever.
6784 (mention): Don't call breakpoint_created observer.
6785 (create_breakpoint_sal): Call breakpoint_created observer.
6786 (create_breakpoint, watch_command_1): Likewise.
6787 (create_ada_exception_breakpoint): Likewise.
6788 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6789 (locations_are_equal): New.
6790 (update_breakpoint_locations): If locations were changed, notify.
6791 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6792 Call breakpoint_modified observer.
6794 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6795 (mi_cmd_break_insert): Don't set observers for modify and delete.
6796 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6797 (mi_breakpoint_created, mi_breakpoint_deleted)
6798 (mi_breakpoint_modified): New.
6799 (mi_interpreter_init): Hook the above.
6800 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6801 while -break-* commands are executing.
6802 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6803 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6805 (mi_ui_out_impl): Hook in mi_redirect.
6806 (mi_field_skip): True to the name, skip the field, don't output
6807 a field with an empty value.
6809 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6810 (gdbpy_breakpoint_deleted): Adjust.
6811 * tui/tui-hooks.c (tui_event_create_breakpoint)
6812 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6814 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6816 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6817 (procfs_remove_hw_watchpoint): Likewise.
6819 2011-04-26 Michael Walle <michael@walle.cc>
6821 * remote.c (remote_start_remote): Ack packet after sending the
6824 2011-04-26 Yao Qi <yao@codesourcery.com>
6826 * linux-nat.c: Move common macros to ...
6827 Include linux-ptrace.h.
6828 * common/linux-ptrace.h: ... here. New.
6830 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6832 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6833 !objfile_has_partial_symbols. New comment.
6834 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6835 SYM_READ_PSYMBOLS is not present. Extend the comment.
6836 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6838 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6840 * defs.h (ENUM_BITFIELD): Remove.
6842 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6843 Eli Zaretskii <eliz@gnu.org>
6845 * NEWS: Document the new gdbserver --once option.
6847 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6849 * MAINTAINERS: Update my email address.
6851 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6853 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6854 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6855 function call if __STDC_ISO_10646__ macro is defined.
6856 (intermediate_encoding): New prototype.
6857 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6858 to generate compile time error for unsupported gdb_wchar_t size.
6859 (ENDIAN_SUFFIX): New macro.
6860 (intermediate_encoding): New function.
6862 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6864 * ada-lang.c (struct add_partial_datum): Update the comment for
6865 expand_partial_symbol_name.
6866 (ada_add_partial_symbol_completions): Rename to ...
6867 (ada_expand_partial_symbol_name): ... here, change return type, update
6868 function comment, call symbol_completion_match instead of
6869 symbol_completion_add.
6870 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6871 and ada_expand_partial_symbol_name.
6872 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6874 (dw2_map_symbol_names): Remove.
6875 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6876 * psymtab.c (map_symbol_names_psymtab): Remove.
6877 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6878 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6880 (psym_functions): Unlist map_symbol_names_psymtab.
6881 (map_partial_symbol_names): Rename to ...
6882 (expand_partial_symbol_names): ... here, change the FUN type, call
6883 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6884 * psymtab.h (map_partial_symbol_names): Rename to ...
6885 (expand_partial_symbol_names): ... here, change the FUN type.
6886 * symfile.h (struct quick_symbol_functions): Update the description of
6887 expand_symtabs_matching. Remove map_symbol_names.
6888 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6889 (struct add_name_data): Update the comment for
6890 expand_partial_symbol_name.
6891 (add_partial_symbol_name): Rename to ...
6892 (expand_partial_symbol_name): ... here. Replace
6893 completion_list_add_name call by strncmp.
6894 (default_make_symbol_completion_list_break_on): Use now
6895 expand_partial_symbol_names and expand_partial_symbol_name.
6896 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6898 2011-04-20 Tom Tromey <tromey@redhat.com>
6900 * dwarf2read.c (save_gdb_index_command): Replace format
6901 documentation with a pointer to the manual.
6903 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6905 * regcache.c: Include remote.h.
6906 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6907 (regcache_dump): Handle regcache_dump_remote.
6908 (maintenance_print_remote_registers): New function.
6909 (_initialize_regcache): Install "maint print remote-registers"
6911 * remote.c (map_regcache_remote_table): New function, factored out
6913 (init_remote_state): ... here.
6914 (remote_register_number_and_offset): New.
6915 * remote.h (remote_register_number_and_offset): Declare.
6917 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6919 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6920 null_ptid, assume and allow a NULL address space, instead of
6921 asking the target for the ptid's address space.
6922 * infrun.c (ptid_is_pid): Remove assertion.
6924 2011-04-19 Tom Tromey <tromey@redhat.com>
6926 * windows-tdep.c (windows_xfer_shared_library):
6927 * windows-nat.c (get_module_name, windows_make_so):
6928 * v850-tdep.c (v850_handle_pushm):
6929 * utils.c (null_cleanup, gdb_realpath):
6930 * ui-out.c (get_next_header):
6931 * tracepoint.c (clear_traceframe_info):
6932 * symtab.c (lookup_symtab):
6933 * serial.h (struct serial_ops):
6934 * mipsread.c (read_alphacoff_dynamic_symtab):
6935 * infcmd.c (print_return_value):
6936 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6937 * f-exp.y (parse_number):
6938 * exceptions.c (catch_exceptions):
6939 * dummy-frame.c (dummy_frame_this_id):
6940 * defs.h (struct cleanup):
6941 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6942 * arm-tdep.c (arm_push_dummy_call):
6943 * amd64-tdep.h (amd64_collect_xsave):
6944 * amd64-tdep.c (amd64_collect_xsave):
6945 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6946 * README (typing): Remove duplicate words.
6947 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6948 * infrun.c (siginfo_value_read): Fix typo.
6949 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6950 * top.c (source_line_number): Add comma.
6952 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6954 * thread.c (any_live_thread_of_process): Prioritize threads
6955 that are not executing.
6956 * gdbthread.h (any_live_thread_of_process): Update comment
6957 as per above change.
6959 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6961 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6962 (scan_xcoff_symtab): Likewise.
6964 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6966 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6969 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6970 Pedro Alves <pedro@codesourcery.com>
6972 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6973 variables to simplify code and avoid == operator at end of
6974 line as this is against GNU coding standards.
6976 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6978 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6979 lm_name to name_lm to avoid conflict with lm_name function.
6981 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6983 ARI fixes: Use only lowercase function name for static functions.
6984 * nto-tdep.c (LM_ADDR): Rename to...
6985 (lm_addr): New function name.
6986 (nto_relocate_section_addresses): Adapt to change above.
6987 * solib-sunos.c (LM_ADDR): Rename to...
6988 (lm_addr): New function name.
6989 (LM_NEXT): Rename to...
6990 (lm_next): New function name.
6991 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6992 function name changes above.
6993 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6994 (lm_addr_from_link_map): New function name.
6995 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6996 (has_lm_dynamic_from_link_map): New function name.
6997 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6998 (lm_dynamic_from_link_map): New function name.
6999 (LM_ADDR_CHECK): Rename to...
7000 (lm_addr_check): New function name.
7001 (LM_NEXT): Rename to...
7002 (lm_next): New function name.
7003 (LM_PREV): Rename to...
7004 (lm_prev): New function name.
7005 (LM_NAME): Rename to...
7006 (lm_name): New function name.
7007 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7008 (ignore_first_link_map_entry): New function name.
7009 (svr4_keep_data_in_core): Adapt to function name changes above.
7010 (svr4_current_sos): Likewise.
7011 (enable_break): Likewise.
7012 (svr4_relocate_section_addresses): Likewise.
7014 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7017 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7018 sprintf. Simplify code and avoid loosing memory.
7019 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7020 (call0_frame_cache): Remove && operator from end of line.
7022 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7024 Fix libraries displacement if they change whether they were prelinked.
7025 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7026 does not match. Comment why.
7028 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7030 * corelow.c: Include wrapper.h.
7031 (core_open): Call now gdb_target_find_new_threads.
7032 * wrapper.c: Include target.h.
7033 (gdb_target_find_new_threads): New.
7034 * wrapper.h (gdb_target_find_new_threads): New declaration.
7036 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7038 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7039 even if !TARGET_HAS_EXECUTION.
7041 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7043 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7044 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7045 bfd_get_synthetic_symtab.
7046 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7047 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7048 parameter parent, remove the call to add_separate_debug_objfile.
7049 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7050 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7051 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7052 parent, new comment for it, call add_separate_debug_objfile for it.
7053 (symbol_file_add_separate): Pass objfile as the parameter parent,
7054 remove the call to add_separate_debug_objfile.
7055 (symbol_file_add_from_bfd): New parameter parent, pass it.
7056 (symbol_file_add): Pass NULL to the new parameter parent.
7057 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7059 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7061 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7064 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7066 Fix Python access to inlined frames.
7067 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7068 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7070 2011-04-15 Tom Tromey <tromey@redhat.com>
7072 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7074 2011-04-15 Gary Benson <gbenson@redhat.com>
7076 * MAINTAINERS: Add myself to write-after-approval section.
7078 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7080 * remote-sim.c (sim_command_completer): New function.
7081 (_initialize_remote_sim): Set completer to sim_command_completer.
7083 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7085 * breakpoint.c (print_exception_catchpoint): Rename to ...
7086 (print_it_exception_catchpoint): ... this.
7087 (gnu_v3_exception_catchpoint_ops): Update with new name
7088 for print_it_exception_catchpoint.
7090 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7092 * MAINTAINERS: Add myself for write after approval privileges.
7094 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7096 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7098 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7100 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7102 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7104 * breakpoint.c (save_breakpoints): Verify whether
7105 breakpoint_ops.print_recreate is defined before calling it.
7107 2011-04-11 Gary Benson <gbenson@redhat.com>
7109 Fix failure with --enable-maintainer-mode.
7110 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7112 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7115 * symtab.c (search_symbols): Reorder the KIND description in the
7116 function comment. Remove the unused 4th element of types, types2,
7117 types3 and types4. New gdb_assert on KIND.
7118 (symtab_symbol_info): Remove the unused 4th element of classnames.
7119 New gdb_assert on KIND.
7120 * symtab.h (enum search_domain): New warning in the enum comment.
7121 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7124 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7126 Fix crash of gdb save-index on a STABS file.
7127 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7130 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7132 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7133 * dwarf2read.c: Include ctype.h.
7134 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7136 (dwarf2_add_field): Fix new_field->accessibility by calling
7137 dwarf2_default_access_attribute. Restructure setting accessibility
7139 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7140 is_private and is_protected by calling
7141 dwarf2_default_access_attribute.
7143 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7145 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7146 to the initialization.
7148 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7150 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7153 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7155 Remove support for old Cygwin 1.5 versions.
7156 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7157 function on old Cygwin version.
7158 * windows-nat.c: Remove cygwin version check and always define
7159 __USEWIDE for Cygwin compilation.
7161 2011-04-07 Yao Qi <yao@codesourcery.com>
7163 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7165 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7166 (arm_copy_svc): Remove parameters INSN and TO.
7167 (decode_svc_copro): Update caller.
7168 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7169 from function pointer `copy_svc_os'.
7171 2011-04-07 Yao Qi <yao@codesourcery.com>
7173 * arm-tdep.c (cleanup_branch): Set a correct return address in
7174 LR for ARM and Thumb.
7176 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7179 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7180 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7181 in the function comment, a new note on values compatibility.
7182 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7183 * symtab.h (SYMBOL_HASH_NEXT): New.
7185 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7187 * ppc-linux-nat.c (check_condition): Add len output parameter.
7188 Set it based on the memory region referenced in the condition
7189 expression. Update all callers.
7191 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7193 Fix crash regression on systems featuring .gdb_index.
7194 * objfiles.c (free_objfile): Move the
7195 forget_cached_source_info_for_objfile call earlier. Comment it.
7196 Extend the comment for objfile_free_data.
7198 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7200 Fix regression of displaying the debug format.
7201 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7204 2011-04-04 Tom Tromey <tromey@redhat.com>
7206 * cli/cli-interp.c (struct captured_execute_command_args):
7208 (do_captured_execute_command): Remove.
7209 (safe_execute_command): Use TRY_CATCH.
7210 * cli/cli-script.c (struct wrapped_read_command_file_args):
7212 (wrapped_read_command_file): Remove.
7213 (script_from_file): Use TRY_CATCH.
7214 * exceptions.c (catch_exception): Remove.
7215 * exceptions.h (catch_exception): Remove.
7216 (deprecated_throw_reason): Update comment.
7217 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7218 argument to 'context'.
7219 (mi_execute_command): Use TRY_CATCH.
7220 * remote.c (struct start_remote_args): Remove.
7221 (remote_start_remote): Update; change arguments.
7222 (remote_open_1): Use TRY_CATCH.
7224 2011-04-04 Tom Tromey <tromey@redhat.com>
7226 * tracepoint.c (scope_info): Update.
7227 * symtab.c (decode_line_spec): Update.
7228 * python/python.c (gdbpy_decode_line): Update.
7229 * linespec.h (decode_line_1): Update.
7230 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7231 (decode_compound, find_method, symtab_from_filename)
7232 (decode_variable): Likewise.
7233 * cli/cli-cmds.c (edit_command): Update.
7234 (list_command): Update.
7235 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7237 (create_breakpoint): Update.
7238 (until_break_command): Update.
7239 (addr_string_to_sals): Update.
7240 (decode_line_spec_1): Update.
7242 2011-04-04 Tom Tromey <tromey@redhat.com>
7244 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7245 (do_captured_parse_breakpoint): Remove.
7246 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7247 Use TRY_CATCH directly.
7249 2011-04-04 Tom Tromey <tromey@redhat.com>
7251 * symtab.h (free_symtab): Remove.
7252 (forget_cached_source_info_for_objfile): Declare.
7253 * symmisc.c (free_symtab): Remove.
7254 * source.c (forget_cached_source_info_for_objfile): New function.
7255 (forget_cached_source_info): Use it.
7256 * objfiles.c (free_objfile): Simplify check before calling
7257 clear_current_source_symtab_and_line. Call
7258 forget_cached_source_info_for_objfile.
7260 2011-04-04 Tom Tromey <tromey@redhat.com>
7262 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7263 (new_symtab): Don't set `free_code' on symtab.
7264 (new_linetable): Properly handle size==0.
7265 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7266 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7268 * jv-lang.c (struct jv_per_objfile_data): New.
7269 (jv_per_objfile_free): Free the data.
7270 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7271 (get_java_class_symtab): Set the `dict' field on the
7272 jv_per_objfile_data.
7273 (free_class_block): Remove.
7274 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7277 2011-04-04 Tom Tromey <tromey@redhat.com>
7279 * symfile.c (reread_symbols): Update.
7280 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7282 * objfiles.c (allocate_objfile): Update.
7283 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7285 * cp-namespace.c (lookup_symbol_file): Don't call
7286 lookup_possible_namespace_symbol.
7287 (initialize_namespace_symtab, get_possible_namespace_block)
7288 (free_namespace_block, cp_check_possible_namespace_symbols)
7289 (check_possible_namespace_symbols_loop)
7290 (check_one_possible_namespace_symbol)
7291 (lookup_possible_namespace_symbol): Remove.
7292 (maintenance_cplus_namespace): Replace with notice.
7293 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7295 2011-04-04 Tom Tromey <tromey@redhat.com>
7297 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7298 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7299 * symmisc.c (free_symtab): Don't free debugformat.
7300 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7301 (record_debugformat, record_producer): Document.
7302 * buildsym.c (end_symtab): Don't save debugformat and producer
7304 (end_symtab): Don't free debugformat and producer fields.
7305 (record_debugformat): Don't call xstrdup.
7306 (record_producer): Likewise.
7308 2011-04-04 Tom Tromey <tromey@redhat.com>
7310 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7311 (source_line_charpos, source_charpos_line): Remove.
7313 2011-04-04 Tom Tromey <tromey@redhat.com>
7315 * symtab.h (domain_enum): Split in two...
7316 (enum search_domain): New.
7317 (search_symbols): Update.
7318 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7319 redundant declarations.
7320 (search_symbols): Change 'kind' argument to search_domain.
7322 (print_symbol_info): Likewise.
7323 (symtab_symbol_info): Likewise.
7324 * symfile.h (struct quick_symbol_functions)
7325 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7326 <expand_symtabs_matching>: Likewise.
7327 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7328 (expand_symtabs_matching_via_partial): Update.
7329 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7330 (dw2_expand_symtabs_for_function): Update.
7331 * block.h: Moved anonymous enum...
7332 * defs.h (enum block_enum): ... here. Now named.
7334 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7336 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7337 * version.in: Bump version to 7.3.50.20110403-cvs.
7339 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7341 * NEWS: Create a new section for the next release branch.
7342 Rename the section of the current branch, now that it has
7345 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7347 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7348 for "fpscr" in target description.
7350 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7352 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7353 initialize it. Delay HASH initialization. Strip the part after open
7354 parenthesis for languages with qualifiers. Call do_cleanups.
7356 2011-04-01 Tom Tromey <tromey@redhat.com>
7358 * utils.c (report_command_stats): Don't print `-' for negative
7361 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7363 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7364 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7367 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7369 * breakpoint.h (bpdisp_text): Add declaration.
7370 * breakpoint.c (bpdisp_text): Make non-static.
7371 * ada-lang.c: #include "mi/mi-common.h".
7372 (print_it_exception): Rewrite to improve GDB/MI output.
7374 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7376 * arm-tdep.h (struct address_space): Add forward declaration.
7378 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7380 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7381 * arm-tdep.c (arm_override_mode): New global.
7382 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7383 execution mode heuristics.
7384 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7385 second single-step breakpoint if needed, using
7386 arm_insert_single_step_breakpoint.
7387 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7388 ARM execution mode, do not call thumb_get_next_pc_raw.
7389 (arm_get_next_pc): Encode execution mode in return value. Call
7390 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7391 (arm_insert_single_step_breakpoint): New function.
7392 (arm_software_single_step): Call it.
7393 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7394 argument to return execution mode of sigreturn target.
7395 (arm_linux_syscall_next_pc): Use it.
7396 (arm_linux_copy_svc): Update call.
7397 (arm_linux_software_single_step): Call
7398 arm_insert_single_step_breakpoint.
7400 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7402 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7405 2011-03-31 Tom Tromey <tromey@redhat.com>
7407 * varobj.c (update_dynamic_varobj_children): Properly handle
7408 errors from iterator.
7410 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7412 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7413 struct linkage name twice.
7415 2011-03-31 Tom Tromey <tromey@redhat.com>
7417 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7418 missing ">" to message.
7420 2011-03-31 Tom Tromey <tromey@redhat.com>
7422 * varobj.c (instantiate_pretty_printer): Remove duplicate
7425 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7427 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7428 if neither saved value nor register available (e.g. signal frame).
7430 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7432 * macroexp.c (expand): Avoid uninitialized variable
7435 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7437 * breakpoint.c (break_range_command): Fix typo in comment.
7439 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7440 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7442 Implement support for PowerPC BookE ranged breakpoints.
7443 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7444 * breakpoint.h (struct bp_target_info) <length>: New member
7446 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7447 instead of struct breakpoint as argument, and also add ASPACE
7448 and BP_ADDR arguments. Update all callers.
7449 (struct breakpoint_ops) <print_one_detail>: New method.
7450 (struct breakpoint) <addr_string_range_end>: New member variable.
7451 * breakpoint.c (breakpoint_location_address_match): Add function
7453 (insert_bp_location): Set bl->target_info.length.
7454 (breakpoint_here_p): Call breakpoint_location_address_match.
7455 (moribund_breakpoint_here_p): Likewise.
7456 (regular_breakpoint_inserted_here_p): Likewise.
7457 (breakpoint_thread_match): Likewise.
7458 (bpstat_stop_status): Likewise.
7459 (bpstat_check_location): Move call to
7460 breakpoint_ops.breakpoint_hit to the top.
7461 (print_one_breakpoint_location): Call
7462 breakpoint_ops.print_one_detail if available.
7463 (breakpoint_address_match_range): New function.
7464 (breakpoint_location_address_match): Likewise.
7465 (breakpoint_locations_match): Compare the length field of the
7467 (hw_breakpoint_used_count): Count resources used by all locations
7468 in a breakpoint, and use breakpoint_ops.resources_needed if
7470 (breakpoint_hit_ranged_breakpoint): New function.
7471 (resources_needed_ranged_breakpoint): Likewise.
7472 (print_it_ranged_breakpoint): Likewise.
7473 (print_one_ranged_breakpoint): Likewise.
7474 (print_one_detail_ranged_breakpoint): Likewise.
7475 (print_mention_ranged_breakpoint): Likewise.
7476 (print_recreate_ranged_breakpoint): Likewise.
7477 (ranged_breakpoint_ops): New structure.
7478 (find_breakpoint_range_end): New function.
7479 (break_range_command): Likewise.
7480 (delete_breakpoint): Free addr_string_range_end.
7481 (update_breakpoint_locations): Add SALS_END argument. Update
7482 all callers. Calculate breakpoint length if a non-zero SALS_END
7483 is given. Call breakpoint_locations_match instead of
7484 breakpoint_address_match.
7485 (reset_breakpoint): Find SaL of the end of the range if B is a
7487 (_initialize_breakpoint): Register break-range command.
7488 * defs.h (print_core_address): Add function prototype.
7489 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7491 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7492 (ppc_linux_remove_hw_breakpoint): Likewise.
7493 (_initialize_ppc_linux_nat): Initialize
7494 to_ranged_break_num_registers.
7495 * target.c (update_current_target): Add comment about
7496 to_ranged_break_num_registers.
7497 (target_ranged_break_num_registers): New function.
7498 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7500 (target_ranged_break_num_registers): Add function prototype.
7501 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7502 * utils.c (print_core_address): ... here.
7504 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7506 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7507 variable compiler warning.
7509 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7511 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7513 (re_set_breakpoint): ... to here ...
7514 (addr_string_to_sals): ... and here.
7516 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7518 * Makefile.in (SFILES): Add missing C sources.
7519 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7520 Add missing headers.
7522 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7524 * .gitignore: New file.
7526 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7528 * NEWS: Mention new cfi device simulation.
7530 2011-03-29 Tom Tromey <tromey@redhat.com>
7532 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7533 otherwise anonymous types.
7534 (dwarf2_name): Likewise.
7535 * valops.c (value_struct_elt_for_reference): Refine artificial
7536 type logic. Call error if j==-1.
7538 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7540 Fix false GCC warning.
7541 * infcall.c (find_function_addr): Initialize funaddr.
7543 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7545 Fix mingw compilation with --enable-targets=all.
7546 * remote-mips.c (gdb_usleep.h): Include header.
7547 (mips_enter_debug): Use gdb_usleep instead of sleep.
7549 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7551 Support resolution of STT_GNU_IFUNC via breakpoints.
7552 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7553 bp_gnu_ifunc_resolver_return.
7554 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7555 the loop. Support bp_gnu_ifunc_resolver and
7556 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7557 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7559 (bptype_string, print_one_breakpoint_location): Support
7560 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7561 (user_settable_breakpoint): Return true also for
7562 bp_gnu_ifunc_resolver.
7563 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7564 bp_gnu_ifunc_resolver_return.
7565 (set_breakpoint_location_function): New parameter explicit_loc,
7566 describe it. Call find_pc_partial_function_gnu_ifunc with new
7567 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7568 EXPLICIT_LOC is not set.
7569 (set_raw_breakpoint): Set EXPLICIT_LOC for
7570 set_breakpoint_location_function.
7571 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7572 set_breakpoint_location_function.
7573 (mention): Support bp_gnu_ifunc_resolver and
7574 bp_gnu_ifunc_resolver_return.
7575 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7576 set_breakpoint_location_function.
7577 (update_breakpoint_locations): Remove static.
7578 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7579 bp_gnu_ifunc_resolver_return.
7580 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7581 bp_gnu_ifunc_resolver_return.
7582 (update_breakpoint_locations): New declaration.
7583 * elfread.c: Include gdbthread.h and regcache.h.
7584 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7586 (elf_gnu_ifunc_fns): Install them.
7587 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7588 (stub_gnu_ifunc_resolver_return_stop): New functions.
7589 (stub_gnu_ifunc_fns): Install them.
7590 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7591 and gnu_ifunc_resolver_return_stop.
7592 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7594 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7596 STT_GNU_IFUNC reader implementation.
7597 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7598 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7599 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7600 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7601 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7602 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7603 (elf_gnu_ifunc_resolve_addr): New.
7604 (elf_symfile_read): Call elf_rel_plt_read.
7605 (elf_gnu_ifunc_fns): New.
7606 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7607 Install elf_gnu_ifunc_fns.
7608 * infcall.c (find_function_return_type): New function.
7609 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7610 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7611 (stub_gnu_ifunc_resolve_name): New functions.
7612 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7613 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7614 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7616 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7618 Code cleanup for later STT_GNU_IFUNC support.
7619 * infcall.c (find_function_addr): Remove variable code, use explicit
7620 dereferences for it. Move VALUE_TYPE initialization later.
7622 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7624 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7625 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7626 (clear_pc_function_cache): Clear it.
7627 (find_pc_partial_function): Rename to ...
7628 (find_pc_partial_function_gnu_ifunc): ... this function. New
7629 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7630 (find_pc_partial_function): New wrapper for this function.
7631 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7633 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7635 GDB internal type support for STT_GNU_IFUNC.
7636 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7637 (elf_symtab_read): Set mst_text_gnu_ifunc for
7638 BSF_GNU_INDIRECT_FUNCTION.
7639 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7640 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7641 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7642 nodebug_got_plt_symbol.
7643 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7644 (TYPE_GNU_IFUNC): New.
7645 (struct main_type): New field flag_gnu_ifunc.
7646 (struct builtin_type): New field builtin_func_func.
7647 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7648 nodebug_got_plt_symbol.
7649 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7650 (in_gnu_ifunc_stub): New.
7651 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7653 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7654 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7655 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7657 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7658 * symtab.c (search_symbols): Likewise.
7659 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7660 and mst_slot_got_plt.
7661 (in_gnu_ifunc_stub): New declaration.
7663 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7665 Support a ring of related breakpoints.
7666 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7667 other functions, add gdb_assert.
7668 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7669 watchpoint_del_at_next_stop.
7670 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7671 (bpstat_stop_status): Handle ring in related_breakpoint.
7672 (set_raw_breakpoint_without_location): Initialize ring in
7674 (delete_breakpoint): Handle ring in related_breakpoint, use
7675 watchpoint_del_at_next_stop.
7676 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7678 2011-03-28 Tom Tromey <tromey@redhat.com>
7681 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7682 with `language_minimal'.
7684 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7686 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7687 instead of checking for STT_ARM_TFUNC symbol type.
7689 2011-03-25 Tom Tromey <tromey@redhat.com>
7691 * linespec.c (symbol_found): Restore line-based result for
7692 non-LOC_LABEL symbols.
7694 2011-03-25 Kai Tietz <ktietz@redhat.com>
7696 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7697 instead of strcmp for comparison.
7698 (tui_source_is_displayed): Likewise.
7699 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7701 2011-03-24 Mark Wielaard <mjw@redhat.com>
7703 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7705 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7706 (find_partial_die_in_comp_unit): Likewise in comment.
7707 (read_attribute_value): Likewise.
7708 (lookup_die_type): Likewise.
7709 (dwarf_form_name): Likewise.
7710 (dump_die_shallow): Likewise.
7711 (follow_die_ref_or_sig): Likewise.
7713 2011-03-24 Tom Tromey <tromey@redhat.com>
7715 PR breakpoints/11816:
7716 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7717 (decode_compound): Update.
7718 (find_function_symbol): New function.
7719 (decode_dollar): Update.
7720 (decode_label): Add 'function_symbol' parameter. Handle
7721 function-relative labels.
7722 (decode_variable): Update.
7723 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7724 not its line. Set `special_display' and canonical name for
7727 2011-03-24 Tom Tromey <tromey@redhat.com>
7729 * linespec.h (struct linespec_result) <special_display>: New
7731 * breakpoint.h (struct breakpoint) <display_canonical>: New
7733 * breakpoint.c (print_breakpoint_location): Respect
7735 (create_breakpoint_sal): Add 'display_canonical' parameter.
7736 (create_breakpoints_sal): Update.
7737 (create_breakpoint): Update.
7739 2011-03-24 Tom Tromey <tromey@redhat.com>
7741 * symtab.c (decode_line_spec): Update.
7742 * linespec.c (build_canonical_line_spec): Change type of
7744 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7745 (find_method, decode_all_digits, decode_dollar, decode_label)
7746 (symbol_found): Likewise.
7747 (init_linespec_result): New function.
7748 * breakpoint.c (struct captured_parse_breakpoint_args)
7749 <canonical_p>: New field, replaces addr_string_p.
7750 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7752 (parse_breakpoint_sals): Likewise.
7753 (do_captured_parse_breakpoint): Update.
7754 (create_breakpoint): Use struct linespec_result.
7755 (until_break_command): Update.
7756 (breakpoint_re_set_one): Update.
7757 (decode_line_spec_1): Update.
7758 * linespec.h (struct linespec_result): New.
7759 (init_linespec_result): Declare.
7761 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7763 * regcache.c (regcache_raw_read): If the target didn't supply a
7764 given raw register, mark it as unavailable.
7766 2011-03-23 Kai Tietz <ktietz@redhat.com>
7768 * breakpoint.c (clear_command): Use filename_cmp
7769 instead of strcmp for comparison.
7770 * buildsym.c (watch_main_source_file_lossage): Likewise.
7771 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7772 checking just for slash.
7773 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7774 strrchr and filename_cmp instead of strcmp for filenames.
7775 (add_old_header_file): Use filename_cmp
7776 instead of strcmp for comparison.
7777 * exec.c (exec_set_section_address): Likewise.
7778 * macrotab.c (macro_lookup_inclusion): Likewise.
7779 (macro_lookup_inclusion): Likewise.
7780 * elfread.c (_initialize_elfread): Likewise.
7781 (elfstab_offset_sections): Likewise.
7782 (elfstab_offset_sections): Use lbasename instead of
7784 * mdebugread.c (parse_partial_symbols): Likewise.
7785 (arse_partial_symbols): Use filename_(n)cmp instead of
7786 str(n)cmp for comparison.
7787 * minsyms.c (lookup_minimal_symbol): Likewise.
7788 * psymtab.c (read_psymtabs_with_filename): Likewise.
7789 * solib.c (solib_read_symbols): Likewise.
7790 (reload_shared_libraries_1): Likewise.
7791 * symmisc.c (maintenance_print_symbols): Likewise.
7792 * symfile.c (separate_debug_file_exists): Likewise.
7793 (reread_symbols): Likewise.
7794 (find_separate_debug_file_by_debuglink): Likewise.
7795 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7796 * source.c (add_path): Likewise.
7797 * symtab.c (filename_seen): Likewise.
7798 (file_matches): Likewise.
7799 (print_symbol_info): Likewise.
7800 (maybe_add_partial_symtab_filename): Likewise.
7801 (make_source_files_completion_list): Likewise.
7802 * xml-syscall.c (init_sysinfo): Likewise.
7803 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7804 IS_DIR_SEPARATOR for checking for trailing path separator.
7806 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7808 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7809 label abort_expression.
7810 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7811 DWARF_VALUE_OPTIMIZED_OUT.
7813 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7816 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7817 to linkage_name. Invert its value. Update the function comment.
7818 (c_type_print_varspec_suffix): Invert it at the caller.
7819 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7821 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7823 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7824 errors when reading the `stop_pc'.
7825 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7828 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7830 * NEWS: Document gdb.Write stream keyword.
7832 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7835 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7836 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7837 (dwarf2_add_field): Fix new_field->accessibility for
7838 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7840 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7844 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7845 other error classes. Do not print stack trace.
7847 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7849 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7850 (dwarf2_add_field): Fix new_field->accessibility for
7851 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7853 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7855 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7856 encountering a load via a non-SP register.
7858 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7860 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7861 field in returned unwinder.
7863 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7865 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7867 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7869 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7872 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7874 * frame.c (frame_unwind_register): Throw an error if unwinding the
7876 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7877 an unwind stop reason.
7878 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7879 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7880 UNWIND_UNAVAILABLE>: New.
7881 * inline-frame.c (inline_frame_unwind): Install
7882 default_frame_unwind_stop_reason.
7883 * frame-unwind.c: Include "exceptions.h".
7884 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7885 (default_frame_unwind_stop_reason): New.
7886 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7887 (default_frame_unwind_stop_reason): Declare.
7888 (struct frame_unwind) <stop_reason>: New function pointer.
7890 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7891 * dwarf2-frame.c: Include exceptions.h.
7892 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7893 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7894 computing the CFA. If such an error was thrown, set
7895 unavailable_retaddr.
7896 (dwarf2_frame_unwind_stop_reason): New.
7897 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7899 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7900 (dwarf2_signal_frame_unwind): Ditto.
7902 * amd64-tdep.c: Include "exceptions.h".
7903 (struct amd64_frame_cache): New field "base_p".
7904 (amd64_init_frame_cache): Clear it.
7905 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7906 Avoid reading registers with functions that throw if the register
7907 is not necessary to compute the frame base.
7908 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7909 swallowing NOT_AVAILABLE_ERROR.
7910 (amd64_frame_unwind_stop_reason): New.
7911 (amd64_frame_this_id): Don't build a frame id if the frame base
7913 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7914 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7915 base_p if the frame base was computable.
7916 (amd64_sigtramp_frame_unwind_stop_reason): New.
7917 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7918 frame base was unavailable.
7919 (amd64_sigtramp_frame_unwind): Install
7920 amd64_sigtramp_frame_unwind_stop_reason.
7921 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7922 base_p if the frame base was computable.
7923 (amd64_epilogue_frame_unwind_stop_reason): New.
7924 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7925 frame base was unavailable.
7926 (amd64_epilogue_frame_unwind): Install
7927 amd64_epilogue_frame_unwind_stop_reason.
7928 * i386-tdep.c: Include "exceptions.h".
7929 (struct i386_frame_cache): New field "base_p".
7930 (i386_init_frame_cache): Clear it.
7931 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7932 Avoid reading registers with functions that throw if the register
7933 is not necessary to compute the frame base.
7934 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7935 swallowing NOT_AVAILABLE_ERROR.
7936 (i386_frame_unwind_stop_reason): New.
7937 (i386_frame_this_id): Don't build a frame id if the frame base was
7939 (i386_frame_prev_register): Handle unavailable SP.
7940 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7941 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7942 base_p if the frame base was computable.
7943 (i386_epilogue_frame_unwind_stop_reason): New.
7944 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7945 base was unavailable.
7946 (i386_epilogue_frame_unwind): Install
7947 i386_epilogue_frame_unwind_stop_reason.
7948 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7949 base_p if the frame base was computable.
7950 (i386_sigtramp_frame_unwind_stop_reason): New.
7951 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7952 base was unavailable.
7953 (i386_sigtramp_frame_unwind): Install
7954 i386_sigtramp_frame_unwind_stop_reason.
7955 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7956 type's size, not the register's.
7957 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7959 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7960 default_frame_unwind_stop_reason.
7961 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7962 (alpha_heuristic_frame_unwind): Ditto.
7963 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7964 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7965 * avr-tdep.c (avr_frame_unwind): Ditto.
7966 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7968 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7969 * frv-tdep.c (frv_frame_unwind): Ditto.
7970 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7971 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7972 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7973 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7974 (hppa_stub_frame_unwind): Ditto.
7975 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7976 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7977 (ia64_libunwind_frame_unwind)
7978 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7979 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7980 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7981 * m32c-tdep.c (m32c_unwind): Ditto.
7982 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7983 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7984 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7985 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7986 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7987 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7988 * mep-tdep.c (mep_frame_unwind): Ditto.
7989 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7990 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7991 (mips_stub_frame_unwind): Ditto.
7992 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7993 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7994 * mt-tdep.c (mt_frame_unwind): Ditto.
7995 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7996 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7997 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7998 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7999 (s390_sigtramp_frame_unwind): Ditto.
8000 * score-tdep.c (score_prologue_unwind): Ditto.
8001 * sh-tdep.c (sh_frame_unwind): Ditto.
8002 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8003 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8004 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8005 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8006 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8007 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8008 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8009 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8010 (sparc64obsd_trapframe_unwind): Ditto.
8011 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8012 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8013 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8014 * v850-tdep.c (v850_frame_unwind): Ditto.
8015 * vax-tdep.c (vax_frame_unwind): Ditto.
8016 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8017 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8018 * xtensa-tdep.c (xtensa_unwind): Ditto.
8020 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8022 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8023 there's always a frame. Use get_frame_pc_if_available instead of
8024 get_frame_pc, and if there's no PC available, don't look up a
8027 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8029 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8032 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8034 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8037 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8039 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8040 * frame.c (frame_unwind_caller_pc_if_available): New.
8041 * stack.c (frame_info): Handle unavailable PC.
8043 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8045 * frame.c (frame_unwind_pc): Rename to ...
8046 (frame_unwind_pc_if_available): ... this. New `pc' output
8047 parameter. Change return type to int. Gracefully handle
8048 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8049 happened, or 1 otherwise.
8050 (frame_unwind_pc): Reimplement on top of
8051 frame_unwind_pc_if_available.
8052 (get_frame_func): Rename to ...
8053 (get_frame_func_if_available): New `pc' output parameter. Change
8054 return type to int. Gracefully handle the PC not being available.
8055 (get_frame_func): Reimplement on top of
8056 get_frame_func_if_available.
8057 (select_frame): Handle the PC being unavailable.
8058 (get_prev_frame): Handle the PC being unavailable.
8059 (get_frame_pc_if_available): New.
8060 (get_frame_address_in_block_if_available): New.
8061 (find_frame_sal): Handle the frame PC not being available.
8062 * frame.h (get_frame_pc_if_available): Declare.
8063 (get_frame_address_in_block_if_available): Declare.
8064 (get_frame_func_if_available): Declare.
8065 * stack.c (print_frame_info): Handle the PC being unavailable.
8066 (find_frame_funname): Ditto.
8067 (print_frame): Handle the PC being unavailable.
8068 (get_frame_language): Ditto.
8069 * blockframe.c (get_frame_block): Ditto.
8070 * macroscope.c (default_macro_scope): Ditto.
8071 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8073 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8075 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8076 NOT_AVAILABLE_ERROR when evaluating the location expression.
8078 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8080 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8081 returning that the register piece is unavailable/optimized out.
8082 (write_pieced_value): Handle get_frame_register_bytes returning
8083 that the register piece is unavailable/optimized out when doing a
8084 read-modify write of a bitfield.
8085 * findvar.c (value_from_register): Handle get_frame_register_bytes
8086 returning that the register piece is unavailable/optimized out.
8087 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8088 and `unavailablep'. Throw error on bad debug info. Use
8089 frame_register instead of frame_register_read, to fill in the new
8091 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8093 * valops.c: (value_assign): Adjust, and handle
8094 get_frame_register_bytes failing.
8095 * spu-tdep.c: Include exceptions.h.
8096 (spu_software_single_step): Adjust, and handle
8097 get_frame_register_bytes failing.
8098 (spu_get_longjmp_target): Ditto.
8099 * gdbarch.sh (register_to_value): Change to return int. New
8100 parameters `optimizedp' and `unavailablep'.
8101 * gdbarch.h, gdbarch.c: Regenerate.
8102 * i386-tdep.c (i386_register_to_value): Adjust to new
8103 gdbarch_register_to_value interface.
8104 * i387-tdep.c (i387_register_to_value): Ditto.
8105 * i387-tdep.h (i387_register_to_value): Ditto.
8106 * alpha-tdep.c (alpha_register_to_value): Ditto.
8107 * ia64-tdep.c (ia64_register_to_value): Ditto.
8108 * m68k-tdep.c (m68k_register_to_value): Ditto.
8109 * mips-tdep.c (mips_register_to_value): Ditto.
8110 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8112 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8114 * findvar.c (value_of_register): Mark the value as unavailable, if
8115 the register is unavailable.
8116 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8117 (frame_register): New `unavailablep' parameter.
8118 (frame_register_read): Update comment.
8119 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8120 Set it if the register is unavailable. If the register is
8121 unavailable, clear the output buffer.
8122 (frame_register): New `unavailablep' parameter. Pass it down.
8123 (frame_unwind_register): Adjust.
8124 (put_frame_register): Adjust.
8125 (frame_register_read): Adjust. Also return false if the register
8127 (frame_register_unwind_location): Adjust.
8128 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8129 is unavailable, mark the value accordingly.
8130 * stack.c (frame_info): Handle unavailable registers.
8132 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8134 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8135 simplify, using regcache_cooked_read.
8137 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8139 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8140 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8141 (regcache_raw_read_unsigned, regcache_raw_read_part)
8142 (regcache_cooked_read, regcache_cooked_read_signed)
8143 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8144 (regcache_cooked_read_ftype): Change return to enum
8146 * regcache.c: Include exceptions.h
8147 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8148 (do_cooked_read): Change return to enum register_status. Always
8149 forward to regcache_cooked_read.
8150 (regcache_raw_read): Change return to enum register_status. If
8151 the register is not REG_VALID, memset the buffer. Return the
8153 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8154 return the register's status.
8155 (regcache_raw_read_unsigned): Ditto.
8156 (regcache_cooked_read): Change return to enum register_status.
8157 Assert that with read-only regcaches, the register's status must
8158 be known. If the regcache is read-only, and the register is not
8159 REG_VALID, memset the buffer. Return the register's status.
8160 (regcache_cooked_read_signed): Change return to enum
8161 register_status. Handle non-REG_VALID registers and return the
8163 (regcache_cooked_read_unsigned): Change return to enum
8164 register_status. Handle non-REG_VALID registers and return the
8166 (regcache_xfer_part, regcache_raw_read_part)
8167 (regcache_cooked_read_part): Change return to enum
8168 register_status. Return the register's status.
8169 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8171 (regcache_dump): Handle unavailable cooked registers.
8172 * frame.c (do_frame_register_read): Adjust interface to match
8173 regcache_cooked_read_ftype.
8174 * gdbarch.sh (pseudo_register_read): Change return to enum
8176 * gdbarch.h, gdbarch.c: Regenerate.
8178 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8180 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8181 register_status. If reading a raw register indicates the raw
8182 register is not valid, return the raw register's status,
8183 otherwise, return REG_VALID.
8184 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8185 register_status. Handle non-REG_VALID raw registers and return
8186 the register's status.
8187 * arm-tdep.c (arm_neon_quad_read)
8188 (arm_pseudo_read): Change return to enum register_status. Handle
8189 non-REG_VALID raw registers and return the register's status.
8190 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8191 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8192 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8193 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8194 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8196 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8197 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8198 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8199 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8200 (m32c_pseudo_register_read): Change return to enum
8201 register_status. Adjust.
8202 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8203 enum register_status. Return the register's status.
8204 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8205 register_status. Return the register's status.
8206 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8207 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8208 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8209 * rs6000-tdep.c (move_ev_register_func): New typedef.
8210 (e500_move_ev_register): Use it. Change return to enum
8211 register_status. Return the register's status.
8212 (do_regcache_raw_read): New function.
8213 (do_regcache_raw_write): New function.
8214 (e500_pseudo_register_read): Change return to enum
8215 register_status. Return the register's status. Use
8216 do_regcache_raw_read.
8217 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8218 (dfp_pseudo_register_read): Change return to enum register_status.
8219 Return the register's status.
8220 (vsx_pseudo_register_read): Ditto.
8221 (efpr_pseudo_register_read): Ditto.
8222 (rs6000_pseudo_register_read): Ditto.
8223 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8224 register_status. Return the register's status.
8225 * sh64-tdep.c (pseudo_register_read_portions): New function.
8226 (sh64_pseudo_register_read): Change return to enum
8227 register_status. Use pseudo_register_read_portions. Return the
8229 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8230 register_status. Return the register's status.
8231 * sh-tdep.c (pseudo_register_read_portions): New function.
8232 (sh_pseudo_register_read): Change return to enum register_status.
8233 Use pseudo_register_read_portions. Return the register's status.
8234 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8235 enum register_status. Return the register's status.
8236 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8237 * spu-tdep.c (spu_pseudo_register_read_spu)
8238 (spu_pseudo_register_read): Ditto.
8239 * xtensa-tdep.c (xtensa_register_read_masked)
8240 (xtensa_pseudo_register_read): Ditto.
8241 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8243 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8245 * python/py-value.c (valpy_getitem): Fix formatting of error function
8248 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8250 ARI fixes: Add missing internationalization markups throughout
8252 * darwin-nat-info.c: Ditto.
8255 * mi/mi-main.c: Ditto.
8257 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8259 ARI fixes: Add missing internationalization markups throughout
8262 * cp-name-parser.y: Ditto.
8265 * objc-exp.y: Ditto.
8268 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8270 ARI fixes: Messages should have no trailing new lines.
8271 * darwin-nat.c (mach_check_error): Remove trailing new line from
8272 warning function call message.
8273 * record.c (bfdcore_read): Idem for error call.
8275 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8277 * common/signals.c (target_signal_from_host): Add _ markup to error
8278 function call message.
8279 (target_signal_to_host): Add _ markup and remove trailing new line
8280 from warning call message.
8281 (target_signal_from_command): Add _ markup to error function call
8284 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8288 * python/python.c (gdbpy_write): Accept a stream argument and
8289 operate to the appropriate stream.
8290 (gdbpy_flush): Likewise.
8291 (_initialize_python): Add stream constants.
8292 (finish_python_initialization): Add GdbOutputErrorFile class.
8294 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8296 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8298 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8300 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8301 to store_signed_integer. Add debug message when relocating CALL
8302 instructions. Fix formatting of debug message.
8303 * i386-tdep.c (i386_relocate_instruction): Ditto.
8305 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8307 * target.h (struct target_ops): Remove to_lookup_symbol field.
8308 (target_lookup_symbol): Delete macro.
8309 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8310 (update_current_target, setup_target_debug): Remove handling
8311 of to_lookup_symbol target_ops field.
8312 * ada-tasks.c (get_known_tasks_addr): Remove use of
8313 target_lookup_symbol.
8314 * coffread.c (coff_symtab_read): Likewise.
8315 * dbxread.c (read_dbx_symtab): Ditto.
8317 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8320 * configure.ac: Add getthrds declaration check.
8321 * configure, config.in: Regenerate.
8322 * aix-thread.c (getthrds): Declare only if not already declared
8323 in procinfo.h. More declaration out of get_signaled_thread to
8326 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8328 * python/py-symtab.c: Populate symtab_object_methods,
8330 (stpy_is_valid): New function.
8331 (salpy_is_valid): Ditto.
8332 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8333 (sympy_is_valid): New function.
8334 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8335 (objfpy_is_valid): New function.
8336 * python/py-inferior.c: Populate inferior_object_methods.
8337 (infpy_is_valid): New function.
8338 * python/py-infthread.c: Populate thread_object_methods.
8339 (thpy_is_valid): New function.
8340 * python/py-block.c: Declare block_object_methods. Populate. Declare
8341 block_iterator_object_methods. Populate.
8342 (blpy_is_valid): New function.
8343 (blpy_iter_is_valid): Ditto.
8345 2011-03-16 Keith Seitz <keiths@redhat.com>
8347 * linespec.c (find_methods): Canonicalize NAME before looking
8349 (name_end): New function.
8350 (keep_name_info): New function.
8351 (decode_line_1): Use keep_name_info.
8352 (decode_compound): Likewise.
8353 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8354 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8357 * linespec.c (locate_first_half): Keep overload information, too.
8358 (decode_compound): Use a string to represent break characters
8360 If P points to a break character, do not increment it.
8361 For C++ and Java, keep overload information and relevant keywords.
8362 If we cannot find a symbol, search the minimal symbols.
8365 * linespec.c (decode_compound): Rename SAVED_ARG to
8367 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8369 Pass a valid block to lookup_symbol.
8370 (lookup_prefix_sym): Likewise.
8371 (find_method): Construct search name based on SYM_CLASS instead
8373 * psymtab.c (lookup_partial_symbol): Add language parameter.
8374 (lookup_symbol_aux_psymtabs): Likewise.
8375 Don't assume that the psymtab we found was the right one. Search
8376 for the desired symbol in the symtab to be certain.
8377 (psymtab_search_name): New function.
8378 (lookup_partial_symbol): Use psymtab_search_name.
8379 Add language parameter.
8380 (read_symtabs_for_function): Add language parameter and pass to
8381 lookup_partial_symbol.
8382 (find_symbol_file_from_partial): Likewise.
8384 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8387 * dwarf2read.c (noop_record_line): New function.
8388 (dwarf_decode_lines): Ignore line tables for GCd functions.
8390 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8392 Fix ARI warnings about new lines at the end of messages, which
8393 are unneeded as there is a new line added at the end of the message
8395 * darwin-nat.c (darwin_stop_inferior): Ditto.
8396 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8397 * dfp.c (decimal_to_number): Ditto.
8398 * exec.c (print_section_info): Ditto.
8399 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8400 * osdata.c (get_osdata): Ditto.
8401 * record.c (bfdcore_write): Ditto.
8402 * remote-mips.c (mips_readchar): Ditto.
8403 * remote.c (read_ptid): Ditto.
8404 * ser-mingw.c (ser_windows_raw): Ditto.
8405 * tracepoint.c (add_local_symbols): Ditto.
8406 * windows-nat.c (fake_create_process): Ditto.
8408 2011-03-16 Tom Tromey <tromey@redhat.com>
8410 * tracepoint.c (stop_tracing): Don't declare.
8411 * event-top.c (after_char_processing_hook): Add `(void)'.
8413 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8415 * NEWS: Add Parameter sub-classing description.
8417 2011-03-16 Kai Tietz <ktietz@redhat.com>
8419 * MAINTAINERS: Update my e-mail address.
8421 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8423 * MAINTAINERS: Add myself for write after approval privileges.
8425 2011-03-15 Michael Snyder <msnyder@vmware.com>
8427 * frame.c (find_frame_sal): Assert sym is not null.
8429 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8431 * objc-lang.c (selectors_info): Check strchr for null result.
8433 * stabsread.c (define_symbol): Guard against bad stabstring input.
8435 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8437 Remove trailing spaces and tabulations from pascal language
8442 p-valprint.c: Ditto.
8444 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8446 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8447 than LOW. Comment it.
8448 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8449 HIGHPC not strictly higher than LOWPC.
8451 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8453 Fix formatting of function declarations returning a pointer in
8455 * varobj.c (varobj_add_child): Ditto.
8456 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8457 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8459 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8461 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8462 for the "generic" vector ABI used with GCC 4.3 and later.
8463 (ppc64_sysv_abi_return_value): Likewise.
8465 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8467 * infcall.c (call_function_by_hand): Function return value is
8468 always a non_lval, even when using struct_return.
8470 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8472 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8473 (map_display_numbers): New.
8474 (do_delete_display): New.
8475 (undisplay_command): Use map_display_numbers.
8476 (do_enable_disable_display): New.
8477 (enable_disable_display_command): New function.
8478 (enable_display): Delete.
8479 (enable_display_command): New.
8480 (disable_display_command): Reimplement.
8481 (_initialize_printcmd): Adjust "enable display" command to use
8482 `enable_display_command' as callback.
8484 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8486 * NEWS: Add Python breakpoint 'stop' operation.
8488 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8490 * NEWS: Delete duplicate entry. Fix typo.
8492 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8494 Fix ARI warning about function names in first column.
8495 Put prototype declaration on same line as return type.
8496 * objc-exp.y: Ditto.
8498 * python/py-stopevent.h: Ditto.
8499 For long function names, split parameters to
8500 allow function name on same line as return type.
8501 * solib-pa64.c: Ditto.
8504 For long function declaration, use single line.
8505 * hppa-tdep.h: Ditto.
8506 * inferior.h: Ditto.
8508 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8510 * python/python.h: Declare gdbpy_should_stop and
8511 gdbpy_breakpoint_has_py_cond.
8512 * python/python.c: Add python.h to includes. Remove python.h from
8513 HAVE_PYTHON definition
8514 (gdbpy_should_stop): New dummy function.
8515 (gdbpy_breakpoint_has_py_cond): New dummy function.
8516 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8517 sub-classing capabilities.
8518 (gdbpy_should_stop): New function.
8519 (gdbpy_breakpoint_has_py_cond): New function.
8520 (local_setattro): New function.
8521 * breakpoint.c (condition_command): Add check for Python 'stop'
8523 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8524 operation function as part of stop/continue tests.
8526 2011-03-14 Tom Tromey <tromey@redhat.com>
8529 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8530 (needs_frame_dwarf_call): Likewise.
8532 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8534 Fix ARI warning about functions without parameters that do not
8536 * breakpoint.c (all_tracepoints): Replace () by (void).
8537 * f-exp.y (match_string_literal): Ditto.
8539 * m2-exp.y (yylex): Ditto.
8540 * mep-tdep.c (current_me_module): Ditto.
8541 (current_options): Ditto.
8542 (current_cop_data_bus_width): Ditto.
8543 (current_cr_names): Ditto.
8544 (current_cr_is_float): Ditto.
8545 (current_ccr_names): Ditto.
8546 * objc-exp.y (yylex): Ditto.
8547 * p-exp.y (yylex): Ditto.
8548 * remote.c (send_interrupt_sequence): Ditto.
8549 * tracepoint.c (current_trace_status): Ditto.
8550 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8551 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8553 2011-03-11 Michael Snyder <msnyder@vmware.com>
8555 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8556 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8557 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8558 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8559 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8561 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8562 (delete_async_event_handler): Ditto.
8564 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8566 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8568 * top.c (set_verbose): Assert showcmd was found.
8570 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8572 * xtensa-tdep.c (warning_once): Correct style issues.
8574 2011-03-11 Yao Qi <yao@codesourcery.com>
8576 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8578 2011-03-11 Andreas Schwab <schwab@redhat.com>
8580 * common/aclocal.m4: Remove.
8582 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8584 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8585 (xtensa_write_register, xtensa_read_register): Likewise.
8586 (xtensa_hextochar): Removed.
8587 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8589 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8591 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8592 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8593 (xtensa_alloc_frame_cache): Add initialization for new fields.
8594 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8595 (warning_once): New function.
8596 (xtensa_insn_kind): New item c0opc_and.
8597 (call0_classify_opcode): Add the case for AND instruction.
8598 (call0_track_op): Change arguments. New local variable litbase.
8599 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8600 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8602 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8603 (call0_analyze_prologue): Update the comments. Change arguments.
8604 Add the variety of updates to handle extended prologues, which now can
8605 conduct dynamic stack adjustments.
8606 (call0_frame_cache): Likewise.
8607 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8608 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8610 2011-03-10 Michael Snyder <msnyder@vmware.com>
8612 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8613 (cmd_qtframe): Ditto.
8614 (cmd_qtbuffer): Ditto.
8615 (cmd_bigqtbuffer): Ditto.
8617 2011-03-10 Tom Tromey <tromey@redhat.com>
8619 * tracepoint.c (trace_actions_command): Update.
8620 * thread.c (thread_apply_command): Update.
8621 * reverse.c (delete_bookmark_command): Update.
8622 (bookmarks_info): Update.
8623 * printcmd.c (undisplay_command): Update.
8624 * memattr.c (mem_enable_command): Update.
8625 (mem_disable_command): Update.
8626 (mem_delete_command): Update.
8627 * inferior.c (detach_inferior_command): Update.
8628 (kill_inferior_command): Update.
8629 (remove_inferior_command): Update.
8630 * cli/cli-utils.h (struct get_number_or_range_state): New.
8631 (init_number_or_range): Declare.
8632 (get_number_or_range): Update.
8633 * cli/cli-utils.c (init_number_or_range): New function.
8634 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8636 (number_is_in_list): Update.
8637 * breakpoint.h (get_tracepoint_by_number): Update.
8638 * breakpoint.c (map_breakpoint_numbers): Update for change to
8639 get_number_or_range.
8640 (find_location_by_number): Use get_number, not
8641 get_number_or_range.
8642 (trace_pass_set_count): New function.
8643 (trace_pass_command): Update for change to get_number_or_range.
8645 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8648 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8650 * python/py-param.c (add_setshow_generic): Add set/show callback
8651 parameters. Register Python object context.
8652 (get_show_value): New function.
8653 (get_set_value): New function.
8654 (call_doc_function): New function.
8655 (get_doc_string): Move behind get_show_value/get_set_value.
8657 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8659 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8661 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8663 * xtensa-tdep.c (xtensa_read_register): Add comment.
8664 (xtensa_write_register): Likewise.
8665 (xtensa_hextochar): Add comment and update to match coding conventions.
8666 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8667 (execute_l32e, execute_s32e, execute_code): Update comments.
8668 (xtensa_exception_handler_t): Update to match coding conventions.
8669 (xtensa_insn_kind): Likewise.
8671 2011-03-09 Michael Snyder <msnyder@vmware.com>
8673 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8675 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8677 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8679 2011-03-09 Tom Tromey <tromey@redhat.com>
8681 * thread.c (restore_selected_frame): Handle frame_level == -1.
8682 (make_cleanup_restore_current_thread): Use
8683 get_selected_frame_if_set.
8684 * frame.h (get_selected_frame_if_set): Declare.
8685 * frame.c (get_selected_frame_if_set): New function.
8687 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8689 * cli/cli-cmds.c (shell_escape): Use lbasename.
8690 * coffread.c (coff_start_symtab): Constify parameter.
8691 (complete_symtab): Constify `name' parameter.
8692 (coff_symtab_read): Constify `filestring' local.
8693 (coff_getfilename): Constify return and `result' local.
8695 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8696 * linux-fork.c (info_checkpoints_command): Use lbasename.
8697 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8698 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8699 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8700 * procfs.c (procfs_make_note_section): Use lbasename.
8701 * tui/tui-io.c (printable_part): Constity return and parameter.
8703 (print_filename): Constify parameters, and local `s'.
8704 (tui_rl_display_match_list): Constify local `temp'.
8706 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8709 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8710 Fix DWARF-3+ DW_AT_accessibility default assumption.
8711 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8712 cu->header.version >= 3.
8714 2011-03-09 Yao Qi <yao@codesourcery.com>
8716 * common/Makefile.in: Remove.
8717 * common/configure: Remove.
8718 * common/configure.ac: Remove.
8720 2011-03-09 Yao Qi <yao@codesourcery.com>
8723 2011-02-11 Yao Qi <yao@codesourcery.com>
8725 * common/Makefile.in: Add copyright header.
8727 2011-02-11 Yao Qi <yao@codesourcery.com>
8729 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8731 * configure.ac: Add common to sub dir.
8732 * configure: Regenerate.
8734 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8736 * xtensa-tdep.c (call0_ret): New function.
8737 (xtensa_skip_prologue): Speed up analysis.
8739 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8741 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8742 while executing MI command -data-list-changed-registers.
8744 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8746 * xtensa-tdep.c (xtensa_read_register): New function.
8747 (xtensa_write_register): New function.
8748 (xtensa_find_register_by_name): New function.
8749 (xtensa_windowed_frame_cache): Update comments in type description.
8750 (xtensa_frame_cache): Likewise.
8751 (xtensa_window_interrupt_insn): New function.
8752 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8753 (xtensa_insn_kind): Add new instructions.
8754 (rwx_special_register): New function.
8755 (call0_classify_opcode): Add new instructions to the analysis.
8756 (a0_saved, a7_saved, a11_saved): New variables.
8757 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8758 (execute_l32e): New function.
8759 (execute_s32e): New function.
8760 (xtensa_exception_handler_t): New type.
8761 (execute_code): New function.
8762 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8763 analysis for Xtensa Window Exception handlers.
8765 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8767 * xtensa-tdep.c (TX_PS): New.
8768 (windowing_enabled): Update to count for Call0 ABI.
8769 (xtensa_hextochar): New.
8770 (xtensa_init_reggroups): Make algorithm generic.
8771 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8773 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8775 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8777 2011-03-08 Michael Snyder <msnyder@vmware.com>
8779 * i386-tdep.c (i386_follow_jump): Check return value of
8781 (i386_analyze_struct_return): Ditto.
8782 (i386_skip_probe): Ditto.
8783 (i386_match_insn): Ditto.
8784 (i386_skip_noop): Ditto.
8785 (i386_analyze_frame_setup): Ditto.
8786 (i386_analyze_register_saves): Ditto.
8787 (i386_skip_prologue): Ditto.
8788 (i386_skip_main_prologue): Ditto.
8790 * target.c (read_whatever_is_readable): Fix memory leak.
8792 * i386-tdep.c (i386_process_record): Document fall through.
8794 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8796 Fix DWARF-3+ DW_AT_accessibility default assumption.
8797 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8798 cu->header.version >= 3.
8800 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8802 * remote.c (remote_check_symbols): Skip if the target has no
8805 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8807 * target.c (read_whatever_is_readable): Reformat comment,
8808 with a minor typo fix. Minor reformatting of the code.
8810 2011-03-08 Yao Qi <yao@codesourcery.com>
8812 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8813 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8814 Use cached result instead of calling displaced_in_arm_mode again.
8815 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8816 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8817 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8818 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8819 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8820 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8821 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8822 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8823 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8824 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8825 (arm_catch_kernel_helper_return): Likewise.
8826 * gdb/arm-tdep.h : Update function declarations.
8828 2011-03-07 Michael Snyder <msnyder@vmware.com>
8830 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8832 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8834 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8836 * elfread.c (elf_symtab_read): Stop memory leak.
8838 * main.c (captured_main): Fix memory leak.
8840 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8842 * ada-lang.c (compare_names): Call is_name_suffix with string1
8845 2011-03-07 Tom Tromey <tromey@redhat.com>
8847 * xcoffread.c (xcoff_sym_fns): Update.
8848 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8849 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8850 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8851 (symbol_file_add_with_addrs_or_offsets): Likewise.
8852 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8853 * somread.c (som_sym_fns): Update.
8854 * psymtab.h (require_partial_symbols): Declare.
8855 * psymtab.c (require_partial_symbols): New function.
8856 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8857 (ALL_OBJFILE_PSYMTABS): Undef.
8858 (ALL_PSYMTABS): Move from psympriv.h.
8859 (lookup_partial_symtab, find_pc_sect_psymtab)
8860 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8861 (find_last_source_symtab_from_partial)
8862 (forget_cached_source_info_partial)
8863 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8864 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8865 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8866 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8867 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8868 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8869 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8870 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8871 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8873 * mipsread.c (ecoff_sym_fns): Update.
8874 * machoread.c (macho_sym_fns): Update.
8875 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8876 (read_psyms): New function.
8877 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8878 (elf_sym_fns_lazy_psyms): New global.
8879 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8880 dwarf2_build_psymtabs.
8881 * dbxread.c (aout_sym_fns): Update.
8882 * coffread.c (coff_sym_fns): Update.
8884 2011-03-07 Tom Tromey <tromey@redhat.com>
8886 * infrun.c (print_exited_reason): Include inferior id and pid in
8889 2011-03-07 Tom Tromey <tromey@redhat.com>
8891 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8893 (target_has_execution_1): Update.
8894 (target_has_execution_current): Declare.
8895 (target_has_execution): Call target_has_execution_current.
8896 (default_child_has_execution): Update.
8897 * target.c (default_child_has_execution): Add 'the_ptid'
8899 (target_has_execution_1): Likewise.
8900 (target_has_execution_current): New function.
8901 (add_target): Update.
8902 (init_dummy_target): Update.
8903 * remote-m32r-sdi.c (m32r_has_execution): New function.
8904 (init_m32r_ops): Use it.
8905 * record.c (record_core_has_execution): Now static. Add
8906 'the_ptid' parameter.
8907 * inferior.c (have_live_inferiors): Don't save current thread.
8908 Use target_has_execution_1.
8910 2011-03-07 Yao Qi <yao@codesourcery.com>
8912 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8914 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8916 * elfread.c (elf_symtab_read): Minor reformatting.
8918 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8920 * objc-lang.c (selectors_info): Minor reformatting.
8922 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8924 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8926 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8927 Michael Snyder <msnyder@vmware.com>
8929 * ada-valprint.c (ada_val_print_array): Move the declaration of
8930 "byte_order" and "elttype" inside the block where these variables
8931 are actually used. Remove some special handling for the case
8932 where "elttype" and "eltlen" are null. Replace by a comment
8933 and a couple of assertion checks.
8935 2011-03-05 Michael Snyder <msnyder@vmware.com>
8937 * source.c (add_path): Replace semicolon at end of block.
8938 * dwarf2expr.c (execute_stack_op): Ditto.
8940 2011-03-05 Mike Frysinger <vapier@gentoo.org>
8942 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8943 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8944 (bfin-*-*): Likewise.
8946 2011-03-05 Michael Snyder <msnyder@vmware.com>
8948 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8949 * mdebugread.c (parse_symbol): Ditto.
8950 * parse.c (parse_exp_in_context): Ditto.
8951 * source.c (add_path): Ditto.
8952 * utils.c (gnu_debuglink_crc32): Ditto.
8953 * varobj.c (variable_language): Ditto.
8955 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8957 2011-03-04 Michael Snyder <msnyder@vmware.com>
8959 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8961 * symfile.c (simple_overlay_update): Check for null return value
8962 from lookup_minimal_symbol.
8964 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8966 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8968 * eval.c (parse_and_eval_address_1): Remove function.
8969 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8970 instead of parse_and_eval_address_1.
8971 * value.h (parse_and_eval_address_1): Remove prototype.
8973 2011-03-04 Michael Snyder <msnyder@vmware.com>
8975 * remote.c (putpkt_binary): Document that case stmt falls through.
8977 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8979 * breakpointc (print_it_typical): Move NULL check from here...
8980 (print_bp_stop_message): ... to here.
8982 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8984 * breakpoint.c (enable_command): Use break instead of continue,
8985 and fill in a missing break.
8986 (disable_command): Ditto.
8988 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8990 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8991 (terminal_save_ours): Remove misleading comment.
8992 (inflow_inferior_data_cleanup): Free ttystate.
8993 (inflow_inferior_exit): Likewise.
8994 (copy_terminal_info): Copy ttystate.
8996 * serial.c (serial_copy_tty_state): New function.
8997 * serial.h (serial_copy_tty_state): Add prototype.
8998 (struct serial_ops): Add copy_tty_state callback.
8999 * ser-base.c (ser_base_copy_tty_state): New function.
9000 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9001 * ser-go32.c (dos_copy_tty_state): New function.
9002 (dos_ops): Install copy_tty_state callback.
9003 * ser-mingw.c (_initialize_ser_windows): Likewise.
9004 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9005 * ser-unix.c (hardwire_copy_tty_state): New function.
9006 (_initialize_ser_hardwire): Install it.
9008 2011-03-04 Michael Snyder <msnyder@vmware.com>
9010 * breakpoint.c (create_breakpoint): Add missing break statement.
9012 Reverting this patch:
9013 * infcall.c (call_function_by_hand): Add break statements for lint.
9015 Reverting this patch:
9016 * cli/cli-script.c (script_from_file): Add break for lint.
9018 2011-03-04 Michael Snyder <msnyder@vmware.com>
9020 * solib.c (reload_shared_libraries_1): Close memory leak.
9022 2011-03-03 Tom Tromey <tromey@redhat.com>
9025 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9028 2011-03-03 Michael Snyder <msnyder@vmware.com>
9030 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9031 fields of struct 'st' to zero.
9033 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9034 sal.pspace before calling set_current_source_symtab_and_line.
9036 2011-03-03 Yao Qi <yao@codesourcery.com>
9038 * Makefile.in (configure-common): Remove. Let Makefile
9039 in dir common to rebuild itself.
9040 (common/Makefile): Likewise.
9042 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9044 * utils.c (parse_escape): Add i18n markup in error message.
9046 2011-03-03 Yao Qi <yao@codesourcery.com>
9048 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9050 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9051 (displaced_write_reg, displaced_read_reg): Likewise.
9052 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9053 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9054 (cleanup_branch): Replace magic number 14 and 15 with
9055 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9057 2011-03-02 Michael Snyder <msnyder@vmware.com>
9059 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9061 * cli/cli-script.c (script_from_file): Add break for lint.
9063 * mdebugread.c (parse_partial_symbols): Fix indent.
9065 * target-descriptions.c (tdesc_gdb_type): No need to call
9066 xstrdup, callee saves a copy.
9068 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9070 * infcall.c (call_function_by_hand): Add break statements for lint.
9072 * utils.c (parse_escape): Escape the escape char.
9074 * python/py-inferior.c (build_inferior_list): Error out if
9075 PyList_Append fails.
9076 (gdbpy_inferiors): Error out if build_inferior_list fails.
9078 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9081 * record.c (record_restore): Move printf to before error return.
9083 2011-03-02 Yao Qi <yao@codesourcery.com>
9085 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9086 is_thumb and insn_size.
9087 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9088 on both ARM and Thumb mode.
9089 (arm_process_displaced_insn): Set is_thumb and insn_size.
9090 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9091 (arm_displaced_step_fixup): Likewise.
9093 2011-03-01 Michael Snyder <msnyder@vmware.com>
9095 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9097 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9099 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9101 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9103 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9106 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9107 which shadows function parameter.
9109 * tracepoint.c (create_tsv_from_upload): Superfluous call
9110 to xstrdup. Callee already calls xstrdup.
9112 * linespec.c (decode_line_1): Remove unnecessary null check.
9114 * tracepoint.c (scope_info): Fix mem leak, remove underused
9117 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9118 superfluous null check.
9120 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9121 (value_of_builtin_frame_fp_reg): Ditto.
9123 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9125 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9128 * linespec.c (decode_line_1): Check for null before dereference.
9130 * reverse.c (record_restore): Move null-check to before pointer
9133 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9135 * objc-lang.c (selectors_info): Add explanitory comment.
9136 (classes_info): Ditto.
9138 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9140 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9141 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9142 versions of the trampoline. Handle Thumb vs. ARM addresses.
9143 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9144 (arm_linux_init_abi): Install it.
9145 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9146 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9148 2011-02-28 Michael Snyder <msnyder@vmware.com>
9150 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9151 a little bigger, to avoid possibility of an overflow.
9153 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9154 buffers a little bigger, to avoid possibility of an overflow.
9156 * coffread.c (coff_getfilename): Add check to avoid overflow.
9158 * objc-lang.c (selectors_info): Add a small safety margin to
9160 (classes_info): Error out on too long REGEXP.
9162 * infrun.c (handle_inferior_event): Remove unused function call.
9164 * fork-child.c (fork_inferior): Remove ifdef'd code and
9167 * linux-thread-db.c (attach_thread): Discard unused value.
9169 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9171 * remote.c (remote_get_noisy_reply): Discard unused value.
9172 (remote_vcont_resume): Ditto.
9173 (remote_stop_ns): Ditto.
9175 * linespec.c (decode_objc): Delete unused variable.
9177 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9179 * dwarf2read.c (add_partial_symbol): Discard unused values.
9180 (read_base_type): Delete unused variable.
9182 * dbxread.c (read_dbx_symtab): Discard unused value.
9184 * eval.c (evaluate_subexp_standard): Delete unused variable,
9185 and discard unused values.
9187 * infcmd.c (_initialize_infcmd): Discard unused values.
9189 * stabsread.c (rs6000_builtin_type): Missing break statement.
9191 * dbxread.c (process_one_symbol): Discard unused value.
9193 * coffread.c (coff_end_symtab): Delete unused variable.
9195 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9196 (dwarf2_add_typedef): Delete unused variable.
9197 (read_namespace): Ditto.
9198 (dwarf_decode_macros): Ditto.
9200 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9202 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9204 * p-valprint.c (pascal_val_print): Discard unused value.
9206 * utils.c (nquery): Call va_end before return;
9210 * proc-service.c (ps_plog): Call va_end before return.
9212 2011-02-28 Tom Tromey <tromey@redhat.com>
9214 * python/python.c (gdbpy_value_cst): New global.
9215 (_initialize_python): Initialize it.
9216 * python/python-internal.h (gdbpy_value_cst): Declare.
9217 * python/py-value.c (convert_value_from_python): Use
9220 2011-02-28 Michael Snyder <msnyder@vmware.com>
9222 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9224 * breakpoint.c (catch_syscall_completer): Free malloced list.
9226 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9228 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9229 (lval_func_check_synthetic_pointer): Ditto.
9230 (lval_func_free_closure): Fix use-after-free.
9232 2011-02-28 Tom Tromey <tromey@redhat.com>
9234 * psymtab.c (expand_partial_symbol_tables): Use
9235 ALL_OBJFILE_PSYMTABS.
9237 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9239 * objc-lang.c (selectors_info): Error on too long REGEXP.
9241 2011-02-28 Michael Snyder <msnyder@vmware.com>
9243 * python/py-param.c (set_parameter_value): Add missing
9246 * linux-record.c (record_linux_system_call): Add missing
9249 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9251 * breakpoint.c (print_one_breakpoint_location): Remove unused
9252 argument PRINT_ADDRESS_BITS. Update callers.
9253 (print_one_breakpoint): Likewise.
9255 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9257 * breakpoint.c (wrap_indent_at_field): New function.
9258 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9259 Allocate ui_stream locally instead of using STB argument.
9260 (print_one_breakpoint_location): Update call.
9261 * ui-out.c (ui_out_query_field): New function.
9262 * ui-out.h (ui_out_query_field): Add prototype.
9264 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9266 From Michael Snyder <msnyder@vmware.com>
9267 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9269 2011-02-27 Michael Snyder <msnyder@vmware.com>
9271 * objc-lang.c (selectors_info): Prevent string overrun.
9273 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9276 * symtab.c (rbreak_command): Move variable 'file_name' to
9279 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9280 param with a local variable of the same name.
9282 2011-02-27 Michael Snyder <msnyder@vmware.com>
9284 * value.c (value_from_history_ref): New function.
9285 * value.h (value_from_history_ref): Export.
9286 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9287 to parse value history references.
9288 * cli/cli-utils.h (get_number_trailer): Update comment.
9290 2011-02-27 Michael Snyder <msnyder@vmware.com>
9292 * inferior.c (detach_inferior_command): Use get_number_or_range.
9293 (kill_inferior_command): Ditto.
9294 (remove_inferior_command): Ditto.
9295 (initialize_inferiors): Make command names plural.
9296 Update help strings.
9298 2011-02-27 Michael Snyder <msnyder@vmware.com>
9300 * darwin-nat-info.c: Fix comment typo.
9301 * dwarf2expr.h: Ditto.
9302 * fbsd-nat.c: Ditto.
9303 * fbsd-nat.h: Ditto.
9304 * frame-unwind.h: Ditto.
9306 * hppa-hpux-tdep.c: Ditto.
9307 * i386-linux-nat.c: Ditto.
9308 * linux-nat.c: Ditto.
9309 * nbsd-nat.c: Ditto.
9310 * nbsd-nat.h: Ditto.
9311 * ppc-linux-tdep.c: Ditto.
9314 * tui/tui-winsource.c: Ditto.
9316 2011-02-26 Michael Snyder <msnyder@vmware.com>
9318 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9320 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9322 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9323 with a local variable of the same name.
9325 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9326 param with a local variable of the same name.
9327 (i387_supply_xsave): Ditto.
9329 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9330 that it does not shadow a function parameter.
9332 * i386-nat.c (i386_length_and_rw_bits): Document that case
9333 statement is meant to fall through.
9335 * expprint.c (dump_subexp_body_standard): Document that case
9336 statement is meant to fall through.
9338 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9339 dead if statement. Condition can't be false.
9341 2011-02-25 Michael Snyder <msnyder@vmware.com>
9343 * arm-tdep.c: Fix typos in comments.
9344 * bsd-uthread.c: Ditto.
9345 * completer.c: Ditto.
9347 * cp-namespace.c: Ditto.
9348 * cp-support.c: Ditto.
9349 * cris-tdep.c: Ditto.
9351 * dwarf2read.c: Ditto.
9353 * gdbtypes.h: Ditto.
9354 * inferior.h: Ditto.
9355 * mdebugread.c: Ditto.
9356 * mips-tdep.c: Ditto.
9357 * ppc-linux-nat.c: Ditto.
9358 * ppc-linux-tdep.c: Ditto.
9359 * printcmd.c: Ditto.
9360 * sol-thread.c: Ditto.
9361 * solib-frv.c: Ditto.
9363 * sparc64-tdep.c: Ditto.
9364 * spu-tdep.c: Ditto.
9365 * stabsread.c: Ditto.
9370 * python/py-block.c: Ditto.
9371 * python/py-symbol.c: Ditto.
9372 * python/py-symtab.c: Ditto.
9373 * python/py-value.c: Ditto.
9374 * tui/tui-win.c: Ditto.
9376 2011-02-25 Michael Snyder <msnyder@vmware.com>
9378 * inferior.c (print_inferior): Accept a string instead of an int
9379 for requested_inferiors, and use get_number_or_range to parse it.
9380 (info_inferiors_command): Pass args string to print_inferior.
9381 (initialize_inferiors): Change help string for info inferiors.
9382 * inferior.h (print_inferior): Export prototype change.
9384 2011-02-25 Tom Tromey <tromey@redhat.com>
9386 * common/ax.def (invalid2): Set to 0x31.
9388 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9390 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9392 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9394 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9396 2011-02-24 Michael Snyder <msnyder@vmware.com>
9398 * Makefile.in (clean): Make clean should remove generated files
9399 observer.h and observer.inc.
9401 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9403 Revert the following patch (not approved yet):
9404 2011-02-21 Hui Zhu <teawater@gmail.com>
9405 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9406 * ax-gdb.c (gen_printf_expr_callback): New function.
9407 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9408 * ax-general.c (ax_memcpy): New function.
9409 (ax_print): Handle "printf".
9411 * ax.h (ax_memcpy): Forward declare.
9412 * common/ax.def (invalid2): Removed.
9413 (printf): New entry.
9414 * printcmd.c (printcmd.h): New include.
9415 (string_printf): New function.
9416 (ui_printf): Removed.
9417 (printf_command): Remove static. Call string_printf.
9418 (eval_command): Call string_printf.
9419 * printcmd.h: New file.
9420 * tracepoint.c (validate_actionline,
9421 encode_actions_1): handle printf_command.
9423 2011-02-23 Tom Tromey <tromey@redhat.com>
9425 * ax-general.c (ax_pick): Add missing newline.
9427 2011-02-23 Michael Snyder <msnyder@vmware.com>
9429 * breakpoint.c (breakpoint_1): Change first argument from an int
9430 to a char pointer, so that the function now accepts a list of
9431 breakpoints rather than just one. Use new function
9432 'number_is_in_list' to implement.
9433 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9434 (watchpoints_info): Ditto.
9435 (tracepoints_info): Ditto.
9436 (maintenance_info_breakpoints): Ditto.
9437 (_initialize_breakpoint): Update help strings to reflect the fact
9438 that these functions can now take more than one argument.
9439 * cli/cli-utils.c (number_is_in_list): New function.
9440 * cli/cli-utils.h (number_is_in_list): Export.
9442 2011-02-23 Michael Snyder <msnyder@vmware.com>
9444 * memattr.c (mem_enable_command): Use get_number_or_range.
9445 (mem_disable_command): Ditto.
9446 (mem_delete_command): Ditto.
9447 (_initialize_mem): Tweak usage message to reflect multiple
9450 2011-02-22 Doug Evans <dje@google.com>
9452 Add gdb.lookup_global_symbol python function.
9454 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9455 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9456 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9458 2011-02-22 Tom Tromey <tromey@redhat.com>
9460 * language.c (language_class_name_from_physname): Rename
9461 'curr_language' argument to 'lang'; use in body.
9463 2011-02-22 Michael Snyder <msnyder@vmware.com>
9465 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9467 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9469 * frame-unwind.h: Fix comment to mention the this frame, not the
9472 2011-02-22 Tom Tromey <tromey@redhat.com>
9474 * symfile.c (auto_solib_limit): Remove.
9475 * symfile.h (auto_solib_limit): Remove.
9477 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9479 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9481 2011-02-21 Michael Snyder <msnyder@vmware.com>
9483 * gdbthread.h (print_thread_info): Change prototype.
9484 * thread.c (print_thread_info): Accept char* instead of int for
9485 requested_threads argument. Use new function number_is_in_list
9486 to determine which threads to list.
9487 (info_threads_command): Pass char* to print_thread_info.
9488 * cli/cli-utils.c (number_is_in_list): New function.
9489 * cli/cli-utils.h (number_is_in_list): Export.
9490 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9492 (print_one_inferior): Ditto.
9493 (mi_cmd_list_thread_groups): Ditto.
9495 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9497 * common/Makefile.in (CFLAGS): New.
9498 (COMPILE): Add $(CFLAGS).
9500 2011-02-21 Tom Tromey <tromey@redhat.com>
9502 * breakpoint.c (catch_syscall_command_1): Fix typo.
9504 2011-02-21 Tom Tromey <tromey@redhat.com>
9506 * reverse.c: Include cli-utils.h.
9507 * printcmd.c: Include cli-utils.h.
9508 (string_printf): Use skip_spaces.
9509 * cli/cli-utils.h: New file.
9510 * cli/cli-utils.c: New file.
9511 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9512 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9513 * breakpoint.h (get_number, get_number_or_range): Move to
9515 * breakpoint.c: Include cli-utils.h.
9516 (get_number_trailer, get_number, get_number_or_range)
9517 (ep_skip_leading_whitespace): Move to cli-utils.c.
9518 (create_breakpoint_sal, find_condition_and_thread)
9519 (decode_static_tracepoint_spec, watch_command_1)
9520 (watch_maybe_just_location, ep_parse_optional_if_clause)
9521 (catch_fork_command_1, catch_exec_command_1)
9522 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9523 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9524 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9525 (HFILES_NO_SRCDIR): Add cli-utils.h.
9526 (cli-utils.o): New target.
9528 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9530 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9531 before calling discard_all_inferiors.
9533 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9535 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9536 (struct builtin_opencl_type): Remove.
9537 (builtin_opencl_type): Change return type to "struct type **".
9538 (lookup_opencl_vector_type): Update caller.
9539 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9540 (build_opencl_types): Install plain array of "struct type *"
9541 instead of "struct builtin_opencl_type".
9543 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9544 Ulrich Weigand <uweigand@de.ibm.com>
9546 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9547 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9548 (struct arm_linux_hwbp_cap): New type.
9549 (arm_linux_get_hwbp_cap): New function.
9550 (arm_linux_get_hw_breakpoint_count): Likewise.
9551 (arm_linux_get_hw_watchpoint_count): Likewise.
9552 (arm_linux_can_use_hw_breakpoint): Likewise.
9553 (arm_hwbp_type): New type.
9554 (arm_hwbp_control_t): Likewise.
9555 (struct arm_linux_hw_breakpoint): Likewise.
9556 (struct arm_linux_thread_points): Likewise.
9557 (arm_threads): New global variable.
9558 (arm_linux_find_breakpoints_by_tid): New function.
9559 (arm_hwbp_control_initialize): Likewise.
9560 (arm_hwbp_control_is_enabled): Likewise.
9561 (arm_hwbp_control_disable): Likewise.
9562 (arm_linux_hw_breakpoint_initialize): Likewise.
9563 (arm_linux_get_hwbp_type): Likewise.
9564 (arm_linux_hw_watchpoint_initialize): Likewise.
9565 (arm_linux_hw_breakpoint_equal): Likewise.
9566 (arm_linux_insert_hw_breakpoint1): Likewise.
9567 (arm_linux_remove_hw_breakpoint1): Likewise.
9568 (arm_linux_insert_hw_breakpoint): Likewise.
9569 (arm_linux_remove_hw_breakpoint): Likewise.
9570 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9571 (arm_linux_insert_watchpoint): Likewise.
9572 (arm_linux_remove_watchpoint): Likewise.
9573 (arm_linux_stopped_data_address): Likewise.
9574 (arm_linux_stopped_by_watchpoint): Likewise.
9575 (arm_linux_watchpoint_addr_within_range): Likewise.
9576 (arm_linux_new_thread): Likewise.
9577 (arm_linux_thread_exit): Likewise.
9578 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9579 related target callbacks. Register arm_linux_new_thread and
9580 arm_linux_thread_exit.
9581 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9582 * arm-tdep.c (arm_pc_is_thumb): Make global.
9583 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9585 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9587 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9588 per-frame locations while within a function epilogue.
9590 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9592 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9593 to GNU coding standards.
9595 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9597 Allow use of mingw native on Windows 95 OS.
9598 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9599 (ser_windows_close): Only call CancelIo if function exists.
9600 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9601 to check for existence of CancelIo function in kernel32 DLL.
9603 2011-02-21 Hui Zhu <teawater@gmail.com>
9605 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9606 * ax-gdb.c (gen_printf_expr_callback): New function.
9607 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9608 * ax-general.c (ax_memcpy): New function.
9609 (ax_print): Handle "printf".
9611 * ax.h (ax_memcpy): Forward declare.
9612 * common/ax.def (invalid2): Removed.
9613 (printf): New entry.
9614 * printcmd.c (printcmd.h): New include.
9615 (string_printf): New function.
9616 (ui_printf): Removed.
9617 (printf_command): Remove static. Call string_printf.
9618 (eval_command): Call string_printf.
9619 * printcmd.h: New file.
9620 * tracepoint.c (validate_actionline,
9621 encode_actions_1): handle printf_command.
9623 2011-02-19 Michael Snyder <msnyder@vmware.com>
9625 * reverse.c (delete_one_bookmark): Argument is now bookmark
9626 id rather than pointer to bookmark struct.
9627 (delete_bookmark_command): Use get_number_or_range.
9628 (goto_bookmark_command): Parse with get_number instead of strtoul.
9629 (bookmark_1): New function. Print info for one bookmark.
9630 (bookmarks_info): Use get_number_or_range and bookmark_1.
9632 2011-02-18 Michael Snyder <msnyder@vmware.com>
9634 * thread.c (info_threads_command): Re-implement using
9635 get_number_or_range.
9636 (thread_apply_command): Ditto.
9638 2011-02-18 Tom Tromey <tromey@redhat.com>
9640 * common/ax.def: New file.
9641 * ax.h (enum agent_op): Use ax.def.
9642 * ax-general.c (aop_map): Use ax.def.
9644 2011-02-18 Tom Tromey <tromey@redhat.com>
9646 * ax-general.c (aop_map): Add pick and rot.
9647 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9648 <DW_OP_rot>: Implement.
9649 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9651 * ax-general.c (ax_pick): New function.
9653 2011-02-18 Tom Tromey <tromey@redhat.com>
9655 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9657 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9658 Tom Tromey <tromey@redhat.com>
9660 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9661 make_symbol_overload_list_block with NULL BLOCK.
9662 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9664 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9666 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9667 * breakpoint.h (get_number_or_range): Declare.
9668 * printcmd.c (ALL_DISPLAYS): Declare.
9669 (delete_display): Reimplement taking a display pointer.
9670 (undisplay_command): Accept a range of displays to delete, using
9671 get_number_or_range.
9673 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9675 * c-valprint.c (c_val_print): Add embedded_offset to address
9676 for arrays of unspecified length.
9677 * p-valprint.c (pascal_val_print): Likewise.
9679 2011-02-18 Yao Qi <yao@codesourcery.com>
9681 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9682 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9683 (thumb_process_displaced_insn): New.
9684 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9685 call to arm_process_displaced_insn.
9686 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9688 2011-02-17 Tom Tromey <tromey@redhat.com>
9690 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9691 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9692 compile_dwarf_to_ax. No longer static. Call
9693 dwarf2_compile_cfa_to_ax.
9694 (locexpr_tracepoint_var_ref): Update.
9695 (loclist_tracepoint_var_ref): Update.
9696 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9697 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9698 argument; add 'gdbarch' and 'pc'.
9699 (dwarf2_compile_cfa_to_ax): New function.
9700 (dwarf2_frame_cache): Update.
9702 2011-02-17 Joel Brobecker <brobecker@adacore.com>
9704 * ada-lang.c (ada_type_of_array): Fix the size of the array
9705 in the case of an unconstrained packed array.
9707 2011-02-17 Yao Qi <yao@codesourcery.com>
9709 * common/Makefile.in: Add more targets for make.
9711 2011-02-16 Tom Tromey <tromey@redhat.com>
9713 * dwarf2loc.c (unimplemented): Fix typo.
9715 2011-02-16 Tom Tromey <tromey@redhat.com>
9717 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9718 (compile_dwarf_to_ax) <default>: Use unimplemented.
9719 <DW_OP_deref>: Update.
9720 (disassemble_dwarf_expression): Update.
9721 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9722 (decode_locdesc): Update.
9723 * dwarf2expr.h (dwarf_stack_op_name): Update.
9725 2011-02-16 Tom Tromey <tromey@redhat.com>
9727 * ax.h (struct aop_map) <name>: Now const.
9729 2011-02-16 Tom Tromey <tromey@redhat.com>
9731 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9734 2011-02-16 Yao Qi <yao@codesourcery.com>
9736 * infrun.c (get_displaced_step_closure_by_addr): New.
9737 * inferior.h: Declare it.
9738 * arm-tdep.c: (arm_pc_is_thumb): Call
9739 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9742 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9743 Jan Kratochvil <jan.kratochvil@redhat.com>
9746 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9748 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9749 Jan Kratochvil <jan.kratochvil@redhat.com>
9751 * value.c (value_contents_copy_raw): Extend describing comment.
9752 Assert that the destination contents we're overwriting are wholly
9754 (value_contents_copy): Extend describing comment.
9756 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9757 Jan Kratochvil <jan.kratochvil@redhat.com>
9759 * value.c (value_available_contents_eq): Remove redundant local
9760 variables. Fix available contents comparision.
9761 * value.h (value_available_contents_eq): Extend describing
9764 2011-02-16 Yao Qi <yao@codesourcery.com>
9766 * thread.c (info_threads_command): Add missing i18n markup and remove
9769 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9771 * breakpoint.c (longjmp_names): New variable.
9772 (struct breakpoint_objfile_data): New type.
9773 (breakpoint_objfile_key): New variable.
9774 (msym_not_found): New variable.
9775 (msym_not_found_p): New predicate.
9776 (get_breakpoint_objfile_data): New function.
9777 (create_overlay_event_breakpoint): Check per-objfile cache for
9779 (create_longjmp_master_breakpoint): Likewise.
9780 (create_std_terminate_master_breakpoint): Likewise.
9781 (create_exception_master_breakpoint): Likewise.
9782 (_initialize_breakpoint): Register per-objfile data key.
9784 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9786 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9788 (create_longjmp_master_breakpoint): Loop over longjmp names.
9789 (create_std_terminate_master_breakpoint): Const-propagate parameter
9791 (update_breakpoints_after_exec): Adjust.
9792 (breakpoint_re_set): Adjust.
9794 2011-02-15 Michael Snyder <msnyder@vmware.com>
9796 * thread.c (info_threads_command): Process arg as thread id,
9797 or list of thread ids.
9798 (thread_find_command): New command.
9799 (_initialize_thread): Document argument for info threads.
9800 Document 'thread find' command.
9801 * NEWS: Document new command "thread find".
9803 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9805 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9806 * aclocal.m4: Regenerated with aclocal-1.11.1.
9807 * common/configure: Regenerate with autoconf-2.64.
9809 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9811 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9812 bool data type to a size of one byte.
9814 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9815 Jan Kratochvil <jan.kratochvil@redhat.com>
9817 * target.c (memory_xfer_live_readonly_partial): Document where to
9818 look for interface description.
9820 2011-02-15 Yao Qi <yao@codesourcery.com>
9823 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9824 order to store PC value on stack instead of text section.
9826 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9828 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9829 the EFP register set size.
9830 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9831 data from the VMX register.
9832 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9833 and write data from/to the VMX register.
9835 2011-02-14 Michael Snyder <msnyder@vmware.com>
9837 * command.h (enum command_class): New class 'no_set_class', for
9838 "show" commands without a corresponding "set" command.
9839 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9840 * copying.c (_initialize_copying): Ditto for "show copying" and
9842 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9844 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9845 which there is no corresponding "set" command (eg. "show copying").
9847 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9848 Jan Kratochvil <jan.kratochvil@redhat.com>
9850 * exec.c (section_table_available_memory): Change `len' parameter
9852 * exec.h (section_table_available_memory): Ditto.
9853 * value.h (read_value_memory): Rename the `offset' parameter to
9856 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9857 Jan Kratochvil <jan.kratochvil@redhat.com>
9859 * memrange.c (compare_mem_ranges): Mention sort order in
9861 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9862 * tracepoint.c (traceframe_available_memory): Extend comment to
9863 mention what happens to RESULT when the target does not support
9866 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9867 Jan Kratochvil <jan.kratochvil@redhat.com>
9869 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9872 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9874 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9875 No longer handle NULL values.
9877 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9879 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9880 * value.c: Include "exceptions.h".
9881 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9883 * cp-abi.c: Include gdb_assert.h.
9884 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9885 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9887 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9888 parameters. No longer returns -1 on error.
9889 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9891 * cp-valprint.c: Include exceptions.h.
9892 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9893 the baseclass_offset. Handle unavailable base classes. Use
9894 val_print_invalid_address.
9895 * p-valprint.c: Include exceptions.h.
9896 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9897 when fetching the baseclass_offset. No longer expect
9898 baseclass_offset returning -1. Handle unavailable base classes.
9899 Use val_print_invalid_address.
9900 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9901 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9902 `embedded_offset' and `val' parameters. Adjust.
9903 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9904 parameter, and change its type to gdb_byte pointer. Add
9905 `embedded_offset' and `val' parameters. Adjust. No longer expect
9906 baseclass_offset returning -1.
9907 (value_dynamic_cast): Use value_contents_for_printing rather than
9908 value_contents. Adjust.
9909 (search_struct_field): No longer expect baseclass_offset returning
9911 (search_struct_method): If reading memory from the target is
9912 necessary, wrap it in a new value to pass to baseclass_offset. No
9913 longer expect baseclass_offset returning -1.
9914 (find_method_list): No longer expect baseclass_offset returning
9915 -1. Use value_contents_for_printing rather than value_contents.
9916 * valprint.c (val_print_invalid_address): New function.
9917 * valprint.h (val_print_invalid_address): Declare.
9918 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9919 and `val' parameters. No longer expect baseclass_offset returning
9921 * gnu-v2-abi.c: Include "exceptions.h".
9922 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9923 parameters. Handle unavailable memory. Recurse through
9924 gnuv2_baseclass_offset directly, rather than through
9925 baseclass_offset. No longer returns -1 on not found, instead
9927 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9928 `val' parameters. Adjust.
9930 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9932 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9933 almost but not quite adjacent.
9935 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9937 * value.h (value_entirely_available): Declare.
9938 * value.c (value_entirely_available): New function.
9939 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9940 real type if the pointer is unavailable.
9942 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9944 * valops.c (value_repeat): Use read_value_memory instead of
9947 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9949 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9950 * value.c (value_contents_copy_raw, value_contents_copy): New
9952 (value_primitive_field): Use value_contents_copy_raw instead of
9954 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9956 (value_array, value_slice): Ditto.
9957 * valarith.c (value_subscripted_rvalue): Use
9958 value_contents_copy_raw instead of memcpy.
9960 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9962 <unavailable> references.
9964 * valops.c (get_value_at): Use value_from_contents_and_address,
9965 avoiding read_memory.
9967 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9969 * c-valprint.c (c_val_print): Print a string with unavailable
9970 contents as an array.
9972 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9974 * value.h (unpack_bits_as_long): Delete declaration.
9975 (unpack_value_bits_as_long): Declare.
9976 (unpack_value_field_as_long): Declare.
9977 (value_field_bitfield): Declare.
9978 * value.c (unpack_bits_as_long): Rename to...
9979 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9980 value parameters. Return the extracted result in a new output
9981 parameter. If the value contents are unavailable, return false,
9982 otherwise return true.
9983 (unpack_value_bits_as_long): New.
9984 (unpack_field_as_long): Rename to...
9985 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9986 Add embedded_offset and value parameters. Return the extracted
9987 result in a new output parameter. If the value contents are
9988 unavailable, return false, otherwise return true.
9989 (unpack_value_field_as_long): New.
9990 (unpack_field_as_long_1): New.
9991 (unpack_field_as_long): Reimplement as wrapper around
9992 unpack_value_field_as_long_1.
9993 (value_field_bitfield): New function.
9994 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9995 unpack_value_bits_as_long. Mark the value as unavailable, if it
9997 * jv-valprint.c (java_print_value_fields): Use
9998 value_field_bitfield.
9999 * p-valprint.c (pascal_object_print_value_fields): Use
10000 value_field_bitfield.
10001 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10003 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10005 * value.c (get_internalvar_integer): Also return the int value of
10006 TYPE_CODE_INT INTERNALVAR_VALUE values.
10007 (set_internalvar): Don't special case TYPE_CODE_INT.
10009 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10011 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10012 INTERNALVAR_POINTER.
10014 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10015 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10016 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10018 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10020 * value.h (value_available_contents_eq): Declare.
10021 * value.c (find_first_range_overlap): New function.
10022 (value_available_contents_eq): New function.
10023 * valprint.c (val_print_array_elements): Use
10024 value_available_contents_eq.
10025 * ada-valprint.c (val_print_packed_array_elements): Use
10026 value_available_contents_eq.
10027 * jv-valprint.c (java_value_print): Use
10028 value_available_contents_eq.
10030 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10032 * target.c (target_read_live_memory): New function.
10033 (memory_xfer_live_readonly_partial): New.
10034 (memory_xfer_partial): If reading from a traceframe, fallback to
10035 reading unavailable read-only memory from read-only regions of
10036 live target memory.
10037 * tracepoint.c (disconnect_tracing): Adjust.
10038 (set_current_traceframe): New, factored out from
10039 set_traceframe_number.
10040 (set_traceframe_number): Reimplement to only change the traceframe
10041 number on the GDB side.
10042 (do_restore_current_traceframe_cleanup): Adjust.
10043 (make_cleanup_restore_traceframe_number): New.
10044 (cur_traceframe_number): New global.
10045 (tfile_open): Set cur_traceframe_number to no traceframe.
10046 (set_tfile_traceframe): New function.
10047 (tfile_trace_find): If looking up a traceframe using any method
10048 other than by number, make sure the current tfile traceframe
10049 matches gdb's current traceframe. Update the current tfile
10050 traceframe if the lookup succeeded.
10051 (tfile_fetch_registers, tfile_xfer_partial)
10052 (tfile_get_trace_state_variable_value): Make sure the remote
10053 traceframe matches gdb's current traceframe.
10054 * remote.c (remote_traceframe_number): New global.
10055 (remote_open_1): Set it to -1.
10056 (set_remote_traceframe): New function.
10057 (remote_fetch_registers, remote_store_registers)
10058 (remote_xfer_memory, remote_xfer_partial)
10059 (remote_get_trace_state_variable_value): Make sure the remote
10060 traceframe matches gdb's current traceframe.
10061 (remote_trace_find): If looking up a traceframe using any method
10062 other than by number, make sure the current remote traceframe
10063 matches gdb's current traceframe. Update the current remote
10064 traceframe if the lookup succeeded.
10065 * infrun.c (fetch_inferior_event): Adjust.
10066 * tracepoint.h (set_current_traceframe): Declare.
10067 (get_traceframe_number, set_traceframe_number): Add describing
10070 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10072 Mark pieces of values as unavailable if the corresponding memory
10075 * valops.c: Include tracepoint.h.
10076 (value_fetch_lazy): Use read_value_memory.
10077 (read_value_memory): New.
10078 * value.h (read_value_memory): Declare.
10079 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10080 * exec.c (section_table_available_memory): New function.
10081 * exec.h (section_table_available_memory): Declare.
10083 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10085 * Makefile.in (SFILES): Add memrange.c.
10086 (HFILES_NO_SRCDIR): Add memrange.h.
10087 (COMMON_OBS): Add memrange.o.
10088 * memrange.c: New file.
10089 * memrange.h: New file.
10090 * tracepoint.c: Include memrange.h.
10091 (struct mem_range): Delete.
10092 (mem_range_s): Delete.
10093 (traceframe_available_memory): New function.
10094 * tracepoint.h (traceframe_available_memory): Declare.
10096 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10098 * target.h (struct traceframe_info): Forward declare.
10099 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10100 (struct target_ops) <to_traceframe_info>: New field.
10101 (target_traceframe_info): New.
10102 * target.c (update_current_target): Inherit and default
10103 to_traceframe_info.
10104 * remote.c (PACKET_qXfer_traceframe_info): New.
10105 (remote_protocol_features): Register qXfer:traceframe-info:read.
10106 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10107 (remote_traceframe_info): New.
10108 (init_remote_ops): Install it.
10109 (_initialize_remote): Install "set/show remote traceframe-info"
10111 * tracepoint.h (parse_traceframe_info): Declare.
10112 * tracepoint.c (struct mem_range): New.
10113 (mem_range_s): New typedef.
10114 (struct traceframe_info): New.
10115 (traceframe_info): New global.
10116 (free_traceframe_info): New function.
10117 (clear_traceframe_info): New function.
10118 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10120 (build_traceframe_info): New function.
10121 (tfile_traceframe_info): New function.
10122 (init_tfile_ops): Install tfile_traceframe_info.
10123 (traceframe_info_start_memory, free_result): New functions.
10124 (memory_attributes, traceframe_info_elements): New globals.
10125 (parse_traceframe_info, get_traceframe_info): New functions.
10126 * features/traceframe-info.dtd: New file.
10127 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10129 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10131 Base support for <unavailable> value contents.
10133 * value.h (value_bytes_available): Declare.
10134 (mark_value_bytes_unavailable): Declare.
10135 * value.c (struct range): New struct.
10136 (range_s): New typedef.
10137 (ranges_overlap): New function.
10138 (range_lessthan): New function.
10139 (ranges_contain_p): New function.
10140 (struct value) <unavailable>: New field.
10141 (value_bytes_available): New function.
10142 (mark_value_bytes_unavailable): New function.
10143 (require_not_optimized_out): Constify parameter.
10144 (require_available): New function.
10145 (value_contents_all, value_contents): Require all bytes be
10147 (value_free): Free `unavailable'.
10148 (value_copy): Copy `unavailable'.
10149 * valprint.h (val_print_unavailable): Declare.
10150 * valprint.c (valprint_check_validity): Rename `offset' parameter
10151 to `embedded_offset'. If printing a scalar, check whether the
10152 value chunk is available.
10153 (val_print_unavailable): New.
10154 (val_print_scalar_formatted): Check whether the value is
10156 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10157 pretty-printing unavailable values.
10159 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10161 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10162 * c-typeprint.c (c_type_print_args): Update the function comment. New
10163 variable param_type, initialize it. Remove const/volatile qualifiers
10164 for language_cplus and !show_artificial. Use param_type.
10166 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10168 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10169 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10170 * symtab.h (struct symtab) <next>: Comment extension.
10172 2011-02-12 Yao Qi <yao@codesourcery.com>
10174 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10176 2011-02-11 Yao Qi <yao@codesourcery.com>
10178 * common/Makefile.in: Add copyright header.
10180 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10182 * infrun.c (proceed): Move switching out and in of tfind mode from
10184 (fetch_inferior_event): ... to here.
10186 2011-02-11 Yao Qi <yao@codesourcery.com>
10188 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10190 * configure.ac: Add common to sub dir.
10191 * configure: Regenerate.
10193 2011-02-11 Yao Qi <yao@codesourcery.com>
10197 * common/Makefile.in: New.
10198 * common/configure.ac: New.
10199 * common/aclocal.m4: New.
10200 * common/configure: Generate.
10202 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10204 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10205 side of the parenthesis.
10208 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10209 * vec.h (VEC_block_remove): Fix comment.
10211 2011-02-08 Michael Snyder <msnyder@vmware.com>
10213 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10215 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10217 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10218 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10221 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10224 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10226 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10227 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10229 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10231 * dwarf2read.c (read_subroutine_type): Set special calling
10232 convention flag for functions compiled by IBM XL C for OpenCL.
10233 * ppc-sysv-tdep.c: Include "dwarf2.h"
10234 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10235 calling convention.
10236 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10237 IBM OpenCL vector types calling convention.
10238 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10239 (ppc_sysv_abi_broken_return_value): Likewise.
10240 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10241 types calling convention.
10242 (ppc64_sysv_abi_return_value): Likewise.
10243 * spu-tdep.c: Include "dwarf2.h"
10244 (spu_return_value): Implement IBM OpenCL vector types calling
10247 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10249 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10250 correct ABI for AltiVec vector arguments.
10252 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10254 * valprint.c (val_print): Extend comment.
10255 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10256 interface explanation to val_print.
10257 (ada_val_print_array): Adjust comment to current interface.
10258 (print_field_values): Adjust comment to current interface.
10259 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10260 explanation to val_print.
10261 * f-valprint.c (f_val_print): Ditto.
10262 * jv-valprint.c (java_val_print): Ditto.
10263 * m2-valprint.c (m2_val_print): Ditto.
10264 * p-valprint.c (pascal_val_print): Ditto.
10266 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10268 * breakpoint.c (parse_breakpoint_sals): Fix description.
10270 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10271 Oguz Kayral <oguzkayral@gmail.com>
10273 * python/py-inferior.c (python_on_normal_stop): New function.
10274 (python_on_resume): New function.
10275 (python_inferior_exit): New function.
10276 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10277 inferior_exit observers.
10278 * python/py-evtregistry.c: New file.
10279 * python/py-threadevent.c : New file.
10280 * python/py-event.c: New file.
10281 * python/py-evts.c: New file.
10282 * python/py-continueevent.c: New file.
10283 * python/py-bpevent.c: New file.
10284 * python/py-signalevent.c: New file.
10285 * python/py-exetiedevent.c: New file.
10286 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10287 Move struct breakpoint_object from here...
10288 * python/python-internal.h: ... to here.
10289 * python/py-event.h: New file.
10290 * python/py-events.h: New file.
10291 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10292 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10293 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10294 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10295 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10296 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10297 Add build rules for all the above.
10299 2011-02-04 Tom Tromey <tromey@redhat.com>
10301 * dwarf2read.c (dwarf2_section_empty_p): New function.
10302 (dwarf2_read_section): Use dwarf2_section_empty_p.
10303 (dwarf2_section_size): New function.
10304 (dwarf2_get_section_info): Unconditionally read section.
10305 (dwarf2_read_index): Use dwarf2_section_empty_p.
10306 (partial_read_comp_unit_head): Use dwarf2_section_size.
10307 (dwarf2_symbol_mark_computed): Likewise.
10309 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10311 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10313 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10315 * mips-linux-tdep.c: Include xml-syscall.h.
10316 (mips_linux_get_syscall_number): New function.
10317 (mips_linux_init_abi): Add calls to
10318 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10319 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10320 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10321 * syscalls/mips-n32-linux.xml: New file.
10322 * syscalls/mips-n64-linux.xml: New file.
10323 * syscalls/mips-o32-linux.xml: New file.
10325 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10327 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10328 Complain about inverted range entries.
10329 (dwarf2_record_block_ranges): Likewise.
10331 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10334 * breakpoint.c (update_watchpoint): Fix name of the
10335 update_global_location_list function.
10336 (print_one_breakpoint): Fix typo.
10337 (_initialize_breakpoint): Remove extra space in hbreak help
10339 * breakpoint.h (struct bp_location) <length>: Fix field
10342 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10344 * regcache.c (registers_changed_ptid): Don't explictly always
10345 clear `current_regcache'. Only clear current_thread_ptid and
10346 current_thread_arch when PTID matches. Only reinit the frame
10347 cache if PTID matches the current inferior_ptid. Move alloca(0)
10349 (registers_changed): ... here.
10351 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10353 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10354 starts with __stack_chk_guard as stack guard symbol.
10356 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10358 * disasm.c (compare_lines): Handle the end of sequence markers
10359 within the line table to better support disassembling over
10360 compilation unit boundaries.
10362 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10364 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10365 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10366 implementation even if no symbols are available.
10367 (thumb_analyze_prologue): Update call to skip_prologue_function.
10368 (arm_analyze_prologue): Likewise.
10370 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10372 * arm-tdep.c: Include "observer.h".
10373 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10374 (arm_exidx_data_key): New static variable.
10375 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10376 (struct arm_exidx_data): Likewise.
10377 (arm_exidx_data_free): New function.
10378 (arm_compare_exidx_entries): Likewise.
10379 (arm_obj_section_from_vma): Likewise.
10380 (arm_exidx_new_objfile): Likewise.
10381 (arm_find_exidx_entry): Likewise.
10382 (arm_exidx_fill_cache): Likewise.
10383 (arm_exidx_unwind_sniffer): Likewise.
10384 (arm_exidx_unwind): New global variable.
10385 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10386 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10387 observer. Register arm_exidx_data_key as objfile data.
10389 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10391 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10392 due to accessing uninitialized variable. Fix indentation.
10394 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10396 * c-valprint.c (c_value_print): When doing virtual base pointer
10397 adjustment, create a new value with adjusted contents rather than
10398 changing the contents of the value being printed (and getting it
10401 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10403 * xml-support.c (xml_find_attribute): New.
10404 (xinclude_start_include): Use it.
10405 * xml-support.h (xml_find_attribute): Declare.
10406 * memory-map.c (memory_map_start_memory)
10407 (memory_map_start_property): Use xml_find_attribute.
10408 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10409 xml_find_attribute.
10410 * remote.c (start_thread): Use xml_find_attribute.
10411 * solib-target.c (library_list_start_segment)
10412 (library_list_start_section, library_list_start_library)
10413 (library_list_start_list): Use xml_find_attribute.
10414 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10415 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10416 (tdesc_start_field): Use xml_find_attribute.
10418 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10420 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10421 (BUILD_OCL_VTYPES): Update.
10423 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10425 * configure.ac: Work around non-GNU sed limitation when computing
10426 python version number.
10427 * configure: Regenerate.
10429 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10431 Fix debug printing of TYPE_INSTANCE.
10432 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10433 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10435 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10437 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10438 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10439 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10440 * ada-operator.inc: Rename the file to ...
10441 * ada-operator.def: ... here, wrap all the entries by macro OP.
10442 * expprint.c (op_name_standard): Remove all the entries. Include
10443 "std-operator.def" instead.
10444 * expression.h (enum exp_opcode): Include "std-operator.def" and
10445 "ada-operator.def". Move all the entries ...
10446 * std-operator.def: ... here, wrap all the entries by macro OP.
10448 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10450 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10451 * breakpoint.c (remove_jit_event_breakpoints): New function.
10452 * jit.c (jit_descriptor_addr): Delete.
10453 (registering_code): Delete.
10454 (clear_int): Delete.
10455 (jit_inferior_data): New variable.
10456 (struct jit_inferior_data): New type.
10457 (get_jit_inferior_data): New function.
10458 (jit_inferior_data_cleanup): New function.
10459 (jit_read_descriptor): Adjust.
10460 (jit_register_code): Adjust.
10461 (jit_breakpoint_re_set_internal): New function; move code here ...
10462 (jit_inferior_init): ... from here.
10463 (jit_breakpoint_re_set): Adjust.
10464 (jit_reset_inferior_data_and_breakpoints): New function.
10465 (jit_inferior_created_observer): Adjust.
10466 (jit_inferior_exit_hook): Adjust.
10467 (jit_executable_changed_observer): New function.
10468 (jit_event_handler): Adjust.
10469 (_initialize_jit): Adjust.
10471 2011-01-31 Michael Snyder <msnyder@vmware.com>
10473 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10476 2011-01-31 Tom Tromey <tromey@redhat.com>
10479 * python/python.c (execute_gdb_command): Call
10480 prevent_dont_repeat.
10481 * top.c (suppress_dont_repeat): New global.
10482 (dont_repeat): Use it.
10483 (prevent_dont_repeat): New function.
10484 * command.h (prevent_dont_repeat): Declare.
10486 2011-01-31 Tom Tromey <tromey@redhat.com>
10488 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10489 * python/py-breakpoint.c (bppy_set_silent): Use
10490 breakpoint_set_silent.
10491 (bppy_set_thread): Use breakpoint_set_thread.
10492 (bppy_set_task): Use breakpoint_set_task.
10493 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10494 (breakpoint_set_task): Declare.
10495 (make_breakpoint_silent): Remove.
10496 * breakpoint.c (breakpoint_set_silent): New function.
10497 (breakpoint_set_thread): Likewise.
10498 (breakpoint_set_task): Likewise.
10499 (make_breakpoint_silent): Remove.
10501 2011-01-31 Tom Tromey <tromey@redhat.com>
10503 * breakpoint.h (user_breakpoint_p): Declare.
10504 * breakpoint.c (user_breakpoint_p): New function.
10505 (breakpoint_1): Use it.
10506 (save_breakpoints): Likewise.
10508 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10510 * configure.ac: Add handling of Python distribution on Windows.
10511 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10512 sysconfig variables are not defined, then do not use them.
10513 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10514 instead. On Windows, return all paths using forward-slashes
10515 rather than backslashes.
10517 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10519 * configure.ac: Remove fallback behavior for building
10520 against Python. Remove tweaking of Python include path.
10521 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10522 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10523 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10524 Always restore CPPFLAGS and LIBS after linking test.
10525 * configure: Regenerated.
10526 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10527 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10528 * python/python-internal.h: Adjust includes of Python .h files.
10530 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10532 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10535 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10537 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10540 2011-01-31 Yao Qi <yao@codesourcery.com>
10542 * arm-linux-nat.c: Update calls to regcache_register_status
10543 instead of regcache_valid_p.
10544 * aix-thread.c: Likewise.
10545 * i386gnu-nat.c: Likewise.
10547 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10550 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10551 touching TYPE_FIELD_ARTIFICIAL.
10553 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10555 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10558 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10560 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10561 selected, don't try iterating over the traceframe's blocks.
10562 (tfile_has_stack): If there's no traceframe selected, then there's
10564 (tfile_has_registers): If there's no traceframe selected, then
10565 there's no registers.
10567 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10569 * target.c (memory_xfer_partial): No need to restore shadows if we
10570 haven't read anything.
10572 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10574 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10575 and val_print_scalar_formatted.
10577 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10579 * tracepoint.c (tfile_read): New.
10580 (tfile_open): Use it.
10581 (tfile_get_traceframe_address): Use it.
10582 (tfile_trace_find): Use it.
10583 (walk_blocks_callback_func): New typedef.
10584 (match_blocktype): New function.
10585 (traceframe_walk_blocks): New function.
10586 (traceframe_find_block_type): New function.
10587 (tfile_fetch_registers, tfile_xfer_partial)
10588 (tfile_get_trace_state_variable_value): Use
10589 traceframe_find_block_type and tfile_read.
10591 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10593 * remote-mips.c: Add internationalization mark ups. Remove
10594 trailing \n from already marked up strings.
10596 2011-01-26 Tom Tromey <tromey@redhat.com>
10598 * python/py-prettyprint.c (print_string_repr): Clear
10599 'addressprint' option when calling val_print_string.
10600 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10601 option when calling val_print_string.
10603 2011-01-26 Tom Tromey <tromey@redhat.com>
10605 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10607 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10609 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10610 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10611 (gdb_py_long_as_ulongest): New defines.
10612 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10613 (gdb_py_int_as_long): Declare.
10614 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10615 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10616 (valpy_long): Add comment.
10617 * python/py-utils.c (get_addr_from_python): Use
10618 gdb_py_long_as_ulongest. Handle overflow properly.
10619 (gdb_py_object_from_longest): New function.
10620 (gdb_py_object_from_ulongest): Likewise.
10621 (gdb_py_int_as_long): Likewise.
10622 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10623 * python/py-symtab.c (salpy_get_pc): Use
10624 gdb_py_long_from_ulongest.
10625 (salpy_get_line): Use PyInt_FromLong.
10626 * python/py-param.c (set_parameter_value): Use
10627 gdb_py_int_as_long.
10628 * python/py-lazy-string.c (stpy_get_address): Use
10629 gdb_py_long_from_ulongest.
10630 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10631 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10632 * python/py-breakpoint.c (bppy_set_thread): Use
10633 gdb_py_int_as_long.
10634 (bppy_set_task): Likewise.
10635 (bppy_set_ignore_count): Likewise.
10636 (bppy_set_hit_count): Likewise.
10637 * python/py-block.c (blpy_get_start): Use
10638 gdb_py_object_from_ulongest.
10639 (blpy_get_end): Likewise.
10640 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10642 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10645 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10646 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10647 equality test for objfile, initialize addr_low if needed.
10649 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10651 * tui/tui-regs.c (tui_register_format): Remove dead code.
10653 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10655 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10656 instead of print_scalar_formatted.
10657 (print_scalar_formatted): Don't handle 's' format strings here,
10658 and add an assertion that we never see such format here.
10659 * valprint.h (val_print_scalar_formatted): Declare.
10660 * valprint.c (val_print_scalar_formatted): New.
10661 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10662 instead of print_scalar_formatted.
10663 * jv-valprint.c (java_val_print): Ditto.
10664 * p-valprint.c (pascal_val_print): Ditto.
10665 * ada-valprint.c (ada_val_print_1): Ditto.
10666 * f-valprint.c (f_val_print): Ditto.
10667 * infcmd.c (registers_info): Ditto.
10668 * m2-valprint.c (m2_val_print): Ditto.
10670 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10672 * m2-valprint.c (print_unbounded_array): Pass
10673 value_contents_for_printing rather than value_contents, to
10674 m2_print_array_contents. Also pass in the value.
10676 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10678 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10679 (save_gdb_index_command): Switch to .gdb_index version 4.
10681 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10683 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10684 than frame_register, and always pass a valid value to val_print.
10686 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10688 Centralize printing "<optimized out>".
10690 * valprint.h (val_print_optimized_out): Declare.
10691 * cp-valprint.c (cp_print_value_fields): Use
10692 val_print_optimized_out.
10693 * jv-valprint.c (java_print_value_fields): Ditto.
10694 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10695 * printcmd.c (print_formatted): Ditto.
10696 * valprint.c (valprint_check_validity): Ditto.
10697 (value_check_printable): Ditto.
10698 (val_print_optimized_out): New.
10700 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10702 * infcmd.c (default_print_registers_info): Allocate values so to
10703 never pass a NULL value to val_print.
10705 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10707 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10708 boolean. Make sure to always pass a value that matches the
10709 contents buffer to callees. Preserve `address' for following
10711 * value.c (value_contents_for_printing_const): New.
10712 (value_address): Constify value argument.
10713 * value.h (value_contents_for_printing_const): Declare.
10714 (value_address): Constify value argument.
10716 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10718 * regcache.c (struct regcache_descr): Rename
10719 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10720 and sizeof_cooked_register_valid_p to
10721 sizeof_cooked_register_status.
10722 (init_regcache_descr): Adjust.
10723 (struct regcache): Rename register_valid_p field to
10725 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10726 (do_cooked_read): Adjust.
10727 (regcache_valid_p): Rename to ...
10728 (regcache_register_status): ... this. Adjust.
10729 (regcache_invalidate): Adjust.
10730 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10732 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10733 as unavailable, not valid.
10734 (regcache_dump): Adjust.
10735 * regcache.h (enum register_status): New.
10736 (regcache_register_status): Declare.
10737 (regcache_invalidate): Delete declaration.
10738 * corelow.c (get_core_registers): Adjust.
10739 * tracepoint.c (tfile_fetch_registers): Adjust.
10740 * trad-frame.c (REG_VALUE): Rename to ...
10741 (TF_REG_VALUE): ... this.
10742 (REG_UNKNOWN): Rename to ...
10743 (TF_REG_UNKNOWN): ... this.
10744 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10745 * mi/mi-main.c (register_changed_p): Adjust.
10747 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10749 * regcache.c (struct regcache_descr): Remove outdated comment.
10750 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10752 (regcache_xmalloc): Rename to ...
10753 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10754 Allocate the regcache type accordingly.
10755 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10756 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10757 cooked registers, not raw.
10758 (regcache_dup_no_passthrough): Delete.
10759 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10760 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10761 mention obsolete write_register_bytes.
10762 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10764 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10766 Stop remote_read_bytes from handling partial reads itself.
10768 * remote-fileio.c: Include target.h.
10769 (remote_fileio_write_bytes): Delete.
10770 (remote_fileio_func_open, remote_fileio_func_write)
10771 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10772 target_read_memory.
10773 (remote_fileio_func_stat): Use target_read_memory and
10774 target_write_memory.
10775 (remote_fileio_func_gettimeofday): Use target_write_memory.
10776 (remote_fileio_func_system): Use target_read_memory.
10777 * remote.c (remote_write_bytes): Make it static.
10778 (remote_read_bytes): Don't handle partial reads here.
10779 * remote.h (remote_read_bytes): Delete declaration.
10781 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10783 Simplify XML parsing a bit.
10785 * xml-support.h (gdb_xml_parse_quick): Declare.
10786 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10787 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10789 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10790 gdb_xml_create_parser_and_cleanup_1.
10791 (gdb_xml_parse_quick): New.
10792 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10793 * osdata.c (osdata_parse): Ditto.
10794 * remote.c (remote_threads_info): Ditto.
10795 * solib-target.c (solib_target_parse_libraries): Ditto.
10796 * xml-syscall.c (syscall_parse_xml): Ditto.
10797 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10799 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10801 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10802 with remote-mips.o added to gdb_target_obs.
10803 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10805 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10807 * ada-valprint.c (val_print_packed_array_elements): Pass the
10808 correct struct value to val_print.
10809 (ada_val_print_1): Ditto.
10811 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10813 Don't lose embedded_offset in printing routines throughout.
10815 * valprint.h (val_print_array_elements): Change prototype.
10816 * valprint.c (val_print_array_elements): Add `embedded_offset'
10817 parameter, and adjust to pass it down to val_print, while passing
10818 `valaddr' or `address' unmodified. Take embedded_offset into
10819 account when checking repetitions.
10820 * c-valprint.c (c_val_print): Pass embedded_offset to
10821 val_print_array_elements instead of adjusting `valaddr' and
10823 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10824 embedded_offset to val_print_array_elements instead of adjusting
10826 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10827 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10828 val_print_array_elements and pascal_object_print_value_fields
10829 instead of adjusting `valaddr'.
10830 (pascal_object_print_value_fields): Add `offset' parameter, and
10832 (pascal_object_print_value): Add `offset' parameter, and adjust to
10834 (pascal_object_print_static_field): Use
10835 value_contents_for_printing/value_embedded_offset, rather than
10837 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10838 parameter, and adjust to use it. Use
10839 value_contents_for_printing/value_embedded_offset, rather than
10841 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10842 (ada_val_print_array): Add `offset' parameter, and adjust to use
10844 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10845 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10846 Instead work with offsets. Use
10847 value_contents_for_printing/value_embedded_offset, rather than
10848 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10849 and use value_from_pointer to extract a target pointer, rather
10850 than value_from_longest.
10851 (print_variant_part): Add `offset' parameter. Replace
10852 `outer_valaddr' parameter by a new `outer_offset' parameter.
10853 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10854 (ada_value_print): Use
10855 value_contents_for_printing/value_embedded_offset, rather than
10857 (print_record): Add `offset' parameter, and adjust to pass it
10859 (print_field_values): Add `offset' parameter. Replace
10860 `outer_valaddr' parameter by a new `outer_offset' parameter.
10861 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10862 Use value_contents_for_printing/value_embedded_offset, rather than
10864 * d-valprint.c (dynamic_array_type): Use
10865 value_contents_for_printing/value_embedded_offset, rather than
10867 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10868 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10869 (java_print_value_fields): Take `offset' into account. Don't
10870 re-adjust `valaddr'. Instead pass down adjusted offsets.
10871 (java_val_print): Take `embedded_offset' into account. Pass it to
10872 java_print_value_fields.
10873 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10874 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10875 down adjusted offsets.
10876 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10877 (f_val_print): Take `embedded_offset' into account.
10879 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10881 * inflow.c: Include "gdbcmd.h".
10882 (interactive_mode): New static global, moved here from top.c.
10883 (show_interactive_mode): New function, moved here from top.c.
10884 use gdb_has_a_terminal instead of input_from_terminal_p to
10885 determine the current mode.
10886 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10888 (_initialize_inflow): Add the "set/show interactive-mode"
10889 commands. Moved here from top.c, after having adjusted slightly
10891 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10893 (input_from_terminal_p): Remove handling of "interactive-mode"
10894 setting, moved to infow.c.
10895 (init_main): Remove creation of the "set/show interactive-mode"
10896 commands, moved to inflow.c.
10898 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10900 * NEWS: Add entry for native ia64-hpux support.
10902 2011-01-19 Tom Tromey <tromey@redhat.com>
10905 * thread.c (free_thread): Free 'name'.
10906 (print_thread_info): Emit thread name. Change CLI output.
10907 (thread_name_command): New function.
10908 (do_captured_thread_select): Emit newline.
10909 (_initialize_thread): Register 'thread name' command.
10910 * target.h (struct target_ops) <to_thread_name>: New field.
10911 (target_thread_name): New macro.
10912 * target.c (update_current_target): Handle to_thread_name.
10913 * python/py-infthread.c (thpy_get_name): New function.
10914 (thpy_set_name): Likewise.
10915 (thread_object_getset): Add "name".
10916 * linux-nat.c (linux_nat_thread_name): New function.
10917 (linux_nat_add_target): Set to_thread_name.
10918 * gdbthread.h (struct thread_info) <name>: New field.
10920 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10922 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10923 (ada_val_print_1): Likewise.
10925 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10927 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10928 upper limit address is not greater than the function end address
10929 when the upper limit could not be computed using the debugging
10932 2011-01-17 Tom Tromey <tromey@redhat.com>
10934 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10936 * utils.c: Include gdb_regex.h.
10937 (do_regfree_cleanup): New function.
10938 (make_regfree_cleanup): Likewise.
10939 (get_regcomp_error): Likewise.
10940 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10942 2011-01-17 Tom Tromey <tromey@redhat.com>
10944 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10945 re_compile_fastmap.
10947 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10949 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10950 for internal variables.
10951 (last_was_structop): New static variable.
10952 (COMPLETE): New token.
10953 (field_exp): New rule to group all '.' suffix handling.
10954 Add mark_struct_expression calls when approriate to be able
10955 to correctly find fields for completion.
10956 (yylex): Adapt to handle field completion and set INTVAR when
10959 2011-01-14 Yao Qi <yao@codesourcery.com>
10961 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10962 save_reggroup, restore_reggroup and all_reggroup.
10964 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10966 * ada-valprint. (ada_printchar): Use the correct type length
10967 in call to ada_emit_char.
10968 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10970 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10972 * solib-som.h (hpux_major_release): Declare variable here.
10973 * solib-som.c: Remove <sys/utsname.h> header.
10974 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10975 (hpux_major_release): Make global, change default value to
10976 DEFAULT_HPUX_MAJOR_RELEASE.
10977 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10978 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10979 Add "solib-som.h" header.
10980 (set_hpux_major_release): New function.
10981 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10983 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10985 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10987 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10989 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10990 new-line at end of warning message.
10991 (ia64_hpux_store_register): Remove trailing new-line at end of
10993 * ia64-hpux-tdep.c: Rephrase comment.
10994 * solib-ia64-hpux.c (struct dld_info): Change type of field
10995 dld_flags from "long long" to ULONGEST.
10997 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10999 * target.h (deprecated_child_ops): Delete declaration.
11000 * target.c (deprecated_child_ops): Delete definition.
11002 2011-01-14 Pedro Alves <pedro@codesourcery.com>
11004 * Makefile.in (hpux-thread.o): Delete rule.
11005 * configure.ac: Don't check for HPUX DCE threads support.
11006 * configure, config.in: Regenerate.
11007 * hppa-hpux-nat.c (child_suppress_run): Delete.
11008 (hppa_hpux_child_can_run): Delete.
11009 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11010 * hpux-thread.c: Delete.
11012 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11014 * hpux-thread.c (hpux_pid_to_str): Delete.
11016 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11018 * ada-valprint.c (ada_emit_char): Remove strange code.
11019 Check that c is <= UCHAR_MAX before passing it to isascii.
11020 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11022 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11024 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11025 to the case where instream is stdin.
11027 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11029 * ia64-tdep.h (struct regcache): Forward declare.
11030 (struct ia64_infcall_ops): New struct type.
11031 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11033 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11034 Renames ia64_find_global_pointer.
11035 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11036 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11037 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11039 (ia64_infcall_ops): New static global constant.
11040 (ia64_gdbarch_init): Set tdep->infcall_ops.
11041 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11042 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11043 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11044 (ia64_hpux_dummy_code): New static global constant.
11045 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11046 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11047 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11049 (ia64_hpux_infcall_ops): New static global constant.
11050 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11051 for inferior function calls to work properly on ia64-hpux.
11053 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11055 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11056 * ia64-tdep.h (struct frame_info): forward declaration.
11057 (struct gdbarch_tdep): Add field size_of_register_frame.
11058 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11059 to determine the size of the register frame.
11060 (ia64_size_of_register_frame): New function.
11061 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11062 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11063 (IA64_HPUX_UREG_REASON): New macro.
11064 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11066 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11067 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11068 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11071 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11073 Add support for ia64-hpux.
11074 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11075 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11077 * configure.host: Add handling for ia64-hpux hosts. Add associated
11079 * configure.tgt: Add handling for ia64-hpux targets.
11080 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11081 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11082 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11084 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11086 [ttrace] Compute thread list immediately after attach.
11087 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11089 (inf_ttrace_attach): Use it.
11091 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11093 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11094 if we could not determine the frame's function address. Instead,
11095 use the frame's PC, and then continue.
11097 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11099 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11100 not already defined.
11102 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11104 * ia64-tdep.c (ia64_struct_type_p): New function.
11105 (ia64_extract_return_value): Handle integral values that are
11106 less than 8 bytes long.
11107 (ia64_push_dummy_call): Likewise.
11109 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11111 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11112 floatformat_ia64_ext.
11113 (floatformat_ia64_ext_big): New static const.
11114 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11116 2011-01-12 Tom Tromey <tromey@redhat.com>
11118 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11120 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11121 (mi_cmd_thread_list_ids): Likewise.
11122 (mi_cmd_data_list_changed_registers): Likewise.
11123 (mi_cmd_data_list_register_values): Likewise.
11124 (mi_cmd_data_write_register_values): Likewise.
11125 (mi_cmd_data_evaluate_expression): Likewise.
11126 (mi_cmd_data_read_memory): Likewise.
11127 (mi_cmd_data_read_memory_bytes): Likewise.
11128 (mi_cmd_data_write_memory): Likewise.
11129 (mi_cmd_enable_timings): Likewise.
11130 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11131 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11132 (mi_cmd_var_delete): Likewise.
11133 (mi_cmd_var_set_format): Likewise.
11134 (mi_cmd_var_show_format): Likewise.
11135 (mi_cmd_var_info_num_children): Likewise.
11136 (mi_cmd_var_list_children): Likewise.
11137 (mi_cmd_var_info_type): Likewise.
11138 (mi_cmd_var_info_expression): Likewise.
11139 (mi_cmd_var_show_attributes): Likewise.
11140 (mi_cmd_var_assign): Likewise.
11141 (mi_cmd_var_update): Likewise.
11142 (mi_cmd_enable_pretty_printing): Likewise.
11143 (mi_cmd_var_set_update_range): Likewise.
11144 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11146 (mi_cmd_target_file_put): Likewise.
11147 (mi_cmd_target_file_delete): Likewise.
11148 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11150 (mi_cmd_stack_info_depth): Likewise.
11151 (mi_cmd_stack_list_locals): Likewise.
11152 (mi_cmd_stack_list_args): Likewise.
11153 (mi_cmd_stack_select_frame): Likewise.
11154 (mi_cmd_stack_select_frame): Likewise.
11155 (mi_cmd_stack_info_frame): Likewise.
11156 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11158 (mi_cmd_file_list_exec_source_files): Likewise.
11159 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11160 (mi_cmd_env_cd): Likewise.
11161 (mi_cmd_env_path): Likewise.
11162 (mi_cmd_env_dir): Likewise.
11163 (mi_cmd_inferior_tty_show): Likewise.
11164 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11165 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11166 (mi_cmd_break_watch): Likewise.
11168 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11170 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11171 (ppc_linux_insert_hw_breakpoint): Likewise.
11172 (ppc_linux_remove_hw_breakpoint): Likewise.
11173 (ppc_linux_insert_watchpoint): Likewise.
11175 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11176 Jan Kratochvil <jan.kratochvil@redhat.com>
11178 PR fortran/11104 and DWARF unbound arrays detection.
11179 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11180 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11181 unspecified upper bound.
11182 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11183 variables array_size_array, tmp_type and offset_item. New variable
11184 array. Remove call to f77_get_upperbound. New variables array_type
11185 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11186 the final call to deprecated_set_value_type.
11188 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11190 Make value allocations more lazy.
11191 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11192 instead of allocate_value and set_value_lazy when possible.
11193 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11194 instead of allocate_value and set_value_lazy.
11195 * findvar.c (value_of_register_lazy): Likewise.
11196 (read_var_value): Remove V preallocation, call just check_typedef in
11197 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11198 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11199 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11200 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11201 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11202 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11203 the end, remove set_value_lazy there.
11204 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11205 instead of allocate_value and set_value_lazy when possible.
11206 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11207 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11208 of allocate_value and set_value_lazy.
11209 (value_from_contents_and_address): Use allocate_value_lazy instead of
11210 allocate_value and set_value_lazy when possible.
11212 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11214 * disasm.c (dump_insns): Support dumping opcodes for MI.
11215 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11216 dumping of instruction opcodes.
11218 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11220 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11223 2011-01-11 Tom Tromey <tromey@redhat.com>
11225 * thread.c (do_captured_thread_select): Emit newline before
11228 2011-01-11 Michael Snyder <msnyder@vmware.com>
11230 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11231 * score-tdep.c: Ditto.
11232 * score-tdep.h: Ditto.
11233 * ser-base.c: Ditto.
11234 * ser-go32.c: Ditto.
11237 * ser-mingw.c: Ditto.
11238 * ser-pipe.c: Ditto.
11239 * ser-tcp.c: Ditto.
11240 * ser-unix.c: Ditto.
11241 * sh64-tdep.c: Ditto.
11242 * shnbsd-nat.c: Ditto.
11243 * sh-tdep.c: Ditto.
11244 * sh-tdep.h: Ditto.
11246 * solib-darwin.c: Ditto.
11247 * solib-frv.c: Ditto.
11249 * solib-irix.c: Ditto.
11250 * solib-osf.c: Ditto.
11251 * solib-pa64.c: Ditto.
11252 * solib-som.c: Ditto.
11253 * solib-spu.c: Ditto.
11254 * solib-sunos.c: Ditto.
11255 * solib-svr4.c: Ditto.
11257 * sol-thread.c: Ditto.
11258 * somread.c: Ditto.
11261 * sparc64-linux-tdep.c: Ditto.
11262 * sparc64-tdep.c: Ditto.
11263 * sparc-linux-nat.c: Ditto.
11264 * sparc-linux-tdep.c: Ditto.
11265 * sparc-sol2-nat.c: Ditto.
11266 * sparc-sol2-tdep.c: Ditto.
11267 * sparc-tdep.c: Ditto.
11268 * sparc-tdep.h: Ditto.
11269 * spu-tdep.c: Ditto.
11270 * stabsread.c: Ditto.
11271 * stabsread.h: Ditto.
11273 * symfile.c: Ditto.
11274 * symfile.h: Ditto.
11275 * symmisc.c: Ditto.
11279 * target-descriptions.c: Ditto.
11280 * target-descriptions.h: Ditto.
11282 * target-memory.c: Ditto.
11283 * terminal.h: Ditto.
11286 * tracepoint.c: Ditto.
11287 * tracepoint.h: Ditto.
11288 * trad-frame.h: Ditto.
11289 * typeprint.c: Ditto.
11291 2011-01-11 Michael Snyder <msnyder@vmware.com>
11293 * ui-file.c: Comment cleanup, mostly periods and spaces.
11294 * ui-file.h: Ditto.
11298 * v850-tdep.c: Ditto.
11299 * valarith.c: Ditto.
11301 * valprint.c: Ditto.
11302 * valprint.h: Ditto.
11307 * vax-tdep.c: Ditto.
11310 * version.h: Ditto.
11311 * windows-nat.c: Ditto.
11312 * windows-tdep.c: Ditto.
11313 * xcoffread.c: Ditto.
11314 * xcoffsolib.c: Ditto.
11315 * xml-support.c: Ditto.
11316 * xstormy16-tdep.c: Ditto.
11317 * xtensa-tdep.c: Ditto.
11318 * xtensa-tdep.h: Ditto.
11320 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11322 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11323 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11325 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11326 Thiago Jung Bauermann <bauerman@br.ibm.com>
11328 Implement support for PowerPC BookE ranged watchpoints.
11330 (struct breakpoint_ops) <resources_needed>: New method.
11331 Initialize to NULL in all existing breakpoint_ops instances.
11332 (struct breakpoint) <exact>: New field.
11333 (target_exact_watchpoints): Declare external global.
11334 * breakpoint.c (target_exact_watchpoints): New global flag.
11335 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11336 b->enable_state to bp_enabled before calling
11337 hw_watchpoint_used_count.
11338 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11339 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11341 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11342 if the watchpoint is exact.
11343 (resources_needed_watchpoint): New function.
11344 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11345 (watch_command_1): Set b->exact if the user asked for an exact
11346 watchpoint and one can be set.
11347 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11348 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11349 the user asks for an exact watchpoint and one can be set. Return
11350 number of needed debug registers to watch the expression.
11351 * gdbtypes.c (is_scalar_type): New function, based on
11352 valprint.c:scalar_type_p.
11353 (is_scalar_type_recursive): New function.
11354 * gdbtypes.h (is_scalar_type_recursive): Declare.
11355 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11356 handle regions when ranged watchpoints are available.
11357 (create_watchpoint_request): New function.
11358 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11359 create_watchpoint_request.
11360 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11361 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11362 `set powerpc' and `show powerpc' commands.
11363 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11364 Mention documentation comment in the target macro.
11365 (target_region_ok_for_hw_watchpoint): Document return value.
11367 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11369 * breakpoint.c (update_watchpoint): Decide on using a software or
11370 hardware watchpoint after the bp_locations are created.
11372 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11374 Convert hardware watchpoints to use breakpoint_ops.
11375 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11376 <insert_location>: ... this. Return int instead of void.
11377 Accept pointer to struct bp_location instead of pointer to
11378 struct breakpoint. Adapt all implementations.
11379 (breakpoint_ops) <remove>: Rename to...
11380 <remove_location>: ... this. Accept pointer to struct bp_location
11381 instead of pointer to struct breakpoint. Adapt all implementations.
11382 * breakpoint.c (insert_catchpoint): Delete function.
11383 (insert_bp_location): Call the watchpoint or catchpoint's
11384 breakpoint_ops.insert method.
11385 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11386 breakpoint_ops.remove method.
11387 (insert_watchpoint, remove_watchpoint): New functions.
11388 (watchpoint_breakpoint_ops): New structure.
11389 (watch_command_1): Initialize the OPS field.
11390 * inf-child.c (inf_child_insert_fork_catchpoint)
11391 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11392 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11393 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11395 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11396 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11397 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11398 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11399 * target.c (update_current_target): Change default implementation of
11400 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11401 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11402 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11403 to_set_syscall_catchpoint to return_one.
11404 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11405 (debug_to_insert_exec_catchpoint): Report return value.
11406 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11407 (to_insert_exec_catchpoint): Change declaration to return int instead
11410 2011-01-11 Michael Snyder <msnyder@vmware.com>
11412 * arm-tdep.c: Internationalization.
11414 * charset.c: Ditto.
11415 * fork-child.c: Ditto.
11416 * nto-procfs.c: Ditto.
11417 * ppc-sysv-tdep.c: Ditto.
11419 * remote-mips.c: Ditto.
11421 * rs6000-nat.c: Ditto.
11422 * rs6000-tdep.c: Ditto.
11426 * xml-support.c: Ditto.
11427 * mi/mi-cmd-break.c: Ditto.
11428 * mi/mi-cmd-var.c: Ditto.
11429 * mi/mi-interp.c: Ditto.
11430 * mi/mi-main.c: Ditto.
11432 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11434 * remote-sim.c (gdbsim_store_register): Update API to
11435 sim_store_register to check more error conditions.
11437 2011-01-10 Michael Snyder <msnyder@vmware.com>
11439 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11440 * nto-tdep.c: Ditto.
11441 * nto-tdep.h: Ditto.
11442 * objc-exp.y: Ditto.
11443 * objc-lang.c: Ditto.
11444 * objfiles.c: Ditto.
11445 * objfiles.h: Ditto.
11446 * observer.c: Ditto.
11447 * opencl-lang.c: Ditto.
11450 * parser-defs.h: Ditto.
11453 * posix-hdep.c: Ditto.
11454 * ppcbug-rom.c: Ditto.
11455 * ppc-linux-nat.c: Ditto.
11456 * ppc-linux-tdep.c: Ditto.
11457 * ppc-linux-tdep.h: Ditto.
11458 * ppcnbsd-tdep.c: Ditto.
11459 * ppcobsd-tdep.c: Ditto.
11460 * ppcobsd-tdep.h: Ditto.
11461 * ppc-sysv-tdep.c: Ditto.
11462 * ppc-tdep.h: Ditto.
11463 * printcmd.c: Ditto.
11464 * proc-abi.c: Ditto.
11465 * proc-flags.c: Ditto.
11467 * proc-utils.h: Ditto.
11468 * progspace.h: Ditto.
11469 * prologue-value.c: Ditto.
11470 * prologue-value.h: Ditto.
11471 * psympriv.h: Ditto.
11472 * psymtab.c: Ditto.
11473 * p-typeprint.c: Ditto.
11474 * p-valprint.c: Ditto.
11475 * ravenscar-sparc-thread.c: Ditto.
11476 * ravenscar-thread.c: Ditto.
11477 * ravenscar-thread.h: Ditto.
11479 * regcache.c: Ditto.
11480 * regcache.h: Ditto.
11482 * remote-fileio.c: Ditto.
11483 * remote-fileio.h: Ditto.
11485 * remote-m32r-sdi.c: Ditto.
11486 * remote-mips.c: Ditto.
11487 * remote-sim.c: Ditto.
11488 * rs6000-aix-tdep.c: Ditto.
11489 * rs6000-nat.c: Ditto.
11490 * rs6000-tdep.c: Ditto.
11492 2011-01-10 Michael Snyder <msnyder@vmware.com>
11494 * charset.c (validate): Internationalization.
11495 * coffread.c (read_one_sym): Ditto.
11496 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11497 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11498 * inflow.c (new_tty): Ditto.
11499 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11500 * m32c-tdep.c (m32c_return_value): Ditto.
11501 * mep-tdep.c (mep_store_return_value): Ditto.
11502 * score-tdep.c (score7_fetch_insn): Ditto.
11503 * ser-mingw.c (pipe_windows_open): Ditto.
11504 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11505 * spu-tdep.c (spu_register_type): Ditto.
11506 * tracepoint.c (trace_find_command): Ditto.
11507 * valarith.c (value_pos): Ditto.
11509 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11511 * ada-valprint.c (printstr): Minor comment reformatting.
11513 2011-01-08 Michael Snyder <msnyder@vmware.com>
11515 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11518 2011-01-08 Michael Snyder <msnyder@vmware.com>
11520 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11521 * hppa-hpux-tdep.c: Ditto.
11522 * hppa-linux-nat.c: Ditto.
11523 * hppa-linux-tdep.c: Ditto.
11524 * hppanbsd-tdep.c: Ditto.
11525 * hppa-tdep.c: Ditto.
11526 * hppa-tdep.h: Ditto.
11527 * hpux-thread.c: Ditto.
11528 * i386-cygwin-tdep.c: Ditto.
11529 * i386-darwin-nat.c: Ditto.
11530 * i386gnu-nat.c: Ditto.
11531 * i386-linux-nat.c: Ditto.
11532 * i386-linux-tdep.c: Ditto.
11533 * i386-nat.c: Ditto.
11534 * i386-nat.h: Ditto.
11535 * i386nbsd-tdep.c: Ditto.
11536 * i386-sol2-nat.c: Ditto.
11537 * i386-stub.c: Ditto.
11538 * i386-tdep.c: Ditto.
11539 * i386-tdep.h: Ditto.
11540 * i387-tdep.c: Ditto.
11541 * ia64-linux-nat.c: Ditto.
11542 * ia64-linux-tdep.c: Ditto.
11543 * ia64-tdep.c: Ditto.
11544 * infcall.c: Ditto.
11545 * infcall.h: Ditto.
11547 * inferior.c: Ditto.
11548 * inferior.h: Ditto.
11549 * infloop.c: Ditto.
11552 * interps.c: Ditto.
11553 * interps.h: Ditto.
11554 * iq2000-tdep.c: Ditto.
11555 * irix5-nat.c: Ditto.
11559 * jv-lang.c: Ditto.
11560 * jv-lang.h: Ditto.
11561 * jv-typeprint.c: Ditto.
11562 * jv-valprint.c: Ditto.
11563 * language.c: Ditto.
11564 * language.h: Ditto.
11565 * linespec.c: Ditto.
11566 * linux-fork.c: Ditto.
11567 * linux-nat.c: Ditto.
11568 * linux-thread-db.c: Ditto.
11569 * lm32-tdep.c: Ditto.
11571 2011-01-08 Michael Snyder <msnyder@vmware.com>
11573 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11574 * m2-lang.c: Ditto.
11575 * m2-typeprint.c: Ditto.
11576 * m2-valprint.c: Ditto.
11577 * m32c-tdep.c: Ditto.
11578 * m32r-linux-nat.c: Ditto.
11579 * m32r-rom.c: Ditto.
11580 * m32r-tdep.c: Ditto.
11581 * m32r-tdep.h: Ditto.
11582 * m68hc11-tdep.c: Ditto.
11583 * m58klinux-nat.c: Ditto.
11584 * m68k-tdep.c: Ditto.
11585 * m88k-tdep.c: Ditto.
11586 * m88k-tdep.h: Ditto.
11587 * machoread.c: Ditto.
11588 * macrocmd.c: Ditto.
11589 * macroexp.c: Ditto.
11590 * macrotab.c: Ditto.
11593 * mdebugread.c: Ditto.
11594 * mdebugread.h: Ditto.
11595 * memattr.c: Ditto.
11596 * memattr.h: Ditto.
11597 * memory-map.h: Ditto.
11598 * mep-tdep.c: Ditto.
11599 * microblaze-rom.c: Ditto.
11600 * microblaze-tdep.c: Ditto.
11601 * minsyms.c: Ditto.
11602 * mips-irix-tdep.c: Ditto.
11603 * mips-linux-nat.c: Ditto.
11604 * mips-linux-tdep.c: Ditto.
11605 * mips-linux-tdep.h: Ditto.
11606 * mipsnbsd-nat.c: Ditto.
11607 * mipsnbsd-tdep.c: Ditto.
11608 * mipsread.c: Ditto.
11609 * mips-tdep.c: Ditto.
11610 * mips-tdep.h: Ditto.
11611 * mn10300-linux-tdep.c: Ditto.
11612 * mn10300-tdep.c: Ditto.
11613 * mn10300-tdep.h: Ditto.
11614 * monitor.c: Ditto.
11615 * monitor.h: Ditto.
11616 * moxie-tdep.c: Ditto.
11617 * moxie-tdep.h: Ditto.
11618 * mt-tdep.c: Ditto.
11620 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11622 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11624 2011-01-08 Robert Millan <rmh@gnu.org>
11626 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11628 2011-01-07 Michael Snyder <msnyder@vmware.com>
11630 * charset.c (_initialize_charset): Fix typo in string.
11632 2011-01-07 Michael Snyder <msnyder@vmware.com>
11634 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11636 * tui/tui-layout.c (tui_set_layout_for_display_command):
11637 Split line so that operator goes to beginning of line.
11638 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11639 assignment out of if statement.
11641 2011-01-07 Michael Snyder <msnyder@vmware.com>
11643 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11644 * ada-lang.h: Ditto.
11645 * ada-tasks.c: Ditto.
11646 * ada-valprint.c: Ditto.
11647 * aix-threads.c: Ditto.
11648 * alpha-linux-nat.c: Ditto.
11649 * alpha-linux-tdep.c: Ditto.
11650 * alpha-mdebug-tdep.c: Ditto.
11651 * alpha-nat.c: Ditto.
11652 * alpha-osf1-tdep.c: Ditto.
11653 * alpha-tdep.c: Ditto.
11654 * alphabsd-nat.c: Ditto.
11655 * alphabsd-tdep.c: Ditto.
11656 * amd64-darwin-tdep.c: Ditto.
11657 * amd64-linux-nat.c: Ditto.
11658 * amd64-linux-tdep.c: Ditto.
11659 * amd64-sol2-tdep.c: Ditto.
11660 * amd64-tdep.c: Ditto.
11661 * amd64-fbsd-tdep.c: Ditto.
11662 * amd64-nbsd-tdep.c: Ditto.
11663 * amd64-obsd-tdep.c: Ditto.
11664 * amd64-linux-nat.c: Ditto.
11665 * amd64-linux-tdep.c: Ditto.
11666 * arm-tdep.c: Ditto.
11667 * arm-tdep.h: Ditto.
11668 * armnbsd-nat.c: Ditto.
11669 * avr-tdep.c: Ditto.
11670 * bfin-tdep.c: Ditto.
11671 * bsd-kvm.c: Ditto.
11672 * c-typeprintc: Ditto.
11673 * c-valprint.c: Ditto.
11674 * coff-pe-read.h: Ditto.
11675 * coffreead.c: Ditto.
11676 * cris-tdep.c: Ditto.
11678 * darwin-nat-info.c: Ditto.
11679 * darwin-nat.c: Ditto.
11680 * dbug-rom.c: Ditto.
11681 * dbxread.c: Ditto.
11684 * dec-thread.c: Ditto.
11686 * demangle.c: Ditto.
11687 * dicos-tdep.c: Ditto.
11688 * dictionary.c: Ditto.
11689 * dictionary.h: Ditto.
11690 * dink32-rom.c: Ditto.
11692 * doublest.c: Ditto.
11694 * dummy-frame.c: Ditto.
11695 * dwarf2-frame.c: Ditto.
11696 * dwarf2expr.c: Ditto.
11697 * dwarf2loc.c: Ditto.
11698 * dwarf2read.c: Ditto.
11699 * elfread.c: Ditto.
11700 * environ.c: Ditto.
11702 * event-top.h: Ditto.
11703 * exceptions.c: Ditto.
11704 * exceptions.h: Ditto.
11706 * expprint.c: Ditto.
11707 * expression.h: Ditto.
11711 * f-typeprint.c: Ditto.
11712 * f-valprint.c: Ditto.
11713 * fbsd-nat.c: Ditto.
11714 * findvar.c: Ditto.
11715 * fork-child.c: Ditto.
11718 * frv-linux-tdep.c: Ditto.
11719 * frv-tdep.c: Ditto.
11721 * gdb-stabs.h: Ditto.
11722 * gdb_assert.h: Ditto.
11723 * gdb_string.h: Ditto.
11724 * gdb_thread_db.h: Ditto.
11725 * gdb_wait.h: Ditto.
11726 * gdbarch.sh: Ditto.
11727 * gdbcore.h: Ditto.
11728 * gdbthread.h: Ditto.
11729 * gdbtypes.c: Ditto.
11730 * gdbtypes.h: Ditto.
11731 * gnu-nat.c: Ditto.
11732 * gnu-nat.h: Ditto.
11733 * gnu-v2-abi.c: Ditto.
11734 * gnu-v3-abi.c: Ditto.
11735 * go32-nat.c: Ditto.
11736 * gdbarch.c: Regenerate.
11737 * gdbarch.h: Regenerate.
11739 2011-01-07 Michael Snyder <msnyder@vmware.com>
11741 * ax-gdb.c: Adjust some long output strings.
11742 * breakpoint.c: Ditto.
11743 * charset.c: Ditto.
11745 * infcall.c: Ditto.
11747 * linux-nat.c: Ditto.
11748 * solib-pa64.c: Ditto.
11749 * solib-som.c: Ditto.
11751 2011-01-06 Tom Tromey <tromey@redhat.com>
11755 * python/python.c (GdbMethods): Add "newest_frame" method.
11756 * python/python-internal.h (gdbpy_newest_frame): Declare.
11757 * python/py-frame.c (gdbpy_newest_frame): New function.
11759 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11761 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11762 * jit.c (jit_debug): New variable.
11763 (show_jit_debug): New function.
11764 (struct target_buffer): Use ULONGEST.
11765 (bfd_open_from_target_memory): Likewise.
11766 (jit_register_code, jit_inferior_init): Add debug output.
11767 (_initialize_jit): Register "debug jit" command.
11769 2011-01-06 Tom Tromey <tromey@redhat.com>
11771 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11772 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11775 2011-01-06 Tom Tromey <tromey@redhat.com>
11777 * python/py-frame.c (frapy_block): Use get_frame_block.
11779 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11781 Do not stop on SIGPRIO signals by default
11782 * infrun.c (_initialize_infrun): Unset signal_stop and
11783 signal_print for TARGET_SIGNAL_PRIO.
11785 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11787 * ada-tasks.c: Fix style violation in comment.
11789 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11791 * linespec.c (decode_compound, find_method): Remove trailing \n
11792 at end of error string.
11793 * solib-irix.c (irix_current_sos): Likewise.
11794 * varobj.c (uninstall_variable): Likewise.
11796 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11798 * copyright.py: New script.
11799 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11800 Launch emacs without exec'ing. Call copyright.py afterwards.
11802 2011-01-05 Michael Snyder <msnyder@vmware.com>
11804 * addrmap.c: Shorten lines of >= 80 columns.
11805 * arch-utils.c: Ditto.
11806 * arch-utils.h: Ditto.
11808 * ax-general.c: Ditto.
11810 * blockframe.c: Ditto.
11811 * breakpoint.c: Ditto.
11812 * buildsym.c: Ditto.
11814 * c-typeprint.c: Ditto.
11815 * charset.c: Ditto.
11816 * coffread.c: Ditto.
11817 * command.h: Ditto.
11818 * corelow.c: Ditto.
11820 * cp-namespace.c: Ditto.
11821 * cp-support.c: Ditto.
11822 * dbug-rom.c: Ditto.
11823 * dbxread.c: Ditto.
11827 * dictionary.c: Ditto.
11829 * doublest.c: Ditto.
11830 * dwarf2-frame.c: Ditto.
11831 * dwarf2expr.c: Ditto.
11832 * dwarf2loc.c: Ditto.
11833 * dwarf2read.c: Ditto.
11834 * elfread.c: Ditto.
11836 * event-loop.c: Ditto.
11837 * event-loop.h: Ditto.
11838 * exceptions.h: Ditto.
11840 * expprint.c: Ditto.
11841 * expression.h: Ditto.
11843 * f-valprint.c: Ditto.
11844 * findcmd.c: Ditto.
11845 * frame-base.c: Ditto.
11846 * frame-unwind.c: Ditto.
11847 * frame-unwind.h: Ditto.
11851 * gdb-stabs.h: Ditto.
11852 * gdb_assert.h: Ditto.
11853 * gdb_dirent.h: Ditto.
11854 * gdb_obstack.h: Ditto.
11855 * gdbcore.h: Ditto.
11856 * gdbtypes.c: Ditto.
11857 * gdbtypes.h: Ditto.
11858 * inf-ttrace.c: Ditto.
11859 * infcall.c: Ditto.
11863 * inline-frame.h: Ditto.
11864 * language.c: Ditto.
11865 * language.h: Ditto.
11866 * libunwind-frame.c: Ditto.
11867 * libunwind-frame.h: Ditto.
11868 * linespec.c: Ditto.
11869 * linux-nat.c: Ditto.
11870 * linux-nat.h: Ditto.
11871 * linux-thread-db.c: Ditto.
11872 * machoread.c: Ditto.
11873 * macroexp.c: Ditto.
11874 * macrotab.c: Ditto.
11877 * mdebugread.c: Ditto.
11878 * memattr.c: Ditto.
11879 * minsyms.c: Ditto.
11880 * monitor.c: Ditto.
11881 * monitor.h: Ditto.
11882 * objfiles.c: Ditto.
11883 * objfiles.h: Ditto.
11885 * p-typeprint.c: Ditto.
11886 * p-valprint.c: Ditto.
11888 * printcmd.c: Ditto.
11889 * proc-events.c: Ditto.
11891 * progspace.c: Ditto.
11892 * progspace.h: Ditto.
11893 * psympriv.h: Ditto.
11894 * psymtab.c: Ditto.
11896 * regcache.c: Ditto.
11897 * regcache.h: Ditto.
11898 * remote-fileio.c: Ditto.
11900 * ser-mingw.c: Ditto.
11901 * ser-tcp.c: Ditto.
11902 * ser-unix.c: Ditto.
11905 * solib-frv.c: Ditto.
11906 * solib-irix.c: Ditto.
11907 * solib-osf.c: Ditto.
11908 * solib-pa64.c: Ditto.
11909 * solib-som.c: Ditto.
11910 * solib-sunos.c: Ditto.
11911 * solib-svr4.c: Ditto.
11912 * solib-target.c: Ditto.
11914 * somread.c: Ditto.
11916 * stabsread.c: Ditto.
11917 * stabsread.c: Ditto.
11920 * symfile-mem.c: Ditto.
11921 * symfile.c: Ditto.
11922 * symfile.h: Ditto.
11923 * symmisc.c: Ditto.
11926 * target-descriptions.c: Ditto.
11927 * target-memory.c: Ditto.
11930 * terminal.h: Ditto.
11933 * tracepoint.c: Ditto.
11934 * tracepoint.h: Ditto.
11935 * ui-file.c: Ditto.
11936 * ui-file.h: Ditto.
11938 * user-regs.c: Ditto.
11939 * user-regs.h: Ditto.
11941 * valarith.c: Ditto.
11943 * valprint.c: Ditto.
11944 * valprint.h: Ditto.
11949 * xcoffread.c: Ditto.
11950 * xcoffsolib.c: Ditto.
11951 * xcoffsolib.h: Ditto.
11952 * xml-syscall.c: Ditto.
11953 * xml-tdesc.c: Ditto.
11955 2011-01-05 Michael Snyder <msnyder@vmware.com>
11957 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11958 * cli/cli-decode.c: Ditto.
11959 * cli/cli-dump.c: Ditto.
11960 * cli/cli-logging.c: Ditto.
11961 * cli/cli-script.c: Ditto.
11962 * cli/cli-setshow.c: Ditto.
11963 * common/signals.c: Ditto.
11964 * mi/mi-cmd-break.c: Ditto.
11965 * mi/mi-cmd-disas.c: Ditto.
11966 * mi/mi-cmd-stack.c: Ditto.
11967 * mi/mi-cmd-var.c: Ditto.
11968 * mi/mi-cmds.c: Ditto.
11969 * mi/mi-common.h: Ditto.
11970 * mi/mi-console.c: Ditto.
11971 * mi/mi-interp.c: Ditto.
11972 * mi/mi-main.c: Ditto.
11973 * osf-share/cma_attr.c: Ditto.
11974 * osf-share/cma_deb_core.h: Ditto.
11975 * osf-share/cma_debug_client.h: Ditto.
11976 * osf-share/cma_handle.h: Ditto.
11977 * osf-share/cma_mutex.h: Ditto.
11978 * osf-share/cma_stack_int.h: Ditto.
11979 * osf-share/cma_tcb_defs.h: Ditto.
11980 * python/py-auto-load.c: Ditto.
11981 * python/py-breakpoint.c: Ditto.
11982 * python/py-cmd.c: Ditto.
11983 * python/py-frame.c: Ditto.
11984 * python/py-objfile.c: Ditto.
11985 * python/py-param.c: Ditto.
11986 * python/py-progspace.c: Ditto.
11987 * python/py-symbol.c: Ditto.
11988 * python/py-value.c: Ditto.
11989 * python/python-internal.h: Ditto.
11990 * python/python.c: Ditto.
11991 * tui/tui-data.c: Ditto.
11992 * tui/tui-disasm.c: Ditto.
11993 * tui/tui-hooks.c: Ditto.
11994 * tui/tui-io.c: Ditto.
11995 * tui/tui-layout.c: Ditto.
11996 * tui/tui-regs.c: Ditto.
11997 * tui/tui-source.c: Ditto.
11998 * tui/tui-stack.c: Ditto.
11999 * tui/tui-win.c: Ditto.
12000 * tui/tui-windata.c: Ditto.
12001 * tui/tui-winsource.c: Ditto.
12003 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12005 * configure.ac, gdb.1: Copyright year update.
12007 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12009 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12010 this_pc_in_block, morestack_msym and morestack_name. Check for
12011 "__morestack" minimal symbol there.
12013 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12015 * symfile.c (find_sym_fns): Add call to dont_repeat.
12017 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12019 Copyright year update in most files (performed by copyright.sh).
12021 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12023 * top.c (print_gdb_version): Update copyright year in version output.
12025 For older changes see ChangeLog-2010.
12031 version-control: never