1 2011-12-10 Hui Zhu <teawater@gmail.com>
2 Yao Qi <yao@codesourcery.com>
4 * tracepoint.c (start_tracing): Clear `inserted' flag.
6 2011-12-10 Hui Zhu <teawater@gmail.com>
8 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
10 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
12 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
15 2011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
17 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
18 `marker' variables to `sal2' and `tpmarker' respectively
21 2011-12-09 Andrew Pinski <apinski@cavium.com>
23 * linespec.c (hash_address_entry): Use iterative_hash_object on each
24 field rather than the struct itself.
26 2011-12-09 Tom Tromey <tromey@redhat.com>
28 * breakpoint.c (compare_breakpoints): New function.
29 (clear_command): Remove duplicate breakpoints. Properly clean
32 2011-12-08 Maciej W. Rozycki <macro@mips.com>
33 Maciej W. Rozycki <macro@codesourcery.com>
35 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
36 address chunks retrieved from decoded lui/addiu pairs.
38 2011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
40 * mips-tdep.c (extended_offset): Correct calculation.
41 (unpack_mips16): Correct bitfield positions used for extraction
42 of the immediate argument; fix sign-extension of same.
43 (extended_mips16_next_pc): Correct B instruction's offset
44 calculation. Correct register decoding of the BEQZ and BNEZ
45 as well as jump-register instructions. Handle compact jumps.
47 2011-12-08 Tom Tromey <tromey@redhat.com>
49 * objfiles.h (struct objfile): Remove obsolete comment.
50 * objfiles.c (build_objfile_section_table): Remove obsolete
53 2011-12-07 Stan Shebs <stan@codesourcery.com>
55 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
56 maintainer of the tic6x target.
58 2011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
60 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
61 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
62 (arm_deal_with_atomic_sequence_raw): Likewise.
63 (arm_deal_with_atomic_sequence): Likewise.
64 (arm_software_single_step): Call it.
65 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
67 2011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
69 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
71 * s390-tdep.h: Likewise.
73 2011-12-07 Tristan Gingold <gingold@adacore.com>
75 * machoread.c (macho_symtab_read): Do not consider N_OPT as
76 a debugging stab. Improve complaint message.
78 2011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
80 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
81 load adjustment if still within the prologue.
83 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
85 * mips-tdep.c (mips32_next_pc): Fix floating point condition
88 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
90 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
91 of BLTZ* and BGEZ* instructions.
93 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
95 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
96 performed to determine whether an address refers to standard
98 (mips16_next_pc): Use mips_pc_is_mips16 instead of
101 2011-12-06 Pedro Alves <pedro@codesourcery.com>
103 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
104 (breakpoint_xfer_memory): ... this. Change prototype. Handle
106 * breakpoint.h (breakpoint_restore_shadows): Delete.
107 (breakpoint_xfer_memory): Declare.
108 * mem-break.c (default_memory_insert_breakpoint)
109 (default_memory_remove_breakpoint): Use target_write_raw_memory.
110 (memory_xfer_partial): Rename to ...
111 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
113 (memory_xfer_partial): New.
114 (target_write_raw_memory): New.
115 * target.h (target_write_raw_memory): New.
117 2011-12-06 Doug Evans <dje@google.com>
119 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
121 2011-12-06 Joel Brobecker <brobecker@acacore.com>
123 * language.h (struct language_defn): Add new component
124 la_symbol_name_compare.
125 * symfile.h (struct quick_symbol_functions): Update the profile
126 of parameter "name_matcher" for the expand_symtabs_matching
127 method. Update the documentation accordingly.
128 * ada-lang.h (ada_name_for_lookup): Add declaration.
129 * ada-lang.c (ada_name_for_lookup): New function, extracted out
130 from ada_iterate_over_symbols.
131 (ada_iterate_over_symbols): Do not encode symbol name anymore.
132 (ada_expand_partial_symbol_name): Adjust profile.
133 (ada_language_defn): Add value for la_symbol_name_compare field.
134 * linespec.c: #include "ada-lang.h".
135 (iterate_name_matcher): Add language parameter. Replace call
136 to strcmp_iw by call to language->la_symbol_name_compare.
137 (decode_variable): Encode COPY if current language is Ada.
138 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
139 of name_matcher parameter. Adjust call to name_matcher.
140 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
141 (expand_partial_symbol_names): Update profile of parameter "fun".
142 * psymtab.h (expand_partial_symbol_names): Update profile of
144 * symtab.c (demangle_for_lookup): Update function documentation.
145 (search_symbols_name_matches): Add language parameter.
146 (expand_partial_symbol_name): Likewise.
147 * c-lang.c (c_language_defn, cplus_language_defn)
148 (asm_language_defn, minimal_language_defn): Add value for
149 la_symbol_name_compare field.
150 * d-lang.c (d_language_defn): Likewise.
151 * f-lang.c (f_language_defn): Ditto.
152 * jv-lang.c (java_language_defn): Ditto.
153 * m2-lang.c (m2_language_defn): Ditto.
154 * objc-lang.c (objc_language_defn): Ditto.
155 * opencl-lang.c (opencl_language_defn): Ditto.
156 * p-lang.c (pascal_language_defn): Ditto.
157 * language.c (unknown_language_defn, auto_language_defn)
158 (local_language_defn): Ditto.
160 2011-12-06 Tom Tromey <tromey@redhat.com>
162 * linespec.c (iterate_over_all_matching_symtabs): Use
163 LA_ITERATE_OVER_SYMBOLS.
164 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
165 (find_function_symbols, decode_variable): Remove Ada special
167 * language.h (struct language_defn) <la_iterate_over_symbols>: New
169 (LA_ITERATE_OVER_SYMBOLS): New macro.
170 * language.c (unknown_language_defn, auto_language_defn)
171 (local_language_defn): Update.
172 * c-lang.c (c_language_defn, cplus_language_defn)
173 (asm_language_defn, minimal_language_defn): Update.
174 * d-lang.c (d_language_defn): Update.
175 * f-lang.c (f_language_defn): Update.
176 * jv-lang.c (java_language_defn): Update.
177 * m2-lang.c (m2_language_defn): Update.
178 * objc-lang.c (objc_language_defn): Update.
179 * opencl-lang.c (opencl_language_defn): Update.
180 * p-lang.c (pascal_language_defn): Update.
181 * ada-lang.c (ada_iterate_over_symbols): New function.
182 (ada_language_defn): Update.
184 2011-12-06 Tom Tromey <tromey@redhat.com>
185 Joel Brobecker <brobecker@acacore.com>
187 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
188 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
189 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
190 PR shlibs/8929, PR shlibs/7393:
191 * python/py-type.c (compare_maybe_null_strings): Rename from
193 (check_types_equal): Update.
194 * utils.c (compare_strings): New function.
195 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
197 * tracepoint.c (scope_info): Update.
198 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
199 * symtab.h (iterate_over_minimal_symbols)
200 (iterate_over_some_symtabs, iterate_over_symtabs)
201 (find_pcs_for_symtab_line, iterate_over_symbols)
202 (demangle_for_lookup): Declare.
203 (expand_line_sal): Remove.
204 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
205 (lookup_symtab_callback): New functions.
206 (lookup_symtab): Rewrite.
207 (demangle_for_lookup): New function, extract from
208 lookup_symbol_in_language.
209 (lookup_symbol_in_language): Use it.
210 (iterate_over_symbols): New function.
211 (find_line_symtab): Update.
212 (find_pcs_for_symtab_line): New functions.
213 (find_line_common): Add 'start' argument.
214 (decode_line_spec): Update. Change argument to 'flags', change
216 (append_expanded_sal): Remove.
217 (append_exact_match_to_sals): Remove.
218 (expand_line_sal): Remove.
219 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
221 <map_symtabs_matching_filename>: New field.
222 * stack.c (func_command): Only look in the current program space.
223 Use DECODE_LINE_FUNFIRSTLINE.
224 * source.c (line_info): Set pspace on sal. Check program space in
225 the loop. Use DECODE_LINE_LIST_MODE.
226 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
227 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
228 * python/python.c (gdbpy_decode_line): Update.
229 * psymtab.c (partial_map_expand_apply): New function.
230 (partial_map_symtabs_matching_filename): Rename from
231 lookup_partial_symbol. Update arguments.
232 (lookup_symtab_via_partial_symtab): Remove.
233 (psym_functions): Update.
234 * objc-lang.h (parse_selector, parse_method): Don't declare.
236 * objc-lang.c (parse_selector, parse_method): Now static.
237 (find_methods): Change arguments. Fill in a vector of symbol
239 (uniquify_strings): New function.
240 (find_imps): Change arguments.
241 * minsyms.c (iterate_over_minimal_symbols): New function.
242 * linespec.h (enum decode_line_flags): New.
243 (struct linespec_sals): New.
244 (struct linespec_result) <canonical>: Remove.
245 <pre_expanded, addr_string, sals>: New fields.
246 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
247 (decode_line_full): Declare.
248 (decode_line_1): Update.
249 * linespec.c (struct address_entry, struct linespec_state, struct
250 collect_info): New types.
251 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
252 (eq_address_entry, maybe_add_address): New functions.
253 (total_number_of_methods): Remove.
254 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
256 (find_methods): Change arguments. Don't canonicalize input.
258 (add_matching_methods, add_constructors)
259 (build_canonical_line_spec): Remove.
260 (filter_results, convert_results_to_lsals): New functions.
261 (decode_line_2): Change arguments. Rewrite for new data
263 (decode_line_internal): Rename from decode_line_1. Change
264 arguments. Add cleanups. Update for new data structures.
265 (linespec_state_constructor, linespec_state_destructor)
266 (decode_line_full, decode_line_1): New functions.
267 (decode_indirect): Change arguments. Update.
268 (locate_first_half): Use skip_spaces.
269 (decode_objc): Change arguments. Update for new data structures.
271 (decode_compound): Change arguments. Add cleanups. Remove
272 fallback code, replace with error.
273 (struct decode_compound_collector): New type.
274 (collect_one_symbol): New function.
275 (lookup_prefix_sym): Change arguments. Update.
276 (compare_symbol_name, add_all_symbol_names_from_pspace)
277 (find_superclass_methods ): New functions.
278 (find_method): Rewrite.
279 (struct symtab_collector): New type.
280 (add_symtabs_to_list, collect_symtabs_from_filename): New
282 (symtabs_from_filename): Change API. Rename from
283 symtab_from_filename.
284 (collect_function_symbols): New function.
285 (find_function_symbols): Change API. Rename from
286 find_function_symbol. Rewrite.
287 (decode_all_digits): Change arguments. Rewrite.
288 (decode_dollar): Change arguments. Use decode_variable.
289 (decode_label): Change arguments. Rewrite.
290 (collect_symbols): New function.
291 (minsym_found): Change arguments. Rewrite.
292 (check_minsym, search_minsyms_for_name)
293 (add_matching_symbols_to_info): New function.
294 (decode_variable): Change arguments. Iterate over all symbols.
295 (symbol_found): Remove.
296 (symbol_to_sal): New function.
297 (init_linespec_result, destroy_linespec_result)
298 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
300 (decode_digits_list_mode, decode_digits_ordinary): New functions.
301 * dwarf2read.c (dw2_map_expand_apply): New function.
302 (dw2_map_symtabs_matching_filename): Rename from
303 dw2_lookup_symtab. Change arguments.
304 (dwarf2_gdb_index_functions): Update.
305 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
306 * defs.h (compare_strings): Declare.
307 * cli/cli-cmds.c (compare_strings): Move to utils.c.
308 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
310 (compare_symtabs, filter_sals): New functions.
311 * breakpoint.h (struct bp_location) <line_number, source_file>:
313 (struct breakpoint) <line_number, source_file>: Remove.
315 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
316 (momentary_breakpoint_from_master, add_location_to_breakpoint):
317 Update for changes to locations.
318 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
320 (create_breakpoint_sal): Add 'filter' argument.
321 (remove_sal, expand_line_sal_maybe): Remove.
322 (create_breakpoints_sal): Remove 'sals' argument. Handle
323 pre-expanded sals and the filter.
324 (parse_breakpoint_sals): Use decode_line_full.
325 (check_fast_tracepoint_sals): Use get_sal_arch.
326 (create_breakpoint): Create a linespec_sals. Update.
327 (break_range_command): Use decode_line_full. Update.
328 (until_break_command): Update.
329 (clear_command): Update match conditions for linespec.c changes.
330 Use DECODE_LINE_LIST_MODE.
331 (say_where): Update for changes to locations.
332 (bp_location_dtor): Free 'source_file'.
333 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
334 (update_static_tracepoint): Update for changes to locations.
335 (update_breakpoint_locations): Disable ranged breakpoint if too
336 many locations match. Update.
337 (addr_string_to_sals): Use decode_line_full. Resolve all sal
339 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
340 (decode_line_spec_1): Update. Change argument name to 'flags',
341 change interpretation.
342 * block.h (block_containing_function): Declare.
343 * block.c (block_containing_function): New function.
344 * skip.c (skip_function_command): Update.
345 (skip_re_set): Update.
346 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
347 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
350 2011-12-06 Tom Tromey <tromey@redhat.com>
352 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
353 breakpoint's pspace to be NULL.
354 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
355 * breakpoint.c (init_raw_breakpoint): Conditionally set
357 (init_breakpoint_sal): Don't set breakpoint's pspace.
358 (prepare_re_set_context): Conditionally switch program space.
359 (addr_string_to_sals): Check executing_startup on location's
362 2011-12-06 Tom Tromey <tromey@redhat.com>
364 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
365 * breakpoint.c (should_be_inserted): Explicitly check if program
366 space is executing startup.
367 (describe_other_breakpoints): Update.
368 (disable_breakpoints_before_startup): Change executing_startup
369 earlier. Remove loop.
370 (enable_breakpoints_after_startup): Likewise.
371 (init_breakpoint_sal): Don't use bp_startup_disabled.
372 (create_breakpoint): Don't use bp_startup_disabled.
373 (update_global_location_list): Use should_be_inserted.
374 (bkpt_re_set): Update.
376 2011-12-06 Tom Tromey <tromey@redhat.com>
378 * python/lib/gdb/command/pretty_printers.py
379 (InfoPrettyPrinter.invoke1): Remove extra double quote.
381 2011-12-06 Tom Tromey <tromey@redhat.com>
385 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
387 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
388 (S390_LAST_BREAK_REGNUM): Likewise.
389 (S390_SYSTEM_CALL_REGNUM): Likewise.
390 (S390_NUM_REGS): Update.
392 (s390_regmap_last_break): Add declaration.
393 (s390x_regmap_last_break): Likewise.
394 (s390_regmap_system_call): Likewise.
396 (tdesc_s390_linux32v1): Add declaration.
397 (tdesc_s390_linux32v2): Likewise.
398 (tdesc_s390_linux64v1): Likewise.
399 (tdesc_s390_linux64v2): Likewise.
400 (tdesc_s390x_linux64v1): Likewise.
401 (tdesc_s390x_linux64v2): Likewise.
403 * s390-tdep.c: Include new target description files
404 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
405 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
406 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
407 (s390_cannot_store_register): New function.
408 (s390_write_pc): Likewise.
409 (s390_dwarf_regmap): Add fields for new registers.
410 (s390_regmap_gregset): Likewise.
411 (s390x_regmap_gregset): Likewise.
412 (s390_regmap_fpregset): Likewise.
413 (s390_regmap_upper): Likewise.
414 (s390_regmap_last_break): New variable.
415 (s390x_regmap_last_break): Likewise.
416 (s390_regmap_system_call): Likewise.
417 (s390_last_break_regset): Likewise.
418 (s390x_last_break_regset): Likewise.
419 (s390_system_call_regset): Likewise.
420 (s390_upper_regset_sections): Rename to ...
421 (s390_linux64_regset_sections): ... this.
422 (s390_linux32_regset_sections): New variable.
423 (s390x_linux64_regset_sections): Likewise.
424 (s390_linux32v1_regset_sections): Likewise.
425 (s390_linux32v2_regset_sections): Likewise.
426 (s390_linux64v1_regset_sections): Likewise.
427 (s390_linux64v2_regset_sections): Likewise.
428 (s390x_linux64v1_regset_sections): Likewise.
429 (s390x_linux64v2_regset_sections): Likewise.
430 (s390_regset_from_core_section): Handle .reg-s390-last-break and
431 .reg-s390-system-call core file sections.
432 (s390_core_read_description): Check for presence of
433 .reg-s390-last-break and .reg-s390-system-call core file
434 sections and return appropriate target description.
435 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
436 "last_break" and "system_call" in target description. Install
437 appropriate gdbarch_core_regset_sections array.
438 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
439 (_initialize_s390_tdep): Initialize additional target descriptions.
441 * s390-nat.c: Include "elf/common.h".
442 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
443 (have_regset_last_break): New static variable.
444 (have_regset_system_call): Likewise.
445 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
446 (s390_native_collect): Likewise.
447 (fetch_regset, store_regset, check_regset): New functions.
448 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
449 and S390_SYSTEM_CALL_REGNUM.
450 (s390_linux_store_inferior_registers): Likewise.
451 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
452 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
454 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
455 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
456 (s390-linux32v1-expedite): Define.
457 (s390-linux32v2-expedite): Likewise.
458 (s390-linux64v1-expedite): Likewise.
459 (s390-linux64v2-expedite): Likewise.
460 (s390x-linux64v1-expedite): Likewise.
461 (s390x-linux64v2-expedite): Likewise.
463 * features/s390-linux32.xml: Add orig_r2 register.
464 * features/s390-linux64.xml: Likewise.
465 * features/s390x-linux64.xml: Likewise.
466 * features/s390-linux32v1.xml: New file.
467 * features/s390-linux32v2.xml: Likewise.
468 * features/s390-linux64v1.xml: Likewise.
469 * features/s390-linux64v2.xml: Likewise.
470 * features/s390x-linux64v1.xml: Likewise.
471 * features/s390x-linux64v2.xml: Likewise.
473 * features/s390-linux32.c: Regenerate.
474 * features/s390-linux64.c: Likewise.
475 * features/s390x-linux64.c: Likewise.
476 * features/s390-linux32v1.c: New generated file.
477 * features/s390-linux32v2.c: Likewise.
478 * features/s390-linux64v1.c: Likewise.
479 * features/s390-linux64v2.c: Likewise.
480 * features/s390x-linux64v1.c: Likewise.
481 * features/s390x-linux64v2.c: Likewise.
483 * regformats/s390-linux32.dat: Regenerate.
484 * regformats/s390-linux64.dat: Regenerate.
485 * regformats/s390x-linux64.dat: Regenerate.
486 * regformats/s390-linux32v1.dat: New generated file.
487 * regformats/s390-linux32v2.dat: Likewise.
488 * regformats/s390-linux64v1.dat: Likewise.
489 * regformats/s390-linux64v2.dat: Likewise.
490 * regformats/s390x-linux64v1.dat: Likewise.
491 * regformats/s390x-linux64v2.dat: Likewise.
493 2011-12-05 Pedro Alves <pedro@codesourcery.com>
495 * linux-nat.c (resume_stopped_resumed_lwps): Call
498 2011-12-05 Pedro Alves <pedro@codesourcery.com>
500 * breakpoint.c: Include record.h.
501 (breakpoints_always_inserted_mode): Return false when the record
504 2011-12-05 Pedro Alves <pedro@codesourcery.com>
506 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
507 Reinstate perror_with_name call on ptrace error. Remove #if 0.
508 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
509 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
511 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
513 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
516 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
518 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
520 2011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
522 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
525 2011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
527 Fix compilation --without-expat.
528 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
530 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
532 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
533 Jan Kratochvil <jan.kratochvil@redhat.com>
535 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
536 * features/library-list-svr4.dtd: New file.
537 * remote.c (PACKET_qXfer_libraries_svr4): New.
538 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
539 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
540 * solib-svr4.c (struct svr4_library_list): New.
541 [HAVE_LIBEXPAT]: Include xml-support.h.
542 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
543 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
544 [HAVE_LIBEXPAT] (svr4_library_list_children)
545 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
546 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
547 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
548 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
549 (svr4_read_so_list): Extend the corruption message by addresses.
550 (svr4_current_sos): New variable library_list, call
551 svr4_current_sos_via_xfer_libraries.
552 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
554 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
557 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
558 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
560 2011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
563 * dwarf2read.c (process_psymtab_comp_unit): Set
564 PSYMTABS_ADDRMAP_SUPPORTED.
565 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
566 validity. New field psymtabs_addrmap_supported.
567 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
568 psymtabs_addrmap_supported.
569 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
570 !PSYMTABS_ADDRMAP_SUPPORTED.
571 (dump_psymtab, maintenance_info_psymtabs): Print also
572 psymtabs_addrmap_supported.
574 2011-12-01 Doug Evans <dje@google.com>
576 * python/py-type.c (type_object_methods): Fix "array" doc string.
578 2011-12-01 Andrew Burgess <aburgess@broadcom.com>
580 * source.c (print_source_lines_base): Fix missing braces on else
581 clause leading to additional output.
583 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
585 * s390-nat.c (SUBOFF): Remove.
586 (s390_native_supply, s390_native_collect): New functions.
587 (supply_gregset, supply_fpregset): Use s390_native_supply.
588 (fill_gregset, fill_fpregset): Use s390_native_collect.
590 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
591 (s390_unwind_pseudo_register): New function.
592 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
593 registers instead of PC and CC.
594 (s390_backchain_frame_unwind_cache): Likewise.
595 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
597 (s390_trad_frame_prev_register): New function.
598 (s390_frame_prev_register): Use it.
599 (s390_sigtramp_frame_prev_register): Likewise.
600 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
601 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
602 special callback to unwind any pseudo.
604 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
605 * features/s390-core64.xml: Likewise.
606 * features/s390x-core64.xml: Likewise.
607 * features/s390-linux32.c: Regenerate.
608 * features/s390-linux64.c: Likewise.
609 * features/s390x-linux64.c: Likewise.
611 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
613 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
615 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
617 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
618 instruction. Add more diagnostic output.
620 2011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
622 * MAINTAINERS (Write After Approval): Add myself to the list.
624 2011-11-29 Sanjoy Das <sdas@igalia.com>
626 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
627 (jit_bfd_try_read_symtab): Fix comments.
629 2011-11-28 DJ Delorie <dj@redhat.com>
631 * NEWS: Mention RL78 simulator.
633 2011-11-28 Joel Brobecker <brobecker@adacore.com>
635 * symfile.h (struct quick_symbol_functions): Fix the documentation
636 of field map_matching_symbols, as symbols are sorted using
637 strcmp_iw_ordered, not strcmp_iw.
639 2011-11-28 Paul Hilfinger <hilfinger@adacore.com>
641 * symfile.h (struct quick_symbol_functions): Update the
642 documentation for field map_matching_symbols.
644 2011-11-28 Joel Brobecker <brobecker@adacore.com>
646 * ada-lang.c (compare_names): Fix wrong return value in case
647 string1 starts with the same contents as string2, followed
648 by an underscore that do not start a symbol name suffix.
650 2011-11-28 Phil Muldoon <pmuldoon@redhat.com>
655 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
656 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
657 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
659 * python/py-type.c (typy_strip_typedefs): Ditto.
660 (typy_legacy_template_argument): Ditto.
661 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
662 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
664 2011-11-27 Joel Brobecker <brobecker@acacore.com>
666 * remote.c (remote_get_tracepoint_status): Delete addrbuf
667 local variable. Avoid use of sprintf_vma.
669 2011-11-27 Sanjoy Das <sdas@igalia.com>
671 Fix regression in jit.exp.
672 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
673 (jit_register_code): Set the jit_objfile_data field to the correct
676 2011-11-25  Uros Bizjak  <ubizjak@gmail.com>
678 * alpha-tdep.c (br_opcode): New.
679 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
680 (alpha_deal_with_atomic_sequence): New function.
681 (alpha_gdbarch_init): Handle single stepping of atomic sequences
682 with alpha_deal_with_atomic_sequence.
684 2011-11-24 Tristan Gingold <gingold@adacore.com>
686 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
687 fields. Add oso_sym, end_sym and nbr_syms.
688 (macho_register_oso): Change interface.
689 (macho_symtab_add_minsym): New function.
690 (macho_symtab_read): Rewritten.
691 (get_archive_prefix_len): Remove trailing blanks.
692 (oso_el_compare_name): Add comment.
693 (struct macho_sym_hash_entry): New structure.
694 (macho_relocate_common_syms): Remove.
695 (macho_sym_hash_newfunc): New function.
696 (macho_resolve_oso_sym_with_minsym): Likewise.
697 (macho_add_oso_symfile): Rewritten.
698 (macho_symfile_read_all_oso): Remove trailing blanks.
699 Adjust code to free oso vector.
700 (macho_symfile_read): Likewise.
701 Move code to initialize minimal symbol
703 2011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
705 * mips-tdep.c (extended_offset): Fix formatting.
707 2011-11-23 Doug Evans <dje@google.com>
709 * dwarf2read.c (dw2_lookup_symtab): Add comment.
710 (dw2_expand_symtabs_with_filename): Ditto.
711 (dw2_expand_symtabs_matching): Ditto.
712 (dw2_map_symbol_filenames): Ditto.
714 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
716 * ada-lang.c (assign_aggregate): Minor reformatting.
718 2011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
720 * ada-lang.c (assign_aggregate): Remove declaration of local
721 variable `i' which is shadowing another variable with the same
722 name declared in the outer scope.
724 2011-11-23 Joel Brobecker <brobecker@adacore.com>
726 * ada-lang.c (get_base_type): Renames base_type. Adjust all
727 calls throughout this file.
729 2011-11-23 Joel Brobecker <brobecker@adacore.com>
731 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
734 2011-11-22 Tom Tromey <tromey@redhat.com>
737 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
738 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
739 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
740 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
741 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
742 (print_it_catch_syscall, print_it_catch_exec)
743 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
744 (bpstat_print): Add 'kind' argument. Handle
745 TARGET_WAITKIND_LOADED.
746 * infrun.c (normal_stop): Update for bpstat_print change. Don't
747 handle TARGET_WAITKIND_LOADED here.
748 * breakpoint.h (bpstat_print): Update.
750 2011-11-22 Tom Tromey <tromey@redhat.com>
752 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
754 2011-11-22 Tom Tromey <tromey@redhat.com>
756 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
757 Use static_assert to check the size of
758 async_reason_string_lookup.
759 * common/gdb_assert.h (static_assert): New macro.
761 2011-11-22 Alan Modra <amodra@gmail.com>
763 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
764 destination calculation. Don't expect >> to sign extend. Don't
765 add a break if branch lands inside the sequence anywhere.
767 2011-11-21 Keith Seitz <keiths@redhat.com>
769 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
770 -var-evaluate-expression of an enumeration and fix expected result.
771 * gdb.mi/mi2-varvdisplay.exp: Likewise.
773 2011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
775 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
776 the case where osdata->items is empty. Rename column names to a
777 canonical form to avoid problems with unusual column names.
779 2011-11-21 Yao Qi <yao@codesourcery.com>
781 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
783 2011-11-20 Stan Shebs <stan@codesourcery.com>
785 * NEWS: Mention tracepoint additions.
786 * breakpoint.h (struct tracepoint): New field traceframe_usage.
787 * breakpoint.c (print_one_breakpoint_location): Identify
788 tracepoints as such when reporting hit counts, report
790 (create_tracepoint_from_upload): Copy status info.
791 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
792 add fields user_name, notes, start_time, stop_time.
793 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
794 * tracepoint.c (trace_user): New global.
795 (trace_notes): New global.
796 (trace_stop_notes): New global.
797 (start_tracing): Add argument and trace note handling.
798 (stop_tracing): Ditto.
799 (trace_start_command): Add notes argument.
800 (trace_stop_command): Ditto.
801 (trace_status_command): Report additional status info.
802 (trace_status_mi): Similarly.
803 (trace_save): Update, record tracepoint status.
804 (set_disconnected_tracing): Call target method directly.
805 (send_disconnected_tracing_value): Remove.
806 (set_trace_user): New function.
807 (set_trace_notes): New function.
808 (set_trace_stop_notes): New function.
809 (parse_trace_status): Handle additional status.
810 (parse_tracepoint_status): New function.
811 (parse_tracepoint_definition): Call it.
812 (tfile_get_tracepoint_status): New function.
813 (init_tfile_ops): Use it.
814 (_initialize_tracepoint): Add new setshows.
815 * target.h (struct target_ops): New methods to_get_tracepoint_status
816 and to_set_trace_notes.
817 (target_get_tracepoint_status): New macro.
818 (target_set_trace_notes): New macro.
819 * target.c (update_current_target): Add new methods.
820 * remote.c (remote_get_tracepoint_status): New function.
821 (remote_set_trace_notes): New function.
822 (init_remote_ops): Add them.
823 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
824 (mi_cmd_trace_stop): Ditto.
826 2011-11-20 Sanjoy Das <sdas@igalia.com>
828 * jit.c: Include regcache.h.
829 (jit_gdbarch_data, jit_frame_unwind): New static variables.
830 (jit_unwind_reg_set_impl, free_reg_value_impl)
831 (jit_unwind_reg_get_impl, jit_frame_sniffer)
832 (jit_frame_unwind_stop_reason, jit_frame_this_id)
833 (jit_frame_prev_register, jit_dealloc_cache)
834 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
835 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
836 jit_prepend_unwinder.
837 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
839 2011-11-20 Sanjoy Das <sdas@igalia.com>
841 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
842 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
843 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
844 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
845 (finalize_symtab, jit_object_close_impl)
846 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
847 (free_objfile_data): New functions.
848 (_initialize_jit): Register jit_objfile_data with a proper cleanup
851 2011-11-20 Sanjoy Das <sdas@igalia.com>
853 * jit.c: Include gdb-dlfcn.h.
854 (loaded_jit_reader, reader_init_fn_sym): New static variables.
855 (jit_reader_load, jit_reader_load_command)
856 (jit_reader_unload_command): New functions.
857 (_initialize_jit): Add commands "jit-reader-load" and
860 2011-11-20 Sanjoy Das <sdas@igalia.com>
862 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
863 * config.in: Add new #define HAVE_LIBDL.
864 * configure.ac: Add check for -ldl.
865 * configure: Re-generated by autoconf.
866 * gdb-dlfcn.c: New file.
867 * gdb-dlfcn.h: New file.
869 2011-11-20 Sanjoy Das <sdas@igalia.com>
871 * config.in: Add new #defines: JIT_READER_DIR and
872 JIT_READER_DIR_RELOCATABLE.
873 * configure.ac: New GDB directory entry for jit-reader-dir.
874 * configure: Re-generated by autoconf.
875 * jit.c: New static variable: const char *jit_reader_dir.
876 (_initialize_jit): Relocate jit_reader_dir.
878 2011-11-20 Sanjoy Das <sdas@igalia.com>
880 * Makefile.in: Add jit-reader.h as a header. Have it installed in
882 * configure.ac: Generate a correct value for TARGET_PTR for
883 jit-reader.h. Tell configure to generate jit-reader.h from
885 * configure: Re-generated by autoconf.
886 * jit-reader.in: New file.
887 * jit.c: Include jit-reader.h.
889 2011-11-20 Sanjoy Das <sdas@igalia.com>
891 * MAINTAINERS (Write After Approval): Add myself to the list.
893 2011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
895 * findvar.c (read_frame_register_value): Respect value_offset
896 of the register value. Remove big-endian special case.
898 2011-11-18 Tom Tromey <tromey@redhat.com>
901 * remote.c (putpkt_for_catch_errors): New function.
902 (remote_kill): Use it.
904 2011-11-18 Yao Qi <yao@codesourcery.com>
906 * breakpoint.c (create_breakpoint): Produce query message according to
908 Allocate tracepoint per correct type.
909 Don't check SALs for pending fast tracepoints.
910 * tracepoint.c (process_tracepoint_on_disconnect): New.
911 (disconnect_tracing): Call process_tracepoint_on_disconnect.
913 2011-11-18 Yao Qi <yao@codesourcery.com>
915 * breakpoint.c (install_breakpoint): Add one more parameter so that
916 update_global_location_list is called conditionally.
917 (create_fork_vfork_event_catchpoint): Update.
918 (create_syscall_event_catchpoint): Update.
919 (create_breakpoint_sal): Update.
920 (create_breakpoint_sal): Update. Call do_cleanups before
922 * ada-lang.c (create_ada_exception_catchpoint): Update.
923 * breakpoint.h (install_breakpoint): Update declaration.
925 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
927 * spu-tdep.c (spu_return_value): Fix handling of
928 TYPE_CALLING_CONVENTION annotation.
930 2011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
932 * skip.c (skip_function_command): Work around uninitialized
935 2011-11-16 David S. Miller <davem@davemloft.net>
937 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
938 'tv_usec' to long for printf since these fields have a type which
941 2011-11-15 Doug Evans <dje@google.com>
943 * buildsym.c (add_symbol_to_list): Delete outdated comment.
945 2011-11-15 Paul Koning <paul_koning@dell.com>
947 * python/py-type.c (typy_get_composite): New function.
948 (typy_nonzero): New function.
949 (typy_values): Rename from typy_fields.
950 (typy_fields): New function.
951 (typy_length): Raise exception if not struct, union, or enum type.
952 (typy_getitem): Ditto.
953 (typy_has_key): Ditto.
954 (typy_make_iter): Ditto.
956 2011-11-15 Doug Evans <dje@google.com>
958 * NEWS: Mention new parameter basenames-may-differ.
959 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
960 ! basenames_may_differ.
961 * psymtab.c (lookup_partial_symtab): Ditto.
962 * symtab.c (lookup_symtab): Ditto.
963 (basenames_may_differ): New global.
964 (_initialize_symtab): New parameter basenames-may-differ.
965 * symtab.h (basenames_may_differ): Declare.
967 2011-11-15 Pedro Alves <pedro@codesourcery.com>
968 Luis Machado <lgustavo@codesourcery.com>
970 * auxv.c: Include observer.h.
971 (auxv_inferior_data_cleanup): New.
972 (invalidate_auxv_cache_inf): New.
973 (invalidate_auxv_cache): New.
974 (get_auxv_inferior_data): New.
975 (auxv_inferior_data): New static global.
976 (auxv_info): New structure.
977 (target_auxv_search): Use get_auxv_inferior_data instead of
978 target_read_alloc and don't free cached buffers.
979 (fprint_target_auxv): Likewise
980 (_initialize_auxv): Register per-inferior auxv cache and register
981 observers to invalidate auxv cache when needed.
983 2011-11-14 Doug Evans <dje@google.com>
985 Make "!" an alias for "shell".
987 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
988 adding "!" command, always add it.
989 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
990 command of length one.
992 2011-11-14 Stan Shebs <stan@codesourcery.com>
993 Kwok Cheung Yeung <kcy@codesourcery.com>
995 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
996 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
997 the minimum instruction size for fast tracepoints.
998 * target.h (struct target_ops): Add new method
999 to_get_min_fast_tracepoint_insn_len.
1000 (target_get_min_fast_tracepoint_insn_len): New.
1001 * target.c (update_current_target): Set up new target operation.
1002 * remote.c (remote_write_bytes_aux): Fix typo.
1003 (remote_get_min_fast_tracepoint_insn_len): New.
1004 (init_remote_ops): Initialize new field.
1006 2011-11-14 Tom Tromey <tromey@redhat.com>
1008 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1009 (encode_actions): Likewise.
1011 2011-11-14 Yao Qi <yao@codesourcery.com>
1013 * remote.c (struct remote_state): <install_in_trace> new field.
1014 (PACKET_InstallInTrace): New enum value.
1015 (remote_install_in_trace_feature): Support InstallInTrace.
1016 (remote_supports_install_in_trace): Likewise.
1017 (remote_protocol_features): Likewise.
1018 (_initialize_remote): Likewise.
1019 (remote_can_download_tracepoint): New.
1020 * target.h (struct target): New field
1021 `to_can_download_tracepoint'.
1022 (target_can_download_tracepoint): New macro.
1023 * target.c (update_current_target): Update.
1024 * breakpoint.h (struct bp_location): Add comment on field
1026 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1028 (remove_breakpoints): Don't remove tracepoints.
1029 (tracepoint_locations_match ): New.
1030 (breakpoint_locations_match): Call it.
1031 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1032 (download_tracepoint_locations): New.
1033 (update_global_location_list): Call it.
1034 * tracepoint.c (find_matching_tracepoint): Delete.
1035 (find_matching_tracepoint_location): Renamed from
1036 find_matching_tracepoint. Return bp_location rather than
1038 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1039 tracepoint is found.
1041 2011-11-14 Yao Qi <yao@codesourcery.com>
1043 * target.h (struct target): <to_download_tracepoint> Change type
1044 of parameter from tracepoint to bp_location.
1045 * target.c (update_current_target): Update.
1046 * tracepoint.c (start_tracing): Update.
1047 * remote.c (remote_download_tracepoint): Remove loop for each location
1050 2011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1052 * i386-nat.c (i386_insert_hw_breakpoint): Call
1053 i386_update_inferior_debug_regs.
1054 (i386_remove_hw_breakpoint): Likewise.
1056 2011-11-14 Yao Qi <yao@codesourcery.com>
1058 * breakpoint.c (init_raw_breakpoint): Call
1059 add_location_to_breakpoint to replace duplicated code.
1060 (add_location_to_breakpoint): Adjust the breakpoint's
1061 address prior to allocating a location.
1063 2011-11-12 Matt Rice <ratmice@gmail.com>
1065 * macrocmd.c (macro_no_macro_info): New function.
1066 (macro_expand_command): Use macro_no_macro_info.
1067 (macro_expand_once_command): Ditto.
1068 (info_macro_command): Add argument processing,
1069 move info_definitions_command here.
1070 (_initialize_macrocmd): Remove info definitions command.
1071 Add arguments to info macro help text.
1072 * NEWS: Replace info definitions command with new info macro options.
1074 2011-11-11 Keith Seitz <keiths@redhat.com>
1077 * linespec.c (locate_first_half): Keep ':' if it looks
1078 like it could be part of a Windows path starting with
1081 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1083 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1084 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1086 2011-11-10 Pedro Alves <pedro@codesourcery.com>
1088 * target.c (target_waitstatus_to_string): Handle
1089 TARGET_WAITKIND_NO_RESUMED.
1091 2011-11-10 Doug Evans <dje@google.com>
1093 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1095 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1096 (map_partial_symbol_filenames): Ditto. All callers updated.
1097 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1098 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1099 parameter need_fullname.
1101 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1102 * source.c (symtab_to_fullname): Ditto.
1104 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1105 * gdb-demangle.h: ... here. New file.
1106 * demangle.c: #include "gdb-demangle.h".
1107 (_initialize_demangler): Use initialize_file_ftype for prototype.
1108 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1109 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1111 * utils.c: Update. #include "gdb-demangle.h".
1112 * symtab.h (asm_demangle): Delete.
1113 (demangle): Move declaration next to use.
1114 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1115 * dwarf2read.c: #include "gdb-demangle.h".
1116 * gnu-v2-abi.c: Ditto.
1117 * jv-typeprint.c: Ditto.
1118 * mdebugread.c: Ditto.
1119 * p-typeprint.c: Ditto.
1120 * stabsread.c: Ditto.
1121 * printcmd.c: Ditto.
1122 (asm_demangle): Delete declaration.
1123 * tui/tui-stack.c: #include "gdb-demangle.h".
1125 * python/py-type.c (typy_fields_items): Call check_typedef.
1127 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1129 * findvar.c (read_frame_register_value): Read the correct bytes
1130 from registers on big-endian architectures.
1132 2011-11-10 Tom Tromey <tromey@redhat.com>
1134 * procfs.c (load_syscalls): Make a cleanup.
1135 (open_procinfo_files): fd==0 is ok.
1137 2011-11-10 Joel Brobecker <brobecker@adacore.com>
1139 * procfs.c (iterate_over_mappings): Call do_cleanups before
1142 2011-11-09 Doug Evans <dje@google.com>
1144 * gdbtypes.c (check_typedef): Document that this function can
1147 2011-11-09 Tom Tromey <tromey@redhat.com>
1150 * valops.c (value_full_object): Return early if real type is
1151 smaller than the enclosing type.
1153 2011-11-08 Yao Qi <yao@codesourcery.com>
1155 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1157 2011-11-08 Meador Inge <meadori@codesourcery.com>
1159 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1160 register when the frame can't be determined.
1161 * arm-tdep.c (arm_analyze_prologue): Ditto.
1163 2011-11-07 Stan Shebs <stan@codesourcery.com>
1165 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1167 2011-11-07 Joel Brobecker <brobecker@adacore.com>
1169 * infrun.c (handle_inferior_event): Minor reformatting.
1171 2011-11-05 Doug Evans <dje@google.com>
1173 * source.c (forget_cached_source_info_for_objfile): Move call to
1174 objfile->sf->qf->forget_cached_source_info outside of
1175 ALL_OBJFILE_SYMTABS loop.
1176 (forget_cached_source_info): Delete unused variable `s'.
1178 2011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1180 * i386-nat.c (dr_ref_count): Remove unused variable.
1182 2011-11-05 Doug Evans <dje@google.com>
1184 * main.c (captured_main): Set lim_at_start before calling
1185 make_command_stats_cleanup.
1187 2011-11-04 Doug Evans <dje@google.com>
1189 * utils.c: #include "timeval-utils.h".
1190 (cmd_stats): Rename start_time to start_cpu_time.
1191 New member start_wall_time.
1192 (report_command_stats): Report wall time.
1193 (make_command_stats_cleanup): Record start wall time.
1195 2011-11-04 Tom Tromey <tromey@redhat.com>
1197 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1199 2011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1201 * coff-pe-read.c: Include defs.h before bfd.h.
1203 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1207 * python/python.c (python_run_simple_file): Expand tilde in path.
1209 2011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1213 * python/py-type.c (typy_lookup_type): Do not return a type in
1214 an exception handler.
1216 2011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1217 Eli Zaretskii <eliz@gnu.org>
1219 * linux-nat.c (_initialize_linux_nat): Improve help
1220 for `info proc stat', `info proc status', `info proc cwd',
1221 `info proc cmdline' and `info proc exe'.
1223 2011-11-02 Stan Shebs <stan@codesourcery.com>
1225 String collection for tracepoints.
1226 * NEWS: Mention string collection.
1227 * common/ax.def (tracenz): New bytecode.
1228 * ax-gdb.h (trace_string_kludge): Declare.
1229 * ax-gdb.c: Include valprint.h and c-lang.h.
1230 (trace_string_kludge): New global.
1231 (gen_traced_pop): Add string case.
1232 (agent_command): Add string case.
1233 * tracepoint.h (decode_agent_options): Declare.
1234 * tracepoint.c: Include cli-utils.h.
1235 (decode_agent_options): New function.
1236 (validate_actionline): Call it.
1237 (encode_actions_1): Ditto.
1238 * target.h (struct target_ops): New method to_supports_string_tracing.
1239 (target_supports_string_tracing): New macro.
1240 * target.c (update_current_target): Add to_supports_string_tracing.
1241 * remote.c (struct remote_state): New field string_tracing.
1242 (remote_string_tracing_feature): New function.
1243 (remote_protocol_features): New feature tracenz.
1244 (remote_supports_string_tracing): New function.
1245 (init_remote_ops): Set to_supports_string_tracing.
1247 2011-11-02 Pedro Alves <pedro@codesourcery.com>
1248 Jan Kratochvil <jan.kratochvil@redhat.com>
1250 * linux-nat.c: Include cli/cli-utils.h.
1251 (enum info_proc_what): New.
1252 (linux_nat_info_proc_cmd): Rename to ...
1253 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1254 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1255 status_f and stat_f from WHAT. Throw error on extra parameters.
1256 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1257 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1258 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1259 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1260 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1261 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1262 `info proc cmdline', `info proc exe' and `info proc all' as real
1263 subcommands of `info proc'.
1265 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1267 * Makefile.in: (SFILES): Add skip.c.
1268 (HFILES_NO_SRCDIR): Add skip.h.
1269 (COMMON_OBS): Add skip.o.
1270 * skip.h, skip.c: New.
1271 * breakpoint.h (set_default_breakpoint): Remove.
1272 (get_sal_arch): Declare.
1273 * breakpoint.c: Remove default_breakpoint_valid,
1274 default_breakpoint_address, default_breakpoint_symtab,
1275 default_breakpoint_line, default_breakpoint_pspace variables.
1276 (get_sal_arch): Make public.
1277 (set_default_breakpoint): Remove.
1278 (parse_breakpoint_sals, create_breakpoint, clear_command,
1279 decode_line_spec_1): Remove uses of default_breakpoint variables;
1280 replaced with function calls into stack.c.
1281 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1282 * cli/cli-cmds.c: Add skiplist.
1283 (init_cmd_lists): Initialize skiplist.
1284 (init_cli_cmds): Fix comment (classes of commands appear in
1285 alphabetical order).
1286 * infrun.c (handle_inferior_event): Add check that we don't step into
1287 a function whose pc is marked for skip.
1288 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1289 last_displayed_addr, last_displayed_symtab, last_displayed_line
1291 (set_last_displayed_sal): New static function.
1292 (print_frame_info): Switch call to set_default_breakpoint to call to
1293 set_last_displayed_sal.
1294 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1295 get_last_displayed_pspace, get_last_displayed_addr,
1296 get_last_displayed_symtab, get_last_displayed_line,
1297 get_last_displayed_sal): New public functions.
1298 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1299 get_last_displayed_pspace, get_last_displayed_addr,
1300 get_last_displayed_symtab, get_last_displayed_line,
1301 get_last_displayed_sal): Declare.
1303 2011-11-01 Justin Lebar <justin.lebar@gmail.com>
1305 * MAINTAINERS (Write After Approval): Add myself to the list.
1307 2011-10-29 Yao Qi <yao@codesourcery.com>
1309 * infcmd.c (disconnect_command): Call disconnect_tracing.
1311 2011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1314 * symtab.c (skip_prologue_sal): Code reformatting.
1316 2011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1319 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1320 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1323 2011-10-28 Pedro Alves <pedro@codesourcery.com>
1325 * linux-nat.c (linux_nat_filter_event): Remove `options'
1326 parameter, and dead code that used it. If we're handling a
1327 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1328 in our lwp list, re-add it.
1329 (check_zombie_leaders): New.
1330 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1331 wait for children with WNOHANG, and always wait for all children.
1332 Don't check for no resumed children upfront. Simplify wait loop.
1333 Check for zombie thread group leaders after handling all wait
1334 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1335 unwaited-for children left.
1336 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1337 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1338 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1339 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1341 2011-10-28 Sterling Augustine <saugustine@google.com>
1343 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1344 * symtab.c (free_completion_list): New function.
1345 (do_free_completion_list): Likewise.
1346 (default_make_symbol_completion_list_break_on): New variable
1347 back_to. Call make_cleanup and discard_cleanups.
1348 (make_source_files_completion_list): Likewise.
1350 2011-10-28 Paul Koning <paul_koning@dell.com>
1352 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1353 * NEWS: Mention deep_items.
1355 2011-10-28 Alen Skondro <askondro@gmail.com>
1357 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
1360 2011-10-27 Meador Inge <meadori@codesourcery.com>
1362 * MAINTAINERS (Write After Approval): Add myself to the list.
1364 2011-10-27 Joel Brobecker <brobecker@adacore.com>
1366 * value.h (read_frame_register_value): Add declaration.
1367 * findvar.c (read_frame_register_value): New function.
1368 (value_from_register): Use read_frame_register_value
1369 instead of get_frame_register_value + value_contents_copy
1370 to get value contents.
1372 2011-10-27 Doug Evans <dje@google.com>
1374 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1375 source_script_from_stream if it may have been found on the search path.
1376 * python/py-auto-load.c (source_section_scripts): Pass full path to
1377 source_python_script_for_objfile.
1378 * python/python.c (source_python_script): Delete stream parameter.
1379 All callers updated.
1380 (source_python_script_for_objfile): Ditto.
1381 * python/python-internal.h (source_python_script_for_objfile): Update.
1382 * python/python.h (source_python_script): Update.
1384 2011-10-27 Tom Tromey <tromey@redhat.com>
1386 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1387 (ada_sals_for_line): Remove declarations.
1389 2011-10-27 Kevin Pouget <kevin.pouget@st.com>
1391 Move unwind reasons to an external .def file
1392 * frame.c (frame_stop_reason_string): Rewrite using
1393 unwind_stop_reasons.def.
1394 * frame.h (enum unwind_stop_reason): Likewise.
1395 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1396 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1397 constants for bound-checking.
1398 * unwind_stop_reasons.def: New file.
1399 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1400 instead of a distinct value.
1402 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1406 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1407 (convert_values_to_python): Return on Python tuple allocation
1408 failure. Return NULL on value conversion error.
1410 2011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1412 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1413 (bppy_set_task): Ditto.
1414 (bppy_delete_breakpoint): Ditto.
1415 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1416 (gdbpy_lookup_global_symbol): Ditto.
1417 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1418 * python/py-frame.c (frapy_is_valid): Ditto.
1419 (frame_info_to_frame_object): Ditto.
1420 * python/py-type.c (typy_lookup_type): Ditto.
1421 (typy_getitem): Ditto.
1422 (typy_has_key): Ditto.
1423 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1425 2011-10-26 Joel Brobecker <brobecker@adacore.com>
1427 * gdbarch.h: Regenerate.
1429 2011-10-26 Meador Inge <meadori@codesourcery.com>
1431 * gdbarch.sh (function_list): Use 'pstring' when printing
1433 * gdbarch.c: Regenerate.
1435 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1437 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1438 and frame caches if PTID refers to all threads of a process.
1440 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1442 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1443 to create_breakpoint.
1445 2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1447 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1448 (ppc_sysv_abi_push_dummy_call): Use it.
1449 (do_ppc_sysv_return_value): Likewise.
1450 (ppc64_sysv_abi_push_dummy_call): Likewise.
1451 (ppc64_sysv_abi_return_value): Likewise.
1453 2011-10-26 Paul Koning <paul_koning@dell.com>
1455 * python/lib/gdb/types.py (deepitems): New function.
1457 2011-10-25 Paul Koning <paul_koning@dell.com>
1461 * python/py-value.c (value_to_value_object): Remove fetching of
1462 the value if it was lazy.
1463 (valpy_get_is_lazy): New function.
1464 (valpy_fetch_lazy): New function.
1466 2011-10-24 Joel Brobecker <brobecker@adacore.com>
1468 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1469 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1471 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1473 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1474 event, in non-stop, if not stopping, make sure the new lwp has
1475 last_resume_kind set to resume_continue. Assert that when we're
1476 resuming the new lwp, its last_resume_kind is resume_continue.
1478 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1480 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1481 already set when marking the event thread as not executing in
1484 2011-10-24 Pedro Alves <pedro@codesourcery.com>
1486 * infrun.c (handle_inferior_event): Add debug output for
1487 TARGET_WAITKIND_NO_HISTORY.
1489 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1491 * NEWS: Move set/show extended-prompt to "New Options". Expand
1492 description. Fix typos.
1494 2011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1498 * python/py-param.c (call_doc_function): Correctly deference on
1501 2011-10-21 Joel Brobecker <brobecker@adacore.com>
1503 * ada-tasks.c (print_ada_task_info): Fix computation of
1504 number of tasks displayed in command output.
1506 2011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1507 Ulrich Weigand <uweigand@de.ibm.com>
1509 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1510 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1511 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1512 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1515 2011-10-20 Cary Coutant <ccoutant@google.com>
1517 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1519 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1520 flag. Adjust all callers.
1521 (process_psymtab_comp_unit): Remove adjustment for type section.
1523 2011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1525 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1526 arguments by adding OBJFILE. Instead of getting objfile from
1527 symbol's symtab, use new argument OBJFILE.
1528 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1529 arguments by adding OBJFILE.
1530 * gdb/dwarf2read.c (new_symbol_full): Change call to
1531 cp_scan_for_anonymous_namespaces to match new signature.
1532 * gdb/stabsread.c (define_symbol): Change call to
1533 cp_scan_for_anonymous_namespaces to match new signature.
1535 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1540 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1542 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1543 leak. Delete unused variables.
1545 2011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1549 * python/py-frame.c (frapy_read_var): Use const struct *block.
1550 * python/py-type.c (typy_lookup_typename): Likewise.
1551 (typy_lookup_type): Likewise.
1552 (typy_legacy_template_argument): Likewise.
1553 (typy_template_argument): Likewise.
1554 (gdbpy_lookup_type): Likewise.
1555 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1556 * python/py-block.c (blpy_block_object): Likewise.
1557 (blpy_iter): Likewise.
1558 (blpy_get_start): Likewise.
1559 (blpy_get_end): Likewise.
1560 (blpy_get_function): Likewise.
1561 (blpy_get_superblock): Likewise.
1562 (set_block): Likewise.
1563 (block_to_block_object): Likewise.
1564 (block_object_to_block): Likewise.
1565 (blpy_is_valid): Likewise.
1566 (blpy_get_global_block): New function.
1567 (blpy_get_static_block): New function.
1568 (blpy_is_global): New function.
1569 (blpy_is_static): New function.
1570 * blockframe.c (block_innermost_frame): Likewise.
1571 * valops.c (value_of_variable): Likewise.
1572 * frame.h: Update prototypes.
1573 * python/python-internal.h: Likewise.
1574 * value.h: Likewise.
1576 2011-10-19 Cary Coutant <ccoutant@google.com>
1578 * dwarf2read.c (create_debug_types_hash_table): Fix size of
1581 2011-10-19 Cary Coutant <ccoutant@google.com>
1583 * dwarf2read.c (peek_abbrev_code): New function.
1584 (dw2_get_file_names): Check for dummy compilation units.
1585 (create_debug_types_hash_table): Likewise.
1586 (process_psymtab_comp_unit): Likewise.
1587 (load_partial_comp_unit): Likewise.
1588 (load_full_comp_unit): Likewise.
1590 2011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
1592 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
1593 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
1594 pt_phdr if PT_PHDR was found.
1596 2011-10-17 Joost van der Sluis <joost@cnoc.nl>
1598 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
1599 type or "<unnamed type"> when there is no name assigned.
1600 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
1601 avoid a sigint when no name is assigned.
1603 2011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1606 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1607 * dwarf2expr.c (ctx_no_read_reg): New function.
1608 * dwarf2expr.h (ctx_no_read_reg): New declaration.
1609 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
1610 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
1611 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
1613 2011-10-16 Doug Evans <dje@google.com>
1615 * NEWS: Document python gdb.printing.register_pretty_printer's new
1616 `replace' parameter.
1618 2011-10-14 Keith Seitz <keiths@redhat.com>
1621 * eval.c (evaluate_subexp_standard): Do not construct
1622 an array of types; pass the value array directly to
1623 find_overload_match.
1624 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
1625 (rank_function): Take an array of values instead of types.
1626 (rank_one_type): Add struct value * parameter.
1627 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
1628 (rank_function): For each argument, pass the argument's
1629 value to rank_one_type.
1630 (rank_one_type): Add VALUE parameter.
1631 If the parameter type is a pointer and the argument type
1632 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
1634 Update all calls to rank_one_type, passing NULL for new
1636 * valarith.c (value_user_defined_cpp_op): Do not construct
1637 an array of types; pass the value array directly to
1638 find_overload_match.
1639 * valops.c (find_overload_method_list): Take an array of
1640 values instead of types.
1641 Save the type of OBJP for later use.
1642 Update calls to find_oload_champ, and find_oload_champ_namespace.
1643 (find_oload_champ_namespace): Take an array of values instead
1645 (find_oload_champ_namespace_loop): Likewise.
1646 (find_oload_champ): Likewise.
1647 (classify_oload_match): Inspect all arguments
1648 until INCOMPATIBLE is found. Return the worst badness found
1650 (compare_parameters): Update call to rank_one_type.
1651 * value.h (find_overload_match): Take an array of values instead
1654 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1656 Drop lazy lm_info reading.
1657 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
1658 l_addr_inferior, l_ld, l_next, l_prev and l_name.
1659 (lm_info_read): New function.
1660 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
1661 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
1662 lm_dynamic_from_link_map.
1663 (lm_next, lm_prev, lm_name): Remove.
1664 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
1665 initialization incl. read_memory. No longer use lm_name.
1666 (svr4_free_so): Drop lm_info->lm freeing.
1667 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
1668 explicit lm_addr and lm initialization.
1669 (svr4_read_so_list): Use lm_info_read, drop the initailization of
1670 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
1673 2011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1674 Paul Pluzhnikov <ppluzhnikov@google.com>
1676 * defs.h (struct so_list): New forward declaration.
1677 (make_cleanup_free_so): New declaration.
1678 * solib-svr4.c (ignore_first_link_map_entry): Remove.
1679 (svr4_free_so): Move the function here from downwards. Handle NULL
1681 (svr4_free_library_list): New.
1682 (svr4_read_so_list): New, moved here code from svr4_current_sos.
1683 Use more cleanups. Use new parameter ignore_first instead of
1684 ignore_first_link_map_entry.
1685 (svr4_current_sos): New variable ignore_first, initialize it. New
1686 variable back_to, use it for svr4_free_library_list protection.
1687 (svr4_free_so): Remove - move upwards.
1688 * utils.c: Include solist.h.
1689 (do_free_so, make_cleanup_free_so): New functions.
1691 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1693 Fix internal error regression.
1694 * value.c (value_primitive_field): Handle value_optimized_out. Move
1695 packed bitfields comment.
1697 2011-10-13 Tom Tromey <tromey@redhat.com>
1699 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
1702 2011-10-13 Tom Tromey <tromey@redhat.com>
1704 * python/py-type.c (typy_has_key): Make 'field' const.
1706 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1708 * remote.c (remote_save_trace_data): Invert comparison.
1710 2011-10-13 Luis Machado <lgustavo@codesourcery.com>
1712 * tracepoint.c (trace_save_command): Use filename instead of
1715 2011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1717 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
1720 2011-10-13 Yao Qi <yao@codesourcery.com>
1723 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
1724 whether insn is a 32-bit Thumb-2 instruction.
1725 (thumb_in_function_epilogue_p): Likewise.
1726 (thumb_get_next_pc_raw): Likewise.
1727 (arm_breakpoint_from_pc): Likewise.
1729 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1731 Fix empty DWARF expressions DATA vs. SIZE conditionals.
1732 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
1733 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
1734 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
1735 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
1737 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
1739 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
1740 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
1741 clear DATA on zero SIZE.
1743 2011-10-12 Doug Evans <dje@google.com>
1745 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
1746 header->first_die_offset here. All callers updated.
1748 2011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1750 Fix compatibility with texinfo versions older than 4.12.
1751 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
1752 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
1753 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
1754 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
1755 * configure: Regenerate.
1756 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
1757 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
1758 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
1760 2011-10-12 Gary Benson <gbenson@redhat.com>
1762 * breakpoint.h (pc_at_non_inline_function): Declare.
1763 * breakpoint.c (is_non_inline_function,
1764 pc_at_non_inline_function): New functions.
1765 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
1766 if the stop is at a location where functions cannot be inlined.
1768 2011-10-12 Pedro Alves <pedro@codesourcery.com>
1770 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
1771 the core wanted them stopped, or if they now have a pending event
1773 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
1774 down to stop_and_resume_callback.
1775 (linux_nat_wait_1): Always clear `options' when retrying. Handle
1776 having new pending events after calling linux_nat_filter_event.
1778 2011-10-11 Sterling Augustine <saugustine@google.com>
1780 * dwarf2read.c: Undo inadvertent changes in previous commit.
1782 2011-10-11 Sterling Augustine <saugustine@google.com>
1784 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
1787 2011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
1789 * symfile.c (separate_debug_file_exists): Fix condition.
1791 2011-10-11 David S. Miller <davem@davemloft.net>
1793 * regcache.c (regcache_restore): Do not write unavailable regs, mark
1795 * regcache.h (regcache_restore): Remove declaration.
1797 * gdbarch.sh: New field 'long_long_align_bit'.
1798 * gdbarch.c, gdbarch.h: Regenerate.
1799 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
1800 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
1802 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1804 Revert this part of:
1805 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1806 Support @entry in input expressions.
1807 * c-exp.y (ENTRY, unknown_cpp_name): New.
1808 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1809 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1810 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1811 (name_not_typename: ENTRY): New.
1812 (yylex): Recognize ENTRY.
1814 Reimplement @entry in input expressions.
1815 * c-exp.y (ENTRY): New.
1816 (variable: name_not_typename ENTRY): New.
1817 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
1819 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1821 * linux-nat.c (linux_handle_extended_wait): Always dump both the
1822 parent and child's pids as soon as we detect a clone event.
1823 Adjust another debug message.
1825 2011-10-11 Pedro Alves <pedro@codesourcery.com>
1827 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
1828 not zombie instead of reading the whole file.
1830 2011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1832 Fix separate debuginfo warning with "remote:" access.
1833 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
1834 * symfile.c (get_file_crc): New function with the code moved from ...
1835 (separate_debug_file_exists): ... this function, specifically variables
1836 buffer and count. New variable verified_as_different, set it. Remove
1837 file_crc initialization. Verify also if both files are not the same
1838 manually, if needed.
1840 2011-10-11 Yao Qi <yao@codesourcery.com>
1842 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
1845 2011-10-10 Doug Evans <dje@google.com>
1847 * linux-thread-db.c (thread_db_new_objfile): Only try to load
1848 libthread_db when we load libpthread or the main symbol file.
1849 (thread_db_inferior_created): New function.
1850 (_initialize_thread_db): Attach inferior_created observer.
1851 * linux-nat.c (linux_child_post_attach): Remove call to
1852 check_for_thread_db.
1853 (linux_child_post_startup_inferior): Ditto.
1854 * objfiles.h (OBJF_MAINLINE): Define.
1855 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
1856 allocate_objfile when appropriate.
1858 2011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
1861 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
1862 Remove unused variables.
1863 (get_linux_version): Remove function.
1864 (_initialize_arm_linux_nat): Do not call it.
1866 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1868 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
1869 new clone lwp if the core asked it to stop. Don't pass on
1870 unexpected signals to the new clone; leave them pending instead.
1872 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1874 * linux-nat.c (resume_lwp): Remove redundant debug output.
1876 2011-10-10 Pedro Alves <pedro@codesourcery.com>
1878 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
1879 last_resume_kind before clearing it, and use the copy instead to
1880 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
1881 resume_clear_callback in the non-stop path too.
1883 2011-10-09 Yao Qi <yao@codesourcery.com>
1885 * valprint.c (value_check_printable): Add one parameter OPTIONS.
1886 Honor OPTIONS and VAL's type.
1887 (common_val_print, value_print): Update to pass one more parameter.
1889 2011-10-09 Doug Evans <dje@google.com>
1891 Add new "alias" command.
1892 * NEWS: Mention new command.
1893 * command.h (valid_user_defined_cmd_name_p): Declare.
1894 * defs.h (make_cleanup_dyn_string_delete): Declare.
1895 * utils.c: #include "dyn-string.h".
1896 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
1897 * cli/cli-cmds.c: #include "dyn-string.h".
1898 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
1899 (init_cli_cmds): Add new command.
1900 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
1902 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1904 Fix compatibility with older GCCs.
1905 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
1906 * stack.c (read_frame_arg): Initialize val_deref.
1908 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1910 Entry values NEWS entries, DWARF disassembly support.
1911 * NEWS: New entry values entry.
1912 (set print entry-values, show print entry-values)
1913 (set debug entry-values, show debug entry-values): New entries.
1914 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
1915 indent. Remove variable start. Move header printing out. Respect
1916 INDENT. Support DW_OP_GNU_entry_value.
1917 (locexpr_describe_location_1): Move the header printing here, extend
1918 the disassemble_dwarf_expression passed parameters.
1920 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1922 Display @entry parameter values even for references.
1923 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
1924 coerce_ref_if_computed.
1925 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
1926 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
1927 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
1928 existing push_dwarf_reg_entry_value call. Add new detection calling
1929 dwarf_block_to_dwarf_reg_deref. Update the error message.
1930 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
1932 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
1933 parameter deref_size, describe it in the comment.
1934 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
1935 (dwarf_block_to_dwarf_reg_deref): New declaration.
1936 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
1937 deref_size, describe it in the function comment. New variables
1938 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
1939 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
1940 describe it in the function comment. Fetch the alternative block
1941 accoring to DEREF_SIZE.
1942 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
1943 (entry_data_value_free_closure, entry_data_value_funcs): New.
1944 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
1945 outer_val, target_val, val and addr. Try to fetch and create also
1946 referenced value content.
1947 (pieced_value_funcs): NULL value for coerce_ref.
1948 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
1949 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
1950 coerce_ref_if_computed.
1951 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
1952 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
1953 * stack.c (read_frame_arg): Compare also dereferenced values.
1954 * value.c (value_computed_funcs): Make the parameter v const, use
1955 value_lval_const for it.
1956 (value_lval_const, coerce_ref_if_computed): New function.
1957 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
1958 * value.h (struct lval_funcs): New field coerce_ref.
1959 (value_computed_funcs): Make the parameter v const.
1960 (value_lval_const, coerce_ref_if_computed): New declarations.
1962 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1964 Support @entry in input expressions.
1965 * c-exp.y (ENTRY, unknown_cpp_name): New.
1966 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
1967 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
1968 (variable: name_not_typename '@' ENTRY, name: ENTRY)
1969 (name_not_typename: ENTRY): New.
1970 (yylex): Recognize ENTRY.
1971 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
1972 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
1974 * parse.c (operator_length_standard): Likewise.
1975 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
1977 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1979 Display referenced values in backtraces.
1980 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
1981 * stack.c (print_frame_arg): Likewise.
1983 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1985 Make some lval_funcs methods to default on NULL.
1986 * valops.c (value_fetch_lazy): Check if lval_computed read method is
1988 (value_assign): Check if lval_computed write method is NULL.
1989 * value.h (struct lval_funcs): Comment NULL values for read and write
1992 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1994 Display @entry parameter values (without references).
1995 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1997 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
1999 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2001 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2002 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2004 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2005 (loclist_read_variable_at_entry): New function.
2006 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2007 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2008 DW_AT_location, call dwarf_block_to_sp_offset for it.
2009 * frame.h (print_entry_values_no, print_entry_values_only)
2010 (print_entry_values_preferred, print_entry_values_if_needed)
2011 (print_entry_values_both, print_entry_values_compact)
2012 (print_entry_values_default, print_entry_values): New declarations.
2013 (struct frame_arg): New field entry_kind.
2014 (read_frame_arg): New parameter entryargp.
2015 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2016 arg->entry_kind. Optionally print the `@entry' suffix.
2017 (list_args_or_locals): New variable entryarg, initialize it.
2018 Initialize also entry_kind of arg and entryarg. Conditionalize
2019 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2020 xfree for entryarg.error.
2021 * stack.c (print_entry_values_no, print_entry_values_only)
2022 (print_entry_values_preferred, print_entry_values_if_needed)
2023 (print_entry_values_both, print_entry_values_compact)
2024 (print_entry_values_default, print_entry_values_choices)
2025 (print_entry_values): New variables.
2026 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2027 print the `@entry' suffix, possibly in combination for
2028 print_entry_values_compact.
2029 (read_frame_arg): New parameter entryargp, new variables entryval,
2030 entryval_error and val_equal. Read in also entryargp, respect
2031 print_entry_values, compare the values using val_equal, fill in also
2032 argp->entry_kind (together with entryargp->entry_kind).
2033 (print_frame_args): New variable entryarg, initialize it.
2034 Conditionalize print_frame_arg for arg, add print_frame_arg for
2035 entryarg. Call xfree for entryarg.error.
2036 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2037 * symtab.h (struct symbol_computed_ops): New field
2038 read_variable_at_entry.
2040 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2043 * frame.h (struct frame_arg): New definition.
2044 (read_frame_arg): New declaration.
2045 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2046 (list_args_or_locals): ... the code here. New variable arg, call
2047 read_frame_arg and list_arg_or_local with it. Unify the
2048 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2050 * stack.c (print_frame_arg): New functiom from the code of
2052 (read_frame_arg): New function.
2053 (print_frame_args): Remove variable val. New variable arg, call
2054 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2056 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2058 Protect entry values against self tail calls.
2059 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2060 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2062 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2064 Recognize virtual tail call frames.
2065 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2066 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2067 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2068 * dwarf2-frame-tailcall.c: New file.
2069 * dwarf2-frame-tailcall.h: New file.
2070 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2071 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2072 REGS.PREV only after CIE execution.
2073 (struct dwarf2_frame_cache): New field tailcall_cache.
2074 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2075 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2076 parts, try to find entry_cfa_sp_offset. Call
2077 dwarf2_tailcall_sniffer_first.
2078 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2080 (dwarf2_frame_dealloc_cache): New function.
2081 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2082 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2083 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2084 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2085 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2086 * dwarf2loc.c (func_addr_to_tail_call_list)
2087 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2088 (call_site_find_chain_1, call_site_find_chain): New.
2089 * dwarf2loc.h (struct call_site_chain): New.
2090 (call_site_find_chain): New declaration.
2091 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2092 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2093 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2094 * stack.c (frame_info): Support also TAILCALL_FRAME.
2096 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2098 Tail call sites reader implementation.
2099 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2100 fill in TYPE_TAIL_CALL_LIST.
2101 * gdbtypes.h (struct func_type): New field tail_call_list.
2102 (struct call_site): New field tail_call_next.
2103 (TYPE_TAIL_CALL_LIST): New definition.
2105 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2107 Implement basic support for DW_TAG_GNU_call_site.
2108 * block.c: Include gdbtypes.h and exceptions.h.
2109 (call_site_for_pc): New function.
2110 * block.h (call_site_for_pc): New declaration.
2111 * defs.h: Include hashtab.h.
2112 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2114 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2115 ctx_no_push_dwarf_reg_entry_value.
2116 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2117 (dwarf_block_to_dwarf_reg): New function.
2118 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2119 (ctx_no_push_dwarf_reg_entry_value): New function.
2120 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2121 push_dwarf_reg_entry_value.
2122 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2124 * dwarf2loc.c: Include gdbcmd.h.
2125 (dwarf_expr_ctx_funcs): New forward declaration.
2126 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2127 (dwarf_expr_reg_to_entry_parameter)
2128 (dwarf_expr_push_dwarf_reg_entry_value): New.
2129 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2130 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2131 (needs_dwarf_reg_entry_value): New function.
2132 (needs_frame_ctx_funcs): Install it.
2133 (_initialize_dwarf2loc): New function.
2134 * dwarf2loc.h (entry_values_debug): New declaration.
2135 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2136 (read_call_site_scope): New forward declaration.
2137 (process_full_comp_unit): Copy call_site_htab.
2138 (process_die): Support DW_TAG_GNU_call_site.
2139 (read_call_site_scope): New function.
2140 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2141 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2142 (cleanup_htab): Delete.
2143 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2144 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2145 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2146 FIELD_LOC_KIND_DWARF_BLOCK.
2147 * gdbtypes.h (enum field_loc_kind): New entry
2148 FIELD_LOC_KIND_DWARF_BLOCK.
2149 (struct main_type): New loc entry dwarf_block.
2150 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2151 (TYPE_FIELD_DWARF_BLOCK): New.
2152 * python/py-type.c: Include dwarf2loc.h.
2153 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2154 internal_error call on unknown FIELD_LOC_KIND.
2155 * symtab.h (struct symtab): New field call_site_htab.
2156 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2157 (core_addr_hash, core_addr_eq): New functions.
2159 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2162 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2163 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2164 calling_convention under func_stuff there.
2165 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2166 (init_type) <TYPE_CODE_FUNC>: Likewise.
2167 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2168 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2169 * gdbtypes.h (enum type_specific_kind): Change
2170 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2171 (struct main_type) <type_specific>: Change calling_convention to
2172 func_stuff. Move calling_convention to ...
2173 (struct func_type): ... this new struct.
2174 (INIT_FUNC_SPECIFIC): New #define.
2175 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2177 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2179 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2180 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2181 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2182 ctx->ref_addr_size. Handle its invalid value.
2183 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2184 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2185 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2186 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2187 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2188 (dwarf2_per_cu_ref_addr_size): New function.
2190 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2193 * dwarf2read.c (per_cu_header_read_in): New function.
2194 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2195 variables cu_header_local and cu_headerp.
2197 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2199 Fix initial language detection with -readnow.
2200 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2201 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2202 searches only for global symbols.
2204 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2206 Fix printed anonymous struct name.
2207 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2208 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2209 (anonymous_struct_prefix): New function.
2210 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2211 (dwarf2_name): Strip for anonymous structs any prefixes.
2213 2011-10-07 Doug Evans <dje@google.com>
2215 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2218 * python/lib/gdb/printing.py: Whitespace cleanup.
2220 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2223 2011-10-07 Pedro Alves <pedro@codesourcery.com>
2225 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2226 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2227 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2228 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2229 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2230 (arm_linux_remove_watchpoint): Adjust.
2231 * i386-linux-nat.c (i386_linux_dr_set_control)
2232 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2233 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2234 (ia64_linux_remove_watchpoint): Adjust.
2235 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2236 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2237 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2238 (ppc_linux_insert_mask_watchpoint)
2239 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2240 (ppc_linux_remove_watchpoint): Adjust.
2241 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2244 2011-10-07 Corinna Vinschen <vinschen@redhat.com>
2246 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2247 (clear_win32_environment): New function for Cygwin to clear out
2249 (windows_create_inferior): Prepare new environment from in_env
2252 2011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2255 * python/py-value.c (valpy_call): Check that arguments are
2257 (is_intlike): Remove call to CHECK_TYPEDEF.
2258 (valpy_nonzero): Catch GDB exceptions.
2259 (valpy_absolute): Ditto.
2260 (valpy_lazy_string): Ditto.
2261 (valpy_call): Ditto.
2262 (valpy_get_is_optimized_out): Ditto.
2263 (valpy_long): Ditto.
2264 (valpy_float): Ditto.
2265 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2266 (valpy_richcompare): Ditto.
2268 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2270 * inferior.h (disable_randomization): Declare.
2271 * infrun.c (disable_randomization): New global variable.
2272 (show_disable_randomization): New function.
2273 (set_disable_randomization): Likewise.
2274 (_initialize_infrun): Install set/show disable-randomization
2276 * linux-nat.c (disable_randomization): Remove.
2277 (show_disable_randomization): Likewise.
2278 (set_disable_randomization): Likewise.
2279 (_initialize_linux_nat): No longer install set/show
2280 disable-randomization commands here.
2281 (linux_nat_supports_disable_randomization): New function.
2282 (linux_nat_add_target): Install it.
2283 * remote.c (PACKET_QDisableRandomization): New enum value.
2284 (remote_protocol_packets): Support QDisableRandomization.
2285 (_initialize_remote): Likewise.
2286 (remote_supports_disable_randomization): New function.
2287 (init_remote_ops): Install it.
2288 (extended_remote_supports_disable_randomization): New function.
2289 (init_extended_remote_ops): Install it.
2290 (extended_remote_disable_randomization): New function.
2291 (extended_remote_create_inferior_1): Call it.
2292 * target.h (struct target_ops): Add to_supports_disable_randomization.
2293 (target_supports_disable_randomization): Add prototype.
2294 * target.c (target_supports_disable_randomization): New function.
2295 (find_default_supports_disable_randomization): Likewise.
2296 (init_dummy_target): Install it.
2298 2011-10-07 Kevin Pouget <kevin.pouget@st.com>
2300 Allow Python notification of new object-file loadings.
2301 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2302 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2303 Add build rule for this file.
2304 * python/py-event.h (emit_new_objfile_event): New prototype.
2305 (newobjfile): New Python event emitter.
2306 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2307 Python event registry.
2308 * python/py-inferior.c: Include objfiles.h
2309 (python_new_objfile): New function.
2310 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2312 * python/py-newobjfileevent.c: New file.
2313 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2315 * python/python.c (_initialize_python): Add
2316 gdbpy_initialize_new_objfile_event call.
2317 * NEWS: Add item for new Python event "gdb.newobjfile"
2319 2011-10-05 Tristan Gingold <gingold@adacore.com>
2321 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2322 Extract the ravenscar task name from the symbol for the atcb.
2324 2011-10-04 Paul Koning <paul_koning@dell.com>
2326 * python/py-type.c (typy_make_iter): Add forward declaration.
2327 (typy_fields_items): Use the gdb.Type iterator.
2329 2011-10-04 Paul Koning <paul_koning@dell.com>
2331 * NEWS: Add entry for Python gdb.Type mapping methods.
2333 2011-10-04 Kevin Pouget <kevin.pouget@st.com>
2335 PR python/12691: Add the inferior to Python exited event
2336 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2338 * python/py-event.h (emit_exited_event): Likewise
2339 * python/-inferior.c (python_inferior_exit): Likewise
2341 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2343 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2344 in output of -ada-task-info GDB/MI command.
2346 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2348 * ada-lang.h (struct inferior): Declare.
2349 (print_ada_task_info): Add declaration.
2350 * ada-tasks.c (print_ada_task_info): Make non-static.
2351 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2352 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2353 * mi/mi-main.c: #include "ada-lang.h".
2354 (mi_cmd_list_features): Add "ada-task-info" to the list
2355 of supported features.
2356 (mi_cmd_ada_task_info): New function.
2358 2011-10-03 Joel Brobecker <brobecker@adacore.com>
2360 * python/python.c (python_run_simple_file): New function.
2361 (source_python_script, source_python_script_for_objfile):
2362 Replace call to PyRun_SimpleFile by call to
2363 python_run_simple_file.
2365 2011-10-03 Paul Koning <paul_koning@dell.com>
2367 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2368 (value_to_value_object): Fetch value if it was lazy.
2370 2011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2373 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2374 Rearrange the code for it.
2376 2011-10-02 Joel Brobecker <brobecker@adacore.com>
2378 * breakpoint.c (bkpt_print_recreate): Add call to
2379 print_recreate_thread.
2381 2011-09-29 Mike Frysinger <vapier@gentoo.org>
2383 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2384 PTRACE_GETFDPIC_INTERP): Define.
2386 2011-09-28 Yao Qi <yao@codesourcery.com>
2388 * symfile.c (add_symbol_file_command): Update message on usage.
2390 2011-09-28 Paul Koning <paul_koning@dell.com>
2392 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2393 (typy_length, typy_get, typy_has_key, typy_make_iter)
2394 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2395 (typy_iterator_iter, typy_iterator_iternext)
2396 (typy_iterator_dealloc): New functions to implement standard
2397 Python mapping methods on gdb.Type object.
2398 (gdb.TypeIterator): New Python type.
2399 * python/python-internal.h (gdbpy_iter_kind): New enum.
2401 2011-09-28 David S. Miller <davem@davemloft.net>
2403 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2404 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2405 * sparc-tdep.c (sparc_complex_floating_p): New function.
2406 (sparc32_store_arguments): Handle complex floats.
2407 (sparc32_extract_return_value): Likewise.
2408 (sparc32_store_return_value): Likewise.
2409 (sparc32_stabs_argument_has_addr): Likewise.
2410 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2411 (sparc64_store_floating_fields): Handle complex floats.
2412 (sparc64_store_arguments): Likewise.
2413 (sparc64_store_return_value): Likewise.
2415 2011-09-28 Eli Zaretskii <eliz@gnu.org>
2417 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2418 before the change on 2006-12-09.
2419 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2420 generates the environment block for CreateProcessA, modulo the
2421 Cygwin-specific parts that are not needed here.
2423 2011-09-27 Tristan Gingold <gingold@adacore.com>
2425 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2426 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2427 (darwin_solib_get_all_image_info_addr_at_init): New function.
2428 (darwin_solib_read_all_image_info_addr): Likewise.
2429 (darwin_solib_create_inferior_hook): Use the above two functions.
2430 * darwin-nat.c (darwin_execvp): Renames retval to res.
2431 (darwin_read_write_inferior): Update comment.
2432 (darwin_read_dyld_info): New function.
2433 (darwin_xfer_partial): Handle DYLD_INFO.
2435 2011-09-27 Stan Shebs <stan@codesourcery.com>
2437 Add return address collection for tracepoints.
2438 * tracepoint.c (encode_actions_1): Add case for $_ret.
2439 (validate_actionline): Check for $_ret.
2440 (trace_dump_actions): Ditto.
2441 * ax-gdb.h (gen_trace_for_return_address): Declare.
2442 * ax-gdb.c: Include arch-utils.h.
2443 (gen_trace_for_return_address): New function.
2444 (agent_command): Add return address special case.
2445 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2446 (amd64_gen_return_address): New function.
2447 (amd64_init_abi): Call it.
2448 * i386-tdep.c: Include ax.h and ax-gdb.h.
2449 (i386_gen_return_address): New function.
2450 (i386_init_abi): Call it.
2451 * arch-utils.h (default_gen_return_address): Declare.
2452 * arch-utils.c (default_gen_return_address): New function.
2453 * gdbarch.sh (gen_return_address): New method.
2454 * gdbarch.h, gdbarch.c: Regenerate.
2456 2011-09-23 Joseph Myers <joseph@codesourcery.com>
2459 * i386-tdep.c (i386_frame_align): New.
2460 (i386_gdbarch_init): Use i386_frame_align.
2462 2011-09-23 Yao Qi <yao@codesourcery.com>
2464 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2467 2011-09-22 Tristan Gingold <gingold@adacore.com>
2469 * fork-child.c (fork_inferior): Add exec_fun parameter.
2470 Call exec_fun or execvp.
2471 * inferior.h: Adjust prototype.
2472 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2473 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2474 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2475 * procfs.c (procfs_create_inferior): Ditto.
2476 * darwin-nat.c (darwin_execvp): New function.
2477 (darwin_create_inferior): Use it.
2479 2011-09-22 Yao Qi <yao@codesourcery.com>
2481 * infrun.c (context_switch): Print debug message when switching to
2484 2011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2486 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2487 complex and vector types.
2488 (s390_return_value_convention): Likewise.
2490 (s390_value_from_register): Call check_typedef.
2491 (extend_simple_arg): Likewise.
2492 (alignment_of): Likewise.
2493 (s390_push_dummy_call): Likewise.
2494 (s390_return_value): Likewise.
2496 2011-09-21 Joseph Myers <joseph@codesourcery.com>
2498 * event-top.c (async_disconnect): If an exception is thrown from
2499 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2501 * top.c (quit_cover): Return void and take no arguments.
2502 * top.h (quit_cover): Update prototype.
2504 2011-09-20 Joseph Myers <joseph@codesourcery.com>
2506 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2507 current_uiout, not uiout.
2509 2011-09-19 Doug Evans <dje@google.com>
2511 * python/py-auto-load.c (source_section_scripts): Fix file
2513 * python/python.c (source_python_script_for_objfile): Tweak comments.
2515 2011-09-18 Yao Qi <yao@codesourcery.com>
2516 Ulrich Weigand <ulrich.weigand@linaro.org>
2518 Support displaced stepping for Thumb 16-bit insns.
2519 * arm-tdep.c (THUMB_NOP) Define.
2520 (thumb_copy_unmodified_16bit): New.
2521 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2522 (thumb_copy_alu_reg): New.
2523 (arm_copy_svc): Move some common code to ...
2524 (install_svc): ... here. New.
2525 (thumb_copy_svc): New.
2526 (install_pc_relative): New.
2527 (thumb_copy_pc_relative_16bit): New.
2528 (thumb_decode_pc_relative_16bit): New.
2529 (thumb_copy_16bit_ldr_literal): New.
2530 (thumb_copy_cbnz_cbz): New.
2531 (cleanup_pop_pc_16bit_all): New.
2532 (thumb_copy_pop_pc_16bit): New.
2533 (thumb_process_displaced_16bit_insn): New.
2534 (thumb_process_displaced_32bit_insn): New.
2535 (thumb_process_displaced_insn): process thumb instruction.
2537 Support displaced stepping for Thumb 32-bit insns.
2538 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2539 (thumb2_copy_preload): New.
2540 (thumb2_copy_copro_load_store): New.
2541 (thumb2_copy_b_bl_blx): New.
2542 (thumb2_copy_alu_imm): New.
2543 (thumb2_copy_load_reg_imm): New.
2544 (thumb2_copy_load_literal): New
2545 (thumb2_copy_block_xfer): New.
2546 (thumb_32bit_copy_undef): New.
2547 (thumb_32bit_copy_unpred): New.
2548 (thumb2_decode_ext_reg_ld_st): New.
2549 (thumb2_decode_svc_copro): New.
2550 (decode_thumb_32bit_store_single_data_item): New.
2551 (thumb_copy_pc_relative_32bit): New.
2552 (thumb_decode_pc_relative_32bit): New.
2553 (decode_thumb_32bit_ld_mem_hints): New.
2554 (thumb2_copy_table_branch): New
2555 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2558 2011-09-18 Yao Qi <yao@codesourcery.com>
2560 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2561 (install_b_bl_blx): Likewise.
2563 2011-09-17 Yao Qi <yao@codesourcery.com>
2565 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2566 (install_load_store): ... this. New.
2567 Change parameter BYTE to SIZE.
2568 (arm_copy_ldr_str_ldrb_strb): Update caller.
2569 (arm_decode_ld_st_word_ubyte): Update caller.
2571 2011-09-17 Yao Qi <yao@codesourcery.com>
2573 * infrun.c (displaced_step_fixup): Move some code ...
2574 (displaced_step_restore): ... here. New function.
2575 (handle_inferior_event): Cleanup displaced stepping state for both
2576 child and parent when get forked or vforked event.
2577 * regcache.c (get_thread_arch_aspace_regcache): New function.
2578 get_thread_arch_regcache (): Call it.
2580 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2582 * ada-tasks.c (print_ada_task_info): New function, merging
2583 short_task_info and info_tasks together. Reimplement using
2584 ui-out instead of printing to stdout directly. Move the code
2585 building and checking the task list here, instead of leaving it
2586 in info_tasks_command.
2587 (info_task): Move the code building and checking the task
2588 list here, instead of leaving it in info_tasks_command.
2589 (info_tasks_command): Delete code building and checking
2590 the task list - moved elsewhere. Update calls to info_tasks
2593 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2595 * ada-tasks.c (info_task): Delete parameter `from_tty'.
2597 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2599 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
2601 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2603 * ada-lang.h (ada_build_task_list): Remove parameter
2605 * ada-tasks.c (ada_build_task_list): Remove parameter
2606 `warn_if_null'. Adjust implementation and documentation.
2607 (valid_task_id, ada_get_environment_task)
2608 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
2609 (info_tasks_command): Adjust implementation.
2610 (task_command): Likewise.
2611 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
2612 to ada_build_task_list.
2614 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2616 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
2617 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
2618 (ada_tasks_inferior_data_handle): New static global.
2619 (get_ada_tasks_inferior_data): New function.
2620 (ada_get_task_number, get_task_number_from_id, valid_task_id)
2621 (ada_get_environment_task, iterate_over_live_ada_tasks)
2622 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
2624 (ada_set_current_inferior_known_tasks_addr): New function.
2625 (read_known_tasks, ada_build_task_list, short_task_info)
2626 (info_tasks, info_task, info_tasks_command, task_command_1)
2627 (task_command, ada_task_list_changed): Adjust.
2628 (ada_tasks_invalidate_inferior_data): New function.
2629 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
2630 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
2631 * ada-lang.h (struct inferior): Add declaration.
2632 (ada_task_list_changed): Update profile.
2633 * remote-wtx-pd.c: #include "inferior.h".
2634 (switch_to_pd_internal): Update call to ada_task_list_changed.
2636 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2638 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
2639 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
2640 (atcb_fieldno): Delete these static globals.
2641 (struct ada_tasks_pspace_data): New struct.
2642 (ada_tasks_pspace_data_handle): New static global.
2643 (get_ada_tasks_pspace_data): New function.
2644 (ada_tasks_invalidate_pspace_data): New function.
2645 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
2646 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
2647 (_initialize_tasks): Create this module's per-progspace
2650 2011-09-16 Joel Brobecker <brobecker@adacore.com>
2652 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
2654 2011-09-16 Tristan Gingold <gingold@adacore.com>
2656 * fork-child.c (fork_inferior): Update comment. Use alloca
2657 instead of xmalloc for argv. Move len and shell_command
2658 declarations in the block where they are used.
2659 Only call execvp. Factorize failure code.
2661 2011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
2664 * parse.c (write_exp_elt): Change argument to pass a pointer of union
2665 `exp_element' instead of an element of the same and make the function
2667 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
2668 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
2669 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
2670 Change argument of `write_exp_elt' function call.
2671 Remove extra spaces from comments.
2672 * parser-defs.h (write_exp_elt): Remove prototype.
2674 2011-09-15 Paul Koning <paul_koning@dell.com>
2676 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
2677 count of item appended to list.
2678 * python/py-type.c (typy_fields): Likewise.
2680 2011-09-15 Paul Koning <paul_koning@dell.com>
2682 * MAINTAINERS (Write After Approval): Add myself to the list.
2684 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2687 * linux-fork.c (checkpoint_command): Disallow checkpointing of
2688 processes with multiple threads.
2689 (inf_has_multiple_thread_cb): New function.
2690 (inf_has_multiple_threads): New function.
2692 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2694 PR Python/12692 Add gdb.selected_inferior() to Python interface.
2695 * python/py-inferior.c (GdbMethods): New Python method definition.
2697 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2699 Handle multiple breakpoint hits in Python interface:
2700 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
2701 variable to breakpoints.
2702 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
2703 bps instead of single breakpoint. Fix some space typos.
2704 * python/py-stopevent.c (create_breakpoint_event_object): Rename
2705 variable to breakpoints.
2707 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2709 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
2710 note if the breakpoint is internal.
2712 2011-09-15 Kevin Pouget <kevin.pouget@st.com>
2714 * MAINTAINERS (Write After Approval): Add myself to the list
2716 2011-09-14 Pedro Alves <pedro@codesourcery.com>
2718 * infrun.c (prepare_for_detach, wait_for_inferior)
2719 (fetch_inferior_event): Don't flush the register cache.
2720 * remote.c (struct stop_reply) <regcache>: Add comment.
2722 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2724 Remove excessive DWARF expressions memory duplication.
2725 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
2727 (indirect_pieced_value): Remove variable result. Remove variable
2728 back_to and its use for baton.data.
2729 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
2731 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
2732 Update the function comment.
2734 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2736 * inferior.h (ALL_INFERIORS): New.
2737 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
2738 for a stopped thread.
2739 (thread_db_find_new_threads): Look for threads in all inferiors.
2741 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2743 * breakpoint.c (update_watchpoint): Handle the case of the
2744 watchpoint to update not being in the breakpoint list yet.
2745 (hw_watchpoint_use_count): New, factored out from
2746 hw_watchpoint_used_count.
2747 (hw_watchpoint_used_count): Rename to ...
2748 (hw_watchpoint_used_count_others): ... this. Add `except'
2749 parameter. Don't count resources of `except'. Use
2750 hw_watchpoint_use_count.
2752 2011-09-13 Pedro Alves <pedro@codesourcery.com>
2754 * gdbthread.h (enum thread_state): Moved here.
2755 (struct thread_info): Rename `executing_' field to `executing' and
2756 `state_' to `state'.
2757 * thread.c (enum thread_state): Moved to gdbthread.h.
2758 (new_thread, add_thread_silent, delete_thread_1)
2759 (any_live_thread_of_process, thread_alive, set_running)
2760 (set_running, is_thread_state, any_running, is_executing)
2761 (set_executing, finish_thread_state, print_thread_info)
2762 (do_captured_thread_select): Adjust.
2764 2011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2766 Fix compatibility with gcc < 4.3 and non-gcc compilers.
2767 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
2769 2011-09-12 Pedro Alves <pedro@codesourcery.com>
2770 Matt Rice <ratmice@gmail.com>
2774 * interps.c (struct interp) <interpreter_out>: Delete field.
2775 (interp_new): Remove the data and uiout parameters and adjust.
2776 (interp_set): Only set the current_uiout from the interpreter's
2777 uiout after initializing the interpreter. Adjust call to
2779 (interp_ui_out): Adjust to call procs->ui_out_proc.
2780 (interp_data, interp_name): New.
2781 * interps.h (interp_init_ftype): Add `self' parameter.
2782 (interp_ui_out_ftype): New typedef.
2783 (struct interp_procs) <ui_out_proc>: New method pointer.
2784 (interp_new): Remove the data and uiout parameters.
2785 (interp_data, interp_name): Declare.
2786 * tui/tui-interp.c (tui_init): Adjust prototype.
2788 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
2789 tui_out here. Adjust call to interp_new.
2790 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
2791 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
2793 (_initialize_cli_interp): Install it. Adjust call to interp_new.
2794 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
2795 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
2796 Initialize mi->uiout depending on the mi_version as extracted from
2797 the interpreter's name.
2799 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
2800 interp_new. Don't allocate the ui_out's of the interpreters here.
2802 2011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
2804 * solib.c (solib_used): New function.
2805 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
2806 by another so_list object before freeing it.
2808 2011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2811 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
2814 2011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2817 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
2818 (amd64_skip_xmm_prologue): ... this new function. Describe its
2819 parameters. No longer use amd64_prologue_line_bug.
2820 * defs.h (producer_is_gcc_ge_4): New declaration.
2821 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
2822 (process_full_comp_unit): Update its caller. Remove
2823 amd64_prologue_line_bug initialization.
2824 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
2825 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
2827 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2829 * linux-nat.h (enum resume_kind): New.
2830 (struct lwp_info) <last_resume_kind>: New field.
2831 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
2832 resume_stop on the new lwp.
2833 (add_lwp): Set last_resume_kind as resume_continue by default.
2834 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
2835 (resume_lwp): New, factored out from resume_callback. Also check
2836 for pending status in lp->waitstatus.
2837 (resume_callback): Reimplement.
2838 (resume_clear_callback): Set last_resume_kind as resume_stop.
2839 (resume_set_callback): Set last_resume_kind as resume_continue.
2840 (linux_nat_resume, linux_handle_extended_wait): Set
2842 (running_callback): Also check lp->waitstatus for pending events.
2843 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
2845 (stop_and_resume_callback): Don't re-resume if the core wanted the
2846 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
2847 using an invalidated pointer.
2848 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
2849 SIGSTOPs if the core wanted the LWP to stop.
2850 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
2851 wanted the lwp to stop. If the core wanted the lwp to stop, and
2852 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
2853 of TARGET_SIGNAL_STOP.
2854 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
2855 here. Instead, signal the lwp, and set the last_resume_kind to
2858 2011-09-09 Pedro Alves <pedro@codesourcery.com>
2860 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
2861 -1 (error), if the lwp exits right after attaching.
2863 2011-09-08 Doug Evans <dje@google.com>
2865 * py-cmd.c: Some minor formatting fixes.
2866 (gdbpy_parse_command_name): Rename text arg to name, make const.
2867 All callers updated.
2868 * python-internal.h (gdbpy_parse_command_name): Update.
2870 * cli/cli-decode.c (add_cmd): Add comment.
2872 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2874 PR breakpoints/12435
2875 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
2876 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
2877 * dwarf2read.c (process_full_comp_unit): Initialize
2878 amd64_prologue_line_bug.
2879 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
2881 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2883 Fix TUI screen corruption.
2884 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
2887 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2889 * findvar.c (read_var_value): Never return NULL, throw an error
2890 instead. Update the function comment. State symbol name in the error
2892 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
2894 * stack.c (print_frame_args): Likewise.
2895 * valops.c (value_of_variable): Likewise.
2897 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2899 * stack.c (print_frame_args): New variable except. Wrap
2900 read_var_value and common_val_print into TRY_CATCH.
2902 2011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2904 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
2905 caller to value_of_this.
2906 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
2908 * valops.c (value_of_this): Remove parameter complain and variable ret.
2909 Update function comment. Never return NULL by this code.
2910 (value_of_this_silent): New function.
2911 * value.h (value_of_this): Remove parameter complain.
2912 (value_of_this_silent): New declaration.
2914 2011-09-07 Yao Qi <yao@codesourcery.com>
2916 * gdbthread.h (struct thread_info): Remove fields
2917 `stepping_through_solib_after_catch' and
2918 `stepping_through_solib_catchpoints'.
2919 * infrun.c (init_thread_stepping_state): Update.
2920 (process_event_stop_test, currently_stepping): Update.
2921 (currently_stepping_or_nexting_callback): Update.
2923 2011-09-07 Yao Qi <yao@codesourcery.com>
2925 * gdbthread.h (struct thread_info): Comment on field
2926 `step_after_step_resume_breakpoint'.
2928 2011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
2930 * remote.c (remote_console_output): Reindent.
2932 2011-09-06 Luis Machado <lgustavo@codesourcery.com>
2934 * frame.c (has_stack_frames): Check for currently selected
2937 2011-09-06 Pedro Alves <pedro@codesourcery.com>
2939 * event-top.h (MAXPROMPTS, struct prompts): Delete.
2940 (set_async_annotation_level, set_async_prompt, pop_prompt)
2941 (push_prompt, new_async_prompt): Delete declarations.
2942 * top.h (get_prompt, set_prompt): Change prototype.
2943 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
2945 * top.c (command_loop):
2946 (top_prompt): New global.
2947 (get_prefix, set_prefix, get_suffix, ): Delete.
2948 (get_prompt, set_prompt): Rewrite.
2949 (show_new_async_prompt): Rename to ...
2950 (show_prompt): ... this.
2951 (init_main): Adjust. Don't handle --annotate=2 here.
2952 * event-top.c (new_async_prompt): Delete.
2953 (the_prompts): Delete.
2954 (more_to_come): Make static.
2955 (display_gdb_prompt): Use top_level_prompt() to compute the top
2956 level prompt, and don't notify the before_prompt observers
2957 directly here. Always trick readline into not trying to display
2958 the prompt if sync_execution and displaying the primary prompt.
2959 If displaying a local/secondary prompt, always show it, even if
2960 sync_execution is set.
2961 (change_annotation_level): Delete.
2962 (top_level_prompt): New, based on change_annotation_level.
2963 (push_prompt, pop_prompt): Delete.
2964 (async_disable_stdin): No longer pushes prompt.
2965 (command_line_handler): No longer pushes or pops prompt. If more
2966 input is expected, call display_gdb_prompt with an explicit empty
2968 (async_stop_sig): Adjust.
2969 (set_async_annotation_level, set_async_prompt): Delete.
2970 * python/python.c (before_prompt_hook): Adjust.
2972 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2976 * infrun.c (fetch_inferior_event): Check if there's a selected
2977 thread before checking if the selected thread is executing.
2979 2011-09-05 Pedro Alves <pedro@codesourcery.com>
2981 * inf-loop.c (execute_command): Don't check if the current thread
2982 if running before synchronously waiting for command completion.
2983 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
2985 (normal_stop): Call async_enable_stdin here.
2986 * inf-loop.c (inferior_event_handler): Don't call
2987 async_enable_stdin, nor handle "set exec-done-display" here.
2989 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2993 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2995 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
2997 2011-09-04 Joel Brobecker <brobecker@adacore.com>
2999 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3001 2011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3003 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3005 2011-09-02 Matt Rice <ratmice@gmail.com>
3008 * event-top.c (cli_command_loop): Replace readline setup with
3009 direct call to display_gdb_prompt.
3010 (display_gdb_prompt): Do not call observer mechanism during
3011 synchronous execution.
3013 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3015 * linux-nat.c (in_pid_list_p): New.
3016 (linux_record_stopped_pid): Delete.
3017 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3018 already attached to the LWP. Return an indication if so.
3019 (linux_nat_filter_event): Adjust.
3020 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3021 returning an indication to ignore this thread.
3023 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3025 * top.c: Include interps.h.
3026 (execute_command): If the target can async, but the interpreter is
3027 in sync mode, synchronously wait for the command to finish before
3029 (execute_command_to_string): Force the interpreter to sync mode.
3030 * infrun.c: Include interps.h.
3031 (fetch_inferior_event): Don't restore the prompt yet if the
3032 interpreter is in sync mode.
3033 * interps.c (interpreter_async): New global.
3034 * interps.h (interpreter_async): Declare.
3035 * inf-loop.c: Include interps.h.
3036 (inferior_event_handler): Don't print the language change or run
3037 breakpoint commands yet if the interpreter in is sync mode.
3038 * main.c (captured_command_loop): Flip the interpreter to async
3040 * cli/cli-script.c: Include interps.h.
3041 (execute_user_command, while_command, if_command): Force the
3042 interpreter to sync mode.
3043 * python/python.c: Include interps.h.
3044 (python_command, execute_gdb_command): Force the interpreter to
3047 2011-09-02 Pedro Alves <pedro@codesourcery.com>
3049 * value.c (show_convenience): Catch errors thrown while printing
3050 each internal variable.
3051 * infrun.c (validate_siginfo_access): New function.
3052 (siginfo_value_read, siginfo_value_write): Call it.
3054 2011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3057 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3058 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3061 2011-08-29 Yao Qi <yao@codesourcery.com>
3063 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3065 (enable_break2): Update caller.
3066 * solib-frv.c (bfd_lookup_symbol): Removed.
3068 (enable_break2): Update caller.
3069 * solib-pa64.c (bfd_lookup_symbol): Removed.
3071 * solib-svr4.c (bfd_lookup_symbol): Removed.
3072 (cmp_name_and_sec_flags): New.
3073 (enable_break): Update caller.
3074 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3075 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3076 (gdb_bfd_lookup_symbol): New.
3077 * solib.h: Functions declarations.
3079 2011-08-29 Yao Qi <yao@codesourcery.com>
3081 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3084 2011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3086 Fix TUI stepi on code without symbols.
3087 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3090 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3093 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3094 and the static keyword.
3095 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3096 Make prefix an array.
3097 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3098 * mi/mi-main.c (get_register): Remove stb initialization and the static
3101 2011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3103 Code cleanup - make mi_opt const.
3104 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3106 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3107 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3108 (mi_cmd_env_dir): Likewise.
3109 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3110 (mi_cmd_target_file_put): Likewise.
3111 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3112 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3113 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3114 (mi_valid_noargs): Make opts const.
3115 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3116 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3117 (mi_cmd_data_read_memory): Likewise.
3118 (mi_cmd_data_read_memory_bytes): Likewise.
3119 (mi_cmd_data_write_memory): Likewise.
3121 2011-08-26 Matt Rice <ratmice@gmail.com>
3123 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3124 bcache_xmalloc, replace bcache_xmalloc with call to
3125 psymbol_bcache_init for psymbol_cache.
3126 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3128 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3130 * inf-loop.c (inferior_event_handler): Add exception_print in
3133 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3135 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3136 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3137 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3138 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3139 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3140 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3141 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3142 * infrun.c (fetch_inferior_event): Call
3143 make_bpstat_clear_actions_cleanup.
3144 * top.c (execute_command): New variable cleanup_if_error, call
3145 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3146 * utils.c (do_bpstat_clear_actions_cleanup)
3147 (make_bpstat_clear_actions_cleanup): New functions.
3149 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3151 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3152 either the parent or the child forks. Rename a couple locals.
3154 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3156 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3157 library call. Avoid reading the `status' local if all waitpid
3160 2011-08-26 Pedro Alves <pedro@codesourcery.com>
3162 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3163 opening /proc/PID/task always succeeds.
3165 2011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3167 * linespec.c (symtab_from_filename): Check for the end of string.
3169 2011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3172 * varobj.c (cplus_describe_child): Add the keyword
3173 'class' to the output of the method when dealing
3174 with a cast to a base class.
3176 2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3178 No functionality change.
3179 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3180 function comment a reference, new variables tp and bs, move here code
3181 from throw_exception.
3182 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3183 describe it in the comment.
3184 * exceptions.c (throw_exception): Remove variable tp, move the code for
3185 bpstat_clear_actions to bpstat_clear_actions.
3187 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
3189 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3190 * linux-nat.c: Include linux-procfs.h.
3191 (linux_proc_get_tgid): Move to ...
3192 * common/linux-procfs.c: ... here. New file.
3193 * common/linux-procfs.h: New file.
3194 * linux-thread-db.c: Include linux-procfs.h.
3195 * Makefile.in: Update dependencies.
3196 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3197 * config/arm/linux.mh: Likewise.
3198 * config/i386/linux.mh: Likewise.
3199 * config/i386/linux64.mh: Likewise.
3200 * config/ia64/linux.mh: Likewise.
3201 * config/m32r/linux.mh: Likewise.
3202 * config/m68k/linux.mh: Likewise.
3203 * config/mips/linux.mh: Likewise.
3204 * config/pa/linux.mh: Likewise.
3205 * config/pa/linux.mh: Likewise.
3206 * config/powerpc/linux.mh: Likewise.
3207 * config/powerpc/ppc64-linux.mh: Likewise.
3208 * config/powerpc/spu-linux.mh: Likewise.
3209 * config/sparc/linux.mh: Likewise.
3210 * config/sparc/linux64.mh: Likewise.
3211 * config/xtensa/linux.mh: Likewise.
3213 2011-08-24 Hui Zhu <teawater@gmail.com>
3215 * tracepoint.c (cond_string_is_same): New function.
3216 (find_matching_tracepoint): Add condition check
3217 by cond_string_is_same.
3219 2011-08-23 Josh Matthews <josh@joshmatthews.net>
3221 Fix build error in Darwin port.
3222 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3224 2011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3227 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3228 (command_line_is_silent): New function.
3229 (bpstat_do_actions_1): No longer use commands_left, use
3230 command_line_is_silent for commands.
3231 (bpstat_alloc): Remove clearing of commands_left.
3232 (bpstat_stop_status): Remove initialization of commands_left, use
3233 command_line_is_silent.
3234 * breakpoint.h (struct bpstats): Remove commands_left.
3236 2011-08-18 Keith Seitz <keiths@redhat.com>
3239 * cp-name-parser.y (struct demangle_info): Remove unused
3242 (allocate_info): Change return type to struct demangle_info *.
3243 Always allocate a new demangle_info.
3244 Remove unused PREV pointer.
3245 (cp_new_demangle_parse_info): New function.
3246 (cp_demangled_name_parse_free): New function.
3247 (do_demangled_name_parse_free_cleanup): New function.
3248 (make_cleanup_cp_demangled_name_parse_free): New function.
3249 (cp_demangled_name_to_comp): Change return type to
3250 struct demangle_parse_info *.
3251 Allocate a new storage for each call.
3252 (main): Update usage for cp_demangled_name_to_comp
3254 * cp-support.h (struct demangle_parse_info): New structure.
3255 (cp_demangled_name_to_comp): Update API change for
3257 (cp_new_demangle_parse_info): Declare.
3258 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3259 (cp_demangled_name_parse_free): Declare.
3260 * cp-support.c (cp_canonicalize_string): Update API
3261 change for cp_demangled_name_to_comp.
3262 (mangled_name_to_comp): Likewise.
3263 Return struct demangle_parse_info, too.
3264 (cp_class_name_from_physname): Update mangled_name_to_comp
3266 (method_name_from_physname): Likewise.
3267 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3268 (cp_remove_params): Likewise.
3269 * python/py-type.c (typy_legacy_template_argument): Likewise.
3271 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3272 (cp_merge_demangle_parse_infos): Declare.
3273 * cp-support.c (ignore_typedefs): New file global.
3274 (copy_string_to_obstack): New function.
3275 (inspect_type): New function.
3276 (replace_typedefs): New function.
3277 (replace_typedefs_qualified_name): New function.
3278 (cp_canonicalize_string_no_typedefs): New function.
3279 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3280 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3281 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3282 instead of cp_canonicalize_string.
3283 (find_method): Likewise.
3284 (decode_compound): Before looking up the name, call
3285 cp_canonicalize_string_no_typedefs.
3286 (decode_variable): Likewise.
3288 2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3289 Tom Tromey <tromey@redhat.com>
3290 Matt Rice <ratmice@gmail.com>
3292 * python/lib/gdb/prompt.py: New file.
3293 * python/lib/gdb/command/prompt.py: New file.
3294 * NEWS: Document set extended-prompt and gdb.prompt library
3296 2011-08-16 Yao Qi <yao@codesourcery.com>
3298 * tic6x-linux-tdep.c: Move const arrays definition from here...
3299 * tic6x-tdep.c: to here ...
3301 2011-08-14 Yao Qi <yao@codesourcery.com>
3303 * NEWS: New port to Texas Instruments TMS320C6x.
3305 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
3306 Bernd Schmidt <bernds@codesourcery.com>
3307 Yao Qi <yao@codesourcery.com>
3309 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3310 * solib-dsbt.c: New file. Support DSBT shared object.
3311 * tic6x-linux-tdep.c: New file.
3312 * tic6x-tdep.c: New file.
3313 * tic6x-tdep.h: New file.
3315 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
3316 Yao Qi <yao@codesourcery.com>
3318 * remote.c (PACKET_qXfer_fdpic): New enum value.
3319 (remote_protocol_features): Add qXfer:fdpic:read packet.
3320 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3321 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3322 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3324 2011-08-14 Yao Qi <yao@codesourcery.com>
3326 Target description for tic6x.
3327 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3328 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3329 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3330 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3331 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3332 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3333 * features/tic6x-c64xp-linux.xml: New.
3334 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3335 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3336 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3337 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
3338 * regformats/tic6x-c64xp.dat,
3339 regformats/tic6x-c62x-linux.dat: Generated.
3340 * regformats/tic6x-c64x-linux.dat,
3341 regformats/tic6x-c64xp-linux.dat: Generated.
3342 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3343 features/tic6x-*.c files.
3344 Add regformats/tic6x-*.dat files.
3346 2011-08-12 Doug Evans <dje@google.com>
3348 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3349 * python/py-symbol.c (sympy_get_type): New function.
3350 (symbol_object_getset): Add "type".
3352 2011-08-12 Pedro Alves <pedro@codesourcery.com>
3356 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3358 (tui_show_register_group): Don't store a byte buffer in the data
3360 (tui_register_format): Skip registers with an empty name.
3361 (tui_get_register): Store a struct value in the data element's
3362 value field instead of a byte buffer holding the raw register
3363 contents. Account for optimized-out and unavailable registers
3364 when comparing register contents.
3366 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3368 * printcmd.c (current_display_number): Update comment.
3369 (disable_current_display_cleanup): Delete.
3370 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3371 catch errors thrown while evaluating and printing the display.
3373 2011-08-09 Tom Tromey <tromey@redhat.com>
3375 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3377 2011-08-09 Pedro Alves <pedro@codesourcery.com>
3379 * elfread.c (elf_symtab_read): Rework comments.
3380 * maint.c (maintenance_command): Ditto.
3381 * somread.c (som_symtab_read): Ditto.
3382 * solib.c (solib_find, solib_map_sections, update_solib_list)
3383 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3384 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
3385 (sharedlibrary_command, no_shared_libraries): Ditto.
3386 * solib-irix.c (locate_base, disable_break, enable_break)
3387 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3388 (irix_current_sos, irix_open_symbol_file_object)
3389 (irix_special_symbol_handling): Ditto.
3390 * solib-sunos.c (locate_base, first_link_map_member)
3391 (sunos_current_sos, disable_break, enable_break)
3392 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3394 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3395 (open_symbol_file_object, svr4_current_sos, enable_break)
3396 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3398 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3399 (frv_current_sos, enable_break, frv_special_symbol_handling)
3400 (frv_solib_create_inferior_hook): Ditto.
3401 * solist.h (struct target_so_ops): Extend the comments of the
3402 special_symbol_handling, current_sos and open_symbol_file_object
3405 2011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3407 * python/lib/gdb/__init__.py: Auto-load files in command and
3408 function directories.
3409 * python/python.c (finish_python_initialization): Use
3411 * python/lib/gdb/command/pretty_printers.py: Self register
3413 * NEWS: Document auto-loading.
3415 2011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3417 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3418 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3419 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3421 2011-08-08 Tom Tromey <tromey@redhat.com>
3423 * breakpoint.c (clean_up_filters): Remove.
3424 (catch_syscall_split_args): Use VEC_cleanup.
3426 2011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3428 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3429 (main): Uncomment "Demangling error\n".
3431 2011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3433 * solib-target.c (segment_attributes): Make them static.
3434 (section_attributes, library_children, library_attributes): Likewise.
3435 (library_list_children, library_list_attributes): Likesise.
3436 (library_list_elements): Likewise.
3438 2011-08-05 Pedro Alves <pedro@codesourcery.com>
3440 * exceptions.c (throw_exception): Don't disable the current
3442 * printcmd.c (disable_current_display_cleanup): New function.
3443 (do_one_display): Install a cleanup to disable the current display
3444 if doing the display throws.
3446 2011-08-05 Eli Zaretskii <eliz@gnu.org>
3448 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3449 initialization of the tp_new member to the corresponding
3450 gdbpy_initialize_* function.
3451 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3452 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3453 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3454 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3455 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3457 2011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3459 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3460 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3461 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3462 references to current_uiout.
3464 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3466 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3467 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3468 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3469 * top.c (gdb_readline_wrapper): Adjust.
3470 * tui/tui-interp.c (tui_command_loop):
3471 (_initialize_tui_interp): Don't install it.
3473 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3475 * ui-out.h (uiout): Rename to ...
3476 (current_uiout): ... this.
3477 * ui-out.c (uiout): Rename to ...
3478 (current_uiout): ... this.
3479 * ada-lang.c (print_it_exception, print_one_exception)
3480 (print_mention_exception): Adjust.
3481 * breakpoint.c (watchpoint_check): Adjust.
3482 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3483 (default_collect_info, watchpoints_info, print_one_catch_fork)
3484 (print_one_catch_vfork, print_one_catch_syscall)
3485 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3486 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3487 (print_it_watchpoint, print_mention_watchpoint)
3488 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3489 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3490 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3491 (bkpt_print_mention, momentary_bkpt_print_it)
3492 (tracepoint_print_mention, update_static_tracepoint)
3493 (tracepoints_info, save_breakpoints): Adjust.
3494 * cli-out.c (field_separator): Adjust.
3495 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3496 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3497 * frame.c (get_current_frame): Adjust.
3498 * infcmd.c (run_command_1, print_return_value): Adjust.
3499 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3500 * infrun.c (print_end_stepping_range_reason): Adjust.
3501 (print_signal_exited_reason, print_exited_reason): Adjust.
3502 (print_signal_received_reason, print_no_history_reason): Adjust.
3503 * interps.c (interp_set): Adjust.
3504 * osdata.c (info_osdata_command): Adjust.
3505 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3506 * remote-fileio.c (remote_fileio_request): Adjust.
3507 * remote.c (show_remote_cmd): Adjust.
3508 * solib.c (info_sharedlibrary_command): Adjust.
3509 * source.c (print_source_lines_base): Adjust.
3510 * stack.c (print_stack_frame): Adjust.
3511 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3512 * symfile-mem.c (add_vsyscall_page): Adjust.
3513 * symfile.c (load_progress, generic_load)
3514 (print_transfer_performance): Adjust.
3515 * thread.c (info_threads_command, restore_selected_frame)
3516 (thread_command): Adjust.
3517 * top.c (make_cleanup_restore_ui_file): Adjust.
3518 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3519 (print_one_static_tracepoint_marker): Adjust.
3520 * cli/cli-cmds.c (print_disassembly): Adjust.
3521 * cli/cli-decode.c (print_doc_line): Adjust.
3522 * cli/cli-interp.c (safe_execute_command): Adjust.
3523 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3524 (handle_redirections): Adjust.
3525 * cli/cli-script.c (show_user_1): Adjust.
3526 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3527 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3528 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3529 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3530 (mi_cmd_env_dir): Adjust.
3531 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3532 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3533 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3534 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3535 (list_args_or_locals): Adjust.
3536 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3537 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3538 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3539 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3540 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3541 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3542 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3543 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3544 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3545 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3546 (list_available_thread_groups, mi_cmd_list_thread_groups)
3547 (mi_cmd_data_list_register_names)
3548 (mi_cmd_data_list_changed_registers)
3549 (mi_cmd_data_list_register_values, get_register)
3550 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3551 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3552 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3553 (mi_execute_command, mi_load_progress): Adjust.
3554 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3555 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3557 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3558 * tui/tui-interp.c (tui_command_loop): Adjust.
3559 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3561 2011-08-04 Pedro Alves <pedro@codesourcery.com>
3563 * exceptions.c (struct catcher): Remove saved_uiout field.
3564 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3565 no longer save/resvore the global ui_out builder.
3566 (catch_exceptions_with_msg): Save/override/restore the global
3567 ui_out builder manually instead of relying on TRY_CATCH to do it.
3568 (catch_errors): Save/restore the global ui_out builder manually
3569 instead of relying on TRY_CATCH to do it.
3570 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3572 (TRY_CATCH): Adjust.
3573 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3574 the global ui_out builder manually instead of relying on TRY_CATCH
3577 2011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3579 * breakpoint.c (update_global_location_list): Ensure
3580 invariant 'first loc marked not duplicated and inserted,
3581 following locs marked duplicated/not inserted' is respected
3582 for multiple locations at the same address.
3583 (unduplicated_should_be_inserted) New function.
3584 (swap_insertion) New function.
3586 2011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3588 * stack.c (print_frame_arguments_choices): Comment typo fix.
3590 2011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3593 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3594 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3595 argument. Update callers.
3597 2011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
3600 * doublest.c (convert_doublest_to_floatformat): Pass correct
3601 mantissa length to put_field.
3603 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3605 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
3606 exception_print code path.
3607 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
3608 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
3609 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
3611 2011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3614 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
3615 Remove, merge them into ...
3616 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
3617 variable args and its initialization.
3618 (struct print_args_args, print_args_stub): Remove, merge them into
3620 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
3622 (do_gdb_disassembly): ... here. Remove variable args and its
3624 (print_frame): Remove variable args and its initialization, new
3625 variable gdbarch and numargs (from print_args_stub), inline here
3626 print_args_stub with a TRY_CATCH.
3627 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
3629 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
3630 New variable e, remove variable btargs and its initialization.
3632 2011-08-01 Tristan Gingold <gingold@adacore.com>
3634 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
3636 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3638 * breakpoint.c (insert_bp_location): Document return value.
3639 (insert_breakpoint_locations): Fix documentation.
3640 (remove_breakpoints): Add documentation.
3642 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3644 * breakpoint.c (insert_bp_location): Remove disabled_breaks
3645 argument. Update callers.
3647 2011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
3649 * stack.c (print_frame_info): Comment typo fix.
3651 2011-07-29 Sterling Augustine <saugustine@google.com>
3653 * MAINTAINERS (Write After Approval): Add myself to the list.
3655 2011-07-29 Tom Tromey <tromey@redhat.com>
3657 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
3658 (library_list_start_segment): Update.
3659 (library_list_start_section): Update.
3661 2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
3663 * varobj.c (value_get_print_value): Move hint check later into the
3664 function. Comment function. Free thevalue before reusing it.
3666 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3667 Pedro Alves <pedro@codesourcery.com>
3669 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
3671 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
3672 Assert the result kind.
3673 * value.h (value_one): Remove parameter lv.
3675 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3677 Fix crash on lval_computed values.
3678 * valops.c (value_zero): Use not_lval for lval_computed.
3680 2011-07-27 Tom Tromey <tromey@redhat.com>
3682 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
3683 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
3685 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3687 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
3688 "ptype" by their typedefs difference.
3690 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3692 * dwarf2expr.c (ctx_no_read_reg): New function.
3693 * dwarf2expr.h (ctx_no_read_reg): New declaration.
3694 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
3695 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
3696 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
3698 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3700 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
3701 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
3703 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
3704 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3705 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3706 (ctx_no_get_base_type): Move the functions here.
3707 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
3708 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
3709 (ctx_no_get_base_type): New declarations.
3711 2011-07-27 Tom Tromey <tromey@redhat.com>
3713 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
3715 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
3716 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
3718 2011-07-26 Sterling Augustine <saugustine@google.com>
3720 * cli/cli-dump.c (dump_binary_file): Change parameter type to
3722 (dump_bfd_file): Likewise.
3724 2011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3726 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
3727 (remote_hw_watchpoint_length_limit): New variable.
3728 (_initialize_remote) add set,show cmds for this new variable.
3729 * gdb.texinfo: document these new commands.
3730 * NEWS: Mention these new commands.
3732 2011-07-26 Pedro Alves <pedro@codesourcery.com>
3734 * breakpoint.c (works_in_software_mode_watchpoint): Also return
3735 true for software watchpoints.
3737 2011-07-26 Joel Brobecker <brobecker@adacore.com>
3741 2011-07-26 Tom Tromey <tromey@redhat.com>
3743 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
3744 * dwarf2read.c (read_indirect_string_at_offset): New function.
3745 (read_indirect_string): Use it.
3746 (dwarf_decode_macro_bytes): New function, taken from
3747 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
3748 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
3749 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
3751 (struct dwarf2_per_objfile) <macro>: New field.
3752 (dwarf2_elf_names): Add .debug_macro.
3753 (dwarf2_macros_too_long_complaint): Add 'section' argument.
3754 (dwarf2_locate_sections): Handle new section.
3755 (read_file_scope): Handle DW_AT_GNU_macros.
3756 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
3758 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3760 * NEWS: Mention dcache configuration.
3761 * dcache.c (dcache_set_list, dcache_show_list): New variables.
3762 (dcache_size, dcache_line_size): New variables.
3763 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
3764 (struct dcache_block): Make it expandable.
3765 (struct dcache_struct): New field.
3766 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
3767 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
3768 (dcache_poke_byte, dcache_print_line): Adjust.
3769 (set_dcache_size, set_dcache_line_size): New functions.
3770 (set_dcache_command, show_dcache_command): New functions.
3771 (_initialize_dcache): Add new commands.
3773 2011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
3775 * progspace.h (struct program_space): Add solib_add_generation.
3776 * infcmd.c (post_create_inferior): Only call solib_add if not
3778 * solib.c (solib_add): Increment solib_add_generation.
3780 2011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3782 Fix implicit pointer offsets.
3783 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
3786 2011-07-25 Tom Tromey <tromey@redhat.com>
3788 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
3790 (ada_exception_sal): Make 'ops' const.
3791 (ada_decode_exception_location): Likewise.
3792 (ada_decode_assert_location): Likewise.
3793 (catch_assert_command): Update.
3794 (catch_ada_exception_command): Update.
3795 (create_ada_exception_catchpoint): Make 'ops' const.
3796 * breakpoint.c (set_raw_breakpoint_without_location)
3797 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
3799 (create_internal_breakpoint): Update.
3800 (init_raw_breakpoint_without_location): Make 'ops' const.
3801 (init_raw_breakpoint, init_catchpoint)
3802 (create_fork_vfork_event_catchpoint)
3803 (create_syscall_event_catchpoint, init_breakpoint_sal)
3804 (create_breakpoint_sal, create_breakpoints_sal)
3805 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
3806 * breakpoint.h (struct breakpoint) <ops>: Now const.
3807 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
3810 2011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
3812 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
3814 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3816 * breakpoint.h (print_recreate_thread): Declare.
3817 (struct breakpoint): Move step_count, pass_count,
3818 number_on_target, static_trace_marker_id,
3819 static_trace_marker_id_idx ...
3820 (struct tracepoint): ... to this new struct.
3821 (get_tracepoint, get_tracepoint_by_number_on_target)
3822 (get_tracepoint_by_number): Change return type to struct
3824 * breakpoint.c (is_tracepoint_type): New, factored out from
3826 (is_tracepoint): Adjust.
3827 (print_one_breakpoint_location): Cast to struct tracepoint as
3828 necessary, and adjust.
3829 (print_recreate_catch_fork, print_recreate_catch_vfork)
3830 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
3831 print_recreate_thread.
3832 (init_breakpoint_sal): New, factored out from
3833 create_breakpoint_sal.
3834 (create_breakpoint_sal): Reimplement.
3835 (create_breakpoint): Allocate a struct tracecepoint if the caller
3836 wanted a tracepoint. Use init_breakpoint_sal and
3838 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
3839 (print_recreate_masked_watchpoint)
3840 (print_recreate_exception_catchpoint): Call print_recreate_thread.
3841 (tracepoint_print_one_detail): Adjust.
3842 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
3843 Dump the pass count here.
3844 (update_static_tracepoint): Adjust.
3845 (addr_string_to_sals): Adjust.
3846 (create_tracepoint_from_upload): Adjust. Change return type to
3847 struct tracepoint pointer.
3848 (trace_pass_set_count): Change parameter type to struct tracepoint
3849 pointer, and adjust.
3850 (trace_pass_command): Adjust.
3851 (get_tracepoint, get_tracepoint_by_number_on_target)
3852 (get_tracepoint_by_number): Change return type to struct
3853 tracepoint pointer, and adjust.
3854 (print_recreate_thread): New, factored out from save_breakpoints.
3855 (save_breakpoints): Don't print thread and task and passcount
3857 * remote.c (remote_download_tracepoint): Adjust.
3858 * tracepoint.c (trace_actions_command, validate_actionline)
3859 (start_tracing, tfind_1, trace_find_tracepoint_command)
3860 (trace_dump_command): Adjust.
3861 (find_matching_tracepoint): Change return type to struct
3862 tracepoint pointer, and adjust.
3863 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
3864 (tfile_trace_find, tfile_fetch_registers): Adjust.
3865 * tracepoint.h (create_tracepoint_from_upload): Change return type
3866 to struct tracepoint pointer.
3867 * ada-lang.c (print_recreate_exception): Call
3868 print_recreate_thread.
3869 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
3871 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3873 * breakpoint.h (struct breakpoint): Move ops as first field. Move
3874 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
3875 cond_exp_valid_block, val, val_valid, watchpoint_frame,
3876 watchpoint_thread, watchpoint_triggered ...
3877 (struct watchpoint): ... to this new struct.
3878 (is_watchpoint): Declare.
3879 (install_breakpoint): Add new `internal' parameter.
3880 * breakpoint.c (is_watchpoint): Delete declaration.
3881 (set_breakpoint_condition): Handle watchpoints.
3882 (is_watchpoint): Make public.
3883 (watchpoint_in_thread_scope): Change parameter type to struct
3885 (watchpoint_del_at_next_stop): Change parameter type to struct
3886 watchpoint. Remove assertion. Adjust.
3887 (update_watchpoint): Ditto.
3888 (insert_breakpoints, breakpoint_init_inferior)
3889 (watchpoints_triggered, watchpoint_check)
3890 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
3891 (bpstat_stop_status, print_one_breakpoint_location)
3892 (print_one_breakpoint_location, watchpoint_locations_match): Cast
3893 to struct watchpoint as necessary, and adjust.
3894 (install_breakpoint): Add `internal' argument. If true, don't
3895 mention the new breakpoint. Use set_breakpoint_number.
3896 (create_fork_vfork_event_catchpoint)
3897 (create_syscall_event_catchpoint): Adjust.
3898 (dtor_watchpoint): New.
3899 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
3900 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
3901 (print_it_watchpoint, print_mention_watchpoint)
3902 (print_recreate_watchpoint, insert_masked_watchpoint)
3903 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
3904 (print_one_detail_masked_watchpoint)
3905 (print_mention_masked_watchpoint)
3906 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
3907 necessary, and adjust.
3908 (watch_command_1): Allocate and initialize a struct watchpoint
3909 instead of a struct breakpoint. Use install_breakpoint.
3910 (catch_exec_command_1): Adjust.
3911 (base_breakpoint_dtor): Delete accesses to watchpoint specific
3913 (delete_breakpoint, enable_breakpoint_disp)
3914 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
3915 as necessary, and adjust.
3916 (initialize_breakpoint_ops): Install dtor_watchpoint as
3917 watchpoints' dtor method.
3918 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
3919 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
3920 to struct watchpoint as necessary, and adjust.
3922 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3924 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
3925 the the base class ops table.
3926 (catch_exception_breakpoint_ops)
3927 (catch_exception_unhandled_breakpoint_ops)
3928 (catch_assert_breakpoint_ops): Don't statically initialize.
3929 (initialize_ada_catchpoint_ops): New.
3930 (_initialize_ada_language): Call it.
3931 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
3932 (bkpt_breakpoint_ops): Forward declare.
3933 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
3934 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
3935 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
3936 (masked_watchpoint_breakpoint_ops)
3937 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
3938 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
3939 base class ops table.
3940 (null_re_set, null_check_status, null_works_in_software_mode)
3941 (null_resources_needed, null_print_one_detail): Delete.
3942 (bkpt_dtor): Rename to ...
3943 (base_breakpoint_dtor): ... this. Make static.
3944 (bkpt_allocate_location): Rename to ...
3945 (base_breakpoint_allocate_location): ... this. Make static.
3946 (base_breakpoint_re_set): New.
3947 (internal_error_pure_virtual_called): New.
3948 (base_breakpoint_insert_location, base_breakpoint_remove_location)
3949 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
3950 (base_breakpoint_works_in_software_mode)
3951 (base_breakpoint_resources_needed, base_breakpoint_print_it)
3952 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
3953 (base_breakpoint_print_recreate): New functions.
3954 (base_breakpoint_ops): New global.
3955 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
3956 (bkpt_breakpoint_hit): Make static.
3957 (bkpt_check_status): Delete.
3958 (bkpt_resources_needed): Make static.
3959 (bkpt_works_in_software_mode): Delete.
3960 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
3962 (bkpt_breakpoint_ops, internal_breakpoint_ops)
3963 (momentary_breakpoint_ops): Don't statically initialize.
3964 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
3966 (tracepoint_insert_location, tracepoint_remove_location)
3967 (tracepoint_check_status, tracepoint_works_in_software_mode)
3968 (tracepoint_print_it): Delete.
3969 (tracepoint_breakpoint_ops): Don't statically initialize.
3970 (initialize_breakpoint_ops): New.
3971 (_initialize_breakpoint): Call it.
3972 * breakpoint.h (null_re_set, null_works_in_software_mode)
3973 (null_resources_needed, null_check_status, null_print_one_detail):
3974 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
3975 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
3976 (bkpt_check_status, bkpt_resources_needed)
3977 (bkpt_works_in_software_mode, bkpt_print_it)
3978 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
3979 Delete declarations.
3980 (initialize_breakpoint_ops): Declare.
3982 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3984 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
3985 (momentary_bkpt_print_it): Simplify.
3987 2011-07-25 Pedro Alves <pedro@codesourcery.com>
3989 Split internal, momentary and user breakpoints breakpoint_ops
3992 * breakpoint.c (internal_breakpoint_ops)
3993 (momentary_breakpoint_ops): Forward declare.
3994 (create_internal_breakpoint): Add new breakpoint_ops parameter.
3995 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
3996 (create_overlay_event_breakpoint)
3997 (create_std_terminate_master_breakpoint)
3998 (create_exception_master_breakpoint): Create breakpoints with
3999 internal_breakpoint_ops vtable.
4000 (set_longjmp_breakpoint): Create momentary breakpoints with
4001 momentary_breakpoint_ops vtable, using
4002 momentary_breakpoint_from_master.
4003 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4004 (create_solib_event_breakpoint): Create breakpoints with
4005 internal_breakpoint_ops vtable.
4006 (set_momentary_breakpoint): Create breakpoints with
4007 momentary_breakpoint_ops vtable.
4008 (momentary_breakpoint_from_master): New, factored out from
4009 clone_momentary_breakpoint.
4010 (clone_momentary_breakpoint): Adjust.
4011 (watch_command_1): Create scope breakpoints with
4012 momentary_breakpoint_ops vtable.
4013 (bkpt_re_set): Remove handling of internal and momentary
4015 (bkpt_print_mention, bkpt_print_recreate): New.
4016 (bkpt_breakpoint_ops): Adjust.
4017 (internal_bkpt_re_set, internal_bkpt_check_status)
4018 (internal_bkpt_print_it, internal_bkpt_print_mention)
4019 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4020 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4021 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4022 (momentary_bkpt_print_recreate): New.
4023 (momentary_breakpoint_ops): New.
4025 2011-07-25 Pedro Alves <pedro@codesourcery.com>
4027 Implement most breakpoint_ops methods for all breakpoint types,
4028 and move the default handlings to the proper callbacks.
4030 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4031 works_in_software_mode method.
4032 (insert_bp_location): Go through breakpoint_ops->insert_location
4033 for software and hardware watchpoints.
4034 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4036 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4037 for software and hardware watchpoints.
4038 (print_it_typical): Delete.
4039 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4041 (watchpoint_check): Adjust comment.
4042 (bpstat_check_location): Simply always call the breakpoint's
4043 breakpoint_hit method.
4044 (bpstat_stop_status): Always call the breakpoint's check_status
4045 method. Remove special cases for watchpoints and internal event
4046 breakpoints from here (moved to the check_status implementations).
4047 (print_one_breakpoint_location): Assume b->ops is never NULL.
4048 Remove static tracepoint marker id printing from here (moved to
4049 the print_one_detail callback implementation of tracepoints).
4050 (init_bp_location): Assert OPS is never NULL.
4051 (allocate_bp_location): Always call the breakpoint's
4052 allocate_location method, and remove the default code from here.
4053 (free_bp_location): Always call the location's dtor method, and
4054 remove the default code from here.
4055 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4056 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4057 parameter. Pass it down.
4058 (set_raw_breakpoint): Ditto.
4059 (print_it_catch_fork): Adjust to take a bpstat as argument.
4060 (catch_fork_breakpoint_ops): Install methods.
4061 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4062 (catch_vfork_breakpoint_ops): Install methods.
4063 (dtor_catch_syscall): Call the base dtor.
4064 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4065 (catch_syscall_breakpoint_ops): Install methods.
4066 (dtor_catch_exec): Call the base dtor.
4067 (print_it_catch_exec): Adjust to take a bpstat as argument.
4068 (catch_exec_breakpoint_ops): Install methods.
4069 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4070 the breakpoint's resources_needed method, and remove the default
4072 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4074 (clone_momentary_breakpoint): Clone the original's ops.
4075 (mention): Always call the breakpoint's print_mention method, and
4076 remove the default code from here.
4077 (create_breakpoint_sal): Adjust to pass the ops to
4078 set_raw_breakpoint rather than setting it manually.
4079 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4080 ops to set_raw_breakpoint_without_location rather than setting it
4082 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4083 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4084 (ranged_breakpoint_ops): Install methods.
4085 (break_range_command): Adjust to pass the ops to
4086 set_raw_breakpoint rather than setting it manually.
4087 (re_set_watchpoint, breakpoint_hit_watchpoint)
4088 (check_status_watchpoint, resources_needed_watchpoint)
4089 (works_in_software_mode_watchpoint, print_it_watchpoint)
4090 (print_mention_watchpoint, print_recreate_watchpoint): New
4092 (watchpoint_breakpoint_ops): Install new methods.
4093 (print_it_masked_watchpoint): New function.
4094 (masked_watchpoint_breakpoint_ops): Install new methods.
4095 (watch_command_1): Adjust to pass the right breakpoint_ops to
4096 set_raw_breakpoint_without_location rather than setting it
4097 manually later. Record the current pspace.
4098 (print_it_exception_catchpoint): Adjust to take a bpstat as
4100 (gnu_v3_exception_catchpoint_ops): Install new methods.
4101 (say_where): New function.
4102 (null_re_set, null_check_status, null_works_in_software_mode)
4103 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4105 (bp_location_ops): New global.
4106 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4107 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4108 (bkpt_check_status, bkpt_resources_needed)
4109 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4110 (bkpt_print_recreate): New functions.
4111 (bkpt_breakpoint_ops): New global.
4112 (tracepoint_re_set, tracepoint_insert_location)
4113 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4114 (tracepoint_check_status, tracepoint_works_in_software_mode)
4115 (tracepoint_print_it, tracepoint_print_one_detail)
4116 (tracepoint_print_mention, tracepoint_print_recreate): New
4118 (tracepoint_breakpoint_ops): New global.
4119 (delete_breakpoint): Always call the breakpoint's dtor method, and
4120 remove the default handling from here.
4121 (breakpoint_re_set_default): Make static.
4122 (breakpoint_re_set_one): Always call the breakpoints re_set
4123 method, and remove the default handling from here.
4124 (trace_command, ftrace_command, strace_command)
4125 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4126 to create_breakpoint.
4127 (save_breakpoints): Always call the breakpoint's print_recreate
4128 method, and remove the default handling from here.
4130 * ada-lang.c (dtor_exception): Call the base dtor.
4131 (re_set_exception): Call the base method.
4132 (print_it_exception, print_it_catch_exception): Adjust to take a
4134 (catch_exception_breakpoint_ops): Install methods.
4135 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4137 (catch_exception_unhandled_breakpoint_ops): Install methods.
4138 (print_it_catch_assert): Adjust to take a bpstat as argument.
4139 (catch_assert_breakpoint_ops): Install methods.
4141 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4142 to take a bpstat as argument.
4143 (enum print_stop_action): Add describing comments to each enum
4145 (breakpoint_re_set_default): Delete declaration.
4146 (null_re_set, null_works_in_software_mode, null_resources_needed)
4147 (null_check_status, null_print_one_detail): Declare.
4148 (bkpt_breakpoint_ops): Declare.
4149 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4150 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4151 (bkpt_check_status, bkpt_resources_needed)
4152 (bkpt_works_in_software_mode, bkpt_print_it)
4153 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4156 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4157 bkpt_breakpoint_ops.
4158 * python/py-breakpoint.c (bppy_init): Ditto.
4160 2011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4162 * MAINTAINERS (Write After Approval): Add myself to the list.
4164 2011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4166 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4168 2011-07-22 Pedro Alves <pedro@codesourcery.com>
4170 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4171 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4172 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4174 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4175 (struct i386_debug_reg_state): New.
4176 (i386_init_dregs): New.
4178 (i386_cleanup_dregs): Use i386_init_dregs.
4179 (i386_show_dr): Add state parameter and adjust.
4180 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4182 (i386_remove_aligned_watchpoint): Likewise.
4183 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4184 (i386_update_inferior_debug_regs): New.
4185 (i386_insert_watchpoint): Work on a local mirror of the debug
4186 registers, and only update the inferior on success.
4187 (i386_remove_watchpoint): Ditto.
4188 (i386_region_ok_for_watchpoint): Adjust.
4189 (i386_stopped_data_address): Adjust.
4190 (i386_insert_hw_breakpoint): Adjust.
4191 (i386_remove_hw_breakpoint): Adjust.
4193 2011-07-22 Tom Tromey <tromey@redhat.com>
4195 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4196 from amd64_pseudo_register_read. Change arguments. Call
4197 mark_value_bytes_unavailable when needed.
4198 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4199 set_gdbarch_pseudo_register_read.
4200 * sentinel-frame.c (sentinel_frame_prev_register): Use
4201 regcache_cooked_read_value.
4202 * regcache.h (regcache_cooked_read_value): Declare.
4203 * regcache.c (regcache_cooked_read_value): New function.
4204 (regcache_cooked_read): Call
4205 gdbarch_pseudo_register_read_value if available.
4206 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4207 (i386_pseudo_register_read): Remove.
4208 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4209 i386_pseudo_register_read. Change arguments. Call
4210 mark_value_bytes_unavailable when needed.
4211 (i386_pseudo_register_read_value): New function.
4212 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4213 not set_gdbarch_pseudo_register_read.
4214 * gdbarch.sh (pseudo_register_read_value): New method.
4215 * gdbarch.c, gdbarch.h: Rebuild.
4216 * findvar.c (value_from_register): Call get_frame_register_value.
4218 2011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4220 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4222 (display_gdb_prompt): Likewise.
4223 (change_annotation_level): Likewise.
4224 (push_prompt): Likewise.
4225 (pop_prompt): Likewise.
4226 (handle_stop_sig): Use get_prompt with a level.
4227 * top.c (command_loop): Use get_prompt with a level.
4228 (set_async_annotation_level): Use set_prompt with a level.
4229 (get_prefix): New function.
4230 (set_prefix): Ditto.
4231 (set_suffix): Ditto.
4232 (get_suffix): Ditto.
4233 (get_prompt): Accept a level argument.
4234 (set_prompt): Accept a level argument. Free old prompts. Set
4235 new_async_prompt if level is 0.
4236 (init_main): Use set_prompt with a level. Do not set
4238 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4239 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4240 Modify set_prompt, get_prompt to account for levels.
4241 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4243 * python/python.c (before_prompt_hook): Use set_prompt.
4245 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4247 * defs.h: Add guard against inclusion in gdbserver.
4248 (struct ptid, ptid_t): Move to common/ptid.h.
4249 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4250 xsnprintf, internal_error): Move to common/common-utils.h.
4252 * gdb_assert.h: Move into common/ sub-directory.
4253 * gdb_locale.h: Ditto.
4254 * gdb_dirent.h: Ditto.
4255 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4256 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4257 Move into common/ptid.h.
4258 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4259 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4260 Change nomem to malloc_failure.
4261 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4262 * utils.c (nomem): Rename to malloc_failure.
4263 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4264 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4265 (gdb_buildargv): Change nomem to malloc_failure.
4266 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4267 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4268 ptid_is_pid): Move into common/ptid.c.
4269 (initialize_infrun): Delete initialization of null_ptid and
4271 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4272 linux_common_xfer_osdata.
4273 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4274 common/ptid.c and common/buffer.c.
4275 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4276 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4277 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4278 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4280 * common/gdb_assert.h: New.
4281 * common/gdb_dirent.h: New.
4282 * common/gdb_locale.h: New.
4283 * common/buffer.c: New.
4284 * common/buffer.h: New.
4285 * common/ptid.c: New.
4286 * common/ptid.h: New.
4287 * common/xml-utils.c: New.
4288 * common/xml-utils.h: New.
4289 * common/common-utils.c: New.
4290 * common/common-utils.h: New.
4291 * common/linux-osdata.c: New.
4292 * common/linux-osdata.h: New.
4293 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4294 * config/arm/linux.mh (NATDEPFILES): Ditto.
4295 * config/i386/linux.mh (NATDEPFILES): Ditto.
4296 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4297 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4298 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4299 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4300 * config/mips/linux.mh (NATDEPFILES): Ditto.
4301 * config/pa/linux.mh (NATDEPFILES): Ditto.
4302 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4303 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4304 * config/s390/s390.mh (NATDEPFILES): Ditto.
4305 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4306 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4307 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4309 2011-07-21 Matt Rice <ratmice@gmail.com>
4311 * NEWS: Add info macros and info definitions commands.
4313 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4315 * NEWS: Document Python prompt substitution hook.
4317 2011-07-18 Matt Rice <ratmice@gmail.com>
4320 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4321 * macrotab.c (foreach_macro): Ditto.
4322 (foreach_macro_in_scope): Ditto.
4323 * macrocmd.c (print_macro_callback): New function.
4324 (info_macro_command): Move some code to print_macro_definition.
4325 (print_macro_definition): New function.
4326 (print_one_macro): Add new arguments to callback.
4327 (info_definitions_command): New function.
4328 (info_macros_command): Ditto.
4329 (_initialize_macrocmd): Add info macros and info definitions commands.
4330 * symtab.c (add_macro_name): Add new arguments to callback.
4332 2011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4333 Tom Tromey <tromey@redhat.com>
4335 * top.c (set_prompt): Rewrite to free previous prompt, free
4336 asynch_new_prompt and set both on new prompts.
4337 * event-top.c (display_gdb_prompt): Add prompt substitution
4339 * python/python.c (before_prompt_hook): New function.
4341 2011-07-20 Matt Rice <ratmice@gmail.com>
4343 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4344 arguments to store_unsigned_integer.
4346 2011-07-20 Tom Tromey <tromey@redhat.com>
4348 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4349 in some declaration-only cases.
4351 2011-07-18 Tom Tromey <tromey@redhat.com>
4354 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4355 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4356 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4357 <debug_type_section>: New field.
4358 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4359 (load_cu): Use appropriate section.
4360 (create_signatured_type_table_from_index): Add 'section'
4362 (dwarf2_read_index): Only allow a single .debug_types section.
4363 (dw2_get_file_names): Use appropriate section.
4364 (read_type_comp_unit_head): Add 'section' argument.
4365 (create_debug_types_hash_table): Loop over all .debug_types
4367 (init_cu_die_reader): Use appropriate section.
4368 (process_psymtab_comp_unit, load_partial_comp_unit)
4369 (load_full_comp_unit, read_die_and_children, find_partial_die)
4370 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4371 (lookup_signatured_type_at_offset): Add 'section' argument.
4372 (read_signatured_type_at_offset): Add 'sect' argument.
4373 (read_signatured_type): Use appropriate section.
4374 (set_die_type, get_die_type_at_offset): Update.
4375 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4377 (write_psymtabs_to_index): Don't allow index with more than one
4378 .debug_types section.
4380 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4382 Fix crash if referenced CU is aged out.
4383 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4384 xfree of block.data.
4385 (indirect_pieced_value): New variable back_to, use to for xfree of
4387 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4389 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4390 (load_cu): New function from ...
4391 (dw2_do_instantiate_symtab): ... the code here ...
4392 (process_full_comp_unit): ... and here.
4393 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4396 2011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4398 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4401 2011-07-19 Gary Benson <gbenson@redhat.com>
4403 * infrun.c (struct execution_control_state): New member
4404 stop_func_filled_in.
4405 (clear_stop_func, fill_in_stop_func): New functions.
4406 (handle_inferior_event): Call clear_stop_func rather than
4407 manipulating the execution control state directly.
4408 Call fill_in_stop_func lazily as required rather than
4409 directly calling find_pc_partial_function in all cases.
4411 2011-07-18 Tom Tromey <tromey@redhat.com>
4413 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4414 checking for variable-sized array.
4416 2011-07-18 Jean-Charles Delay <delay@adacore.com>
4418 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4419 of supported languages.
4420 * varobj.c: Add top definitions and basic implementation of the
4421 following callbacks: ada_number_of_children, ada_name_of_variable,
4422 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4423 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4424 (languages): Register Ada-specific callbacks.
4425 (variable_language): Add the Ada case in the language setter switch.
4427 2011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4429 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4431 2011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4434 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4435 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4436 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4437 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4438 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4439 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4440 (struct dwarf_expr_context_funcs): New, move here methods from ...
4441 (struct dwarf_expr_context): ... here. New fields funcs.
4442 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4443 (dwarf_expr_ctx_funcs): New.
4444 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4445 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4446 (needs_frame_ctx_funcs): New.
4447 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4449 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4451 * MAINTAINERS (Write After Approval): Add myself to the list.
4453 2011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4455 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4456 that CIE pointer of an FDE really points to a CIE .
4458 2011-07-15 Hui Zhu <teawater@gmail.com>
4460 * remote.c (remote_get_trace_status): Add comments.
4462 2011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4464 Code cleanup - constify struct lval_funcs.
4465 * dwarf2loc.c (pieced_value_funcs): Make it const.
4466 * infrun.c (siginfo_value_funcs): Likewise.
4467 * opencl-lang.c (opencl_value_funcs): Likewise.
4468 * valops.c (value_assign, value_ind): Make the funcs variable const.
4469 * value.c (struct value): Make location.computed.funcs target const.
4470 Rearrange the comments.
4471 (allocate_computed_value): Make the funcs parameter target const.
4472 (value_computed_funcs): Return the funcs target const.
4473 (value_free, value_copy, set_value_component_location): Make the funcs
4475 * value.h (allocate_computed_value): Make the funcs parameter target
4477 (value_computed_funcs): Return the funcs target const.
4478 * windows-tdep.c (tlb_value_funcs): Make it const.
4480 2011-07-14 Hui Zhu <teawater@gmail.com>
4482 * remote.c (remote_get_trace_status): Initialize p.
4484 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4487 * remote.c (remote_get_trace_status): New variable ex. Put
4488 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4490 2011-07-13 Tom Tromey <tromey@redhat.com>
4492 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4493 value_from_contents for final conversion.
4495 2011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4498 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4499 Indent prototypes so they do not get into tags.
4501 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4503 Code cleanup making also optimized out values lazy.
4504 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4505 allocate_optimized_out_value. Twice.
4506 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4507 * findvar.c (read_var_value): Likewise.
4508 * value.c (allocate_optimized_out_value): New function.
4509 * value.h (allocate_optimized_out_value): New declaration.
4511 2011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4513 Fix occasional crash of CTRL-C during DWARF read in.
4514 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4516 2011-07-11 Tom Tromey <tromey@redhat.com>
4518 * regcache.c (struct regcache_descr): Fix typo.
4519 * i387-tdep.c (i387_supply_xsave): Fix typo.
4521 2011-07-11 Tom Tromey <tromey@redhat.com>
4523 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4524 (read_file_scope, read_type_unit_scope): Use it.
4526 2011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4528 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4531 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4534 * python/python.c: Set gdbpy_should_print_stack default to off.
4535 (set_python): Deprecate maint set python print-stack to
4537 (_initialize_python): Deprecate maint set/show python print-stack.
4538 Add new prefix command, python. Add new setting, print-backtrace.
4539 * NEWS: Document set python print-stack. Document default change.
4541 2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4543 * python/py-inferior.c (infpy_dealloc): New function.
4544 (inferior_to_inferior_object): Return a new object, or a
4545 new reference to the existing object.
4546 (find_thread_object): Cleanup references to inferior.
4547 (delete_thread_object): Ditto.
4548 * python/py-infthread.c (create_thread_object): Do not increment
4549 inferior reference count.
4551 2011-07-08 Tom Tromey <tromey@redhat.com>
4553 * dwarf2loc.c (locexpr_regname): New function.
4554 (locexpr_describe_location_piece): Use it.
4555 (disassemble_dwarf_expression): Add per_cu argument. Use
4557 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4558 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4560 (locexpr_describe_location_1): Add per_cu argument.
4561 (locexpr_describe_location): Update.
4562 (loclist_describe_location): Update.
4564 2011-07-08 Tom Tromey <tromey@redhat.com>
4566 * dwarf2expr.c (execute_stack_op): Add QUIT.
4568 2011-07-07 Hui Zhu <teawater@gmail.com>
4571 2011-07-06 Hui Zhu <teawater@gmail.com>
4572 * remote.c (remote_start_remote): Add TRY_CATCH for
4573 remote_get_trace_status.
4574 * tracepoint.c (disconnect_tracing): Ditto.
4576 2011-07-07 Andrew Burgess <aburgess@broadcom.com>
4578 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
4579 variables as signed, not unsigned.
4581 2011-07-06 Joel Brobecker <brobecker@adacore.com>
4583 * jit.c (jit_inferior_init): Reformat forward declaration.
4585 2011-07-06 Matt Rice <ratmice@gmail.com>
4587 * MAINTAINERS (Write After Approval): Add myself to the list.
4589 2011-07-06 Hui Zhu <teawater@gmail.com>
4591 * remote.c (remote_start_remote): Add TRY_CATCH for
4592 remote_get_trace_status.
4593 * tracepoint.c (disconnect_tracing): Ditto.
4595 2011-07-05 Tom Tromey <tromey@redhat.com>
4597 * symtab.c (operator_chars): Now static.
4598 * linespec.c (operator_chars): Don't declare.
4600 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4602 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
4604 2011-07-05 Tom Tromey <tromey@redhat.com>
4606 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
4607 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
4608 (TYPE_CPLUS_REALLY_JAVA): New macro.
4609 * dwarf2read.c (process_structure_scope): Set
4610 TYPE_CPLUS_REALLY_JAVA.
4612 2011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
4614 * ada-lang.c: Fix typos.
4615 * amd64-tdep.c: Likewise.
4616 * breakpoint.c: Likewise.
4617 * cli/cli-decode.c: Likewise.
4618 * findcmd.c: Likewise.
4619 * inline-frame.c: Likewise.
4620 * mi/mi-main.c: Likewise.
4621 * minsyms.c: Likewise.
4622 * monitor.c: Likewise.
4623 * monitor.h: Likewise.
4624 * prologue-value.c: Likewise.
4625 * reverse.c: Likewise.
4626 * s390-tdep.c: Likewise.
4628 2011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4630 * jit.c (jit_inferior_init): Forward declare.
4631 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
4633 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4635 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
4637 2011-07-04 Tristan Gingold <gingold@adacore.com>
4639 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
4640 (tcb_fieldno): Add activation_link field.
4641 (get_known_tasks_addr): Moved and rewritten.
4642 (get_tcb_types_info): Set activation_link field.
4643 (read_known_tasks_array): Add parameter. Rewritten.
4644 (read_known_tasks_list): New function.
4645 (read_known_tasks): New function.
4646 (ada_build_task_list): Call read_known_tasks instead of
4647 read_known_tasks_array.
4648 * ravenscar-thread.c: Add first_task_name constant.
4649 (has_ravenscar_runtime): Check for task list too.
4651 2011-07-04 Tristan Gingold <gingold@adacore.com>
4653 * ada-tasks.c: Renames fieldno to actb_fieldno.
4654 (ada_get_task_number): Indentation.
4655 (get_tcb_types_info): Remove all parameters. Write directly
4657 (ptid_from_atcb_common): Adjust.
4658 (read_atcb): Adjust.
4660 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4662 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
4664 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4666 * ui-out.c (ui_out_field_core_addr): Mention that the function
4667 description is in the header file.
4668 * ui-out.h (ui_out_field_core_addr): Document function.
4670 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4672 * ui-out.c (ui_out_get_field_separator): Remove unused function.
4673 * ui-out.h (ui_out_get_field_separator): Remove prototype.
4675 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4677 * symtab.c (expand_line_sal): Remove empty line.
4679 2011-07-04 Thomas Schwinge <thomas@schwinge.name>
4681 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
4682 same way as ELFOSABI_NONE.
4683 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
4685 2011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4687 * breakpoint.c: Fix typos in comments.
4688 * linespec.c: Likewise.
4689 * symtab.c: Likewise.
4691 2011-07-04 Joel Brobecker <brobecker@adacore.com>
4693 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
4694 section in separate object files.
4696 2011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4698 Fix false GCC warning.
4699 * linespec.c (decode_line_1): Initialize values.
4701 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4703 * linespec.c (find_method): Accept the function type automatically only
4704 if it was specified with parameter types.
4706 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4708 Stop on first linespec terminator instead of eating what we can.
4709 * linespec.c (is_linespec_boundary): New function.
4710 (name_end): Remove function.
4711 (keep_name_info): New parameter on_boundary, replace the body.
4712 (decode_line_1): Provide the parameter to keep_name_info.
4713 (decode_compound): Likewise. Drop the trailing java return type
4716 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4718 Fall back linespec to minimal symbols.
4719 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
4720 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
4721 (find_method, symbol_found): Change error to cplusplus_error.
4723 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4725 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
4727 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4728 Tom Tromey <tromey@redhat.com>
4730 * dwarf2read.c (check_physname): New variable.
4731 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
4732 (show_check_physname): New function.
4733 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
4735 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4737 * machoread.c (macho_symfile_read): Delete OBE comment.
4739 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4741 * machoread.c (struct macho_oso_data): Delete.
4742 (current_oso): Delete.
4743 (macho_relocate_common_syms): New function, mostly extracted
4745 (macho_add_oso_symfile): Call macho_relocate_common_syms.
4746 Remove code that sets and unset current_oso.
4747 (macho_symfile_relocate): Delete handling of common symbols,
4748 now moved to macho_relocate_common_syms.
4750 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4752 * darwin-nat.c (darwin_ptrace): Add documentation.
4753 Set errno to zero before calling ptrace. If ptrace returns
4754 -1 and errno is zero, then change then return zero.
4755 (darwin_kill_inferior): Issue a warning instead of triggering
4756 a failed assertion when the PT_KILL ptrace operations returned
4759 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4761 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4762 only when inf->private->no_ptrace.
4764 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4766 * ada-lang.c (print_it_exception): Print temporary catchpoints
4767 as "Temporary catchpoint".
4768 (print_mention_exception): Likewise.
4770 2011-07-01 Tom Tromey <tromey@redhat.com>
4772 * jv-lang.c (java_language_defn): Use java_printchar,
4774 (java_get_encoding): New function.
4775 (java_emit_char): Use generic_emit_char.
4776 (java_printchar): New function.
4777 (java_printstr): Likewise.
4779 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4781 * ada-typeprint.c (print_record_type): If unable to decode
4782 the name of the parent type, use the encoded name.
4784 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4786 * ada-typeprint.c (ada_print_type): Fix both PAD type and
4787 pointer to constrained packed array type output.
4788 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
4789 packed array output.
4791 2011-07-01 Jean-Charles Delay <delay@adacore.com>
4793 * ada-typeprint.c (print_array_type): removed if condition on show
4794 being negative for bounds printing.
4796 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4798 * ada-lang.c (ada_identical_enum_types_p): New function.
4799 (symbols_are_identical_enums): New function.
4800 (remove_extra_symbols): Do nothing if NSYMS < 2.
4801 Use symbols_are_identical_enums.
4803 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4805 * ada-valprint.c (ada_value_print): Handle typedefs.
4807 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4809 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
4811 2011-07-01 Eric Botcazou <ebotcazou@adacore.com>
4813 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
4814 (decode_constrained_packed_array): Likewise.
4815 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
4817 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4819 * ada-exp.y (convert_char_literal): Handle typedef types.
4821 2011-07-01 Joel Brobecker <brobecker@adacore.com>
4823 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
4825 2011-06-30 Tom Tromey <tromey@redhat.com>
4827 * varobj.c (varobj_create): Call do_cleanups on early exit path.
4828 * valops.c (find_overload_match): Call do_cleanups on early exit
4830 * solib.c (solib_find): Call do_cleanups on early exit path.
4832 2011-06-30 Tom Tromey <tromey@redhat.com>
4834 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
4835 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
4836 return paths. Defer final do_cleanups until last return.
4837 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
4840 2011-06-30 Tom Tromey <tromey@redhat.com>
4842 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
4844 2011-06-30 Andrew Burgess <aburgess@broadcom.com>
4846 * MAINTAINERS (Write After Approval): Add myself to the list.
4848 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4850 Disable epilogue unwinders on recent GCCs.
4851 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
4852 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4853 * dwarf2read.c (process_full_comp_unit): Initialize
4854 EPILOGUE_UNWIND_VALID.
4855 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
4856 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
4857 * symtab.h (struct symtab): New field epilogue_unwind_valid.
4859 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4861 Code cleanup - reformatting.
4862 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
4863 (producer_is_gcc_ge_4): ... here, change the return value.
4864 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
4867 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4869 Fix non-only rename list for Fortran modules import.
4870 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
4871 cp_add_using_directive caller.
4872 (cp_add_using_directive): New parameter excludes, describe it. New
4873 variables ix and param. Compare if also excludes match. Allocate NEW
4874 with variable size, initialize EXCLUDES there.
4875 (cp_lookup_symbol_imports): New variable excludep, test
4876 current->EXCLUDES with it.
4877 * cp-support.h: Include vec.h.
4878 (struct using_direct): New field excludes, describe it.
4879 (DEF_VEC_P (const_char_ptr)): New.
4880 (cp_add_using_directive): New parameter excludes.
4881 * defs.h (const_char_ptr): New typedef.
4882 * dwarf2read.c (read_import_statement): New variables child_die,
4883 excludes and cleanups, read in excludes.
4884 (read_namespace): Adjust the cp_add_using_directive caller.
4886 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4889 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
4890 negative comparisons.
4892 2011-06-29 André Pönitz <andre.poenitz@nokia.com>
4894 * mi/mi-main.c (mi_cmd_list_features): Emit
4895 breakpoint-notifications.
4897 2011-06-29 Tom Tromey <tromey@redhat.com>
4900 * valprint.h (generic_emit_char, generic_printstr): Declare.
4901 * valprint.c (wchar_printable, append_string_as_wide)
4902 (print_wchar): Move from c-lang.c.
4903 (generic_emit_char): New function; mostly taken from c_emit_char.
4904 (generic_printstr): New function; mostly taken from c_printstr.
4905 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
4906 represented as arrays.
4907 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
4909 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
4910 identically to TYPE_CODE_INT.
4911 * f-lang.c (f_get_encoding): New function.
4912 (f_emit_char): Use generic_emit_char.
4913 (f_printchar): Replace comment.
4914 (f_printstr): Use generic_printstr.
4915 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
4916 "character" types specially.
4917 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
4919 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
4921 (c_emit_char): Call generic_emit_char.
4922 (c_printstr): Call generic_printstr.
4924 2011-06-29 Gary Benson <gbenson@redhat.com>
4926 * breakpoint.c (bpstat_what): Removed duplicated case.
4928 2011-06-28 Tom Tromey <tromey@redhat.com>
4930 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
4932 2011-06-27 Tom Tromey <tromey@redhat.com>
4934 * valops.c (find_overload_match): Call do_cleanups before early
4936 * top.c (execute_command): Call do_cleanups before early return.
4937 (command_loop): Likewise.
4938 * stack.c (backtrace_command): Make a null cleanup early. Don't
4939 conditionally call do_cleanups.
4940 * python/py-value.c (TRY_CATCH): Move cleanup handling into
4942 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
4943 so cleanups are always run.
4944 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
4945 * findcmd.c (parse_find_args): Call do_cleanups on early return
4947 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
4948 Don't conditionally call do_cleanups.
4949 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
4952 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4954 * MAINTAINERS (Write After Approval): Use default email address.
4956 2011-06-27 Joel Brobecker <brobecker@adacore.com>
4958 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
4960 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
4962 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
4963 saved_regs_mask and copied_regs_mask fields.
4964 (sparc_record_save_insn): New prototype.
4965 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
4966 (sparc_record_save_insn): New function.
4967 (sparc_analyze_prologue): Add head comment. Recognize store insns
4968 of call-saved registers. Use OFFSET consistently. Recognize flat
4969 frames and cache their settings.
4970 (sparc32_skip_prologue): Handle flat frames.
4971 (sparc_frame_cache): Add frame_offset to the base address.
4972 (sparc32_frame_cache): Adjust to new frame description.
4973 (sparc32_frame_prev_register): Likewise.
4974 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
4975 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4976 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4977 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
4978 frame by calling sparc_record_save_insn.
4979 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
4980 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
4981 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
4983 2011-06-27 Tristan Gingold <gingold@adacore.com>
4985 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
4986 field by map_addr and map_len.
4987 (dwarf2_read_section): Adjust for the new bfd_mmap api.
4988 (munmap_section_buffer): Likewise.
4990 2011-06-24 Tom Tromey <tromey@redhat.com>
4992 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
4993 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
4994 * python/python.c (gdbpy_parameter): Make 'arg' const.
4995 (execute_gdb_command): Likewise.
4996 (gdbpy_decode_line): Likewise. Copy it.
4997 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
4998 (gdbpy_write): Make 'arg' const.
4999 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5001 (gdbpy_lookup_type): Likewise.
5002 * python/py-prettyprint.c (print_children): Make 'name' const.
5003 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5004 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5006 * python/py-function.c (fnpy_init): Make 'name' const.
5007 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5008 (gdbpy_string_to_argv): Make 'input' const.
5009 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5011 * gdbtypes.h (lookup_typename): Update.
5012 * gdbtypes.c (lookup_typename): Make 'name' const.
5013 (lookup_struct): Likewise.
5014 (lookup_union): Likewise.
5015 (lookup_enum): Likewise.
5017 2011-06-24 Tom Tromey <tromey@redhat.com>
5019 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5020 gdb_thread_db.h. Move all common/ entries to be together.
5021 (TAGS): Don't depend on DEPFILES.
5023 2011-06-23 Yao Qi <yao@codesourcery.com>
5025 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5026 * remote.c (remote_start_remote): ... here.
5027 * monitor.c (monitor_open): ... here.
5029 2011-06-23 Andrew Burgess <aburgess@broadcom.com>
5031 * gdbtypes.c (append_composite_type_field_aligned): Fix
5032 calculation of bit position based on alignment.
5034 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5036 * breakpoint.c (bpstat_stop_status): Call the check_status
5037 breakpoint_ops method.
5038 (print_one_breakpoint_location): Also print the condition for Ada
5039 exception catchpoints.
5040 (allocate_bp_location): New, factored out from
5041 allocate_bp_location.
5042 (allocate_bp_location): Adjust. Call the owner breakpoint's
5043 allocate_location method, if there is one.
5044 (free_bp_location): Call the locations's dtor method, if there is
5046 (init_raw_breakpoint_without_location): New breakpoint_ops
5048 (set_raw_breakpoint_without_location): Adjust.
5049 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5050 (set_raw_breakpoint): Adjust.
5051 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5052 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5053 re_set and check_status methods.
5054 (init_catchpoint): Don't memset, initialize thread, addr_string
5055 and enable_state. Pass the ops down to init_raw_breakpoint.
5056 (install_catchpoint): Rename to ...
5057 (install_breakpoint): ... this, and make extern.
5058 (create_fork_vfork_event_catchpoint): Adjust.
5059 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5060 re_set and check_status methods.
5061 (create_syscall_event_catchpoint): Adjust.
5062 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5063 (masked_watchpoint_breakpoint_ops): Install NULL
5064 allocate_location, re_set and check_status methods.
5065 (catch_exec_command_1): Adjust.
5066 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5067 re_set and check_status methods.
5068 (create_ada_exception_breakpoint): Rename to ...
5069 (init_ada_exception_breakpoint): ... this. Add a struct
5070 breakpoint parameter, and delete the exp_string, cond_string and
5071 cond parameters. Use init_raw_breakpoint, and don't install or
5072 mention the breakpoint yet. Don't clear breakpoint fields that
5073 init_raw_breakpoint already clears.
5074 (re_set_breakpoint): Delete, split into ...
5075 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5077 (breakpoint_re_set_one): Call the breakpoint's
5078 breakpoint_ops->re_set implementation, if there's one. Adjust.
5079 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5080 (struct bp_location_ops): New type.
5081 (struct bp_location): New field `ops'.
5082 (struct breakpoint_ops): New `allocate_location', `re_set' and
5083 `check_status' fields. Make `breakpoint_hit''s description match
5085 (init_bp_location): Declare.
5086 (breakpoint_re_set_default): Declare.
5087 (create_ada_exception_breakpoint): Rename to ...
5088 (init_ada_exception_breakpoint): ... this. Add a struct
5089 breakpoint parameter, and delete the exp_string, cond_string and
5091 (install_breakpoint): Declare.
5092 * ada-lang.c: Include exceptions.h.
5093 <Ada exceptions description>: Update.
5094 (struct ada_catchpoint_location): New type.
5095 (ada_catchpoint_location_dtor): New function.
5096 (ada_catchpoint_location_ops): New global.
5097 (ada_catchpoint): New type.
5098 (create_excep_cond_exprs): New function.
5099 (dtor_exception, allocate_location_exception, re_set_exception)
5100 (should_stop_exception, check_status_exception): New functions.
5101 (print_one_exception, print_mention_exception)
5102 (print_recreate_exception): Adjust.
5103 (dtor_catch_exception, allocate_location_catch_exception)
5104 (re_set_catch_exception, check_status_catch_exception): New
5106 (catch_exception_breakpoint_ops): Install them.
5107 (dtor_catch_exception_unhandled)
5108 (allocate_location_catch_exception_unhandled)
5109 (re_set_catch_exception_unhandled)
5110 (check_status_catch_exception_unhandled): New functions.
5111 (catch_exception_unhandled_breakpoint_ops): Install them.
5112 (dtor_catch_assert, allocate_location_catch_assert)
5113 (re_set_catch_assert, check_status_catch_assert): New functions.
5114 (catch_assert_breakpoint_ops): Install them.
5115 (ada_exception_catchpoint_p): Delete.
5116 (catch_ada_exception_command_split)
5117 (ada_exception_catchpoint_cond_string): Rename exp_string
5118 parameter to excep_string. Adjust.
5119 (ada_parse_catchpoint_condition): Delete.
5120 (ada_exception_sal): Rename the exp_string parameter to
5121 excep_string. Delete the cond_string and cond parameters.
5123 (ada_decode_exception_location): Rename the exp_string parameter
5124 to excep_string. Delete the cond_string and cond parameters.
5126 (create_ada_exception_catchpoint): New function.
5127 (catch_ada_exception_command, ada_decode_assert_location)
5128 (catch_assert_command): Adjust.
5129 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5131 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5133 * ada-lang.c: Include arch-utils.h.
5134 (ada_decode_exception_location): Make static.
5135 (catch_ada_exception_command): Moved here from breakpoint.c.
5136 (ada_decode_assert_location): Make static.
5137 (catch_assert_command): Moved here from breakpoint.c.
5138 (_initialize_ada_lang): Install the exception and assert
5139 catchpoint commands here.
5140 * ada-lang.h (ada_decode_exception_location)
5141 (ada_decode_assert_location): Delete declarations.
5142 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5144 (create_ada_exception_breakpoint): Make extern.
5145 (catch_ada_exception_command, catch_assert_command): Moved to
5147 (add_catch_command): Make extern.
5148 (_initilize_breakpoint): Don't install the exception and assert
5149 catchpoint commands here.
5150 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5152 (add_catch_command, create_ada_exception_breakpoint): Declare.
5154 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5156 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5157 the breakpoint to the breakpoint chain here.
5158 (set_raw_breakpoint_without_location): Add the breakpoint to the
5159 breakpoint chain here.
5160 (init_raw_breakpoint): Adjust comments.
5161 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5163 (init_catchpoint): Don't set the catchpoint's breakpoint number
5165 (install_catchpoint): New function.
5166 (create_fork_vfork_event_catchpoint)
5167 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5168 use install_catchpoint.
5170 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5172 * breakpoint.c (create_catchpoint_without_mention)
5173 (create_catchpoint): Delete.
5175 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5177 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5178 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5179 reference to exec_pathname.
5180 (struct exec_catchpoint): New type.
5181 (dtor_catch_exec): New function.
5182 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5183 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5184 (catch_exec_command_1): Adjust to use init_catchpoint.
5185 (delete_breakpoint): Remove reference to exec_pathname.
5187 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5189 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5190 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5191 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5192 reference to syscalls_to_be_caught.
5193 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5195 (struct syscall_catchpoint): New type.
5196 (dtor_catch_syscall): New function.
5197 (insert_catch_syscall, remove_catch_syscall)
5198 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5199 (print_recreate_catch_syscall): Adjust.
5200 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5201 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5202 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5203 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5204 (masked_watchpoint_breakpoint_ops)
5205 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5206 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5207 there is one. Remove references to syscalls_to_be_caught.
5208 (catching_syscall_number): Adjust.
5209 * ada-lang.c (catch_exception_breakpoint_ops)
5210 (catch_exception_unhandled_breakpoint_ops)
5211 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5213 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5215 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5217 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5218 reference to forked_inferior_pid.
5219 (struct fork_catchpoint): New type.
5220 (breakpoint_hit_catch_fork, print_it_catch_fork)
5221 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5222 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5223 (create_fork_vfork_event_catchpoint): Adjust to use
5226 2011-06-22 Pedro Alves <pedro@codesourcery.com>
5228 * breakpoint.c (add_to_breakpoint_chain)
5229 (init_raw_breakpoint_without_location): New functions, factored
5231 (set_raw_breakpoint_without_location): ... this one.
5232 (init_raw_breakpoint): New function, factored out from
5233 set_raw_breakpoint and adjusted to use
5234 init_raw_breakpoint_without_location.
5235 (set_raw_breakpoint): Adjust.
5236 (init_catchpoint): New function, factored out from
5237 create_catchpoint_without_mention and adjusted to use
5238 init_raw_breakpoint.
5239 (create_catchpoint_without_mention): Adjust.
5241 2011-06-22 Tom Tromey <tromey@redhat.com>
5243 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5244 argument of 0 specially.
5246 2011-06-22 Yao Qi <yao@codesourcery.com>
5248 * infrun.c (handle_inferior_event): Remove write-only local variable
5249 `sw_single_step_trap_p'.
5251 2011-06-20 Tom Tromey <tromey@redhat.com>
5253 * symtab.c (lookup_language_this): End loop if block is NULL.
5255 2011-06-17 Tom Tromey <tromey@redhat.com>
5257 * valops.c (value_of_this): Use lookup_language_this.
5258 * symtab.h (lookup_language_this): Declare.
5259 * symtab.c (lookup_language_this): New function.
5260 (lookup_symbol_aux): Use lookup_language_this.
5261 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5263 2011-06-17 Tom Tromey <tromey@redhat.com>
5265 * value.h (value_of_this): Update.
5266 (value_of_local): Remove.
5267 * valops.c (value_of_this): Rename from value_of_local. Change
5269 * p-exp.y (exp): Update.
5270 (variable): Likewise.
5271 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5273 2011-06-17 Tom Tromey <tromey@redhat.com>
5275 * valops.c (value_of_local): Complain if NAME is NULL.
5276 * std-operator.def (OP_OBJC_SELF): Remove.
5277 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5278 * objc-exp.y (name_not_typename): Use OP_THIS.
5279 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5281 <OP_OBJC_SELF>: Remove.
5282 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5284 2011-06-16 Tristan Gingold <gingold@adacore.com>
5286 * python/py-events.h (gdb_py_events): Make it extern.
5287 * python/py-evtregistry.c (gdb_py_events): Declare.
5289 2011-06-16 Hui Zhu <teawater@gmail.com>
5291 * remote.c (remote_trace_set_readonly_regions): Add check for
5292 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5295 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5297 * arm-linux-tdep.c: Include "auxv.h".
5299 (ARM_LINUX_SIZEOF_VFP): Define.
5300 (arm_linux_supply_vfp): New function.
5301 (arm_linux_collect_vfp): Likewise.
5302 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5303 (arm_linux_fpa_regset_sections): New variable.
5304 (arm_linux_vfp_regset_sections): Likewise.
5305 (arm_linux_core_read_description): New function.
5306 (arm_linux_init_abi): Install arm_linux_core_read_description and
5307 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5308 appropriate for the architecture.
5309 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5310 (tdesc_arm_with_m): Declare.
5311 (tdesc_arm_with_iwmmxt): Likewise.
5312 (tdesc_arm_with_vfpv2): Likewise.
5313 (tdesc_arm_with_vfpv3): Likewise.
5314 (tdesc_arm_with_neon): Likewise.
5315 * arm-linux-nat.c: Move features/*.c includes ...
5316 * arm-tdep.c: ... here.
5317 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5318 target description data structures ...
5319 * arm-tdep.c (_initialize_arm_tdep): ... here.
5320 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5321 HWCAP_VFPv3D16): Move definitions ...
5322 * arm-linux-tdep.h: ... here.
5324 2011-06-15 Hui Zhu <teawater@gmail.com>
5326 * remote.c (remote_trace_set_readonly_regions): Add a check for
5329 2011-06-14 Tom Tromey <tromey@redhat.com>
5331 * coffread.c (coffread_objfile): Rename from current_objfile.
5332 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5333 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5335 2011-06-14 Tom Tromey <tromey@redhat.com>
5337 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5338 (class_symtab): Remove.
5339 (jv_dynamics_progspace_key): New global.
5340 (jv_per_objfile_free): Reset program space data. Update assert.
5341 Don't clear globals.
5342 (get_dynamics_objfile): Use and set program space data.
5343 (get_java_class_symtab): Use get_dynamics_objfile.
5344 (add_class_symbol): Likewise.
5345 (java_link_class_type): Likewise.
5346 (java_object_type, jv_clear_object_type, set_java_object_type):
5348 (get_java_object_type): Update. Don't cache result.
5349 (is_object_type): Don't call set_java_object_type.
5350 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5351 initialize jv_dynamics_progspace_key.
5353 2011-06-14 Tom Tromey <tromey@redhat.com>
5355 * symtab.h (current_objfile): Don't declare.
5356 * objfiles.h (current_objfile): Don't declare.
5357 * objfiles.c (current_objfile): Remove.
5358 * mdebugread.c (current_objfile): New file-scope global.
5359 * dbxread.c (current_objfile): New file-scope global.
5360 * coffread.c (current_objfile): New file-scope global.
5362 2011-06-13 Pedro Alves <pedro@codesourcery.com>
5364 * top.h (line): Rename to ...
5365 (saved_command_line): ... this.
5366 (linesize): Rename to ...
5367 (saved_command_line_size): ... this.
5368 * top.c (line): Rename to ...
5369 (saved_command_line): ... this.
5370 (linesize): Rename to ...
5371 (saved_command_line_size): ... this.
5372 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5373 * event-top.c (command_line_handler): Adjust.
5374 * main.c (captured_main): Adjust.
5376 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5378 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5379 get_frame_func instead of get_frame_pc to determine the code
5380 address used to construct the frame ID.
5381 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5382 (i386_epilogue_frame_this_id): Likewise.
5383 (i386_epilogue_frame_prev_register): New function.
5384 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5385 (i386_stack_tramp_frame_sniffer): Fix coding style.
5386 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5387 (i386_gdbarch_init): Fix comments.
5389 2011-06-12 Mark Kettenis <kettenis@gnu.org>
5391 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5392 instruction when walking back through the instruction stream.
5394 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5396 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5397 fullname parameters order.
5399 2011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5402 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5404 * psymtab.c (map_symbol_filenames_psymtab)
5405 (map_partial_symbol_filenames): Likewise.
5406 * psymtab.h: Include symfile.h.
5407 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5408 * symfile.h (symbol_filename_ftype): New.
5409 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5410 map_symbol_filenames, clarify more the naming in comment.
5412 2011-06-07 Doug Evans <dje@google.com>
5414 * cc-with-index.sh: Fix typos in comment.
5415 Look for ../../gdb, for fullname.exp.
5417 2011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5418 Pedro Alves <pedro@codesourcery.com>
5420 * cli/cli-cmds.c (shell_escape): Use waitpid.
5421 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5423 2011-06-07 Tristan Gingold <gingold@adacore.com>
5425 * xcoffread.c (dwarf2_xcoff_names): New variable.
5426 (aix_process_linenos): Add a guard.
5427 (xcoff_symfile_finish): Free dwarf2.
5428 (xcoff_initial_scan): Add dwarf2 support.
5430 2011-06-06 Pedro Alves <pedro@codesourcery.com>
5432 * infcall.c (run_inferior_call): Don't mask async. Instead force
5433 a synchronous wait, if the target can async.
5435 * target.h (struct target_ops): Delete to_async_mask.
5436 (target_async_mask): Delete.
5437 * target.c (update_current_target): Delete references to to_async_mask.
5438 * linux-nat.c (linux_nat_async_mask_value): Delete.
5439 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5440 to linux_nat_async_mask_value.
5441 (linux_nat_async_mask): Delete.
5442 (linux_nat_async, linux_nat_close): Remove references to
5443 linux_nat_async_mask_value.
5444 * record.c (record_async_mask_value): Delete.
5445 (record_async): Remove references to record_async_mask_value.
5446 (record_async_mask): Delete.
5447 (record_can_async_p, record_is_async_p): Remove references to
5448 record_async_mask_value.
5449 (init_record_ops, init_record_core_ops): Remove references to
5451 * remote.c (remote_async_mask_value): Delete.
5452 (init_remote_ops): Remove reference to remote_async_mask.
5453 (remote_can_async_p, remote_is_async_p): Remove references to
5454 remote_async_mask_value.
5455 (remote_async): Remove references to remote_async_mask_value.
5456 (remote_async_mask): Delete.
5458 * infrun.c (fetch_inferior_event): Don't claim registers changed
5459 if the current thread is already not executing.
5461 2011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5463 From Stephen Kitt <steve@sk2.org>
5464 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5465 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5467 2011-06-03 Joel Brobecker <brobecker@adacore.com>
5469 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5470 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5472 2011-06-03 Tom Tromey <tromey@redhat.com>
5474 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5476 * python/py-exitedevent.c (create_exited_event_object): Change
5477 type of 'exit_code'. Optionally add exit_code attribute.
5478 (emit_exited_event): Change type of 'exit_code'.
5479 * python/py-event.h (emit_exited_event): Update.
5480 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5481 * infrun.c (handle_inferior_event): Set exit code fields on
5483 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5485 * inferior.c (exit_inferior_1): Initialize new fields.
5487 2011-06-03 Tom Tromey <tromey@redhat.com>
5489 * dwarf2expr.c (get_signed_type): New function.
5490 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5492 2011-06-02 Keith Seitz <keiths@redhat.com>
5494 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5496 2011-06-02 Pedro Alves <pedro@codesourcery.com>
5498 * top.h (simplified_command_loop): Delete declaration.
5500 2011-06-01 Mike Frysinger <vapier@gentoo.org>
5502 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5503 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5505 2011-06-01 Yao Qi <yao@codesourcery.com>
5507 * objfiles.h (obj_section_addr): Update reference to objfile from
5509 (obj_section_endaddr): Likewise.
5511 2011-06-01 Daniel Jacobowitz <drow@false.org>
5513 * MAINTAINERS: Update my email address and affiliation. Also
5514 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5516 2010-05-31 Keith Seitz <keiths@redhat.com>
5519 * linespec.c (get_search_block): New function.
5520 (find_methods): Add FILE_SYMTATB parameter and use it and
5521 get_search_block to pass an appropriate block to
5522 lookup_symbol_in_namespace.
5523 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5524 Check if *ARGPTR starts with a filename first.
5525 If it does, call locate_first_half again to locate the next
5526 "first half" of the linespec.
5527 Pass FILE_SYMTATB to decode_objc and decode_compound.
5528 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5529 (locate_first_half): Stop on the first colon seen.
5530 (decode_compound): Add FILE_SYMTAB parameter.
5531 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5532 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5533 get_search_block with lookup_symbol.
5534 (find_method): Add FILE_SYMTAB parameter and pass it to
5536 (decode_objc): Use get_search_block.
5538 2010-05-31 Keith Seitz <keiths@redhat.com>
5541 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5542 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5543 and CP_ANONYMOUS_NAMESPACE_LEN.
5544 (cp_is_anonymous): Likewise.
5545 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5546 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5547 * dwarf2read.c (namespace_name): Likewise.
5548 (fixup_partial_die): Likewise.
5549 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5550 seen in the input, keep it.
5552 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5554 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5555 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5556 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5557 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5558 * remote.c (_initialize_remote): Register
5559 async_remote_interrupt_twice directly as
5560 sigint_remote_twice_token event.
5562 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5564 * target.h (enum inferior_event_type): Delete INF_ERROR.
5565 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5567 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5569 * interps.c (interp_set): Don't cancel continuations.
5571 2011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5573 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5575 2011-05-30 Pedro Alves <pedro@codesourcery.com>
5577 * continuations.h (continuation_ftype): Add `err' parameter.
5578 Document parameters.
5579 (do_all_continuations, do_all_continuations_thread)
5580 (do_all_intermediate_continuations)
5581 (do_all_intermediate_continuations_thread)
5582 (do_all_inferior_continuations): Add `err' parameter.
5583 * continuations.c (do_my_continuations_1, do_my_continuations)
5584 (do_all_inferior_continuations, do_all_continuations_ptid)
5585 (do_all_continuations_thread_callback)
5586 (do_all_continuations_thread, do_all_continuations)
5587 (do_all_intermediate_continuations_thread_callback)
5588 (do_all_intermediate_continuations_thread)
5589 (do_all_intermediate_continuations): Add `err' parameter, and pass
5590 it down all the way to the continuations proper.
5591 * inf-loop.c (inferior_event_handler): If fetching an inferior
5592 event throws an error, don't pop the target, and still call the
5593 continuations, but with `err' set. Adjust all other continuation
5595 * breakpoint.c (until_break_command_continuation): Add `err'
5597 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
5598 issue another step if `err' is set.
5599 (struct until_next_continuation_args): New.
5600 (until_next_continuation): Add `err' parameter. Adjust.
5601 (until_next_command): Adjust.
5602 (struct finish_command_continuation_args): Add `thread' field.
5603 (finish_command_continuation): Add `err' parameter. Handle it.
5604 (finish_forward): Adjust.
5605 (attach_command_continuation): Add `err' parameter. Handle it.
5606 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
5607 cancel the continuations.
5608 * interps.c (interp_set): Adjust to cancel the continuations.
5609 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
5610 continuations rather than discarding.
5611 (free_thread): Don't clear thread inferior resources here.
5612 (delete_thread_1): Do it here instead. And do it before removing
5613 the thread from the threads list. Tag the thread as exited before
5614 clearing thread inferior resources.
5616 2011-05-30 Joel Brobecker <brobecker@adacore.com>
5618 * infcall.c (call_function_by_hand): Rephrase error message.
5620 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5622 * defs.h (struct thread_info, struct inferior): Delete forward
5624 * breakpoint.h (struct thread_info): New forward declaration.
5625 * observer.sh (struct inferior): New forward declaration.
5626 * python/python-internal.h (struct inferior): New forward
5629 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5631 * defs.h (struct continuation, continuation_ftype)
5632 (continuation_free_arg_ftype, add_continuation)
5633 (do_all_continuations, do_all_continuations_thread)
5634 (discard_all_continuations, discard_all_continuations_thread)
5635 (add_intermediate_continuation, do_all_intermediate_continuations)
5636 (do_all_intermediate_continuations_thread)
5637 (discard_all_intermediate_continuations)
5638 (discard_all_intermediate_continuations_thread)
5639 (add_inferior_continuation, do_all_inferior_continuations)
5640 (discard_all_inferior_continuations): Move to ...
5641 * continuations.h: ... this new file.
5642 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
5643 infcmd.c, inferior.c, infrun.c, interps.c: Include
5646 2011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5647 Doug Evans <dje@google.com>
5649 Fix PR 10970, PR 12702.
5650 * linux-nat.c (linux_lwp_is_zombie): New function.
5651 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
5652 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
5654 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5656 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
5658 (add_continuation, add_intermediate_continuation)
5659 (add_inferior_continuation): Use them.
5660 * continuations.c (struct continuation): Use them.
5661 (make_continuation_ftype): Delete.
5662 (make_continuation, add_inferior_continuation, add_continuation)
5663 (add_intermediate_continuation): Use continuation_ftype and
5664 continuation_free_arg_ftype. Rename parameters to shorter names.
5666 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5668 * continuations.c (make_continuation): Make it return void.
5669 (do_my_continuations): Rename to ...
5670 (do_my_continuations_1): ... this. Remove old_chain parameter and
5672 (do_my_continuations): New.
5673 (discard_my_continuations): Rename to ...
5674 (discard_my_continuations_1): ... this. Remove old_chain
5675 parameter and adjust.
5676 (discard_my_continuations): New.
5677 (add_inferior_continuation): Simplify.
5678 (do_all_inferior_continuations): Reimplement on top
5679 do_my_continuations.
5680 (discard_all_inferior_continuations): Simplify.
5681 (add_continuation): Simplify.
5682 (do_all_continuations_ptid): Simplify.
5683 (discard_all_continuations_thread_callback): Simplify.
5684 (add_intermediate_continuation): Simplify.
5685 (discard_all_intermediate_continuations_thread_callback):
5688 2011-05-27 Pedro Alves <pedro@codesourcery.com>
5690 * utils.c (struct continuation, add_continuation)
5691 (add_inferior_continuation)
5692 (do_all_inferior_continuations, discard_all_inferior_continuations)
5693 (restore_thread_cleanup, do_all_continuations_ptid)
5694 (do_all_continuations_thread_callback)
5695 (do_all_continuations_thread, do_all_continuations)
5696 (discard_all_continuations_thread_callback)
5697 (discard_all_continuations_thread, discard_all_continuations)
5698 (add_intermediate_continuation)
5699 (do_all_intermediate_continuations_thread_callback)
5700 (do_all_intermediate_continuations_thread)
5701 (do_all_intermediate_continuations)
5702 (discard_all_intermediate_continuations_thread_callback)
5703 (discard_all_intermediate_continuations_thread)
5704 (discard_all_intermediate_continuations): Move to ...
5705 * continuations.c: ... this new file, and adjust to no longer
5706 implement continuations on top of cleanups.
5707 * Makefile.in (SFILES): Add continuations.c.
5708 (COMMON_OBS): Add continuations.o.
5710 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5712 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
5713 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
5714 Internal error on invalid values.
5715 * reverse.c: Don't handle EXEC_ERROR.
5716 * mi/mi-main.c: Don't handle EXEC_ERROR.
5718 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5720 * record.c: Include event-loop.h, inf-loop.h.
5721 (record_beneath_to_async): New global.
5722 (tmp_to_async): New global.
5723 (record_async_inferior_event_token): New global.
5724 (record_open_1): Don't error out if async is enabled.
5725 (record_open): Handle to_async. Create an async event source in
5727 (record_close): Delete the async event source.
5728 (record_resumed): New global.
5729 (record_execution_dir): New global.
5730 (record_resume, record_core_resume): Set them. Register the
5731 target on the event loop.
5732 (record_wait): Rename to ...
5733 (record_wait_1): ... this. Add more debug output. Handle
5734 TARGET_WNOHANG, and the target beneath returning
5735 TARGET_WAITKIND_IGNORE.
5736 (record_wait): Reimplement on top of record_wait_1.
5737 (record_async_mask_value): New global.
5738 (record_async, record_async_mask, record_can_async_p)
5739 (record_is_async_p, record_execution_direction): New functions.
5740 (init_record_ops, init_record_core_ops): Install new methods.
5741 * infrun.c (fetch_inferior_event): Temporarily switch the global
5742 execution direction to the direction the target was going.
5743 (execution_direction): Change type to int.
5744 * target.c (default_execution_direction): New function.
5745 (update_current_target): Inherit and de_fault
5746 to_execution_direction.
5747 * target.h (struct target_ops) <to_execution_direction>: New
5749 (target_execution_direction): New macro.
5750 * inferior.h (execution_direction): Change type to int.
5752 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5754 * infcall.c (call_function_by_hand): Don't allow calling functions
5755 in reverse execution mode.
5757 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5759 * infcmd.c (finish_command): Allow async finish in reverse.
5761 2011-05-26 Yao Qi <yao@codesourcery.com>
5763 * gdb_thread_db.h: Delete. Move to ...
5764 * common/gdb_thread_db.h: ... here.
5766 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5768 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
5769 function's entry point instead of a manually managed momentary
5770 breakpoint, and only ever issue one proceed call.
5771 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
5772 doing a reverse-finish, switch to stepi mode, to do another step.
5773 (insert_step_resume_breakpoint_at_sal): Make public.
5774 (normal_stop): No need to save function value return registers if
5776 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
5778 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5780 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
5781 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
5782 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
5784 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
5785 step-resume breakpoints.
5786 (print_it_typical): Handle bp_hp_step_resume.
5787 (bpstat_what): Ditto.
5788 (bptype_string): Ditto.
5789 (print_one_breakpoint_location): Ditto.
5790 (allocate_bp_location): Ditto.
5792 (breakpoint_re_set_one): Ditto.
5793 * infrun.c (handle_inferior_event): Adjust. Split
5794 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
5795 BPSTAT_WHAT_HP_STEP_RESUME.
5796 (insert_step_resume_breakpoint_at_sal): Rename to ...
5797 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
5798 parameter. Handle it.
5799 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
5800 insert_step_resume_breakpoint_at_sal_1.
5801 (insert_step_resume_breakpoint_at_frame): Rename to ...
5802 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
5803 set a high-priority step-resume breakpoint.
5804 (insert_step_resume_breakpoint_at_frame): Adjust comment.
5805 (insert_step_resume_breakpoint_at_caller): Ditto.
5807 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5809 * breakpoint.c (iterate_over_related_breakpoints): New.
5810 (do_map_delete_breakpoint): New.
5811 (delete_command): Pass do_map_delete_breakpoint to
5812 map_breakpoint_numbers.
5813 (do_disable_breakpoint): New.
5814 (do_map_disable_breakpoint): Iterate over the breakpoint's related
5816 (do_enable_breakpoint): Rename to ...
5817 (enable_breakpoint_disp): ... this.
5818 (enable_breakpoint): Adjust.
5819 (do_enable_breakpoint): New.
5820 (enable_once_breakpoint): Delete.
5821 (do_map_enable_breakpoint): New.
5822 (do_map_enable_once_breakpoint): New.
5823 (enable_once_command, enable_delete_command)
5824 (delete_trace_command): Iterate over the breakpoint's related
5827 2011-05-26 Pedro Alves <pedro@codesourcery.com>
5829 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
5830 for ALPHA_ZERO_REGNUM.
5831 (alpha_supply_int_regs): Explicitly supply zero as the value for
5832 ALPHA_ZERO_REGNUM in the register cache.
5833 * alpha-nat.c (fetch_osf_core_registers): Ditto.
5835 2011-05-26 Yao Qi <yao@codesourcery.com>
5837 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
5839 2011-05-26 Tristan Gingold <gingold@adacore.com>
5841 * symfile.h (struct dwarf2_section_names): New type.
5842 (struct dwarf2_debug_sections): New type.
5843 (dwarf2_has_info): Add parameter.
5844 * dwarf2read.c (dwarf2_elf_names): New variable.
5845 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
5846 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
5847 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
5848 (dwarf2_has_info): Add names parameter. Pass names
5849 to dwarf2_locate_sections.
5850 (section_is_p): Rewrite using the names parameter.
5851 (dwarf2_locate_sections): Use section names from the names parameter.
5852 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
5853 * elfread.c (read_psyms): Ditto.
5854 * machoread.c (macho_symfile_read): Ditto.
5856 2011-05-25 Andreas Schwab <schwab@redhat.com>
5859 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
5861 2011-05-24 Keith Seitz <keiths@redhat.com>
5864 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
5865 (decode_compound): Unconditionally call keep_name_info.
5867 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5869 * breakpoint.c (watchpoint_check): If the watchpoint went out of
5870 scope, clear its command list.
5871 (map_breakpoint_numbers): Don't walk the related breakpoints list
5874 2011-05-24 Tom Tromey <tromey@redhat.com>
5876 * MAINTAINERS: Move Jim Blandy to past maintainers.
5878 2011-05-24 Tristan Gingold <gingold@adacore.com>
5880 * symfile.h (enum dwarf2_section_enum): New type.
5881 (dwarf2_get_section_info): New prototype.
5882 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
5883 section_name by sect. Use a switch to select the info.
5884 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
5885 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
5887 2011-05-24 Pedro Alves <pedro@codesourcery.com>
5889 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
5890 shared library event breakpoint if there's no execution.
5892 2011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
5894 * breakpont.c (remove_hw_watchpoints): Remove unused function.
5895 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
5897 2011-05-23 Tom Tromey <tromey@redhat.com>
5899 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
5902 2011-05-23 Doug Evans <dje@google.com>
5904 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
5905 entry for RuntimeError to doc string.
5907 2011-05-23 Jerome Guitton <guitton@adacore.com>
5909 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
5910 sequence for probing loops.
5912 2011-05-23 Pedro Alves <pedro@codesourcery.com>
5914 * infrun.c (user_visible_resume_ptid): Fix typos in describing
5917 2011-05-21 Mark Kettenis <kettenis@gnu.org>
5919 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
5920 zero as the value for %g0 in the register cache.
5921 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
5922 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
5924 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5926 * infrun.c (proceed): Set previous_inferior_ptid here.
5927 (init_wait_for_inferior): Initialize previous_inferior_ptid from
5928 inferior_ptid, not null_ptid.
5929 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
5930 (fetch_inferior_event): Nor here.
5932 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5934 * inf-loop.c (inferior_event_handler): Only output a message if
5937 2011-05-20 Luis Machado <lgustavo@codesourcery.com>
5939 * MAINTAINERS: Update my e-mail address.
5941 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5943 * infrun.c (proceed): Switch the inferior event loop to
5944 INF_EXEC_COMPLETE if the target refused to resume from a
5947 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5949 * infcmd.c: Include "inf-loop.h".
5950 (step_once): When stepping into an inline subroutine, pretend the
5951 target has run. If the target can async, switch the inferior
5952 event loop to INF_EXEC_COMPLETE.
5953 * inferior.h (user_visible_resume_ptid): Declare.
5954 * infrun.c (user_visible_resume_ptid): New function, factored out
5957 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
5958 that the current thread is running. Merge async and sync
5961 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5963 * infcmd.c (step_1): Simplify synchronous case.
5965 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5967 * tracepoint.c: Include exceptions.h.
5968 (TFILE_PID): Move higher in file.
5969 (tfile_open): Delay pushing the tfile target until we're assured
5970 the tfile header is present in the file. Wrap reading the initial
5971 newline-terminated lines in TRY_CATCH. Pop the target if the
5972 initial setup failed. Add the tfile's thread immediately
5973 aftwards, before any non-essential setup. Don't skip
5974 post_create_inferior if there are no traceframes present in the
5976 (tfile_close): Remove redundant check for null before xfree call.
5977 (tfile_thread_alive): New function.
5978 (init_tfile_ops): Register it as to_thread_alive callback.
5980 2011-05-20 Pedro Alves <pedro@codesourcery.com>
5982 * tracepoint.c (tfile_open): Delete #if 0'd code.
5984 2011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5986 Fix -readnow for -gdwarf-4 unused type units.
5987 * dwarf2read.c (struct signatured_type): Remove the field offset.
5988 (create_signatured_type_table_from_index): Remove its initialization.
5989 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
5990 instead. Add a complaint call.
5991 (process_psymtab_comp_unit): Change assignment to gdb_assert.
5992 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
5993 (lookup_signatured_type_at_offset, read_signatured_type)
5994 (write_one_signatured_type): Update the field for per_cu.
5996 2011-05-19 Tom Tromey <tromey@redhat.com>
5998 * python/py-inferior.c (python_inferior_exit): Use
6000 (python_on_resume): Likewise.
6002 2011-05-19 Matt Rice <ratmice@gmail.com>
6004 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6006 2011-05-19 Hui Zhu <teawater@gmail.com>
6008 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6010 2011-05-19 Hui Zhu <teawater@gmail.com>
6012 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6014 2011-05-18 Tom Tromey <tromey@redhat.com>
6016 * dwarf2read.c (dwarf2_add_field): Constify.
6017 * value.c (value_static_field): Constify.
6018 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6020 * ax-gdb.c (gen_static_field): Constify
6022 2011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6024 * linux-nat.c (kill_callback): Use SIGKILL first.
6026 2011-05-18 Joel Brobecker <brobecker@adacore.com>
6028 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6030 2011-05-18 Tom Tromey <tromey@redhat.com>
6032 * value.c (value_fn_field): Constify.
6033 * symtab.c (gdb_mangle_name): Constify.
6034 * stabsread.c (update_method_name_from_physname): Make 'physname'
6036 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6037 const. Use explicit fputc_filtered loop.
6038 (pascal_type_print_base): Constify.
6039 * p-lang.h (pascal_type_print_method_args): Update.
6040 * linespec.c (add_matching_methods): Constify.
6041 (add_constructors): Likewise.
6042 * jv-typeprint.c (java_type_print_base): Constify.
6043 * gdbtypes.h (struct cplus_struct_type)
6044 <fn_fieldlist.fn_field.physname>: Now const.
6045 * dwarf2read.c (compute_delayed_physnames): Constify.
6046 (dwarf2_add_member_fn): Likewise.
6047 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6049 2011-05-18 Pedro Alves <pedro@codesourcery.com>
6051 * infrun.c (resume): Mention which is the current thread, and its
6052 current PC in debug output.
6053 (prepare_to_proceed): Mention the thread switching in debug
6056 2011-05-18 Tom Tromey <tromey@redhat.com>
6058 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6059 path check. Use xmalloc and cleanups.
6060 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6062 2011-05-17 Tom Tromey <tromey@redhat.com>
6064 * cp-valprint.c (cp_print_value_fields): Catch errors from
6067 2011-05-17 Tom Tromey <tromey@redhat.com>
6069 * dwarf2read.c (dwarf2_get_die_type): Call
6070 get_die_type_at_offset.
6071 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6072 get_base_type function.
6074 2011-05-17 Tomas Martinec <fyzmat@gmail.com>
6076 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6079 2011-05-16 Doug Evans <dje@google.com>
6081 * python/py-auto-load.c (source_section_scripts): Mention objfile
6084 2011-05-15 Doug Evans <dje@google.com>
6086 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6087 (try_thread_db_load_from_pdir): Call it. If unable to find
6088 libthread_db in directory of libpthread, see if we're looking at
6089 the separate-debug-info copy.
6091 * python/py-autoload.c (print_script): Print "Missing" instead of
6092 "No" for missing scripts.
6093 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6095 2011-05-13 Doug Evans <dje@google.com>
6097 * ui-file.c (stdio_file_write_async_safe): Add comment.
6099 2011-05-14 Hui Zhu <teawater@gmail.com>
6101 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6103 2011-05-13 Doug Evans <dje@google.com>
6105 Support $pdir and $sdir in libthread-db-search-path.
6106 * NEWS: Mention $sdir,$pdir.
6107 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6108 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6109 (try_thread_db_load_from_sdir): New function.
6110 (try_thread_db_load_from_dir): New function.
6111 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6112 system directories if search of libthread-db-search-path fails,
6113 that is now done via $sdir.
6114 (has_libpthread): New function.
6115 (thread_db_load): Remove search for libthread_db in directory of
6116 libpthread, that is now done via $pdir.
6118 * NEWS: Mention "info auto-load-scripts".
6119 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6120 script_not_found_warning_printed.
6121 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6122 all callers updated. Initialize script_not_found_warning_printed.
6123 (get_auto_load_pspace_data_for_loading): New function.
6124 (maybe_add_script): New function.
6125 (source_section_scripts): Simplify. Only print one warning regardless
6126 of the number of auto-load scripts not found.
6127 (clear_section_scripts): Clear script_not_found_warning_printed.
6128 (auto_load_objfile_script): Record script in hash table.
6129 (count_matching_scripts): New function.
6130 (maybe_print_script): Renamed from maybe_print_section_script, all
6131 callers updated. Rewrite to use ui_out_*.
6132 (info_auto_load_scripts): Renamed from
6133 maintenance_print_section_scripts, all callers updated.
6134 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6135 renamed as "info auto-load-scripts".
6137 2011-05-13 Tom Tromey <tromey@redhat.com>
6139 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6140 (read_sleb128): Likewise.
6142 2011-05-13 Tom Tromey <tromey@redhat.com>
6144 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6147 2011-05-13 Doug Evans <dje@google.com>
6149 * linux-nat.c (debug_linux_nat_async): Delete.
6150 Replace all references to use debug_linux_nat instead.
6151 (show_debug_linux_nat_async): Delete.
6152 (sigchld_handler): Call ui_file_write_async_safe instead of
6154 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6155 * ui-file.c (struct ui_file): New member to_write_async_safe.
6156 (null_file_write_async_safe): New function.
6157 (ui_file_write_async_safe): New function.
6158 (set_ui_file_write_async_safe): New function.
6159 (ui_file_new): Initialize to_write_async_safe.
6160 (stdio_file_write_async_safe): New function.
6161 (struct stdio_file): New member fd.
6162 (stdio_file_new): Initialize to_write_async_safe, fd.
6163 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6165 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6166 (set_ui_file_write_async_safe): Declare.
6167 (ui_file_write_async_safe): Declare.
6169 2011-05-13 Tom Tromey <tromey@redhat.com>
6171 * utils.c (do_value_free): New function.
6172 (make_cleanup_value_free): Likewise.
6173 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6175 (dwarf2_loc_desc_needs_frame): Call
6176 make_cleanup_value_free_to_mark.
6177 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6178 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6180 (new_dwarf_expr_context): Don't call value_mark.
6181 * dwarf2-frame.c (execute_stack_op): Call
6182 make_cleanup_value_free_to_mark.
6183 * defs.h (make_cleanup_value_free): Declare.
6185 2011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6187 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6188 prepare_execute_command.
6189 * top.c (prepare_execute_command): Return cleanup.
6190 (execute_command): Use cleanup from prepare_execute_command.
6191 * top.h (prepare_execute_command): Change prototype to return
6193 * defs.h (struct value): Add opaque declaration.
6194 (make_cleanup_value_free_to_mark): Add prototype.
6195 * utils.c (do_value_free_to_mark): New function.
6196 (make_cleanup_value_free_to_mark): Likewise.
6198 2011-05-12 Tom Tromey <tromey@redhat.com>
6200 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6201 cast left-hand-side to unsigned.
6203 2011-05-12 Tom Tromey <tromey@redhat.com>
6206 * value.h (value_from_contents): Declare.
6207 * value.c (value_from_contents): New function.
6208 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6209 (dwarf2_get_die_type): New function.
6210 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6211 (allocate_piece_closure): Acquire reference to values.
6212 (read_pieced_value): Update for value-based expressions.
6213 (write_pieced_value): Likewise.
6214 (free_pieced_value_closure): Call value_free as needed.
6215 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6216 Update for value-based expressions.
6217 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6218 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6219 <get_base_type>: New field.
6220 (struct dwarf_expr_piece) <v.value>: Change type.
6221 <v.regno>: New field.
6222 (struct dwarf_expr_context) <mark>: New field.
6223 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6224 (dwarf_expr_pop, dwarf_expr_push): Remove.
6225 (dwarf_expr_push_address): Declare.
6226 * dwarf2expr.c (dwarf_arch_cookie): New global.
6227 (struct dwarf_gdbarch_types): New.
6228 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6230 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6232 (dwarf_expr_push_address): New function.
6233 (dwarf_expr_pop): Now static.
6234 (dwarf_expr_fetch): Change return type.
6235 (dwarf_require_integral): New function.
6236 (dwarf_expr_fetch): Simplify.
6237 (add_piece): Update.
6238 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6240 (execute_stack_op) <sign_ext>: Remove.
6241 Use values for DWARF stack.
6242 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6243 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6245 (_initialize_dwarf2expr): New function.
6246 (add_piece): Update.
6247 (new_dwarf_expr_context): Set new field.
6248 (free_dwarf_expr_context): Call value_free_to_mark.
6249 * dwarf2-frame.c (no_base_type): New function.
6250 (execute_stack_op): Set get_base_type field. Update.
6252 2011-05-12 Tom Tromey <tromey@redhat.com>
6254 * dwarf2read.c (read_common_block): Fix formatting.
6256 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6258 * breakpoint.c (disable_breakpoint): Disable all locations
6259 associated with a tracepoint on target if a trace experiment is
6261 (disable_command): Disable a specific tracepoint location on target if
6262 a trace experiment is running.
6263 (do_enable_breakpoint): Enable all locations associated with a
6264 tracepoint on target if a trace experiment is running.
6265 (enable_command) Enable a specific tracepoint location on target if a
6266 trace experiment is running.
6267 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6268 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6269 to_disable_tracepoint.
6270 * target.h: Add declaration of struct bp_location.
6271 (struct target_ops): Add new functions
6272 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6273 to_disable_tracepoint to target operations.
6274 (target_supports_enable_disable_tracepoint): New macro.
6275 (target_enable_tracepoint): New macro.
6276 (target_disable_tracepoint): New macro.
6277 * remote.c (struct remote_state): Add new field.
6278 (remote_enable_disable_tracepoint_feature): New.
6279 (remote_protocol_features): Add new entry.
6280 (remote_supports_enable_disable_tracepoint): New.
6281 (remote_enable_tracepoint): New.
6282 (remote_disable_tracepoint): New.
6283 (init_remote_ops): Add remote_enable_tracepoint,
6284 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6285 to remote operations.
6286 * tracepoint.c (start_tracing): Allow tracing to start without any
6287 tracepoints enabled with just a warning if they can be re-enabled
6289 * NEWS: Add news item for the new behaviour of the enable and disable
6290 GDB commands when applied to tracepoints.
6291 Add news items for the new remote packets QTEnable and QTDisable.
6293 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6295 * config.in: Regenerate.
6296 * configure: Regenerate.
6297 * configure.ac <--with-system-readline> (for readline_echoing_p):
6299 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6300 (tui_old_rl_echoing_p): ... here.
6301 (tui_setup_io): Rename extern declaration readline_echoing_p to
6302 _rl_echoing_p. Adjust assignments for the both renames.
6304 2011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6306 * symtab.c (lookup_symtab): Run cleanup before returning.
6308 2011-05-11 Tom Tromey <tromey@redhat.com>
6310 * dwarf2read.c (handle_data_member_location): New function.
6311 (dwarf2_add_field): Use it.
6312 (read_common_block): Likewise.
6314 2011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6316 Make addrs->SECTINDEX always defined.
6317 * symfile.c (relative_addr_info_to_section_offsets): Check for
6318 SECTINDEX -1, not for zero ADDR.
6319 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6320 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6321 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6324 2011-05-10 Doug Evans <dje@google.com>
6326 * linux-thread-db.c: Whitespace cleanup.
6327 (try_thread_db_load_1): Fix comment.
6329 * linux-thread-db.c (set_libthread_db_search_path): New function.
6330 (_initialize_thread_db): Add setter for libthread-db-search-path.
6332 2011-05-09 Doug Evans <dje@google.com>
6334 * NEWS: Mention --with-iconv-bin.
6335 * configure.ac: New option --with-iconv-bin.
6336 * configure: Regenerate.
6337 * config.in: Regenerate.
6338 * defs.h (relocate_gdb_directory): Declare.
6339 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6340 removed progname parameter, and exported. All callers updated.
6341 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6343 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6344 adding missing call to restore_child_signals_mask.
6346 2011-05-09 Pedro Alves <pedro@codesourcery.com>
6348 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6350 * infrun.c (proceed, start_remote): Adjust.
6351 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6352 and adjust to not handle it.
6353 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6354 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6355 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6356 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6357 * windows-nat.c (do_initial_windows_stuff): Adjust.
6358 * infcmd.c (attach_command): Adjust.
6359 (notice_new_inferior): Adjust.
6361 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6363 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6364 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6365 * spu-tdep.c (op_selb): Use correct value.
6367 2011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6369 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6370 "parent" parameter to symbol_file_add_from_bfd call.
6372 2011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6373 Thiago Jung Bauermann <bauerman@br.ibm.com>
6375 Implement support for PowerPC BookE masked watchpoints.
6376 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6378 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6379 method. Initialize to NULL in all existing breakpoint_ops instances.
6380 (struct breakpoint) <hw_wp_mask>: New field.
6381 * breakpoint.c (is_masked_watchpoint): Add prototype.
6382 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6383 breakpoint's breakpoint_ops.works_in_software_mode if available.
6384 (watchpoints_triggered): Handle the case of a hardware masked
6386 (watchpoint_check): Likewise.
6387 (works_in_software_mode_watchpoint): New function.
6388 (insert_masked_watchpoint, remove_masked_watchpoint)
6389 (resources_needed_masked_watchpoint)
6390 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6391 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6392 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6394 (masked_watchpoint_breakpoint_ops): New structure.
6395 (watch_command_1): Check for the existence of the `mask' parameter.
6396 Set b->ops according to the type of hardware watchpoint being created.
6397 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6398 (ppc_linux_remove_mask_watchpoint)
6399 (ppc_linux_masked_watch_num_registers): New functions.
6400 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6401 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6402 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6403 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6404 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6405 (target_masked_watch_num_registers): New functions.
6406 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6407 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6409 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6410 (target_masked_watch_num_registers): Add prototypes.
6412 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6415 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6416 (producer_is_gcc_ge_4_0): New function.
6417 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6418 symtab->language code.
6419 (var_decode_location): Set cu->has_loclist.
6420 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6421 skip. Intialize force_skip from locations_valid. Move the prologue
6422 skipping code into two passes.
6423 * symtab.h (struct symtab): Make the primary field a bitfield. New
6424 field locations_valid.
6426 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6428 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6429 (classify_inner_name): Call cp_lookup_nested_type with
6431 * cp-namespace.c (cp_lookup_nested_type): New variable
6432 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6433 type_name_no_tag_or_error with saved_parent_type.
6434 * dwarf2read.c (load_partial_dies): Read in any children of
6435 DW_TAG_typedef with complaint in such case.
6436 * gdbtypes.c (type_name_no_tag_or_error): New function.
6437 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6438 * valops.c (destructor_name_p): New comment for parameter type. Remove
6439 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6440 * value.h (destructor_name_p): Remove type const.
6442 2011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6444 * symtab.c (compare_symbol_name): New function.
6445 (completion_list_add_name, expand_partial_symbol_name): Call it,
6446 remove the variable ncmp.
6447 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6450 2011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6452 Demote to sw watchpoint only in update_watchpoint.
6453 * breakpoint.c (update_watchpoint): Change between software and
6454 hardware watchpoint for all kinds of watchpoints, not just
6455 read/write ones. Determine b->exact value here instead of
6456 in watch_command_1. Error out if there are not enough resources
6457 for a read or access hardware watchpoint.
6458 (watch_command_1): Remove logic of checking whether there are
6459 enough resources available, since update_watchpoint will do that
6460 work now. Don't set b->exact here. Catch exceptions thrown by
6461 update_watchpoint and delete the watchpoint.
6462 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6463 Use target_exact_watchpoints instead.
6464 (delete_breakpoint): Notify observers only if deleted watchpoint
6465 has a breakpoint number assigned to it.
6467 2011-05-05 Janis Johnson <janisjo@codesourcery.com>
6469 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6471 2011-05-05 Jerome Guitton <guitton@adacore.com>
6473 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6475 (i386_stack_tramp_frame_unwind): New static global.
6476 (i386_match_pattern): New function, extracted from i386_match_insn.
6477 (i386_match_insn): Use i386_match_pattern.
6478 (i386_match_insn_block): New function.
6479 (i386_tramp_chain_in_reg_insns)
6480 (i386_tramp_chain_on_stack_insns): New static variables.
6481 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6484 2011-05-04 Joseph Myers <joseph@codesourcery.com>
6486 * configure.host (xscale*): Don't handle target.
6487 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6490 2011-05-04 Yao Qi <yao@codesourcery.com>
6492 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6494 2011-05-03 Joel Brobecker <brobecker@adacore.com>
6497 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6498 | * elfread.c (elf_symtab_read): Stop memory leak.
6500 2011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6502 * nto-tdep.c (nto_target): Replace deprecated call to
6503 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6505 2011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6507 Fix false GCC warning.
6508 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6510 2011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6512 * breakpoint.c (update_watchpoint): Move code to change
6513 the enable state of breakpoint from here ...
6514 (do_enable_breakpoint): ... to here.
6516 2011-04-26 Andrew Gontarek <andrewg@cray.com>
6518 * valprint.c (val_print_array_elements): Fixed poor performance
6519 of printing very large arrays with repeat_count_threshold set
6520 to unlimited. New comment.
6522 2011-04-29 Tom Tromey <tromey@redhat.com>
6524 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6525 (mi_parse): Likewise.
6526 * breakpoint.c (break_range_command): Use sizeof char*, not
6528 (create_breakpoint): Likewise.
6529 (parse_breakpoint_sals): Likewise.
6531 2011-04-29 Pedro Alves <pedro@codesourcery.com>
6533 * linux-nat.c (linux_child_remove_fork_catchpoint)
6534 (linux_child_remove_vfork_catchpoint)
6535 (linux_child_remove_exec_catchpoint): New functions.
6536 (linux_target_install_ops): Install them.
6538 2011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6542 * varobj.c (install_default_visualizer): Do not install a
6543 visualizer if the varobj is CPLUS_FAKE_CHILD.
6544 (construct_visualizer): Likewise.
6546 2011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6548 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6549 case insensitive comparison.
6551 2011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6553 * infrun.c (proceed): Revert previous change.
6554 (resume): Instead, handle the case of signal delivery while stepping
6555 off a breakpoint location here, and only if software single-stepping
6556 is used. Handle nested signals.
6558 2011-04-28 Yao Qi <yao@codesourcery.com>
6560 * arm-tdep.c (copy_unmodified): Rename to ...
6561 (arm_copy_unmodified): .. this. New.
6562 (copy_preload): Move common part to ...
6563 (install_preload): .. this. New.
6564 (arm_copy_preload): New.
6565 (copy_preload_reg): Move common part to ...
6566 (install_preload_reg): ... this. New.
6567 (arm_copy_preload_reg): New.
6568 (copy_b_bl_blx): Move common part to ...
6569 (install_b_bl_blx): .. this. New.
6570 (arm_copy_b_bl_blx): New.
6571 (copy_bx_blx_reg): Move common part to ...
6572 (install_bx_blx_reg): ... this. New.
6573 (arm_copy_bx_blx_reg): New.
6574 (copy_alu_reg): Move common part to ...
6575 (install_alu_reg): ... this. New.
6576 (arm_copy_alu_reg): New.
6577 (copy_alu_shifted_reg): Move common part to ...
6578 (install_alu_shifted_reg): ... this. New.
6579 (copy_ldr_str_ldrb_strb): Move common part to ...
6580 (install_ldr_str_ldrb_strb): ... this. New.
6581 (arm_copy_ldr_str_ldrb_strb): New.
6582 (copy_copro_load_store): Move some common part to ...
6583 (install_copy_copro_load_store): ... this. New.
6584 (arm_copy_copro_load_store): New.
6586 (arm_copy_svc): Renamed from copy_svc.
6587 (copy_undef): Delete.
6588 (arm_copy_undef): Renamed from copy_undef.
6589 (decode_ext_reg_ld_st): Delete.
6590 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6591 (decode_svc_copro): Delete.
6592 (arm_decode_svc_copro): Renamed from decode_svc_copro.
6593 (copy_copro_load_store, copy_alu_imm): update callers.
6594 (copy_extra_ld_st, copy_block_xfer): Likewise.
6595 (decode_misc_memhint_neon, decode_unconditional): Likewise.
6596 (decode_miscellaneous, decode_dp_misc): Likewise.
6597 (decode_ld_st_word_ubyte, decode_media): Likewise.
6598 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
6599 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
6600 (decode_unconditional, decode_miscellaneous): Likewise.
6601 (decode_media, decode_b_bl_ldmstm): Likewise.
6602 (arm_process_displaced_insn): Likewise..
6603 (decode_misc_memhint_neon): Delete.
6604 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
6605 (decode_miscellaneous): Delete.
6606 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
6607 (decode_dp_misc): Delete.
6608 (arm_decode_dp_misc): Renamed from decode_dp_misc.
6609 (decode_ld_st_word_ubyte): Delete.
6610 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
6611 (decode_media): Delete.
6612 (arm_decode_media): Renamed from decode_media.
6613 (decode_b_bl_ldmstm): Delete.
6614 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
6615 (decode_ext_reg_ld_st): Delete.
6616 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
6617 (decode_unconditional): Delete.
6618 (arm_decode_unconditional): Renamed from decode_unconditional.
6620 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6622 Case insensitive lookups implementation.
6623 * dwarf2read.c: Include ctype.h.
6624 (struct mapped_index): New field version.
6625 (mapped_index_string_hash): New parameter index_version. New comment
6626 for it. Call tolower appropriately.
6627 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
6628 Choose the right index version for mapped_index_string_hash.
6629 (dwarf2_read_index): Support also the index version 5. Initialize the
6630 new struct mapped_index field version.
6631 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
6632 (find_slot): Explain the version needs. Pass INT_MAX for the new
6634 (write_psymtabs_to_index): Produce version 5.
6635 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
6636 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
6637 * psymtab.c (lookup_partial_symbol): Find the
6638 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
6640 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
6642 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
6643 (completion_list_add_name): New variable ncmp, initialize it, use it.
6644 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
6645 * utils.c (strcmp_iw): Support case_sensitive_off.
6646 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
6647 New function comment part. New variables saved_string1,
6648 saved_string2 and case_pass. Add a proper second pass.
6650 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6652 Replace re_comp/re_exec by regcomp/regexec.
6653 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
6654 (search_symbols_name_matches): Use them, use regexec.
6655 (search_symbols): New variable retval_chain, adjust the use of
6656 old_chain against it. Replace re_comp by regcomp. Use the new struct
6657 search_symbols_data fields, use regexec instead of re_exec.
6659 2011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6661 Format the code for the next patch.
6662 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
6663 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
6664 New variables c1 and c2.
6666 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6668 * infrun.c (proceed): Do not single-step into signal delivery
6669 when stepping off a breakpoint location.
6670 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6671 (insert_step_resume_breakpoint_at_caller): Likewise.
6672 (insert_step_resume_breakpoint_at_sal): Likewise.
6673 (insert_longjmp_resume_breakpoint): Likewise.
6675 2011-04-27 Yao Qi <yao@codesourcery.com>
6677 * common/linux-ptrace.h: Remove include <sys/wait.h>.
6679 2011-04-27 Joel Brobecker <brobecker@adacore.com>
6681 * procfs.c (procfs_pass_signals): Fix advance declaration.
6683 2011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
6685 * target.h (struct target_ops): Remove to_notice_signals;
6686 add to_pass_signals.
6687 (target_notice_signals): Remove.
6688 (target_pass_signals): Add prototype.
6689 * target.c (update_current_target): Remove to_notice_signals;
6690 mention to_pass_signals.
6691 (target_pass_signals): New function.
6692 (debug_to_notice_signals): Remove.
6693 (setup_target_debug): Do not install debug_to_notice_signals.
6695 * infrun.c (signal_pass): New global.
6696 (resume): Call target_pass_signals.
6697 (handle_inferior_event): Report all signals while stepping over
6698 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
6699 are re-inserted when stepping over a signal handler.
6700 (signal_cache_update): New function.
6701 (signal_stop_update): Call it.
6702 (signal_print_update): Likewise.
6703 (signal_pass_update): Likewise.
6704 (handle_command): Call signal_cache_update and target_pass_signals
6705 instead of target_notice_signals.
6706 (_initialize_infrun): Initialize signal_pass.
6708 * linux-nat.c (pass_mask): New global.
6709 (linux_nat_pass_signals): New function.
6710 (linux_nat_create_inferior): Report all signals initially.
6711 (linux_nat_attach): Likewise.
6712 (linux_nat_resume): Use pass_mask to decide whether to directly
6713 handle an inferior signal.
6714 (linux_nat_wait_1): Likewise.
6715 (linux_nat_add_target): Install to_pass_signals callback.
6717 * nto-procfs.c (notice_signals): Remove.
6718 (procfs_resume): Do not call notice_signals.
6719 (procfs_notice_signals): Remove.
6720 (procfs_pass_signals): New function.
6721 (init_procfs_ops): Install to_pass_signals callback instead of
6722 to_notice_signals callback.
6723 (_initialize_procfs): Report all signals initially.
6725 * procfs.c (procfs_notice_signals): Remove.
6726 (procfs_pass_signals): New function.
6727 (procfs_target): Install to_pass_signals callback instead of
6728 to_notice_signals callback.
6729 (register_gdb_signals): Remove.
6730 (procfs_debug_inferior): Report all signals initially.
6731 (procfs_init_inferior): Remove redundant register_gdb_signals call.
6733 * remote.c (remote_pass_signals): Add numsigs and pass_signals
6734 parameters; use them instead of calling signal_..._state routines.
6735 (remote_notice_signals): Remove.
6736 (remote_start_remote): Report all signals initially.
6737 (remote_resume): Do not call remote_pass_signals.
6738 (_initialize_remote): Install to_pass_signals callback instead of
6739 to_notice_signals callback.
6741 2011-04-27 Pedro Alves <pedro@codesourcery.com>
6743 * breakpoint.c (user_settable_breakpoint): Delete.
6744 (user_breakpoint_p): Remove check on user_settable_breakpoint.
6745 (delete_command): Check user_breakpoint_p instead of looking at
6746 the breakpoint's type.
6747 (disable_command): Ditto.
6748 (enable_command): Ditto.
6749 (delete_trace_command): Use user_breakpoint_p instead of looking
6750 at the breakpoint number directly. When checking if there are
6751 user visible tracepoints, in order to know whether to ask the user
6752 for confirmation, check whether the breakpoint is actually a
6755 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6757 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
6760 2011-04-27 Vladimir Prus <vladimir@codesourcery.com>
6762 MI breakpoint notifications.
6764 * annotate.c (breakpoint_changed): Adjust parameter type.
6765 * breakpoint.c (set_breakpoint_condition): Adjust to change
6766 in breakpoint_modified type.
6767 (breakpoint_set_commands): Likewise.
6768 (do_map_commands_command): Likewise.
6769 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
6770 changed after bumping hit count.
6771 (bpstat_stop_status): Likewise.
6772 (print_one_breakpoint_location): Don't wrap in tuple here.
6773 (print_one_breakpoint): Always print individual locations.
6774 For locations, use unnamed tuple.
6775 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
6777 (create_catchpoint, create_syscall_event_catchpoint): Call
6778 breakpoint_created obsever.
6779 (mention): Don't call breakpoint_created observer.
6780 (create_breakpoint_sal): Call breakpoint_created observer.
6781 (create_breakpoint, watch_command_1): Likewise.
6782 (create_ada_exception_breakpoint): Likewise.
6783 (delete_breakpoint): Call breakpoint_deleted breakpoint.
6784 (locations_are_equal): New.
6785 (update_breakpoint_locations): If locations were changed, notify.
6786 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
6787 Call breakpoint_modified observer.
6789 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
6790 (mi_cmd_break_insert): Don't set observers for modify and delete.
6791 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
6792 (mi_breakpoint_created, mi_breakpoint_deleted)
6793 (mi_breakpoint_modified): New.
6794 (mi_interpreter_init): Hook the above.
6795 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
6796 while -break-* commands are executing.
6797 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
6798 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
6800 (mi_ui_out_impl): Hook in mi_redirect.
6801 (mi_field_skip): True to the name, skip the field, don't output
6802 a field with an empty value.
6804 * python/py-breakpoint.c (gdbpy_breakpoint_created)
6805 (gdbpy_breakpoint_deleted): Adjust.
6806 * tui/tui-hooks.c (tui_event_create_breakpoint)
6807 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
6809 2011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
6811 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
6812 (procfs_remove_hw_watchpoint): Likewise.
6814 2011-04-26 Michael Walle <michael@walle.cc>
6816 * remote.c (remote_start_remote): Ack packet after sending the
6819 2011-04-26 Yao Qi <yao@codesourcery.com>
6821 * linux-nat.c: Move common macros to ...
6822 Include linux-ptrace.h.
6823 * common/linux-ptrace.h: ... here. New.
6825 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6827 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
6828 !objfile_has_partial_symbols. New comment.
6829 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
6830 SYM_READ_PSYMBOLS is not present. Extend the comment.
6831 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
6833 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6835 * defs.h (ENUM_BITFIELD): Remove.
6837 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6838 Eli Zaretskii <eliz@gnu.org>
6840 * NEWS: Document the new gdbserver --once option.
6842 2011-04-21 Jie Zhang <jzhang918@gmail.com>
6844 * MAINTAINERS: Update my email address.
6846 2011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6848 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
6849 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
6850 function call if __STDC_ISO_10646__ macro is defined.
6851 (intermediate_encoding): New prototype.
6852 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
6853 to generate compile time error for unsupported gdb_wchar_t size.
6854 (ENDIAN_SUFFIX): New macro.
6855 (intermediate_encoding): New function.
6857 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6859 * ada-lang.c (struct add_partial_datum): Update the comment for
6860 expand_partial_symbol_name.
6861 (ada_add_partial_symbol_completions): Rename to ...
6862 (ada_expand_partial_symbol_name): ... here, change return type, update
6863 function comment, call symbol_completion_match instead of
6864 symbol_completion_add.
6865 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
6866 and ada_expand_partial_symbol_name.
6867 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
6869 (dw2_map_symbol_names): Remove.
6870 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
6871 * psymtab.c (map_symbol_names_psymtab): Remove.
6872 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
6873 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
6875 (psym_functions): Unlist map_symbol_names_psymtab.
6876 (map_partial_symbol_names): Rename to ...
6877 (expand_partial_symbol_names): ... here, change the FUN type, call
6878 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
6879 * psymtab.h (map_partial_symbol_names): Rename to ...
6880 (expand_partial_symbol_names): ... here, change the FUN type.
6881 * symfile.h (struct quick_symbol_functions): Update the description of
6882 expand_symtabs_matching. Remove map_symbol_names.
6883 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
6884 (struct add_name_data): Update the comment for
6885 expand_partial_symbol_name.
6886 (add_partial_symbol_name): Rename to ...
6887 (expand_partial_symbol_name): ... here. Replace
6888 completion_list_add_name call by strncmp.
6889 (default_make_symbol_completion_list_break_on): Use now
6890 expand_partial_symbol_names and expand_partial_symbol_name.
6891 * symtab.h (enum search_domain): New element ALL_DOMAIN.
6893 2011-04-20 Tom Tromey <tromey@redhat.com>
6895 * dwarf2read.c (save_gdb_index_command): Replace format
6896 documentation with a pointer to the manual.
6898 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6900 * regcache.c: Include remote.h.
6901 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
6902 (regcache_dump): Handle regcache_dump_remote.
6903 (maintenance_print_remote_registers): New function.
6904 (_initialize_regcache): Install "maint print remote-registers"
6906 * remote.c (map_regcache_remote_table): New function, factored out
6908 (init_remote_state): ... here.
6909 (remote_register_number_and_offset): New.
6910 * remote.h (remote_register_number_and_offset): Declare.
6912 2011-04-20 Pedro Alves <pedro@codesourcery.com>
6914 * regcache.c (get_thread_arch_regcache): If creating a regcache for
6915 null_ptid, assume and allow a NULL address space, instead of
6916 asking the target for the ptid's address space.
6917 * infrun.c (ptid_is_pid): Remove assertion.
6919 2011-04-19 Tom Tromey <tromey@redhat.com>
6921 * windows-tdep.c (windows_xfer_shared_library):
6922 * windows-nat.c (get_module_name, windows_make_so):
6923 * v850-tdep.c (v850_handle_pushm):
6924 * utils.c (null_cleanup, gdb_realpath):
6925 * ui-out.c (get_next_header):
6926 * tracepoint.c (clear_traceframe_info):
6927 * symtab.c (lookup_symtab):
6928 * serial.h (struct serial_ops):
6929 * mipsread.c (read_alphacoff_dynamic_symtab):
6930 * infcmd.c (print_return_value):
6931 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
6932 * f-exp.y (parse_number):
6933 * exceptions.c (catch_exceptions):
6934 * dummy-frame.c (dummy_frame_this_id):
6935 * defs.h (struct cleanup):
6936 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
6937 * arm-tdep.c (arm_push_dummy_call):
6938 * amd64-tdep.h (amd64_collect_xsave):
6939 * amd64-tdep.c (amd64_collect_xsave):
6940 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
6941 * README (typing): Remove duplicate words.
6942 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
6943 * infrun.c (siginfo_value_read): Fix typo.
6944 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
6945 * top.c (source_line_number): Add comma.
6947 2011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
6949 * thread.c (any_live_thread_of_process): Prioritize threads
6950 that are not executing.
6951 * gdbthread.h (any_live_thread_of_process): Update comment
6952 as per above change.
6954 2011-04-19 Andreas Schwab <schwab@linux-m68k.org>
6956 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
6957 (scan_xcoff_symtab): Likewise.
6959 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6961 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
6964 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6965 Pedro Alves <pedro@codesourcery.com>
6967 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
6968 variables to simplify code and avoid == operator at end of
6969 line as this is against GNU coding standards.
6971 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6973 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
6974 lm_name to name_lm to avoid conflict with lm_name function.
6976 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6978 ARI fixes: Use only lowercase function name for static functions.
6979 * nto-tdep.c (LM_ADDR): Rename to...
6980 (lm_addr): New function name.
6981 (nto_relocate_section_addresses): Adapt to change above.
6982 * solib-sunos.c (LM_ADDR): Rename to...
6983 (lm_addr): New function name.
6984 (LM_NEXT): Rename to...
6985 (lm_next): New function name.
6986 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
6987 function name changes above.
6988 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
6989 (lm_addr_from_link_map): New function name.
6990 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6991 (has_lm_dynamic_from_link_map): New function name.
6992 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
6993 (lm_dynamic_from_link_map): New function name.
6994 (LM_ADDR_CHECK): Rename to...
6995 (lm_addr_check): New function name.
6996 (LM_NEXT): Rename to...
6997 (lm_next): New function name.
6998 (LM_PREV): Rename to...
6999 (lm_prev): New function name.
7000 (LM_NAME): Rename to...
7001 (lm_name): New function name.
7002 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7003 (ignore_first_link_map_entry): New function name.
7004 (svr4_keep_data_in_core): Adapt to function name changes above.
7005 (svr4_current_sos): Likewise.
7006 (enable_break): Likewise.
7007 (svr4_relocate_section_addresses): Likewise.
7009 2011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7012 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7013 sprintf. Simplify code and avoid loosing memory.
7014 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7015 (call0_frame_cache): Remove && operator from end of line.
7017 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7019 Fix libraries displacement if they change whether they were prelinked.
7020 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7021 does not match. Comment why.
7023 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7025 * corelow.c: Include wrapper.h.
7026 (core_open): Call now gdb_target_find_new_threads.
7027 * wrapper.c: Include target.h.
7028 (gdb_target_find_new_threads): New.
7029 * wrapper.h (gdb_target_find_new_threads): New declaration.
7031 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7033 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7034 even if !TARGET_HAS_EXECUTION.
7036 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7038 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7039 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7040 bfd_get_synthetic_symtab.
7041 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7042 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7043 parameter parent, remove the call to add_separate_debug_objfile.
7044 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7045 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7046 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7047 parent, new comment for it, call add_separate_debug_objfile for it.
7048 (symbol_file_add_separate): Pass objfile as the parameter parent,
7049 remove the call to add_separate_debug_objfile.
7050 (symbol_file_add_from_bfd): New parameter parent, pass it.
7051 (symbol_file_add): Pass NULL to the new parameter parent.
7052 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7054 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7056 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7059 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7061 Fix Python access to inlined frames.
7062 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7063 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7065 2011-04-15 Tom Tromey <tromey@redhat.com>
7067 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7069 2011-04-15 Gary Benson <gbenson@redhat.com>
7071 * MAINTAINERS: Add myself to write-after-approval section.
7073 2011-04-14 Mike Frysinger <vapier@gentoo.org>
7075 * remote-sim.c (sim_command_completer): New function.
7076 (_initialize_remote_sim): Set completer to sim_command_completer.
7078 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7080 * breakpoint.c (print_exception_catchpoint): Rename to ...
7081 (print_it_exception_catchpoint): ... this.
7082 (gnu_v3_exception_catchpoint_ops): Update with new name
7083 for print_it_exception_catchpoint.
7085 2011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7087 * MAINTAINERS: Add myself for write after approval privileges.
7089 2011-04-13 Marek Polacek <mpolacek@redhat.com>
7091 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7093 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7095 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7097 2011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7099 * breakpoint.c (save_breakpoints): Verify whether
7100 breakpoint_ops.print_recreate is defined before calling it.
7102 2011-04-11 Gary Benson <gbenson@redhat.com>
7104 Fix failure with --enable-maintainer-mode.
7105 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7107 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7110 * symtab.c (search_symbols): Reorder the KIND description in the
7111 function comment. Remove the unused 4th element of types, types2,
7112 types3 and types4. New gdb_assert on KIND.
7113 (symtab_symbol_info): Remove the unused 4th element of classnames.
7114 New gdb_assert on KIND.
7115 * symtab.h (enum search_domain): New warning in the enum comment.
7116 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7119 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7121 Fix crash of gdb save-index on a STABS file.
7122 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7125 2011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7127 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7128 * dwarf2read.c: Include ctype.h.
7129 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7131 (dwarf2_add_field): Fix new_field->accessibility by calling
7132 dwarf2_default_access_attribute. Restructure setting accessibility
7134 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7135 is_private and is_protected by calling
7136 dwarf2_default_access_attribute.
7138 2011-04-08 Kevin Buettner <kevinb@redhat.com>
7140 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7141 to the initialization.
7143 2011-04-08 Steve Ellcey <sje@cup.hp.com>
7145 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7148 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7150 Remove support for old Cygwin 1.5 versions.
7151 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7152 function on old Cygwin version.
7153 * windows-nat.c: Remove cygwin version check and always define
7154 __USEWIDE for Cygwin compilation.
7156 2011-04-07 Yao Qi <yao@codesourcery.com>
7158 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7160 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7161 (arm_copy_svc): Remove parameters INSN and TO.
7162 (decode_svc_copro): Update caller.
7163 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7164 from function pointer `copy_svc_os'.
7166 2011-04-07 Yao Qi <yao@codesourcery.com>
7168 * arm-tdep.c (cleanup_branch): Set a correct return address in
7169 LR for ARM and Thumb.
7171 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7174 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7175 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7176 in the function comment, a new note on values compatibility.
7177 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7178 * symtab.h (SYMBOL_HASH_NEXT): New.
7180 2011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7182 * ppc-linux-nat.c (check_condition): Add len output parameter.
7183 Set it based on the memory region referenced in the condition
7184 expression. Update all callers.
7186 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7188 Fix crash regression on systems featuring .gdb_index.
7189 * objfiles.c (free_objfile): Move the
7190 forget_cached_source_info_for_objfile call earlier. Comment it.
7191 Extend the comment for objfile_free_data.
7193 2011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7195 Fix regression of displaying the debug format.
7196 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7199 2011-04-04 Tom Tromey <tromey@redhat.com>
7201 * cli/cli-interp.c (struct captured_execute_command_args):
7203 (do_captured_execute_command): Remove.
7204 (safe_execute_command): Use TRY_CATCH.
7205 * cli/cli-script.c (struct wrapped_read_command_file_args):
7207 (wrapped_read_command_file): Remove.
7208 (script_from_file): Use TRY_CATCH.
7209 * exceptions.c (catch_exception): Remove.
7210 * exceptions.h (catch_exception): Remove.
7211 (deprecated_throw_reason): Update comment.
7212 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7213 argument to 'context'.
7214 (mi_execute_command): Use TRY_CATCH.
7215 * remote.c (struct start_remote_args): Remove.
7216 (remote_start_remote): Update; change arguments.
7217 (remote_open_1): Use TRY_CATCH.
7219 2011-04-04 Tom Tromey <tromey@redhat.com>
7221 * tracepoint.c (scope_info): Update.
7222 * symtab.c (decode_line_spec): Update.
7223 * python/python.c (gdbpy_decode_line): Update.
7224 * linespec.h (decode_line_1): Update.
7225 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7226 (decode_compound, find_method, symtab_from_filename)
7227 (decode_variable): Likewise.
7228 * cli/cli-cmds.c (edit_command): Update.
7229 (list_command): Update.
7230 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7232 (create_breakpoint): Update.
7233 (until_break_command): Update.
7234 (addr_string_to_sals): Update.
7235 (decode_line_spec_1): Update.
7237 2011-04-04 Tom Tromey <tromey@redhat.com>
7239 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7240 (do_captured_parse_breakpoint): Remove.
7241 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7242 Use TRY_CATCH directly.
7244 2011-04-04 Tom Tromey <tromey@redhat.com>
7246 * symtab.h (free_symtab): Remove.
7247 (forget_cached_source_info_for_objfile): Declare.
7248 * symmisc.c (free_symtab): Remove.
7249 * source.c (forget_cached_source_info_for_objfile): New function.
7250 (forget_cached_source_info): Use it.
7251 * objfiles.c (free_objfile): Simplify check before calling
7252 clear_current_source_symtab_and_line. Call
7253 forget_cached_source_info_for_objfile.
7255 2011-04-04 Tom Tromey <tromey@redhat.com>
7257 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7258 (new_symtab): Don't set `free_code' on symtab.
7259 (new_linetable): Properly handle size==0.
7260 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7261 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7263 * jv-lang.c (struct jv_per_objfile_data): New.
7264 (jv_per_objfile_free): Free the data.
7265 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7266 (get_java_class_symtab): Set the `dict' field on the
7267 jv_per_objfile_data.
7268 (free_class_block): Remove.
7269 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7272 2011-04-04 Tom Tromey <tromey@redhat.com>
7274 * symfile.c (reread_symbols): Update.
7275 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7277 * objfiles.c (allocate_objfile): Update.
7278 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7280 * cp-namespace.c (lookup_symbol_file): Don't call
7281 lookup_possible_namespace_symbol.
7282 (initialize_namespace_symtab, get_possible_namespace_block)
7283 (free_namespace_block, cp_check_possible_namespace_symbols)
7284 (check_possible_namespace_symbols_loop)
7285 (check_one_possible_namespace_symbol)
7286 (lookup_possible_namespace_symbol): Remove.
7287 (maintenance_cplus_namespace): Replace with notice.
7288 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7290 2011-04-04 Tom Tromey <tromey@redhat.com>
7292 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7293 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7294 * symmisc.c (free_symtab): Don't free debugformat.
7295 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7296 (record_debugformat, record_producer): Document.
7297 * buildsym.c (end_symtab): Don't save debugformat and producer
7299 (end_symtab): Don't free debugformat and producer fields.
7300 (record_debugformat): Don't call xstrdup.
7301 (record_producer): Likewise.
7303 2011-04-04 Tom Tromey <tromey@redhat.com>
7305 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7306 (source_line_charpos, source_charpos_line): Remove.
7308 2011-04-04 Tom Tromey <tromey@redhat.com>
7310 * symtab.h (domain_enum): Split in two...
7311 (enum search_domain): New.
7312 (search_symbols): Update.
7313 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7314 redundant declarations.
7315 (search_symbols): Change 'kind' argument to search_domain.
7317 (print_symbol_info): Likewise.
7318 (symtab_symbol_info): Likewise.
7319 * symfile.h (struct quick_symbol_functions)
7320 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7321 <expand_symtabs_matching>: Likewise.
7322 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7323 (expand_symtabs_matching_via_partial): Update.
7324 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7325 (dw2_expand_symtabs_for_function): Update.
7326 * block.h: Moved anonymous enum...
7327 * defs.h (enum block_enum): ... here. Now named.
7329 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7331 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7332 * version.in: Bump version to 7.3.50.20110403-cvs.
7334 2011-04-03 Joel Brobecker <brobecker@adacore.com>
7336 * NEWS: Create a new section for the next release branch.
7337 Rename the section of the current branch, now that it has
7340 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7342 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7343 for "fpscr" in target description.
7345 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7347 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7348 initialize it. Delay HASH initialization. Strip the part after open
7349 parenthesis for languages with qualifiers. Call do_cleanups.
7351 2011-04-01 Tom Tromey <tromey@redhat.com>
7353 * utils.c (report_command_stats): Don't print `-' for negative
7356 2011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7358 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7359 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7362 2011-04-01 Joel Brobecker <brobecker@adacore.com>
7364 * breakpoint.h (bpdisp_text): Add declaration.
7365 * breakpoint.c (bpdisp_text): Make non-static.
7366 * ada-lang.c: #include "mi/mi-common.h".
7367 (print_it_exception): Rewrite to improve GDB/MI output.
7369 2011-04-01 Pedro Alves <pedro@codesourcery.com>
7371 * arm-tdep.h (struct address_space): Add forward declaration.
7373 2011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7375 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7376 * arm-tdep.c (arm_override_mode): New global.
7377 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7378 execution mode heuristics.
7379 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7380 second single-step breakpoint if needed, using
7381 arm_insert_single_step_breakpoint.
7382 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7383 ARM execution mode, do not call thumb_get_next_pc_raw.
7384 (arm_get_next_pc): Encode execution mode in return value. Call
7385 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7386 (arm_insert_single_step_breakpoint): New function.
7387 (arm_software_single_step): Call it.
7388 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7389 argument to return execution mode of sigreturn target.
7390 (arm_linux_syscall_next_pc): Use it.
7391 (arm_linux_copy_svc): Update call.
7392 (arm_linux_software_single_step): Call
7393 arm_insert_single_step_breakpoint.
7395 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7397 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7400 2011-03-31 Tom Tromey <tromey@redhat.com>
7402 * varobj.c (update_dynamic_varobj_children): Properly handle
7403 errors from iterator.
7405 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7407 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7408 struct linkage name twice.
7410 2011-03-31 Tom Tromey <tromey@redhat.com>
7412 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7413 missing ">" to message.
7415 2011-03-31 Tom Tromey <tromey@redhat.com>
7417 * varobj.c (instantiate_pretty_printer): Remove duplicate
7420 2011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7422 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7423 if neither saved value nor register available (e.g. signal frame).
7425 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7427 * macroexp.c (expand): Avoid uninitialized variable
7430 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7432 * breakpoint.c (break_range_command): Fix typo in comment.
7434 2011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7435 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7437 Implement support for PowerPC BookE ranged breakpoints.
7438 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7439 * breakpoint.h (struct bp_target_info) <length>: New member
7441 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7442 instead of struct breakpoint as argument, and also add ASPACE
7443 and BP_ADDR arguments. Update all callers.
7444 (struct breakpoint_ops) <print_one_detail>: New method.
7445 (struct breakpoint) <addr_string_range_end>: New member variable.
7446 * breakpoint.c (breakpoint_location_address_match): Add function
7448 (insert_bp_location): Set bl->target_info.length.
7449 (breakpoint_here_p): Call breakpoint_location_address_match.
7450 (moribund_breakpoint_here_p): Likewise.
7451 (regular_breakpoint_inserted_here_p): Likewise.
7452 (breakpoint_thread_match): Likewise.
7453 (bpstat_stop_status): Likewise.
7454 (bpstat_check_location): Move call to
7455 breakpoint_ops.breakpoint_hit to the top.
7456 (print_one_breakpoint_location): Call
7457 breakpoint_ops.print_one_detail if available.
7458 (breakpoint_address_match_range): New function.
7459 (breakpoint_location_address_match): Likewise.
7460 (breakpoint_locations_match): Compare the length field of the
7462 (hw_breakpoint_used_count): Count resources used by all locations
7463 in a breakpoint, and use breakpoint_ops.resources_needed if
7465 (breakpoint_hit_ranged_breakpoint): New function.
7466 (resources_needed_ranged_breakpoint): Likewise.
7467 (print_it_ranged_breakpoint): Likewise.
7468 (print_one_ranged_breakpoint): Likewise.
7469 (print_one_detail_ranged_breakpoint): Likewise.
7470 (print_mention_ranged_breakpoint): Likewise.
7471 (print_recreate_ranged_breakpoint): Likewise.
7472 (ranged_breakpoint_ops): New structure.
7473 (find_breakpoint_range_end): New function.
7474 (break_range_command): Likewise.
7475 (delete_breakpoint): Free addr_string_range_end.
7476 (update_breakpoint_locations): Add SALS_END argument. Update
7477 all callers. Calculate breakpoint length if a non-zero SALS_END
7478 is given. Call breakpoint_locations_match instead of
7479 breakpoint_address_match.
7480 (reset_breakpoint): Find SaL of the end of the range if B is a
7482 (_initialize_breakpoint): Register break-range command.
7483 * defs.h (print_core_address): Add function prototype.
7484 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7486 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7487 (ppc_linux_remove_hw_breakpoint): Likewise.
7488 (_initialize_ppc_linux_nat): Initialize
7489 to_ranged_break_num_registers.
7490 * target.c (update_current_target): Add comment about
7491 to_ranged_break_num_registers.
7492 (target_ranged_break_num_registers): New function.
7493 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7495 (target_ranged_break_num_registers): Add function prototype.
7496 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7497 * utils.c (print_core_address): ... here.
7499 2011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7501 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7502 variable compiler warning.
7504 2011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7506 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7508 (re_set_breakpoint): ... to here ...
7509 (addr_string_to_sals): ... and here.
7511 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7513 * Makefile.in (SFILES): Add missing C sources.
7514 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7515 Add missing headers.
7517 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7519 * .gitignore: New file.
7521 2011-03-29 Mike Frysinger <vapier@gentoo.org>
7523 * NEWS: Mention new cfi device simulation.
7525 2011-03-29 Tom Tromey <tromey@redhat.com>
7527 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7528 otherwise anonymous types.
7529 (dwarf2_name): Likewise.
7530 * valops.c (value_struct_elt_for_reference): Refine artificial
7531 type logic. Call error if j==-1.
7533 2011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7535 Fix false GCC warning.
7536 * infcall.c (find_function_addr): Initialize funaddr.
7538 2011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7540 Fix mingw compilation with --enable-targets=all.
7541 * remote-mips.c (gdb_usleep.h): Include header.
7542 (mips_enter_debug): Use gdb_usleep instead of sleep.
7544 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7546 Support resolution of STT_GNU_IFUNC via breakpoints.
7547 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7548 bp_gnu_ifunc_resolver_return.
7549 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7550 the loop. Support bp_gnu_ifunc_resolver and
7551 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7552 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7554 (bptype_string, print_one_breakpoint_location): Support
7555 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7556 (user_settable_breakpoint): Return true also for
7557 bp_gnu_ifunc_resolver.
7558 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7559 bp_gnu_ifunc_resolver_return.
7560 (set_breakpoint_location_function): New parameter explicit_loc,
7561 describe it. Call find_pc_partial_function_gnu_ifunc with new
7562 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7563 EXPLICIT_LOC is not set.
7564 (set_raw_breakpoint): Set EXPLICIT_LOC for
7565 set_breakpoint_location_function.
7566 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7567 set_breakpoint_location_function.
7568 (mention): Support bp_gnu_ifunc_resolver and
7569 bp_gnu_ifunc_resolver_return.
7570 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7571 set_breakpoint_location_function.
7572 (update_breakpoint_locations): Remove static.
7573 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7574 bp_gnu_ifunc_resolver_return.
7575 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7576 bp_gnu_ifunc_resolver_return.
7577 (update_breakpoint_locations): New declaration.
7578 * elfread.c: Include gdbthread.h and regcache.h.
7579 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
7581 (elf_gnu_ifunc_fns): Install them.
7582 * minsyms.c (stub_gnu_ifunc_resolver_stop)
7583 (stub_gnu_ifunc_resolver_return_stop): New functions.
7584 (stub_gnu_ifunc_fns): Install them.
7585 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
7586 and gnu_ifunc_resolver_return_stop.
7587 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
7589 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7591 STT_GNU_IFUNC reader implementation.
7592 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
7593 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
7594 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
7595 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
7596 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
7597 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
7598 (elf_gnu_ifunc_resolve_addr): New.
7599 (elf_symfile_read): Call elf_rel_plt_read.
7600 (elf_gnu_ifunc_fns): New.
7601 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
7602 Install elf_gnu_ifunc_fns.
7603 * infcall.c (find_function_return_type): New function.
7604 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
7605 * minsyms.c (stub_gnu_ifunc_resolve_addr)
7606 (stub_gnu_ifunc_resolve_name): New functions.
7607 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
7608 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
7609 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
7611 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7613 Code cleanup for later STT_GNU_IFUNC support.
7614 * infcall.c (find_function_addr): Remove variable code, use explicit
7615 dereferences for it. Move VALUE_TYPE initialization later.
7617 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7619 GDB find_pc_partial_function support for STT_GNU_IFUNC.
7620 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
7621 (clear_pc_function_cache): Clear it.
7622 (find_pc_partial_function): Rename to ...
7623 (find_pc_partial_function_gnu_ifunc): ... this function. New
7624 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
7625 (find_pc_partial_function): New wrapper for this function.
7626 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
7628 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7630 GDB internal type support for STT_GNU_IFUNC.
7631 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
7632 (elf_symtab_read): Set mst_text_gnu_ifunc for
7633 BSF_GNU_INDIRECT_FUNCTION.
7634 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
7635 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
7636 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
7637 nodebug_got_plt_symbol.
7638 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
7639 (TYPE_GNU_IFUNC): New.
7640 (struct main_type): New field flag_gnu_ifunc.
7641 (struct builtin_type): New field builtin_func_func.
7642 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
7643 nodebug_got_plt_symbol.
7644 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
7645 (in_gnu_ifunc_stub): New.
7646 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
7648 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
7649 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
7650 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
7652 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
7653 * symtab.c (search_symbols): Likewise.
7654 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
7655 and mst_slot_got_plt.
7656 (in_gnu_ifunc_stub): New declaration.
7658 2011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7660 Support a ring of related breakpoints.
7661 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
7662 other functions, add gdb_assert.
7663 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
7664 watchpoint_del_at_next_stop.
7665 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
7666 (bpstat_stop_status): Handle ring in related_breakpoint.
7667 (set_raw_breakpoint_without_location): Initialize ring in
7669 (delete_breakpoint): Handle ring in related_breakpoint, use
7670 watchpoint_del_at_next_stop.
7671 (map_breakpoint_numbers): Handle ring in related_breakpoint.
7673 2011-03-28 Tom Tromey <tromey@redhat.com>
7676 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
7677 with `language_minimal'.
7679 2011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
7681 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
7682 instead of checking for STT_ARM_TFUNC symbol type.
7684 2011-03-25 Tom Tromey <tromey@redhat.com>
7686 * linespec.c (symbol_found): Restore line-based result for
7687 non-LOC_LABEL symbols.
7689 2011-03-25 Kai Tietz <ktietz@redhat.com>
7691 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
7692 instead of strcmp for comparison.
7693 (tui_source_is_displayed): Likewise.
7694 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
7696 2011-03-24 Mark Wielaard <mjw@redhat.com>
7698 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
7700 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7701 (find_partial_die_in_comp_unit): Likewise in comment.
7702 (read_attribute_value): Likewise.
7703 (lookup_die_type): Likewise.
7704 (dwarf_form_name): Likewise.
7705 (dump_die_shallow): Likewise.
7706 (follow_die_ref_or_sig): Likewise.
7708 2011-03-24 Tom Tromey <tromey@redhat.com>
7710 PR breakpoints/11816:
7711 * linespec.c (decode_line_1): Parse `function:label' linespecs.
7712 (decode_compound): Update.
7713 (find_function_symbol): New function.
7714 (decode_dollar): Update.
7715 (decode_label): Add 'function_symbol' parameter. Handle
7716 function-relative labels.
7717 (decode_variable): Update.
7718 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
7719 not its line. Set `special_display' and canonical name for
7722 2011-03-24 Tom Tromey <tromey@redhat.com>
7724 * linespec.h (struct linespec_result) <special_display>: New
7726 * breakpoint.h (struct breakpoint) <display_canonical>: New
7728 * breakpoint.c (print_breakpoint_location): Respect
7730 (create_breakpoint_sal): Add 'display_canonical' parameter.
7731 (create_breakpoints_sal): Update.
7732 (create_breakpoint): Update.
7734 2011-03-24 Tom Tromey <tromey@redhat.com>
7736 * symtab.c (decode_line_spec): Update.
7737 * linespec.c (build_canonical_line_spec): Change type of
7739 (decode_line_2, decode_line_1, decode_objc, decode_compound)
7740 (find_method, decode_all_digits, decode_dollar, decode_label)
7741 (symbol_found): Likewise.
7742 (init_linespec_result): New function.
7743 * breakpoint.c (struct captured_parse_breakpoint_args)
7744 <canonical_p>: New field, replaces addr_string_p.
7745 (create_breakpoints_sal): Add 'canonical' parameter, replacing
7747 (parse_breakpoint_sals): Likewise.
7748 (do_captured_parse_breakpoint): Update.
7749 (create_breakpoint): Use struct linespec_result.
7750 (until_break_command): Update.
7751 (breakpoint_re_set_one): Update.
7752 (decode_line_spec_1): Update.
7753 * linespec.h (struct linespec_result): New.
7754 (init_linespec_result): Declare.
7756 2011-03-23 Pedro Alves <pedro@codesourcery.com>
7758 * regcache.c (regcache_raw_read): If the target didn't supply a
7759 given raw register, mark it as unavailable.
7761 2011-03-23 Kai Tietz <ktietz@redhat.com>
7763 * breakpoint.c (clear_command): Use filename_cmp
7764 instead of strcmp for comparison.
7765 * buildsym.c (watch_main_source_file_lossage): Likewise.
7766 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
7767 checking just for slash.
7768 * dbxread.c (read_dbx_symtab): Use lbasename instead of
7769 strrchr and filename_cmp instead of strcmp for filenames.
7770 (add_old_header_file): Use filename_cmp
7771 instead of strcmp for comparison.
7772 * exec.c (exec_set_section_address): Likewise.
7773 * macrotab.c (macro_lookup_inclusion): Likewise.
7774 (macro_lookup_inclusion): Likewise.
7775 * elfread.c (_initialize_elfread): Likewise.
7776 (elfstab_offset_sections): Likewise.
7777 (elfstab_offset_sections): Use lbasename instead of
7779 * mdebugread.c (parse_partial_symbols): Likewise.
7780 (arse_partial_symbols): Use filename_(n)cmp instead of
7781 str(n)cmp for comparison.
7782 * minsyms.c (lookup_minimal_symbol): Likewise.
7783 * psymtab.c (read_psymtabs_with_filename): Likewise.
7784 * solib.c (solib_read_symbols): Likewise.
7785 (reload_shared_libraries_1): Likewise.
7786 * symmisc.c (maintenance_print_symbols): Likewise.
7787 * symfile.c (separate_debug_file_exists): Likewise.
7788 (reread_symbols): Likewise.
7789 (find_separate_debug_file_by_debuglink): Likewise.
7790 * remote-fileio.c (remote_fileio_func_rename): Likewise.
7791 * source.c (add_path): Likewise.
7792 * symtab.c (filename_seen): Likewise.
7793 (file_matches): Likewise.
7794 (print_symbol_info): Likewise.
7795 (maybe_add_partial_symtab_filename): Likewise.
7796 (make_source_files_completion_list): Likewise.
7797 * xml-syscall.c (init_sysinfo): Likewise.
7798 * windows-nat.c (_initialize_check_for_gdb_ini): Use
7799 IS_DIR_SEPARATOR for checking for trailing path separator.
7801 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7803 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
7804 label abort_expression.
7805 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
7806 DWARF_VALUE_OPTIMIZED_OUT.
7808 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7811 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
7812 to linkage_name. Invert its value. Update the function comment.
7813 (c_type_print_varspec_suffix): Invert it at the caller.
7814 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
7816 2011-03-22 Pedro Alves <pedro@codesourcery.com>
7818 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
7819 errors when reading the `stop_pc'.
7820 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
7823 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7825 * NEWS: Document gdb.Write stream keyword.
7827 2011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
7830 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7831 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7832 (dwarf2_add_field): Fix new_field->accessibility for
7833 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7835 2011-03-22 Phil Muldoon <pmuldoon@redhat.com>
7839 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
7840 other error classes. Do not print stack trace.
7842 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7844 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
7845 (dwarf2_add_field): Fix new_field->accessibility for
7846 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
7848 2011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
7850 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
7851 encountering a load via a non-SP register.
7853 2011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
7855 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
7856 field in returned unwinder.
7858 2012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7860 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
7862 2012-03-21 Joel Brobecker <brobecker@adacore.com>
7864 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
7867 2012-03-18 Pedro Alves <pedro@codesourcery.com>
7869 * frame.c (frame_unwind_register): Throw an error if unwinding the
7871 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
7872 an unwind stop reason.
7873 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
7874 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
7875 UNWIND_UNAVAILABLE>: New.
7876 * inline-frame.c (inline_frame_unwind): Install
7877 default_frame_unwind_stop_reason.
7878 * frame-unwind.c: Include "exceptions.h".
7879 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
7880 (default_frame_unwind_stop_reason): New.
7881 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
7882 (default_frame_unwind_stop_reason): Declare.
7883 (struct frame_unwind) <stop_reason>: New function pointer.
7885 * dummy-frame.c: Install default_frame_unwind_stop_reason.
7886 * dwarf2-frame.c: Include exceptions.h.
7887 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
7888 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
7889 computing the CFA. If such an error was thrown, set
7890 unavailable_retaddr.
7891 (dwarf2_frame_unwind_stop_reason): New.
7892 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
7894 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
7895 (dwarf2_signal_frame_unwind): Ditto.
7897 * amd64-tdep.c: Include "exceptions.h".
7898 (struct amd64_frame_cache): New field "base_p".
7899 (amd64_init_frame_cache): Clear it.
7900 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
7901 Avoid reading registers with functions that throw if the register
7902 is not necessary to compute the frame base.
7903 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7904 swallowing NOT_AVAILABLE_ERROR.
7905 (amd64_frame_unwind_stop_reason): New.
7906 (amd64_frame_this_id): Don't build a frame id if the frame base
7908 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
7909 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7910 base_p if the frame base was computable.
7911 (amd64_sigtramp_frame_unwind_stop_reason): New.
7912 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
7913 frame base was unavailable.
7914 (amd64_sigtramp_frame_unwind): Install
7915 amd64_sigtramp_frame_unwind_stop_reason.
7916 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7917 base_p if the frame base was computable.
7918 (amd64_epilogue_frame_unwind_stop_reason): New.
7919 (amd64_epilogue_frame_this_id): Don't build a frame id if the
7920 frame base was unavailable.
7921 (amd64_epilogue_frame_unwind): Install
7922 amd64_epilogue_frame_unwind_stop_reason.
7923 * i386-tdep.c: Include "exceptions.h".
7924 (struct i386_frame_cache): New field "base_p".
7925 (i386_init_frame_cache): Clear it.
7926 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
7927 Avoid reading registers with functions that throw if the register
7928 is not necessary to compute the frame base.
7929 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
7930 swallowing NOT_AVAILABLE_ERROR.
7931 (i386_frame_unwind_stop_reason): New.
7932 (i386_frame_this_id): Don't build a frame id if the frame base was
7934 (i386_frame_prev_register): Handle unavailable SP.
7935 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
7936 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7937 base_p if the frame base was computable.
7938 (i386_epilogue_frame_unwind_stop_reason): New.
7939 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
7940 base was unavailable.
7941 (i386_epilogue_frame_unwind): Install
7942 i386_epilogue_frame_unwind_stop_reason.
7943 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
7944 base_p if the frame base was computable.
7945 (i386_sigtramp_frame_unwind_stop_reason): New.
7946 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
7947 base was unavailable.
7948 (i386_sigtramp_frame_unwind): Install
7949 i386_sigtramp_frame_unwind_stop_reason.
7950 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
7951 type's size, not the register's.
7952 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
7954 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
7955 default_frame_unwind_stop_reason.
7956 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
7957 (alpha_heuristic_frame_unwind): Ditto.
7958 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
7959 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
7960 * avr-tdep.c (avr_frame_unwind): Ditto.
7961 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
7963 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
7964 * frv-tdep.c (frv_frame_unwind): Ditto.
7965 * h8300-tdep.c (h8300_frame_unwind): Ditto.
7966 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
7967 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
7968 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
7969 (hppa_stub_frame_unwind): Ditto.
7970 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
7971 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
7972 (ia64_libunwind_frame_unwind)
7973 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
7974 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
7975 * lm32-tdep.c (lm32_frame_unwind): Ditto.
7976 * m32c-tdep.c (m32c_unwind): Ditto.
7977 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
7978 * m32r-tdep.c (m32r_frame_unwind): Ditto.
7979 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
7980 * m68k-tdep.c (m68k_frame_unwind): Ditto.
7981 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
7982 * m88k-tdep.c (m88k_frame_unwind): Ditto.
7983 * mep-tdep.c (mep_frame_unwind): Ditto.
7984 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
7985 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
7986 (mips_stub_frame_unwind): Ditto.
7987 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
7988 * moxie-tdep.c (moxie_frame_unwind): Ditto.
7989 * mt-tdep.c (mt_frame_unwind): Ditto.
7990 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
7991 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
7992 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
7993 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
7994 (s390_sigtramp_frame_unwind): Ditto.
7995 * score-tdep.c (score_prologue_unwind): Ditto.
7996 * sh-tdep.c (sh_frame_unwind): Ditto.
7997 * sh64-tdep.c (sh64_frame_unwind): Ditto.
7998 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
7999 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8000 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8001 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8002 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8003 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8004 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8005 (sparc64obsd_trapframe_unwind): Ditto.
8006 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8007 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8008 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8009 * v850-tdep.c (v850_frame_unwind): Ditto.
8010 * vax-tdep.c (vax_frame_unwind): Ditto.
8011 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8012 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8013 * xtensa-tdep.c (xtensa_unwind): Ditto.
8015 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8017 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8018 there's always a frame. Use get_frame_pc_if_available instead of
8019 get_frame_pc, and if there's no PC available, don't look up a
8022 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8024 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8027 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8029 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8032 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8034 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8035 * frame.c (frame_unwind_caller_pc_if_available): New.
8036 * stack.c (frame_info): Handle unavailable PC.
8038 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8040 * frame.c (frame_unwind_pc): Rename to ...
8041 (frame_unwind_pc_if_available): ... this. New `pc' output
8042 parameter. Change return type to int. Gracefully handle
8043 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8044 happened, or 1 otherwise.
8045 (frame_unwind_pc): Reimplement on top of
8046 frame_unwind_pc_if_available.
8047 (get_frame_func): Rename to ...
8048 (get_frame_func_if_available): New `pc' output parameter. Change
8049 return type to int. Gracefully handle the PC not being available.
8050 (get_frame_func): Reimplement on top of
8051 get_frame_func_if_available.
8052 (select_frame): Handle the PC being unavailable.
8053 (get_prev_frame): Handle the PC being unavailable.
8054 (get_frame_pc_if_available): New.
8055 (get_frame_address_in_block_if_available): New.
8056 (find_frame_sal): Handle the frame PC not being available.
8057 * frame.h (get_frame_pc_if_available): Declare.
8058 (get_frame_address_in_block_if_available): Declare.
8059 (get_frame_func_if_available): Declare.
8060 * stack.c (print_frame_info): Handle the PC being unavailable.
8061 (find_frame_funname): Ditto.
8062 (print_frame): Handle the PC being unavailable.
8063 (get_frame_language): Ditto.
8064 * blockframe.c (get_frame_block): Ditto.
8065 * macroscope.c (default_macro_scope): Ditto.
8066 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8068 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8070 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8071 NOT_AVAILABLE_ERROR when evaluating the location expression.
8073 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8075 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8076 returning that the register piece is unavailable/optimized out.
8077 (write_pieced_value): Handle get_frame_register_bytes returning
8078 that the register piece is unavailable/optimized out when doing a
8079 read-modify write of a bitfield.
8080 * findvar.c (value_from_register): Handle get_frame_register_bytes
8081 returning that the register piece is unavailable/optimized out.
8082 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8083 and `unavailablep'. Throw error on bad debug info. Use
8084 frame_register instead of frame_register_read, to fill in the new
8086 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8088 * valops.c: (value_assign): Adjust, and handle
8089 get_frame_register_bytes failing.
8090 * spu-tdep.c: Include exceptions.h.
8091 (spu_software_single_step): Adjust, and handle
8092 get_frame_register_bytes failing.
8093 (spu_get_longjmp_target): Ditto.
8094 * gdbarch.sh (register_to_value): Change to return int. New
8095 parameters `optimizedp' and `unavailablep'.
8096 * gdbarch.h, gdbarch.c: Regenerate.
8097 * i386-tdep.c (i386_register_to_value): Adjust to new
8098 gdbarch_register_to_value interface.
8099 * i387-tdep.c (i387_register_to_value): Ditto.
8100 * i387-tdep.h (i387_register_to_value): Ditto.
8101 * alpha-tdep.c (alpha_register_to_value): Ditto.
8102 * ia64-tdep.c (ia64_register_to_value): Ditto.
8103 * m68k-tdep.c (m68k_register_to_value): Ditto.
8104 * mips-tdep.c (mips_register_to_value): Ditto.
8105 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8107 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8109 * findvar.c (value_of_register): Mark the value as unavailable, if
8110 the register is unavailable.
8111 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8112 (frame_register): New `unavailablep' parameter.
8113 (frame_register_read): Update comment.
8114 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8115 Set it if the register is unavailable. If the register is
8116 unavailable, clear the output buffer.
8117 (frame_register): New `unavailablep' parameter. Pass it down.
8118 (frame_unwind_register): Adjust.
8119 (put_frame_register): Adjust.
8120 (frame_register_read): Adjust. Also return false if the register
8122 (frame_register_unwind_location): Adjust.
8123 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8124 is unavailable, mark the value accordingly.
8125 * stack.c (frame_info): Handle unavailable registers.
8127 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8129 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8130 simplify, using regcache_cooked_read.
8132 2011-03-18 Pedro Alves <pedro@codesourcery.com>
8134 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8135 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8136 (regcache_raw_read_unsigned, regcache_raw_read_part)
8137 (regcache_cooked_read, regcache_cooked_read_signed)
8138 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8139 (regcache_cooked_read_ftype): Change return to enum
8141 * regcache.c: Include exceptions.h
8142 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8143 (do_cooked_read): Change return to enum register_status. Always
8144 forward to regcache_cooked_read.
8145 (regcache_raw_read): Change return to enum register_status. If
8146 the register is not REG_VALID, memset the buffer. Return the
8148 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8149 return the register's status.
8150 (regcache_raw_read_unsigned): Ditto.
8151 (regcache_cooked_read): Change return to enum register_status.
8152 Assert that with read-only regcaches, the register's status must
8153 be known. If the regcache is read-only, and the register is not
8154 REG_VALID, memset the buffer. Return the register's status.
8155 (regcache_cooked_read_signed): Change return to enum
8156 register_status. Handle non-REG_VALID registers and return the
8158 (regcache_cooked_read_unsigned): Change return to enum
8159 register_status. Handle non-REG_VALID registers and return the
8161 (regcache_xfer_part, regcache_raw_read_part)
8162 (regcache_cooked_read_part): Change return to enum
8163 register_status. Return the register's status.
8164 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8166 (regcache_dump): Handle unavailable cooked registers.
8167 * frame.c (do_frame_register_read): Adjust interface to match
8168 regcache_cooked_read_ftype.
8169 * gdbarch.sh (pseudo_register_read): Change return to enum
8171 * gdbarch.h, gdbarch.c: Regenerate.
8173 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8175 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8176 register_status. If reading a raw register indicates the raw
8177 register is not valid, return the raw register's status,
8178 otherwise, return REG_VALID.
8179 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8180 register_status. Handle non-REG_VALID raw registers and return
8181 the register's status.
8182 * arm-tdep.c (arm_neon_quad_read)
8183 (arm_pseudo_read): Change return to enum register_status. Handle
8184 non-REG_VALID raw registers and return the register's status.
8185 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8186 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8187 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8188 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8189 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8191 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8192 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8193 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8194 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8195 (m32c_pseudo_register_read): Change return to enum
8196 register_status. Adjust.
8197 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8198 enum register_status. Return the register's status.
8199 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8200 register_status. Return the register's status.
8201 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8202 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8203 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8204 * rs6000-tdep.c (move_ev_register_func): New typedef.
8205 (e500_move_ev_register): Use it. Change return to enum
8206 register_status. Return the register's status.
8207 (do_regcache_raw_read): New function.
8208 (do_regcache_raw_write): New function.
8209 (e500_pseudo_register_read): Change return to enum
8210 register_status. Return the register's status. Use
8211 do_regcache_raw_read.
8212 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8213 (dfp_pseudo_register_read): Change return to enum register_status.
8214 Return the register's status.
8215 (vsx_pseudo_register_read): Ditto.
8216 (efpr_pseudo_register_read): Ditto.
8217 (rs6000_pseudo_register_read): Ditto.
8218 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8219 register_status. Return the register's status.
8220 * sh64-tdep.c (pseudo_register_read_portions): New function.
8221 (sh64_pseudo_register_read): Change return to enum
8222 register_status. Use pseudo_register_read_portions. Return the
8224 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8225 register_status. Return the register's status.
8226 * sh-tdep.c (pseudo_register_read_portions): New function.
8227 (sh_pseudo_register_read): Change return to enum register_status.
8228 Use pseudo_register_read_portions. Return the register's status.
8229 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8230 enum register_status. Return the register's status.
8231 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8232 * spu-tdep.c (spu_pseudo_register_read_spu)
8233 (spu_pseudo_register_read): Ditto.
8234 * xtensa-tdep.c (xtensa_register_read_masked)
8235 (xtensa_pseudo_register_read): Ditto.
8236 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8238 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8240 * python/py-value.c (valpy_getitem): Fix formatting of error function
8243 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8245 ARI fixes: Add missing internationalization markups throughout
8247 * darwin-nat-info.c: Ditto.
8250 * mi/mi-main.c: Ditto.
8252 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8254 ARI fixes: Add missing internationalization markups throughout
8257 * cp-name-parser.y: Ditto.
8260 * objc-exp.y: Ditto.
8263 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8265 ARI fixes: Messages should have no trailing new lines.
8266 * darwin-nat.c (mach_check_error): Remove trailing new line from
8267 warning function call message.
8268 * record.c (bfdcore_read): Idem for error call.
8270 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8272 * common/signals.c (target_signal_from_host): Add _ markup to error
8273 function call message.
8274 (target_signal_to_host): Add _ markup and remove trailing new line
8275 from warning call message.
8276 (target_signal_from_command): Add _ markup to error function call
8279 2011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8283 * python/python.c (gdbpy_write): Accept a stream argument and
8284 operate to the appropriate stream.
8285 (gdbpy_flush): Likewise.
8286 (_initialize_python): Add stream constants.
8287 (finish_python_initialization): Add GdbOutputErrorFile class.
8289 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8291 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8293 2011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8295 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
8296 to store_signed_integer. Add debug message when relocating CALL
8297 instructions. Fix formatting of debug message.
8298 * i386-tdep.c (i386_relocate_instruction): Ditto.
8300 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8302 * target.h (struct target_ops): Remove to_lookup_symbol field.
8303 (target_lookup_symbol): Delete macro.
8304 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8305 (update_current_target, setup_target_debug): Remove handling
8306 of to_lookup_symbol target_ops field.
8307 * ada-tasks.c (get_known_tasks_addr): Remove use of
8308 target_lookup_symbol.
8309 * coffread.c (coff_symtab_read): Likewise.
8310 * dbxread.c (read_dbx_symtab): Ditto.
8312 2011-03-17 Joel Brobecker <brobecker@gnat.com>
8315 * configure.ac: Add getthrds declaration check.
8316 * configure, config.in: Regenerate.
8317 * aix-thread.c (getthrds): Declare only if not already declared
8318 in procinfo.h. More declaration out of get_signaled_thread to
8321 2011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8323 * python/py-symtab.c: Populate symtab_object_methods,
8325 (stpy_is_valid): New function.
8326 (salpy_is_valid): Ditto.
8327 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8328 (sympy_is_valid): New function.
8329 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8330 (objfpy_is_valid): New function.
8331 * python/py-inferior.c: Populate inferior_object_methods.
8332 (infpy_is_valid): New function.
8333 * python/py-infthread.c: Populate thread_object_methods.
8334 (thpy_is_valid): New function.
8335 * python/py-block.c: Declare block_object_methods. Populate. Declare
8336 block_iterator_object_methods. Populate.
8337 (blpy_is_valid): New function.
8338 (blpy_iter_is_valid): Ditto.
8340 2011-03-16 Keith Seitz <keiths@redhat.com>
8342 * linespec.c (find_methods): Canonicalize NAME before looking
8344 (name_end): New function.
8345 (keep_name_info): New function.
8346 (decode_line_1): Use keep_name_info.
8347 (decode_compound): Likewise.
8348 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8349 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8352 * linespec.c (locate_first_half): Keep overload information, too.
8353 (decode_compound): Use a string to represent break characters
8355 If P points to a break character, do not increment it.
8356 For C++ and Java, keep overload information and relevant keywords.
8357 If we cannot find a symbol, search the minimal symbols.
8360 * linespec.c (decode_compound): Rename SAVED_ARG to
8362 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8364 Pass a valid block to lookup_symbol.
8365 (lookup_prefix_sym): Likewise.
8366 (find_method): Construct search name based on SYM_CLASS instead
8368 * psymtab.c (lookup_partial_symbol): Add language parameter.
8369 (lookup_symbol_aux_psymtabs): Likewise.
8370 Don't assume that the psymtab we found was the right one. Search
8371 for the desired symbol in the symtab to be certain.
8372 (psymtab_search_name): New function.
8373 (lookup_partial_symbol): Use psymtab_search_name.
8374 Add language parameter.
8375 (read_symtabs_for_function): Add language parameter and pass to
8376 lookup_partial_symbol.
8377 (find_symbol_file_from_partial): Likewise.
8379 2011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8382 * dwarf2read.c (noop_record_line): New function.
8383 (dwarf_decode_lines): Ignore line tables for GCd functions.
8385 2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8387 Fix ARI warnings about new lines at the end of messages, which
8388 are unneeded as there is a new line added at the end of the message
8390 * darwin-nat.c (darwin_stop_inferior): Ditto.
8391 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8392 * dfp.c (decimal_to_number): Ditto.
8393 * exec.c (print_section_info): Ditto.
8394 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8395 * osdata.c (get_osdata): Ditto.
8396 * record.c (bfdcore_write): Ditto.
8397 * remote-mips.c (mips_readchar): Ditto.
8398 * remote.c (read_ptid): Ditto.
8399 * ser-mingw.c (ser_windows_raw): Ditto.
8400 * tracepoint.c (add_local_symbols): Ditto.
8401 * windows-nat.c (fake_create_process): Ditto.
8403 2011-03-16 Tom Tromey <tromey@redhat.com>
8405 * tracepoint.c (stop_tracing): Don't declare.
8406 * event-top.c (after_char_processing_hook): Add `(void)'.
8408 2011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8410 * NEWS: Add Parameter sub-classing description.
8412 2011-03-16 Kai Tietz <ktietz@redhat.com>
8414 * MAINTAINERS: Update my e-mail address.
8416 2011-03-15 Andreas Tobler <andreast@fgznet.ch>
8418 * MAINTAINERS: Add myself for write after approval privileges.
8420 2011-03-15 Michael Snyder <msnyder@vmware.com>
8422 * frame.c (find_frame_sal): Assert sym is not null.
8424 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8426 * objc-lang.c (selectors_info): Check strchr for null result.
8428 * stabsread.c (define_symbol): Guard against bad stabstring input.
8430 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8432 Remove trailing spaces and tabulations from pascal language
8437 p-valprint.c: Ditto.
8439 2011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8441 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8442 than LOW. Comment it.
8443 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8444 HIGHPC not strictly higher than LOWPC.
8446 2011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8448 Fix formatting of function declarations returning a pointer in
8450 * varobj.c (varobj_add_child): Ditto.
8451 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8452 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8454 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8456 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8457 for the "generic" vector ABI used with GCC 4.3 and later.
8458 (ppc64_sysv_abi_return_value): Likewise.
8460 2011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8462 * infcall.c (call_function_by_hand): Function return value is
8463 always a non_lval, even when using struct_return.
8465 2011-03-15 Pedro Alves <pedro@codesourcery.com>
8467 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8468 (map_display_numbers): New.
8469 (do_delete_display): New.
8470 (undisplay_command): Use map_display_numbers.
8471 (do_enable_disable_display): New.
8472 (enable_disable_display_command): New function.
8473 (enable_display): Delete.
8474 (enable_display_command): New.
8475 (disable_display_command): Reimplement.
8476 (_initialize_printcmd): Adjust "enable display" command to use
8477 `enable_display_command' as callback.
8479 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8481 * NEWS: Add Python breakpoint 'stop' operation.
8483 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8485 * NEWS: Delete duplicate entry. Fix typo.
8487 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8489 Fix ARI warning about function names in first column.
8490 Put prototype declaration on same line as return type.
8491 * objc-exp.y: Ditto.
8493 * python/py-stopevent.h: Ditto.
8494 For long function names, split parameters to
8495 allow function name on same line as return type.
8496 * solib-pa64.c: Ditto.
8499 For long function declaration, use single line.
8500 * hppa-tdep.h: Ditto.
8501 * inferior.h: Ditto.
8503 2011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8505 * python/python.h: Declare gdbpy_should_stop and
8506 gdbpy_breakpoint_has_py_cond.
8507 * python/python.c: Add python.h to includes. Remove python.h from
8508 HAVE_PYTHON definition
8509 (gdbpy_should_stop): New dummy function.
8510 (gdbpy_breakpoint_has_py_cond): New dummy function.
8511 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8512 sub-classing capabilities.
8513 (gdbpy_should_stop): New function.
8514 (gdbpy_breakpoint_has_py_cond): New function.
8515 (local_setattro): New function.
8516 * breakpoint.c (condition_command): Add check for Python 'stop'
8518 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8519 operation function as part of stop/continue tests.
8521 2011-03-14 Tom Tromey <tromey@redhat.com>
8524 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8525 (needs_frame_dwarf_call): Likewise.
8527 2011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8529 Fix ARI warning about functions without parameters that do not
8531 * breakpoint.c (all_tracepoints): Replace () by (void).
8532 * f-exp.y (match_string_literal): Ditto.
8534 * m2-exp.y (yylex): Ditto.
8535 * mep-tdep.c (current_me_module): Ditto.
8536 (current_options): Ditto.
8537 (current_cop_data_bus_width): Ditto.
8538 (current_cr_names): Ditto.
8539 (current_cr_is_float): Ditto.
8540 (current_ccr_names): Ditto.
8541 * objc-exp.y (yylex): Ditto.
8542 * p-exp.y (yylex): Ditto.
8543 * remote.c (send_interrupt_sequence): Ditto.
8544 * tracepoint.c (current_trace_status): Ditto.
8545 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8546 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8548 2011-03-11 Michael Snyder <msnyder@vmware.com>
8550 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8551 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8552 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8553 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8554 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8556 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8557 (delete_async_event_handler): Ditto.
8559 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8561 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8563 * top.c (set_verbose): Assert showcmd was found.
8565 2011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8567 * xtensa-tdep.c (warning_once): Correct style issues.
8569 2011-03-11 Yao Qi <yao@codesourcery.com>
8571 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8573 2011-03-11 Andreas Schwab <schwab@redhat.com>
8575 * common/aclocal.m4: Remove.
8577 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8579 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
8580 (xtensa_write_register, xtensa_read_register): Likewise.
8581 (xtensa_hextochar): Removed.
8582 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
8584 2011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
8586 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
8587 (xtensa_call0_frame_cache_t): Update comments. New fields added.
8588 (xtensa_alloc_frame_cache): Add initialization for new fields.
8589 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
8590 (warning_once): New function.
8591 (xtensa_insn_kind): New item c0opc_and.
8592 (call0_classify_opcode): Add the case for AND instruction.
8593 (call0_track_op): Change arguments. New local variable litbase.
8594 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
8595 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
8597 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
8598 (call0_analyze_prologue): Update the comments. Change arguments.
8599 Add the variety of updates to handle extended prologues, which now can
8600 conduct dynamic stack adjustments.
8601 (call0_frame_cache): Likewise.
8602 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
8603 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
8605 2011-03-10 Michael Snyder <msnyder@vmware.com>
8607 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
8608 (cmd_qtframe): Ditto.
8609 (cmd_qtbuffer): Ditto.
8610 (cmd_bigqtbuffer): Ditto.
8612 2011-03-10 Tom Tromey <tromey@redhat.com>
8614 * tracepoint.c (trace_actions_command): Update.
8615 * thread.c (thread_apply_command): Update.
8616 * reverse.c (delete_bookmark_command): Update.
8617 (bookmarks_info): Update.
8618 * printcmd.c (undisplay_command): Update.
8619 * memattr.c (mem_enable_command): Update.
8620 (mem_disable_command): Update.
8621 (mem_delete_command): Update.
8622 * inferior.c (detach_inferior_command): Update.
8623 (kill_inferior_command): Update.
8624 (remove_inferior_command): Update.
8625 * cli/cli-utils.h (struct get_number_or_range_state): New.
8626 (init_number_or_range): Declare.
8627 (get_number_or_range): Update.
8628 * cli/cli-utils.c (init_number_or_range): New function.
8629 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
8631 (number_is_in_list): Update.
8632 * breakpoint.h (get_tracepoint_by_number): Update.
8633 * breakpoint.c (map_breakpoint_numbers): Update for change to
8634 get_number_or_range.
8635 (find_location_by_number): Use get_number, not
8636 get_number_or_range.
8637 (trace_pass_set_count): New function.
8638 (trace_pass_command): Update for change to get_number_or_range.
8640 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
8643 2011-03-10 Phil Muldoon <pmuldoon@redhat.com>
8645 * python/py-param.c (add_setshow_generic): Add set/show callback
8646 parameters. Register Python object context.
8647 (get_show_value): New function.
8648 (get_set_value): New function.
8649 (call_doc_function): New function.
8650 (get_doc_string): Move behind get_show_value/get_set_value.
8652 2011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
8654 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
8656 2011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
8658 * xtensa-tdep.c (xtensa_read_register): Add comment.
8659 (xtensa_write_register): Likewise.
8660 (xtensa_hextochar): Add comment and update to match coding conventions.
8661 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
8662 (execute_l32e, execute_s32e, execute_code): Update comments.
8663 (xtensa_exception_handler_t): Update to match coding conventions.
8664 (xtensa_insn_kind): Likewise.
8666 2011-03-09 Michael Snyder <msnyder@vmware.com>
8668 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
8670 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8672 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
8674 2011-03-09 Tom Tromey <tromey@redhat.com>
8676 * thread.c (restore_selected_frame): Handle frame_level == -1.
8677 (make_cleanup_restore_current_thread): Use
8678 get_selected_frame_if_set.
8679 * frame.h (get_selected_frame_if_set): Declare.
8680 * frame.c (get_selected_frame_if_set): New function.
8682 2011-03-09 Pedro Alves <pedro@codesourcery.com>
8684 * cli/cli-cmds.c (shell_escape): Use lbasename.
8685 * coffread.c (coff_start_symtab): Constify parameter.
8686 (complete_symtab): Constify `name' parameter.
8687 (coff_symtab_read): Constify `filestring' local.
8688 (coff_getfilename): Constify return and `result' local.
8690 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
8691 * linux-fork.c (info_checkpoints_command): Use lbasename.
8692 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
8693 * minsyms.c (lookup_minimal_symbol): Use lbasename.
8694 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
8695 * procfs.c (procfs_make_note_section): Use lbasename.
8696 * tui/tui-io.c (printable_part): Constity return and parameter.
8698 (print_filename): Constify parameters, and local `s'.
8699 (tui_rl_display_match_list): Constify local `temp'.
8701 2011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8704 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8705 Fix DWARF-3+ DW_AT_accessibility default assumption.
8706 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8707 cu->header.version >= 3.
8709 2011-03-09 Yao Qi <yao@codesourcery.com>
8711 * common/Makefile.in: Remove.
8712 * common/configure: Remove.
8713 * common/configure.ac: Remove.
8715 2011-03-09 Yao Qi <yao@codesourcery.com>
8718 2011-02-11 Yao Qi <yao@codesourcery.com>
8720 * common/Makefile.in: Add copyright header.
8722 2011-02-11 Yao Qi <yao@codesourcery.com>
8724 * Makefile.in: Remove signals.o from COMMON_OBS. Link
8726 * configure.ac: Add common to sub dir.
8727 * configure: Regenerate.
8729 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8731 * xtensa-tdep.c (call0_ret): New function.
8732 (xtensa_skip_prologue): Speed up analysis.
8734 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8736 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
8737 while executing MI command -data-list-changed-registers.
8739 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8741 * xtensa-tdep.c (xtensa_read_register): New function.
8742 (xtensa_write_register): New function.
8743 (xtensa_find_register_by_name): New function.
8744 (xtensa_windowed_frame_cache): Update comments in type description.
8745 (xtensa_frame_cache): Likewise.
8746 (xtensa_window_interrupt_insn): New function.
8747 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
8748 (xtensa_insn_kind): Add new instructions.
8749 (rwx_special_register): New function.
8750 (call0_classify_opcode): Add new instructions to the analysis.
8751 (a0_saved, a7_saved, a11_saved): New variables.
8752 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
8753 (execute_l32e): New function.
8754 (execute_s32e): New function.
8755 (xtensa_exception_handler_t): New type.
8756 (execute_code): New function.
8757 (xtensa_window_interrupt_frame_cache): New function to conduct frame
8758 analysis for Xtensa Window Exception handlers.
8760 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8762 * xtensa-tdep.c (TX_PS): New.
8763 (windowing_enabled): Update to count for Call0 ABI.
8764 (xtensa_hextochar): New.
8765 (xtensa_init_reggroups): Make algorithm generic.
8766 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
8768 2011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
8770 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
8772 2011-03-08 Michael Snyder <msnyder@vmware.com>
8774 * i386-tdep.c (i386_follow_jump): Check return value of
8776 (i386_analyze_struct_return): Ditto.
8777 (i386_skip_probe): Ditto.
8778 (i386_match_insn): Ditto.
8779 (i386_skip_noop): Ditto.
8780 (i386_analyze_frame_setup): Ditto.
8781 (i386_analyze_register_saves): Ditto.
8782 (i386_skip_prologue): Ditto.
8783 (i386_skip_main_prologue): Ditto.
8785 * target.c (read_whatever_is_readable): Fix memory leak.
8787 * i386-tdep.c (i386_process_record): Document fall through.
8789 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8791 Fix DWARF-3+ DW_AT_accessibility default assumption.
8792 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
8793 cu->header.version >= 3.
8795 2011-03-08 Pedro Alves <pedro@codesourcery.com>
8797 * remote.c (remote_check_symbols): Skip if the target has no
8800 2011-03-08 Joel Brobecker <brobecker@adacore.com>
8802 * target.c (read_whatever_is_readable): Reformat comment,
8803 with a minor typo fix. Minor reformatting of the code.
8805 2011-03-08 Yao Qi <yao@codesourcery.com>
8807 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
8808 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
8809 Use cached result instead of calling displaced_in_arm_mode again.
8810 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
8811 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
8812 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
8813 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
8814 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
8815 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
8816 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
8817 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
8818 (cleanup_block_load_pc, copy_block_xfer): Likewise.
8819 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
8820 (arm_catch_kernel_helper_return): Likewise.
8821 * gdb/arm-tdep.h : Update function declarations.
8823 2011-03-07 Michael Snyder <msnyder@vmware.com>
8825 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
8827 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
8829 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
8831 * elfread.c (elf_symtab_read): Stop memory leak.
8833 * main.c (captured_main): Fix memory leak.
8835 2011-03-07 Andreas Schwab <schwab@linux-m68k.org>
8837 * ada-lang.c (compare_names): Call is_name_suffix with string1
8840 2011-03-07 Tom Tromey <tromey@redhat.com>
8842 * xcoffread.c (xcoff_sym_fns): Update.
8843 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
8844 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
8845 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
8846 (symbol_file_add_with_addrs_or_offsets): Likewise.
8847 (reread_symbols): Handle OBJF_PSYMTABS_READ.
8848 * somread.c (som_sym_fns): Update.
8849 * psymtab.h (require_partial_symbols): Declare.
8850 * psymtab.c (require_partial_symbols): New function.
8851 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
8852 (ALL_OBJFILE_PSYMTABS): Undef.
8853 (ALL_PSYMTABS): Move from psympriv.h.
8854 (lookup_partial_symtab, find_pc_sect_psymtab)
8855 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
8856 (find_last_source_symtab_from_partial)
8857 (forget_cached_source_info_partial)
8858 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
8859 (expand_partial_symbol_tables, read_psymtabs_with_filename)
8860 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
8861 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
8862 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
8863 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
8864 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
8865 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
8866 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
8868 * mipsread.c (ecoff_sym_fns): Update.
8869 * machoread.c (macho_sym_fns): Update.
8870 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
8871 (read_psyms): New function.
8872 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
8873 (elf_sym_fns_lazy_psyms): New global.
8874 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
8875 dwarf2_build_psymtabs.
8876 * dbxread.c (aout_sym_fns): Update.
8877 * coffread.c (coff_sym_fns): Update.
8879 2011-03-07 Tom Tromey <tromey@redhat.com>
8881 * infrun.c (print_exited_reason): Include inferior id and pid in
8884 2011-03-07 Tom Tromey <tromey@redhat.com>
8886 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
8888 (target_has_execution_1): Update.
8889 (target_has_execution_current): Declare.
8890 (target_has_execution): Call target_has_execution_current.
8891 (default_child_has_execution): Update.
8892 * target.c (default_child_has_execution): Add 'the_ptid'
8894 (target_has_execution_1): Likewise.
8895 (target_has_execution_current): New function.
8896 (add_target): Update.
8897 (init_dummy_target): Update.
8898 * remote-m32r-sdi.c (m32r_has_execution): New function.
8899 (init_m32r_ops): Use it.
8900 * record.c (record_core_has_execution): Now static. Add
8901 'the_ptid' parameter.
8902 * inferior.c (have_live_inferiors): Don't save current thread.
8903 Use target_has_execution_1.
8905 2011-03-07 Yao Qi <yao@codesourcery.com>
8907 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
8909 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8911 * elfread.c (elf_symtab_read): Minor reformatting.
8913 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8915 * objc-lang.c (selectors_info): Minor reformatting.
8917 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8919 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
8921 2011-03-07 Joel Brobecker <brobecker@adacore.com>
8922 Michael Snyder <msnyder@vmware.com>
8924 * ada-valprint.c (ada_val_print_array): Move the declaration of
8925 "byte_order" and "elttype" inside the block where these variables
8926 are actually used. Remove some special handling for the case
8927 where "elttype" and "eltlen" are null. Replace by a comment
8928 and a couple of assertion checks.
8930 2011-03-05 Michael Snyder <msnyder@vmware.com>
8932 * source.c (add_path): Replace semicolon at end of block.
8933 * dwarf2expr.c (execute_stack_op): Ditto.
8935 2011-03-05 Mike Frysinger <vapier@gentoo.org>
8937 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
8938 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
8939 (bfin-*-*): Likewise.
8941 2011-03-05 Michael Snyder <msnyder@vmware.com>
8943 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
8944 * mdebugread.c (parse_symbol): Ditto.
8945 * parse.c (parse_exp_in_context): Ditto.
8946 * source.c (add_path): Ditto.
8947 * utils.c (gnu_debuglink_crc32): Ditto.
8948 * varobj.c (variable_language): Ditto.
8950 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
8952 2011-03-04 Michael Snyder <msnyder@vmware.com>
8954 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
8956 * symfile.c (simple_overlay_update): Check for null return value
8957 from lookup_minimal_symbol.
8959 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
8961 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8963 * eval.c (parse_and_eval_address_1): Remove function.
8964 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
8965 instead of parse_and_eval_address_1.
8966 * value.h (parse_and_eval_address_1): Remove prototype.
8968 2011-03-04 Michael Snyder <msnyder@vmware.com>
8970 * remote.c (putpkt_binary): Document that case stmt falls through.
8972 2011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
8974 * breakpointc (print_it_typical): Move NULL check from here...
8975 (print_bp_stop_message): ... to here.
8977 2011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
8979 * breakpoint.c (enable_command): Use break instead of continue,
8980 and fill in a missing break.
8981 (disable_command): Ditto.
8983 2011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
8985 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
8986 (terminal_save_ours): Remove misleading comment.
8987 (inflow_inferior_data_cleanup): Free ttystate.
8988 (inflow_inferior_exit): Likewise.
8989 (copy_terminal_info): Copy ttystate.
8991 * serial.c (serial_copy_tty_state): New function.
8992 * serial.h (serial_copy_tty_state): Add prototype.
8993 (struct serial_ops): Add copy_tty_state callback.
8994 * ser-base.c (ser_base_copy_tty_state): New function.
8995 * ser-base.h (ser_base_copy_tty_state): Add prototype.
8996 * ser-go32.c (dos_copy_tty_state): New function.
8997 (dos_ops): Install copy_tty_state callback.
8998 * ser-mingw.c (_initialize_ser_windows): Likewise.
8999 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9000 * ser-unix.c (hardwire_copy_tty_state): New function.
9001 (_initialize_ser_hardwire): Install it.
9003 2011-03-04 Michael Snyder <msnyder@vmware.com>
9005 * breakpoint.c (create_breakpoint): Add missing break statement.
9007 Reverting this patch:
9008 * infcall.c (call_function_by_hand): Add break statements for lint.
9010 Reverting this patch:
9011 * cli/cli-script.c (script_from_file): Add break for lint.
9013 2011-03-04 Michael Snyder <msnyder@vmware.com>
9015 * solib.c (reload_shared_libraries_1): Close memory leak.
9017 2011-03-03 Tom Tromey <tromey@redhat.com>
9020 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9023 2011-03-03 Michael Snyder <msnyder@vmware.com>
9025 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9026 fields of struct 'st' to zero.
9028 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9029 sal.pspace before calling set_current_source_symtab_and_line.
9031 2011-03-03 Yao Qi <yao@codesourcery.com>
9033 * Makefile.in (configure-common): Remove. Let Makefile
9034 in dir common to rebuild itself.
9035 (common/Makefile): Likewise.
9037 2011-03-03 Joel Brobecker <brobecker@adacore.com>
9039 * utils.c (parse_escape): Add i18n markup in error message.
9041 2011-03-03 Yao Qi <yao@codesourcery.com>
9043 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9045 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9046 (displaced_write_reg, displaced_read_reg): Likewise.
9047 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9048 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9049 (cleanup_branch): Replace magic number 14 and 15 with
9050 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9052 2011-03-02 Michael Snyder <msnyder@vmware.com>
9054 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9056 * cli/cli-script.c (script_from_file): Add break for lint.
9058 * mdebugread.c (parse_partial_symbols): Fix indent.
9060 * target-descriptions.c (tdesc_gdb_type): No need to call
9061 xstrdup, callee saves a copy.
9063 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9065 * infcall.c (call_function_by_hand): Add break statements for lint.
9067 * utils.c (parse_escape): Escape the escape char.
9069 * python/py-inferior.c (build_inferior_list): Error out if
9070 PyList_Append fails.
9071 (gdbpy_inferiors): Error out if build_inferior_list fails.
9073 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9076 * record.c (record_restore): Move printf to before error return.
9078 2011-03-02 Yao Qi <yao@codesourcery.com>
9080 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9081 is_thumb and insn_size.
9082 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9083 on both ARM and Thumb mode.
9084 (arm_process_displaced_insn): Set is_thumb and insn_size.
9085 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9086 (arm_displaced_step_fixup): Likewise.
9088 2011-03-01 Michael Snyder <msnyder@vmware.com>
9090 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9092 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9094 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9096 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9098 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9101 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9102 which shadows function parameter.
9104 * tracepoint.c (create_tsv_from_upload): Superfluous call
9105 to xstrdup. Callee already calls xstrdup.
9107 * linespec.c (decode_line_1): Remove unnecessary null check.
9109 * tracepoint.c (scope_info): Fix mem leak, remove underused
9112 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9113 superfluous null check.
9115 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
9116 (value_of_builtin_frame_fp_reg): Ditto.
9118 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9120 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9123 * linespec.c (decode_line_1): Check for null before dereference.
9125 * reverse.c (record_restore): Move null-check to before pointer
9128 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9130 * objc-lang.c (selectors_info): Add explanitory comment.
9131 (classes_info): Ditto.
9133 2011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9135 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9136 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9137 versions of the trampoline. Handle Thumb vs. ARM addresses.
9138 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9139 (arm_linux_init_abi): Install it.
9140 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9141 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9143 2011-02-28 Michael Snyder <msnyder@vmware.com>
9145 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9146 a little bigger, to avoid possibility of an overflow.
9148 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9149 buffers a little bigger, to avoid possibility of an overflow.
9151 * coffread.c (coff_getfilename): Add check to avoid overflow.
9153 * objc-lang.c (selectors_info): Add a small safety margin to
9155 (classes_info): Error out on too long REGEXP.
9157 * infrun.c (handle_inferior_event): Remove unused function call.
9159 * fork-child.c (fork_inferior): Remove ifdef'd code and
9162 * linux-thread-db.c (attach_thread): Discard unused value.
9164 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9166 * remote.c (remote_get_noisy_reply): Discard unused value.
9167 (remote_vcont_resume): Ditto.
9168 (remote_stop_ns): Ditto.
9170 * linespec.c (decode_objc): Delete unused variable.
9172 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9174 * dwarf2read.c (add_partial_symbol): Discard unused values.
9175 (read_base_type): Delete unused variable.
9177 * dbxread.c (read_dbx_symtab): Discard unused value.
9179 * eval.c (evaluate_subexp_standard): Delete unused variable,
9180 and discard unused values.
9182 * infcmd.c (_initialize_infcmd): Discard unused values.
9184 * stabsread.c (rs6000_builtin_type): Missing break statement.
9186 * dbxread.c (process_one_symbol): Discard unused value.
9188 * coffread.c (coff_end_symtab): Delete unused variable.
9190 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9191 (dwarf2_add_typedef): Delete unused variable.
9192 (read_namespace): Ditto.
9193 (dwarf_decode_macros): Ditto.
9195 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9197 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9199 * p-valprint.c (pascal_val_print): Discard unused value.
9201 * utils.c (nquery): Call va_end before return;
9205 * proc-service.c (ps_plog): Call va_end before return.
9207 2011-02-28 Tom Tromey <tromey@redhat.com>
9209 * python/python.c (gdbpy_value_cst): New global.
9210 (_initialize_python): Initialize it.
9211 * python/python-internal.h (gdbpy_value_cst): Declare.
9212 * python/py-value.c (convert_value_from_python): Use
9215 2011-02-28 Michael Snyder <msnyder@vmware.com>
9217 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9219 * breakpoint.c (catch_syscall_completer): Free malloced list.
9221 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9223 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9224 (lval_func_check_synthetic_pointer): Ditto.
9225 (lval_func_free_closure): Fix use-after-free.
9227 2011-02-28 Tom Tromey <tromey@redhat.com>
9229 * psymtab.c (expand_partial_symbol_tables): Use
9230 ALL_OBJFILE_PSYMTABS.
9232 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9234 * objc-lang.c (selectors_info): Error on too long REGEXP.
9236 2011-02-28 Michael Snyder <msnyder@vmware.com>
9238 * python/py-param.c (set_parameter_value): Add missing
9241 * linux-record.c (record_linux_system_call): Add missing
9244 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9246 * breakpoint.c (print_one_breakpoint_location): Remove unused
9247 argument PRINT_ADDRESS_BITS. Update callers.
9248 (print_one_breakpoint): Likewise.
9250 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9252 * breakpoint.c (wrap_indent_at_field): New function.
9253 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9254 Allocate ui_stream locally instead of using STB argument.
9255 (print_one_breakpoint_location): Update call.
9256 * ui-out.c (ui_out_query_field): New function.
9257 * ui-out.h (ui_out_query_field): Add prototype.
9259 2011-02-28 Joel Brobecker <brobecker@adacore.com>
9261 From Michael Snyder <msnyder@vmware.com>
9262 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9264 2011-02-27 Michael Snyder <msnyder@vmware.com>
9266 * objc-lang.c (selectors_info): Prevent string overrun.
9268 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9271 * symtab.c (rbreak_command): Move variable 'file_name' to
9274 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9275 param with a local variable of the same name.
9277 2011-02-27 Michael Snyder <msnyder@vmware.com>
9279 * value.c (value_from_history_ref): New function.
9280 * value.h (value_from_history_ref): Export.
9281 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9282 to parse value history references.
9283 * cli/cli-utils.h (get_number_trailer): Update comment.
9285 2011-02-27 Michael Snyder <msnyder@vmware.com>
9287 * inferior.c (detach_inferior_command): Use get_number_or_range.
9288 (kill_inferior_command): Ditto.
9289 (remove_inferior_command): Ditto.
9290 (initialize_inferiors): Make command names plural.
9291 Update help strings.
9293 2011-02-27 Michael Snyder <msnyder@vmware.com>
9295 * darwin-nat-info.c: Fix comment typo.
9296 * dwarf2expr.h: Ditto.
9297 * fbsd-nat.c: Ditto.
9298 * fbsd-nat.h: Ditto.
9299 * frame-unwind.h: Ditto.
9301 * hppa-hpux-tdep.c: Ditto.
9302 * i386-linux-nat.c: Ditto.
9303 * linux-nat.c: Ditto.
9304 * nbsd-nat.c: Ditto.
9305 * nbsd-nat.h: Ditto.
9306 * ppc-linux-tdep.c: Ditto.
9309 * tui/tui-winsource.c: Ditto.
9311 2011-02-26 Michael Snyder <msnyder@vmware.com>
9313 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9315 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9317 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9318 with a local variable of the same name.
9320 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
9321 param with a local variable of the same name.
9322 (i387_supply_xsave): Ditto.
9324 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9325 that it does not shadow a function parameter.
9327 * i386-nat.c (i386_length_and_rw_bits): Document that case
9328 statement is meant to fall through.
9330 * expprint.c (dump_subexp_body_standard): Document that case
9331 statement is meant to fall through.
9333 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9334 dead if statement. Condition can't be false.
9336 2011-02-25 Michael Snyder <msnyder@vmware.com>
9338 * arm-tdep.c: Fix typos in comments.
9339 * bsd-uthread.c: Ditto.
9340 * completer.c: Ditto.
9342 * cp-namespace.c: Ditto.
9343 * cp-support.c: Ditto.
9344 * cris-tdep.c: Ditto.
9346 * dwarf2read.c: Ditto.
9348 * gdbtypes.h: Ditto.
9349 * inferior.h: Ditto.
9350 * mdebugread.c: Ditto.
9351 * mips-tdep.c: Ditto.
9352 * ppc-linux-nat.c: Ditto.
9353 * ppc-linux-tdep.c: Ditto.
9354 * printcmd.c: Ditto.
9355 * sol-thread.c: Ditto.
9356 * solib-frv.c: Ditto.
9358 * sparc64-tdep.c: Ditto.
9359 * spu-tdep.c: Ditto.
9360 * stabsread.c: Ditto.
9365 * python/py-block.c: Ditto.
9366 * python/py-symbol.c: Ditto.
9367 * python/py-symtab.c: Ditto.
9368 * python/py-value.c: Ditto.
9369 * tui/tui-win.c: Ditto.
9371 2011-02-25 Michael Snyder <msnyder@vmware.com>
9373 * inferior.c (print_inferior): Accept a string instead of an int
9374 for requested_inferiors, and use get_number_or_range to parse it.
9375 (info_inferiors_command): Pass args string to print_inferior.
9376 (initialize_inferiors): Change help string for info inferiors.
9377 * inferior.h (print_inferior): Export prototype change.
9379 2011-02-25 Tom Tromey <tromey@redhat.com>
9381 * common/ax.def (invalid2): Set to 0x31.
9383 2011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9385 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9387 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9389 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9391 2011-02-24 Michael Snyder <msnyder@vmware.com>
9393 * Makefile.in (clean): Make clean should remove generated files
9394 observer.h and observer.inc.
9396 2011-02-24 Joel Brobecker <brobecker@adacore.com>
9398 Revert the following patch (not approved yet):
9399 2011-02-21 Hui Zhu <teawater@gmail.com>
9400 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9401 * ax-gdb.c (gen_printf_expr_callback): New function.
9402 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9403 * ax-general.c (ax_memcpy): New function.
9404 (ax_print): Handle "printf".
9406 * ax.h (ax_memcpy): Forward declare.
9407 * common/ax.def (invalid2): Removed.
9408 (printf): New entry.
9409 * printcmd.c (printcmd.h): New include.
9410 (string_printf): New function.
9411 (ui_printf): Removed.
9412 (printf_command): Remove static. Call string_printf.
9413 (eval_command): Call string_printf.
9414 * printcmd.h: New file.
9415 * tracepoint.c (validate_actionline,
9416 encode_actions_1): handle printf_command.
9418 2011-02-23 Tom Tromey <tromey@redhat.com>
9420 * ax-general.c (ax_pick): Add missing newline.
9422 2011-02-23 Michael Snyder <msnyder@vmware.com>
9424 * breakpoint.c (breakpoint_1): Change first argument from an int
9425 to a char pointer, so that the function now accepts a list of
9426 breakpoints rather than just one. Use new function
9427 'number_is_in_list' to implement.
9428 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9429 (watchpoints_info): Ditto.
9430 (tracepoints_info): Ditto.
9431 (maintenance_info_breakpoints): Ditto.
9432 (_initialize_breakpoint): Update help strings to reflect the fact
9433 that these functions can now take more than one argument.
9434 * cli/cli-utils.c (number_is_in_list): New function.
9435 * cli/cli-utils.h (number_is_in_list): Export.
9437 2011-02-23 Michael Snyder <msnyder@vmware.com>
9439 * memattr.c (mem_enable_command): Use get_number_or_range.
9440 (mem_disable_command): Ditto.
9441 (mem_delete_command): Ditto.
9442 (_initialize_mem): Tweak usage message to reflect multiple
9445 2011-02-22 Doug Evans <dje@google.com>
9447 Add gdb.lookup_global_symbol python function.
9449 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9450 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9451 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9453 2011-02-22 Tom Tromey <tromey@redhat.com>
9455 * language.c (language_class_name_from_physname): Rename
9456 'curr_language' argument to 'lang'; use in body.
9458 2011-02-22 Michael Snyder <msnyder@vmware.com>
9460 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9462 2011-02-22 Pedro Alves <pedro@codesourcery.com>
9464 * frame-unwind.h: Fix comment to mention the this frame, not the
9467 2011-02-22 Tom Tromey <tromey@redhat.com>
9469 * symfile.c (auto_solib_limit): Remove.
9470 * symfile.h (auto_solib_limit): Remove.
9472 2011-02-22 Joel Brobecker <brobecker@adacore.com>
9474 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9476 2011-02-21 Michael Snyder <msnyder@vmware.com>
9478 * gdbthread.h (print_thread_info): Change prototype.
9479 * thread.c (print_thread_info): Accept char* instead of int for
9480 requested_threads argument. Use new function number_is_in_list
9481 to determine which threads to list.
9482 (info_threads_command): Pass char* to print_thread_info.
9483 * cli/cli-utils.c (number_is_in_list): New function.
9484 * cli/cli-utils.h (number_is_in_list): Export.
9485 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
9487 (print_one_inferior): Ditto.
9488 (mi_cmd_list_thread_groups): Ditto.
9490 2011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9492 * common/Makefile.in (CFLAGS): New.
9493 (COMPILE): Add $(CFLAGS).
9495 2011-02-21 Tom Tromey <tromey@redhat.com>
9497 * breakpoint.c (catch_syscall_command_1): Fix typo.
9499 2011-02-21 Tom Tromey <tromey@redhat.com>
9501 * reverse.c: Include cli-utils.h.
9502 * printcmd.c: Include cli-utils.h.
9503 (string_printf): Use skip_spaces.
9504 * cli/cli-utils.h: New file.
9505 * cli/cli-utils.c: New file.
9506 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9507 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9508 * breakpoint.h (get_number, get_number_or_range): Move to
9510 * breakpoint.c: Include cli-utils.h.
9511 (get_number_trailer, get_number, get_number_or_range)
9512 (ep_skip_leading_whitespace): Move to cli-utils.c.
9513 (create_breakpoint_sal, find_condition_and_thread)
9514 (decode_static_tracepoint_spec, watch_command_1)
9515 (watch_maybe_just_location, ep_parse_optional_if_clause)
9516 (catch_fork_command_1, catch_exec_command_1)
9517 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9518 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9519 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9520 (HFILES_NO_SRCDIR): Add cli-utils.h.
9521 (cli-utils.o): New target.
9523 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9525 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9526 before calling discard_all_inferiors.
9528 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9530 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9531 (struct builtin_opencl_type): Remove.
9532 (builtin_opencl_type): Change return type to "struct type **".
9533 (lookup_opencl_vector_type): Update caller.
9534 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9535 (build_opencl_types): Install plain array of "struct type *"
9536 instead of "struct builtin_opencl_type".
9538 2011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9539 Ulrich Weigand <uweigand@de.ibm.com>
9541 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9542 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9543 (struct arm_linux_hwbp_cap): New type.
9544 (arm_linux_get_hwbp_cap): New function.
9545 (arm_linux_get_hw_breakpoint_count): Likewise.
9546 (arm_linux_get_hw_watchpoint_count): Likewise.
9547 (arm_linux_can_use_hw_breakpoint): Likewise.
9548 (arm_hwbp_type): New type.
9549 (arm_hwbp_control_t): Likewise.
9550 (struct arm_linux_hw_breakpoint): Likewise.
9551 (struct arm_linux_thread_points): Likewise.
9552 (arm_threads): New global variable.
9553 (arm_linux_find_breakpoints_by_tid): New function.
9554 (arm_hwbp_control_initialize): Likewise.
9555 (arm_hwbp_control_is_enabled): Likewise.
9556 (arm_hwbp_control_disable): Likewise.
9557 (arm_linux_hw_breakpoint_initialize): Likewise.
9558 (arm_linux_get_hwbp_type): Likewise.
9559 (arm_linux_hw_watchpoint_initialize): Likewise.
9560 (arm_linux_hw_breakpoint_equal): Likewise.
9561 (arm_linux_insert_hw_breakpoint1): Likewise.
9562 (arm_linux_remove_hw_breakpoint1): Likewise.
9563 (arm_linux_insert_hw_breakpoint): Likewise.
9564 (arm_linux_remove_hw_breakpoint): Likewise.
9565 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9566 (arm_linux_insert_watchpoint): Likewise.
9567 (arm_linux_remove_watchpoint): Likewise.
9568 (arm_linux_stopped_data_address): Likewise.
9569 (arm_linux_stopped_by_watchpoint): Likewise.
9570 (arm_linux_watchpoint_addr_within_range): Likewise.
9571 (arm_linux_new_thread): Likewise.
9572 (arm_linux_thread_exit): Likewise.
9573 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9574 related target callbacks. Register arm_linux_new_thread and
9575 arm_linux_thread_exit.
9576 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9577 * arm-tdep.c (arm_pc_is_thumb): Make global.
9578 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
9580 2011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9582 * breakpoint.c (update_watchpoint): Do not attempt to recreate
9583 per-frame locations while within a function epilogue.
9585 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9587 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
9588 to GNU coding standards.
9590 2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
9592 Allow use of mingw native on Windows 95 OS.
9593 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
9594 (ser_windows_close): Only call CancelIo if function exists.
9595 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
9596 to check for existence of CancelIo function in kernel32 DLL.
9598 2011-02-21 Hui Zhu <teawater@gmail.com>
9600 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9601 * ax-gdb.c (gen_printf_expr_callback): New function.
9602 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9603 * ax-general.c (ax_memcpy): New function.
9604 (ax_print): Handle "printf".
9606 * ax.h (ax_memcpy): Forward declare.
9607 * common/ax.def (invalid2): Removed.
9608 (printf): New entry.
9609 * printcmd.c (printcmd.h): New include.
9610 (string_printf): New function.
9611 (ui_printf): Removed.
9612 (printf_command): Remove static. Call string_printf.
9613 (eval_command): Call string_printf.
9614 * printcmd.h: New file.
9615 * tracepoint.c (validate_actionline,
9616 encode_actions_1): handle printf_command.
9618 2011-02-19 Michael Snyder <msnyder@vmware.com>
9620 * reverse.c (delete_one_bookmark): Argument is now bookmark
9621 id rather than pointer to bookmark struct.
9622 (delete_bookmark_command): Use get_number_or_range.
9623 (goto_bookmark_command): Parse with get_number instead of strtoul.
9624 (bookmark_1): New function. Print info for one bookmark.
9625 (bookmarks_info): Use get_number_or_range and bookmark_1.
9627 2011-02-18 Michael Snyder <msnyder@vmware.com>
9629 * thread.c (info_threads_command): Re-implement using
9630 get_number_or_range.
9631 (thread_apply_command): Ditto.
9633 2011-02-18 Tom Tromey <tromey@redhat.com>
9635 * common/ax.def: New file.
9636 * ax.h (enum agent_op): Use ax.def.
9637 * ax-general.c (aop_map): Use ax.def.
9639 2011-02-18 Tom Tromey <tromey@redhat.com>
9641 * ax-general.c (aop_map): Add pick and rot.
9642 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
9643 <DW_OP_rot>: Implement.
9644 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
9646 * ax-general.c (ax_pick): New function.
9648 2011-02-18 Tom Tromey <tromey@redhat.com>
9650 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
9652 2011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
9653 Tom Tromey <tromey@redhat.com>
9655 * cp-support.c (make_symbol_overload_list_namespace): Do not call
9656 make_symbol_overload_list_block with NULL BLOCK.
9657 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
9659 2011-02-18 Pedro Alves <pedro@codesourcery.com>
9661 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
9662 * breakpoint.h (get_number_or_range): Declare.
9663 * printcmd.c (ALL_DISPLAYS): Declare.
9664 (delete_display): Reimplement taking a display pointer.
9665 (undisplay_command): Accept a range of displays to delete, using
9666 get_number_or_range.
9668 2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9670 * c-valprint.c (c_val_print): Add embedded_offset to address
9671 for arrays of unspecified length.
9672 * p-valprint.c (pascal_val_print): Likewise.
9674 2011-02-18 Yao Qi <yao@codesourcery.com>
9676 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
9677 (arm_process_displaced_insn): .. here. Remove parameter INSN.
9678 (thumb_process_displaced_insn): New.
9679 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
9680 call to arm_process_displaced_insn.
9681 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
9683 2011-02-17 Tom Tromey <tromey@redhat.com>
9685 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
9686 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
9687 compile_dwarf_to_ax. No longer static. Call
9688 dwarf2_compile_cfa_to_ax.
9689 (locexpr_tracepoint_var_ref): Update.
9690 (loclist_tracepoint_var_ref): Update.
9691 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
9692 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
9693 argument; add 'gdbarch' and 'pc'.
9694 (dwarf2_compile_cfa_to_ax): New function.
9695 (dwarf2_frame_cache): Update.
9697 2011-02-17 Joel Brobecker <brobecker@adacore.com>
9699 * ada-lang.c (ada_type_of_array): Fix the size of the array
9700 in the case of an unconstrained packed array.
9702 2011-02-17 Yao Qi <yao@codesourcery.com>
9704 * common/Makefile.in: Add more targets for make.
9706 2011-02-16 Tom Tromey <tromey@redhat.com>
9708 * dwarf2loc.c (unimplemented): Fix typo.
9710 2011-02-16 Tom Tromey <tromey@redhat.com>
9712 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
9713 (compile_dwarf_to_ax) <default>: Use unimplemented.
9714 <DW_OP_deref>: Update.
9715 (disassemble_dwarf_expression): Update.
9716 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
9717 (decode_locdesc): Update.
9718 * dwarf2expr.h (dwarf_stack_op_name): Update.
9720 2011-02-16 Tom Tromey <tromey@redhat.com>
9722 * ax.h (struct aop_map) <name>: Now const.
9724 2011-02-16 Tom Tromey <tromey@redhat.com>
9726 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
9729 2011-02-16 Yao Qi <yao@codesourcery.com>
9731 * infrun.c (get_displaced_step_closure_by_addr): New.
9732 * inferior.h: Declare it.
9733 * arm-tdep.c: (arm_pc_is_thumb): Call
9734 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
9737 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9738 Jan Kratochvil <jan.kratochvil@redhat.com>
9741 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
9743 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9744 Jan Kratochvil <jan.kratochvil@redhat.com>
9746 * value.c (value_contents_copy_raw): Extend describing comment.
9747 Assert that the destination contents we're overwriting are wholly
9749 (value_contents_copy): Extend describing comment.
9751 2011-02-16 Pedro Alves <pedro@codesourcery.com>
9752 Jan Kratochvil <jan.kratochvil@redhat.com>
9754 * value.c (value_available_contents_eq): Remove redundant local
9755 variables. Fix available contents comparision.
9756 * value.h (value_available_contents_eq): Extend describing
9759 2011-02-16 Yao Qi <yao@codesourcery.com>
9761 * thread.c (info_threads_command): Add missing i18n markup and remove
9764 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9766 * breakpoint.c (longjmp_names): New variable.
9767 (struct breakpoint_objfile_data): New type.
9768 (breakpoint_objfile_key): New variable.
9769 (msym_not_found): New variable.
9770 (msym_not_found_p): New predicate.
9771 (get_breakpoint_objfile_data): New function.
9772 (create_overlay_event_breakpoint): Check per-objfile cache for
9774 (create_longjmp_master_breakpoint): Likewise.
9775 (create_std_terminate_master_breakpoint): Likewise.
9776 (create_exception_master_breakpoint): Likewise.
9777 (_initialize_breakpoint): Register per-objfile data key.
9779 2011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
9781 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
9783 (create_longjmp_master_breakpoint): Loop over longjmp names.
9784 (create_std_terminate_master_breakpoint): Const-propagate parameter
9786 (update_breakpoints_after_exec): Adjust.
9787 (breakpoint_re_set): Adjust.
9789 2011-02-15 Michael Snyder <msnyder@vmware.com>
9791 * thread.c (info_threads_command): Process arg as thread id,
9792 or list of thread ids.
9793 (thread_find_command): New command.
9794 (_initialize_thread): Document argument for info threads.
9795 Document 'thread find' command.
9796 * NEWS: Document new command "thread find".
9798 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9800 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
9801 * aclocal.m4: Regenerated with aclocal-1.11.1.
9802 * common/configure: Regenerate with autoconf-2.64.
9804 2011-02-15 Ken Werner <ken.werner@de.ibm.com>
9806 * opencl-lang.c (build_opencl_types): Set the size of the built-in
9807 bool data type to a size of one byte.
9809 2011-02-15 Pedro Alves <pedro@codesourcery.com>
9810 Jan Kratochvil <jan.kratochvil@redhat.com>
9812 * target.c (memory_xfer_live_readonly_partial): Document where to
9813 look for interface description.
9815 2011-02-15 Yao Qi <yao@codesourcery.com>
9818 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
9819 order to store PC value on stack instead of text section.
9821 2011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
9823 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
9824 the EFP register set size.
9825 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
9826 data from the VMX register.
9827 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
9828 and write data from/to the VMX register.
9830 2011-02-14 Michael Snyder <msnyder@vmware.com>
9832 * command.h (enum command_class): New class 'no_set_class', for
9833 "show" commands without a corresponding "set" command.
9834 * value.c (_initialize_values): Use 'no_set_class' for "show values".
9835 * copying.c (_initialize_copying): Ditto for "show copying" and
9837 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
9839 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
9840 which there is no corresponding "set" command (eg. "show copying").
9842 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9843 Jan Kratochvil <jan.kratochvil@redhat.com>
9845 * exec.c (section_table_available_memory): Change `len' parameter
9847 * exec.h (section_table_available_memory): Ditto.
9848 * value.h (read_value_memory): Rename the `offset' parameter to
9851 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9852 Jan Kratochvil <jan.kratochvil@redhat.com>
9854 * memrange.c (compare_mem_ranges): Mention sort order in
9856 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
9857 * tracepoint.c (traceframe_available_memory): Extend comment to
9858 mention what happens to RESULT when the target does not support
9861 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9862 Jan Kratochvil <jan.kratochvil@redhat.com>
9864 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
9867 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9869 * value.c (value_bits_valid, value_bits_synthetic_pointer):
9870 No longer handle NULL values.
9872 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9874 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
9875 * value.c: Include "exceptions.h".
9876 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
9878 * cp-abi.c: Include gdb_assert.h.
9879 (baseclass_offset): Add `embedded_offset' and `val' parameters.
9880 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
9882 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
9883 parameters. No longer returns -1 on error.
9884 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
9886 * cp-valprint.c: Include exceptions.h.
9887 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
9888 the baseclass_offset. Handle unavailable base classes. Use
9889 val_print_invalid_address.
9890 * p-valprint.c: Include exceptions.h.
9891 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
9892 when fetching the baseclass_offset. No longer expect
9893 baseclass_offset returning -1. Handle unavailable base classes.
9894 Use val_print_invalid_address.
9895 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
9896 `valaddr' parameter, and change its type to gdb_byte pointer. Add
9897 `embedded_offset' and `val' parameters. Adjust.
9898 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
9899 parameter, and change its type to gdb_byte pointer. Add
9900 `embedded_offset' and `val' parameters. Adjust. No longer expect
9901 baseclass_offset returning -1.
9902 (value_dynamic_cast): Use value_contents_for_printing rather than
9903 value_contents. Adjust.
9904 (search_struct_field): No longer expect baseclass_offset returning
9906 (search_struct_method): If reading memory from the target is
9907 necessary, wrap it in a new value to pass to baseclass_offset. No
9908 longer expect baseclass_offset returning -1.
9909 (find_method_list): No longer expect baseclass_offset returning
9910 -1. Use value_contents_for_printing rather than value_contents.
9911 * valprint.c (val_print_invalid_address): New function.
9912 * valprint.h (val_print_invalid_address): Declare.
9913 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
9914 and `val' parameters. No longer expect baseclass_offset returning
9916 * gnu-v2-abi.c: Include "exceptions.h".
9917 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
9918 parameters. Handle unavailable memory. Recurse through
9919 gnuv2_baseclass_offset directly, rather than through
9920 baseclass_offset. No longer returns -1 on not found, instead
9922 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
9923 `val' parameters. Adjust.
9925 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9927 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
9928 almost but not quite adjacent.
9930 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9932 * value.h (value_entirely_available): Declare.
9933 * value.c (value_entirely_available): New function.
9934 * c-valprint.c (c_value_print): Don't try fetching the pointer's
9935 real type if the pointer is unavailable.
9937 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9939 * valops.c (value_repeat): Use read_value_memory instead of
9942 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9944 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
9945 * value.c (value_contents_copy_raw, value_contents_copy): New
9947 (value_primitive_field): Use value_contents_copy_raw instead of
9949 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
9951 (value_array, value_slice): Ditto.
9952 * valarith.c (value_subscripted_rvalue): Use
9953 value_contents_copy_raw instead of memcpy.
9955 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9957 <unavailable> references.
9959 * valops.c (get_value_at): Use value_from_contents_and_address,
9960 avoiding read_memory.
9962 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9964 * c-valprint.c (c_val_print): Print a string with unavailable
9965 contents as an array.
9967 2011-02-14 Pedro Alves <pedro@codesourcery.com>
9969 * value.h (unpack_bits_as_long): Delete declaration.
9970 (unpack_value_bits_as_long): Declare.
9971 (unpack_value_field_as_long): Declare.
9972 (value_field_bitfield): Declare.
9973 * value.c (unpack_bits_as_long): Rename to...
9974 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
9975 value parameters. Return the extracted result in a new output
9976 parameter. If the value contents are unavailable, return false,
9977 otherwise return true.
9978 (unpack_value_bits_as_long): New.
9979 (unpack_field_as_long): Rename to...
9980 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
9981 Add embedded_offset and value parameters. Return the extracted
9982 result in a new output parameter. If the value contents are
9983 unavailable, return false, otherwise return true.
9984 (unpack_value_field_as_long): New.
9985 (unpack_field_as_long_1): New.
9986 (unpack_field_as_long): Reimplement as wrapper around
9987 unpack_value_field_as_long_1.
9988 (value_field_bitfield): New function.
9989 * valops.c (value_fetch_lazy): When fetching a bitfield, use
9990 unpack_value_bits_as_long. Mark the value as unavailable, if it
9992 * jv-valprint.c (java_print_value_fields): Use
9993 value_field_bitfield.
9994 * p-valprint.c (pascal_object_print_value_fields): Use
9995 value_field_bitfield.
9996 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
9998 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10000 * value.c (get_internalvar_integer): Also return the int value of
10001 TYPE_CODE_INT INTERNALVAR_VALUE values.
10002 (set_internalvar): Don't special case TYPE_CODE_INT.
10004 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10006 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10007 INTERNALVAR_POINTER.
10009 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10010 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10011 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10013 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10015 * value.h (value_available_contents_eq): Declare.
10016 * value.c (find_first_range_overlap): New function.
10017 (value_available_contents_eq): New function.
10018 * valprint.c (val_print_array_elements): Use
10019 value_available_contents_eq.
10020 * ada-valprint.c (val_print_packed_array_elements): Use
10021 value_available_contents_eq.
10022 * jv-valprint.c (java_value_print): Use
10023 value_available_contents_eq.
10025 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10027 * target.c (target_read_live_memory): New function.
10028 (memory_xfer_live_readonly_partial): New.
10029 (memory_xfer_partial): If reading from a traceframe, fallback to
10030 reading unavailable read-only memory from read-only regions of
10031 live target memory.
10032 * tracepoint.c (disconnect_tracing): Adjust.
10033 (set_current_traceframe): New, factored out from
10034 set_traceframe_number.
10035 (set_traceframe_number): Reimplement to only change the traceframe
10036 number on the GDB side.
10037 (do_restore_current_traceframe_cleanup): Adjust.
10038 (make_cleanup_restore_traceframe_number): New.
10039 (cur_traceframe_number): New global.
10040 (tfile_open): Set cur_traceframe_number to no traceframe.
10041 (set_tfile_traceframe): New function.
10042 (tfile_trace_find): If looking up a traceframe using any method
10043 other than by number, make sure the current tfile traceframe
10044 matches gdb's current traceframe. Update the current tfile
10045 traceframe if the lookup succeeded.
10046 (tfile_fetch_registers, tfile_xfer_partial)
10047 (tfile_get_trace_state_variable_value): Make sure the remote
10048 traceframe matches gdb's current traceframe.
10049 * remote.c (remote_traceframe_number): New global.
10050 (remote_open_1): Set it to -1.
10051 (set_remote_traceframe): New function.
10052 (remote_fetch_registers, remote_store_registers)
10053 (remote_xfer_memory, remote_xfer_partial)
10054 (remote_get_trace_state_variable_value): Make sure the remote
10055 traceframe matches gdb's current traceframe.
10056 (remote_trace_find): If looking up a traceframe using any method
10057 other than by number, make sure the current remote traceframe
10058 matches gdb's current traceframe. Update the current remote
10059 traceframe if the lookup succeeded.
10060 * infrun.c (fetch_inferior_event): Adjust.
10061 * tracepoint.h (set_current_traceframe): Declare.
10062 (get_traceframe_number, set_traceframe_number): Add describing
10065 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10067 Mark pieces of values as unavailable if the corresponding memory
10070 * valops.c: Include tracepoint.h.
10071 (value_fetch_lazy): Use read_value_memory.
10072 (read_value_memory): New.
10073 * value.h (read_value_memory): Declare.
10074 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10075 * exec.c (section_table_available_memory): New function.
10076 * exec.h (section_table_available_memory): Declare.
10078 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10080 * Makefile.in (SFILES): Add memrange.c.
10081 (HFILES_NO_SRCDIR): Add memrange.h.
10082 (COMMON_OBS): Add memrange.o.
10083 * memrange.c: New file.
10084 * memrange.h: New file.
10085 * tracepoint.c: Include memrange.h.
10086 (struct mem_range): Delete.
10087 (mem_range_s): Delete.
10088 (traceframe_available_memory): New function.
10089 * tracepoint.h (traceframe_available_memory): Declare.
10091 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10093 * target.h (struct traceframe_info): Forward declare.
10094 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10095 (struct target_ops) <to_traceframe_info>: New field.
10096 (target_traceframe_info): New.
10097 * target.c (update_current_target): Inherit and default
10098 to_traceframe_info.
10099 * remote.c (PACKET_qXfer_traceframe_info): New.
10100 (remote_protocol_features): Register qXfer:traceframe-info:read.
10101 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10102 (remote_traceframe_info): New.
10103 (init_remote_ops): Install it.
10104 (_initialize_remote): Install "set/show remote traceframe-info"
10106 * tracepoint.h (parse_traceframe_info): Declare.
10107 * tracepoint.c (struct mem_range): New.
10108 (mem_range_s): New typedef.
10109 (struct traceframe_info): New.
10110 (traceframe_info): New global.
10111 (free_traceframe_info): New function.
10112 (clear_traceframe_info): New function.
10113 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10115 (build_traceframe_info): New function.
10116 (tfile_traceframe_info): New function.
10117 (init_tfile_ops): Install tfile_traceframe_info.
10118 (traceframe_info_start_memory, free_result): New functions.
10119 (memory_attributes, traceframe_info_elements): New globals.
10120 (parse_traceframe_info, get_traceframe_info): New functions.
10121 * features/traceframe-info.dtd: New file.
10122 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10124 2011-02-14 Pedro Alves <pedro@codesourcery.com>
10126 Base support for <unavailable> value contents.
10128 * value.h (value_bytes_available): Declare.
10129 (mark_value_bytes_unavailable): Declare.
10130 * value.c (struct range): New struct.
10131 (range_s): New typedef.
10132 (ranges_overlap): New function.
10133 (range_lessthan): New function.
10134 (ranges_contain_p): New function.
10135 (struct value) <unavailable>: New field.
10136 (value_bytes_available): New function.
10137 (mark_value_bytes_unavailable): New function.
10138 (require_not_optimized_out): Constify parameter.
10139 (require_available): New function.
10140 (value_contents_all, value_contents): Require all bytes be
10142 (value_free): Free `unavailable'.
10143 (value_copy): Copy `unavailable'.
10144 * valprint.h (val_print_unavailable): Declare.
10145 * valprint.c (valprint_check_validity): Rename `offset' parameter
10146 to `embedded_offset'. If printing a scalar, check whether the
10147 value chunk is available.
10148 (val_print_unavailable): New.
10149 (val_print_scalar_formatted): Check whether the value is
10151 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10152 pretty-printing unavailable values.
10154 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10156 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10157 * c-typeprint.c (c_type_print_args): Update the function comment. New
10158 variable param_type, initialize it. Remove const/volatile qualifiers
10159 for language_cplus and !show_artificial. Use param_type.
10161 2011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10163 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10164 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10165 * symtab.h (struct symtab) <next>: Comment extension.
10167 2011-02-12 Yao Qi <yao@codesourcery.com>
10169 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10171 2011-02-11 Yao Qi <yao@codesourcery.com>
10173 * common/Makefile.in: Add copyright header.
10175 2011-02-11 Pedro Alves <pedro@codesourcery.com>
10177 * infrun.c (proceed): Move switching out and in of tfind mode from
10179 (fetch_inferior_event): ... to here.
10181 2011-02-11 Yao Qi <yao@codesourcery.com>
10183 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10185 * configure.ac: Add common to sub dir.
10186 * configure: Regenerate.
10188 2011-02-11 Yao Qi <yao@codesourcery.com>
10192 * common/Makefile.in: New.
10193 * common/configure.ac: New.
10194 * common/aclocal.m4: New.
10195 * common/configure: Generate.
10197 2011-02-10 Pedro Alves <pedro@codesourcery.com>
10199 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10200 side of the parenthesis.
10203 2010-07-13 Jakub Jelinek <jakub@redhat.com>
10204 * vec.h (VEC_block_remove): Fix comment.
10206 2011-02-08 Michael Snyder <msnyder@vmware.com>
10208 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10210 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10212 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10213 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10216 2011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10219 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10221 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10222 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10224 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10226 * dwarf2read.c (read_subroutine_type): Set special calling
10227 convention flag for functions compiled by IBM XL C for OpenCL.
10228 * ppc-sysv-tdep.c: Include "dwarf2.h"
10229 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10230 calling convention.
10231 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10232 IBM OpenCL vector types calling convention.
10233 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10234 (ppc_sysv_abi_broken_return_value): Likewise.
10235 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10236 types calling convention.
10237 (ppc64_sysv_abi_return_value): Likewise.
10238 * spu-tdep.c: Include "dwarf2.h"
10239 (spu_return_value): Implement IBM OpenCL vector types calling
10242 2011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10244 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10245 correct ABI for AltiVec vector arguments.
10247 2011-02-07 Pedro Alves <pedro@codesourcery.com>
10249 * valprint.c (val_print): Extend comment.
10250 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10251 interface explanation to val_print.
10252 (ada_val_print_array): Adjust comment to current interface.
10253 (print_field_values): Adjust comment to current interface.
10254 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10255 explanation to val_print.
10256 * f-valprint.c (f_val_print): Ditto.
10257 * jv-valprint.c (java_val_print): Ditto.
10258 * m2-valprint.c (m2_val_print): Ditto.
10259 * p-valprint.c (pascal_val_print): Ditto.
10261 2011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10263 * breakpoint.c (parse_breakpoint_sals): Fix description.
10265 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
10266 Oguz Kayral <oguzkayral@gmail.com>
10268 * python/py-inferior.c (python_on_normal_stop): New function.
10269 (python_on_resume): New function.
10270 (python_inferior_exit): New function.
10271 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10272 inferior_exit observers.
10273 * python/py-evtregistry.c: New file.
10274 * python/py-threadevent.c : New file.
10275 * python/py-event.c: New file.
10276 * python/py-evts.c: New file.
10277 * python/py-continueevent.c: New file.
10278 * python/py-bpevent.c: New file.
10279 * python/py-signalevent.c: New file.
10280 * python/py-exetiedevent.c: New file.
10281 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10282 Move struct breakpoint_object from here...
10283 * python/python-internal.h: ... to here.
10284 * python/py-event.h: New file.
10285 * python/py-events.h: New file.
10286 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10287 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10288 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10289 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10290 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10291 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10292 Add build rules for all the above.
10294 2011-02-04 Tom Tromey <tromey@redhat.com>
10296 * dwarf2read.c (dwarf2_section_empty_p): New function.
10297 (dwarf2_read_section): Use dwarf2_section_empty_p.
10298 (dwarf2_section_size): New function.
10299 (dwarf2_get_section_info): Unconditionally read section.
10300 (dwarf2_read_index): Use dwarf2_section_empty_p.
10301 (partial_read_comp_unit_head): Use dwarf2_section_size.
10302 (dwarf2_symbol_mark_computed): Likewise.
10304 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10306 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10308 2011-02-04 David Daney <ddaney@caviumnetworks.com>
10310 * mips-linux-tdep.c: Include xml-syscall.h.
10311 (mips_linux_get_syscall_number): New function.
10312 (mips_linux_init_abi): Add calls to
10313 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10314 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10315 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10316 * syscalls/mips-n32-linux.xml: New file.
10317 * syscalls/mips-n64-linux.xml: New file.
10318 * syscalls/mips-o32-linux.xml: New file.
10320 2011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10322 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10323 Complain about inverted range entries.
10324 (dwarf2_record_block_ranges): Likewise.
10326 2011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10329 * breakpoint.c (update_watchpoint): Fix name of the
10330 update_global_location_list function.
10331 (print_one_breakpoint): Fix typo.
10332 (_initialize_breakpoint): Remove extra space in hbreak help
10334 * breakpoint.h (struct bp_location) <length>: Fix field
10337 2011-02-04 Pedro Alves <pedro@codesourcery.com>
10339 * regcache.c (registers_changed_ptid): Don't explictly always
10340 clear `current_regcache'. Only clear current_thread_ptid and
10341 current_thread_arch when PTID matches. Only reinit the frame
10342 cache if PTID matches the current inferior_ptid. Move alloca(0)
10344 (registers_changed): ... here.
10346 2011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10348 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10349 starts with __stack_chk_guard as stack guard symbol.
10351 2011-02-03 Andrew Burgess <aburgess@broadcom.com>
10353 * disasm.c (compare_lines): Handle the end of sequence markers
10354 within the line table to better support disassembling over
10355 compilation unit boundaries.
10357 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10359 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10360 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10361 implementation even if no symbols are available.
10362 (thumb_analyze_prologue): Update call to skip_prologue_function.
10363 (arm_analyze_prologue): Likewise.
10365 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10367 * arm-tdep.c: Include "observer.h".
10368 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10369 (arm_exidx_data_key): New static variable.
10370 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10371 (struct arm_exidx_data): Likewise.
10372 (arm_exidx_data_free): New function.
10373 (arm_compare_exidx_entries): Likewise.
10374 (arm_obj_section_from_vma): Likewise.
10375 (arm_exidx_new_objfile): Likewise.
10376 (arm_find_exidx_entry): Likewise.
10377 (arm_exidx_fill_cache): Likewise.
10378 (arm_exidx_unwind_sniffer): Likewise.
10379 (arm_exidx_unwind): New global variable.
10380 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10381 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10382 observer. Register arm_exidx_data_key as objfile data.
10384 2011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10386 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10387 due to accessing uninitialized variable. Fix indentation.
10389 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10391 * c-valprint.c (c_value_print): When doing virtual base pointer
10392 adjustment, create a new value with adjusted contents rather than
10393 changing the contents of the value being printed (and getting it
10396 2011-02-02 Pedro Alves <pedro@codesourcery.com>
10398 * xml-support.c (xml_find_attribute): New.
10399 (xinclude_start_include): Use it.
10400 * xml-support.h (xml_find_attribute): Declare.
10401 * memory-map.c (memory_map_start_memory)
10402 (memory_map_start_property): Use xml_find_attribute.
10403 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10404 xml_find_attribute.
10405 * remote.c (start_thread): Use xml_find_attribute.
10406 * solib-target.c (library_list_start_segment)
10407 (library_list_start_section, library_list_start_library)
10408 (library_list_start_list): Use xml_find_attribute.
10409 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10410 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10411 (tdesc_start_field): Use xml_find_attribute.
10413 2011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10415 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10416 (BUILD_OCL_VTYPES): Update.
10418 2011-02-02 Joel Brobecker <brobecker@adacore.com>
10420 * configure.ac: Work around non-GNU sed limitation when computing
10421 python version number.
10422 * configure: Regenerate.
10424 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10426 Fix debug printing of TYPE_INSTANCE.
10427 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10428 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10430 2011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10432 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10433 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10434 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10435 * ada-operator.inc: Rename the file to ...
10436 * ada-operator.def: ... here, wrap all the entries by macro OP.
10437 * expprint.c (op_name_standard): Remove all the entries. Include
10438 "std-operator.def" instead.
10439 * expression.h (enum exp_opcode): Include "std-operator.def" and
10440 "ada-operator.def". Move all the entries ...
10441 * std-operator.def: ... here, wrap all the entries by macro OP.
10443 2011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10445 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10446 * breakpoint.c (remove_jit_event_breakpoints): New function.
10447 * jit.c (jit_descriptor_addr): Delete.
10448 (registering_code): Delete.
10449 (clear_int): Delete.
10450 (jit_inferior_data): New variable.
10451 (struct jit_inferior_data): New type.
10452 (get_jit_inferior_data): New function.
10453 (jit_inferior_data_cleanup): New function.
10454 (jit_read_descriptor): Adjust.
10455 (jit_register_code): Adjust.
10456 (jit_breakpoint_re_set_internal): New function; move code here ...
10457 (jit_inferior_init): ... from here.
10458 (jit_breakpoint_re_set): Adjust.
10459 (jit_reset_inferior_data_and_breakpoints): New function.
10460 (jit_inferior_created_observer): Adjust.
10461 (jit_inferior_exit_hook): Adjust.
10462 (jit_executable_changed_observer): New function.
10463 (jit_event_handler): Adjust.
10464 (_initialize_jit): Adjust.
10466 2011-01-31 Michael Snyder <msnyder@vmware.com>
10468 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10471 2011-01-31 Tom Tromey <tromey@redhat.com>
10474 * python/python.c (execute_gdb_command): Call
10475 prevent_dont_repeat.
10476 * top.c (suppress_dont_repeat): New global.
10477 (dont_repeat): Use it.
10478 (prevent_dont_repeat): New function.
10479 * command.h (prevent_dont_repeat): Declare.
10481 2011-01-31 Tom Tromey <tromey@redhat.com>
10483 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10484 * python/py-breakpoint.c (bppy_set_silent): Use
10485 breakpoint_set_silent.
10486 (bppy_set_thread): Use breakpoint_set_thread.
10487 (bppy_set_task): Use breakpoint_set_task.
10488 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10489 (breakpoint_set_task): Declare.
10490 (make_breakpoint_silent): Remove.
10491 * breakpoint.c (breakpoint_set_silent): New function.
10492 (breakpoint_set_thread): Likewise.
10493 (breakpoint_set_task): Likewise.
10494 (make_breakpoint_silent): Remove.
10496 2011-01-31 Tom Tromey <tromey@redhat.com>
10498 * breakpoint.h (user_breakpoint_p): Declare.
10499 * breakpoint.c (user_breakpoint_p): New function.
10500 (breakpoint_1): Use it.
10501 (save_breakpoints): Likewise.
10503 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10505 * configure.ac: Add handling of Python distribution on Windows.
10506 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10507 sysconfig variables are not defined, then do not use them.
10508 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10509 instead. On Windows, return all paths using forward-slashes
10510 rather than backslashes.
10512 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10514 * configure.ac: Remove fallback behavior for building
10515 against Python. Remove tweaking of Python include path.
10516 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10517 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10518 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10519 Always restore CPPFLAGS and LIBS after linking test.
10520 * configure: Regenerated.
10521 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10522 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10523 * python/python-internal.h: Adjust includes of Python .h files.
10525 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10527 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10530 2011-01-31 Joel Brobecker <brobecker@adacore.com>
10532 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10535 2011-01-31 Yao Qi <yao@codesourcery.com>
10537 * arm-linux-nat.c: Update calls to regcache_register_status
10538 instead of regcache_valid_p.
10539 * aix-thread.c: Likewise.
10540 * i386gnu-nat.c: Likewise.
10542 2011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10545 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10546 touching TYPE_FIELD_ARTIFICIAL.
10548 2011-01-28 Richard Earnshaw <rearnsha@arm.com>
10550 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10553 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10555 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10556 selected, don't try iterating over the traceframe's blocks.
10557 (tfile_has_stack): If there's no traceframe selected, then there's
10559 (tfile_has_registers): If there's no traceframe selected, then
10560 there's no registers.
10562 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10564 * target.c (memory_xfer_partial): No need to restore shadows if we
10565 haven't read anything.
10567 2011-01-28 Pedro Alves <pedro@codesourcery.com>
10569 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10570 and val_print_scalar_formatted.
10572 2011-01-27 Pedro Alves <pedro@codesourcery.com>
10574 * tracepoint.c (tfile_read): New.
10575 (tfile_open): Use it.
10576 (tfile_get_traceframe_address): Use it.
10577 (tfile_trace_find): Use it.
10578 (walk_blocks_callback_func): New typedef.
10579 (match_blocktype): New function.
10580 (traceframe_walk_blocks): New function.
10581 (traceframe_find_block_type): New function.
10582 (tfile_fetch_registers, tfile_xfer_partial)
10583 (tfile_get_trace_state_variable_value): Use
10584 traceframe_find_block_type and tfile_read.
10586 2011-01-26 Kevin Buettner <kevinb@redhat.com>
10588 * remote-mips.c: Add internationalization mark ups. Remove
10589 trailing \n from already marked up strings.
10591 2011-01-26 Tom Tromey <tromey@redhat.com>
10593 * python/py-prettyprint.c (print_string_repr): Clear
10594 'addressprint' option when calling val_print_string.
10595 (print_children): Handle Val_pretty_default. Clear 'addressprint'
10596 option when calling val_print_string.
10598 2011-01-26 Tom Tromey <tromey@redhat.com>
10600 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
10602 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
10604 (gdb_py_longest, gdb_py_ulongest): New typedefs.
10605 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
10606 (gdb_py_long_as_ulongest): New defines.
10607 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
10608 (gdb_py_int_as_long): Declare.
10609 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
10610 GDB_PY_LL_ARG, gdb_py_object_from_longest.
10611 (valpy_long): Add comment.
10612 * python/py-utils.c (get_addr_from_python): Use
10613 gdb_py_long_as_ulongest. Handle overflow properly.
10614 (gdb_py_object_from_longest): New function.
10615 (gdb_py_object_from_ulongest): Likewise.
10616 (gdb_py_int_as_long): Likewise.
10617 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
10618 * python/py-symtab.c (salpy_get_pc): Use
10619 gdb_py_long_from_ulongest.
10620 (salpy_get_line): Use PyInt_FromLong.
10621 * python/py-param.c (set_parameter_value): Use
10622 gdb_py_int_as_long.
10623 * python/py-lazy-string.c (stpy_get_address): Use
10624 gdb_py_long_from_ulongest.
10625 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
10626 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
10627 * python/py-breakpoint.c (bppy_set_thread): Use
10628 gdb_py_int_as_long.
10629 (bppy_set_task): Likewise.
10630 (bppy_set_ignore_count): Likewise.
10631 (bppy_set_hit_count): Likewise.
10632 * python/py-block.c (blpy_get_start): Use
10633 gdb_py_object_from_ulongest.
10634 (blpy_get_end): Likewise.
10635 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
10637 2011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
10640 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
10641 * gdb/solib.c (solib_read_symbols): Check for addr_low in
10642 equality test for objfile, initialize addr_low if needed.
10644 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10646 * tui/tui-regs.c (tui_register_format): Remove dead code.
10648 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10650 * printcmd.c (print_formatted): Use val_print_scalar_formatted
10651 instead of print_scalar_formatted.
10652 (print_scalar_formatted): Don't handle 's' format strings here,
10653 and add an assertion that we never see such format here.
10654 * valprint.h (val_print_scalar_formatted): Declare.
10655 * valprint.c (val_print_scalar_formatted): New.
10656 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
10657 instead of print_scalar_formatted.
10658 * jv-valprint.c (java_val_print): Ditto.
10659 * p-valprint.c (pascal_val_print): Ditto.
10660 * ada-valprint.c (ada_val_print_1): Ditto.
10661 * f-valprint.c (f_val_print): Ditto.
10662 * infcmd.c (registers_info): Ditto.
10663 * m2-valprint.c (m2_val_print): Ditto.
10665 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10667 * m2-valprint.c (print_unbounded_array): Pass
10668 value_contents_for_printing rather than value_contents, to
10669 m2_print_array_contents. Also pass in the value.
10671 2011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10673 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
10674 (save_gdb_index_command): Switch to .gdb_index version 4.
10676 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10678 * mi/mi-main.c (get_register): Use get_frame_register_value rather
10679 than frame_register, and always pass a valid value to val_print.
10681 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10683 Centralize printing "<optimized out>".
10685 * valprint.h (val_print_optimized_out): Declare.
10686 * cp-valprint.c (cp_print_value_fields): Use
10687 val_print_optimized_out.
10688 * jv-valprint.c (java_print_value_fields): Ditto.
10689 * p-valprint.c (pascal_object_print_value_fields): Ditto.
10690 * printcmd.c (print_formatted): Ditto.
10691 * valprint.c (valprint_check_validity): Ditto.
10692 (value_check_printable): Ditto.
10693 (val_print_optimized_out): New.
10695 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10697 * infcmd.c (default_print_registers_info): Allocate values so to
10698 never pass a NULL value to val_print.
10700 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10702 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
10703 boolean. Make sure to always pass a value that matches the
10704 contents buffer to callees. Preserve `address' for following
10706 * value.c (value_contents_for_printing_const): New.
10707 (value_address): Constify value argument.
10708 * value.h (value_contents_for_printing_const): Declare.
10709 (value_address): Constify value argument.
10711 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10713 * regcache.c (struct regcache_descr): Rename
10714 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
10715 and sizeof_cooked_register_valid_p to
10716 sizeof_cooked_register_status.
10717 (init_regcache_descr): Adjust.
10718 (struct regcache): Rename register_valid_p field to
10720 (regcache_xmalloc_1, regcache_xfree, regcache_save)
10721 (do_cooked_read): Adjust.
10722 (regcache_valid_p): Rename to ...
10723 (regcache_register_status): ... this. Adjust.
10724 (regcache_invalidate): Adjust.
10725 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
10727 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
10728 as unavailable, not valid.
10729 (regcache_dump): Adjust.
10730 * regcache.h (enum register_status): New.
10731 (regcache_register_status): Declare.
10732 (regcache_invalidate): Delete declaration.
10733 * corelow.c (get_core_registers): Adjust.
10734 * tracepoint.c (tfile_fetch_registers): Adjust.
10735 * trad-frame.c (REG_VALUE): Rename to ...
10736 (TF_REG_VALUE): ... this.
10737 (REG_UNKNOWN): Rename to ...
10738 (TF_REG_UNKNOWN): ... this.
10739 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
10740 * mi/mi-main.c (register_changed_p): Adjust.
10742 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10744 * regcache.c (struct regcache_descr): Remove outdated comment.
10745 (init_regcache_descr): Remove sizeof_raw_register_valid_p
10747 (regcache_xmalloc): Rename to ...
10748 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
10749 Allocate the regcache type accordingly.
10750 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
10751 (regcache_xfree): Asser the source is also readonly. Copy sizeof
10752 cooked registers, not raw.
10753 (regcache_dup_no_passthrough): Delete.
10754 (get_thread_arch_regcache): Use regcache_xmalloc_1.
10755 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
10756 mention obsolete write_register_bytes.
10757 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
10759 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10761 Stop remote_read_bytes from handling partial reads itself.
10763 * remote-fileio.c: Include target.h.
10764 (remote_fileio_write_bytes): Delete.
10765 (remote_fileio_func_open, remote_fileio_func_write)
10766 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
10767 target_read_memory.
10768 (remote_fileio_func_stat): Use target_read_memory and
10769 target_write_memory.
10770 (remote_fileio_func_gettimeofday): Use target_write_memory.
10771 (remote_fileio_func_system): Use target_read_memory.
10772 * remote.c (remote_write_bytes): Make it static.
10773 (remote_read_bytes): Don't handle partial reads here.
10774 * remote.h (remote_read_bytes): Delete declaration.
10776 2011-01-25 Pedro Alves <pedro@codesourcery.com>
10778 Simplify XML parsing a bit.
10780 * xml-support.h (gdb_xml_parse_quick): Declare.
10781 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
10782 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
10784 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
10785 gdb_xml_create_parser_and_cleanup_1.
10786 (gdb_xml_parse_quick): New.
10787 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
10788 * osdata.c (osdata_parse): Ditto.
10789 * remote.c (remote_threads_info): Ditto.
10790 * solib-target.c (solib_target_parse_libraries): Ditto.
10791 * xml-syscall.c (syscall_parse_xml): Ditto.
10792 * xml-tdesc.c (tdesc_parse_xml): Ditto.
10794 2011-01-24 Kevin Buettner <kevinb@redhat.com>
10796 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
10797 with remote-mips.o added to gdb_target_obs.
10798 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
10800 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10802 * ada-valprint.c (val_print_packed_array_elements): Pass the
10803 correct struct value to val_print.
10804 (ada_val_print_1): Ditto.
10806 2011-01-24 Pedro Alves <pedro@codesourcery.com>
10808 Don't lose embedded_offset in printing routines throughout.
10810 * valprint.h (val_print_array_elements): Change prototype.
10811 * valprint.c (val_print_array_elements): Add `embedded_offset'
10812 parameter, and adjust to pass it down to val_print, while passing
10813 `valaddr' or `address' unmodified. Take embedded_offset into
10814 account when checking repetitions.
10815 * c-valprint.c (c_val_print): Pass embedded_offset to
10816 val_print_array_elements instead of adjusting `valaddr' and
10818 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
10819 embedded_offset to val_print_array_elements instead of adjusting
10821 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
10822 * p-valprint.c (pascal_val_print): Pass embedded_offset to
10823 val_print_array_elements and pascal_object_print_value_fields
10824 instead of adjusting `valaddr'.
10825 (pascal_object_print_value_fields): Add `offset' parameter, and
10827 (pascal_object_print_value): Add `offset' parameter, and adjust to
10829 (pascal_object_print_static_field): Use
10830 value_contents_for_printing/value_embedded_offset, rather than
10832 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
10833 parameter, and adjust to use it. Use
10834 value_contents_for_printing/value_embedded_offset, rather than
10836 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
10837 (ada_val_print_array): Add `offset' parameter, and adjust to use
10839 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
10840 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
10841 Instead work with offsets. Use
10842 value_contents_for_printing/value_embedded_offset, rather than
10843 value_contents. Change `defer_val_int' local type to CORE_ADDR,
10844 and use value_from_pointer to extract a target pointer, rather
10845 than value_from_longest.
10846 (print_variant_part): Add `offset' parameter. Replace
10847 `outer_valaddr' parameter by a new `outer_offset' parameter.
10848 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10849 (ada_value_print): Use
10850 value_contents_for_printing/value_embedded_offset, rather than
10852 (print_record): Add `offset' parameter, and adjust to pass it
10854 (print_field_values): Add `offset' parameter. Replace
10855 `outer_valaddr' parameter by a new `outer_offset' parameter.
10856 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10857 Use value_contents_for_printing/value_embedded_offset, rather than
10859 * d-valprint.c (dynamic_array_type): Use
10860 value_contents_for_printing/value_embedded_offset, rather than
10862 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
10863 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
10864 (java_print_value_fields): Take `offset' into account. Don't
10865 re-adjust `valaddr'. Instead pass down adjusted offsets.
10866 (java_val_print): Take `embedded_offset' into account. Pass it to
10867 java_print_value_fields.
10868 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
10869 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
10870 down adjusted offsets.
10871 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
10872 (f_val_print): Take `embedded_offset' into account.
10874 2011-01-21 Joel Brobecker <brobecker@adacore.com>
10876 * inflow.c: Include "gdbcmd.h".
10877 (interactive_mode): New static global, moved here from top.c.
10878 (show_interactive_mode): New function, moved here from top.c.
10879 use gdb_has_a_terminal instead of input_from_terminal_p to
10880 determine the current mode.
10881 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
10883 (_initialize_inflow): Add the "set/show interactive-mode"
10884 commands. Moved here from top.c, after having adjusted slightly
10886 * top.c (interactive_mode, show_interactive_mode): Delete, moved
10888 (input_from_terminal_p): Remove handling of "interactive-mode"
10889 setting, moved to infow.c.
10890 (init_main): Remove creation of the "set/show interactive-mode"
10891 commands, moved to inflow.c.
10893 2011-01-19 Joel Brobecker <brobecker@adacore.com>
10895 * NEWS: Add entry for native ia64-hpux support.
10897 2011-01-19 Tom Tromey <tromey@redhat.com>
10900 * thread.c (free_thread): Free 'name'.
10901 (print_thread_info): Emit thread name. Change CLI output.
10902 (thread_name_command): New function.
10903 (do_captured_thread_select): Emit newline.
10904 (_initialize_thread): Register 'thread name' command.
10905 * target.h (struct target_ops) <to_thread_name>: New field.
10906 (target_thread_name): New macro.
10907 * target.c (update_current_target): Handle to_thread_name.
10908 * python/py-infthread.c (thpy_get_name): New function.
10909 (thpy_set_name): Likewise.
10910 (thread_object_getset): Add "name".
10911 * linux-nat.c (linux_nat_thread_name): New function.
10912 (linux_nat_add_target): Set to_thread_name.
10913 * gdbthread.h (struct thread_info) <name>: New field.
10915 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10917 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
10918 (ada_val_print_1): Likewise.
10920 2011-01-18 Joel Brobecker <brobecker@adacore.com>
10922 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
10923 upper limit address is not greater than the function end address
10924 when the upper limit could not be computed using the debugging
10927 2011-01-17 Tom Tromey <tromey@redhat.com>
10929 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
10931 * utils.c: Include gdb_regex.h.
10932 (do_regfree_cleanup): New function.
10933 (make_regfree_cleanup): Likewise.
10934 (get_regcomp_error): Likewise.
10935 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
10937 2011-01-17 Tom Tromey <tromey@redhat.com>
10939 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
10940 re_compile_fastmap.
10942 2011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10944 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
10945 for internal variables.
10946 (last_was_structop): New static variable.
10947 (COMPLETE): New token.
10948 (field_exp): New rule to group all '.' suffix handling.
10949 Add mark_struct_expression calls when approriate to be able
10950 to correctly find fields for completion.
10951 (yylex): Adapt to handle field completion and set INTVAR when
10954 2011-01-14 Yao Qi <yao@codesourcery.com>
10956 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
10957 save_reggroup, restore_reggroup and all_reggroup.
10959 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10961 * ada-valprint. (ada_printchar): Use the correct type length
10962 in call to ada_emit_char.
10963 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
10965 2011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10967 * solib-som.h (hpux_major_release): Declare variable here.
10968 * solib-som.c: Remove <sys/utsname.h> header.
10969 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
10970 (hpux_major_release): Make global, change default value to
10971 DEFAULT_HPUX_MAJOR_RELEASE.
10972 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
10973 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
10974 Add "solib-som.h" header.
10975 (set_hpux_major_release): New function.
10976 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
10978 2011-01-14 Mike Frysinger <vapier@gentoo.org>
10980 * configure.tgt (*-*-uclinux*): Match more Linux os targets
10982 2011-01-14 Joel Brobecker <brobecker@adacore.com>
10984 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
10985 new-line at end of warning message.
10986 (ia64_hpux_store_register): Remove trailing new-line at end of
10988 * ia64-hpux-tdep.c: Rephrase comment.
10989 * solib-ia64-hpux.c (struct dld_info): Change type of field
10990 dld_flags from "long long" to ULONGEST.
10992 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10994 * target.h (deprecated_child_ops): Delete declaration.
10995 * target.c (deprecated_child_ops): Delete definition.
10997 2011-01-14 Pedro Alves <pedro@codesourcery.com>
10999 * Makefile.in (hpux-thread.o): Delete rule.
11000 * configure.ac: Don't check for HPUX DCE threads support.
11001 * configure, config.in: Regenerate.
11002 * hppa-hpux-nat.c (child_suppress_run): Delete.
11003 (hppa_hpux_child_can_run): Delete.
11004 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11005 * hpux-thread.c: Delete.
11007 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11009 * hpux-thread.c (hpux_pid_to_str): Delete.
11011 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11013 * ada-valprint.c (ada_emit_char): Remove strange code.
11014 Check that c is <= UCHAR_MAX before passing it to isascii.
11015 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11017 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11019 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11020 to the case where instream is stdin.
11022 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11024 * ia64-tdep.h (struct regcache): Forward declare.
11025 (struct ia64_infcall_ops): New struct type.
11026 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11028 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11029 Renames ia64_find_global_pointer.
11030 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11031 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11032 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11034 (ia64_infcall_ops): New static global constant.
11035 (ia64_gdbarch_init): Set tdep->infcall_ops.
11036 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11037 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11038 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11039 (ia64_hpux_dummy_code): New static global constant.
11040 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11041 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11042 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11044 (ia64_hpux_infcall_ops): New static global constant.
11045 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11046 for inferior function calls to work properly on ia64-hpux.
11048 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11050 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11051 * ia64-tdep.h (struct frame_info): forward declaration.
11052 (struct gdbarch_tdep): Add field size_of_register_frame.
11053 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11054 to determine the size of the register frame.
11055 (ia64_size_of_register_frame): New function.
11056 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11057 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11058 (IA64_HPUX_UREG_REASON): New macro.
11059 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11061 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11062 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11063 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11066 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11068 Add support for ia64-hpux.
11069 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11070 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11072 * configure.host: Add handling for ia64-hpux hosts. Add associated
11074 * configure.tgt: Add handling for ia64-hpux targets.
11075 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11076 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11077 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11079 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11081 [ttrace] Compute thread list immediately after attach.
11082 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11084 (inf_ttrace_attach): Use it.
11086 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11088 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11089 if we could not determine the frame's function address. Instead,
11090 use the frame's PC, and then continue.
11092 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11094 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11095 not already defined.
11097 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11099 * ia64-tdep.c (ia64_struct_type_p): New function.
11100 (ia64_extract_return_value): Handle integral values that are
11101 less than 8 bytes long.
11102 (ia64_push_dummy_call): Likewise.
11104 2011-01-13 Joel Brobecker <brobecker@adacore.com>
11106 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11107 floatformat_ia64_ext.
11108 (floatformat_ia64_ext_big): New static const.
11109 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11111 2011-01-12 Tom Tromey <tromey@redhat.com>
11113 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11115 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11116 (mi_cmd_thread_list_ids): Likewise.
11117 (mi_cmd_data_list_changed_registers): Likewise.
11118 (mi_cmd_data_list_register_values): Likewise.
11119 (mi_cmd_data_write_register_values): Likewise.
11120 (mi_cmd_data_evaluate_expression): Likewise.
11121 (mi_cmd_data_read_memory): Likewise.
11122 (mi_cmd_data_read_memory_bytes): Likewise.
11123 (mi_cmd_data_write_memory): Likewise.
11124 (mi_cmd_enable_timings): Likewise.
11125 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11126 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11127 (mi_cmd_var_delete): Likewise.
11128 (mi_cmd_var_set_format): Likewise.
11129 (mi_cmd_var_show_format): Likewise.
11130 (mi_cmd_var_info_num_children): Likewise.
11131 (mi_cmd_var_list_children): Likewise.
11132 (mi_cmd_var_info_type): Likewise.
11133 (mi_cmd_var_info_expression): Likewise.
11134 (mi_cmd_var_show_attributes): Likewise.
11135 (mi_cmd_var_assign): Likewise.
11136 (mi_cmd_var_update): Likewise.
11137 (mi_cmd_enable_pretty_printing): Likewise.
11138 (mi_cmd_var_set_update_range): Likewise.
11139 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11141 (mi_cmd_target_file_put): Likewise.
11142 (mi_cmd_target_file_delete): Likewise.
11143 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11145 (mi_cmd_stack_info_depth): Likewise.
11146 (mi_cmd_stack_list_locals): Likewise.
11147 (mi_cmd_stack_list_args): Likewise.
11148 (mi_cmd_stack_select_frame): Likewise.
11149 (mi_cmd_stack_select_frame): Likewise.
11150 (mi_cmd_stack_info_frame): Likewise.
11151 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11153 (mi_cmd_file_list_exec_source_files): Likewise.
11154 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11155 (mi_cmd_env_cd): Likewise.
11156 (mi_cmd_env_path): Likewise.
11157 (mi_cmd_env_dir): Likewise.
11158 (mi_cmd_inferior_tty_show): Likewise.
11159 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11160 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11161 (mi_cmd_break_watch): Likewise.
11163 2011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11165 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11166 (ppc_linux_insert_hw_breakpoint): Likewise.
11167 (ppc_linux_remove_hw_breakpoint): Likewise.
11168 (ppc_linux_insert_watchpoint): Likewise.
11170 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11171 Jan Kratochvil <jan.kratochvil@redhat.com>
11173 PR fortran/11104 and DWARF unbound arrays detection.
11174 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11175 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11176 unspecified upper bound.
11177 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11178 variables array_size_array, tmp_type and offset_item. New variable
11179 array. Remove call to f77_get_upperbound. New variables array_type
11180 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11181 the final call to deprecated_set_value_type.
11183 2011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11185 Make value allocations more lazy.
11186 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11187 instead of allocate_value and set_value_lazy when possible.
11188 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
11189 instead of allocate_value and set_value_lazy.
11190 * findvar.c (value_of_register_lazy): Likewise.
11191 (read_var_value): Remove V preallocation, call just check_typedef in
11192 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
11193 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11194 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11195 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11196 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11197 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11198 the end, remove set_value_lazy there.
11199 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11200 instead of allocate_value and set_value_lazy when possible.
11201 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11202 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11203 of allocate_value and set_value_lazy.
11204 (value_from_contents_and_address): Use allocate_value_lazy instead of
11205 allocate_value and set_value_lazy when possible.
11207 2011-01-12 Andrew Burgess <aburgess@broadcom.com>
11209 * disasm.c (dump_insns): Support dumping opcodes for MI.
11210 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11211 dumping of instruction opcodes.
11213 2011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11215 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11218 2011-01-11 Tom Tromey <tromey@redhat.com>
11220 * thread.c (do_captured_thread_select): Emit newline before
11223 2011-01-11 Michael Snyder <msnyder@vmware.com>
11225 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11226 * score-tdep.c: Ditto.
11227 * score-tdep.h: Ditto.
11228 * ser-base.c: Ditto.
11229 * ser-go32.c: Ditto.
11232 * ser-mingw.c: Ditto.
11233 * ser-pipe.c: Ditto.
11234 * ser-tcp.c: Ditto.
11235 * ser-unix.c: Ditto.
11236 * sh64-tdep.c: Ditto.
11237 * shnbsd-nat.c: Ditto.
11238 * sh-tdep.c: Ditto.
11239 * sh-tdep.h: Ditto.
11241 * solib-darwin.c: Ditto.
11242 * solib-frv.c: Ditto.
11244 * solib-irix.c: Ditto.
11245 * solib-osf.c: Ditto.
11246 * solib-pa64.c: Ditto.
11247 * solib-som.c: Ditto.
11248 * solib-spu.c: Ditto.
11249 * solib-sunos.c: Ditto.
11250 * solib-svr4.c: Ditto.
11252 * sol-thread.c: Ditto.
11253 * somread.c: Ditto.
11256 * sparc64-linux-tdep.c: Ditto.
11257 * sparc64-tdep.c: Ditto.
11258 * sparc-linux-nat.c: Ditto.
11259 * sparc-linux-tdep.c: Ditto.
11260 * sparc-sol2-nat.c: Ditto.
11261 * sparc-sol2-tdep.c: Ditto.
11262 * sparc-tdep.c: Ditto.
11263 * sparc-tdep.h: Ditto.
11264 * spu-tdep.c: Ditto.
11265 * stabsread.c: Ditto.
11266 * stabsread.h: Ditto.
11268 * symfile.c: Ditto.
11269 * symfile.h: Ditto.
11270 * symmisc.c: Ditto.
11274 * target-descriptions.c: Ditto.
11275 * target-descriptions.h: Ditto.
11277 * target-memory.c: Ditto.
11278 * terminal.h: Ditto.
11281 * tracepoint.c: Ditto.
11282 * tracepoint.h: Ditto.
11283 * trad-frame.h: Ditto.
11284 * typeprint.c: Ditto.
11286 2011-01-11 Michael Snyder <msnyder@vmware.com>
11288 * ui-file.c: Comment cleanup, mostly periods and spaces.
11289 * ui-file.h: Ditto.
11293 * v850-tdep.c: Ditto.
11294 * valarith.c: Ditto.
11296 * valprint.c: Ditto.
11297 * valprint.h: Ditto.
11302 * vax-tdep.c: Ditto.
11305 * version.h: Ditto.
11306 * windows-nat.c: Ditto.
11307 * windows-tdep.c: Ditto.
11308 * xcoffread.c: Ditto.
11309 * xcoffsolib.c: Ditto.
11310 * xml-support.c: Ditto.
11311 * xstormy16-tdep.c: Ditto.
11312 * xtensa-tdep.c: Ditto.
11313 * xtensa-tdep.h: Ditto.
11315 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11317 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11318 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11320 2011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11321 Thiago Jung Bauermann <bauerman@br.ibm.com>
11323 Implement support for PowerPC BookE ranged watchpoints.
11325 (struct breakpoint_ops) <resources_needed>: New method.
11326 Initialize to NULL in all existing breakpoint_ops instances.
11327 (struct breakpoint) <exact>: New field.
11328 (target_exact_watchpoints): Declare external global.
11329 * breakpoint.c (target_exact_watchpoints): New global flag.
11330 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11331 b->enable_state to bp_enabled before calling
11332 hw_watchpoint_used_count.
11333 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11334 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11336 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11337 if the watchpoint is exact.
11338 (resources_needed_watchpoint): New function.
11339 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11340 (watch_command_1): Set b->exact if the user asked for an exact
11341 watchpoint and one can be set.
11342 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11343 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11344 the user asks for an exact watchpoint and one can be set. Return
11345 number of needed debug registers to watch the expression.
11346 * gdbtypes.c (is_scalar_type): New function, based on
11347 valprint.c:scalar_type_p.
11348 (is_scalar_type_recursive): New function.
11349 * gdbtypes.h (is_scalar_type_recursive): Declare.
11350 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11351 handle regions when ranged watchpoints are available.
11352 (create_watchpoint_request): New function.
11353 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11354 create_watchpoint_request.
11355 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11356 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11357 `set powerpc' and `show powerpc' commands.
11358 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11359 Mention documentation comment in the target macro.
11360 (target_region_ok_for_hw_watchpoint): Document return value.
11362 2011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11364 * breakpoint.c (update_watchpoint): Decide on using a software or
11365 hardware watchpoint after the bp_locations are created.
11367 2010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11369 Convert hardware watchpoints to use breakpoint_ops.
11370 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11371 <insert_location>: ... this. Return int instead of void.
11372 Accept pointer to struct bp_location instead of pointer to
11373 struct breakpoint. Adapt all implementations.
11374 (breakpoint_ops) <remove>: Rename to...
11375 <remove_location>: ... this. Accept pointer to struct bp_location
11376 instead of pointer to struct breakpoint. Adapt all implementations.
11377 * breakpoint.c (insert_catchpoint): Delete function.
11378 (insert_bp_location): Call the watchpoint or catchpoint's
11379 breakpoint_ops.insert method.
11380 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11381 breakpoint_ops.remove method.
11382 (insert_watchpoint, remove_watchpoint): New functions.
11383 (watchpoint_breakpoint_ops): New structure.
11384 (watch_command_1): Initialize the OPS field.
11385 * inf-child.c (inf_child_insert_fork_catchpoint)
11386 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11387 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11388 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11390 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11391 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11392 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11393 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11394 * target.c (update_current_target): Change default implementation of
11395 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11396 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11397 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11398 to_set_syscall_catchpoint to return_one.
11399 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11400 (debug_to_insert_exec_catchpoint): Report return value.
11401 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11402 (to_insert_exec_catchpoint): Change declaration to return int instead
11405 2011-01-11 Michael Snyder <msnyder@vmware.com>
11407 * arm-tdep.c: Internationalization.
11409 * charset.c: Ditto.
11410 * fork-child.c: Ditto.
11411 * nto-procfs.c: Ditto.
11412 * ppc-sysv-tdep.c: Ditto.
11414 * remote-mips.c: Ditto.
11416 * rs6000-nat.c: Ditto.
11417 * rs6000-tdep.c: Ditto.
11421 * xml-support.c: Ditto.
11422 * mi/mi-cmd-break.c: Ditto.
11423 * mi/mi-cmd-var.c: Ditto.
11424 * mi/mi-interp.c: Ditto.
11425 * mi/mi-main.c: Ditto.
11427 2011-01-11 Andrew Burgess <aburgess@broadcom.com>
11429 * remote-sim.c (gdbsim_store_register): Update API to
11430 sim_store_register to check more error conditions.
11432 2011-01-10 Michael Snyder <msnyder@vmware.com>
11434 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11435 * nto-tdep.c: Ditto.
11436 * nto-tdep.h: Ditto.
11437 * objc-exp.y: Ditto.
11438 * objc-lang.c: Ditto.
11439 * objfiles.c: Ditto.
11440 * objfiles.h: Ditto.
11441 * observer.c: Ditto.
11442 * opencl-lang.c: Ditto.
11445 * parser-defs.h: Ditto.
11448 * posix-hdep.c: Ditto.
11449 * ppcbug-rom.c: Ditto.
11450 * ppc-linux-nat.c: Ditto.
11451 * ppc-linux-tdep.c: Ditto.
11452 * ppc-linux-tdep.h: Ditto.
11453 * ppcnbsd-tdep.c: Ditto.
11454 * ppcobsd-tdep.c: Ditto.
11455 * ppcobsd-tdep.h: Ditto.
11456 * ppc-sysv-tdep.c: Ditto.
11457 * ppc-tdep.h: Ditto.
11458 * printcmd.c: Ditto.
11459 * proc-abi.c: Ditto.
11460 * proc-flags.c: Ditto.
11462 * proc-utils.h: Ditto.
11463 * progspace.h: Ditto.
11464 * prologue-value.c: Ditto.
11465 * prologue-value.h: Ditto.
11466 * psympriv.h: Ditto.
11467 * psymtab.c: Ditto.
11468 * p-typeprint.c: Ditto.
11469 * p-valprint.c: Ditto.
11470 * ravenscar-sparc-thread.c: Ditto.
11471 * ravenscar-thread.c: Ditto.
11472 * ravenscar-thread.h: Ditto.
11474 * regcache.c: Ditto.
11475 * regcache.h: Ditto.
11477 * remote-fileio.c: Ditto.
11478 * remote-fileio.h: Ditto.
11480 * remote-m32r-sdi.c: Ditto.
11481 * remote-mips.c: Ditto.
11482 * remote-sim.c: Ditto.
11483 * rs6000-aix-tdep.c: Ditto.
11484 * rs6000-nat.c: Ditto.
11485 * rs6000-tdep.c: Ditto.
11487 2011-01-10 Michael Snyder <msnyder@vmware.com>
11489 * charset.c (validate): Internationalization.
11490 * coffread.c (read_one_sym): Ditto.
11491 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11492 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11493 * inflow.c (new_tty): Ditto.
11494 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11495 * m32c-tdep.c (m32c_return_value): Ditto.
11496 * mep-tdep.c (mep_store_return_value): Ditto.
11497 * score-tdep.c (score7_fetch_insn): Ditto.
11498 * ser-mingw.c (pipe_windows_open): Ditto.
11499 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11500 * spu-tdep.c (spu_register_type): Ditto.
11501 * tracepoint.c (trace_find_command): Ditto.
11502 * valarith.c (value_pos): Ditto.
11504 2011-01-10 Joel Brobecker <brobecker@adacore.com>
11506 * ada-valprint.c (printstr): Minor comment reformatting.
11508 2011-01-08 Michael Snyder <msnyder@vmware.com>
11510 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11513 2011-01-08 Michael Snyder <msnyder@vmware.com>
11515 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11516 * hppa-hpux-tdep.c: Ditto.
11517 * hppa-linux-nat.c: Ditto.
11518 * hppa-linux-tdep.c: Ditto.
11519 * hppanbsd-tdep.c: Ditto.
11520 * hppa-tdep.c: Ditto.
11521 * hppa-tdep.h: Ditto.
11522 * hpux-thread.c: Ditto.
11523 * i386-cygwin-tdep.c: Ditto.
11524 * i386-darwin-nat.c: Ditto.
11525 * i386gnu-nat.c: Ditto.
11526 * i386-linux-nat.c: Ditto.
11527 * i386-linux-tdep.c: Ditto.
11528 * i386-nat.c: Ditto.
11529 * i386-nat.h: Ditto.
11530 * i386nbsd-tdep.c: Ditto.
11531 * i386-sol2-nat.c: Ditto.
11532 * i386-stub.c: Ditto.
11533 * i386-tdep.c: Ditto.
11534 * i386-tdep.h: Ditto.
11535 * i387-tdep.c: Ditto.
11536 * ia64-linux-nat.c: Ditto.
11537 * ia64-linux-tdep.c: Ditto.
11538 * ia64-tdep.c: Ditto.
11539 * infcall.c: Ditto.
11540 * infcall.h: Ditto.
11542 * inferior.c: Ditto.
11543 * inferior.h: Ditto.
11544 * infloop.c: Ditto.
11547 * interps.c: Ditto.
11548 * interps.h: Ditto.
11549 * iq2000-tdep.c: Ditto.
11550 * irix5-nat.c: Ditto.
11554 * jv-lang.c: Ditto.
11555 * jv-lang.h: Ditto.
11556 * jv-typeprint.c: Ditto.
11557 * jv-valprint.c: Ditto.
11558 * language.c: Ditto.
11559 * language.h: Ditto.
11560 * linespec.c: Ditto.
11561 * linux-fork.c: Ditto.
11562 * linux-nat.c: Ditto.
11563 * linux-thread-db.c: Ditto.
11564 * lm32-tdep.c: Ditto.
11566 2011-01-08 Michael Snyder <msnyder@vmware.com>
11568 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11569 * m2-lang.c: Ditto.
11570 * m2-typeprint.c: Ditto.
11571 * m2-valprint.c: Ditto.
11572 * m32c-tdep.c: Ditto.
11573 * m32r-linux-nat.c: Ditto.
11574 * m32r-rom.c: Ditto.
11575 * m32r-tdep.c: Ditto.
11576 * m32r-tdep.h: Ditto.
11577 * m68hc11-tdep.c: Ditto.
11578 * m58klinux-nat.c: Ditto.
11579 * m68k-tdep.c: Ditto.
11580 * m88k-tdep.c: Ditto.
11581 * m88k-tdep.h: Ditto.
11582 * machoread.c: Ditto.
11583 * macrocmd.c: Ditto.
11584 * macroexp.c: Ditto.
11585 * macrotab.c: Ditto.
11588 * mdebugread.c: Ditto.
11589 * mdebugread.h: Ditto.
11590 * memattr.c: Ditto.
11591 * memattr.h: Ditto.
11592 * memory-map.h: Ditto.
11593 * mep-tdep.c: Ditto.
11594 * microblaze-rom.c: Ditto.
11595 * microblaze-tdep.c: Ditto.
11596 * minsyms.c: Ditto.
11597 * mips-irix-tdep.c: Ditto.
11598 * mips-linux-nat.c: Ditto.
11599 * mips-linux-tdep.c: Ditto.
11600 * mips-linux-tdep.h: Ditto.
11601 * mipsnbsd-nat.c: Ditto.
11602 * mipsnbsd-tdep.c: Ditto.
11603 * mipsread.c: Ditto.
11604 * mips-tdep.c: Ditto.
11605 * mips-tdep.h: Ditto.
11606 * mn10300-linux-tdep.c: Ditto.
11607 * mn10300-tdep.c: Ditto.
11608 * mn10300-tdep.h: Ditto.
11609 * monitor.c: Ditto.
11610 * monitor.h: Ditto.
11611 * moxie-tdep.c: Ditto.
11612 * moxie-tdep.h: Ditto.
11613 * mt-tdep.c: Ditto.
11615 2011-01-08 Mike Frysinger <vapier@gentoo.org>
11617 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
11619 2011-01-08 Robert Millan <rmh@gnu.org>
11621 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
11623 2011-01-07 Michael Snyder <msnyder@vmware.com>
11625 * charset.c (_initialize_charset): Fix typo in string.
11627 2011-01-07 Michael Snyder <msnyder@vmware.com>
11629 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
11631 * tui/tui-layout.c (tui_set_layout_for_display_command):
11632 Split line so that operator goes to beginning of line.
11633 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
11634 assignment out of if statement.
11636 2011-01-07 Michael Snyder <msnyder@vmware.com>
11638 * ada-lang.c: Comment cleanup, mostly periods and spaces.
11639 * ada-lang.h: Ditto.
11640 * ada-tasks.c: Ditto.
11641 * ada-valprint.c: Ditto.
11642 * aix-threads.c: Ditto.
11643 * alpha-linux-nat.c: Ditto.
11644 * alpha-linux-tdep.c: Ditto.
11645 * alpha-mdebug-tdep.c: Ditto.
11646 * alpha-nat.c: Ditto.
11647 * alpha-osf1-tdep.c: Ditto.
11648 * alpha-tdep.c: Ditto.
11649 * alphabsd-nat.c: Ditto.
11650 * alphabsd-tdep.c: Ditto.
11651 * amd64-darwin-tdep.c: Ditto.
11652 * amd64-linux-nat.c: Ditto.
11653 * amd64-linux-tdep.c: Ditto.
11654 * amd64-sol2-tdep.c: Ditto.
11655 * amd64-tdep.c: Ditto.
11656 * amd64-fbsd-tdep.c: Ditto.
11657 * amd64-nbsd-tdep.c: Ditto.
11658 * amd64-obsd-tdep.c: Ditto.
11659 * amd64-linux-nat.c: Ditto.
11660 * amd64-linux-tdep.c: Ditto.
11661 * arm-tdep.c: Ditto.
11662 * arm-tdep.h: Ditto.
11663 * armnbsd-nat.c: Ditto.
11664 * avr-tdep.c: Ditto.
11665 * bfin-tdep.c: Ditto.
11666 * bsd-kvm.c: Ditto.
11667 * c-typeprintc: Ditto.
11668 * c-valprint.c: Ditto.
11669 * coff-pe-read.h: Ditto.
11670 * coffreead.c: Ditto.
11671 * cris-tdep.c: Ditto.
11673 * darwin-nat-info.c: Ditto.
11674 * darwin-nat.c: Ditto.
11675 * dbug-rom.c: Ditto.
11676 * dbxread.c: Ditto.
11679 * dec-thread.c: Ditto.
11681 * demangle.c: Ditto.
11682 * dicos-tdep.c: Ditto.
11683 * dictionary.c: Ditto.
11684 * dictionary.h: Ditto.
11685 * dink32-rom.c: Ditto.
11687 * doublest.c: Ditto.
11689 * dummy-frame.c: Ditto.
11690 * dwarf2-frame.c: Ditto.
11691 * dwarf2expr.c: Ditto.
11692 * dwarf2loc.c: Ditto.
11693 * dwarf2read.c: Ditto.
11694 * elfread.c: Ditto.
11695 * environ.c: Ditto.
11697 * event-top.h: Ditto.
11698 * exceptions.c: Ditto.
11699 * exceptions.h: Ditto.
11701 * expprint.c: Ditto.
11702 * expression.h: Ditto.
11706 * f-typeprint.c: Ditto.
11707 * f-valprint.c: Ditto.
11708 * fbsd-nat.c: Ditto.
11709 * findvar.c: Ditto.
11710 * fork-child.c: Ditto.
11713 * frv-linux-tdep.c: Ditto.
11714 * frv-tdep.c: Ditto.
11716 * gdb-stabs.h: Ditto.
11717 * gdb_assert.h: Ditto.
11718 * gdb_string.h: Ditto.
11719 * gdb_thread_db.h: Ditto.
11720 * gdb_wait.h: Ditto.
11721 * gdbarch.sh: Ditto.
11722 * gdbcore.h: Ditto.
11723 * gdbthread.h: Ditto.
11724 * gdbtypes.c: Ditto.
11725 * gdbtypes.h: Ditto.
11726 * gnu-nat.c: Ditto.
11727 * gnu-nat.h: Ditto.
11728 * gnu-v2-abi.c: Ditto.
11729 * gnu-v3-abi.c: Ditto.
11730 * go32-nat.c: Ditto.
11731 * gdbarch.c: Regenerate.
11732 * gdbarch.h: Regenerate.
11734 2011-01-07 Michael Snyder <msnyder@vmware.com>
11736 * ax-gdb.c: Adjust some long output strings.
11737 * breakpoint.c: Ditto.
11738 * charset.c: Ditto.
11740 * infcall.c: Ditto.
11742 * linux-nat.c: Ditto.
11743 * solib-pa64.c: Ditto.
11744 * solib-som.c: Ditto.
11746 2011-01-06 Tom Tromey <tromey@redhat.com>
11750 * python/python.c (GdbMethods): Add "newest_frame" method.
11751 * python/python-internal.h (gdbpy_newest_frame): Declare.
11752 * python/py-frame.c (gdbpy_newest_frame): New function.
11754 2010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
11756 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
11757 * jit.c (jit_debug): New variable.
11758 (show_jit_debug): New function.
11759 (struct target_buffer): Use ULONGEST.
11760 (bfd_open_from_target_memory): Likewise.
11761 (jit_register_code, jit_inferior_init): Add debug output.
11762 (_initialize_jit): Register "debug jit" command.
11764 2011-01-06 Tom Tromey <tromey@redhat.com>
11766 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
11767 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
11770 2011-01-06 Tom Tromey <tromey@redhat.com>
11772 * python/py-frame.c (frapy_block): Use get_frame_block.
11774 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11776 Do not stop on SIGPRIO signals by default
11777 * infrun.c (_initialize_infrun): Unset signal_stop and
11778 signal_print for TARGET_SIGNAL_PRIO.
11780 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11782 * ada-tasks.c: Fix style violation in comment.
11784 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11786 * linespec.c (decode_compound, find_method): Remove trailing \n
11787 at end of error string.
11788 * solib-irix.c (irix_current_sos): Likewise.
11789 * varobj.c (uninstall_variable): Likewise.
11791 2011-01-06 Joel Brobecker <brobecker@adacore.com>
11793 * copyright.py: New script.
11794 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
11795 Launch emacs without exec'ing. Call copyright.py afterwards.
11797 2011-01-05 Michael Snyder <msnyder@vmware.com>
11799 * addrmap.c: Shorten lines of >= 80 columns.
11800 * arch-utils.c: Ditto.
11801 * arch-utils.h: Ditto.
11803 * ax-general.c: Ditto.
11805 * blockframe.c: Ditto.
11806 * breakpoint.c: Ditto.
11807 * buildsym.c: Ditto.
11809 * c-typeprint.c: Ditto.
11810 * charset.c: Ditto.
11811 * coffread.c: Ditto.
11812 * command.h: Ditto.
11813 * corelow.c: Ditto.
11815 * cp-namespace.c: Ditto.
11816 * cp-support.c: Ditto.
11817 * dbug-rom.c: Ditto.
11818 * dbxread.c: Ditto.
11822 * dictionary.c: Ditto.
11824 * doublest.c: Ditto.
11825 * dwarf2-frame.c: Ditto.
11826 * dwarf2expr.c: Ditto.
11827 * dwarf2loc.c: Ditto.
11828 * dwarf2read.c: Ditto.
11829 * elfread.c: Ditto.
11831 * event-loop.c: Ditto.
11832 * event-loop.h: Ditto.
11833 * exceptions.h: Ditto.
11835 * expprint.c: Ditto.
11836 * expression.h: Ditto.
11838 * f-valprint.c: Ditto.
11839 * findcmd.c: Ditto.
11840 * frame-base.c: Ditto.
11841 * frame-unwind.c: Ditto.
11842 * frame-unwind.h: Ditto.
11846 * gdb-stabs.h: Ditto.
11847 * gdb_assert.h: Ditto.
11848 * gdb_dirent.h: Ditto.
11849 * gdb_obstack.h: Ditto.
11850 * gdbcore.h: Ditto.
11851 * gdbtypes.c: Ditto.
11852 * gdbtypes.h: Ditto.
11853 * inf-ttrace.c: Ditto.
11854 * infcall.c: Ditto.
11858 * inline-frame.h: Ditto.
11859 * language.c: Ditto.
11860 * language.h: Ditto.
11861 * libunwind-frame.c: Ditto.
11862 * libunwind-frame.h: Ditto.
11863 * linespec.c: Ditto.
11864 * linux-nat.c: Ditto.
11865 * linux-nat.h: Ditto.
11866 * linux-thread-db.c: Ditto.
11867 * machoread.c: Ditto.
11868 * macroexp.c: Ditto.
11869 * macrotab.c: Ditto.
11872 * mdebugread.c: Ditto.
11873 * memattr.c: Ditto.
11874 * minsyms.c: Ditto.
11875 * monitor.c: Ditto.
11876 * monitor.h: Ditto.
11877 * objfiles.c: Ditto.
11878 * objfiles.h: Ditto.
11880 * p-typeprint.c: Ditto.
11881 * p-valprint.c: Ditto.
11883 * printcmd.c: Ditto.
11884 * proc-events.c: Ditto.
11886 * progspace.c: Ditto.
11887 * progspace.h: Ditto.
11888 * psympriv.h: Ditto.
11889 * psymtab.c: Ditto.
11891 * regcache.c: Ditto.
11892 * regcache.h: Ditto.
11893 * remote-fileio.c: Ditto.
11895 * ser-mingw.c: Ditto.
11896 * ser-tcp.c: Ditto.
11897 * ser-unix.c: Ditto.
11900 * solib-frv.c: Ditto.
11901 * solib-irix.c: Ditto.
11902 * solib-osf.c: Ditto.
11903 * solib-pa64.c: Ditto.
11904 * solib-som.c: Ditto.
11905 * solib-sunos.c: Ditto.
11906 * solib-svr4.c: Ditto.
11907 * solib-target.c: Ditto.
11909 * somread.c: Ditto.
11911 * stabsread.c: Ditto.
11912 * stabsread.c: Ditto.
11915 * symfile-mem.c: Ditto.
11916 * symfile.c: Ditto.
11917 * symfile.h: Ditto.
11918 * symmisc.c: Ditto.
11921 * target-descriptions.c: Ditto.
11922 * target-memory.c: Ditto.
11925 * terminal.h: Ditto.
11928 * tracepoint.c: Ditto.
11929 * tracepoint.h: Ditto.
11930 * ui-file.c: Ditto.
11931 * ui-file.h: Ditto.
11933 * user-regs.c: Ditto.
11934 * user-regs.h: Ditto.
11936 * valarith.c: Ditto.
11938 * valprint.c: Ditto.
11939 * valprint.h: Ditto.
11944 * xcoffread.c: Ditto.
11945 * xcoffsolib.c: Ditto.
11946 * xcoffsolib.h: Ditto.
11947 * xml-syscall.c: Ditto.
11948 * xml-tdesc.c: Ditto.
11950 2011-01-05 Michael Snyder <msnyder@vmware.com>
11952 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
11953 * cli/cli-decode.c: Ditto.
11954 * cli/cli-dump.c: Ditto.
11955 * cli/cli-logging.c: Ditto.
11956 * cli/cli-script.c: Ditto.
11957 * cli/cli-setshow.c: Ditto.
11958 * common/signals.c: Ditto.
11959 * mi/mi-cmd-break.c: Ditto.
11960 * mi/mi-cmd-disas.c: Ditto.
11961 * mi/mi-cmd-stack.c: Ditto.
11962 * mi/mi-cmd-var.c: Ditto.
11963 * mi/mi-cmds.c: Ditto.
11964 * mi/mi-common.h: Ditto.
11965 * mi/mi-console.c: Ditto.
11966 * mi/mi-interp.c: Ditto.
11967 * mi/mi-main.c: Ditto.
11968 * osf-share/cma_attr.c: Ditto.
11969 * osf-share/cma_deb_core.h: Ditto.
11970 * osf-share/cma_debug_client.h: Ditto.
11971 * osf-share/cma_handle.h: Ditto.
11972 * osf-share/cma_mutex.h: Ditto.
11973 * osf-share/cma_stack_int.h: Ditto.
11974 * osf-share/cma_tcb_defs.h: Ditto.
11975 * python/py-auto-load.c: Ditto.
11976 * python/py-breakpoint.c: Ditto.
11977 * python/py-cmd.c: Ditto.
11978 * python/py-frame.c: Ditto.
11979 * python/py-objfile.c: Ditto.
11980 * python/py-param.c: Ditto.
11981 * python/py-progspace.c: Ditto.
11982 * python/py-symbol.c: Ditto.
11983 * python/py-value.c: Ditto.
11984 * python/python-internal.h: Ditto.
11985 * python/python.c: Ditto.
11986 * tui/tui-data.c: Ditto.
11987 * tui/tui-disasm.c: Ditto.
11988 * tui/tui-hooks.c: Ditto.
11989 * tui/tui-io.c: Ditto.
11990 * tui/tui-layout.c: Ditto.
11991 * tui/tui-regs.c: Ditto.
11992 * tui/tui-source.c: Ditto.
11993 * tui/tui-stack.c: Ditto.
11994 * tui/tui-win.c: Ditto.
11995 * tui/tui-windata.c: Ditto.
11996 * tui/tui-winsource.c: Ditto.
11998 2011-01-05 Joel Brobecker <brobecker@adacore.com>
12000 * configure.ac, gdb.1: Copyright year update.
12002 2011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12004 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12005 this_pc_in_block, morestack_msym and morestack_name. Check for
12006 "__morestack" minimal symbol there.
12008 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12010 * symfile.c (find_sym_fns): Add call to dont_repeat.
12012 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12014 Copyright year update in most files (performed by copyright.sh).
12016 2011-01-01 Joel Brobecker <brobecker@adacore.com>
12018 * top.c (print_gdb_version): Update copyright year in version output.
12020 For older changes see ChangeLog-2010.
12026 version-control: never